Code

Imported upstream version 1.3.8.
[pkg-rrdtool.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for rrdtool 1.3.8.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
184 as_func_success () {
185   as_func_return 0
187 as_func_failure () {
188   as_func_return 1
190 as_func_ret_success () {
191   return 0
193 as_func_ret_failure () {
194   return 1
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
271 fi
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
292 fi
296 (as_func_return () {
297   (exit $1)
299 as_func_success () {
300   as_func_return 0
302 as_func_failure () {
303   as_func_return 1
305 as_func_ret_success () {
306   return 0
308 as_func_ret_failure () {
309   return 1
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
344 test $exitcode = 0) || { (exit 1); exit 1; }
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354   break
355 fi
357 fi
359       done
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
379 fi
381 fi
385 (eval "as_func_return () {
386   (exit \$1)
388 as_func_success () {
389   as_func_return 0
391 as_func_failure () {
392   as_func_return 1
394 as_func_ret_success () {
395   return 0
397 as_func_ret_failure () {
398   return 1
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731 # Initializations.
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='rrdtool'
745 PACKAGE_TARNAME='rrdtool'
746 PACKAGE_VERSION='1.3.8'
747 PACKAGE_STRING='rrdtool 1.3.8'
748 PACKAGE_BUGREPORT=''
750 ac_default_prefix=/usr/local/rrdtool-$PACKAGE_VERSION
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
787 ac_subst_vars='LTLIBOBJS
788 LIBOBJS
789 RRDDOCDIR
790 TROFF
791 NROFF
792 COMP_PYTHON
793 PYTHON_INCLUDES
794 pkgpyexecdir
795 pyexecdir
796 pkgpythondir
797 pythondir
798 PYTHON_PLATFORM
799 PYTHON_EXEC_PREFIX
800 PYTHON_PREFIX
801 PYTHON_VERSION
802 PYTHON
803 TCL_INCLUDE_SPEC
804 TCL_PACKAGE_DIR
805 TCL_VERSION
806 TCL_STUB_LIB_SPEC
807 TCL_LD_SEARCH_FLAGS
808 TCL_PACKAGE_PATH
809 TCL_SHLIB_SUFFIX
810 TCL_SHLIB_LD
811 TCL_SHLIB_CFLAGS
812 TCL_PREFIX
813 BUILD_TCL_SITE_FALSE
814 BUILD_TCL_SITE_TRUE
815 BUILD_TCL_FALSE
816 BUILD_TCL_TRUE
817 COMP_RUBY
818 RUBY_MAKE_OPTIONS
819 RUBY
820 PERL_VERSION
821 COMP_PERL
822 PERL_MAKE_OPTIONS
823 PERL_CC
824 PERLLDFLAGS
825 PERLLD
826 PERLCCFLAGS
827 PERLCC
828 POD2HTML
829 POD2MAN
830 PERL
831 ALL_LIBS
832 CORE_LIBS
833 PKGCONFIG
834 BUILD_RRDCGI_FALSE
835 BUILD_RRDCGI_TRUE
836 BUILD_MULTITHREAD_FALSE
837 BUILD_MULTITHREAD_TRUE
838 PTHREAD_CFLAGS
839 PTHREAD_LIBS
840 PTHREAD_CC
841 acx_pthread_config
842 MULTITHREAD_LDFLAGS
843 MULTITHREAD_CFLAGS
844 BUILD_GETOPT_FALSE
845 BUILD_GETOPT_TRUE
846 RRD_GETOPT_LONG
847 BUILD_LIBINTL_FALSE
848 BUILD_LIBINTL_TRUE
849 LIB_LIBINTL
850 ALL_LINGUAS
851 INTLTOOL_PERL
852 MSGMERGE
853 INTLTOOL_POLICY_RULE
854 INTLTOOL_SERVICE_RULE
855 INTLTOOL_THEME_RULE
856 INTLTOOL_SCHEMAS_RULE
857 INTLTOOL_CAVES_RULE
858 INTLTOOL_XML_NOMERGE_RULE
859 INTLTOOL_XML_RULE
860 INTLTOOL_KBD_RULE
861 INTLTOOL_XAM_RULE
862 INTLTOOL_UI_RULE
863 INTLTOOL_SOUNDLIST_RULE
864 INTLTOOL_SHEET_RULE
865 INTLTOOL_SERVER_RULE
866 INTLTOOL_PONG_RULE
867 INTLTOOL_OAF_RULE
868 INTLTOOL_PROP_RULE
869 INTLTOOL_KEYS_RULE
870 INTLTOOL_DIRECTORY_RULE
871 INTLTOOL_DESKTOP_RULE
872 INTLTOOL_EXTRACT
873 INTLTOOL_MERGE
874 INTLTOOL_UPDATE
875 MKINSTALLDIRS
876 POSUB
877 POFILES
878 PO_IN_DATADIR_FALSE
879 PO_IN_DATADIR_TRUE
880 INTLLIBS
881 INSTOBJEXT
882 GMOFILES
883 DATADIRNAME
884 CATOBJEXT
885 CATALOGS
886 XGETTEXT
887 GMSGFMT
888 MSGFMT_OPTS
889 MSGFMT
890 USE_NLS
891 GETTEXT_PACKAGE
892 RRD_DEFAULT_FONT
893 OTOOL64
894 OTOOL
895 LIPO
896 NMEDIT
897 DSYMUTIL
898 lt_ECHO
899 RANLIB
900 AR
901 OBJDUMP
902 LN_S
903 NM
904 ac_ct_DUMPBIN
905 DUMPBIN
906 LD
907 FGREP
908 EGREP
909 GREP
910 SED
911 LIBTOOL
912 CPP
913 am__fastdepCC_FALSE
914 am__fastdepCC_TRUE
915 CCDEPMODE
916 AMDEPBACKSLASH
917 AMDEP_FALSE
918 AMDEP_TRUE
919 am__quote
920 am__include
921 DEPDIR
922 OBJEXT
923 EXEEXT
924 ac_ct_CC
925 CPPFLAGS
926 LDFLAGS
927 CFLAGS
928 CC
929 STATIC_PROGRAMS_FALSE
930 STATIC_PROGRAMS_TRUE
931 RRDGRAPH_YLEGEND_ANGLE
932 MAINT
933 MAINTAINER_MODE_FALSE
934 MAINTAINER_MODE_TRUE
935 am__untar
936 am__tar
937 AMTAR
938 am__leading_dot
939 SET_MAKE
940 AWK
941 mkdir_p
942 MKDIR_P
943 INSTALL_STRIP_PROGRAM
944 STRIP
945 install_sh
946 MAKEINFO
947 AUTOHEADER
948 AUTOMAKE
949 AUTOCONF
950 ACLOCAL
951 VERSION
952 PACKAGE
953 CYGPATH_W
954 am__isrc
955 INSTALL_DATA
956 INSTALL_SCRIPT
957 INSTALL_PROGRAM
958 target_os
959 target_vendor
960 target_cpu
961 target
962 host_os
963 host_vendor
964 host_cpu
965 host
966 build_os
967 build_vendor
968 build_cpu
969 build
970 LIBVERS
971 NUMVERS
972 target_alias
973 host_alias
974 build_alias
975 LIBS
976 ECHO_T
977 ECHO_N
978 ECHO_C
979 DEFS
980 mandir
981 localedir
982 libdir
983 psdir
984 pdfdir
985 dvidir
986 htmldir
987 infodir
988 docdir
989 oldincludedir
990 includedir
991 localstatedir
992 sharedstatedir
993 sysconfdir
994 datadir
995 datarootdir
996 libexecdir
997 sbindir
998 bindir
999 program_transform_name
1000 prefix
1001 exec_prefix
1002 PACKAGE_BUGREPORT
1003 PACKAGE_STRING
1004 PACKAGE_VERSION
1005 PACKAGE_TARNAME
1006 PACKAGE_NAME
1007 PATH_SEPARATOR
1008 SHELL
1009 PERLFLAGS'
1010 ac_subst_files=''
1011 ac_user_opts='
1012 enable_option_checking
1013 enable_maintainer_mode
1014 enable_rrdcgi
1015 with_rrd_default_font
1016 enable_mmap
1017 enable_pthread
1018 enable_static_programs
1019 enable_dependency_tracking
1020 enable_shared
1021 enable_static
1022 with_pic
1023 enable_fast_install
1024 with_gnu_ld
1025 enable_libtool_lock
1026 enable_libintl
1027 enable_nls
1028 enable_perl
1029 enable_perl_site_install
1030 with_perl_options
1031 enable_ruby
1032 enable_ruby_site_install
1033 with_ruby_options
1034 enable_tcl
1035 with_tcllib
1036 enable_python
1038       ac_precious_vars='build_alias
1039 host_alias
1040 target_alias
1041 RRDGRAPH_YLEGEND_ANGLE
1042 CC
1043 CFLAGS
1044 LDFLAGS
1045 LIBS
1046 CPPFLAGS
1047 CPP
1048 PERLCC
1049 PERLCCFLAGS
1050 PERLLD
1051 PERLLDFLAGS
1052 RRDDOCDIR'
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1106 do
1107   # If the previous option needs an argument, assign it.
1108   if test -n "$ac_prev"; then
1109     eval $ac_prev=\$ac_option
1110     ac_prev=
1111     continue
1112   fi
1114   case $ac_option in
1115   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116   *)    ac_optarg=yes ;;
1117   esac
1119   # Accept the important Cygnus configure options, so we can diagnose typos.
1121   case $ac_dashdash$ac_option in
1122   --)
1123     ac_dashdash=yes ;;
1125   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1126     ac_prev=bindir ;;
1127   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1128     bindir=$ac_optarg ;;
1130   -build | --build | --buil | --bui | --bu)
1131     ac_prev=build_alias ;;
1132   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1133     build_alias=$ac_optarg ;;
1135   -cache-file | --cache-file | --cache-fil | --cache-fi \
1136   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1137     ac_prev=cache_file ;;
1138   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1139   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1140     cache_file=$ac_optarg ;;
1142   --config-cache | -C)
1143     cache_file=config.cache ;;
1145   -datadir | --datadir | --datadi | --datad)
1146     ac_prev=datadir ;;
1147   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1148     datadir=$ac_optarg ;;
1150   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1151   | --dataroo | --dataro | --datar)
1152     ac_prev=datarootdir ;;
1153   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1154   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1155     datarootdir=$ac_optarg ;;
1157   -disable-* | --disable-*)
1158     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "enable_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval enable_$ac_useropt=no ;;
1174   -docdir | --docdir | --docdi | --doc | --do)
1175     ac_prev=docdir ;;
1176   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177     docdir=$ac_optarg ;;
1179   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180     ac_prev=dvidir ;;
1181   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182     dvidir=$ac_optarg ;;
1184   -enable-* | --enable-*)
1185     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1189    { (exit 1); exit 1; }; }
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "enable_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval enable_$ac_useropt=\$ac_optarg ;;
1201   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1202   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1203   | --exec | --exe | --ex)
1204     ac_prev=exec_prefix ;;
1205   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1206   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1207   | --exec=* | --exe=* | --ex=*)
1208     exec_prefix=$ac_optarg ;;
1210   -gas | --gas | --ga | --g)
1211     # Obsolete; use --with-gas.
1212     with_gas=yes ;;
1214   -help | --help | --hel | --he | -h)
1215     ac_init_help=long ;;
1216   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1217     ac_init_help=recursive ;;
1218   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1219     ac_init_help=short ;;
1221   -host | --host | --hos | --ho)
1222     ac_prev=host_alias ;;
1223   -host=* | --host=* | --hos=* | --ho=*)
1224     host_alias=$ac_optarg ;;
1226   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1227     ac_prev=htmldir ;;
1228   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1229   | --ht=*)
1230     htmldir=$ac_optarg ;;
1232   -includedir | --includedir | --includedi | --included | --include \
1233   | --includ | --inclu | --incl | --inc)
1234     ac_prev=includedir ;;
1235   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1236   | --includ=* | --inclu=* | --incl=* | --inc=*)
1237     includedir=$ac_optarg ;;
1239   -infodir | --infodir | --infodi | --infod | --info | --inf)
1240     ac_prev=infodir ;;
1241   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1242     infodir=$ac_optarg ;;
1244   -libdir | --libdir | --libdi | --libd)
1245     ac_prev=libdir ;;
1246   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1247     libdir=$ac_optarg ;;
1249   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1250   | --libexe | --libex | --libe)
1251     ac_prev=libexecdir ;;
1252   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1253   | --libexe=* | --libex=* | --libe=*)
1254     libexecdir=$ac_optarg ;;
1256   -localedir | --localedir | --localedi | --localed | --locale)
1257     ac_prev=localedir ;;
1258   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1259     localedir=$ac_optarg ;;
1261   -localstatedir | --localstatedir | --localstatedi | --localstated \
1262   | --localstate | --localstat | --localsta | --localst | --locals)
1263     ac_prev=localstatedir ;;
1264   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1265   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1266     localstatedir=$ac_optarg ;;
1268   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1269     ac_prev=mandir ;;
1270   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1271     mandir=$ac_optarg ;;
1273   -nfp | --nfp | --nf)
1274     # Obsolete; use --without-fp.
1275     with_fp=no ;;
1277   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1278   | --no-cr | --no-c | -n)
1279     no_create=yes ;;
1281   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1282   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1283     no_recursion=yes ;;
1285   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1286   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1287   | --oldin | --oldi | --old | --ol | --o)
1288     ac_prev=oldincludedir ;;
1289   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1290   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1291   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1292     oldincludedir=$ac_optarg ;;
1294   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1295     ac_prev=prefix ;;
1296   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1297     prefix=$ac_optarg ;;
1299   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1300   | --program-pre | --program-pr | --program-p)
1301     ac_prev=program_prefix ;;
1302   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1303   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1304     program_prefix=$ac_optarg ;;
1306   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1307   | --program-suf | --program-su | --program-s)
1308     ac_prev=program_suffix ;;
1309   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1310   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1311     program_suffix=$ac_optarg ;;
1313   -program-transform-name | --program-transform-name \
1314   | --program-transform-nam | --program-transform-na \
1315   | --program-transform-n | --program-transform- \
1316   | --program-transform | --program-transfor \
1317   | --program-transfo | --program-transf \
1318   | --program-trans | --program-tran \
1319   | --progr-tra | --program-tr | --program-t)
1320     ac_prev=program_transform_name ;;
1321   -program-transform-name=* | --program-transform-name=* \
1322   | --program-transform-nam=* | --program-transform-na=* \
1323   | --program-transform-n=* | --program-transform-=* \
1324   | --program-transform=* | --program-transfor=* \
1325   | --program-transfo=* | --program-transf=* \
1326   | --program-trans=* | --program-tran=* \
1327   | --progr-tra=* | --program-tr=* | --program-t=*)
1328     program_transform_name=$ac_optarg ;;
1330   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1331     ac_prev=pdfdir ;;
1332   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1333     pdfdir=$ac_optarg ;;
1335   -psdir | --psdir | --psdi | --psd | --ps)
1336     ac_prev=psdir ;;
1337   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1338     psdir=$ac_optarg ;;
1340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1341   | -silent | --silent | --silen | --sile | --sil)
1342     silent=yes ;;
1344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1345     ac_prev=sbindir ;;
1346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1347   | --sbi=* | --sb=*)
1348     sbindir=$ac_optarg ;;
1350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1352   | --sharedst | --shareds | --shared | --share | --shar \
1353   | --sha | --sh)
1354     ac_prev=sharedstatedir ;;
1355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1358   | --sha=* | --sh=*)
1359     sharedstatedir=$ac_optarg ;;
1361   -site | --site | --sit)
1362     ac_prev=site ;;
1363   -site=* | --site=* | --sit=*)
1364     site=$ac_optarg ;;
1366   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1367     ac_prev=srcdir ;;
1368   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1369     srcdir=$ac_optarg ;;
1371   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1372   | --syscon | --sysco | --sysc | --sys | --sy)
1373     ac_prev=sysconfdir ;;
1374   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1375   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1376     sysconfdir=$ac_optarg ;;
1378   -target | --target | --targe | --targ | --tar | --ta | --t)
1379     ac_prev=target_alias ;;
1380   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1381     target_alias=$ac_optarg ;;
1383   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1384     verbose=yes ;;
1386   -version | --version | --versio | --versi | --vers | -V)
1387     ac_init_version=: ;;
1389   -with-* | --with-*)
1390     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1394    { (exit 1); exit 1; }; }
1395     ac_useropt_orig=$ac_useropt
1396     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397     case $ac_user_opts in
1398       *"
1399 "with_$ac_useropt"
1400 "*) ;;
1401       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1402          ac_unrecognized_sep=', ';;
1403     esac
1404     eval with_$ac_useropt=\$ac_optarg ;;
1406   -without-* | --without-*)
1407     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1408     # Reject names that are not valid shell variable names.
1409     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1410       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1411    { (exit 1); exit 1; }; }
1412     ac_useropt_orig=$ac_useropt
1413     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1414     case $ac_user_opts in
1415       *"
1416 "with_$ac_useropt"
1417 "*) ;;
1418       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1419          ac_unrecognized_sep=', ';;
1420     esac
1421     eval with_$ac_useropt=no ;;
1423   --x)
1424     # Obsolete; use --with-x.
1425     with_x=yes ;;
1427   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1428   | --x-incl | --x-inc | --x-in | --x-i)
1429     ac_prev=x_includes ;;
1430   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1431   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1432     x_includes=$ac_optarg ;;
1434   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1435   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1436     ac_prev=x_libraries ;;
1437   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1438   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1439     x_libraries=$ac_optarg ;;
1441   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1442 Try \`$0 --help' for more information." >&2
1443    { (exit 1); exit 1; }; }
1444     ;;
1446   *=*)
1447     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1448     # Reject names that are not valid shell variable names.
1449     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1450       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1451    { (exit 1); exit 1; }; }
1452     eval $ac_envvar=\$ac_optarg
1453     export $ac_envvar ;;
1455   *)
1456     # FIXME: should be removed in autoconf 3.0.
1457     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1458     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1459       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1460     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1461     ;;
1463   esac
1464 done
1466 if test -n "$ac_prev"; then
1467   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1468   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1469    { (exit 1); exit 1; }; }
1470 fi
1472 if test -n "$ac_unrecognized_opts"; then
1473   case $enable_option_checking in
1474     no) ;;
1475     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1476    { (exit 1); exit 1; }; } ;;
1477     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1478   esac
1479 fi
1481 # Check all directory arguments for consistency.
1482 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1483                 datadir sysconfdir sharedstatedir localstatedir includedir \
1484                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1485                 libdir localedir mandir
1486 do
1487   eval ac_val=\$$ac_var
1488   # Remove trailing slashes.
1489   case $ac_val in
1490     */ )
1491       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1492       eval $ac_var=\$ac_val;;
1493   esac
1494   # Be sure to have absolute directory names.
1495   case $ac_val in
1496     [\\/$]* | ?:[\\/]* )  continue;;
1497     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1498   esac
1499   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1500    { (exit 1); exit 1; }; }
1501 done
1503 # There might be people who depend on the old broken behavior: `$host'
1504 # used to hold the argument of --host etc.
1505 # FIXME: To remove some day.
1506 build=$build_alias
1507 host=$host_alias
1508 target=$target_alias
1510 # FIXME: To remove some day.
1511 if test "x$host_alias" != x; then
1512   if test "x$build_alias" = x; then
1513     cross_compiling=maybe
1514     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1515     If a cross compiler is detected then cross compile mode will be used." >&2
1516   elif test "x$build_alias" != "x$host_alias"; then
1517     cross_compiling=yes
1518   fi
1519 fi
1521 ac_tool_prefix=
1522 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1524 test "$silent" = yes && exec 6>/dev/null
1527 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1528 ac_ls_di=`ls -di .` &&
1529 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1530   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1531    { (exit 1); exit 1; }; }
1532 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1533   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1534    { (exit 1); exit 1; }; }
1537 # Find the source files, if location was not specified.
1538 if test -z "$srcdir"; then
1539   ac_srcdir_defaulted=yes
1540   # Try the directory containing this script, then the parent directory.
1541   ac_confdir=`$as_dirname -- "$as_myself" ||
1542 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1543          X"$as_myself" : 'X\(//\)[^/]' \| \
1544          X"$as_myself" : 'X\(//\)$' \| \
1545          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1546 $as_echo X"$as_myself" |
1547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1548             s//\1/
1549             q
1550           }
1551           /^X\(\/\/\)[^/].*/{
1552             s//\1/
1553             q
1554           }
1555           /^X\(\/\/\)$/{
1556             s//\1/
1557             q
1558           }
1559           /^X\(\/\).*/{
1560             s//\1/
1561             q
1562           }
1563           s/.*/./; q'`
1564   srcdir=$ac_confdir
1565   if test ! -r "$srcdir/$ac_unique_file"; then
1566     srcdir=..
1567   fi
1568 else
1569   ac_srcdir_defaulted=no
1570 fi
1571 if test ! -r "$srcdir/$ac_unique_file"; then
1572   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1573   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1574    { (exit 1); exit 1; }; }
1575 fi
1576 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1577 ac_abs_confdir=`(
1578         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1579    { (exit 1); exit 1; }; }
1580         pwd)`
1581 # When building in place, set srcdir=.
1582 if test "$ac_abs_confdir" = "$ac_pwd"; then
1583   srcdir=.
1584 fi
1585 # Remove unnecessary trailing slashes from srcdir.
1586 # Double slashes in file names in object file debugging info
1587 # mess up M-x gdb in Emacs.
1588 case $srcdir in
1589 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1590 esac
1591 for ac_var in $ac_precious_vars; do
1592   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1593   eval ac_env_${ac_var}_value=\$${ac_var}
1594   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1595   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1596 done
1599 # Report the --help message.
1601 if test "$ac_init_help" = "long"; then
1602   # Omit some internal or obsolete options to make the list less imposing.
1603   # This message is too long to be a string in the A/UX 3.1 sh.
1604   cat <<_ACEOF
1605 \`configure' configures rrdtool 1.3.8 to adapt to many kinds of systems.
1607 Usage: $0 [OPTION]... [VAR=VALUE]...
1609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1610 VAR=VALUE.  See below for descriptions of some of the useful variables.
1612 Defaults for the options are specified in brackets.
1614 Configuration:
1615   -h, --help              display this help and exit
1616       --help=short        display options specific to this package
1617       --help=recursive    display the short help of all the included packages
1618   -V, --version           display version information and exit
1619   -q, --quiet, --silent   do not print \`checking...' messages
1620       --cache-file=FILE   cache test results in FILE [disabled]
1621   -C, --config-cache      alias for \`--cache-file=config.cache'
1622   -n, --no-create         do not create output files
1623       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1625 Installation directories:
1626   --prefix=PREFIX         install architecture-independent files in PREFIX
1627                           [$ac_default_prefix]
1628   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1629                           [PREFIX]
1631 By default, \`make install' will install all the files in
1632 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1633 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1634 for instance \`--prefix=\$HOME'.
1636 For better control, use the options below.
1638 Fine tuning of the installation directories:
1639   --bindir=DIR            user executables [EPREFIX/bin]
1640   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1641   --libexecdir=DIR        program executables [EPREFIX/libexec]
1642   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1643   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1644   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1645   --libdir=DIR            object code libraries [EPREFIX/lib]
1646   --includedir=DIR        C header files [PREFIX/include]
1647   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1648   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1649   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1650   --infodir=DIR           info documentation [DATAROOTDIR/info]
1651   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1652   --mandir=DIR            man documentation [DATAROOTDIR/man]
1653   --docdir=DIR            documentation root [DATAROOTDIR/doc/rrdtool]
1654   --htmldir=DIR           html documentation [DOCDIR]
1655   --dvidir=DIR            dvi documentation [DOCDIR]
1656   --pdfdir=DIR            pdf documentation [DOCDIR]
1657   --psdir=DIR             ps documentation [DOCDIR]
1658 _ACEOF
1660   cat <<\_ACEOF
1662 Program names:
1663   --program-prefix=PREFIX            prepend PREFIX to installed program names
1664   --program-suffix=SUFFIX            append SUFFIX to installed program names
1665   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1667 System types:
1668   --build=BUILD     configure for building on BUILD [guessed]
1669   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1670   --target=TARGET   configure for building compilers for TARGET [HOST]
1671 _ACEOF
1672 fi
1674 if test -n "$ac_init_help"; then
1675   case $ac_init_help in
1676      short | recursive ) echo "Configuration of rrdtool 1.3.8:";;
1677    esac
1678   cat <<\_ACEOF
1680 Optional Features:
1681   --disable-option-checking  ignore unrecognized --enable/--with options
1682   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1683   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1684   --enable-maintainer-mode  enable make rules and dependencies not useful
1685                           (and sometimes confusing) to the casual installer
1686   --disable-rrdcgi        disable building of rrdcgi
1687   --disable-mmap          disable mmap in rrd_update, use seek+write instead
1688   --disable-pthread       disable multithread support
1689   --enable-static-programs  Build static programs
1690   --disable-dependency-tracking  speeds up one-time build
1691   --enable-dependency-tracking   do not reject slow dependency extractors
1692   --enable-shared[=PKGS]  build shared libraries [default=yes]
1693   --enable-static[=PKGS]  build static libraries [default=yes]
1694   --enable-fast-install[=PKGS]
1695                           optimize for fast installation [default=yes]
1696   --disable-libtool-lock  avoid locking (might break parallel builds)
1697   --disable-libintl        i18n support (libintl)
1698   --disable-nls           do not use Native Language Support
1699   --disable-perl          do not build the perl modules
1700   --enable-perl-site-install   by default the rrdtool perl modules are installed
1701                           together with rrdtool in $prefix/lib/perl. You have to
1702                           put a 'use lib qw($prefix/lib/perl)' into your scripts
1703                           when you want to use them. When you set this option
1704                           the perl modules will get installed wherever
1705                           your perl setup thinks it is best.
1706   --disable-ruby          do not build the ruby modules
1707   --enable-ruby-site-install   by default the rrdtool ruby modules are installed
1708                           together with rrdtool in $prefix/lib/ruby. You have to
1709                           add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1710                           for ruby to find the RRD.so file.
1711   --disable-tcl           do not build the tcl modules
1712   --enable-tcl-site        install the tcl extension in the tcl tree
1713   --disable-python        do not build the python modules
1715 Optional Packages:
1716   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1717   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1718   --with-rrd-default-font=OPTIONS  set the full path to your default font.
1719   --with-pic              try to use only PIC/non-PIC objects [default=use
1720                           both]
1721   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1722   --with-perl-options=OPTIONS  options to pass on command-line when
1723                           generating Makefile from Makefile.PL. If you set this
1724                           option, interesting things may happen unless you know
1725                           what you are doing!
1726   --with-ruby-options=OPTIONS  options to pass on command-line when
1727                           generating Makefile from extconf.rb. If you set this
1728                           option, interesting things may happen unless you know
1729                           what you are doing!
1730   --with-tcllib=DIR       location of the tclConfig.sh
1732 Some influential environment variables:
1733   RRDGRAPH_YLEGEND_ANGLE
1734               Vertical label angle: -90.0 (default) or 90.0
1735   CC          C compiler command
1736   CFLAGS      C compiler flags
1737   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1738               nonstandard directory <lib dir>
1739   LIBS        libraries to pass to the linker, e.g. -l<library>
1740   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1741               you have headers in a nonstandard directory <include dir>
1742   CPP         C preprocessor
1743   PERLCC      [] C compiler for Perl modules
1744   PERLCCFLAGS [] CC flags for Perl modules
1745   PERLLD      [same], [as], [PERLCC] Linker for Perl modules
1746   PERLLDFLAGS [] LD flags for Perl modules
1747   RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1752 _ACEOF
1753 ac_status=$?
1754 fi
1756 if test "$ac_init_help" = "recursive"; then
1757   # If there are subdirs, report their specific --help.
1758   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1759     test -d "$ac_dir" ||
1760       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1761       continue
1762     ac_builddir=.
1764 case "$ac_dir" in
1765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766 *)
1767   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1768   # A ".." for each directory in $ac_dir_suffix.
1769   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1770   case $ac_top_builddir_sub in
1771   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1772   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1773   esac ;;
1774 esac
1775 ac_abs_top_builddir=$ac_pwd
1776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1777 # for backward compatibility:
1778 ac_top_builddir=$ac_top_build_prefix
1780 case $srcdir in
1781   .)  # We are building in place.
1782     ac_srcdir=.
1783     ac_top_srcdir=$ac_top_builddir_sub
1784     ac_abs_top_srcdir=$ac_pwd ;;
1785   [\\/]* | ?:[\\/]* )  # Absolute name.
1786     ac_srcdir=$srcdir$ac_dir_suffix;
1787     ac_top_srcdir=$srcdir
1788     ac_abs_top_srcdir=$srcdir ;;
1789   *) # Relative name.
1790     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1791     ac_top_srcdir=$ac_top_build_prefix$srcdir
1792     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1793 esac
1794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1796     cd "$ac_dir" || { ac_status=$?; continue; }
1797     # Check for guested configure.
1798     if test -f "$ac_srcdir/configure.gnu"; then
1799       echo &&
1800       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1801     elif test -f "$ac_srcdir/configure"; then
1802       echo &&
1803       $SHELL "$ac_srcdir/configure" --help=recursive
1804     else
1805       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1806     fi || ac_status=$?
1807     cd "$ac_pwd" || { ac_status=$?; break; }
1808   done
1809 fi
1811 test -n "$ac_init_help" && exit $ac_status
1812 if $ac_init_version; then
1813   cat <<\_ACEOF
1814 rrdtool configure 1.3.8
1815 generated by GNU Autoconf 2.63
1817 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1818 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1819 This configure script is free software; the Free Software Foundation
1820 gives unlimited permission to copy, distribute and modify it.
1821 _ACEOF
1822   exit
1823 fi
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1828 It was created by rrdtool $as_me 1.3.8, which was
1829 generated by GNU Autoconf 2.63.  Invocation command line was
1831   $ $0 $@
1833 _ACEOF
1834 exec 5>>config.log
1836 cat <<_ASUNAME
1837 ## --------- ##
1838 ## Platform. ##
1839 ## --------- ##
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1850 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1851 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1854 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1855 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1856 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1858 _ASUNAME
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863   IFS=$as_save_IFS
1864   test -z "$as_dir" && as_dir=.
1865   $as_echo "PATH: $as_dir"
1866 done
1867 IFS=$as_save_IFS
1869 } >&5
1871 cat >&5 <<_ACEOF
1874 ## ----------- ##
1875 ## Core tests. ##
1876 ## ----------- ##
1878 _ACEOF
1881 # Keep a trace of the command line.
1882 # Strip out --no-create and --no-recursion so they do not pile up.
1883 # Strip out --silent because we don't want to record it for future runs.
1884 # Also quote any args containing shell meta-characters.
1885 # Make two passes to allow for proper duplicate-argument suppression.
1886 ac_configure_args=
1887 ac_configure_args0=
1888 ac_configure_args1=
1889 ac_must_keep_next=false
1890 for ac_pass in 1 2
1891 do
1892   for ac_arg
1893   do
1894     case $ac_arg in
1895     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1896     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897     | -silent | --silent | --silen | --sile | --sil)
1898       continue ;;
1899     *\'*)
1900       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901     esac
1902     case $ac_pass in
1903     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1904     2)
1905       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1906       if test $ac_must_keep_next = true; then
1907         ac_must_keep_next=false # Got value, back to normal.
1908       else
1909         case $ac_arg in
1910           *=* | --config-cache | -C | -disable-* | --disable-* \
1911           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1912           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1913           | -with-* | --with-* | -without-* | --without-* | --x)
1914             case "$ac_configure_args0 " in
1915               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1916             esac
1917             ;;
1918           -* ) ac_must_keep_next=true ;;
1919         esac
1920       fi
1921       ac_configure_args="$ac_configure_args '$ac_arg'"
1922       ;;
1923     esac
1924   done
1925 done
1926 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1927 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1929 # When interrupted or exit'd, cleanup temporary files, and complete
1930 # config.log.  We remove comments because anyway the quotes in there
1931 # would cause problems or look ugly.
1932 # WARNING: Use '\'' to represent an apostrophe within the trap.
1933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1934 trap 'exit_status=$?
1935   # Save into config.log some information that might help in debugging.
1936   {
1937     echo
1939     cat <<\_ASBOX
1940 ## ---------------- ##
1941 ## Cache variables. ##
1942 ## ---------------- ##
1943 _ASBOX
1944     echo
1945     # The following way of writing the cache mishandles newlines in values,
1947   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1948     eval ac_val=\$$ac_var
1949     case $ac_val in #(
1950     *${as_nl}*)
1951       case $ac_var in #(
1952       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1954       esac
1955       case $ac_var in #(
1956       _ | IFS | as_nl) ;; #(
1957       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1958       *) $as_unset $ac_var ;;
1959       esac ;;
1960     esac
1961   done
1962   (set) 2>&1 |
1963     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1964     *${as_nl}ac_space=\ *)
1965       sed -n \
1966         "s/'\''/'\''\\\\'\'''\''/g;
1967           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1968       ;; #(
1969     *)
1970       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1971       ;;
1972     esac |
1973     sort
1975     echo
1977     cat <<\_ASBOX
1978 ## ----------------- ##
1979 ## Output variables. ##
1980 ## ----------------- ##
1981 _ASBOX
1982     echo
1983     for ac_var in $ac_subst_vars
1984     do
1985       eval ac_val=\$$ac_var
1986       case $ac_val in
1987       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988       esac
1989       $as_echo "$ac_var='\''$ac_val'\''"
1990     done | sort
1991     echo
1993     if test -n "$ac_subst_files"; then
1994       cat <<\_ASBOX
1995 ## ------------------- ##
1996 ## File substitutions. ##
1997 ## ------------------- ##
1998 _ASBOX
1999       echo
2000       for ac_var in $ac_subst_files
2001       do
2002         eval ac_val=\$$ac_var
2003         case $ac_val in
2004         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005         esac
2006         $as_echo "$ac_var='\''$ac_val'\''"
2007       done | sort
2008       echo
2009     fi
2011     if test -s confdefs.h; then
2012       cat <<\_ASBOX
2013 ## ----------- ##
2014 ## confdefs.h. ##
2015 ## ----------- ##
2016 _ASBOX
2017       echo
2018       cat confdefs.h
2019       echo
2020     fi
2021     test "$ac_signal" != 0 &&
2022       $as_echo "$as_me: caught signal $ac_signal"
2023     $as_echo "$as_me: exit $exit_status"
2024   } >&5
2025   rm -f core *.core core.conftest.* &&
2026     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2027     exit $exit_status
2028 ' 0
2029 for ac_signal in 1 2 13 15; do
2030   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2031 done
2032 ac_signal=0
2034 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2035 rm -f -r conftest* confdefs.h
2037 # Predefined preprocessor variables.
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_NAME "$PACKAGE_NAME"
2041 _ACEOF
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046 _ACEOF
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2051 _ACEOF
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_STRING "$PACKAGE_STRING"
2056 _ACEOF
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2061 _ACEOF
2064 # Let the site file select an alternate cache file if it wants to.
2065 # Prefer an explicitly selected file to automatically selected ones.
2066 ac_site_file1=NONE
2067 ac_site_file2=NONE
2068 if test -n "$CONFIG_SITE"; then
2069   ac_site_file1=$CONFIG_SITE
2070 elif test "x$prefix" != xNONE; then
2071   ac_site_file1=$prefix/share/config.site
2072   ac_site_file2=$prefix/etc/config.site
2073 else
2074   ac_site_file1=$ac_default_prefix/share/config.site
2075   ac_site_file2=$ac_default_prefix/etc/config.site
2076 fi
2077 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2078 do
2079   test "x$ac_site_file" = xNONE && continue
2080   if test -r "$ac_site_file"; then
2081     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2083     sed 's/^/| /' "$ac_site_file" >&5
2084     . "$ac_site_file"
2085   fi
2086 done
2088 if test -r "$cache_file"; then
2089   # Some versions of bash will fail to source /dev/null (special
2090   # files actually), so we avoid doing that.
2091   if test -f "$cache_file"; then
2092     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2093 $as_echo "$as_me: loading cache $cache_file" >&6;}
2094     case $cache_file in
2095       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096       *)                      . "./$cache_file";;
2097     esac
2098   fi
2099 else
2100   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2101 $as_echo "$as_me: creating cache $cache_file" >&6;}
2102   >$cache_file
2103 fi
2105 # Check that the precious variables saved in the cache have kept the same
2106 # value.
2107 ac_cache_corrupted=false
2108 for ac_var in $ac_precious_vars; do
2109   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110   eval ac_new_set=\$ac_env_${ac_var}_set
2111   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112   eval ac_new_val=\$ac_env_${ac_var}_value
2113   case $ac_old_set,$ac_new_set in
2114     set,)
2115       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117       ac_cache_corrupted=: ;;
2118     ,set)
2119       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121       ac_cache_corrupted=: ;;
2122     ,);;
2123     *)
2124       if test "x$ac_old_val" != "x$ac_new_val"; then
2125         # differences in whitespace do not lead to failure.
2126         ac_old_val_w=`echo x $ac_old_val`
2127         ac_new_val_w=`echo x $ac_new_val`
2128         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131           ac_cache_corrupted=:
2132         else
2133           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135           eval $ac_var=\$ac_old_val
2136         fi
2137         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2138 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2139         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2140 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2141       fi;;
2142   esac
2143   # Pass precious variables to config.status.
2144   if test "$ac_new_set" = set; then
2145     case $ac_new_val in
2146     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147     *) ac_arg=$ac_var=$ac_new_val ;;
2148     esac
2149     case " $ac_configure_args " in
2150       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2151       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2152     esac
2153   fi
2154 done
2155 if $ac_cache_corrupted; then
2156   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2161 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2162    { (exit 1); exit 1; }; }
2163 fi
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 NUMVERS=1.3008
2200 LIBVERS=4:7:0
2203 ac_aux_dir=
2204 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2205   if test -f "$ac_dir/install-sh"; then
2206     ac_aux_dir=$ac_dir
2207     ac_install_sh="$ac_aux_dir/install-sh -c"
2208     break
2209   elif test -f "$ac_dir/install.sh"; then
2210     ac_aux_dir=$ac_dir
2211     ac_install_sh="$ac_aux_dir/install.sh -c"
2212     break
2213   elif test -f "$ac_dir/shtool"; then
2214     ac_aux_dir=$ac_dir
2215     ac_install_sh="$ac_aux_dir/shtool install -c"
2216     break
2217   fi
2218 done
2219 if test -z "$ac_aux_dir"; then
2220   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2221 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2222    { (exit 1); exit 1; }; }
2223 fi
2225 # These three variables are undocumented and unsupported,
2226 # and are intended to be withdrawn in a future Autoconf release.
2227 # They can cause serious problems if a builder's source tree is in a directory
2228 # whose full name contains unusual characters.
2229 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2230 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2231 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2234 # Make sure we can run config.sub.
2235 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2236   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2237 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2238    { (exit 1); exit 1; }; }
2240 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2241 $as_echo_n "checking build system type... " >&6; }
2242 if test "${ac_cv_build+set}" = set; then
2243   $as_echo_n "(cached) " >&6
2244 else
2245   ac_build_alias=$build_alias
2246 test "x$ac_build_alias" = x &&
2247   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2248 test "x$ac_build_alias" = x &&
2249   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2250 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2251    { (exit 1); exit 1; }; }
2252 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2253   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2254 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2255    { (exit 1); exit 1; }; }
2257 fi
2258 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2259 $as_echo "$ac_cv_build" >&6; }
2260 case $ac_cv_build in
2261 *-*-*) ;;
2262 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2263 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2264    { (exit 1); exit 1; }; };;
2265 esac
2266 build=$ac_cv_build
2267 ac_save_IFS=$IFS; IFS='-'
2268 set x $ac_cv_build
2269 shift
2270 build_cpu=$1
2271 build_vendor=$2
2272 shift; shift
2273 # Remember, the first character of IFS is used to create $*,
2274 # except with old shells:
2275 build_os=$*
2276 IFS=$ac_save_IFS
2277 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2280 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2281 $as_echo_n "checking host system type... " >&6; }
2282 if test "${ac_cv_host+set}" = set; then
2283   $as_echo_n "(cached) " >&6
2284 else
2285   if test "x$host_alias" = x; then
2286   ac_cv_host=$ac_cv_build
2287 else
2288   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2289     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2290 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2291    { (exit 1); exit 1; }; }
2292 fi
2294 fi
2295 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2296 $as_echo "$ac_cv_host" >&6; }
2297 case $ac_cv_host in
2298 *-*-*) ;;
2299 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2300 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2301    { (exit 1); exit 1; }; };;
2302 esac
2303 host=$ac_cv_host
2304 ac_save_IFS=$IFS; IFS='-'
2305 set x $ac_cv_host
2306 shift
2307 host_cpu=$1
2308 host_vendor=$2
2309 shift; shift
2310 # Remember, the first character of IFS is used to create $*,
2311 # except with old shells:
2312 host_os=$*
2313 IFS=$ac_save_IFS
2314 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2317 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2318 $as_echo_n "checking target system type... " >&6; }
2319 if test "${ac_cv_target+set}" = set; then
2320   $as_echo_n "(cached) " >&6
2321 else
2322   if test "x$target_alias" = x; then
2323   ac_cv_target=$ac_cv_host
2324 else
2325   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2326     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2327 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2328    { (exit 1); exit 1; }; }
2329 fi
2331 fi
2332 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2333 $as_echo "$ac_cv_target" >&6; }
2334 case $ac_cv_target in
2335 *-*-*) ;;
2336 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2337 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2338    { (exit 1); exit 1; }; };;
2339 esac
2340 target=$ac_cv_target
2341 ac_save_IFS=$IFS; IFS='-'
2342 set x $ac_cv_target
2343 shift
2344 target_cpu=$1
2345 target_vendor=$2
2346 shift; shift
2347 # Remember, the first character of IFS is used to create $*,
2348 # except with old shells:
2349 target_os=$*
2350 IFS=$ac_save_IFS
2351 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2354 # The aliases save the names the user supplied, while $host etc.
2355 # will get canonicalized.
2356 test -n "$target_alias" &&
2357   test "$program_prefix$program_suffix$program_transform_name" = \
2358     NONENONEs,x,x, &&
2359   program_prefix=${target_alias}-
2360 am__api_version='1.10'
2362 # Find a good install program.  We prefer a C program (faster),
2363 # so one script is as good as another.  But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2368 # AIX /bin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 # Reject install programs that cannot install multiple files.
2376 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2378 if test -z "$INSTALL"; then
2379 if test "${ac_cv_path_install+set}" = set; then
2380   $as_echo_n "(cached) " >&6
2381 else
2382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385   IFS=$as_save_IFS
2386   test -z "$as_dir" && as_dir=.
2387   # Account for people who put trailing slashes in PATH elements.
2388 case $as_dir/ in
2389   ./ | .// | /cC/* | \
2390   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2392   /usr/ucb/* ) ;;
2393   *)
2394     # OSF1 and SCO ODT 3.0 have their own names for install.
2395     # Don't use installbsd from OSF since it installs stuff as root
2396     # by default.
2397     for ac_prog in ginstall scoinst install; do
2398       for ac_exec_ext in '' $ac_executable_extensions; do
2399         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2400           if test $ac_prog = install &&
2401             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402             # AIX install.  It has an incompatible calling convention.
2403             :
2404           elif test $ac_prog = install &&
2405             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406             # program-specific install script used by HP pwplus--don't use.
2407             :
2408           else
2409             rm -rf conftest.one conftest.two conftest.dir
2410             echo one > conftest.one
2411             echo two > conftest.two
2412             mkdir conftest.dir
2413             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414               test -s conftest.one && test -s conftest.two &&
2415               test -s conftest.dir/conftest.one &&
2416               test -s conftest.dir/conftest.two
2417             then
2418               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419               break 3
2420             fi
2421           fi
2422         fi
2423       done
2424     done
2425     ;;
2426 esac
2428 done
2429 IFS=$as_save_IFS
2431 rm -rf conftest.one conftest.two conftest.dir
2433 fi
2434   if test "${ac_cv_path_install+set}" = set; then
2435     INSTALL=$ac_cv_path_install
2436   else
2437     # As a last resort, use the slow shell script.  Don't cache a
2438     # value for INSTALL within a source directory, because that will
2439     # break other packages using the cache if that directory is
2440     # removed, or if the value is a relative name.
2441     INSTALL=$ac_install_sh
2442   fi
2443 fi
2444 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2445 $as_echo "$INSTALL" >&6; }
2447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448 # It thinks the first close brace ends the variable substitution.
2449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2455 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2456 $as_echo_n "checking whether build environment is sane... " >&6; }
2457 # Just in case
2458 sleep 1
2459 echo timestamp > conftest.file
2460 # Do `set' in a subshell so we don't clobber the current shell's
2461 # arguments.  Must try -L first in case configure is actually a
2462 # symlink; some systems play weird games with the mod time of symlinks
2463 # (eg FreeBSD returns the mod time of the symlink's containing
2464 # directory).
2465 if (
2466    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2467    if test "$*" = "X"; then
2468       # -L didn't work.
2469       set X `ls -t $srcdir/configure conftest.file`
2470    fi
2471    rm -f conftest.file
2472    if test "$*" != "X $srcdir/configure conftest.file" \
2473       && test "$*" != "X conftest.file $srcdir/configure"; then
2475       # If neither matched, then we have a broken ls.  This can happen
2476       # if, for instance, CONFIG_SHELL is bash and it inherits a
2477       # broken ls alias from the environment.  This has actually
2478       # happened.  Such a system could not be considered "sane".
2479       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2480 alias in your environment" >&5
2481 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2482 alias in your environment" >&2;}
2483    { (exit 1); exit 1; }; }
2484    fi
2486    test "$2" = conftest.file
2487    )
2488 then
2489    # Ok.
2490    :
2491 else
2492    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2493 Check your system clock" >&5
2494 $as_echo "$as_me: error: newly created file is older than distributed files!
2495 Check your system clock" >&2;}
2496    { (exit 1); exit 1; }; }
2497 fi
2498 { $as_echo "$as_me:$LINENO: result: yes" >&5
2499 $as_echo "yes" >&6; }
2500 test "$program_prefix" != NONE &&
2501   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2502 # Use a double $ so make ignores it.
2503 test "$program_suffix" != NONE &&
2504   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2505 # Double any \ or $.
2506 # By default was `s,x,x', remove it if useless.
2507 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2508 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2510 # expand $ac_aux_dir to an absolute path
2511 am_aux_dir=`cd $ac_aux_dir && pwd`
2513 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2514 # Use eval to expand $SHELL
2515 if eval "$MISSING --run true"; then
2516   am_missing_run="$MISSING --run "
2517 else
2518   am_missing_run=
2519   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2520 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2521 fi
2523 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2524 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2525 if test -z "$MKDIR_P"; then
2526   if test "${ac_cv_path_mkdir+set}" = set; then
2527   $as_echo_n "(cached) " >&6
2528 else
2529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2531 do
2532   IFS=$as_save_IFS
2533   test -z "$as_dir" && as_dir=.
2534   for ac_prog in mkdir gmkdir; do
2535          for ac_exec_ext in '' $ac_executable_extensions; do
2536            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2537            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2538              'mkdir (GNU coreutils) '* | \
2539              'mkdir (coreutils) '* | \
2540              'mkdir (fileutils) '4.1*)
2541                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2542                break 3;;
2543            esac
2544          done
2545        done
2546 done
2547 IFS=$as_save_IFS
2549 fi
2551   if test "${ac_cv_path_mkdir+set}" = set; then
2552     MKDIR_P="$ac_cv_path_mkdir -p"
2553   else
2554     # As a last resort, use the slow shell script.  Don't cache a
2555     # value for MKDIR_P within a source directory, because that will
2556     # break other packages using the cache if that directory is
2557     # removed, or if the value is a relative name.
2558     test -d ./--version && rmdir ./--version
2559     MKDIR_P="$ac_install_sh -d"
2560   fi
2561 fi
2562 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2563 $as_echo "$MKDIR_P" >&6; }
2565 mkdir_p="$MKDIR_P"
2566 case $mkdir_p in
2567   [\\/$]* | ?:[\\/]*) ;;
2568   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2569 esac
2571 for ac_prog in gawk mawk nawk awk
2572 do
2573   # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if test "${ac_cv_prog_AWK+set}" = set; then
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test -n "$AWK"; then
2581   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     ac_cv_prog_AWK="$ac_prog"
2591     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592     break 2
2593   fi
2594 done
2595 done
2596 IFS=$as_save_IFS
2598 fi
2599 fi
2600 AWK=$ac_cv_prog_AWK
2601 if test -n "$AWK"; then
2602   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2603 $as_echo "$AWK" >&6; }
2604 else
2605   { $as_echo "$as_me:$LINENO: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2610   test -n "$AWK" && break
2611 done
2613 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2615 set x ${MAKE-make}
2616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2617 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2618   $as_echo_n "(cached) " >&6
2619 else
2620   cat >conftest.make <<\_ACEOF
2621 SHELL = /bin/sh
2622 all:
2623         @echo '@@@%%%=$(MAKE)=@@@%%%'
2624 _ACEOF
2625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2627   *@@@%%%=?*=@@@%%%*)
2628     eval ac_cv_prog_make_${ac_make}_set=yes;;
2629   *)
2630     eval ac_cv_prog_make_${ac_make}_set=no;;
2631 esac
2632 rm -f conftest.make
2633 fi
2634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2635   { $as_echo "$as_me:$LINENO: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637   SET_MAKE=
2638 else
2639   { $as_echo "$as_me:$LINENO: result: no" >&5
2640 $as_echo "no" >&6; }
2641   SET_MAKE="MAKE=${MAKE-make}"
2642 fi
2644 rm -rf .tst 2>/dev/null
2645 mkdir .tst 2>/dev/null
2646 if test -d .tst; then
2647   am__leading_dot=.
2648 else
2649   am__leading_dot=_
2650 fi
2651 rmdir .tst 2>/dev/null
2653 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2654   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2655   # is not polluted with repeated "-I."
2656   am__isrc=' -I$(srcdir)'
2657   # test to see if srcdir already configured
2658   if test -f $srcdir/config.status; then
2659     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2660 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2661    { (exit 1); exit 1; }; }
2662   fi
2663 fi
2665 # test whether we have cygpath
2666 if test -z "$CYGPATH_W"; then
2667   if (cygpath --version) >/dev/null 2>/dev/null; then
2668     CYGPATH_W='cygpath -w'
2669   else
2670     CYGPATH_W=echo
2671   fi
2672 fi
2675 # Define the identity of the package.
2676  PACKAGE='rrdtool'
2677  VERSION='1.3.8'
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE "$PACKAGE"
2682 _ACEOF
2685 cat >>confdefs.h <<_ACEOF
2686 #define VERSION "$VERSION"
2687 _ACEOF
2689 # Some tools Automake needs.
2691 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2694 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2697 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2700 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2703 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2705 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2707 # Installed binaries are usually stripped using `strip' when the user
2708 # run `make install-strip'.  However `strip' might not be the right
2709 # tool to use in cross-compilation environments, therefore Automake
2710 # will honor the `STRIP' environment variable to overrule this program.
2711 if test "$cross_compiling" != no; then
2712   if test -n "$ac_tool_prefix"; then
2713   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}strip; ac_word=$2
2715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if test "${ac_cv_prog_STRIP+set}" = set; then
2718   $as_echo_n "(cached) " >&6
2719 else
2720   if test -n "$STRIP"; then
2721   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728   for ac_exec_ext in '' $ac_executable_extensions; do
2729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2731     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732     break 2
2733   fi
2734 done
2735 done
2736 IFS=$as_save_IFS
2738 fi
2739 fi
2740 STRIP=$ac_cv_prog_STRIP
2741 if test -n "$STRIP"; then
2742   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2743 $as_echo "$STRIP" >&6; }
2744 else
2745   { $as_echo "$as_me:$LINENO: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2750 fi
2751 if test -z "$ac_cv_prog_STRIP"; then
2752   ac_ct_STRIP=$STRIP
2753   # Extract the first word of "strip", so it can be a program name with args.
2754 set dummy strip; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2758   $as_echo_n "(cached) " >&6
2759 else
2760   if test -n "$ac_ct_STRIP"; then
2761   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768   for ac_exec_ext in '' $ac_executable_extensions; do
2769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770     ac_cv_prog_ac_ct_STRIP="strip"
2771     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772     break 2
2773   fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2778 fi
2779 fi
2780 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2781 if test -n "$ac_ct_STRIP"; then
2782   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2783 $as_echo "$ac_ct_STRIP" >&6; }
2784 else
2785   { $as_echo "$as_me:$LINENO: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2789   if test "x$ac_ct_STRIP" = x; then
2790     STRIP=":"
2791   else
2792     case $cross_compiling:$ac_tool_warned in
2793 yes:)
2794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798     STRIP=$ac_ct_STRIP
2799   fi
2800 else
2801   STRIP="$ac_cv_prog_STRIP"
2802 fi
2804 fi
2805 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2807 # We need awk for the "check" target.  The system "awk" is bad on
2808 # some platforms.
2809 # Always define AMTAR for backward compatibility.
2811 AMTAR=${AMTAR-"${am_missing_run}tar"}
2813 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2819 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2820 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2821     # Check whether --enable-maintainer-mode was given.
2822 if test "${enable_maintainer_mode+set}" = set; then
2823   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2824 else
2825   USE_MAINTAINER_MODE=no
2826 fi
2828   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2829 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2830    if test $USE_MAINTAINER_MODE = yes; then
2831   MAINTAINER_MODE_TRUE=
2832   MAINTAINER_MODE_FALSE='#'
2833 else
2834   MAINTAINER_MODE_TRUE='#'
2835   MAINTAINER_MODE_FALSE=
2836 fi
2838   MAINT=$MAINTAINER_MODE_TRUE
2843 ac_config_headers="$ac_config_headers rrd_config.h"
2865 cat >>confdefs.h <<_ACEOF
2866 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2867 _ACEOF
2870 # Check whether --enable-rrdcgi was given.
2871 if test "${enable_rrdcgi+set}" = set; then
2872   enableval=$enable_rrdcgi;
2873 else
2874   enable_rrdcgi=yes
2875 fi
2879 # Check whether --with-rrd-default-font was given.
2880 if test "${with_rrd_default_font+set}" = set; then
2881   withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2882 else
2884   if test -d ${WINDIR:-nodir}/cour.ttf ; then
2885         RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2886   else
2887         RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
2888   fi
2890 fi
2893 # Check whether --enable-mmap was given.
2894 if test "${enable_mmap+set}" = set; then
2895   enableval=$enable_mmap;
2896 else
2897   enable_mmap=yes
2898 fi
2901 # Check whether --enable-pthread was given.
2902 if test "${enable_pthread+set}" = set; then
2903   enableval=$enable_pthread;
2904 else
2905   enable_pthread=yes
2906 fi
2909 # Check whether --enable-static-programs was given.
2910 if test "${enable_static_programs+set}" = set; then
2911   enableval=$enable_static_programs; case "${enableval}" in
2912        yes) staticprogs=yes ;;
2913        no)  staticprogs=no ;;
2914        *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
2915 $as_echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
2916    { (exit 1); exit 1; }; } ;;
2917      esac
2918 else
2919   staticprogs=no
2920 fi
2922  if test "x$staticprogs" = "xyes"; then
2923   STATIC_PROGRAMS_TRUE=
2924   STATIC_PROGRAMS_FALSE='#'
2925 else
2926   STATIC_PROGRAMS_TRUE='#'
2927   STATIC_PROGRAMS_FALSE=
2928 fi
2933 case $TERM in
2934        #   for the most important terminal types we directly know the sequences
2935        xterm|xterm*|vt220|vt220*)
2936                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2937                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2938        ;;
2939        vt100|vt100*|cygwin)
2940                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2941                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2942        ;;
2943        *)
2944                T_MD=''
2945                T_ME=''
2946        ;;
2947 esac
2948   { $as_echo "$as_me:$LINENO: result: " >&5
2949 $as_echo "" >&6; }
2950   { $as_echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2951 $as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 if test -n "$ac_tool_prefix"; then
2961   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then
2966   $as_echo_n "(cached) " >&6
2967 else
2968   if test -n "$CC"; then
2969   ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976   for ac_exec_ext in '' $ac_executable_extensions; do
2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993   { $as_echo "$as_me:$LINENO: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2998 fi
2999 if test -z "$ac_cv_prog_CC"; then
3000   ac_ct_CC=$CC
3001   # Extract the first word of "gcc", so it can be a program name with args.
3002 set dummy gcc; ac_word=$2
3003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$ac_ct_CC"; then
3009   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016   for ac_exec_ext in '' $ac_executable_extensions; do
3017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018     ac_cv_prog_ac_ct_CC="gcc"
3019     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3026 fi
3027 fi
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3031 $as_echo "$ac_ct_CC" >&6; }
3032 else
3033   { $as_echo "$as_me:$LINENO: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3037   if test "x$ac_ct_CC" = x; then
3038     CC=""
3039   else
3040     case $cross_compiling:$ac_tool_warned in
3041 yes:)
3042 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046     CC=$ac_ct_CC
3047   fi
3048 else
3049   CC="$ac_cv_prog_CC"
3050 fi
3052 if test -z "$CC"; then
3053           if test -n "$ac_tool_prefix"; then
3054     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}cc; ac_word=$2
3056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_CC+set}" = set; then
3059   $as_echo_n "(cached) " >&6
3060 else
3061   if test -n "$CC"; then
3062   ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069   for ac_exec_ext in '' $ac_executable_extensions; do
3070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071     ac_cv_prog_CC="${ac_tool_prefix}cc"
3072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086   { $as_echo "$as_me:$LINENO: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3091   fi
3092 fi
3093 if test -z "$CC"; then
3094   # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104   ac_prog_rejected=no
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110   for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113        ac_prog_rejected=yes
3114        continue
3115      fi
3116     ac_cv_prog_CC="cc"
3117     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3124 if test $ac_prog_rejected = yes; then
3125   # We found a bogon in the path, so make sure we never use it.
3126   set dummy $ac_cv_prog_CC
3127   shift
3128   if test $# != 0; then
3129     # We chose a different compiler from the bogus one.
3130     # However, it has the same basename, so the bogon will be chosen
3131     # first if we set CC to just the basename; use the full file name.
3132     shift
3133     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134   fi
3135 fi
3136 fi
3137 fi
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3142 else
3143   { $as_echo "$as_me:$LINENO: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3148 fi
3149 if test -z "$CC"; then
3150   if test -n "$ac_tool_prefix"; then
3151   for ac_prog in cl.exe
3152   do
3153     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then
3158   $as_echo_n "(cached) " >&6
3159 else
3160   if test -n "$CC"; then
3161   ac_cv_prog_CC="$CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166   IFS=$as_save_IFS
3167   test -z "$as_dir" && as_dir=.
3168   for ac_exec_ext in '' $ac_executable_extensions; do
3169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172     break 2
3173   fi
3174 done
3175 done
3176 IFS=$as_save_IFS
3178 fi
3179 fi
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3184 else
3185   { $as_echo "$as_me:$LINENO: result: no" >&5
3186 $as_echo "no" >&6; }
3187 fi
3190     test -n "$CC" && break
3191   done
3192 fi
3193 if test -z "$CC"; then
3194   ac_ct_CC=$CC
3195   for ac_prog in cl.exe
3196 do
3197   # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3202   $as_echo_n "(cached) " >&6
3203 else
3204   if test -n "$ac_ct_CC"; then
3205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212   for ac_exec_ext in '' $ac_executable_extensions; do
3213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214     ac_cv_prog_ac_ct_CC="$ac_prog"
3215     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3222 fi
3223 fi
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3227 $as_echo "$ac_ct_CC" >&6; }
3228 else
3229   { $as_echo "$as_me:$LINENO: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3234   test -n "$ac_ct_CC" && break
3235 done
3237   if test "x$ac_ct_CC" = x; then
3238     CC=""
3239   else
3240     case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246     CC=$ac_ct_CC
3247   fi
3248 fi
3250 fi
3253 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3256 See \`config.log' for more details." >&5
3257 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details." >&2;}
3259    { (exit 1); exit 1; }; }; }
3261 # Provide some information about the compiler.
3262 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3263 set X $ac_compile
3264 ac_compiler=$2
3265 { (ac_try="$ac_compiler --version >&5"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272   (eval "$ac_compiler --version >&5") 2>&5
3273   ac_status=$?
3274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }
3276 { (ac_try="$ac_compiler -v >&5"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283   (eval "$ac_compiler -v >&5") 2>&5
3284   ac_status=$?
3285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }
3287 { (ac_try="$ac_compiler -V >&5"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294   (eval "$ac_compiler -V >&5") 2>&5
3295   ac_status=$?
3296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3306 int
3307 main ()
3310   ;
3311   return 0;
3313 _ACEOF
3314 ac_clean_files_save=$ac_clean_files
3315 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3316 # Try to create an executable without -o first, disregard a.out.
3317 # It will help us diagnose broken compilers, and finding out an intuition
3318 # of exeext.
3319 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3320 $as_echo_n "checking for C compiler default output file name... " >&6; }
3321 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3323 # The possible output files:
3324 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3326 ac_rmfiles=
3327 for ac_file in $ac_files
3328 do
3329   case $ac_file in
3330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3332   esac
3333 done
3334 rm -f $ac_rmfiles
3336 if { (ac_try="$ac_link_default"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3342 $as_echo "$ac_try_echo") >&5
3343   (eval "$ac_link_default") 2>&5
3344   ac_status=$?
3345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); }; then
3347   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3349 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3350 # so that the user can short-circuit this test for compilers unknown to
3351 # Autoconf.
3352 for ac_file in $ac_files ''
3353 do
3354   test -f "$ac_file" || continue
3355   case $ac_file in
3356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3357         ;;
3358     [ab].out )
3359         # We found the default executable, but exeext='' is most
3360         # certainly right.
3361         break;;
3362     *.* )
3363         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3364         then :; else
3365            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366         fi
3367         # We set ac_cv_exeext here because the later test for it is not
3368         # safe: cross compilers may not add the suffix if given an `-o'
3369         # argument, so we may need to know it at that point already.
3370         # Even if this section looks crufty: it has the advantage of
3371         # actually working.
3372         break;;
3373     * )
3374         break;;
3375   esac
3376 done
3377 test "$ac_cv_exeext" = no && ac_cv_exeext=
3379 else
3380   ac_file=''
3381 fi
3383 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3384 $as_echo "$ac_file" >&6; }
3385 if test -z "$ac_file"; then
3386   $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3392 See \`config.log' for more details." >&5
3393 $as_echo "$as_me: error: C compiler cannot create executables
3394 See \`config.log' for more details." >&2;}
3395    { (exit 77); exit 77; }; }; }
3396 fi
3398 ac_exeext=$ac_cv_exeext
3400 # Check that the compiler produces executables we can run.  If not, either
3401 # the compiler is broken, or we cross compile.
3402 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3403 $as_echo_n "checking whether the C compiler works... " >&6; }
3404 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3405 # If not cross compiling, check that we can run a simple program.
3406 if test "$cross_compiling" != yes; then
3407   if { ac_try='./$ac_file'
3408   { (case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413 $as_echo "$ac_try_echo") >&5
3414   (eval "$ac_try") 2>&5
3415   ac_status=$?
3416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); }; }; then
3418     cross_compiling=no
3419   else
3420     if test "$cross_compiling" = maybe; then
3421         cross_compiling=yes
3422     else
3423         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3426 If you meant to cross compile, use \`--host'.
3427 See \`config.log' for more details." >&5
3428 $as_echo "$as_me: error: cannot run C compiled programs.
3429 If you meant to cross compile, use \`--host'.
3430 See \`config.log' for more details." >&2;}
3431    { (exit 1); exit 1; }; }; }
3432     fi
3433   fi
3434 fi
3435 { $as_echo "$as_me:$LINENO: result: yes" >&5
3436 $as_echo "yes" >&6; }
3438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3439 ac_clean_files=$ac_clean_files_save
3440 # Check that the compiler produces executables we can run.  If not, either
3441 # the compiler is broken, or we cross compile.
3442 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3443 $as_echo_n "checking whether we are cross compiling... " >&6; }
3444 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3445 $as_echo "$cross_compiling" >&6; }
3447 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3448 $as_echo_n "checking for suffix of executables... " >&6; }
3449 if { (ac_try="$ac_link"
3450 case "(($ac_try" in
3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452   *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456   (eval "$ac_link") 2>&5
3457   ac_status=$?
3458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); }; then
3460   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3461 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3462 # work properly (i.e., refer to `conftest.exe'), while it won't with
3463 # `rm'.
3464 for ac_file in conftest.exe conftest conftest.*; do
3465   test -f "$ac_file" || continue
3466   case $ac_file in
3467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3468     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3469           break;;
3470     * ) break;;
3471   esac
3472 done
3473 else
3474   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3477 See \`config.log' for more details." >&5
3478 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3479 See \`config.log' for more details." >&2;}
3480    { (exit 1); exit 1; }; }; }
3481 fi
3483 rm -f conftest$ac_cv_exeext
3484 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3485 $as_echo "$ac_cv_exeext" >&6; }
3487 rm -f conftest.$ac_ext
3488 EXEEXT=$ac_cv_exeext
3489 ac_exeext=$EXEEXT
3490 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3491 $as_echo_n "checking for suffix of object files... " >&6; }
3492 if test "${ac_cv_objext+set}" = set; then
3493   $as_echo_n "(cached) " >&6
3494 else
3495   cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3502 int
3503 main ()
3506   ;
3507   return 0;
3509 _ACEOF
3510 rm -f conftest.o conftest.obj
3511 if { (ac_try="$ac_compile"
3512 case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3517 $as_echo "$ac_try_echo") >&5
3518   (eval "$ac_compile") 2>&5
3519   ac_status=$?
3520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); }; then
3522   for ac_file in conftest.o conftest.obj conftest.*; do
3523   test -f "$ac_file" || continue;
3524   case $ac_file in
3525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3526     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3527        break;;
3528   esac
3529 done
3530 else
3531   $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3537 See \`config.log' for more details." >&5
3538 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3539 See \`config.log' for more details." >&2;}
3540    { (exit 1); exit 1; }; }; }
3541 fi
3543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3544 fi
3545 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3546 $as_echo "$ac_cv_objext" >&6; }
3547 OBJEXT=$ac_cv_objext
3548 ac_objext=$OBJEXT
3549 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3550 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3552   $as_echo_n "(cached) " >&6
3553 else
3554   cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3561 int
3562 main ()
3564 #ifndef __GNUC__
3565        choke me
3566 #endif
3568   ;
3569   return 0;
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3579 $as_echo "$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   $as_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_compiler_gnu=yes
3591 else
3592   $as_echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595         ac_compiler_gnu=no
3596 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3601 fi
3602 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3604 if test $ac_compiler_gnu = yes; then
3605   GCC=yes
3606 else
3607   GCC=
3608 fi
3609 ac_test_CFLAGS=${CFLAGS+set}
3610 ac_save_CFLAGS=$CFLAGS
3611 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3613 if test "${ac_cv_prog_cc_g+set}" = set; then
3614   $as_echo_n "(cached) " >&6
3615 else
3616   ac_save_c_werror_flag=$ac_c_werror_flag
3617    ac_c_werror_flag=yes
3618    ac_cv_prog_cc_g=no
3619    CFLAGS="-g"
3620    cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3627 int
3628 main ()
3631   ;
3632   return 0;
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (ac_try="$ac_compile"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643   (eval "$ac_compile") 2>conftest.er1
3644   ac_status=$?
3645   grep -v '^ *+' conftest.er1 >conftest.err
3646   rm -f conftest.er1
3647   cat conftest.err >&5
3648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } && {
3650          test -z "$ac_c_werror_flag" ||
3651          test ! -s conftest.err
3652        } && test -s conftest.$ac_objext; then
3653   ac_cv_prog_cc_g=yes
3654 else
3655   $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658         CFLAGS=""
3659       cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3666 int
3667 main ()
3670   ;
3671   return 0;
3673 _ACEOF
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3681 $as_echo "$ac_try_echo") >&5
3682   (eval "$ac_compile") 2>conftest.er1
3683   ac_status=$?
3684   grep -v '^ *+' conftest.er1 >conftest.err
3685   rm -f conftest.er1
3686   cat conftest.err >&5
3687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } && {
3689          test -z "$ac_c_werror_flag" ||
3690          test ! -s conftest.err
3691        } && test -s conftest.$ac_objext; then
3692   :
3693 else
3694   $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697         ac_c_werror_flag=$ac_save_c_werror_flag
3698          CFLAGS="-g"
3699          cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3706 int
3707 main ()
3710   ;
3711   return 0;
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (ac_try="$ac_compile"
3716 case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721 $as_echo "$ac_try_echo") >&5
3722   (eval "$ac_compile") 2>conftest.er1
3723   ac_status=$?
3724   grep -v '^ *+' conftest.er1 >conftest.err
3725   rm -f conftest.er1
3726   cat conftest.err >&5
3727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); } && {
3729          test -z "$ac_c_werror_flag" ||
3730          test ! -s conftest.err
3731        } && test -s conftest.$ac_objext; then
3732   ac_cv_prog_cc_g=yes
3733 else
3734   $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3738 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747    ac_c_werror_flag=$ac_save_c_werror_flag
3748 fi
3749 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3750 $as_echo "$ac_cv_prog_cc_g" >&6; }
3751 if test "$ac_test_CFLAGS" = set; then
3752   CFLAGS=$ac_save_CFLAGS
3753 elif test $ac_cv_prog_cc_g = yes; then
3754   if test "$GCC" = yes; then
3755     CFLAGS="-g -O2"
3756   else
3757     CFLAGS="-g"
3758   fi
3759 else
3760   if test "$GCC" = yes; then
3761     CFLAGS="-O2"
3762   else
3763     CFLAGS=
3764   fi
3765 fi
3766 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3767 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3768 if test "${ac_cv_prog_cc_c89+set}" = set; then
3769   $as_echo_n "(cached) " >&6
3770 else
3771   ac_cv_prog_cc_c89=no
3772 ac_save_CC=$CC
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 #include <stdarg.h>
3780 #include <stdio.h>
3781 #include <sys/types.h>
3782 #include <sys/stat.h>
3783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3784 struct buf { int x; };
3785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3786 static char *e (p, i)
3787      char **p;
3788      int i;
3790   return p[i];
3792 static char *f (char * (*g) (char **, int), char **p, ...)
3794   char *s;
3795   va_list v;
3796   va_start (v,p);
3797   s = g (p, va_arg (v,int));
3798   va_end (v);
3799   return s;
3802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3803    function prototypes and stuff, but not '\xHH' hex character constants.
3804    These don't provoke an error unfortunately, instead are silently treated
3805    as 'x'.  The following induces an error, until -std is added to get
3806    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3807    array size at least.  It's necessary to write '\x00'==0 to get something
3808    that's true only with -std.  */
3809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3812    inside strings and character constants.  */
3813 #define FOO(x) 'x'
3814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3816 int test (int i, double x);
3817 struct s1 {int (*f) (int a);};
3818 struct s2 {int (*f) (double a);};
3819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3820 int argc;
3821 char **argv;
3822 int
3823 main ()
3825 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3826   ;
3827   return 0;
3829 _ACEOF
3830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3831         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3832 do
3833   CC="$ac_save_CC $ac_arg"
3834   rm -f conftest.$ac_objext
3835 if { (ac_try="$ac_compile"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841 $as_echo "$ac_try_echo") >&5
3842   (eval "$ac_compile") 2>conftest.er1
3843   ac_status=$?
3844   grep -v '^ *+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } && {
3849          test -z "$ac_c_werror_flag" ||
3850          test ! -s conftest.err
3851        } && test -s conftest.$ac_objext; then
3852   ac_cv_prog_cc_c89=$ac_arg
3853 else
3854   $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3858 fi
3860 rm -f core conftest.err conftest.$ac_objext
3861   test "x$ac_cv_prog_cc_c89" != "xno" && break
3862 done
3863 rm -f conftest.$ac_ext
3864 CC=$ac_save_CC
3866 fi
3867 # AC_CACHE_VAL
3868 case "x$ac_cv_prog_cc_c89" in
3869   x)
3870     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3871 $as_echo "none needed" >&6; } ;;
3872   xno)
3873     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3874 $as_echo "unsupported" >&6; } ;;
3875   *)
3876     CC="$CC $ac_cv_prog_cc_c89"
3877     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3879 esac
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 DEPDIR="${am__leading_dot}deps"
3889 ac_config_commands="$ac_config_commands depfiles"
3892 am_make=${MAKE-make}
3893 cat > confinc << 'END'
3894 am__doit:
3895         @echo done
3896 .PHONY: am__doit
3897 END
3898 # If we don't find an include directive, just comment out the code.
3899 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3900 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3901 am__include="#"
3902 am__quote=
3903 _am_result=none
3904 # First try GNU make style include.
3905 echo "include confinc" > confmf
3906 # We grep out `Entering directory' and `Leaving directory'
3907 # messages which can occur if `w' ends up in MAKEFLAGS.
3908 # In particular we don't look at `^make:' because GNU make might
3909 # be invoked under some other name (usually "gmake"), in which
3910 # case it prints its new name instead of `make'.
3911 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3912    am__include=include
3913    am__quote=
3914    _am_result=GNU
3915 fi
3916 # Now try BSD make style include.
3917 if test "$am__include" = "#"; then
3918    echo '.include "confinc"' > confmf
3919    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3920       am__include=.include
3921       am__quote="\""
3922       _am_result=BSD
3923    fi
3924 fi
3927 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3928 $as_echo "$_am_result" >&6; }
3929 rm -f confinc confmf
3931 # Check whether --enable-dependency-tracking was given.
3932 if test "${enable_dependency_tracking+set}" = set; then
3933   enableval=$enable_dependency_tracking;
3934 fi
3936 if test "x$enable_dependency_tracking" != xno; then
3937   am_depcomp="$ac_aux_dir/depcomp"
3938   AMDEPBACKSLASH='\'
3939 fi
3940  if test "x$enable_dependency_tracking" != xno; then
3941   AMDEP_TRUE=
3942   AMDEP_FALSE='#'
3943 else
3944   AMDEP_TRUE='#'
3945   AMDEP_FALSE=
3946 fi
3950 depcc="$CC"   am_compiler_list=
3952 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3953 $as_echo_n "checking dependency style of $depcc... " >&6; }
3954 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3955   $as_echo_n "(cached) " >&6
3956 else
3957   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3958   # We make a subdir and do the tests there.  Otherwise we can end up
3959   # making bogus files that we don't know about and never remove.  For
3960   # instance it was reported that on HP-UX the gcc test will end up
3961   # making a dummy file named `D' -- because `-MD' means `put the output
3962   # in D'.
3963   mkdir conftest.dir
3964   # Copy depcomp to subdir because otherwise we won't find it if we're
3965   # using a relative directory.
3966   cp "$am_depcomp" conftest.dir
3967   cd conftest.dir
3968   # We will build objects and dependencies in a subdirectory because
3969   # it helps to detect inapplicable dependency modes.  For instance
3970   # both Tru64's cc and ICC support -MD to output dependencies as a
3971   # side effect of compilation, but ICC will put the dependencies in
3972   # the current directory while Tru64 will put them in the object
3973   # directory.
3974   mkdir sub
3976   am_cv_CC_dependencies_compiler_type=none
3977   if test "$am_compiler_list" = ""; then
3978      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3979   fi
3980   for depmode in $am_compiler_list; do
3981     # Setup a source with many dependencies, because some compilers
3982     # like to wrap large dependency lists on column 80 (with \), and
3983     # we should not choose a depcomp mode which is confused by this.
3984     #
3985     # We need to recreate these files for each test, as the compiler may
3986     # overwrite some of them when testing with obscure command lines.
3987     # This happens at least with the AIX C compiler.
3988     : > sub/conftest.c
3989     for i in 1 2 3 4 5 6; do
3990       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3991       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3992       # Solaris 8's {/usr,}/bin/sh.
3993       touch sub/conftst$i.h
3994     done
3995     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3997     case $depmode in
3998     nosideeffect)
3999       # after this tag, mechanisms are not by side-effect, so they'll
4000       # only be used when explicitly requested
4001       if test "x$enable_dependency_tracking" = xyes; then
4002         continue
4003       else
4004         break
4005       fi
4006       ;;
4007     none) break ;;
4008     esac
4009     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4010     # mode.  It turns out that the SunPro C++ compiler does not properly
4011     # handle `-M -o', and we need to detect this.
4012     if depmode=$depmode \
4013        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4014        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4015        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4016          >/dev/null 2>conftest.err &&
4017        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4018        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4019        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4020        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4021       # icc doesn't choke on unknown options, it will just issue warnings
4022       # or remarks (even with -Werror).  So we grep stderr for any message
4023       # that says an option was ignored or not supported.
4024       # When given -MP, icc 7.0 and 7.1 complain thusly:
4025       #   icc: Command line warning: ignoring option '-M'; no argument required
4026       # The diagnosis changed in icc 8.0:
4027       #   icc: Command line remark: option '-MP' not supported
4028       if (grep 'ignoring option' conftest.err ||
4029           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4030         am_cv_CC_dependencies_compiler_type=$depmode
4031         break
4032       fi
4033     fi
4034   done
4036   cd ..
4037   rm -rf conftest.dir
4038 else
4039   am_cv_CC_dependencies_compiler_type=none
4040 fi
4042 fi
4043 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4044 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4045 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4047  if
4048   test "x$enable_dependency_tracking" != xno \
4049   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4050   am__fastdepCC_TRUE=
4051   am__fastdepCC_FALSE='#'
4052 else
4053   am__fastdepCC_TRUE='#'
4054   am__fastdepCC_FALSE=
4055 fi
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4064 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4065 # On Suns, sometimes $CPP names a directory.
4066 if test -n "$CPP" && test -d "$CPP"; then
4067   CPP=
4068 fi
4069 if test -z "$CPP"; then
4070   if test "${ac_cv_prog_CPP+set}" = set; then
4071   $as_echo_n "(cached) " >&6
4072 else
4073       # Double quotes because CPP needs to be expanded
4074     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4075     do
4076       ac_preproc_ok=false
4077 for ac_c_preproc_warn_flag in '' yes
4078 do
4079   # Use a header file that comes with gcc, so configuring glibc
4080   # with a fresh cross-compiler works.
4081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082   # <limits.h> exists even on freestanding compilers.
4083   # On the NeXT, cc -E runs the code through the compiler's parser,
4084   # not just through cpp. "Syntax error" is here to catch this case.
4085   cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h.  */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h.  */
4091 #ifdef __STDC__
4092 # include <limits.h>
4093 #else
4094 # include <assert.h>
4095 #endif
4096                      Syntax error
4097 _ACEOF
4098 if { (ac_try="$ac_cpp conftest.$ac_ext"
4099 case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4106   ac_status=$?
4107   grep -v '^ *+' conftest.er1 >conftest.err
4108   rm -f conftest.er1
4109   cat conftest.err >&5
4110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); } >/dev/null && {
4112          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113          test ! -s conftest.err
4114        }; then
4115   :
4116 else
4117   $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120   # Broken: fails on valid input.
4121 continue
4122 fi
4124 rm -f conftest.err conftest.$ac_ext
4126   # OK, works on sane cases.  Now check whether nonexistent headers
4127   # can be detected and how.
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 #include <ac_nonexistent.h>
4135 _ACEOF
4136 if { (ac_try="$ac_cpp conftest.$ac_ext"
4137 case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144   ac_status=$?
4145   grep -v '^ *+' conftest.er1 >conftest.err
4146   rm -f conftest.er1
4147   cat conftest.err >&5
4148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); } >/dev/null && {
4150          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151          test ! -s conftest.err
4152        }; then
4153   # Broken: success on invalid input.
4154 continue
4155 else
4156   $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159   # Passes both tests.
4160 ac_preproc_ok=:
4161 break
4162 fi
4164 rm -f conftest.err conftest.$ac_ext
4166 done
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then
4170   break
4171 fi
4173     done
4174     ac_cv_prog_CPP=$CPP
4176 fi
4177   CPP=$ac_cv_prog_CPP
4178 else
4179   ac_cv_prog_CPP=$CPP
4180 fi
4181 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4182 $as_echo "$CPP" >&6; }
4183 ac_preproc_ok=false
4184 for ac_c_preproc_warn_flag in '' yes
4185 do
4186   # Use a header file that comes with gcc, so configuring glibc
4187   # with a fresh cross-compiler works.
4188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189   # <limits.h> exists even on freestanding compilers.
4190   # On the NeXT, cc -E runs the code through the compiler's parser,
4191   # not just through cpp. "Syntax error" is here to catch this case.
4192   cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 #ifdef __STDC__
4199 # include <limits.h>
4200 #else
4201 # include <assert.h>
4202 #endif
4203                      Syntax error
4204 _ACEOF
4205 if { (ac_try="$ac_cpp conftest.$ac_ext"
4206 case "(($ac_try" in
4207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208   *) ac_try_echo=$ac_try;;
4209 esac
4210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4211 $as_echo "$ac_try_echo") >&5
4212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213   ac_status=$?
4214   grep -v '^ *+' conftest.er1 >conftest.err
4215   rm -f conftest.er1
4216   cat conftest.err >&5
4217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); } >/dev/null && {
4219          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220          test ! -s conftest.err
4221        }; then
4222   :
4223 else
4224   $as_echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227   # Broken: fails on valid input.
4228 continue
4229 fi
4231 rm -f conftest.err conftest.$ac_ext
4233   # OK, works on sane cases.  Now check whether nonexistent headers
4234   # can be detected and how.
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 #include <ac_nonexistent.h>
4242 _ACEOF
4243 if { (ac_try="$ac_cpp conftest.$ac_ext"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4249 $as_echo "$ac_try_echo") >&5
4250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } >/dev/null && {
4257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258          test ! -s conftest.err
4259        }; then
4260   # Broken: success on invalid input.
4261 continue
4262 else
4263   $as_echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266   # Passes both tests.
4267 ac_preproc_ok=:
4268 break
4269 fi
4271 rm -f conftest.err conftest.$ac_ext
4273 done
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then
4277   :
4278 else
4279   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log' for more details." >&5
4283 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4284 See \`config.log' for more details." >&2;}
4285    { (exit 1); exit 1; }; }; }
4286 fi
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 case `pwd` in
4295   *\ * | *\     *)
4296     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4297 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4298 esac
4302 macro_version='2.2.6'
4303 macro_revision='1.3012'
4317 ltmain="$ac_aux_dir/ltmain.sh"
4319 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4320 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4321 if test "${ac_cv_path_SED+set}" = set; then
4322   $as_echo_n "(cached) " >&6
4323 else
4324             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4325      for ac_i in 1 2 3 4 5 6 7; do
4326        ac_script="$ac_script$as_nl$ac_script"
4327      done
4328      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4329      $as_unset ac_script || ac_script=
4330      if test -z "$SED"; then
4331   ac_path_SED_found=false
4332   # Loop through the user's path and test for each of PROGNAME-LIST
4333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338   for ac_prog in sed gsed; do
4339     for ac_exec_ext in '' $ac_executable_extensions; do
4340       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4341       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4342 # Check for GNU ac_path_SED and select it if it is found.
4343   # Check for GNU $ac_path_SED
4344 case `"$ac_path_SED" --version 2>&1` in
4345 *GNU*)
4346   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4347 *)
4348   ac_count=0
4349   $as_echo_n 0123456789 >"conftest.in"
4350   while :
4351   do
4352     cat "conftest.in" "conftest.in" >"conftest.tmp"
4353     mv "conftest.tmp" "conftest.in"
4354     cp "conftest.in" "conftest.nl"
4355     $as_echo '' >> "conftest.nl"
4356     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4358     ac_count=`expr $ac_count + 1`
4359     if test $ac_count -gt ${ac_path_SED_max-0}; then
4360       # Best one so far, save it but keep looking for a better one
4361       ac_cv_path_SED="$ac_path_SED"
4362       ac_path_SED_max=$ac_count
4363     fi
4364     # 10*(2^10) chars as input seems more than enough
4365     test $ac_count -gt 10 && break
4366   done
4367   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368 esac
4370       $ac_path_SED_found && break 3
4371     done
4372   done
4373 done
4374 IFS=$as_save_IFS
4375   if test -z "$ac_cv_path_SED"; then
4376     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4377 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4378    { (exit 1); exit 1; }; }
4379   fi
4380 else
4381   ac_cv_path_SED=$SED
4382 fi
4384 fi
4385 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4386 $as_echo "$ac_cv_path_SED" >&6; }
4387  SED="$ac_cv_path_SED"
4388   rm -f conftest.sed
4390 test -z "$SED" && SED=sed
4391 Xsed="$SED -e 1s/^X//"
4403 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4404 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4405 if test "${ac_cv_path_GREP+set}" = set; then
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -z "$GREP"; then
4409   ac_path_GREP_found=false
4410   # Loop through the user's path and test for each of PROGNAME-LIST
4411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416   for ac_prog in grep ggrep; do
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4419       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4420 # Check for GNU ac_path_GREP and select it if it is found.
4421   # Check for GNU $ac_path_GREP
4422 case `"$ac_path_GREP" --version 2>&1` in
4423 *GNU*)
4424   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4425 *)
4426   ac_count=0
4427   $as_echo_n 0123456789 >"conftest.in"
4428   while :
4429   do
4430     cat "conftest.in" "conftest.in" >"conftest.tmp"
4431     mv "conftest.tmp" "conftest.in"
4432     cp "conftest.in" "conftest.nl"
4433     $as_echo 'GREP' >> "conftest.nl"
4434     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436     ac_count=`expr $ac_count + 1`
4437     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4438       # Best one so far, save it but keep looking for a better one
4439       ac_cv_path_GREP="$ac_path_GREP"
4440       ac_path_GREP_max=$ac_count
4441     fi
4442     # 10*(2^10) chars as input seems more than enough
4443     test $ac_count -gt 10 && break
4444   done
4445   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446 esac
4448       $ac_path_GREP_found && break 3
4449     done
4450   done
4451 done
4452 IFS=$as_save_IFS
4453   if test -z "$ac_cv_path_GREP"; then
4454     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4455 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4456    { (exit 1); exit 1; }; }
4457   fi
4458 else
4459   ac_cv_path_GREP=$GREP
4460 fi
4462 fi
4463 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4464 $as_echo "$ac_cv_path_GREP" >&6; }
4465  GREP="$ac_cv_path_GREP"
4468 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4469 $as_echo_n "checking for egrep... " >&6; }
4470 if test "${ac_cv_path_EGREP+set}" = set; then
4471   $as_echo_n "(cached) " >&6
4472 else
4473   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4474    then ac_cv_path_EGREP="$GREP -E"
4475    else
4476      if test -z "$EGREP"; then
4477   ac_path_EGREP_found=false
4478   # Loop through the user's path and test for each of PROGNAME-LIST
4479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484   for ac_prog in egrep; do
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4487       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4488 # Check for GNU ac_path_EGREP and select it if it is found.
4489   # Check for GNU $ac_path_EGREP
4490 case `"$ac_path_EGREP" --version 2>&1` in
4491 *GNU*)
4492   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4493 *)
4494   ac_count=0
4495   $as_echo_n 0123456789 >"conftest.in"
4496   while :
4497   do
4498     cat "conftest.in" "conftest.in" >"conftest.tmp"
4499     mv "conftest.tmp" "conftest.in"
4500     cp "conftest.in" "conftest.nl"
4501     $as_echo 'EGREP' >> "conftest.nl"
4502     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504     ac_count=`expr $ac_count + 1`
4505     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4506       # Best one so far, save it but keep looking for a better one
4507       ac_cv_path_EGREP="$ac_path_EGREP"
4508       ac_path_EGREP_max=$ac_count
4509     fi
4510     # 10*(2^10) chars as input seems more than enough
4511     test $ac_count -gt 10 && break
4512   done
4513   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514 esac
4516       $ac_path_EGREP_found && break 3
4517     done
4518   done
4519 done
4520 IFS=$as_save_IFS
4521   if test -z "$ac_cv_path_EGREP"; then
4522     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4523 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4524    { (exit 1); exit 1; }; }
4525   fi
4526 else
4527   ac_cv_path_EGREP=$EGREP
4528 fi
4530    fi
4531 fi
4532 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4533 $as_echo "$ac_cv_path_EGREP" >&6; }
4534  EGREP="$ac_cv_path_EGREP"
4537 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4538 $as_echo_n "checking for fgrep... " >&6; }
4539 if test "${ac_cv_path_FGREP+set}" = set; then
4540   $as_echo_n "(cached) " >&6
4541 else
4542   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4543    then ac_cv_path_FGREP="$GREP -F"
4544    else
4545      if test -z "$FGREP"; then
4546   ac_path_FGREP_found=false
4547   # Loop through the user's path and test for each of PROGNAME-LIST
4548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553   for ac_prog in fgrep; do
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4556       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4557 # Check for GNU ac_path_FGREP and select it if it is found.
4558   # Check for GNU $ac_path_FGREP
4559 case `"$ac_path_FGREP" --version 2>&1` in
4560 *GNU*)
4561   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4562 *)
4563   ac_count=0
4564   $as_echo_n 0123456789 >"conftest.in"
4565   while :
4566   do
4567     cat "conftest.in" "conftest.in" >"conftest.tmp"
4568     mv "conftest.tmp" "conftest.in"
4569     cp "conftest.in" "conftest.nl"
4570     $as_echo 'FGREP' >> "conftest.nl"
4571     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573     ac_count=`expr $ac_count + 1`
4574     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4575       # Best one so far, save it but keep looking for a better one
4576       ac_cv_path_FGREP="$ac_path_FGREP"
4577       ac_path_FGREP_max=$ac_count
4578     fi
4579     # 10*(2^10) chars as input seems more than enough
4580     test $ac_count -gt 10 && break
4581   done
4582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4583 esac
4585       $ac_path_FGREP_found && break 3
4586     done
4587   done
4588 done
4589 IFS=$as_save_IFS
4590   if test -z "$ac_cv_path_FGREP"; then
4591     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4592 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4593    { (exit 1); exit 1; }; }
4594   fi
4595 else
4596   ac_cv_path_FGREP=$FGREP
4597 fi
4599    fi
4600 fi
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4602 $as_echo "$ac_cv_path_FGREP" >&6; }
4603  FGREP="$ac_cv_path_FGREP"
4606 test -z "$GREP" && GREP=grep
4626 # Check whether --with-gnu-ld was given.
4627 if test "${with_gnu_ld+set}" = set; then
4628   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4629 else
4630   with_gnu_ld=no
4631 fi
4633 ac_prog=ld
4634 if test "$GCC" = yes; then
4635   # Check if gcc -print-prog-name=ld gives a path.
4636   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4637 $as_echo_n "checking for ld used by $CC... " >&6; }
4638   case $host in
4639   *-*-mingw*)
4640     # gcc leaves a trailing carriage return which upsets mingw
4641     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4642   *)
4643     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4644   esac
4645   case $ac_prog in
4646     # Accept absolute paths.
4647     [\\/]* | ?:[\\/]*)
4648       re_direlt='/[^/][^/]*/\.\./'
4649       # Canonicalize the pathname of ld
4650       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4651       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4652         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4653       done
4654       test -z "$LD" && LD="$ac_prog"
4655       ;;
4656   "")
4657     # If it fails, then pretend we aren't using GCC.
4658     ac_prog=ld
4659     ;;
4660   *)
4661     # If it is relative, then search for the first ld in PATH.
4662     with_gnu_ld=unknown
4663     ;;
4664   esac
4665 elif test "$with_gnu_ld" = yes; then
4666   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4667 $as_echo_n "checking for GNU ld... " >&6; }
4668 else
4669   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4670 $as_echo_n "checking for non-GNU ld... " >&6; }
4671 fi
4672 if test "${lt_cv_path_LD+set}" = set; then
4673   $as_echo_n "(cached) " >&6
4674 else
4675   if test -z "$LD"; then
4676   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4677   for ac_dir in $PATH; do
4678     IFS="$lt_save_ifs"
4679     test -z "$ac_dir" && ac_dir=.
4680     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4681       lt_cv_path_LD="$ac_dir/$ac_prog"
4682       # Check to see if the program is GNU ld.  I'd rather use --version,
4683       # but apparently some variants of GNU ld only accept -v.
4684       # Break only if it was the GNU/non-GNU ld that we prefer.
4685       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4686       *GNU* | *'with BFD'*)
4687         test "$with_gnu_ld" != no && break
4688         ;;
4689       *)
4690         test "$with_gnu_ld" != yes && break
4691         ;;
4692       esac
4693     fi
4694   done
4695   IFS="$lt_save_ifs"
4696 else
4697   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4698 fi
4699 fi
4701 LD="$lt_cv_path_LD"
4702 if test -n "$LD"; then
4703   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4704 $as_echo "$LD" >&6; }
4705 else
4706   { $as_echo "$as_me:$LINENO: result: no" >&5
4707 $as_echo "no" >&6; }
4708 fi
4709 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4710 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4711    { (exit 1); exit 1; }; }
4712 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4713 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4714 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4715   $as_echo_n "(cached) " >&6
4716 else
4717   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4718 case `$LD -v 2>&1 </dev/null` in
4719 *GNU* | *'with BFD'*)
4720   lt_cv_prog_gnu_ld=yes
4721   ;;
4722 *)
4723   lt_cv_prog_gnu_ld=no
4724   ;;
4725 esac
4726 fi
4727 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4728 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4729 with_gnu_ld=$lt_cv_prog_gnu_ld
4739 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4740 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4741 if test "${lt_cv_path_NM+set}" = set; then
4742   $as_echo_n "(cached) " >&6
4743 else
4744   if test -n "$NM"; then
4745   # Let the user override the test.
4746   lt_cv_path_NM="$NM"
4747 else
4748   lt_nm_to_check="${ac_tool_prefix}nm"
4749   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4750     lt_nm_to_check="$lt_nm_to_check nm"
4751   fi
4752   for lt_tmp_nm in $lt_nm_to_check; do
4753     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4754     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4755       IFS="$lt_save_ifs"
4756       test -z "$ac_dir" && ac_dir=.
4757       tmp_nm="$ac_dir/$lt_tmp_nm"
4758       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4759         # Check to see if the nm accepts a BSD-compat flag.
4760         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4761         #   nm: unknown option "B" ignored
4762         # Tru64's nm complains that /dev/null is an invalid object file
4763         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4764         */dev/null* | *'Invalid file or object type'*)
4765           lt_cv_path_NM="$tmp_nm -B"
4766           break
4767           ;;
4768         *)
4769           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4770           */dev/null*)
4771             lt_cv_path_NM="$tmp_nm -p"
4772             break
4773             ;;
4774           *)
4775             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4776             continue # so that we can try to find one that supports BSD flags
4777             ;;
4778           esac
4779           ;;
4780         esac
4781       fi
4782     done
4783     IFS="$lt_save_ifs"
4784   done
4785   : ${lt_cv_path_NM=no}
4786 fi
4787 fi
4788 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4789 $as_echo "$lt_cv_path_NM" >&6; }
4790 if test "$lt_cv_path_NM" != "no"; then
4791   NM="$lt_cv_path_NM"
4792 else
4793   # Didn't find any BSD compatible name lister, look for dumpbin.
4794   if test -n "$ac_tool_prefix"; then
4795   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4796   do
4797     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4802   $as_echo_n "(cached) " >&6
4803 else
4804   if test -n "$DUMPBIN"; then
4805   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810   IFS=$as_save_IFS
4811   test -z "$as_dir" && as_dir=.
4812   for ac_exec_ext in '' $ac_executable_extensions; do
4813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816     break 2
4817   fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4822 fi
4823 fi
4824 DUMPBIN=$ac_cv_prog_DUMPBIN
4825 if test -n "$DUMPBIN"; then
4826   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4827 $as_echo "$DUMPBIN" >&6; }
4828 else
4829   { $as_echo "$as_me:$LINENO: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4834     test -n "$DUMPBIN" && break
4835   done
4836 fi
4837 if test -z "$DUMPBIN"; then
4838   ac_ct_DUMPBIN=$DUMPBIN
4839   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4840 do
4841   # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4846   $as_echo_n "(cached) " >&6
4847 else
4848   if test -n "$ac_ct_DUMPBIN"; then
4849   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856   for ac_exec_ext in '' $ac_executable_extensions; do
4857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4859     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4866 fi
4867 fi
4868 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4869 if test -n "$ac_ct_DUMPBIN"; then
4870   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4871 $as_echo "$ac_ct_DUMPBIN" >&6; }
4872 else
4873   { $as_echo "$as_me:$LINENO: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4878   test -n "$ac_ct_DUMPBIN" && break
4879 done
4881   if test "x$ac_ct_DUMPBIN" = x; then
4882     DUMPBIN=":"
4883   else
4884     case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890     DUMPBIN=$ac_ct_DUMPBIN
4891   fi
4892 fi
4895   if test "$DUMPBIN" != ":"; then
4896     NM="$DUMPBIN"
4897   fi
4898 fi
4899 test -z "$NM" && NM=nm
4906 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4907 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4908 if test "${lt_cv_nm_interface+set}" = set; then
4909   $as_echo_n "(cached) " >&6
4910 else
4911   lt_cv_nm_interface="BSD nm"
4912   echo "int some_variable = 0;" > conftest.$ac_ext
4913   (eval echo "\"\$as_me:4913: $ac_compile\"" >&5)
4914   (eval "$ac_compile" 2>conftest.err)
4915   cat conftest.err >&5
4916   (eval echo "\"\$as_me:4916: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4917   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4918   cat conftest.err >&5
4919   (eval echo "\"\$as_me:4919: output\"" >&5)
4920   cat conftest.out >&5
4921   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4922     lt_cv_nm_interface="MS dumpbin"
4923   fi
4924   rm -f conftest*
4925 fi
4926 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4927 $as_echo "$lt_cv_nm_interface" >&6; }
4929 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4930 $as_echo_n "checking whether ln -s works... " >&6; }
4931 LN_S=$as_ln_s
4932 if test "$LN_S" = "ln -s"; then
4933   { $as_echo "$as_me:$LINENO: result: yes" >&5
4934 $as_echo "yes" >&6; }
4935 else
4936   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4937 $as_echo "no, using $LN_S" >&6; }
4938 fi
4940 # find the maximum length of command line arguments
4941 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4942 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4943 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4944   $as_echo_n "(cached) " >&6
4945 else
4946     i=0
4947   teststring="ABCD"
4949   case $build_os in
4950   msdosdjgpp*)
4951     # On DJGPP, this test can blow up pretty badly due to problems in libc
4952     # (any single argument exceeding 2000 bytes causes a buffer overrun
4953     # during glob expansion).  Even if it were fixed, the result of this
4954     # check would be larger than it should be.
4955     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4956     ;;
4958   gnu*)
4959     # Under GNU Hurd, this test is not required because there is
4960     # no limit to the length of command line arguments.
4961     # Libtool will interpret -1 as no limit whatsoever
4962     lt_cv_sys_max_cmd_len=-1;
4963     ;;
4965   cygwin* | mingw* | cegcc*)
4966     # On Win9x/ME, this test blows up -- it succeeds, but takes
4967     # about 5 minutes as the teststring grows exponentially.
4968     # Worse, since 9x/ME are not pre-emptively multitasking,
4969     # you end up with a "frozen" computer, even though with patience
4970     # the test eventually succeeds (with a max line length of 256k).
4971     # Instead, let's just punt: use the minimum linelength reported by
4972     # all of the supported platforms: 8192 (on NT/2K/XP).
4973     lt_cv_sys_max_cmd_len=8192;
4974     ;;
4976   amigaos*)
4977     # On AmigaOS with pdksh, this test takes hours, literally.
4978     # So we just punt and use a minimum line length of 8192.
4979     lt_cv_sys_max_cmd_len=8192;
4980     ;;
4982   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4983     # This has been around since 386BSD, at least.  Likely further.
4984     if test -x /sbin/sysctl; then
4985       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4986     elif test -x /usr/sbin/sysctl; then
4987       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4988     else
4989       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4990     fi
4991     # And add a safety zone
4992     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4993     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4994     ;;
4996   interix*)
4997     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4998     lt_cv_sys_max_cmd_len=196608
4999     ;;
5001   osf*)
5002     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5003     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5004     # nice to cause kernel panics so lets avoid the loop below.
5005     # First set a reasonable default.
5006     lt_cv_sys_max_cmd_len=16384
5007     #
5008     if test -x /sbin/sysconfig; then
5009       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5010         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5011       esac
5012     fi
5013     ;;
5014   sco3.2v5*)
5015     lt_cv_sys_max_cmd_len=102400
5016     ;;
5017   sysv5* | sco5v6* | sysv4.2uw2*)
5018     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5019     if test -n "$kargmax"; then
5020       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5021     else
5022       lt_cv_sys_max_cmd_len=32768
5023     fi
5024     ;;
5025   *)
5026     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5027     if test -n "$lt_cv_sys_max_cmd_len"; then
5028       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5029       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5030     else
5031       # Make teststring a little bigger before we do anything with it.
5032       # a 1K string should be a reasonable start.
5033       for i in 1 2 3 4 5 6 7 8 ; do
5034         teststring=$teststring$teststring
5035       done
5036       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5037       # If test is not a shell built-in, we'll probably end up computing a
5038       # maximum length that is only half of the actual maximum length, but
5039       # we can't tell.
5040       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5041                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5042               test $i != 17 # 1/2 MB should be enough
5043       do
5044         i=`expr $i + 1`
5045         teststring=$teststring$teststring
5046       done
5047       # Only check the string length outside the loop.
5048       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5049       teststring=
5050       # Add a significant safety factor because C++ compilers can tack on
5051       # massive amounts of additional arguments before passing them to the
5052       # linker.  It appears as though 1/2 is a usable value.
5053       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5054     fi
5055     ;;
5056   esac
5058 fi
5060 if test -n $lt_cv_sys_max_cmd_len ; then
5061   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5062 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5063 else
5064   { $as_echo "$as_me:$LINENO: result: none" >&5
5065 $as_echo "none" >&6; }
5066 fi
5067 max_cmd_len=$lt_cv_sys_max_cmd_len
5074 : ${CP="cp -f"}
5075 : ${MV="mv -f"}
5076 : ${RM="rm -f"}
5078 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5079 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5080 # Try some XSI features
5081 xsi_shell=no
5082 ( _lt_dummy="a/b/c"
5083   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5084       = c,a/b,, \
5085     && eval 'test $(( 1 + 1 )) -eq 2 \
5086     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5087   && xsi_shell=yes
5088 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5089 $as_echo "$xsi_shell" >&6; }
5092 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5093 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5094 lt_shell_append=no
5095 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5096     >/dev/null 2>&1 \
5097   && lt_shell_append=yes
5098 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5099 $as_echo "$lt_shell_append" >&6; }
5102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5103   lt_unset=unset
5104 else
5105   lt_unset=false
5106 fi
5112 # test EBCDIC or ASCII
5113 case `echo X|tr X '\101'` in
5114  A) # ASCII based system
5115     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5116   lt_SP2NL='tr \040 \012'
5117   lt_NL2SP='tr \015\012 \040\040'
5118   ;;
5119  *) # EBCDIC based system
5120   lt_SP2NL='tr \100 \n'
5121   lt_NL2SP='tr \r\n \100\100'
5122   ;;
5123 esac
5133 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5134 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5135 if test "${lt_cv_ld_reload_flag+set}" = set; then
5136   $as_echo_n "(cached) " >&6
5137 else
5138   lt_cv_ld_reload_flag='-r'
5139 fi
5140 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5141 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5142 reload_flag=$lt_cv_ld_reload_flag
5143 case $reload_flag in
5144 "" | " "*) ;;
5145 *) reload_flag=" $reload_flag" ;;
5146 esac
5147 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5148 case $host_os in
5149   darwin*)
5150     if test "$GCC" = yes; then
5151       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5152     else
5153       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5154     fi
5155     ;;
5156 esac
5166 if test -n "$ac_tool_prefix"; then
5167   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5168 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5172   $as_echo_n "(cached) " >&6
5173 else
5174   if test -n "$OBJDUMP"; then
5175   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_exec_ext in '' $ac_executable_extensions; do
5183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5185     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5192 fi
5193 fi
5194 OBJDUMP=$ac_cv_prog_OBJDUMP
5195 if test -n "$OBJDUMP"; then
5196   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5197 $as_echo "$OBJDUMP" >&6; }
5198 else
5199   { $as_echo "$as_me:$LINENO: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5204 fi
5205 if test -z "$ac_cv_prog_OBJDUMP"; then
5206   ac_ct_OBJDUMP=$OBJDUMP
5207   # Extract the first word of "objdump", so it can be a program name with args.
5208 set dummy objdump; ac_word=$2
5209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5212   $as_echo_n "(cached) " >&6
5213 else
5214   if test -n "$ac_ct_OBJDUMP"; then
5215   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for ac_exec_ext in '' $ac_executable_extensions; do
5223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5225     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229 done
5230 IFS=$as_save_IFS
5232 fi
5233 fi
5234 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5235 if test -n "$ac_ct_OBJDUMP"; then
5236   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5237 $as_echo "$ac_ct_OBJDUMP" >&6; }
5238 else
5239   { $as_echo "$as_me:$LINENO: result: no" >&5
5240 $as_echo "no" >&6; }
5241 fi
5243   if test "x$ac_ct_OBJDUMP" = x; then
5244     OBJDUMP="false"
5245   else
5246     case $cross_compiling:$ac_tool_warned in
5247 yes:)
5248 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5250 ac_tool_warned=yes ;;
5251 esac
5252     OBJDUMP=$ac_ct_OBJDUMP
5253   fi
5254 else
5255   OBJDUMP="$ac_cv_prog_OBJDUMP"
5256 fi
5258 test -z "$OBJDUMP" && OBJDUMP=objdump
5268 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5269 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5270 if test "${lt_cv_deplibs_check_method+set}" = set; then
5271   $as_echo_n "(cached) " >&6
5272 else
5273   lt_cv_file_magic_cmd='$MAGIC_CMD'
5274 lt_cv_file_magic_test_file=
5275 lt_cv_deplibs_check_method='unknown'
5276 # Need to set the preceding variable on all platforms that support
5277 # interlibrary dependencies.
5278 # 'none' -- dependencies not supported.
5279 # `unknown' -- same as none, but documents that we really don't know.
5280 # 'pass_all' -- all dependencies passed with no checks.
5281 # 'test_compile' -- check by making test program.
5282 # 'file_magic [[regex]]' -- check by looking for files in library path
5283 # which responds to the $file_magic_cmd with a given extended regex.
5284 # If you have `file' or equivalent on your system and you're not sure
5285 # whether `pass_all' will *always* work, you probably want this one.
5287 case $host_os in
5288 aix[4-9]*)
5289   lt_cv_deplibs_check_method=pass_all
5290   ;;
5292 beos*)
5293   lt_cv_deplibs_check_method=pass_all
5294   ;;
5296 bsdi[45]*)
5297   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5298   lt_cv_file_magic_cmd='/usr/bin/file -L'
5299   lt_cv_file_magic_test_file=/shlib/libc.so
5300   ;;
5302 cygwin*)
5303   # func_win32_libid is a shell function defined in ltmain.sh
5304   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5305   lt_cv_file_magic_cmd='func_win32_libid'
5306   ;;
5308 mingw* | pw32*)
5309   # Base MSYS/MinGW do not provide the 'file' command needed by
5310   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5311   # unless we find 'file', for example because we are cross-compiling.
5312   if ( file / ) >/dev/null 2>&1; then
5313     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5314     lt_cv_file_magic_cmd='func_win32_libid'
5315   else
5316     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5317     lt_cv_file_magic_cmd='$OBJDUMP -f'
5318   fi
5319   ;;
5321 cegcc)
5322   # use the weaker test based on 'objdump'. See mingw*.
5323   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5324   lt_cv_file_magic_cmd='$OBJDUMP -f'
5325   ;;
5327 darwin* | rhapsody*)
5328   lt_cv_deplibs_check_method=pass_all
5329   ;;
5331 freebsd* | dragonfly*)
5332   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5333     case $host_cpu in
5334     i*86 )
5335       # Not sure whether the presence of OpenBSD here was a mistake.
5336       # Let's accept both of them until this is cleared up.
5337       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5338       lt_cv_file_magic_cmd=/usr/bin/file
5339       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5340       ;;
5341     esac
5342   else
5343     lt_cv_deplibs_check_method=pass_all
5344   fi
5345   ;;
5347 gnu*)
5348   lt_cv_deplibs_check_method=pass_all
5349   ;;
5351 hpux10.20* | hpux11*)
5352   lt_cv_file_magic_cmd=/usr/bin/file
5353   case $host_cpu in
5354   ia64*)
5355     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5356     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5357     ;;
5358   hppa*64*)
5359     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]'
5360     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5361     ;;
5362   *)
5363     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5364     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5365     ;;
5366   esac
5367   ;;
5369 interix[3-9]*)
5370   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5371   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5372   ;;
5374 irix5* | irix6* | nonstopux*)
5375   case $LD in
5376   *-32|*"-32 ") libmagic=32-bit;;
5377   *-n32|*"-n32 ") libmagic=N32;;
5378   *-64|*"-64 ") libmagic=64-bit;;
5379   *) libmagic=never-match;;
5380   esac
5381   lt_cv_deplibs_check_method=pass_all
5382   ;;
5384 # This must be Linux ELF.
5385 linux* | k*bsd*-gnu)
5386   lt_cv_deplibs_check_method=pass_all
5387   ;;
5389 netbsd* | netbsdelf*-gnu)
5390   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5391     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5392   else
5393     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5394   fi
5395   ;;
5397 newos6*)
5398   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5399   lt_cv_file_magic_cmd=/usr/bin/file
5400   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5401   ;;
5403 *nto* | *qnx*)
5404   lt_cv_deplibs_check_method=pass_all
5405   ;;
5407 openbsd*)
5408   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5409     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5410   else
5411     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5412   fi
5413   ;;
5415 osf3* | osf4* | osf5*)
5416   lt_cv_deplibs_check_method=pass_all
5417   ;;
5419 rdos*)
5420   lt_cv_deplibs_check_method=pass_all
5421   ;;
5423 solaris*)
5424   lt_cv_deplibs_check_method=pass_all
5425   ;;
5427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5428   lt_cv_deplibs_check_method=pass_all
5429   ;;
5431 sysv4 | sysv4.3*)
5432   case $host_vendor in
5433   motorola)
5434     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]'
5435     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5436     ;;
5437   ncr)
5438     lt_cv_deplibs_check_method=pass_all
5439     ;;
5440   sequent)
5441     lt_cv_file_magic_cmd='/bin/file'
5442     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5443     ;;
5444   sni)
5445     lt_cv_file_magic_cmd='/bin/file'
5446     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5447     lt_cv_file_magic_test_file=/lib/libc.so
5448     ;;
5449   siemens)
5450     lt_cv_deplibs_check_method=pass_all
5451     ;;
5452   pc)
5453     lt_cv_deplibs_check_method=pass_all
5454     ;;
5455   esac
5456   ;;
5458 tpf*)
5459   lt_cv_deplibs_check_method=pass_all
5460   ;;
5461 esac
5463 fi
5464 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5465 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5466 file_magic_cmd=$lt_cv_file_magic_cmd
5467 deplibs_check_method=$lt_cv_deplibs_check_method
5468 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5481 if test -n "$ac_tool_prefix"; then
5482   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5483 set dummy ${ac_tool_prefix}ar; ac_word=$2
5484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_AR+set}" = set; then
5487   $as_echo_n "(cached) " >&6
5488 else
5489   if test -n "$AR"; then
5490   ac_cv_prog_AR="$AR" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497   for ac_exec_ext in '' $ac_executable_extensions; do
5498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499     ac_cv_prog_AR="${ac_tool_prefix}ar"
5500     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5507 fi
5508 fi
5509 AR=$ac_cv_prog_AR
5510 if test -n "$AR"; then
5511   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5512 $as_echo "$AR" >&6; }
5513 else
5514   { $as_echo "$as_me:$LINENO: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5519 fi
5520 if test -z "$ac_cv_prog_AR"; then
5521   ac_ct_AR=$AR
5522   # Extract the first word of "ar", so it can be a program name with args.
5523 set dummy ar; ac_word=$2
5524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5527   $as_echo_n "(cached) " >&6
5528 else
5529   if test -n "$ac_ct_AR"; then
5530   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537   for ac_exec_ext in '' $ac_executable_extensions; do
5538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539     ac_cv_prog_ac_ct_AR="ar"
5540     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544 done
5545 IFS=$as_save_IFS
5547 fi
5548 fi
5549 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5550 if test -n "$ac_ct_AR"; then
5551   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5552 $as_echo "$ac_ct_AR" >&6; }
5553 else
5554   { $as_echo "$as_me:$LINENO: result: no" >&5
5555 $as_echo "no" >&6; }
5556 fi
5558   if test "x$ac_ct_AR" = x; then
5559     AR="false"
5560   else
5561     case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567     AR=$ac_ct_AR
5568   fi
5569 else
5570   AR="$ac_cv_prog_AR"
5571 fi
5573 test -z "$AR" && AR=ar
5574 test -z "$AR_FLAGS" && AR_FLAGS=cru
5586 if test -n "$ac_tool_prefix"; then
5587   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5588 set dummy ${ac_tool_prefix}strip; ac_word=$2
5589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if test "${ac_cv_prog_STRIP+set}" = set; then
5592   $as_echo_n "(cached) " >&6
5593 else
5594   if test -n "$STRIP"; then
5595   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602   for ac_exec_ext in '' $ac_executable_extensions; do
5603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5605     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609 done
5610 IFS=$as_save_IFS
5612 fi
5613 fi
5614 STRIP=$ac_cv_prog_STRIP
5615 if test -n "$STRIP"; then
5616   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5617 $as_echo "$STRIP" >&6; }
5618 else
5619   { $as_echo "$as_me:$LINENO: result: no" >&5
5620 $as_echo "no" >&6; }
5621 fi
5624 fi
5625 if test -z "$ac_cv_prog_STRIP"; then
5626   ac_ct_STRIP=$STRIP
5627   # Extract the first word of "strip", so it can be a program name with args.
5628 set dummy strip; ac_word=$2
5629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5632   $as_echo_n "(cached) " >&6
5633 else
5634   if test -n "$ac_ct_STRIP"; then
5635   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642   for ac_exec_ext in '' $ac_executable_extensions; do
5643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644     ac_cv_prog_ac_ct_STRIP="strip"
5645     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646     break 2
5647   fi
5648 done
5649 done
5650 IFS=$as_save_IFS
5652 fi
5653 fi
5654 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5655 if test -n "$ac_ct_STRIP"; then
5656   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5657 $as_echo "$ac_ct_STRIP" >&6; }
5658 else
5659   { $as_echo "$as_me:$LINENO: result: no" >&5
5660 $as_echo "no" >&6; }
5661 fi
5663   if test "x$ac_ct_STRIP" = x; then
5664     STRIP=":"
5665   else
5666     case $cross_compiling:$ac_tool_warned in
5667 yes:)
5668 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672     STRIP=$ac_ct_STRIP
5673   fi
5674 else
5675   STRIP="$ac_cv_prog_STRIP"
5676 fi
5678 test -z "$STRIP" && STRIP=:
5685 if test -n "$ac_tool_prefix"; then
5686   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5688 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if test "${ac_cv_prog_RANLIB+set}" = set; then
5691   $as_echo_n "(cached) " >&6
5692 else
5693   if test -n "$RANLIB"; then
5694   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701   for ac_exec_ext in '' $ac_executable_extensions; do
5702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5704     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5711 fi
5712 fi
5713 RANLIB=$ac_cv_prog_RANLIB
5714 if test -n "$RANLIB"; then
5715   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5716 $as_echo "$RANLIB" >&6; }
5717 else
5718   { $as_echo "$as_me:$LINENO: result: no" >&5
5719 $as_echo "no" >&6; }
5720 fi
5723 fi
5724 if test -z "$ac_cv_prog_RANLIB"; then
5725   ac_ct_RANLIB=$RANLIB
5726   # Extract the first word of "ranlib", so it can be a program name with args.
5727 set dummy ranlib; ac_word=$2
5728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5731   $as_echo_n "(cached) " >&6
5732 else
5733   if test -n "$ac_ct_RANLIB"; then
5734   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741   for ac_exec_ext in '' $ac_executable_extensions; do
5742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743     ac_cv_prog_ac_ct_RANLIB="ranlib"
5744     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748 done
5749 IFS=$as_save_IFS
5751 fi
5752 fi
5753 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5754 if test -n "$ac_ct_RANLIB"; then
5755   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5756 $as_echo "$ac_ct_RANLIB" >&6; }
5757 else
5758   { $as_echo "$as_me:$LINENO: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5762   if test "x$ac_ct_RANLIB" = x; then
5763     RANLIB=":"
5764   else
5765     case $cross_compiling:$ac_tool_warned in
5766 yes:)
5767 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769 ac_tool_warned=yes ;;
5770 esac
5771     RANLIB=$ac_ct_RANLIB
5772   fi
5773 else
5774   RANLIB="$ac_cv_prog_RANLIB"
5775 fi
5777 test -z "$RANLIB" && RANLIB=:
5784 # Determine commands to create old-style static archives.
5785 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5786 old_postinstall_cmds='chmod 644 $oldlib'
5787 old_postuninstall_cmds=
5789 if test -n "$RANLIB"; then
5790   case $host_os in
5791   openbsd*)
5792     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5793     ;;
5794   *)
5795     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5796     ;;
5797   esac
5798   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5799 fi
5834 # If no C compiler was specified, use CC.
5835 LTCC=${LTCC-"$CC"}
5837 # If no C compiler flags were specified, use CFLAGS.
5838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5840 # Allow CC to be a program name with arguments.
5841 compiler=$CC
5844 # Check for command to grab the raw symbol name followed by C symbol from nm.
5845 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5846 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5847 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5848   $as_echo_n "(cached) " >&6
5849 else
5851 # These are sane defaults that work on at least a few old systems.
5852 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5854 # Character class describing NM global symbol codes.
5855 symcode='[BCDEGRST]'
5857 # Regexp to match symbols that can be accessed directly from C.
5858 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5860 # Define system-specific variables.
5861 case $host_os in
5862 aix*)
5863   symcode='[BCDT]'
5864   ;;
5865 cygwin* | mingw* | pw32* | cegcc*)
5866   symcode='[ABCDGISTW]'
5867   ;;
5868 hpux*)
5869   if test "$host_cpu" = ia64; then
5870     symcode='[ABCDEGRST]'
5871   fi
5872   ;;
5873 irix* | nonstopux*)
5874   symcode='[BCDEGRST]'
5875   ;;
5876 osf*)
5877   symcode='[BCDEGQRST]'
5878   ;;
5879 solaris*)
5880   symcode='[BDRT]'
5881   ;;
5882 sco3.2v5*)
5883   symcode='[DT]'
5884   ;;
5885 sysv4.2uw2*)
5886   symcode='[DT]'
5887   ;;
5888 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5889   symcode='[ABDT]'
5890   ;;
5891 sysv4)
5892   symcode='[DFNSTU]'
5893   ;;
5894 esac
5896 # If we're using GNU nm, then use its standard symbol codes.
5897 case `$NM -V 2>&1` in
5898 *GNU* | *'with BFD'*)
5899   symcode='[ABCDGIRSTW]' ;;
5900 esac
5902 # Transform an extracted symbol line into a proper C declaration.
5903 # Some systems (esp. on ia64) link data and code symbols differently,
5904 # so use this general approach.
5905 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5907 # Transform an extracted symbol line into symbol name and symbol address
5908 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5911 # Handle CRLF in mingw tool chain
5912 opt_cr=
5913 case $build_os in
5914 mingw*)
5915   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5916   ;;
5917 esac
5919 # Try without a prefix underscore, then with it.
5920 for ac_symprfx in "" "_"; do
5922   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5923   symxfrm="\\1 $ac_symprfx\\2 \\2"
5925   # Write the raw and C identifiers.
5926   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5927     # Fake it for dumpbin and say T for any non-static function
5928     # and D for any global variable.
5929     # Also find C++ and __fastcall symbols from MSVC++,
5930     # which start with @ or ?.
5931     lt_cv_sys_global_symbol_pipe="$AWK '"\
5932 "     {last_section=section; section=\$ 3};"\
5933 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5934 "     \$ 0!~/External *\|/{next};"\
5935 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5936 "     {if(hide[section]) next};"\
5937 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5938 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5939 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5940 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5941 "     ' prfx=^$ac_symprfx"
5942   else
5943     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5944   fi
5946   # Check to see that the pipe works correctly.
5947   pipe_works=no
5949   rm -f conftest*
5950   cat > conftest.$ac_ext <<_LT_EOF
5951 #ifdef __cplusplus
5952 extern "C" {
5953 #endif
5954 char nm_test_var;
5955 void nm_test_func(void);
5956 void nm_test_func(void){}
5957 #ifdef __cplusplus
5959 #endif
5960 int main(){nm_test_var='a';nm_test_func();return(0);}
5961 _LT_EOF
5963   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964   (eval $ac_compile) 2>&5
5965   ac_status=$?
5966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; then
5968     # Now try to grab the symbols.
5969     nlist=conftest.nm
5970     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5971   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5972   ac_status=$?
5973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); } && test -s "$nlist"; then
5975       # Try sorting and uniquifying the output.
5976       if sort "$nlist" | uniq > "$nlist"T; then
5977         mv -f "$nlist"T "$nlist"
5978       else
5979         rm -f "$nlist"T
5980       fi
5982       # Make sure that we snagged all the symbols we need.
5983       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5984         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5985           cat <<_LT_EOF > conftest.$ac_ext
5986 #ifdef __cplusplus
5987 extern "C" {
5988 #endif
5990 _LT_EOF
5991           # Now generate the symbol file.
5992           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5994           cat <<_LT_EOF >> conftest.$ac_ext
5996 /* The mapping between symbol names and symbols.  */
5997 const struct {
5998   const char *name;
5999   void       *address;
6001 lt__PROGRAM__LTX_preloaded_symbols[] =
6003   { "@PROGRAM@", (void *) 0 },
6004 _LT_EOF
6005           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6006           cat <<\_LT_EOF >> conftest.$ac_ext
6007   {0, (void *) 0}
6008 };
6010 /* This works around a problem in FreeBSD linker */
6011 #ifdef FREEBSD_WORKAROUND
6012 static const void *lt_preloaded_setup() {
6013   return lt__PROGRAM__LTX_preloaded_symbols;
6015 #endif
6017 #ifdef __cplusplus
6019 #endif
6020 _LT_EOF
6021           # Now try linking the two files.
6022           mv conftest.$ac_objext conftstm.$ac_objext
6023           lt_save_LIBS="$LIBS"
6024           lt_save_CFLAGS="$CFLAGS"
6025           LIBS="conftstm.$ac_objext"
6026           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6027           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028   (eval $ac_link) 2>&5
6029   ac_status=$?
6030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6032             pipe_works=yes
6033           fi
6034           LIBS="$lt_save_LIBS"
6035           CFLAGS="$lt_save_CFLAGS"
6036         else
6037           echo "cannot find nm_test_func in $nlist" >&5
6038         fi
6039       else
6040         echo "cannot find nm_test_var in $nlist" >&5
6041       fi
6042     else
6043       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6044     fi
6045   else
6046     echo "$progname: failed program was:" >&5
6047     cat conftest.$ac_ext >&5
6048   fi
6049   rm -rf conftest* conftst*
6051   # Do not use the global_symbol_pipe unless it works.
6052   if test "$pipe_works" = yes; then
6053     break
6054   else
6055     lt_cv_sys_global_symbol_pipe=
6056   fi
6057 done
6059 fi
6061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6062   lt_cv_sys_global_symbol_to_cdecl=
6063 fi
6064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6065   { $as_echo "$as_me:$LINENO: result: failed" >&5
6066 $as_echo "failed" >&6; }
6067 else
6068   { $as_echo "$as_me:$LINENO: result: ok" >&5
6069 $as_echo "ok" >&6; }
6070 fi
6094 # Check whether --enable-libtool-lock was given.
6095 if test "${enable_libtool_lock+set}" = set; then
6096   enableval=$enable_libtool_lock;
6097 fi
6099 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6101 # Some flags need to be propagated to the compiler or linker for good
6102 # libtool support.
6103 case $host in
6104 ia64-*-hpux*)
6105   # Find out which ABI we are using.
6106   echo 'int i;' > conftest.$ac_ext
6107   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108   (eval $ac_compile) 2>&5
6109   ac_status=$?
6110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; then
6112     case `/usr/bin/file conftest.$ac_objext` in
6113       *ELF-32*)
6114         HPUX_IA64_MODE="32"
6115         ;;
6116       *ELF-64*)
6117         HPUX_IA64_MODE="64"
6118         ;;
6119     esac
6120   fi
6121   rm -rf conftest*
6122   ;;
6123 *-*-irix6*)
6124   # Find out which ABI we are using.
6125   echo '#line 6125 "configure"' > conftest.$ac_ext
6126   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127   (eval $ac_compile) 2>&5
6128   ac_status=$?
6129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; then
6131     if test "$lt_cv_prog_gnu_ld" = yes; then
6132       case `/usr/bin/file conftest.$ac_objext` in
6133         *32-bit*)
6134           LD="${LD-ld} -melf32bsmip"
6135           ;;
6136         *N32*)
6137           LD="${LD-ld} -melf32bmipn32"
6138           ;;
6139         *64-bit*)
6140           LD="${LD-ld} -melf64bmip"
6141         ;;
6142       esac
6143     else
6144       case `/usr/bin/file conftest.$ac_objext` in
6145         *32-bit*)
6146           LD="${LD-ld} -32"
6147           ;;
6148         *N32*)
6149           LD="${LD-ld} -n32"
6150           ;;
6151         *64-bit*)
6152           LD="${LD-ld} -64"
6153           ;;
6154       esac
6155     fi
6156   fi
6157   rm -rf conftest*
6158   ;;
6160 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6161 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6162   # Find out which ABI we are using.
6163   echo 'int i;' > conftest.$ac_ext
6164   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165   (eval $ac_compile) 2>&5
6166   ac_status=$?
6167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }; then
6169     case `/usr/bin/file conftest.o` in
6170       *32-bit*)
6171         case $host in
6172           x86_64-*kfreebsd*-gnu)
6173             LD="${LD-ld} -m elf_i386_fbsd"
6174             ;;
6175           x86_64-*linux*)
6176             LD="${LD-ld} -m elf_i386"
6177             ;;
6178           ppc64-*linux*|powerpc64-*linux*)
6179             LD="${LD-ld} -m elf32ppclinux"
6180             ;;
6181           s390x-*linux*)
6182             LD="${LD-ld} -m elf_s390"
6183             ;;
6184           sparc64-*linux*)
6185             LD="${LD-ld} -m elf32_sparc"
6186             ;;
6187         esac
6188         ;;
6189       *64-bit*)
6190         case $host in
6191           x86_64-*kfreebsd*-gnu)
6192             LD="${LD-ld} -m elf_x86_64_fbsd"
6193             ;;
6194           x86_64-*linux*)
6195             LD="${LD-ld} -m elf_x86_64"
6196             ;;
6197           ppc*-*linux*|powerpc*-*linux*)
6198             LD="${LD-ld} -m elf64ppc"
6199             ;;
6200           s390*-*linux*|s390*-*tpf*)
6201             LD="${LD-ld} -m elf64_s390"
6202             ;;
6203           sparc*-*linux*)
6204             LD="${LD-ld} -m elf64_sparc"
6205             ;;
6206         esac
6207         ;;
6208     esac
6209   fi
6210   rm -rf conftest*
6211   ;;
6213 *-*-sco3.2v5*)
6214   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6215   SAVE_CFLAGS="$CFLAGS"
6216   CFLAGS="$CFLAGS -belf"
6217   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6218 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6219 if test "${lt_cv_cc_needs_belf+set}" = set; then
6220   $as_echo_n "(cached) " >&6
6221 else
6222   ac_ext=c
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228      cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6235 int
6236 main ()
6239   ;
6240   return 0;
6242 _ACEOF
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (ac_try="$ac_link"
6245 case "(($ac_try" in
6246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247   *) ac_try_echo=$ac_try;;
6248 esac
6249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6250 $as_echo "$ac_try_echo") >&5
6251   (eval "$ac_link") 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } && {
6258          test -z "$ac_c_werror_flag" ||
6259          test ! -s conftest.err
6260        } && test -s conftest$ac_exeext && {
6261          test "$cross_compiling" = yes ||
6262          $as_test_x conftest$ac_exeext
6263        }; then
6264   lt_cv_cc_needs_belf=yes
6265 else
6266   $as_echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269         lt_cv_cc_needs_belf=no
6270 fi
6272 rm -rf conftest.dSYM
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6274       conftest$ac_exeext conftest.$ac_ext
6275      ac_ext=c
6276 ac_cpp='$CPP $CPPFLAGS'
6277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281 fi
6282 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6283 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6284   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6285     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6286     CFLAGS="$SAVE_CFLAGS"
6287   fi
6288   ;;
6289 sparc*-*solaris*)
6290   # Find out which ABI we are using.
6291   echo 'int i;' > conftest.$ac_ext
6292   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293   (eval $ac_compile) 2>&5
6294   ac_status=$?
6295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; then
6297     case `/usr/bin/file conftest.o` in
6298     *64-bit*)
6299       case $lt_cv_prog_gnu_ld in
6300       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6301       *)
6302         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6303           LD="${LD-ld} -64"
6304         fi
6305         ;;
6306       esac
6307       ;;
6308     esac
6309   fi
6310   rm -rf conftest*
6311   ;;
6312 esac
6314 need_locks="$enable_libtool_lock"
6317   case $host_os in
6318     rhapsody* | darwin*)
6319     if test -n "$ac_tool_prefix"; then
6320   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6325   $as_echo_n "(cached) " >&6
6326 else
6327   if test -n "$DSYMUTIL"; then
6328   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335   for ac_exec_ext in '' $ac_executable_extensions; do
6336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6338     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6345 fi
6346 fi
6347 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6348 if test -n "$DSYMUTIL"; then
6349   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6350 $as_echo "$DSYMUTIL" >&6; }
6351 else
6352   { $as_echo "$as_me:$LINENO: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6357 fi
6358 if test -z "$ac_cv_prog_DSYMUTIL"; then
6359   ac_ct_DSYMUTIL=$DSYMUTIL
6360   # Extract the first word of "dsymutil", so it can be a program name with args.
6361 set dummy dsymutil; ac_word=$2
6362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6365   $as_echo_n "(cached) " >&6
6366 else
6367   if test -n "$ac_ct_DSYMUTIL"; then
6368   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373   IFS=$as_save_IFS
6374   test -z "$as_dir" && as_dir=.
6375   for ac_exec_ext in '' $ac_executable_extensions; do
6376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6378     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379     break 2
6380   fi
6381 done
6382 done
6383 IFS=$as_save_IFS
6385 fi
6386 fi
6387 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6388 if test -n "$ac_ct_DSYMUTIL"; then
6389   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6390 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6391 else
6392   { $as_echo "$as_me:$LINENO: result: no" >&5
6393 $as_echo "no" >&6; }
6394 fi
6396   if test "x$ac_ct_DSYMUTIL" = x; then
6397     DSYMUTIL=":"
6398   else
6399     case $cross_compiling:$ac_tool_warned in
6400 yes:)
6401 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6404 esac
6405     DSYMUTIL=$ac_ct_DSYMUTIL
6406   fi
6407 else
6408   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6409 fi
6411     if test -n "$ac_tool_prefix"; then
6412   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6417   $as_echo_n "(cached) " >&6
6418 else
6419   if test -n "$NMEDIT"; then
6420   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6437 fi
6438 fi
6439 NMEDIT=$ac_cv_prog_NMEDIT
6440 if test -n "$NMEDIT"; then
6441   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6442 $as_echo "$NMEDIT" >&6; }
6443 else
6444   { $as_echo "$as_me:$LINENO: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6449 fi
6450 if test -z "$ac_cv_prog_NMEDIT"; then
6451   ac_ct_NMEDIT=$NMEDIT
6452   # Extract the first word of "nmedit", so it can be a program name with args.
6453 set dummy nmedit; ac_word=$2
6454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6457   $as_echo_n "(cached) " >&6
6458 else
6459   if test -n "$ac_ct_NMEDIT"; then
6460   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467   for ac_exec_ext in '' $ac_executable_extensions; do
6468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6477 fi
6478 fi
6479 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6480 if test -n "$ac_ct_NMEDIT"; then
6481   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6482 $as_echo "$ac_ct_NMEDIT" >&6; }
6483 else
6484   { $as_echo "$as_me:$LINENO: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6488   if test "x$ac_ct_NMEDIT" = x; then
6489     NMEDIT=":"
6490   else
6491     case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6496 esac
6497     NMEDIT=$ac_ct_NMEDIT
6498   fi
6499 else
6500   NMEDIT="$ac_cv_prog_NMEDIT"
6501 fi
6503     if test -n "$ac_tool_prefix"; then
6504   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if test "${ac_cv_prog_LIPO+set}" = set; then
6509   $as_echo_n "(cached) " >&6
6510 else
6511   if test -n "$LIPO"; then
6512   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517   IFS=$as_save_IFS
6518   test -z "$as_dir" && as_dir=.
6519   for ac_exec_ext in '' $ac_executable_extensions; do
6520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6522     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523     break 2
6524   fi
6525 done
6526 done
6527 IFS=$as_save_IFS
6529 fi
6530 fi
6531 LIPO=$ac_cv_prog_LIPO
6532 if test -n "$LIPO"; then
6533   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6534 $as_echo "$LIPO" >&6; }
6535 else
6536   { $as_echo "$as_me:$LINENO: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6541 fi
6542 if test -z "$ac_cv_prog_LIPO"; then
6543   ac_ct_LIPO=$LIPO
6544   # Extract the first word of "lipo", so it can be a program name with args.
6545 set dummy lipo; ac_word=$2
6546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6549   $as_echo_n "(cached) " >&6
6550 else
6551   if test -n "$ac_ct_LIPO"; then
6552   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559   for ac_exec_ext in '' $ac_executable_extensions; do
6560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_prog_ac_ct_LIPO="lipo"
6562     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6569 fi
6570 fi
6571 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6572 if test -n "$ac_ct_LIPO"; then
6573   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6574 $as_echo "$ac_ct_LIPO" >&6; }
6575 else
6576   { $as_echo "$as_me:$LINENO: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6580   if test "x$ac_ct_LIPO" = x; then
6581     LIPO=":"
6582   else
6583     case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589     LIPO=$ac_ct_LIPO
6590   fi
6591 else
6592   LIPO="$ac_cv_prog_LIPO"
6593 fi
6595     if test -n "$ac_tool_prefix"; then
6596   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}otool; ac_word=$2
6598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if test "${ac_cv_prog_OTOOL+set}" = set; then
6601   $as_echo_n "(cached) " >&6
6602 else
6603   if test -n "$OTOOL"; then
6604   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611   for ac_exec_ext in '' $ac_executable_extensions; do
6612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6621 fi
6622 fi
6623 OTOOL=$ac_cv_prog_OTOOL
6624 if test -n "$OTOOL"; then
6625   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6626 $as_echo "$OTOOL" >&6; }
6627 else
6628   { $as_echo "$as_me:$LINENO: result: no" >&5
6629 $as_echo "no" >&6; }
6630 fi
6633 fi
6634 if test -z "$ac_cv_prog_OTOOL"; then
6635   ac_ct_OTOOL=$OTOOL
6636   # Extract the first word of "otool", so it can be a program name with args.
6637 set dummy otool; ac_word=$2
6638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6641   $as_echo_n "(cached) " >&6
6642 else
6643   if test -n "$ac_ct_OTOOL"; then
6644   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651   for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_prog_ac_ct_OTOOL="otool"
6654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6661 fi
6662 fi
6663 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6664 if test -n "$ac_ct_OTOOL"; then
6665   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6666 $as_echo "$ac_ct_OTOOL" >&6; }
6667 else
6668   { $as_echo "$as_me:$LINENO: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6672   if test "x$ac_ct_OTOOL" = x; then
6673     OTOOL=":"
6674   else
6675     case $cross_compiling:$ac_tool_warned in
6676 yes:)
6677 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681     OTOOL=$ac_ct_OTOOL
6682   fi
6683 else
6684   OTOOL="$ac_cv_prog_OTOOL"
6685 fi
6687     if test -n "$ac_tool_prefix"; then
6688   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6693   $as_echo_n "(cached) " >&6
6694 else
6695   if test -n "$OTOOL64"; then
6696   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703   for ac_exec_ext in '' $ac_executable_extensions; do
6704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6706     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6713 fi
6714 fi
6715 OTOOL64=$ac_cv_prog_OTOOL64
6716 if test -n "$OTOOL64"; then
6717   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6718 $as_echo "$OTOOL64" >&6; }
6719 else
6720   { $as_echo "$as_me:$LINENO: result: no" >&5
6721 $as_echo "no" >&6; }
6722 fi
6725 fi
6726 if test -z "$ac_cv_prog_OTOOL64"; then
6727   ac_ct_OTOOL64=$OTOOL64
6728   # Extract the first word of "otool64", so it can be a program name with args.
6729 set dummy otool64; ac_word=$2
6730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6733   $as_echo_n "(cached) " >&6
6734 else
6735   if test -n "$ac_ct_OTOOL64"; then
6736   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_prog_ac_ct_OTOOL64="otool64"
6746     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6753 fi
6754 fi
6755 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6756 if test -n "$ac_ct_OTOOL64"; then
6757   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6758 $as_echo "$ac_ct_OTOOL64" >&6; }
6759 else
6760   { $as_echo "$as_me:$LINENO: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6764   if test "x$ac_ct_OTOOL64" = x; then
6765     OTOOL64=":"
6766   else
6767     case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773     OTOOL64=$ac_ct_OTOOL64
6774   fi
6775 else
6776   OTOOL64="$ac_cv_prog_OTOOL64"
6777 fi
6805     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6806 $as_echo_n "checking for -single_module linker flag... " >&6; }
6807 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6808   $as_echo_n "(cached) " >&6
6809 else
6810   lt_cv_apple_cc_single_mod=no
6811       if test -z "${LT_MULTI_MODULE}"; then
6812         # By default we will add the -single_module flag. You can override
6813         # by either setting the environment variable LT_MULTI_MODULE
6814         # non-empty at configure time, or by adding -multi_module to the
6815         # link flags.
6816         rm -rf libconftest.dylib*
6817         echo "int foo(void){return 1;}" > conftest.c
6818         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6819 -dynamiclib -Wl,-single_module conftest.c" >&5
6820         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6821           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6822         _lt_result=$?
6823         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6824           lt_cv_apple_cc_single_mod=yes
6825         else
6826           cat conftest.err >&5
6827         fi
6828         rm -rf libconftest.dylib*
6829         rm -f conftest.*
6830       fi
6831 fi
6832 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6833 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6834     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6835 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6836 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6837   $as_echo_n "(cached) " >&6
6838 else
6839   lt_cv_ld_exported_symbols_list=no
6840       save_LDFLAGS=$LDFLAGS
6841       echo "_main" > conftest.sym
6842       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6843       cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h.  */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h.  */
6850 int
6851 main ()
6854   ;
6855   return 0;
6857 _ACEOF
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (ac_try="$ac_link"
6860 case "(($ac_try" in
6861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862   *) ac_try_echo=$ac_try;;
6863 esac
6864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6865 $as_echo "$ac_try_echo") >&5
6866   (eval "$ac_link") 2>conftest.er1
6867   ac_status=$?
6868   grep -v '^ *+' conftest.er1 >conftest.err
6869   rm -f conftest.er1
6870   cat conftest.err >&5
6871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); } && {
6873          test -z "$ac_c_werror_flag" ||
6874          test ! -s conftest.err
6875        } && test -s conftest$ac_exeext && {
6876          test "$cross_compiling" = yes ||
6877          $as_test_x conftest$ac_exeext
6878        }; then
6879   lt_cv_ld_exported_symbols_list=yes
6880 else
6881   $as_echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884         lt_cv_ld_exported_symbols_list=no
6885 fi
6887 rm -rf conftest.dSYM
6888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6889       conftest$ac_exeext conftest.$ac_ext
6890         LDFLAGS="$save_LDFLAGS"
6892 fi
6893 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6894 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6895     case $host_os in
6896     rhapsody* | darwin1.[012])
6897       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6898     darwin1.*)
6899       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6900     darwin*) # darwin 5.x on
6901       # if running on 10.5 or later, the deployment target defaults
6902       # to the OS version, if on x86, and 10.4, the deployment
6903       # target defaults to 10.4. Don't you love it?
6904       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6905         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6906           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6907         10.[012]*)
6908           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6909         10.*)
6910           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6911       esac
6912     ;;
6913   esac
6914     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6915       _lt_dar_single_mod='$single_module'
6916     fi
6917     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6918       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6919     else
6920       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6921     fi
6922     if test "$DSYMUTIL" != ":"; then
6923       _lt_dsymutil='~$DSYMUTIL $lib || :'
6924     else
6925       _lt_dsymutil=
6926     fi
6927     ;;
6928   esac
6931 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6932 $as_echo_n "checking for ANSI C header files... " >&6; }
6933 if test "${ac_cv_header_stdc+set}" = set; then
6934   $as_echo_n "(cached) " >&6
6935 else
6936   cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 #include <stdlib.h>
6943 #include <stdarg.h>
6944 #include <string.h>
6945 #include <float.h>
6947 int
6948 main ()
6951   ;
6952   return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959   *) ac_try_echo=$ac_try;;
6960 esac
6961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6962 $as_echo "$ac_try_echo") >&5
6963   (eval "$ac_compile") 2>conftest.er1
6964   ac_status=$?
6965   grep -v '^ *+' conftest.er1 >conftest.err
6966   rm -f conftest.er1
6967   cat conftest.err >&5
6968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); } && {
6970          test -z "$ac_c_werror_flag" ||
6971          test ! -s conftest.err
6972        } && test -s conftest.$ac_objext; then
6973   ac_cv_header_stdc=yes
6974 else
6975   $as_echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6978         ac_cv_header_stdc=no
6979 fi
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 if test $ac_cv_header_stdc = yes; then
6984   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6985   cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991 #include <string.h>
6993 _ACEOF
6994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6995   $EGREP "memchr" >/dev/null 2>&1; then
6996   :
6997 else
6998   ac_cv_header_stdc=no
6999 fi
7000 rm -f conftest*
7002 fi
7004 if test $ac_cv_header_stdc = yes; then
7005   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7006   cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h.  */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h.  */
7012 #include <stdlib.h>
7014 _ACEOF
7015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016   $EGREP "free" >/dev/null 2>&1; then
7017   :
7018 else
7019   ac_cv_header_stdc=no
7020 fi
7021 rm -f conftest*
7023 fi
7025 if test $ac_cv_header_stdc = yes; then
7026   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7027   if test "$cross_compiling" = yes; then
7028   :
7029 else
7030   cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h.  */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h.  */
7036 #include <ctype.h>
7037 #include <stdlib.h>
7038 #if ((' ' & 0x0FF) == 0x020)
7039 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7040 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7041 #else
7042 # define ISLOWER(c) \
7043                    (('a' <= (c) && (c) <= 'i') \
7044                      || ('j' <= (c) && (c) <= 'r') \
7045                      || ('s' <= (c) && (c) <= 'z'))
7046 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7047 #endif
7049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7050 int
7051 main ()
7053   int i;
7054   for (i = 0; i < 256; i++)
7055     if (XOR (islower (i), ISLOWER (i))
7056         || toupper (i) != TOUPPER (i))
7057       return 2;
7058   return 0;
7060 _ACEOF
7061 rm -f conftest$ac_exeext
7062 if { (ac_try="$ac_link"
7063 case "(($ac_try" in
7064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065   *) ac_try_echo=$ac_try;;
7066 esac
7067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7068 $as_echo "$ac_try_echo") >&5
7069   (eval "$ac_link") 2>&5
7070   ac_status=$?
7071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7073   { (case "(($ac_try" in
7074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075   *) ac_try_echo=$ac_try;;
7076 esac
7077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7078 $as_echo "$ac_try_echo") >&5
7079   (eval "$ac_try") 2>&5
7080   ac_status=$?
7081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; }; then
7083   :
7084 else
7085   $as_echo "$as_me: program exited with status $ac_status" >&5
7086 $as_echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ( exit $ac_status )
7090 ac_cv_header_stdc=no
7091 fi
7092 rm -rf conftest.dSYM
7093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7094 fi
7097 fi
7098 fi
7099 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7100 $as_echo "$ac_cv_header_stdc" >&6; }
7101 if test $ac_cv_header_stdc = yes; then
7103 cat >>confdefs.h <<\_ACEOF
7104 #define STDC_HEADERS 1
7105 _ACEOF
7107 fi
7109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7119 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7120                   inttypes.h stdint.h unistd.h
7121 do
7122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 $as_echo_n "checking for $ac_header... " >&6; }
7125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7126   $as_echo_n "(cached) " >&6
7127 else
7128   cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h.  */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h.  */
7134 $ac_includes_default
7136 #include <$ac_header>
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7140 case "(($ac_try" in
7141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142   *) ac_try_echo=$ac_try;;
7143 esac
7144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145 $as_echo "$ac_try_echo") >&5
7146   (eval "$ac_compile") 2>conftest.er1
7147   ac_status=$?
7148   grep -v '^ *+' conftest.er1 >conftest.err
7149   rm -f conftest.er1
7150   cat conftest.err >&5
7151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); } && {
7153          test -z "$ac_c_werror_flag" ||
7154          test ! -s conftest.err
7155        } && test -s conftest.$ac_objext; then
7156   eval "$as_ac_Header=yes"
7157 else
7158   $as_echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161         eval "$as_ac_Header=no"
7162 fi
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 fi
7166 ac_res=`eval 'as_val=${'$as_ac_Header'}
7167                  $as_echo "$as_val"'`
7168                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7169 $as_echo "$ac_res" >&6; }
7170 as_val=`eval 'as_val=${'$as_ac_Header'}
7171                  $as_echo "$as_val"'`
7172    if test "x$as_val" = x""yes; then
7173   cat >>confdefs.h <<_ACEOF
7174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7175 _ACEOF
7177 fi
7179 done
7183 for ac_header in dlfcn.h
7184 do
7185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7187 $as_echo_n "checking for $ac_header... " >&6; }
7188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7189   $as_echo_n "(cached) " >&6
7190 else
7191   cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h.  */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h.  */
7197 $ac_includes_default
7199 #include <$ac_header>
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7203 case "(($ac_try" in
7204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205   *) ac_try_echo=$ac_try;;
7206 esac
7207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7208 $as_echo "$ac_try_echo") >&5
7209   (eval "$ac_compile") 2>conftest.er1
7210   ac_status=$?
7211   grep -v '^ *+' conftest.er1 >conftest.err
7212   rm -f conftest.er1
7213   cat conftest.err >&5
7214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } && {
7216          test -z "$ac_c_werror_flag" ||
7217          test ! -s conftest.err
7218        } && test -s conftest.$ac_objext; then
7219   eval "$as_ac_Header=yes"
7220 else
7221   $as_echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224         eval "$as_ac_Header=no"
7225 fi
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 fi
7229 ac_res=`eval 'as_val=${'$as_ac_Header'}
7230                  $as_echo "$as_val"'`
7231                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7232 $as_echo "$ac_res" >&6; }
7233 as_val=`eval 'as_val=${'$as_ac_Header'}
7234                  $as_echo "$as_val"'`
7235    if test "x$as_val" = x""yes; then
7236   cat >>confdefs.h <<_ACEOF
7237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7238 _ACEOF
7240 fi
7242 done
7246 # Set options
7250         enable_dlopen=no
7253   enable_win32_dll=no
7256             # Check whether --enable-shared was given.
7257 if test "${enable_shared+set}" = set; then
7258   enableval=$enable_shared; p=${PACKAGE-default}
7259     case $enableval in
7260     yes) enable_shared=yes ;;
7261     no) enable_shared=no ;;
7262     *)
7263       enable_shared=no
7264       # Look at the argument we got.  We use all the common list separators.
7265       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7266       for pkg in $enableval; do
7267         IFS="$lt_save_ifs"
7268         if test "X$pkg" = "X$p"; then
7269           enable_shared=yes
7270         fi
7271       done
7272       IFS="$lt_save_ifs"
7273       ;;
7274     esac
7275 else
7276   enable_shared=yes
7277 fi
7287   # Check whether --enable-static was given.
7288 if test "${enable_static+set}" = set; then
7289   enableval=$enable_static; p=${PACKAGE-default}
7290     case $enableval in
7291     yes) enable_static=yes ;;
7292     no) enable_static=no ;;
7293     *)
7294      enable_static=no
7295       # Look at the argument we got.  We use all the common list separators.
7296       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7297       for pkg in $enableval; do
7298         IFS="$lt_save_ifs"
7299         if test "X$pkg" = "X$p"; then
7300           enable_static=yes
7301         fi
7302       done
7303       IFS="$lt_save_ifs"
7304       ;;
7305     esac
7306 else
7307   enable_static=yes
7308 fi
7319 # Check whether --with-pic was given.
7320 if test "${with_pic+set}" = set; then
7321   withval=$with_pic; pic_mode="$withval"
7322 else
7323   pic_mode=default
7324 fi
7327 test -z "$pic_mode" && pic_mode=default
7335   # Check whether --enable-fast-install was given.
7336 if test "${enable_fast_install+set}" = set; then
7337   enableval=$enable_fast_install; p=${PACKAGE-default}
7338     case $enableval in
7339     yes) enable_fast_install=yes ;;
7340     no) enable_fast_install=no ;;
7341     *)
7342       enable_fast_install=no
7343       # Look at the argument we got.  We use all the common list separators.
7344       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7345       for pkg in $enableval; do
7346         IFS="$lt_save_ifs"
7347         if test "X$pkg" = "X$p"; then
7348           enable_fast_install=yes
7349         fi
7350       done
7351       IFS="$lt_save_ifs"
7352       ;;
7353     esac
7354 else
7355   enable_fast_install=yes
7356 fi
7368 # This can be used to rebuild libtool when needed
7369 LIBTOOL_DEPS="$ltmain"
7371 # Always use our own libtool.
7372 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7398 test -z "$LN_S" && LN_S="ln -s"
7413 if test -n "${ZSH_VERSION+set}" ; then
7414    setopt NO_GLOB_SUBST
7415 fi
7417 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7418 $as_echo_n "checking for objdir... " >&6; }
7419 if test "${lt_cv_objdir+set}" = set; then
7420   $as_echo_n "(cached) " >&6
7421 else
7422   rm -f .libs 2>/dev/null
7423 mkdir .libs 2>/dev/null
7424 if test -d .libs; then
7425   lt_cv_objdir=.libs
7426 else
7427   # MS-DOS does not allow filenames that begin with a dot.
7428   lt_cv_objdir=_libs
7429 fi
7430 rmdir .libs 2>/dev/null
7431 fi
7432 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7433 $as_echo "$lt_cv_objdir" >&6; }
7434 objdir=$lt_cv_objdir
7440 cat >>confdefs.h <<_ACEOF
7441 #define LT_OBJDIR "$lt_cv_objdir/"
7442 _ACEOF
7460 case $host_os in
7461 aix3*)
7462   # AIX sometimes has problems with the GCC collect2 program.  For some
7463   # reason, if we set the COLLECT_NAMES environment variable, the problems
7464   # vanish in a puff of smoke.
7465   if test "X${COLLECT_NAMES+set}" != Xset; then
7466     COLLECT_NAMES=
7467     export COLLECT_NAMES
7468   fi
7469   ;;
7470 esac
7472 # Sed substitution that helps us do robust quoting.  It backslashifies
7473 # metacharacters that are still active within double-quoted strings.
7474 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7476 # Same as above, but do not quote variable references.
7477 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7479 # Sed substitution to delay expansion of an escaped shell variable in a
7480 # double_quote_subst'ed string.
7481 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7483 # Sed substitution to delay expansion of an escaped single quote.
7484 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7486 # Sed substitution to avoid accidental globbing in evaled expressions
7487 no_glob_subst='s/\*/\\\*/g'
7489 # Global variables:
7490 ofile=libtool
7491 can_build_shared=yes
7493 # All known linkers require a `.a' archive for static linking (except MSVC,
7494 # which needs '.lib').
7495 libext=a
7497 with_gnu_ld="$lt_cv_prog_gnu_ld"
7499 old_CC="$CC"
7500 old_CFLAGS="$CFLAGS"
7502 # Set sane defaults for various variables
7503 test -z "$CC" && CC=cc
7504 test -z "$LTCC" && LTCC=$CC
7505 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7506 test -z "$LD" && LD=ld
7507 test -z "$ac_objext" && ac_objext=o
7509 for cc_temp in $compiler""; do
7510   case $cc_temp in
7511     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7512     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7513     \-*) ;;
7514     *) break;;
7515   esac
7516 done
7517 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7520 # Only perform the check for file, if the check method requires it
7521 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7522 case $deplibs_check_method in
7523 file_magic*)
7524   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7525     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7526 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7527 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7528   $as_echo_n "(cached) " >&6
7529 else
7530   case $MAGIC_CMD in
7531 [\\/*] |  ?:[\\/]*)
7532   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7533   ;;
7534 *)
7535   lt_save_MAGIC_CMD="$MAGIC_CMD"
7536   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7537   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7538   for ac_dir in $ac_dummy; do
7539     IFS="$lt_save_ifs"
7540     test -z "$ac_dir" && ac_dir=.
7541     if test -f $ac_dir/${ac_tool_prefix}file; then
7542       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7543       if test -n "$file_magic_test_file"; then
7544         case $deplibs_check_method in
7545         "file_magic "*)
7546           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7547           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7548           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7549             $EGREP "$file_magic_regex" > /dev/null; then
7550             :
7551           else
7552             cat <<_LT_EOF 1>&2
7554 *** Warning: the command libtool uses to detect shared libraries,
7555 *** $file_magic_cmd, produces output that libtool cannot recognize.
7556 *** The result is that libtool may fail to recognize shared libraries
7557 *** as such.  This will affect the creation of libtool libraries that
7558 *** depend on shared libraries, but programs linked with such libtool
7559 *** libraries will work regardless of this problem.  Nevertheless, you
7560 *** may want to report the problem to your system manager and/or to
7561 *** bug-libtool@gnu.org
7563 _LT_EOF
7564           fi ;;
7565         esac
7566       fi
7567       break
7568     fi
7569   done
7570   IFS="$lt_save_ifs"
7571   MAGIC_CMD="$lt_save_MAGIC_CMD"
7572   ;;
7573 esac
7574 fi
7576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7577 if test -n "$MAGIC_CMD"; then
7578   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7579 $as_echo "$MAGIC_CMD" >&6; }
7580 else
7581   { $as_echo "$as_me:$LINENO: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7589 if test -z "$lt_cv_path_MAGIC_CMD"; then
7590   if test -n "$ac_tool_prefix"; then
7591     { $as_echo "$as_me:$LINENO: checking for file" >&5
7592 $as_echo_n "checking for file... " >&6; }
7593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7594   $as_echo_n "(cached) " >&6
7595 else
7596   case $MAGIC_CMD in
7597 [\\/*] |  ?:[\\/]*)
7598   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7599   ;;
7600 *)
7601   lt_save_MAGIC_CMD="$MAGIC_CMD"
7602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7603   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7604   for ac_dir in $ac_dummy; do
7605     IFS="$lt_save_ifs"
7606     test -z "$ac_dir" && ac_dir=.
7607     if test -f $ac_dir/file; then
7608       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7609       if test -n "$file_magic_test_file"; then
7610         case $deplibs_check_method in
7611         "file_magic "*)
7612           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7613           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7614           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7615             $EGREP "$file_magic_regex" > /dev/null; then
7616             :
7617           else
7618             cat <<_LT_EOF 1>&2
7620 *** Warning: the command libtool uses to detect shared libraries,
7621 *** $file_magic_cmd, produces output that libtool cannot recognize.
7622 *** The result is that libtool may fail to recognize shared libraries
7623 *** as such.  This will affect the creation of libtool libraries that
7624 *** depend on shared libraries, but programs linked with such libtool
7625 *** libraries will work regardless of this problem.  Nevertheless, you
7626 *** may want to report the problem to your system manager and/or to
7627 *** bug-libtool@gnu.org
7629 _LT_EOF
7630           fi ;;
7631         esac
7632       fi
7633       break
7634     fi
7635   done
7636   IFS="$lt_save_ifs"
7637   MAGIC_CMD="$lt_save_MAGIC_CMD"
7638   ;;
7639 esac
7640 fi
7642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7643 if test -n "$MAGIC_CMD"; then
7644   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7645 $as_echo "$MAGIC_CMD" >&6; }
7646 else
7647   { $as_echo "$as_me:$LINENO: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7652   else
7653     MAGIC_CMD=:
7654   fi
7655 fi
7657   fi
7658   ;;
7659 esac
7661 # Use C for the default configuration in the libtool script
7663 lt_save_CC="$CC"
7664 ac_ext=c
7665 ac_cpp='$CPP $CPPFLAGS'
7666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7671 # Source file extension for C test sources.
7672 ac_ext=c
7674 # Object file extension for compiled C test sources.
7675 objext=o
7676 objext=$objext
7678 # Code to be used in simple compile tests
7679 lt_simple_compile_test_code="int some_variable = 0;"
7681 # Code to be used in simple link tests
7682 lt_simple_link_test_code='int main(){return(0);}'
7690 # If no C compiler was specified, use CC.
7691 LTCC=${LTCC-"$CC"}
7693 # If no C compiler flags were specified, use CFLAGS.
7694 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7696 # Allow CC to be a program name with arguments.
7697 compiler=$CC
7699 # Save the default compiler, since it gets overwritten when the other
7700 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7701 compiler_DEFAULT=$CC
7703 # save warnings/boilerplate of simple test code
7704 ac_outfile=conftest.$ac_objext
7705 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7706 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7707 _lt_compiler_boilerplate=`cat conftest.err`
7708 $RM conftest*
7710 ac_outfile=conftest.$ac_objext
7711 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7712 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7713 _lt_linker_boilerplate=`cat conftest.err`
7714 $RM -r conftest*
7717 if test -n "$compiler"; then
7719 lt_prog_compiler_no_builtin_flag=
7721 if test "$GCC" = yes; then
7722   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7724   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7725 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7726 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7727   $as_echo_n "(cached) " >&6
7728 else
7729   lt_cv_prog_compiler_rtti_exceptions=no
7730    ac_outfile=conftest.$ac_objext
7731    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7732    lt_compiler_flag="-fno-rtti -fno-exceptions"
7733    # Insert the option either (1) after the last *FLAGS variable, or
7734    # (2) before a word containing "conftest.", or (3) at the end.
7735    # Note that $ac_compile itself does not contain backslashes and begins
7736    # with a dollar sign (not a hyphen), so the echo should work correctly.
7737    # The option is referenced via a variable to avoid confusing sed.
7738    lt_compile=`echo "$ac_compile" | $SED \
7739    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7740    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7741    -e 's:$: $lt_compiler_flag:'`
7742    (eval echo "\"\$as_me:7742: $lt_compile\"" >&5)
7743    (eval "$lt_compile" 2>conftest.err)
7744    ac_status=$?
7745    cat conftest.err >&5
7746    echo "$as_me:7746: \$? = $ac_status" >&5
7747    if (exit $ac_status) && test -s "$ac_outfile"; then
7748      # The compiler can only warn and ignore the option if not recognized
7749      # So say no if there are warnings other than the usual output.
7750      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7751      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7752      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7753        lt_cv_prog_compiler_rtti_exceptions=yes
7754      fi
7755    fi
7756    $RM conftest*
7758 fi
7759 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7760 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7762 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7763     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7764 else
7765     :
7766 fi
7768 fi
7775   lt_prog_compiler_wl=
7776 lt_prog_compiler_pic=
7777 lt_prog_compiler_static=
7779 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7780 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7782   if test "$GCC" = yes; then
7783     lt_prog_compiler_wl='-Wl,'
7784     lt_prog_compiler_static='-static'
7786     case $host_os in
7787       aix*)
7788       # All AIX code is PIC.
7789       if test "$host_cpu" = ia64; then
7790         # AIX 5 now supports IA64 processor
7791         lt_prog_compiler_static='-Bstatic'
7792       fi
7793       ;;
7795     amigaos*)
7796       case $host_cpu in
7797       powerpc)
7798             # see comment about AmigaOS4 .so support
7799             lt_prog_compiler_pic='-fPIC'
7800         ;;
7801       m68k)
7802             # FIXME: we need at least 68020 code to build shared libraries, but
7803             # adding the `-m68020' flag to GCC prevents building anything better,
7804             # like `-m68040'.
7805             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7806         ;;
7807       esac
7808       ;;
7810     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7811       # PIC is the default for these OSes.
7812       ;;
7814     mingw* | cygwin* | pw32* | os2* | cegcc*)
7815       # This hack is so that the source file can tell whether it is being
7816       # built for inclusion in a dll (and should export symbols for example).
7817       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7818       # (--disable-auto-import) libraries
7819       lt_prog_compiler_pic='-DDLL_EXPORT'
7820       ;;
7822     darwin* | rhapsody*)
7823       # PIC is the default on this platform
7824       # Common symbols not allowed in MH_DYLIB files
7825       lt_prog_compiler_pic='-fno-common'
7826       ;;
7828     hpux*)
7829       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7830       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7831       # sets the default TLS model and affects inlining.
7832       case $host_cpu in
7833       hppa*64*)
7834         # +Z the default
7835         ;;
7836       *)
7837         lt_prog_compiler_pic='-fPIC'
7838         ;;
7839       esac
7840       ;;
7842     interix[3-9]*)
7843       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7844       # Instead, we relocate shared libraries at runtime.
7845       ;;
7847     msdosdjgpp*)
7848       # Just because we use GCC doesn't mean we suddenly get shared libraries
7849       # on systems that don't support them.
7850       lt_prog_compiler_can_build_shared=no
7851       enable_shared=no
7852       ;;
7854     *nto* | *qnx*)
7855       # QNX uses GNU C++, but need to define -shared option too, otherwise
7856       # it will coredump.
7857       lt_prog_compiler_pic='-fPIC -shared'
7858       ;;
7860     sysv4*MP*)
7861       if test -d /usr/nec; then
7862         lt_prog_compiler_pic=-Kconform_pic
7863       fi
7864       ;;
7866     *)
7867       lt_prog_compiler_pic='-fPIC'
7868       ;;
7869     esac
7870   else
7871     # PORTME Check for flag to pass linker flags through the system compiler.
7872     case $host_os in
7873     aix*)
7874       lt_prog_compiler_wl='-Wl,'
7875       if test "$host_cpu" = ia64; then
7876         # AIX 5 now supports IA64 processor
7877         lt_prog_compiler_static='-Bstatic'
7878       else
7879         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7880       fi
7881       ;;
7883     mingw* | cygwin* | pw32* | os2* | cegcc*)
7884       # This hack is so that the source file can tell whether it is being
7885       # built for inclusion in a dll (and should export symbols for example).
7886       lt_prog_compiler_pic='-DDLL_EXPORT'
7887       ;;
7889     hpux9* | hpux10* | hpux11*)
7890       lt_prog_compiler_wl='-Wl,'
7891       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7892       # not for PA HP-UX.
7893       case $host_cpu in
7894       hppa*64*|ia64*)
7895         # +Z the default
7896         ;;
7897       *)
7898         lt_prog_compiler_pic='+Z'
7899         ;;
7900       esac
7901       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7902       lt_prog_compiler_static='${wl}-a ${wl}archive'
7903       ;;
7905     irix5* | irix6* | nonstopux*)
7906       lt_prog_compiler_wl='-Wl,'
7907       # PIC (with -KPIC) is the default.
7908       lt_prog_compiler_static='-non_shared'
7909       ;;
7911     linux* | k*bsd*-gnu)
7912       case $cc_basename in
7913       # old Intel for x86_64 which still supported -KPIC.
7914       ecc*)
7915         lt_prog_compiler_wl='-Wl,'
7916         lt_prog_compiler_pic='-KPIC'
7917         lt_prog_compiler_static='-static'
7918         ;;
7919       # icc used to be incompatible with GCC.
7920       # ICC 10 doesn't accept -KPIC any more.
7921       icc* | ifort*)
7922         lt_prog_compiler_wl='-Wl,'
7923         lt_prog_compiler_pic='-fPIC'
7924         lt_prog_compiler_static='-static'
7925         ;;
7926       # Lahey Fortran 8.1.
7927       lf95*)
7928         lt_prog_compiler_wl='-Wl,'
7929         lt_prog_compiler_pic='--shared'
7930         lt_prog_compiler_static='--static'
7931         ;;
7932       pgcc* | pgf77* | pgf90* | pgf95*)
7933         # Portland Group compilers (*not* the Pentium gcc compiler,
7934         # which looks to be a dead project)
7935         lt_prog_compiler_wl='-Wl,'
7936         lt_prog_compiler_pic='-fpic'
7937         lt_prog_compiler_static='-Bstatic'
7938         ;;
7939       ccc*)
7940         lt_prog_compiler_wl='-Wl,'
7941         # All Alpha code is PIC.
7942         lt_prog_compiler_static='-non_shared'
7943         ;;
7944       xl*)
7945         # IBM XL C 8.0/Fortran 10.1 on PPC
7946         lt_prog_compiler_wl='-Wl,'
7947         lt_prog_compiler_pic='-qpic'
7948         lt_prog_compiler_static='-qstaticlink'
7949         ;;
7950       *)
7951         case `$CC -V 2>&1 | sed 5q` in
7952         *Sun\ C*)
7953           # Sun C 5.9
7954           lt_prog_compiler_pic='-KPIC'
7955           lt_prog_compiler_static='-Bstatic'
7956           lt_prog_compiler_wl='-Wl,'
7957           ;;
7958         *Sun\ F*)
7959           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7960           lt_prog_compiler_pic='-KPIC'
7961           lt_prog_compiler_static='-Bstatic'
7962           lt_prog_compiler_wl=''
7963           ;;
7964         esac
7965         ;;
7966       esac
7967       ;;
7969     newsos6)
7970       lt_prog_compiler_pic='-KPIC'
7971       lt_prog_compiler_static='-Bstatic'
7972       ;;
7974     *nto* | *qnx*)
7975       # QNX uses GNU C++, but need to define -shared option too, otherwise
7976       # it will coredump.
7977       lt_prog_compiler_pic='-fPIC -shared'
7978       ;;
7980     osf3* | osf4* | osf5*)
7981       lt_prog_compiler_wl='-Wl,'
7982       # All OSF/1 code is PIC.
7983       lt_prog_compiler_static='-non_shared'
7984       ;;
7986     rdos*)
7987       lt_prog_compiler_static='-non_shared'
7988       ;;
7990     solaris*)
7991       lt_prog_compiler_pic='-KPIC'
7992       lt_prog_compiler_static='-Bstatic'
7993       case $cc_basename in
7994       f77* | f90* | f95*)
7995         lt_prog_compiler_wl='-Qoption ld ';;
7996       *)
7997         lt_prog_compiler_wl='-Wl,';;
7998       esac
7999       ;;
8001     sunos4*)
8002       lt_prog_compiler_wl='-Qoption ld '
8003       lt_prog_compiler_pic='-PIC'
8004       lt_prog_compiler_static='-Bstatic'
8005       ;;
8007     sysv4 | sysv4.2uw2* | sysv4.3*)
8008       lt_prog_compiler_wl='-Wl,'
8009       lt_prog_compiler_pic='-KPIC'
8010       lt_prog_compiler_static='-Bstatic'
8011       ;;
8013     sysv4*MP*)
8014       if test -d /usr/nec ;then
8015         lt_prog_compiler_pic='-Kconform_pic'
8016         lt_prog_compiler_static='-Bstatic'
8017       fi
8018       ;;
8020     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8021       lt_prog_compiler_wl='-Wl,'
8022       lt_prog_compiler_pic='-KPIC'
8023       lt_prog_compiler_static='-Bstatic'
8024       ;;
8026     unicos*)
8027       lt_prog_compiler_wl='-Wl,'
8028       lt_prog_compiler_can_build_shared=no
8029       ;;
8031     uts4*)
8032       lt_prog_compiler_pic='-pic'
8033       lt_prog_compiler_static='-Bstatic'
8034       ;;
8036     *)
8037       lt_prog_compiler_can_build_shared=no
8038       ;;
8039     esac
8040   fi
8042 case $host_os in
8043   # For platforms which do not support PIC, -DPIC is meaningless:
8044   *djgpp*)
8045     lt_prog_compiler_pic=
8046     ;;
8047   *)
8048     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8049     ;;
8050 esac
8051 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8052 $as_echo "$lt_prog_compiler_pic" >&6; }
8060 # Check to make sure the PIC flag actually works.
8062 if test -n "$lt_prog_compiler_pic"; then
8063   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8064 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8065 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8066   $as_echo_n "(cached) " >&6
8067 else
8068   lt_cv_prog_compiler_pic_works=no
8069    ac_outfile=conftest.$ac_objext
8070    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8071    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8072    # Insert the option either (1) after the last *FLAGS variable, or
8073    # (2) before a word containing "conftest.", or (3) at the end.
8074    # Note that $ac_compile itself does not contain backslashes and begins
8075    # with a dollar sign (not a hyphen), so the echo should work correctly.
8076    # The option is referenced via a variable to avoid confusing sed.
8077    lt_compile=`echo "$ac_compile" | $SED \
8078    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080    -e 's:$: $lt_compiler_flag:'`
8081    (eval echo "\"\$as_me:8081: $lt_compile\"" >&5)
8082    (eval "$lt_compile" 2>conftest.err)
8083    ac_status=$?
8084    cat conftest.err >&5
8085    echo "$as_me:8085: \$? = $ac_status" >&5
8086    if (exit $ac_status) && test -s "$ac_outfile"; then
8087      # The compiler can only warn and ignore the option if not recognized
8088      # So say no if there are warnings other than the usual output.
8089      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8090      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8091      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8092        lt_cv_prog_compiler_pic_works=yes
8093      fi
8094    fi
8095    $RM conftest*
8097 fi
8098 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8099 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8101 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8102     case $lt_prog_compiler_pic in
8103      "" | " "*) ;;
8104      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8105      esac
8106 else
8107     lt_prog_compiler_pic=
8108      lt_prog_compiler_can_build_shared=no
8109 fi
8111 fi
8119 # Check to make sure the static flag actually works.
8121 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8122 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8123 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8124 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8125   $as_echo_n "(cached) " >&6
8126 else
8127   lt_cv_prog_compiler_static_works=no
8128    save_LDFLAGS="$LDFLAGS"
8129    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8130    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8131    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8132      # The linker can only warn and ignore the option if not recognized
8133      # So say no if there are warnings
8134      if test -s conftest.err; then
8135        # Append any errors to the config.log.
8136        cat conftest.err 1>&5
8137        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8138        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139        if diff conftest.exp conftest.er2 >/dev/null; then
8140          lt_cv_prog_compiler_static_works=yes
8141        fi
8142      else
8143        lt_cv_prog_compiler_static_works=yes
8144      fi
8145    fi
8146    $RM -r conftest*
8147    LDFLAGS="$save_LDFLAGS"
8149 fi
8150 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8151 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8153 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8154     :
8155 else
8156     lt_prog_compiler_static=
8157 fi
8165   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8167 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8168   $as_echo_n "(cached) " >&6
8169 else
8170   lt_cv_prog_compiler_c_o=no
8171    $RM -r conftest 2>/dev/null
8172    mkdir conftest
8173    cd conftest
8174    mkdir out
8175    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8177    lt_compiler_flag="-o out/conftest2.$ac_objext"
8178    # Insert the option either (1) after the last *FLAGS variable, or
8179    # (2) before a word containing "conftest.", or (3) at the end.
8180    # Note that $ac_compile itself does not contain backslashes and begins
8181    # with a dollar sign (not a hyphen), so the echo should work correctly.
8182    lt_compile=`echo "$ac_compile" | $SED \
8183    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8184    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8185    -e 's:$: $lt_compiler_flag:'`
8186    (eval echo "\"\$as_me:8186: $lt_compile\"" >&5)
8187    (eval "$lt_compile" 2>out/conftest.err)
8188    ac_status=$?
8189    cat out/conftest.err >&5
8190    echo "$as_me:8190: \$? = $ac_status" >&5
8191    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8192    then
8193      # The compiler can only warn and ignore the option if not recognized
8194      # So say no if there are warnings
8195      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8196      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8197      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8198        lt_cv_prog_compiler_c_o=yes
8199      fi
8200    fi
8201    chmod u+w . 2>&5
8202    $RM conftest*
8203    # SGI C++ compiler will create directory out/ii_files/ for
8204    # template instantiation
8205    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8206    $RM out/* && rmdir out
8207    cd ..
8208    $RM -r conftest
8209    $RM conftest*
8211 fi
8212 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8213 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8220   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8222 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8223   $as_echo_n "(cached) " >&6
8224 else
8225   lt_cv_prog_compiler_c_o=no
8226    $RM -r conftest 2>/dev/null
8227    mkdir conftest
8228    cd conftest
8229    mkdir out
8230    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232    lt_compiler_flag="-o out/conftest2.$ac_objext"
8233    # Insert the option either (1) after the last *FLAGS variable, or
8234    # (2) before a word containing "conftest.", or (3) at the end.
8235    # Note that $ac_compile itself does not contain backslashes and begins
8236    # with a dollar sign (not a hyphen), so the echo should work correctly.
8237    lt_compile=`echo "$ac_compile" | $SED \
8238    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8239    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8240    -e 's:$: $lt_compiler_flag:'`
8241    (eval echo "\"\$as_me:8241: $lt_compile\"" >&5)
8242    (eval "$lt_compile" 2>out/conftest.err)
8243    ac_status=$?
8244    cat out/conftest.err >&5
8245    echo "$as_me:8245: \$? = $ac_status" >&5
8246    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8247    then
8248      # The compiler can only warn and ignore the option if not recognized
8249      # So say no if there are warnings
8250      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8251      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8252      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8253        lt_cv_prog_compiler_c_o=yes
8254      fi
8255    fi
8256    chmod u+w . 2>&5
8257    $RM conftest*
8258    # SGI C++ compiler will create directory out/ii_files/ for
8259    # template instantiation
8260    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8261    $RM out/* && rmdir out
8262    cd ..
8263    $RM -r conftest
8264    $RM conftest*
8266 fi
8267 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8273 hard_links="nottested"
8274 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8275   # do not overwrite the value of need_locks provided by the user
8276   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8277 $as_echo_n "checking if we can lock with hard links... " >&6; }
8278   hard_links=yes
8279   $RM conftest*
8280   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8281   touch conftest.a
8282   ln conftest.a conftest.b 2>&5 || hard_links=no
8283   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8284   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8285 $as_echo "$hard_links" >&6; }
8286   if test "$hard_links" = no; then
8287     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8288 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8289     need_locks=warn
8290   fi
8291 else
8292   need_locks=no
8293 fi
8300   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8301 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8303   runpath_var=
8304   allow_undefined_flag=
8305   always_export_symbols=no
8306   archive_cmds=
8307   archive_expsym_cmds=
8308   compiler_needs_object=no
8309   enable_shared_with_static_runtimes=no
8310   export_dynamic_flag_spec=
8311   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8312   hardcode_automatic=no
8313   hardcode_direct=no
8314   hardcode_direct_absolute=no
8315   hardcode_libdir_flag_spec=
8316   hardcode_libdir_flag_spec_ld=
8317   hardcode_libdir_separator=
8318   hardcode_minus_L=no
8319   hardcode_shlibpath_var=unsupported
8320   inherit_rpath=no
8321   link_all_deplibs=unknown
8322   module_cmds=
8323   module_expsym_cmds=
8324   old_archive_from_new_cmds=
8325   old_archive_from_expsyms_cmds=
8326   thread_safe_flag_spec=
8327   whole_archive_flag_spec=
8328   # include_expsyms should be a list of space-separated symbols to be *always*
8329   # included in the symbol list
8330   include_expsyms=
8331   # exclude_expsyms can be an extended regexp of symbols to exclude
8332   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8333   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8334   # as well as any symbol that contains `d'.
8335   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8336   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8337   # platforms (ab)use it in PIC code, but their linkers get confused if
8338   # the symbol is explicitly referenced.  Since portable code cannot
8339   # rely on this symbol name, it's probably fine to never include it in
8340   # preloaded symbol tables.
8341   # Exclude shared library initialization/finalization symbols.
8342   extract_expsyms_cmds=
8344   case $host_os in
8345   cygwin* | mingw* | pw32* | cegcc*)
8346     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8347     # When not using gcc, we currently assume that we are using
8348     # Microsoft Visual C++.
8349     if test "$GCC" != yes; then
8350       with_gnu_ld=no
8351     fi
8352     ;;
8353   interix*)
8354     # we just hope/assume this is gcc and not c89 (= MSVC++)
8355     with_gnu_ld=yes
8356     ;;
8357   openbsd*)
8358     with_gnu_ld=no
8359     ;;
8360   esac
8362   ld_shlibs=yes
8363   if test "$with_gnu_ld" = yes; then
8364     # If archive_cmds runs LD, not CC, wlarc should be empty
8365     wlarc='${wl}'
8367     # Set some defaults for GNU ld with shared library support. These
8368     # are reset later if shared libraries are not supported. Putting them
8369     # here allows them to be overridden if necessary.
8370     runpath_var=LD_RUN_PATH
8371     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8372     export_dynamic_flag_spec='${wl}--export-dynamic'
8373     # ancient GNU ld didn't support --whole-archive et. al.
8374     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8375       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8376     else
8377       whole_archive_flag_spec=
8378     fi
8379     supports_anon_versioning=no
8380     case `$LD -v 2>&1` in
8381       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8382       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8383       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8384       *\ 2.11.*) ;; # other 2.11 versions
8385       *) supports_anon_versioning=yes ;;
8386     esac
8388     # See if GNU ld supports shared libraries.
8389     case $host_os in
8390     aix[3-9]*)
8391       # On AIX/PPC, the GNU linker is very broken
8392       if test "$host_cpu" != ia64; then
8393         ld_shlibs=no
8394         cat <<_LT_EOF 1>&2
8396 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8397 *** to be unable to reliably create shared libraries on AIX.
8398 *** Therefore, libtool is disabling shared libraries support.  If you
8399 *** really care for shared libraries, you may want to modify your PATH
8400 *** so that a non-GNU linker is found, and then restart.
8402 _LT_EOF
8403       fi
8404       ;;
8406     amigaos*)
8407       case $host_cpu in
8408       powerpc)
8409             # see comment about AmigaOS4 .so support
8410             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411             archive_expsym_cmds=''
8412         ;;
8413       m68k)
8414             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)'
8415             hardcode_libdir_flag_spec='-L$libdir'
8416             hardcode_minus_L=yes
8417         ;;
8418       esac
8419       ;;
8421     beos*)
8422       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423         allow_undefined_flag=unsupported
8424         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8425         # support --undefined.  This deserves some investigation.  FIXME
8426         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427       else
8428         ld_shlibs=no
8429       fi
8430       ;;
8432     cygwin* | mingw* | pw32* | cegcc*)
8433       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8434       # as there is no search path for DLLs.
8435       hardcode_libdir_flag_spec='-L$libdir'
8436       allow_undefined_flag=unsupported
8437       always_export_symbols=no
8438       enable_shared_with_static_runtimes=yes
8439       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8441       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8442         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8443         # If the export-symbols file already is a .def file (1st line
8444         # is EXPORTS), use it as is; otherwise, prepend...
8445         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8446           cp $export_symbols $output_objdir/$soname.def;
8447         else
8448           echo EXPORTS > $output_objdir/$soname.def;
8449           cat $export_symbols >> $output_objdir/$soname.def;
8450         fi~
8451         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8452       else
8453         ld_shlibs=no
8454       fi
8455       ;;
8457     interix[3-9]*)
8458       hardcode_direct=no
8459       hardcode_shlibpath_var=no
8460       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8461       export_dynamic_flag_spec='${wl}-E'
8462       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8463       # Instead, shared libraries are loaded at an image base (0x10000000 by
8464       # default) and relocated if they conflict, which is a slow very memory
8465       # consuming and fragmenting process.  To avoid this, we pick a random,
8466       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8467       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8468       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8469       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'
8470       ;;
8472     gnu* | linux* | tpf* | k*bsd*-gnu)
8473       tmp_diet=no
8474       if test "$host_os" = linux-dietlibc; then
8475         case $cc_basename in
8476           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8477         esac
8478       fi
8479       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8480          && test "$tmp_diet" = no
8481       then
8482         tmp_addflag=
8483         tmp_sharedflag='-shared'
8484         case $cc_basename,$host_cpu in
8485         pgcc*)                          # Portland Group C compiler
8486           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'
8487           tmp_addflag=' $pic_flag'
8488           ;;
8489         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8490           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'
8491           tmp_addflag=' $pic_flag -Mnomain' ;;
8492         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8493           tmp_addflag=' -i_dynamic' ;;
8494         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8495           tmp_addflag=' -i_dynamic -nofor_main' ;;
8496         ifc* | ifort*)                  # Intel Fortran compiler
8497           tmp_addflag=' -nofor_main' ;;
8498         lf95*)                          # Lahey Fortran 8.1
8499           whole_archive_flag_spec=
8500           tmp_sharedflag='--shared' ;;
8501         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8502           tmp_sharedflag='-qmkshrobj'
8503           tmp_addflag= ;;
8504         esac
8505         case `$CC -V 2>&1 | sed 5q` in
8506         *Sun\ C*)                       # Sun C 5.9
8507           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'
8508           compiler_needs_object=yes
8509           tmp_sharedflag='-G' ;;
8510         *Sun\ F*)                       # Sun Fortran 8.3
8511           tmp_sharedflag='-G' ;;
8512         esac
8513         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8515         if test "x$supports_anon_versioning" = xyes; then
8516           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8517             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8518             echo "local: *; };" >> $output_objdir/$libname.ver~
8519             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8520         fi
8522         case $cc_basename in
8523         xlf*)
8524           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8525           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8526           hardcode_libdir_flag_spec=
8527           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8528           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8529           if test "x$supports_anon_versioning" = xyes; then
8530             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8531               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8532               echo "local: *; };" >> $output_objdir/$libname.ver~
8533               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8534           fi
8535           ;;
8536         esac
8537       else
8538         ld_shlibs=no
8539       fi
8540       ;;
8542     netbsd* | netbsdelf*-gnu)
8543       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8544         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8545         wlarc=
8546       else
8547         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8549       fi
8550       ;;
8552     solaris*)
8553       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8554         ld_shlibs=no
8555         cat <<_LT_EOF 1>&2
8557 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8558 *** create shared libraries on Solaris systems.  Therefore, libtool
8559 *** is disabling shared libraries support.  We urge you to upgrade GNU
8560 *** binutils to release 2.9.1 or newer.  Another option is to modify
8561 *** your PATH or compiler configuration so that the native linker is
8562 *** used, and then restart.
8564 _LT_EOF
8565       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8566         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8568       else
8569         ld_shlibs=no
8570       fi
8571       ;;
8573     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8574       case `$LD -v 2>&1` in
8575         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8576         ld_shlibs=no
8577         cat <<_LT_EOF 1>&2
8579 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8580 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8581 *** is disabling shared libraries support.  We urge you to upgrade GNU
8582 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8583 *** your PATH or compiler configuration so that the native linker is
8584 *** used, and then restart.
8586 _LT_EOF
8587         ;;
8588         *)
8589           # For security reasons, it is highly recommended that you always
8590           # use absolute paths for naming shared libraries, and exclude the
8591           # DT_RUNPATH tag from executables and libraries.  But doing so
8592           # requires that you compile everything twice, which is a pain.
8593           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8597           else
8598             ld_shlibs=no
8599           fi
8600         ;;
8601       esac
8602       ;;
8604     sunos4*)
8605       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8606       wlarc=
8607       hardcode_direct=yes
8608       hardcode_shlibpath_var=no
8609       ;;
8611     *)
8612       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8615       else
8616         ld_shlibs=no
8617       fi
8618       ;;
8619     esac
8621     if test "$ld_shlibs" = no; then
8622       runpath_var=
8623       hardcode_libdir_flag_spec=
8624       export_dynamic_flag_spec=
8625       whole_archive_flag_spec=
8626     fi
8627   else
8628     # PORTME fill in a description of your system's linker (not GNU ld)
8629     case $host_os in
8630     aix3*)
8631       allow_undefined_flag=unsupported
8632       always_export_symbols=yes
8633       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'
8634       # Note: this linker hardcodes the directories in LIBPATH if there
8635       # are no directories specified by -L.
8636       hardcode_minus_L=yes
8637       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8638         # Neither direct hardcoding nor static linking is supported with a
8639         # broken collect2.
8640         hardcode_direct=unsupported
8641       fi
8642       ;;
8644     aix[4-9]*)
8645       if test "$host_cpu" = ia64; then
8646         # On IA64, the linker does run time linking by default, so we don't
8647         # have to do anything special.
8648         aix_use_runtimelinking=no
8649         exp_sym_flag='-Bexport'
8650         no_entry_flag=""
8651       else
8652         # If we're using GNU nm, then we don't want the "-C" option.
8653         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8654         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8655           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'
8656         else
8657           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'
8658         fi
8659         aix_use_runtimelinking=no
8661         # Test if we are trying to use run time linking or normal
8662         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8663         # need to do runtime linking.
8664         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8665           for ld_flag in $LDFLAGS; do
8666           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8667             aix_use_runtimelinking=yes
8668             break
8669           fi
8670           done
8671           ;;
8672         esac
8674         exp_sym_flag='-bexport'
8675         no_entry_flag='-bnoentry'
8676       fi
8678       # When large executables or shared objects are built, AIX ld can
8679       # have problems creating the table of contents.  If linking a library
8680       # or program results in "error TOC overflow" add -mminimal-toc to
8681       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8682       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8684       archive_cmds=''
8685       hardcode_direct=yes
8686       hardcode_direct_absolute=yes
8687       hardcode_libdir_separator=':'
8688       link_all_deplibs=yes
8689       file_list_spec='${wl}-f,'
8691       if test "$GCC" = yes; then
8692         case $host_os in aix4.[012]|aix4.[012].*)
8693         # We only want to do this on AIX 4.2 and lower, the check
8694         # below for broken collect2 doesn't work under 4.3+
8695           collect2name=`${CC} -print-prog-name=collect2`
8696           if test -f "$collect2name" &&
8697            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8698           then
8699           # We have reworked collect2
8700           :
8701           else
8702           # We have old collect2
8703           hardcode_direct=unsupported
8704           # It fails to find uninstalled libraries when the uninstalled
8705           # path is not listed in the libpath.  Setting hardcode_minus_L
8706           # to unsupported forces relinking
8707           hardcode_minus_L=yes
8708           hardcode_libdir_flag_spec='-L$libdir'
8709           hardcode_libdir_separator=
8710           fi
8711           ;;
8712         esac
8713         shared_flag='-shared'
8714         if test "$aix_use_runtimelinking" = yes; then
8715           shared_flag="$shared_flag "'${wl}-G'
8716         fi
8717         link_all_deplibs=no
8718       else
8719         # not using gcc
8720         if test "$host_cpu" = ia64; then
8721         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8722         # chokes on -Wl,-G. The following line is correct:
8723           shared_flag='-G'
8724         else
8725           if test "$aix_use_runtimelinking" = yes; then
8726             shared_flag='${wl}-G'
8727           else
8728             shared_flag='${wl}-bM:SRE'
8729           fi
8730         fi
8731       fi
8733       export_dynamic_flag_spec='${wl}-bexpall'
8734       # It seems that -bexpall does not export symbols beginning with
8735       # underscore (_), so it is better to generate a list of symbols to export.
8736       always_export_symbols=yes
8737       if test "$aix_use_runtimelinking" = yes; then
8738         # Warning - without using the other runtime loading flags (-brtl),
8739         # -berok will link without error, but may produce a broken library.
8740         allow_undefined_flag='-berok'
8741         # Determine the default libpath from the value encoded in an
8742         # empty executable.
8743         cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8750 int
8751 main ()
8754   ;
8755   return 0;
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8760 case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766   (eval "$ac_link") 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } && {
8773          test -z "$ac_c_werror_flag" ||
8774          test ! -s conftest.err
8775        } && test -s conftest$ac_exeext && {
8776          test "$cross_compiling" = yes ||
8777          $as_test_x conftest$ac_exeext
8778        }; then
8780 lt_aix_libpath_sed='
8781     /Import File Strings/,/^$/ {
8782         /^0/ {
8783             s/^0  *\(.*\)$/\1/
8784             p
8785         }
8786     }'
8787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8788 # Check for a 64-bit object if we didn't find anything.
8789 if test -z "$aix_libpath"; then
8790   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8791 fi
8792 else
8793   $as_echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8797 fi
8799 rm -rf conftest.dSYM
8800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801       conftest$ac_exeext conftest.$ac_ext
8802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8804         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8805         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8806       else
8807         if test "$host_cpu" = ia64; then
8808           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8809           allow_undefined_flag="-z nodefs"
8810           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"
8811         else
8812          # Determine the default libpath from the value encoded in an
8813          # empty executable.
8814          cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h.  */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h.  */
8821 int
8822 main ()
8825   ;
8826   return 0;
8828 _ACEOF
8829 rm -f conftest.$ac_objext conftest$ac_exeext
8830 if { (ac_try="$ac_link"
8831 case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836 $as_echo "$ac_try_echo") >&5
8837   (eval "$ac_link") 2>conftest.er1
8838   ac_status=$?
8839   grep -v '^ *+' conftest.er1 >conftest.err
8840   rm -f conftest.er1
8841   cat conftest.err >&5
8842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } && {
8844          test -z "$ac_c_werror_flag" ||
8845          test ! -s conftest.err
8846        } && test -s conftest$ac_exeext && {
8847          test "$cross_compiling" = yes ||
8848          $as_test_x conftest$ac_exeext
8849        }; then
8851 lt_aix_libpath_sed='
8852     /Import File Strings/,/^$/ {
8853         /^0/ {
8854             s/^0  *\(.*\)$/\1/
8855             p
8856         }
8857     }'
8858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8859 # Check for a 64-bit object if we didn't find anything.
8860 if test -z "$aix_libpath"; then
8861   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8862 fi
8863 else
8864   $as_echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8868 fi
8870 rm -rf conftest.dSYM
8871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8872       conftest$ac_exeext conftest.$ac_ext
8873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8875          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8876           # Warning - without using the other run time loading flags,
8877           # -berok will link without error, but may produce a broken library.
8878           no_undefined_flag=' ${wl}-bernotok'
8879           allow_undefined_flag=' ${wl}-berok'
8880           # Exported symbols can be pulled into shared objects from archives
8881           whole_archive_flag_spec='$convenience'
8882           archive_cmds_need_lc=yes
8883           # This is similar to how AIX traditionally builds its shared libraries.
8884           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'
8885         fi
8886       fi
8887       ;;
8889     amigaos*)
8890       case $host_cpu in
8891       powerpc)
8892             # see comment about AmigaOS4 .so support
8893             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894             archive_expsym_cmds=''
8895         ;;
8896       m68k)
8897             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)'
8898             hardcode_libdir_flag_spec='-L$libdir'
8899             hardcode_minus_L=yes
8900         ;;
8901       esac
8902       ;;
8904     bsdi[45]*)
8905       export_dynamic_flag_spec=-rdynamic
8906       ;;
8908     cygwin* | mingw* | pw32* | cegcc*)
8909       # When not using gcc, we currently assume that we are using
8910       # Microsoft Visual C++.
8911       # hardcode_libdir_flag_spec is actually meaningless, as there is
8912       # no search path for DLLs.
8913       hardcode_libdir_flag_spec=' '
8914       allow_undefined_flag=unsupported
8915       # Tell ltmain to make .lib files, not .a files.
8916       libext=lib
8917       # Tell ltmain to make .dll files, not .so files.
8918       shrext_cmds=".dll"
8919       # FIXME: Setting linknames here is a bad hack.
8920       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8921       # The linker will automatically build a .lib file if we build a DLL.
8922       old_archive_from_new_cmds='true'
8923       # FIXME: Should let the user specify the lib program.
8924       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8925       fix_srcfile_path='`cygpath -w "$srcfile"`'
8926       enable_shared_with_static_runtimes=yes
8927       ;;
8929     darwin* | rhapsody*)
8932   archive_cmds_need_lc=no
8933   hardcode_direct=no
8934   hardcode_automatic=yes
8935   hardcode_shlibpath_var=unsupported
8936   whole_archive_flag_spec=''
8937   link_all_deplibs=yes
8938   allow_undefined_flag="$_lt_dar_allow_undefined"
8939   case $cc_basename in
8940      ifort*) _lt_dar_can_shared=yes ;;
8941      *) _lt_dar_can_shared=$GCC ;;
8942   esac
8943   if test "$_lt_dar_can_shared" = "yes"; then
8944     output_verbose_link_cmd=echo
8945     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8946     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8947     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}"
8948     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}"
8950   else
8951   ld_shlibs=no
8952   fi
8954       ;;
8956     dgux*)
8957       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958       hardcode_libdir_flag_spec='-L$libdir'
8959       hardcode_shlibpath_var=no
8960       ;;
8962     freebsd1*)
8963       ld_shlibs=no
8964       ;;
8966     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8967     # support.  Future versions do this automatically, but an explicit c++rt0.o
8968     # does not break anything, and helps significantly (at the cost of a little
8969     # extra space).
8970     freebsd2.2*)
8971       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8972       hardcode_libdir_flag_spec='-R$libdir'
8973       hardcode_direct=yes
8974       hardcode_shlibpath_var=no
8975       ;;
8977     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8978     freebsd2*)
8979       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8980       hardcode_direct=yes
8981       hardcode_minus_L=yes
8982       hardcode_shlibpath_var=no
8983       ;;
8985     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8986     freebsd* | dragonfly*)
8987       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8988       hardcode_libdir_flag_spec='-R$libdir'
8989       hardcode_direct=yes
8990       hardcode_shlibpath_var=no
8991       ;;
8993     hpux9*)
8994       if test "$GCC" = yes; then
8995         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'
8996       else
8997         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'
8998       fi
8999       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9000       hardcode_libdir_separator=:
9001       hardcode_direct=yes
9003       # hardcode_minus_L: Not really in the search PATH,
9004       # but as the default location of the library.
9005       hardcode_minus_L=yes
9006       export_dynamic_flag_spec='${wl}-E'
9007       ;;
9009     hpux10*)
9010       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9011         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9012       else
9013         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9014       fi
9015       if test "$with_gnu_ld" = no; then
9016         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9017         hardcode_libdir_flag_spec_ld='+b $libdir'
9018         hardcode_libdir_separator=:
9019         hardcode_direct=yes
9020         hardcode_direct_absolute=yes
9021         export_dynamic_flag_spec='${wl}-E'
9022         # hardcode_minus_L: Not really in the search PATH,
9023         # but as the default location of the library.
9024         hardcode_minus_L=yes
9025       fi
9026       ;;
9028     hpux11*)
9029       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9030         case $host_cpu in
9031         hppa*64*)
9032           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9033           ;;
9034         ia64*)
9035           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9036           ;;
9037         *)
9038           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9039           ;;
9040         esac
9041       else
9042         case $host_cpu in
9043         hppa*64*)
9044           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045           ;;
9046         ia64*)
9047           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9048           ;;
9049         *)
9050           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9051           ;;
9052         esac
9053       fi
9054       if test "$with_gnu_ld" = no; then
9055         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9056         hardcode_libdir_separator=:
9058         case $host_cpu in
9059         hppa*64*|ia64*)
9060           hardcode_direct=no
9061           hardcode_shlibpath_var=no
9062           ;;
9063         *)
9064           hardcode_direct=yes
9065           hardcode_direct_absolute=yes
9066           export_dynamic_flag_spec='${wl}-E'
9068           # hardcode_minus_L: Not really in the search PATH,
9069           # but as the default location of the library.
9070           hardcode_minus_L=yes
9071           ;;
9072         esac
9073       fi
9074       ;;
9076     irix5* | irix6* | nonstopux*)
9077       if test "$GCC" = yes; then
9078         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9079         # Try to use the -exported_symbol ld option, if it does not
9080         # work, assume that -exports_file does not work either and
9081         # implicitly export all symbols.
9082         save_LDFLAGS="$LDFLAGS"
9083         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9084         cat >conftest.$ac_ext <<_ACEOF
9085 int foo(void) {}
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (ac_try="$ac_link"
9089 case "(($ac_try" in
9090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091   *) ac_try_echo=$ac_try;;
9092 esac
9093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9094 $as_echo "$ac_try_echo") >&5
9095   (eval "$ac_link") 2>conftest.er1
9096   ac_status=$?
9097   grep -v '^ *+' conftest.er1 >conftest.err
9098   rm -f conftest.er1
9099   cat conftest.err >&5
9100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); } && {
9102          test -z "$ac_c_werror_flag" ||
9103          test ! -s conftest.err
9104        } && test -s conftest$ac_exeext && {
9105          test "$cross_compiling" = yes ||
9106          $as_test_x conftest$ac_exeext
9107        }; then
9108   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9110 else
9111   $as_echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9115 fi
9117 rm -rf conftest.dSYM
9118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9119       conftest$ac_exeext conftest.$ac_ext
9120         LDFLAGS="$save_LDFLAGS"
9121       else
9122         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9123         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9124       fi
9125       archive_cmds_need_lc='no'
9126       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9127       hardcode_libdir_separator=:
9128       inherit_rpath=yes
9129       link_all_deplibs=yes
9130       ;;
9132     netbsd* | netbsdelf*-gnu)
9133       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9134         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9135       else
9136         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9137       fi
9138       hardcode_libdir_flag_spec='-R$libdir'
9139       hardcode_direct=yes
9140       hardcode_shlibpath_var=no
9141       ;;
9143     newsos6)
9144       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145       hardcode_direct=yes
9146       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9147       hardcode_libdir_separator=:
9148       hardcode_shlibpath_var=no
9149       ;;
9151     *nto* | *qnx*)
9152       ;;
9154     openbsd*)
9155       if test -f /usr/libexec/ld.so; then
9156         hardcode_direct=yes
9157         hardcode_shlibpath_var=no
9158         hardcode_direct_absolute=yes
9159         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9160           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9161           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9162           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9163           export_dynamic_flag_spec='${wl}-E'
9164         else
9165           case $host_os in
9166            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9167              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9168              hardcode_libdir_flag_spec='-R$libdir'
9169              ;;
9170            *)
9171              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9172              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9173              ;;
9174           esac
9175         fi
9176       else
9177         ld_shlibs=no
9178       fi
9179       ;;
9181     os2*)
9182       hardcode_libdir_flag_spec='-L$libdir'
9183       hardcode_minus_L=yes
9184       allow_undefined_flag=unsupported
9185       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'
9186       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9187       ;;
9189     osf3*)
9190       if test "$GCC" = yes; then
9191         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9192         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9193       else
9194         allow_undefined_flag=' -expect_unresolved \*'
9195         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9196       fi
9197       archive_cmds_need_lc='no'
9198       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9199       hardcode_libdir_separator=:
9200       ;;
9202     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9203       if test "$GCC" = yes; then
9204         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9205         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9206         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9207       else
9208         allow_undefined_flag=' -expect_unresolved \*'
9209         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9210         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9211         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9213         # Both c and cxx compiler support -rpath directly
9214         hardcode_libdir_flag_spec='-rpath $libdir'
9215       fi
9216       archive_cmds_need_lc='no'
9217       hardcode_libdir_separator=:
9218       ;;
9220     solaris*)
9221       no_undefined_flag=' -z defs'
9222       if test "$GCC" = yes; then
9223         wlarc='${wl}'
9224         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9225         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9226           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9227       else
9228         case `$CC -V 2>&1` in
9229         *"Compilers 5.0"*)
9230           wlarc=''
9231           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9233           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9234           ;;
9235         *)
9236           wlarc='${wl}'
9237           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9238           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9239           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9240           ;;
9241         esac
9242       fi
9243       hardcode_libdir_flag_spec='-R$libdir'
9244       hardcode_shlibpath_var=no
9245       case $host_os in
9246       solaris2.[0-5] | solaris2.[0-5].*) ;;
9247       *)
9248         # The compiler driver will combine and reorder linker options,
9249         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9250         # but is careful enough not to reorder.
9251         # Supported since Solaris 2.6 (maybe 2.5.1?)
9252         if test "$GCC" = yes; then
9253           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9254         else
9255           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9256         fi
9257         ;;
9258       esac
9259       link_all_deplibs=yes
9260       ;;
9262     sunos4*)
9263       if test "x$host_vendor" = xsequent; then
9264         # Use $CC to link under sequent, because it throws in some extra .o
9265         # files that make .init and .fini sections work.
9266         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9267       else
9268         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9269       fi
9270       hardcode_libdir_flag_spec='-L$libdir'
9271       hardcode_direct=yes
9272       hardcode_minus_L=yes
9273       hardcode_shlibpath_var=no
9274       ;;
9276     sysv4)
9277       case $host_vendor in
9278         sni)
9279           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280           hardcode_direct=yes # is this really true???
9281         ;;
9282         siemens)
9283           ## LD is ld it makes a PLAMLIB
9284           ## CC just makes a GrossModule.
9285           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9286           reload_cmds='$CC -r -o $output$reload_objs'
9287           hardcode_direct=no
9288         ;;
9289         motorola)
9290           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9292         ;;
9293       esac
9294       runpath_var='LD_RUN_PATH'
9295       hardcode_shlibpath_var=no
9296       ;;
9298     sysv4.3*)
9299       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9300       hardcode_shlibpath_var=no
9301       export_dynamic_flag_spec='-Bexport'
9302       ;;
9304     sysv4*MP*)
9305       if test -d /usr/nec; then
9306         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9307         hardcode_shlibpath_var=no
9308         runpath_var=LD_RUN_PATH
9309         hardcode_runpath_var=yes
9310         ld_shlibs=yes
9311       fi
9312       ;;
9314     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9315       no_undefined_flag='${wl}-z,text'
9316       archive_cmds_need_lc=no
9317       hardcode_shlibpath_var=no
9318       runpath_var='LD_RUN_PATH'
9320       if test "$GCC" = yes; then
9321         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9322         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9323       else
9324         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9325         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9326       fi
9327       ;;
9329     sysv5* | sco3.2v5* | sco5v6*)
9330       # Note: We can NOT use -z defs as we might desire, because we do not
9331       # link with -lc, and that would cause any symbols used from libc to
9332       # always be unresolved, which means just about no library would
9333       # ever link correctly.  If we're not using GNU ld we use -z text
9334       # though, which does catch some bad symbols but isn't as heavy-handed
9335       # as -z defs.
9336       no_undefined_flag='${wl}-z,text'
9337       allow_undefined_flag='${wl}-z,nodefs'
9338       archive_cmds_need_lc=no
9339       hardcode_shlibpath_var=no
9340       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9341       hardcode_libdir_separator=':'
9342       link_all_deplibs=yes
9343       export_dynamic_flag_spec='${wl}-Bexport'
9344       runpath_var='LD_RUN_PATH'
9346       if test "$GCC" = yes; then
9347         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9348         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9349       else
9350         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352       fi
9353       ;;
9355     uts4*)
9356       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357       hardcode_libdir_flag_spec='-L$libdir'
9358       hardcode_shlibpath_var=no
9359       ;;
9361     *)
9362       ld_shlibs=no
9363       ;;
9364     esac
9366     if test x$host_vendor = xsni; then
9367       case $host in
9368       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9369         export_dynamic_flag_spec='${wl}-Blargedynsym'
9370         ;;
9371       esac
9372     fi
9373   fi
9375 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9376 $as_echo "$ld_shlibs" >&6; }
9377 test "$ld_shlibs" = no && can_build_shared=no
9379 with_gnu_ld=$with_gnu_ld
9396 # Do we need to explicitly link libc?
9398 case "x$archive_cmds_need_lc" in
9399 x|xyes)
9400   # Assume -lc should be added
9401   archive_cmds_need_lc=yes
9403   if test "$enable_shared" = yes && test "$GCC" = yes; then
9404     case $archive_cmds in
9405     *'~'*)
9406       # FIXME: we may have to deal with multi-command sequences.
9407       ;;
9408     '$CC '*)
9409       # Test whether the compiler implicitly links with -lc since on some
9410       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9411       # to ld, don't add -lc before -lgcc.
9412       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9413 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9414       $RM conftest*
9415       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9417       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9418   (eval $ac_compile) 2>&5
9419   ac_status=$?
9420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } 2>conftest.err; then
9422         soname=conftest
9423         lib=conftest
9424         libobjs=conftest.$ac_objext
9425         deplibs=
9426         wl=$lt_prog_compiler_wl
9427         pic_flag=$lt_prog_compiler_pic
9428         compiler_flags=-v
9429         linker_flags=-v
9430         verstring=
9431         output_objdir=.
9432         libname=conftest
9433         lt_save_allow_undefined_flag=$allow_undefined_flag
9434         allow_undefined_flag=
9435         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9436   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9437   ac_status=$?
9438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); }
9440         then
9441           archive_cmds_need_lc=no
9442         else
9443           archive_cmds_need_lc=yes
9444         fi
9445         allow_undefined_flag=$lt_save_allow_undefined_flag
9446       else
9447         cat conftest.err 1>&5
9448       fi
9449       $RM conftest*
9450       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9451 $as_echo "$archive_cmds_need_lc" >&6; }
9452       ;;
9453     esac
9454   fi
9455   ;;
9456 esac
9614   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9615 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9617 if test "$GCC" = yes; then
9618   case $host_os in
9619     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9620     *) lt_awk_arg="/^libraries:/" ;;
9621   esac
9622   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9623   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9624     # if the path contains ";" then we assume it to be the separator
9625     # otherwise default to the standard path separator (i.e. ":") - it is
9626     # assumed that no part of a normal pathname contains ";" but that should
9627     # okay in the real world where ";" in dirpaths is itself problematic.
9628     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9629   else
9630     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9631   fi
9632   # Ok, now we have the path, separated by spaces, we can step through it
9633   # and add multilib dir if necessary.
9634   lt_tmp_lt_search_path_spec=
9635   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9636   for lt_sys_path in $lt_search_path_spec; do
9637     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9638       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9639     else
9640       test -d "$lt_sys_path" && \
9641         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9642     fi
9643   done
9644   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9645 BEGIN {RS=" "; FS="/|\n";} {
9646   lt_foo="";
9647   lt_count=0;
9648   for (lt_i = NF; lt_i > 0; lt_i--) {
9649     if ($lt_i != "" && $lt_i != ".") {
9650       if ($lt_i == "..") {
9651         lt_count++;
9652       } else {
9653         if (lt_count == 0) {
9654           lt_foo="/" $lt_i lt_foo;
9655         } else {
9656           lt_count--;
9657         }
9658       }
9659     }
9660   }
9661   if (lt_foo != "") { lt_freq[lt_foo]++; }
9662   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9663 }'`
9664   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9665 else
9666   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9667 fi
9668 library_names_spec=
9669 libname_spec='lib$name'
9670 soname_spec=
9671 shrext_cmds=".so"
9672 postinstall_cmds=
9673 postuninstall_cmds=
9674 finish_cmds=
9675 finish_eval=
9676 shlibpath_var=
9677 shlibpath_overrides_runpath=unknown
9678 version_type=none
9679 dynamic_linker="$host_os ld.so"
9680 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9681 need_lib_prefix=unknown
9682 hardcode_into_libs=no
9684 # when you set need_version to no, make sure it does not cause -set_version
9685 # flags to be left without arguments
9686 need_version=unknown
9688 case $host_os in
9689 aix3*)
9690   version_type=linux
9691   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9692   shlibpath_var=LIBPATH
9694   # AIX 3 has no versioning support, so we append a major version to the name.
9695   soname_spec='${libname}${release}${shared_ext}$major'
9696   ;;
9698 aix[4-9]*)
9699   version_type=linux
9700   need_lib_prefix=no
9701   need_version=no
9702   hardcode_into_libs=yes
9703   if test "$host_cpu" = ia64; then
9704     # AIX 5 supports IA64
9705     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9706     shlibpath_var=LD_LIBRARY_PATH
9707   else
9708     # With GCC up to 2.95.x, collect2 would create an import file
9709     # for dependence libraries.  The import file would start with
9710     # the line `#! .'.  This would cause the generated library to
9711     # depend on `.', always an invalid library.  This was fixed in
9712     # development snapshots of GCC prior to 3.0.
9713     case $host_os in
9714       aix4 | aix4.[01] | aix4.[01].*)
9715       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9716            echo ' yes '
9717            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9718         :
9719       else
9720         can_build_shared=no
9721       fi
9722       ;;
9723     esac
9724     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9725     # soname into executable. Probably we can add versioning support to
9726     # collect2, so additional links can be useful in future.
9727     if test "$aix_use_runtimelinking" = yes; then
9728       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9729       # instead of lib<name>.a to let people know that these are not
9730       # typical AIX shared libraries.
9731       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732     else
9733       # We preserve .a as extension for shared libraries through AIX4.2
9734       # and later when we are not doing run time linking.
9735       library_names_spec='${libname}${release}.a $libname.a'
9736       soname_spec='${libname}${release}${shared_ext}$major'
9737     fi
9738     shlibpath_var=LIBPATH
9739   fi
9740   ;;
9742 amigaos*)
9743   case $host_cpu in
9744   powerpc)
9745     # Since July 2007 AmigaOS4 officially supports .so libraries.
9746     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9748     ;;
9749   m68k)
9750     library_names_spec='$libname.ixlibrary $libname.a'
9751     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9752     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'
9753     ;;
9754   esac
9755   ;;
9757 beos*)
9758   library_names_spec='${libname}${shared_ext}'
9759   dynamic_linker="$host_os ld.so"
9760   shlibpath_var=LIBRARY_PATH
9761   ;;
9763 bsdi[45]*)
9764   version_type=linux
9765   need_version=no
9766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9767   soname_spec='${libname}${release}${shared_ext}$major'
9768   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9769   shlibpath_var=LD_LIBRARY_PATH
9770   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9771   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9772   # the default ld.so.conf also contains /usr/contrib/lib and
9773   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9774   # libtool to hard-code these into programs
9775   ;;
9777 cygwin* | mingw* | pw32* | cegcc*)
9778   version_type=windows
9779   shrext_cmds=".dll"
9780   need_version=no
9781   need_lib_prefix=no
9783   case $GCC,$host_os in
9784   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9785     library_names_spec='$libname.dll.a'
9786     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9787     postinstall_cmds='base_file=`basename \${file}`~
9788       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9789       dldir=$destdir/`dirname \$dlpath`~
9790       test -d \$dldir || mkdir -p \$dldir~
9791       $install_prog $dir/$dlname \$dldir/$dlname~
9792       chmod a+x \$dldir/$dlname~
9793       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9794         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9795       fi'
9796     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9797       dlpath=$dir/\$dldll~
9798        $RM \$dlpath'
9799     shlibpath_overrides_runpath=yes
9801     case $host_os in
9802     cygwin*)
9803       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9804       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9805       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9806       ;;
9807     mingw* | cegcc*)
9808       # MinGW DLLs use traditional 'lib' prefix
9809       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9810       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9811       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9812         # It is most probably a Windows format PATH printed by
9813         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9814         # path with ; separators, and with drive letters. We can handle the
9815         # drive letters (cygwin fileutils understands them), so leave them,
9816         # especially as we might pass files found there to a mingw objdump,
9817         # which wouldn't understand a cygwinified path. Ahh.
9818         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9819       else
9820         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9821       fi
9822       ;;
9823     pw32*)
9824       # pw32 DLLs use 'pw' prefix rather than 'lib'
9825       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9826       ;;
9827     esac
9828     ;;
9830   *)
9831     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9832     ;;
9833   esac
9834   dynamic_linker='Win32 ld.exe'
9835   # FIXME: first we should search . and the directory the executable is in
9836   shlibpath_var=PATH
9837   ;;
9839 darwin* | rhapsody*)
9840   dynamic_linker="$host_os dyld"
9841   version_type=darwin
9842   need_lib_prefix=no
9843   need_version=no
9844   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9845   soname_spec='${libname}${release}${major}$shared_ext'
9846   shlibpath_overrides_runpath=yes
9847   shlibpath_var=DYLD_LIBRARY_PATH
9848   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9850   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9851   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9852   ;;
9854 dgux*)
9855   version_type=linux
9856   need_lib_prefix=no
9857   need_version=no
9858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9859   soname_spec='${libname}${release}${shared_ext}$major'
9860   shlibpath_var=LD_LIBRARY_PATH
9861   ;;
9863 freebsd1*)
9864   dynamic_linker=no
9865   ;;
9867 freebsd* | dragonfly*)
9868   # DragonFly does not have aout.  When/if they implement a new
9869   # versioning mechanism, adjust this.
9870   if test -x /usr/bin/objformat; then
9871     objformat=`/usr/bin/objformat`
9872   else
9873     case $host_os in
9874     freebsd[123]*) objformat=aout ;;
9875     *) objformat=elf ;;
9876     esac
9877   fi
9878   version_type=freebsd-$objformat
9879   case $version_type in
9880     freebsd-elf*)
9881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9882       need_version=no
9883       need_lib_prefix=no
9884       ;;
9885     freebsd-*)
9886       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9887       need_version=yes
9888       ;;
9889   esac
9890   shlibpath_var=LD_LIBRARY_PATH
9891   case $host_os in
9892   freebsd2*)
9893     shlibpath_overrides_runpath=yes
9894     ;;
9895   freebsd3.[01]* | freebsdelf3.[01]*)
9896     shlibpath_overrides_runpath=yes
9897     hardcode_into_libs=yes
9898     ;;
9899   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9900   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9901     shlibpath_overrides_runpath=no
9902     hardcode_into_libs=yes
9903     ;;
9904   *) # from 4.6 on, and DragonFly
9905     shlibpath_overrides_runpath=yes
9906     hardcode_into_libs=yes
9907     ;;
9908   esac
9909   ;;
9911 gnu*)
9912   version_type=linux
9913   need_lib_prefix=no
9914   need_version=no
9915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9916   soname_spec='${libname}${release}${shared_ext}$major'
9917   shlibpath_var=LD_LIBRARY_PATH
9918   hardcode_into_libs=yes
9919   ;;
9921 hpux9* | hpux10* | hpux11*)
9922   # Give a soname corresponding to the major version so that dld.sl refuses to
9923   # link against other versions.
9924   version_type=sunos
9925   need_lib_prefix=no
9926   need_version=no
9927   case $host_cpu in
9928   ia64*)
9929     shrext_cmds='.so'
9930     hardcode_into_libs=yes
9931     dynamic_linker="$host_os dld.so"
9932     shlibpath_var=LD_LIBRARY_PATH
9933     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935     soname_spec='${libname}${release}${shared_ext}$major'
9936     if test "X$HPUX_IA64_MODE" = X32; then
9937       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9938     else
9939       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9940     fi
9941     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9942     ;;
9943   hppa*64*)
9944     shrext_cmds='.sl'
9945     hardcode_into_libs=yes
9946     dynamic_linker="$host_os dld.sl"
9947     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9948     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950     soname_spec='${libname}${release}${shared_ext}$major'
9951     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9952     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9953     ;;
9954   *)
9955     shrext_cmds='.sl'
9956     dynamic_linker="$host_os dld.sl"
9957     shlibpath_var=SHLIB_PATH
9958     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960     soname_spec='${libname}${release}${shared_ext}$major'
9961     ;;
9962   esac
9963   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9964   postinstall_cmds='chmod 555 $lib'
9965   ;;
9967 interix[3-9]*)
9968   version_type=linux
9969   need_lib_prefix=no
9970   need_version=no
9971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9972   soname_spec='${libname}${release}${shared_ext}$major'
9973   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9974   shlibpath_var=LD_LIBRARY_PATH
9975   shlibpath_overrides_runpath=no
9976   hardcode_into_libs=yes
9977   ;;
9979 irix5* | irix6* | nonstopux*)
9980   case $host_os in
9981     nonstopux*) version_type=nonstopux ;;
9982     *)
9983         if test "$lt_cv_prog_gnu_ld" = yes; then
9984                 version_type=linux
9985         else
9986                 version_type=irix
9987         fi ;;
9988   esac
9989   need_lib_prefix=no
9990   need_version=no
9991   soname_spec='${libname}${release}${shared_ext}$major'
9992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9993   case $host_os in
9994   irix5* | nonstopux*)
9995     libsuff= shlibsuff=
9996     ;;
9997   *)
9998     case $LD in # libtool.m4 will add one of these switches to LD
9999     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10000       libsuff= shlibsuff= libmagic=32-bit;;
10001     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10002       libsuff=32 shlibsuff=N32 libmagic=N32;;
10003     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10004       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10005     *) libsuff= shlibsuff= libmagic=never-match;;
10006     esac
10007     ;;
10008   esac
10009   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10010   shlibpath_overrides_runpath=no
10011   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10012   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10013   hardcode_into_libs=yes
10014   ;;
10016 # No shared lib support for Linux oldld, aout, or coff.
10017 linux*oldld* | linux*aout* | linux*coff*)
10018   dynamic_linker=no
10019   ;;
10021 # This must be Linux ELF.
10022 linux* | k*bsd*-gnu)
10023   version_type=linux
10024   need_lib_prefix=no
10025   need_version=no
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027   soname_spec='${libname}${release}${shared_ext}$major'
10028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   shlibpath_overrides_runpath=no
10031   # Some binutils ld are patched to set DT_RUNPATH
10032   save_LDFLAGS=$LDFLAGS
10033   save_libdir=$libdir
10034   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10035        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10036   cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h.  */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h.  */
10043 int
10044 main ()
10047   ;
10048   return 0;
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10058 $as_echo "$ac_try_echo") >&5
10059   (eval "$ac_link") 2>conftest.er1
10060   ac_status=$?
10061   grep -v '^ *+' conftest.er1 >conftest.err
10062   rm -f conftest.er1
10063   cat conftest.err >&5
10064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } && {
10066          test -z "$ac_c_werror_flag" ||
10067          test ! -s conftest.err
10068        } && test -s conftest$ac_exeext && {
10069          test "$cross_compiling" = yes ||
10070          $as_test_x conftest$ac_exeext
10071        }; then
10072   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10073   shlibpath_overrides_runpath=yes
10076 else
10077   $as_echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10083 rm -rf conftest.dSYM
10084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10085       conftest$ac_exeext conftest.$ac_ext
10086   LDFLAGS=$save_LDFLAGS
10087   libdir=$save_libdir
10089   # This implies no fast_install, which is unacceptable.
10090   # Some rework will be needed to allow for fast_install
10091   # before this can be enabled.
10092   hardcode_into_libs=yes
10094   # Append ld.so.conf contents to the search path
10095   if test -f /etc/ld.so.conf; then
10096     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' ' '`
10097     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10098   fi
10100   # We used to test for /lib/ld.so.1 and disable shared libraries on
10101   # powerpc, because MkLinux only supported shared libraries with the
10102   # GNU dynamic linker.  Since this was broken with cross compilers,
10103   # most powerpc-linux boxes support dynamic linking these days and
10104   # people can always --disable-shared, the test was removed, and we
10105   # assume the GNU/Linux dynamic linker is in use.
10106   dynamic_linker='GNU/Linux ld.so'
10107   ;;
10109 netbsdelf*-gnu)
10110   version_type=linux
10111   need_lib_prefix=no
10112   need_version=no
10113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10114   soname_spec='${libname}${release}${shared_ext}$major'
10115   shlibpath_var=LD_LIBRARY_PATH
10116   shlibpath_overrides_runpath=no
10117   hardcode_into_libs=yes
10118   dynamic_linker='NetBSD ld.elf_so'
10119   ;;
10121 netbsd*)
10122   version_type=sunos
10123   need_lib_prefix=no
10124   need_version=no
10125   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10127     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10128     dynamic_linker='NetBSD (a.out) ld.so'
10129   else
10130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10131     soname_spec='${libname}${release}${shared_ext}$major'
10132     dynamic_linker='NetBSD ld.elf_so'
10133   fi
10134   shlibpath_var=LD_LIBRARY_PATH
10135   shlibpath_overrides_runpath=yes
10136   hardcode_into_libs=yes
10137   ;;
10139 newsos6)
10140   version_type=linux
10141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142   shlibpath_var=LD_LIBRARY_PATH
10143   shlibpath_overrides_runpath=yes
10144   ;;
10146 *nto* | *qnx*)
10147   version_type=qnx
10148   need_lib_prefix=no
10149   need_version=no
10150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151   soname_spec='${libname}${release}${shared_ext}$major'
10152   shlibpath_var=LD_LIBRARY_PATH
10153   shlibpath_overrides_runpath=no
10154   hardcode_into_libs=yes
10155   dynamic_linker='ldqnx.so'
10156   ;;
10158 openbsd*)
10159   version_type=sunos
10160   sys_lib_dlsearch_path_spec="/usr/lib"
10161   need_lib_prefix=no
10162   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10163   case $host_os in
10164     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10165     *)                          need_version=no  ;;
10166   esac
10167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10168   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10169   shlibpath_var=LD_LIBRARY_PATH
10170   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10171     case $host_os in
10172       openbsd2.[89] | openbsd2.[89].*)
10173         shlibpath_overrides_runpath=no
10174         ;;
10175       *)
10176         shlibpath_overrides_runpath=yes
10177         ;;
10178       esac
10179   else
10180     shlibpath_overrides_runpath=yes
10181   fi
10182   ;;
10184 os2*)
10185   libname_spec='$name'
10186   shrext_cmds=".dll"
10187   need_lib_prefix=no
10188   library_names_spec='$libname${shared_ext} $libname.a'
10189   dynamic_linker='OS/2 ld.exe'
10190   shlibpath_var=LIBPATH
10191   ;;
10193 osf3* | osf4* | osf5*)
10194   version_type=osf
10195   need_lib_prefix=no
10196   need_version=no
10197   soname_spec='${libname}${release}${shared_ext}$major'
10198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10201   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10202   ;;
10204 rdos*)
10205   dynamic_linker=no
10206   ;;
10208 solaris*)
10209   version_type=linux
10210   need_lib_prefix=no
10211   need_version=no
10212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213   soname_spec='${libname}${release}${shared_ext}$major'
10214   shlibpath_var=LD_LIBRARY_PATH
10215   shlibpath_overrides_runpath=yes
10216   hardcode_into_libs=yes
10217   # ldd complains unless libraries are executable
10218   postinstall_cmds='chmod +x $lib'
10219   ;;
10221 sunos4*)
10222   version_type=sunos
10223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10225   shlibpath_var=LD_LIBRARY_PATH
10226   shlibpath_overrides_runpath=yes
10227   if test "$with_gnu_ld" = yes; then
10228     need_lib_prefix=no
10229   fi
10230   need_version=yes
10231   ;;
10233 sysv4 | sysv4.3*)
10234   version_type=linux
10235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236   soname_spec='${libname}${release}${shared_ext}$major'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   case $host_vendor in
10239     sni)
10240       shlibpath_overrides_runpath=no
10241       need_lib_prefix=no
10242       runpath_var=LD_RUN_PATH
10243       ;;
10244     siemens)
10245       need_lib_prefix=no
10246       ;;
10247     motorola)
10248       need_lib_prefix=no
10249       need_version=no
10250       shlibpath_overrides_runpath=no
10251       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10252       ;;
10253   esac
10254   ;;
10256 sysv4*MP*)
10257   if test -d /usr/nec ;then
10258     version_type=linux
10259     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10260     soname_spec='$libname${shared_ext}.$major'
10261     shlibpath_var=LD_LIBRARY_PATH
10262   fi
10263   ;;
10265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10266   version_type=freebsd-elf
10267   need_lib_prefix=no
10268   need_version=no
10269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10270   soname_spec='${libname}${release}${shared_ext}$major'
10271   shlibpath_var=LD_LIBRARY_PATH
10272   shlibpath_overrides_runpath=yes
10273   hardcode_into_libs=yes
10274   if test "$with_gnu_ld" = yes; then
10275     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10276   else
10277     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10278     case $host_os in
10279       sco3.2v5*)
10280         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10281         ;;
10282     esac
10283   fi
10284   sys_lib_dlsearch_path_spec='/usr/lib'
10285   ;;
10287 tpf*)
10288   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10289   version_type=linux
10290   need_lib_prefix=no
10291   need_version=no
10292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293   shlibpath_var=LD_LIBRARY_PATH
10294   shlibpath_overrides_runpath=no
10295   hardcode_into_libs=yes
10296   ;;
10298 uts4*)
10299   version_type=linux
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   ;;
10306   dynamic_linker=no
10307   ;;
10308 esac
10309 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10310 $as_echo "$dynamic_linker" >&6; }
10311 test "$dynamic_linker" = no && can_build_shared=no
10313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10314 if test "$GCC" = yes; then
10315   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10318 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10319   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10321 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10322   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10411   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10412 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10413 hardcode_action=
10414 if test -n "$hardcode_libdir_flag_spec" ||
10415    test -n "$runpath_var" ||
10416    test "X$hardcode_automatic" = "Xyes" ; then
10418   # We can hardcode non-existent directories.
10419   if test "$hardcode_direct" != no &&
10420      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10421      # have to relink, otherwise we might link with an installed library
10422      # when we should be linking with a yet-to-be-installed one
10423      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10424      test "$hardcode_minus_L" != no; then
10425     # Linking always hardcodes the temporary library directory.
10426     hardcode_action=relink
10427   else
10428     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10429     hardcode_action=immediate
10430   fi
10431 else
10432   # We cannot hardcode anything, or else we can only hardcode existing
10433   # directories.
10434   hardcode_action=unsupported
10436 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10437 $as_echo "$hardcode_action" >&6; }
10439 if test "$hardcode_action" = relink ||
10440    test "$inherit_rpath" = yes; then
10441   # Fast installation is not supported
10442   enable_fast_install=no
10443 elif test "$shlibpath_overrides_runpath" = yes ||
10444      test "$enable_shared" = no; then
10445   # Fast installation is not necessary
10446   enable_fast_install=needless
10454   if test "x$enable_dlopen" != xyes; then
10455   enable_dlopen=unknown
10456   enable_dlopen_self=unknown
10457   enable_dlopen_self_static=unknown
10458 else
10459   lt_cv_dlopen=no
10460   lt_cv_dlopen_libs=
10462   case $host_os in
10463   beos*)
10464     lt_cv_dlopen="load_add_on"
10465     lt_cv_dlopen_libs=
10466     lt_cv_dlopen_self=yes
10467     ;;
10469   mingw* | pw32* | cegcc*)
10470     lt_cv_dlopen="LoadLibrary"
10471     lt_cv_dlopen_libs=
10472     ;;
10474   cygwin*)
10475     lt_cv_dlopen="dlopen"
10476     lt_cv_dlopen_libs=
10477     ;;
10479   darwin*)
10480   # if libdl is installed we need to link against it
10481     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10482 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10483 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10484   $as_echo_n "(cached) " >&6
10485 else
10486   ac_check_lib_save_LIBS=$LIBS
10487 LIBS="-ldl  $LIBS"
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10495 /* Override any GCC internal prototype to avoid an error.
10496    Use char because int might match the return type of a GCC
10497    builtin and then its argument prototype would still apply.  */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char dlopen ();
10502 int
10503 main ()
10505 return dlopen ();
10506   ;
10507   return 0;
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10517 $as_echo "$ac_try_echo") >&5
10518   (eval "$ac_link") 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } && {
10525          test -z "$ac_c_werror_flag" ||
10526          test ! -s conftest.err
10527        } && test -s conftest$ac_exeext && {
10528          test "$cross_compiling" = yes ||
10529          $as_test_x conftest$ac_exeext
10530        }; then
10531   ac_cv_lib_dl_dlopen=yes
10532 else
10533   $as_echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536         ac_cv_lib_dl_dlopen=no
10539 rm -rf conftest.dSYM
10540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10541       conftest$ac_exeext conftest.$ac_ext
10542 LIBS=$ac_check_lib_save_LIBS
10544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10545 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10546 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10547   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10548 else
10550     lt_cv_dlopen="dyld"
10551     lt_cv_dlopen_libs=
10552     lt_cv_dlopen_self=yes
10556     ;;
10558   *)
10559     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10560 $as_echo_n "checking for shl_load... " >&6; }
10561 if test "${ac_cv_func_shl_load+set}" = set; then
10562   $as_echo_n "(cached) " >&6
10563 else
10564   cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h.  */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h.  */
10570 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10572 #define shl_load innocuous_shl_load
10574 /* System header to define __stub macros and hopefully few prototypes,
10575     which can conflict with char shl_load (); below.
10576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10577     <limits.h> exists even on freestanding compilers.  */
10579 #ifdef __STDC__
10580 # include <limits.h>
10581 #else
10582 # include <assert.h>
10583 #endif
10585 #undef shl_load
10587 /* Override any GCC internal prototype to avoid an error.
10588    Use char because int might match the return type of a GCC
10589    builtin and then its argument prototype would still apply.  */
10590 #ifdef __cplusplus
10591 extern "C"
10592 #endif
10593 char shl_load ();
10594 /* The GNU C library defines this for functions which it implements
10595     to always fail with ENOSYS.  Some functions are actually named
10596     something starting with __ and the normal name is an alias.  */
10597 #if defined __stub_shl_load || defined __stub___shl_load
10598 choke me
10599 #endif
10601 int
10602 main ()
10604 return shl_load ();
10605   ;
10606   return 0;
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613   *) ac_try_echo=$ac_try;;
10614 esac
10615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616 $as_echo "$ac_try_echo") >&5
10617   (eval "$ac_link") 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } && {
10624          test -z "$ac_c_werror_flag" ||
10625          test ! -s conftest.err
10626        } && test -s conftest$ac_exeext && {
10627          test "$cross_compiling" = yes ||
10628          $as_test_x conftest$ac_exeext
10629        }; then
10630   ac_cv_func_shl_load=yes
10631 else
10632   $as_echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635         ac_cv_func_shl_load=no
10638 rm -rf conftest.dSYM
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640       conftest$ac_exeext conftest.$ac_ext
10642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10643 $as_echo "$ac_cv_func_shl_load" >&6; }
10644 if test "x$ac_cv_func_shl_load" = x""yes; then
10645   lt_cv_dlopen="shl_load"
10646 else
10647   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10648 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10649 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10650   $as_echo_n "(cached) " >&6
10651 else
10652   ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-ldld  $LIBS"
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10661 /* Override any GCC internal prototype to avoid an error.
10662    Use char because int might match the return type of a GCC
10663    builtin and then its argument prototype would still apply.  */
10664 #ifdef __cplusplus
10665 extern "C"
10666 #endif
10667 char shl_load ();
10668 int
10669 main ()
10671 return shl_load ();
10672   ;
10673   return 0;
10675 _ACEOF
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (ac_try="$ac_link"
10678 case "(($ac_try" in
10679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680   *) ac_try_echo=$ac_try;;
10681 esac
10682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10683 $as_echo "$ac_try_echo") >&5
10684   (eval "$ac_link") 2>conftest.er1
10685   ac_status=$?
10686   grep -v '^ *+' conftest.er1 >conftest.err
10687   rm -f conftest.er1
10688   cat conftest.err >&5
10689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } && {
10691          test -z "$ac_c_werror_flag" ||
10692          test ! -s conftest.err
10693        } && test -s conftest$ac_exeext && {
10694          test "$cross_compiling" = yes ||
10695          $as_test_x conftest$ac_exeext
10696        }; then
10697   ac_cv_lib_dld_shl_load=yes
10698 else
10699   $as_echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10702         ac_cv_lib_dld_shl_load=no
10705 rm -rf conftest.dSYM
10706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10707       conftest$ac_exeext conftest.$ac_ext
10708 LIBS=$ac_check_lib_save_LIBS
10710 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10711 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10712 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10713   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10714 else
10715   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10716 $as_echo_n "checking for dlopen... " >&6; }
10717 if test "${ac_cv_func_dlopen+set}" = set; then
10718   $as_echo_n "(cached) " >&6
10719 else
10720   cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h.  */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h.  */
10726 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10728 #define dlopen innocuous_dlopen
10730 /* System header to define __stub macros and hopefully few prototypes,
10731     which can conflict with char dlopen (); below.
10732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733     <limits.h> exists even on freestanding compilers.  */
10735 #ifdef __STDC__
10736 # include <limits.h>
10737 #else
10738 # include <assert.h>
10739 #endif
10741 #undef dlopen
10743 /* Override any GCC internal prototype to avoid an error.
10744    Use char because int might match the return type of a GCC
10745    builtin and then its argument prototype would still apply.  */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 char dlopen ();
10750 /* The GNU C library defines this for functions which it implements
10751     to always fail with ENOSYS.  Some functions are actually named
10752     something starting with __ and the normal name is an alias.  */
10753 #if defined __stub_dlopen || defined __stub___dlopen
10754 choke me
10755 #endif
10757 int
10758 main ()
10760 return dlopen ();
10761   ;
10762   return 0;
10764 _ACEOF
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (ac_try="$ac_link"
10767 case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10772 $as_echo "$ac_try_echo") >&5
10773   (eval "$ac_link") 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } && {
10780          test -z "$ac_c_werror_flag" ||
10781          test ! -s conftest.err
10782        } && test -s conftest$ac_exeext && {
10783          test "$cross_compiling" = yes ||
10784          $as_test_x conftest$ac_exeext
10785        }; then
10786   ac_cv_func_dlopen=yes
10787 else
10788   $as_echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791         ac_cv_func_dlopen=no
10794 rm -rf conftest.dSYM
10795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10796       conftest$ac_exeext conftest.$ac_ext
10798 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10799 $as_echo "$ac_cv_func_dlopen" >&6; }
10800 if test "x$ac_cv_func_dlopen" = x""yes; then
10801   lt_cv_dlopen="dlopen"
10802 else
10803   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10804 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10805 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10806   $as_echo_n "(cached) " >&6
10807 else
10808   ac_check_lib_save_LIBS=$LIBS
10809 LIBS="-ldl  $LIBS"
10810 cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h.  */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h.  */
10817 /* Override any GCC internal prototype to avoid an error.
10818    Use char because int might match the return type of a GCC
10819    builtin and then its argument prototype would still apply.  */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char dlopen ();
10824 int
10825 main ()
10827 return dlopen ();
10828   ;
10829   return 0;
10831 _ACEOF
10832 rm -f conftest.$ac_objext conftest$ac_exeext
10833 if { (ac_try="$ac_link"
10834 case "(($ac_try" in
10835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836   *) ac_try_echo=$ac_try;;
10837 esac
10838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10839 $as_echo "$ac_try_echo") >&5
10840   (eval "$ac_link") 2>conftest.er1
10841   ac_status=$?
10842   grep -v '^ *+' conftest.er1 >conftest.err
10843   rm -f conftest.er1
10844   cat conftest.err >&5
10845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } && {
10847          test -z "$ac_c_werror_flag" ||
10848          test ! -s conftest.err
10849        } && test -s conftest$ac_exeext && {
10850          test "$cross_compiling" = yes ||
10851          $as_test_x conftest$ac_exeext
10852        }; then
10853   ac_cv_lib_dl_dlopen=yes
10854 else
10855   $as_echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858         ac_cv_lib_dl_dlopen=no
10861 rm -rf conftest.dSYM
10862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10863       conftest$ac_exeext conftest.$ac_ext
10864 LIBS=$ac_check_lib_save_LIBS
10866 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10867 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10868 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10869   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10870 else
10871   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10872 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10873 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10874   $as_echo_n "(cached) " >&6
10875 else
10876   ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-lsvld  $LIBS"
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10885 /* Override any GCC internal prototype to avoid an error.
10886    Use char because int might match the return type of a GCC
10887    builtin and then its argument prototype would still apply.  */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char dlopen ();
10892 int
10893 main ()
10895 return dlopen ();
10896   ;
10897   return 0;
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10907 $as_echo "$ac_try_echo") >&5
10908   (eval "$ac_link") 2>conftest.er1
10909   ac_status=$?
10910   grep -v '^ *+' conftest.er1 >conftest.err
10911   rm -f conftest.er1
10912   cat conftest.err >&5
10913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); } && {
10915          test -z "$ac_c_werror_flag" ||
10916          test ! -s conftest.err
10917        } && test -s conftest$ac_exeext && {
10918          test "$cross_compiling" = yes ||
10919          $as_test_x conftest$ac_exeext
10920        }; then
10921   ac_cv_lib_svld_dlopen=yes
10922 else
10923   $as_echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926         ac_cv_lib_svld_dlopen=no
10929 rm -rf conftest.dSYM
10930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10931       conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10935 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10936 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10937   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10938 else
10939   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10940 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10941 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10942   $as_echo_n "(cached) " >&6
10943 else
10944   ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-ldld  $LIBS"
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h.  */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h.  */
10953 /* Override any GCC internal prototype to avoid an error.
10954    Use char because int might match the return type of a GCC
10955    builtin and then its argument prototype would still apply.  */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dld_link ();
10960 int
10961 main ()
10963 return dld_link ();
10964   ;
10965   return 0;
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972   *) ac_try_echo=$ac_try;;
10973 esac
10974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975 $as_echo "$ac_try_echo") >&5
10976   (eval "$ac_link") 2>conftest.er1
10977   ac_status=$?
10978   grep -v '^ *+' conftest.er1 >conftest.err
10979   rm -f conftest.er1
10980   cat conftest.err >&5
10981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } && {
10983          test -z "$ac_c_werror_flag" ||
10984          test ! -s conftest.err
10985        } && test -s conftest$ac_exeext && {
10986          test "$cross_compiling" = yes ||
10987          $as_test_x conftest$ac_exeext
10988        }; then
10989   ac_cv_lib_dld_dld_link=yes
10990 else
10991   $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994         ac_cv_lib_dld_dld_link=no
10997 rm -rf conftest.dSYM
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999       conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11003 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11004 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11005   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11023     ;;
11024   esac
11026   if test "x$lt_cv_dlopen" != xno; then
11027     enable_dlopen=yes
11028   else
11029     enable_dlopen=no
11030   fi
11032   case $lt_cv_dlopen in
11033   dlopen)
11034     save_CPPFLAGS="$CPPFLAGS"
11035     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11037     save_LDFLAGS="$LDFLAGS"
11038     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11040     save_LIBS="$LIBS"
11041     LIBS="$lt_cv_dlopen_libs $LIBS"
11043     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11044 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11045 if test "${lt_cv_dlopen_self+set}" = set; then
11046   $as_echo_n "(cached) " >&6
11047 else
11048           if test "$cross_compiling" = yes; then :
11049   lt_cv_dlopen_self=cross
11050 else
11051   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11052   lt_status=$lt_dlunknown
11053   cat > conftest.$ac_ext <<_LT_EOF
11054 #line 11054 "configure"
11055 #include "confdefs.h"
11057 #if HAVE_DLFCN_H
11058 #include <dlfcn.h>
11059 #endif
11061 #include <stdio.h>
11063 #ifdef RTLD_GLOBAL
11064 #  define LT_DLGLOBAL           RTLD_GLOBAL
11065 #else
11066 #  ifdef DL_GLOBAL
11067 #    define LT_DLGLOBAL         DL_GLOBAL
11068 #  else
11069 #    define LT_DLGLOBAL         0
11070 #  endif
11071 #endif
11073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11074    find out it does not work in some platform. */
11075 #ifndef LT_DLLAZY_OR_NOW
11076 #  ifdef RTLD_LAZY
11077 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11078 #  else
11079 #    ifdef DL_LAZY
11080 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11081 #    else
11082 #      ifdef RTLD_NOW
11083 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11084 #      else
11085 #        ifdef DL_NOW
11086 #          define LT_DLLAZY_OR_NOW      DL_NOW
11087 #        else
11088 #          define LT_DLLAZY_OR_NOW      0
11089 #        endif
11090 #      endif
11091 #    endif
11092 #  endif
11093 #endif
11095 void fnord() { int i=42;}
11096 int main ()
11098   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11099   int status = $lt_dlunknown;
11101   if (self)
11102     {
11103       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11104       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11105       /* dlclose (self); */
11106     }
11107   else
11108     puts (dlerror ());
11110   return status;
11112 _LT_EOF
11113   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114   (eval $ac_link) 2>&5
11115   ac_status=$?
11116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11118     (./conftest; exit; ) >&5 2>/dev/null
11119     lt_status=$?
11120     case x$lt_status in
11121       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11122       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11123       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11124     esac
11125   else :
11126     # compilation failed
11127     lt_cv_dlopen_self=no
11128   fi
11130 rm -fr conftest*
11134 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11135 $as_echo "$lt_cv_dlopen_self" >&6; }
11137     if test "x$lt_cv_dlopen_self" = xyes; then
11138       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11139       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11140 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11141 if test "${lt_cv_dlopen_self_static+set}" = set; then
11142   $as_echo_n "(cached) " >&6
11143 else
11144           if test "$cross_compiling" = yes; then :
11145   lt_cv_dlopen_self_static=cross
11146 else
11147   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11148   lt_status=$lt_dlunknown
11149   cat > conftest.$ac_ext <<_LT_EOF
11150 #line 11150 "configure"
11151 #include "confdefs.h"
11153 #if HAVE_DLFCN_H
11154 #include <dlfcn.h>
11155 #endif
11157 #include <stdio.h>
11159 #ifdef RTLD_GLOBAL
11160 #  define LT_DLGLOBAL           RTLD_GLOBAL
11161 #else
11162 #  ifdef DL_GLOBAL
11163 #    define LT_DLGLOBAL         DL_GLOBAL
11164 #  else
11165 #    define LT_DLGLOBAL         0
11166 #  endif
11167 #endif
11169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11170    find out it does not work in some platform. */
11171 #ifndef LT_DLLAZY_OR_NOW
11172 #  ifdef RTLD_LAZY
11173 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11174 #  else
11175 #    ifdef DL_LAZY
11176 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11177 #    else
11178 #      ifdef RTLD_NOW
11179 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11180 #      else
11181 #        ifdef DL_NOW
11182 #          define LT_DLLAZY_OR_NOW      DL_NOW
11183 #        else
11184 #          define LT_DLLAZY_OR_NOW      0
11185 #        endif
11186 #      endif
11187 #    endif
11188 #  endif
11189 #endif
11191 void fnord() { int i=42;}
11192 int main ()
11194   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11195   int status = $lt_dlunknown;
11197   if (self)
11198     {
11199       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11200       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11201       /* dlclose (self); */
11202     }
11203   else
11204     puts (dlerror ());
11206   return status;
11208 _LT_EOF
11209   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210   (eval $ac_link) 2>&5
11211   ac_status=$?
11212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11214     (./conftest; exit; ) >&5 2>/dev/null
11215     lt_status=$?
11216     case x$lt_status in
11217       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11218       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11219       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11220     esac
11221   else :
11222     # compilation failed
11223     lt_cv_dlopen_self_static=no
11224   fi
11226 rm -fr conftest*
11230 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11231 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11232     fi
11234     CPPFLAGS="$save_CPPFLAGS"
11235     LDFLAGS="$save_LDFLAGS"
11236     LIBS="$save_LIBS"
11237     ;;
11238   esac
11240   case $lt_cv_dlopen_self in
11241   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11242   *) enable_dlopen_self=unknown ;;
11243   esac
11245   case $lt_cv_dlopen_self_static in
11246   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11247   *) enable_dlopen_self_static=unknown ;;
11248   esac
11267 striplib=
11268 old_striplib=
11269 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11270 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11271 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11272   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11273   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11274   { $as_echo "$as_me:$LINENO: result: yes" >&5
11275 $as_echo "yes" >&6; }
11276 else
11277 # FIXME - insert some real tests, host_os isn't really good enough
11278   case $host_os in
11279   darwin*)
11280     if test -n "$STRIP" ; then
11281       striplib="$STRIP -x"
11282       old_striplib="$STRIP -S"
11283       { $as_echo "$as_me:$LINENO: result: yes" >&5
11284 $as_echo "yes" >&6; }
11285     else
11286       { $as_echo "$as_me:$LINENO: result: no" >&5
11287 $as_echo "no" >&6; }
11288     fi
11289     ;;
11290   *)
11291     { $as_echo "$as_me:$LINENO: result: no" >&5
11292 $as_echo "no" >&6; }
11293     ;;
11294   esac
11308   # Report which library types will actually be built
11309   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11310 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11311   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11312 $as_echo "$can_build_shared" >&6; }
11314   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11315 $as_echo_n "checking whether to build shared libraries... " >&6; }
11316   test "$can_build_shared" = "no" && enable_shared=no
11318   # On AIX, shared libraries and static libraries use the same namespace, and
11319   # are all built from PIC.
11320   case $host_os in
11321   aix3*)
11322     test "$enable_shared" = yes && enable_static=no
11323     if test -n "$RANLIB"; then
11324       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11325       postinstall_cmds='$RANLIB $lib'
11326     fi
11327     ;;
11329   aix[4-9]*)
11330     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11331       test "$enable_shared" = yes && enable_static=no
11332     fi
11333     ;;
11334   esac
11335   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11336 $as_echo "$enable_shared" >&6; }
11338   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11339 $as_echo_n "checking whether to build static libraries... " >&6; }
11340   # Make sure either enable_shared or enable_static is yes.
11341   test "$enable_shared" = yes || enable_static=yes
11342   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11343 $as_echo "$enable_static" >&6; }
11349 ac_ext=c
11350 ac_cpp='$CPP $CPPFLAGS'
11351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11355 CC="$lt_save_CC"
11369         ac_config_commands="$ac_config_commands libtool"
11374 # Only expand once:
11378 CFLAGS="$CFLAGS -D_GNU_SOURCE"
11380 if test "x$GCC" = "xyes"; then
11381   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
11382     oCFLAGS="$CFLAGS"
11383     CFLAGS="$CFLAGS $flag"
11384     cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
11385     { $as_echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
11386 $as_echo_n "checking if gcc likes the $flag flag... " >&6; }
11387 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
11388   $as_echo_n "(cached) " >&6
11389 else
11390   cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11397 int
11398 main ()
11400 return 0
11401   ;
11402   return 0;
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (ac_try="$ac_compile"
11407 case "(($ac_try" in
11408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409   *) ac_try_echo=$ac_try;;
11410 esac
11411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11412 $as_echo "$ac_try_echo") >&5
11413   (eval "$ac_compile") 2>conftest.er1
11414   ac_status=$?
11415   grep -v '^ *+' conftest.er1 >conftest.err
11416   rm -f conftest.er1
11417   cat conftest.err >&5
11418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); } && {
11420          test -z "$ac_c_werror_flag" ||
11421          test ! -s conftest.err
11422        } && test -s conftest.$ac_objext; then
11423   eval $cachename=yes
11424 else
11425   $as_echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428         eval $cachename=no
11431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11433 ac_res=`eval 'as_val=${'$cachename'}
11434                  $as_echo "$as_val"'`
11435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11436 $as_echo "$ac_res" >&6; }
11437     if eval test \$$cachename = no; then
11438          CFLAGS="$oCFLAGS"
11439     fi
11440   done
11448 case $TERM in
11449        #   for the most important terminal types we directly know the sequences
11450        xterm|xterm*|vt220|vt220*)
11451                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
11452                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
11453        ;;
11454        vt100|vt100*|cygwin)
11455                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
11456                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
11457        ;;
11458        *)
11459                T_MD=''
11460                T_ME=''
11461        ;;
11462 esac
11463   { $as_echo "$as_me:$LINENO: result: " >&5
11464 $as_echo "" >&6; }
11465   { $as_echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
11466 $as_echo "${T_MD}Checking for Header Files${T_ME}" >&6; }
11469 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11470 $as_echo_n "checking for ANSI C header files... " >&6; }
11471 if test "${ac_cv_header_stdc+set}" = set; then
11472   $as_echo_n "(cached) " >&6
11473 else
11474   cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 #include <stdlib.h>
11481 #include <stdarg.h>
11482 #include <string.h>
11483 #include <float.h>
11485 int
11486 main ()
11489   ;
11490   return 0;
11492 _ACEOF
11493 rm -f conftest.$ac_objext
11494 if { (ac_try="$ac_compile"
11495 case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11500 $as_echo "$ac_try_echo") >&5
11501   (eval "$ac_compile") 2>conftest.er1
11502   ac_status=$?
11503   grep -v '^ *+' conftest.er1 >conftest.err
11504   rm -f conftest.er1
11505   cat conftest.err >&5
11506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } && {
11508          test -z "$ac_c_werror_flag" ||
11509          test ! -s conftest.err
11510        } && test -s conftest.$ac_objext; then
11511   ac_cv_header_stdc=yes
11512 else
11513   $as_echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516         ac_cv_header_stdc=no
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11521 if test $ac_cv_header_stdc = yes; then
11522   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11523   cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 #include <string.h>
11531 _ACEOF
11532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11533   $EGREP "memchr" >/dev/null 2>&1; then
11534   :
11535 else
11536   ac_cv_header_stdc=no
11538 rm -f conftest*
11542 if test $ac_cv_header_stdc = yes; then
11543   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11544   cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h.  */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h.  */
11550 #include <stdlib.h>
11552 _ACEOF
11553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11554   $EGREP "free" >/dev/null 2>&1; then
11555   :
11556 else
11557   ac_cv_header_stdc=no
11559 rm -f conftest*
11563 if test $ac_cv_header_stdc = yes; then
11564   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11565   if test "$cross_compiling" = yes; then
11566   :
11567 else
11568   cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h.  */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h.  */
11574 #include <ctype.h>
11575 #include <stdlib.h>
11576 #if ((' ' & 0x0FF) == 0x020)
11577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11579 #else
11580 # define ISLOWER(c) \
11581                    (('a' <= (c) && (c) <= 'i') \
11582                      || ('j' <= (c) && (c) <= 'r') \
11583                      || ('s' <= (c) && (c) <= 'z'))
11584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11585 #endif
11587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11588 int
11589 main ()
11591   int i;
11592   for (i = 0; i < 256; i++)
11593     if (XOR (islower (i), ISLOWER (i))
11594         || toupper (i) != TOUPPER (i))
11595       return 2;
11596   return 0;
11598 _ACEOF
11599 rm -f conftest$ac_exeext
11600 if { (ac_try="$ac_link"
11601 case "(($ac_try" in
11602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603   *) ac_try_echo=$ac_try;;
11604 esac
11605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11606 $as_echo "$ac_try_echo") >&5
11607   (eval "$ac_link") 2>&5
11608   ac_status=$?
11609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11611   { (case "(($ac_try" in
11612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613   *) ac_try_echo=$ac_try;;
11614 esac
11615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11616 $as_echo "$ac_try_echo") >&5
11617   (eval "$ac_try") 2>&5
11618   ac_status=$?
11619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; }; then
11621   :
11622 else
11623   $as_echo "$as_me: program exited with status $ac_status" >&5
11624 $as_echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ( exit $ac_status )
11628 ac_cv_header_stdc=no
11630 rm -rf conftest.dSYM
11631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11638 $as_echo "$ac_cv_header_stdc" >&6; }
11639 if test $ac_cv_header_stdc = yes; then
11641 cat >>confdefs.h <<\_ACEOF
11642 #define STDC_HEADERS 1
11643 _ACEOF
11652 ac_header_dirent=no
11653 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11654   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11655 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11656 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658   $as_echo_n "(cached) " >&6
11659 else
11660   cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666 #include <sys/types.h>
11667 #include <$ac_hdr>
11669 int
11670 main ()
11672 if ((DIR *) 0)
11673 return 0;
11674   ;
11675   return 0;
11677 _ACEOF
11678 rm -f conftest.$ac_objext
11679 if { (ac_try="$ac_compile"
11680 case "(($ac_try" in
11681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682   *) ac_try_echo=$ac_try;;
11683 esac
11684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11685 $as_echo "$ac_try_echo") >&5
11686   (eval "$ac_compile") 2>conftest.er1
11687   ac_status=$?
11688   grep -v '^ *+' conftest.er1 >conftest.err
11689   rm -f conftest.er1
11690   cat conftest.err >&5
11691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } && {
11693          test -z "$ac_c_werror_flag" ||
11694          test ! -s conftest.err
11695        } && test -s conftest.$ac_objext; then
11696   eval "$as_ac_Header=yes"
11697 else
11698   $as_echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701         eval "$as_ac_Header=no"
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11706 ac_res=`eval 'as_val=${'$as_ac_Header'}
11707                  $as_echo "$as_val"'`
11708                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11709 $as_echo "$ac_res" >&6; }
11710 as_val=`eval 'as_val=${'$as_ac_Header'}
11711                  $as_echo "$as_val"'`
11712    if test "x$as_val" = x""yes; then
11713   cat >>confdefs.h <<_ACEOF
11714 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11715 _ACEOF
11717 ac_header_dirent=$ac_hdr; break
11720 done
11721 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11722 if test $ac_header_dirent = dirent.h; then
11723   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11724 $as_echo_n "checking for library containing opendir... " >&6; }
11725 if test "${ac_cv_search_opendir+set}" = set; then
11726   $as_echo_n "(cached) " >&6
11727 else
11728   ac_func_search_save_LIBS=$LIBS
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11736 /* Override any GCC internal prototype to avoid an error.
11737    Use char because int might match the return type of a GCC
11738    builtin and then its argument prototype would still apply.  */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 char opendir ();
11743 int
11744 main ()
11746 return opendir ();
11747   ;
11748   return 0;
11750 _ACEOF
11751 for ac_lib in '' dir; do
11752   if test -z "$ac_lib"; then
11753     ac_res="none required"
11754   else
11755     ac_res=-l$ac_lib
11756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11757   fi
11758   rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (ac_try="$ac_link"
11760 case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11765 $as_echo "$ac_try_echo") >&5
11766   (eval "$ac_link") 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } && {
11773          test -z "$ac_c_werror_flag" ||
11774          test ! -s conftest.err
11775        } && test -s conftest$ac_exeext && {
11776          test "$cross_compiling" = yes ||
11777          $as_test_x conftest$ac_exeext
11778        }; then
11779   ac_cv_search_opendir=$ac_res
11780 else
11781   $as_echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11787 rm -rf conftest.dSYM
11788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11789       conftest$ac_exeext
11790   if test "${ac_cv_search_opendir+set}" = set; then
11791   break
11793 done
11794 if test "${ac_cv_search_opendir+set}" = set; then
11795   :
11796 else
11797   ac_cv_search_opendir=no
11799 rm conftest.$ac_ext
11800 LIBS=$ac_func_search_save_LIBS
11802 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11803 $as_echo "$ac_cv_search_opendir" >&6; }
11804 ac_res=$ac_cv_search_opendir
11805 if test "$ac_res" != no; then
11806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11810 else
11811   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11812 $as_echo_n "checking for library containing opendir... " >&6; }
11813 if test "${ac_cv_search_opendir+set}" = set; then
11814   $as_echo_n "(cached) " >&6
11815 else
11816   ac_func_search_save_LIBS=$LIBS
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11824 /* Override any GCC internal prototype to avoid an error.
11825    Use char because int might match the return type of a GCC
11826    builtin and then its argument prototype would still apply.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char opendir ();
11831 int
11832 main ()
11834 return opendir ();
11835   ;
11836   return 0;
11838 _ACEOF
11839 for ac_lib in '' x; do
11840   if test -z "$ac_lib"; then
11841     ac_res="none required"
11842   else
11843     ac_res=-l$ac_lib
11844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11845   fi
11846   rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854   (eval "$ac_link") 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } && {
11861          test -z "$ac_c_werror_flag" ||
11862          test ! -s conftest.err
11863        } && test -s conftest$ac_exeext && {
11864          test "$cross_compiling" = yes ||
11865          $as_test_x conftest$ac_exeext
11866        }; then
11867   ac_cv_search_opendir=$ac_res
11868 else
11869   $as_echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11875 rm -rf conftest.dSYM
11876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11877       conftest$ac_exeext
11878   if test "${ac_cv_search_opendir+set}" = set; then
11879   break
11881 done
11882 if test "${ac_cv_search_opendir+set}" = set; then
11883   :
11884 else
11885   ac_cv_search_opendir=no
11887 rm conftest.$ac_ext
11888 LIBS=$ac_func_search_save_LIBS
11890 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11891 $as_echo "$ac_cv_search_opendir" >&6; }
11892 ac_res=$ac_cv_search_opendir
11893 if test "$ac_res" != no; then
11894   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11921 for ac_header in libgen.h features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
11923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11925   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11926 $as_echo_n "checking for $ac_header... " >&6; }
11927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11928   $as_echo_n "(cached) " >&6
11930 ac_res=`eval 'as_val=${'$as_ac_Header'}
11931                  $as_echo "$as_val"'`
11932                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11933 $as_echo "$ac_res" >&6; }
11934 else
11935   # Is the header compilable?
11936 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11937 $as_echo_n "checking $ac_header usability... " >&6; }
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h.  */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h.  */
11944 $ac_includes_default
11945 #include <$ac_header>
11946 _ACEOF
11947 rm -f conftest.$ac_objext
11948 if { (ac_try="$ac_compile"
11949 case "(($ac_try" in
11950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951   *) ac_try_echo=$ac_try;;
11952 esac
11953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11954 $as_echo "$ac_try_echo") >&5
11955   (eval "$ac_compile") 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } && {
11962          test -z "$ac_c_werror_flag" ||
11963          test ! -s conftest.err
11964        } && test -s conftest.$ac_objext; then
11965   ac_header_compiler=yes
11966 else
11967   $as_echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970         ac_header_compiler=no
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11975 $as_echo "$ac_header_compiler" >&6; }
11977 # Is the header present?
11978 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11979 $as_echo_n "checking $ac_header presence... " >&6; }
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 #include <$ac_header>
11987 _ACEOF
11988 if { (ac_try="$ac_cpp conftest.$ac_ext"
11989 case "(($ac_try" in
11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991   *) ac_try_echo=$ac_try;;
11992 esac
11993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11996   ac_status=$?
11997   grep -v '^ *+' conftest.er1 >conftest.err
11998   rm -f conftest.er1
11999   cat conftest.err >&5
12000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } >/dev/null && {
12002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12003          test ! -s conftest.err
12004        }; then
12005   ac_header_preproc=yes
12006 else
12007   $as_echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010   ac_header_preproc=no
12013 rm -f conftest.err conftest.$ac_ext
12014 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12015 $as_echo "$ac_header_preproc" >&6; }
12017 # So?  What about this header?
12018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12019   yes:no: )
12020     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12021 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12024     ac_header_preproc=yes
12025     ;;
12026   no:yes:* )
12027     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12028 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12029     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12030 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12031     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12032 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12033     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12034 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12035     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12038 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12040     ;;
12041 esac
12042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 $as_echo_n "checking for $ac_header... " >&6; }
12044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045   $as_echo_n "(cached) " >&6
12046 else
12047   eval "$as_ac_Header=\$ac_header_preproc"
12049 ac_res=`eval 'as_val=${'$as_ac_Header'}
12050                  $as_echo "$as_val"'`
12051                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12052 $as_echo "$ac_res" >&6; }
12055 as_val=`eval 'as_val=${'$as_ac_Header'}
12056                  $as_echo "$as_val"'`
12057    if test "x$as_val" = x""yes; then
12058   cat >>confdefs.h <<_ACEOF
12059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12060 _ACEOF
12064 done
12067 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12068 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12069 if test "${ac_cv_c_const+set}" = set; then
12070   $as_echo_n "(cached) " >&6
12071 else
12072   cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h.  */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h.  */
12079 int
12080 main ()
12082 /* FIXME: Include the comments suggested by Paul. */
12083 #ifndef __cplusplus
12084   /* Ultrix mips cc rejects this.  */
12085   typedef int charset[2];
12086   const charset cs;
12087   /* SunOS 4.1.1 cc rejects this.  */
12088   char const *const *pcpcc;
12089   char **ppc;
12090   /* NEC SVR4.0.2 mips cc rejects this.  */
12091   struct point {int x, y;};
12092   static struct point const zero = {0,0};
12093   /* AIX XL C 1.02.0.0 rejects this.
12094      It does not let you subtract one const X* pointer from another in
12095      an arm of an if-expression whose if-part is not a constant
12096      expression */
12097   const char *g = "string";
12098   pcpcc = &g + (g ? g-g : 0);
12099   /* HPUX 7.0 cc rejects these. */
12100   ++pcpcc;
12101   ppc = (char**) pcpcc;
12102   pcpcc = (char const *const *) ppc;
12103   { /* SCO 3.2v4 cc rejects this.  */
12104     char *t;
12105     char const *s = 0 ? (char *) 0 : (char const *) 0;
12107     *t++ = 0;
12108     if (s) return 0;
12109   }
12110   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12111     int x[] = {25, 17};
12112     const int *foo = &x[0];
12113     ++foo;
12114   }
12115   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12116     typedef const int *iptr;
12117     iptr p = 0;
12118     ++p;
12119   }
12120   { /* AIX XL C 1.02.0.0 rejects this saying
12121        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12122     struct s { int j; const int *ap[3]; };
12123     struct s *b; b->j = 5;
12124   }
12125   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12126     const int foo = 10;
12127     if (!foo) return 0;
12128   }
12129   return !cs[0] && !zero.x;
12130 #endif
12132   ;
12133   return 0;
12135 _ACEOF
12136 rm -f conftest.$ac_objext
12137 if { (ac_try="$ac_compile"
12138 case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12143 $as_echo "$ac_try_echo") >&5
12144   (eval "$ac_compile") 2>conftest.er1
12145   ac_status=$?
12146   grep -v '^ *+' conftest.er1 >conftest.err
12147   rm -f conftest.er1
12148   cat conftest.err >&5
12149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); } && {
12151          test -z "$ac_c_werror_flag" ||
12152          test ! -s conftest.err
12153        } && test -s conftest.$ac_objext; then
12154   ac_cv_c_const=yes
12155 else
12156   $as_echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159         ac_cv_c_const=no
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12165 $as_echo "$ac_cv_c_const" >&6; }
12166 if test $ac_cv_c_const = no; then
12168 cat >>confdefs.h <<\_ACEOF
12169 #define const /**/
12170 _ACEOF
12174 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12175 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12176 if test "${ac_cv_header_time+set}" = set; then
12177   $as_echo_n "(cached) " >&6
12178 else
12179   cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185 #include <sys/types.h>
12186 #include <sys/time.h>
12187 #include <time.h>
12189 int
12190 main ()
12192 if ((struct tm *) 0)
12193 return 0;
12194   ;
12195   return 0;
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202   *) ac_try_echo=$ac_try;;
12203 esac
12204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205 $as_echo "$ac_try_echo") >&5
12206   (eval "$ac_compile") 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } && {
12213          test -z "$ac_c_werror_flag" ||
12214          test ! -s conftest.err
12215        } && test -s conftest.$ac_objext; then
12216   ac_cv_header_time=yes
12217 else
12218   $as_echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221         ac_cv_header_time=no
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12227 $as_echo "$ac_cv_header_time" >&6; }
12228 if test $ac_cv_header_time = yes; then
12230 cat >>confdefs.h <<\_ACEOF
12231 #define TIME_WITH_SYS_TIME 1
12232 _ACEOF
12236 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12237 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12238 if test "${ac_cv_struct_tm+set}" = set; then
12239   $as_echo_n "(cached) " >&6
12240 else
12241   cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 #include <sys/types.h>
12248 #include <time.h>
12250 int
12251 main ()
12253 struct tm tm;
12254                                      int *p = &tm.tm_sec;
12255                                      return !p;
12256   ;
12257   return 0;
12259 _ACEOF
12260 rm -f conftest.$ac_objext
12261 if { (ac_try="$ac_compile"
12262 case "(($ac_try" in
12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264   *) ac_try_echo=$ac_try;;
12265 esac
12266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12267 $as_echo "$ac_try_echo") >&5
12268   (eval "$ac_compile") 2>conftest.er1
12269   ac_status=$?
12270   grep -v '^ *+' conftest.er1 >conftest.err
12271   rm -f conftest.er1
12272   cat conftest.err >&5
12273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); } && {
12275          test -z "$ac_c_werror_flag" ||
12276          test ! -s conftest.err
12277        } && test -s conftest.$ac_objext; then
12278   ac_cv_struct_tm=time.h
12279 else
12280   $as_echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283         ac_cv_struct_tm=sys/time.h
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12289 $as_echo "$ac_cv_struct_tm" >&6; }
12290 if test $ac_cv_struct_tm = sys/time.h; then
12292 cat >>confdefs.h <<\_ACEOF
12293 #define TM_IN_SYS_TIME 1
12294 _ACEOF
12300 case $TERM in
12301        #   for the most important terminal types we directly know the sequences
12302        xterm|xterm*|vt220|vt220*)
12303                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12304                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12305        ;;
12306        vt100|vt100*|cygwin)
12307                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12308                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12309        ;;
12310        *)
12311                T_MD=''
12312                T_ME=''
12313        ;;
12314 esac
12315   { $as_echo "$as_me:$LINENO: result: " >&5
12316 $as_echo "" >&6; }
12317   { $as_echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
12318 $as_echo "${T_MD}Test Library Functions${T_ME}" >&6; }
12321 { $as_echo "$as_me:$LINENO: checking for acos" >&5
12322 $as_echo_n "checking for acos... " >&6; }
12323 if test "${ac_cv_func_acos+set}" = set; then
12324   $as_echo_n "(cached) " >&6
12325 else
12326   cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h.  */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h.  */
12332 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
12333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12334 #define acos innocuous_acos
12336 /* System header to define __stub macros and hopefully few prototypes,
12337     which can conflict with char acos (); below.
12338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12339     <limits.h> exists even on freestanding compilers.  */
12341 #ifdef __STDC__
12342 # include <limits.h>
12343 #else
12344 # include <assert.h>
12345 #endif
12347 #undef acos
12349 /* Override any GCC internal prototype to avoid an error.
12350    Use char because int might match the return type of a GCC
12351    builtin and then its argument prototype would still apply.  */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char acos ();
12356 /* The GNU C library defines this for functions which it implements
12357     to always fail with ENOSYS.  Some functions are actually named
12358     something starting with __ and the normal name is an alias.  */
12359 #if defined __stub_acos || defined __stub___acos
12360 choke me
12361 #endif
12363 int
12364 main ()
12366 return acos ();
12367   ;
12368   return 0;
12370 _ACEOF
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (ac_try="$ac_link"
12373 case "(($ac_try" in
12374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375   *) ac_try_echo=$ac_try;;
12376 esac
12377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12378 $as_echo "$ac_try_echo") >&5
12379   (eval "$ac_link") 2>conftest.er1
12380   ac_status=$?
12381   grep -v '^ *+' conftest.er1 >conftest.err
12382   rm -f conftest.er1
12383   cat conftest.err >&5
12384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); } && {
12386          test -z "$ac_c_werror_flag" ||
12387          test ! -s conftest.err
12388        } && test -s conftest$ac_exeext && {
12389          test "$cross_compiling" = yes ||
12390          $as_test_x conftest$ac_exeext
12391        }; then
12392   ac_cv_func_acos=yes
12393 else
12394   $as_echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397         ac_cv_func_acos=no
12400 rm -rf conftest.dSYM
12401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12402       conftest$ac_exeext conftest.$ac_ext
12404 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
12405 $as_echo "$ac_cv_func_acos" >&6; }
12406 if test "x$ac_cv_func_acos" = x""yes; then
12407   :
12408 else
12410 { $as_echo "$as_me:$LINENO: checking for acos in -lm" >&5
12411 $as_echo_n "checking for acos in -lm... " >&6; }
12412 if test "${ac_cv_lib_m_acos+set}" = set; then
12413   $as_echo_n "(cached) " >&6
12414 else
12415   ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-lm  $LIBS"
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12424 /* Override any GCC internal prototype to avoid an error.
12425    Use char because int might match the return type of a GCC
12426    builtin and then its argument prototype would still apply.  */
12427 #ifdef __cplusplus
12428 extern "C"
12429 #endif
12430 char acos ();
12431 int
12432 main ()
12434 return acos ();
12435   ;
12436   return 0;
12438 _ACEOF
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443   *) ac_try_echo=$ac_try;;
12444 esac
12445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12446 $as_echo "$ac_try_echo") >&5
12447   (eval "$ac_link") 2>conftest.er1
12448   ac_status=$?
12449   grep -v '^ *+' conftest.er1 >conftest.err
12450   rm -f conftest.er1
12451   cat conftest.err >&5
12452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } && {
12454          test -z "$ac_c_werror_flag" ||
12455          test ! -s conftest.err
12456        } && test -s conftest$ac_exeext && {
12457          test "$cross_compiling" = yes ||
12458          $as_test_x conftest$ac_exeext
12459        }; then
12460   ac_cv_lib_m_acos=yes
12461 else
12462   $as_echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465         ac_cv_lib_m_acos=no
12468 rm -rf conftest.dSYM
12469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12470       conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS
12473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
12474 $as_echo "$ac_cv_lib_m_acos" >&6; }
12475 if test "x$ac_cv_lib_m_acos" = x""yes; then
12476   cat >>confdefs.h <<_ACEOF
12477 #define HAVE_LIBM 1
12478 _ACEOF
12480   LIBS="-lm $LIBS"
12488 eval `./libtool --config | grep pic_flag`
12489 CFLAGS="$CFLAGS $pic_flag"
12493 for ac_func in strftime
12495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12496 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12497 $as_echo_n "checking for $ac_func... " >&6; }
12498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12499   $as_echo_n "(cached) " >&6
12500 else
12501   cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h.  */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h.  */
12507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12509 #define $ac_func innocuous_$ac_func
12511 /* System header to define __stub macros and hopefully few prototypes,
12512     which can conflict with char $ac_func (); below.
12513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514     <limits.h> exists even on freestanding compilers.  */
12516 #ifdef __STDC__
12517 # include <limits.h>
12518 #else
12519 # include <assert.h>
12520 #endif
12522 #undef $ac_func
12524 /* Override any GCC internal prototype to avoid an error.
12525    Use char because int might match the return type of a GCC
12526    builtin and then its argument prototype would still apply.  */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 char $ac_func ();
12531 /* The GNU C library defines this for functions which it implements
12532     to always fail with ENOSYS.  Some functions are actually named
12533     something starting with __ and the normal name is an alias.  */
12534 #if defined __stub_$ac_func || defined __stub___$ac_func
12535 choke me
12536 #endif
12538 int
12539 main ()
12541 return $ac_func ();
12542   ;
12543   return 0;
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550   *) ac_try_echo=$ac_try;;
12551 esac
12552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12553 $as_echo "$ac_try_echo") >&5
12554   (eval "$ac_link") 2>conftest.er1
12555   ac_status=$?
12556   grep -v '^ *+' conftest.er1 >conftest.err
12557   rm -f conftest.er1
12558   cat conftest.err >&5
12559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } && {
12561          test -z "$ac_c_werror_flag" ||
12562          test ! -s conftest.err
12563        } && test -s conftest$ac_exeext && {
12564          test "$cross_compiling" = yes ||
12565          $as_test_x conftest$ac_exeext
12566        }; then
12567   eval "$as_ac_var=yes"
12568 else
12569   $as_echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572         eval "$as_ac_var=no"
12575 rm -rf conftest.dSYM
12576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12577       conftest$ac_exeext conftest.$ac_ext
12579 ac_res=`eval 'as_val=${'$as_ac_var'}
12580                  $as_echo "$as_val"'`
12581                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12582 $as_echo "$ac_res" >&6; }
12583 as_val=`eval 'as_val=${'$as_ac_var'}
12584                  $as_echo "$as_val"'`
12585    if test "x$as_val" = x""yes; then
12586   cat >>confdefs.h <<_ACEOF
12587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12588 _ACEOF
12590 else
12591   # strftime is in -lintl on SCO UNIX.
12592 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12593 $as_echo_n "checking for strftime in -lintl... " >&6; }
12594 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12595   $as_echo_n "(cached) " >&6
12596 else
12597   ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lintl  $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h.  */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h.  */
12606 /* Override any GCC internal prototype to avoid an error.
12607    Use char because int might match the return type of a GCC
12608    builtin and then its argument prototype would still apply.  */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char strftime ();
12613 int
12614 main ()
12616 return strftime ();
12617   ;
12618   return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625   *) ac_try_echo=$ac_try;;
12626 esac
12627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12628 $as_echo "$ac_try_echo") >&5
12629   (eval "$ac_link") 2>conftest.er1
12630   ac_status=$?
12631   grep -v '^ *+' conftest.er1 >conftest.err
12632   rm -f conftest.er1
12633   cat conftest.err >&5
12634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } && {
12636          test -z "$ac_c_werror_flag" ||
12637          test ! -s conftest.err
12638        } && test -s conftest$ac_exeext && {
12639          test "$cross_compiling" = yes ||
12640          $as_test_x conftest$ac_exeext
12641        }; then
12642   ac_cv_lib_intl_strftime=yes
12643 else
12644   $as_echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12647         ac_cv_lib_intl_strftime=no
12650 rm -rf conftest.dSYM
12651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12652       conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12656 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12657 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
12658   cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_STRFTIME 1
12660 _ACEOF
12662 LIBS="-lintl $LIBS"
12666 done
12669 for ac_func in vprintf
12671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12673 $as_echo_n "checking for $ac_func... " >&6; }
12674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12675   $as_echo_n "(cached) " >&6
12676 else
12677   cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12685 #define $ac_func innocuous_$ac_func
12687 /* System header to define __stub macros and hopefully few prototypes,
12688     which can conflict with char $ac_func (); below.
12689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690     <limits.h> exists even on freestanding compilers.  */
12692 #ifdef __STDC__
12693 # include <limits.h>
12694 #else
12695 # include <assert.h>
12696 #endif
12698 #undef $ac_func
12700 /* Override any GCC internal prototype to avoid an error.
12701    Use char because int might match the return type of a GCC
12702    builtin and then its argument prototype would still apply.  */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char $ac_func ();
12707 /* The GNU C library defines this for functions which it implements
12708     to always fail with ENOSYS.  Some functions are actually named
12709     something starting with __ and the normal name is an alias.  */
12710 #if defined __stub_$ac_func || defined __stub___$ac_func
12711 choke me
12712 #endif
12714 int
12715 main ()
12717 return $ac_func ();
12718   ;
12719   return 0;
12721 _ACEOF
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12729 $as_echo "$ac_try_echo") >&5
12730   (eval "$ac_link") 2>conftest.er1
12731   ac_status=$?
12732   grep -v '^ *+' conftest.er1 >conftest.err
12733   rm -f conftest.er1
12734   cat conftest.err >&5
12735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } && {
12737          test -z "$ac_c_werror_flag" ||
12738          test ! -s conftest.err
12739        } && test -s conftest$ac_exeext && {
12740          test "$cross_compiling" = yes ||
12741          $as_test_x conftest$ac_exeext
12742        }; then
12743   eval "$as_ac_var=yes"
12744 else
12745   $as_echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748         eval "$as_ac_var=no"
12751 rm -rf conftest.dSYM
12752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12753       conftest$ac_exeext conftest.$ac_ext
12755 ac_res=`eval 'as_val=${'$as_ac_var'}
12756                  $as_echo "$as_val"'`
12757                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12758 $as_echo "$ac_res" >&6; }
12759 as_val=`eval 'as_val=${'$as_ac_var'}
12760                  $as_echo "$as_val"'`
12761    if test "x$as_val" = x""yes; then
12762   cat >>confdefs.h <<_ACEOF
12763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12764 _ACEOF
12766 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12767 $as_echo_n "checking for _doprnt... " >&6; }
12768 if test "${ac_cv_func__doprnt+set}" = set; then
12769   $as_echo_n "(cached) " >&6
12770 else
12771   cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h.  */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h.  */
12777 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12779 #define _doprnt innocuous__doprnt
12781 /* System header to define __stub macros and hopefully few prototypes,
12782     which can conflict with char _doprnt (); below.
12783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784     <limits.h> exists even on freestanding compilers.  */
12786 #ifdef __STDC__
12787 # include <limits.h>
12788 #else
12789 # include <assert.h>
12790 #endif
12792 #undef _doprnt
12794 /* Override any GCC internal prototype to avoid an error.
12795    Use char because int might match the return type of a GCC
12796    builtin and then its argument prototype would still apply.  */
12797 #ifdef __cplusplus
12798 extern "C"
12799 #endif
12800 char _doprnt ();
12801 /* The GNU C library defines this for functions which it implements
12802     to always fail with ENOSYS.  Some functions are actually named
12803     something starting with __ and the normal name is an alias.  */
12804 #if defined __stub__doprnt || defined __stub____doprnt
12805 choke me
12806 #endif
12808 int
12809 main ()
12811 return _doprnt ();
12812   ;
12813   return 0;
12815 _ACEOF
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (ac_try="$ac_link"
12818 case "(($ac_try" in
12819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820   *) ac_try_echo=$ac_try;;
12821 esac
12822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12823 $as_echo "$ac_try_echo") >&5
12824   (eval "$ac_link") 2>conftest.er1
12825   ac_status=$?
12826   grep -v '^ *+' conftest.er1 >conftest.err
12827   rm -f conftest.er1
12828   cat conftest.err >&5
12829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); } && {
12831          test -z "$ac_c_werror_flag" ||
12832          test ! -s conftest.err
12833        } && test -s conftest$ac_exeext && {
12834          test "$cross_compiling" = yes ||
12835          $as_test_x conftest$ac_exeext
12836        }; then
12837   ac_cv_func__doprnt=yes
12838 else
12839   $as_echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842         ac_cv_func__doprnt=no
12845 rm -rf conftest.dSYM
12846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12847       conftest$ac_exeext conftest.$ac_ext
12849 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12850 $as_echo "$ac_cv_func__doprnt" >&6; }
12851 if test "x$ac_cv_func__doprnt" = x""yes; then
12853 cat >>confdefs.h <<\_ACEOF
12854 #define HAVE_DOPRNT 1
12855 _ACEOF
12860 done
12865  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12866 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12867 if test "${ac_cv_c_bigendian+set}" = set; then
12868   $as_echo_n "(cached) " >&6
12869 else
12870   ac_cv_c_bigendian=unknown
12871     # See if we're dealing with a universal compiler.
12872     cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878 #ifndef __APPLE_CC__
12879                not a universal capable compiler
12880              #endif
12881              typedef int dummy;
12883 _ACEOF
12884 rm -f conftest.$ac_objext
12885 if { (ac_try="$ac_compile"
12886 case "(($ac_try" in
12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888   *) ac_try_echo=$ac_try;;
12889 esac
12890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12891 $as_echo "$ac_try_echo") >&5
12892   (eval "$ac_compile") 2>conftest.er1
12893   ac_status=$?
12894   grep -v '^ *+' conftest.er1 >conftest.err
12895   rm -f conftest.er1
12896   cat conftest.err >&5
12897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); } && {
12899          test -z "$ac_c_werror_flag" ||
12900          test ! -s conftest.err
12901        } && test -s conftest.$ac_objext; then
12903         # Check for potential -arch flags.  It is not universal unless
12904         # there are some -arch flags.  Note that *ppc* also matches
12905         # ppc64.  This check is also rather less than ideal.
12906         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
12907           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
12908         esac
12909 else
12910   $as_echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917     if test $ac_cv_c_bigendian = unknown; then
12918       # See if sys/param.h defines the BYTE_ORDER macro.
12919       cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 #include <sys/types.h>
12926              #include <sys/param.h>
12928 int
12929 main ()
12931 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12932                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12933                      && LITTLE_ENDIAN)
12934               bogus endian macros
12935              #endif
12937   ;
12938   return 0;
12940 _ACEOF
12941 rm -f conftest.$ac_objext
12942 if { (ac_try="$ac_compile"
12943 case "(($ac_try" in
12944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945   *) ac_try_echo=$ac_try;;
12946 esac
12947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12948 $as_echo "$ac_try_echo") >&5
12949   (eval "$ac_compile") 2>conftest.er1
12950   ac_status=$?
12951   grep -v '^ *+' conftest.er1 >conftest.err
12952   rm -f conftest.er1
12953   cat conftest.err >&5
12954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } && {
12956          test -z "$ac_c_werror_flag" ||
12957          test ! -s conftest.err
12958        } && test -s conftest.$ac_objext; then
12959   # It does; now see whether it defined to BIG_ENDIAN or not.
12960          cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h.  */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h.  */
12966 #include <sys/types.h>
12967                 #include <sys/param.h>
12969 int
12970 main ()
12972 #if BYTE_ORDER != BIG_ENDIAN
12973                  not big endian
12974                 #endif
12976   ;
12977   return 0;
12979 _ACEOF
12980 rm -f conftest.$ac_objext
12981 if { (ac_try="$ac_compile"
12982 case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12987 $as_echo "$ac_try_echo") >&5
12988   (eval "$ac_compile") 2>conftest.er1
12989   ac_status=$?
12990   grep -v '^ *+' conftest.er1 >conftest.err
12991   rm -f conftest.er1
12992   cat conftest.err >&5
12993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } && {
12995          test -z "$ac_c_werror_flag" ||
12996          test ! -s conftest.err
12997        } && test -s conftest.$ac_objext; then
12998   ac_cv_c_bigendian=yes
12999 else
13000   $as_echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003         ac_cv_c_bigendian=no
13006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 else
13008   $as_echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015     fi
13016     if test $ac_cv_c_bigendian = unknown; then
13017       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13018       cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024 #include <limits.h>
13026 int
13027 main ()
13029 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13030               bogus endian macros
13031              #endif
13033   ;
13034   return 0;
13036 _ACEOF
13037 rm -f conftest.$ac_objext
13038 if { (ac_try="$ac_compile"
13039 case "(($ac_try" in
13040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041   *) ac_try_echo=$ac_try;;
13042 esac
13043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13044 $as_echo "$ac_try_echo") >&5
13045   (eval "$ac_compile") 2>conftest.er1
13046   ac_status=$?
13047   grep -v '^ *+' conftest.er1 >conftest.err
13048   rm -f conftest.er1
13049   cat conftest.err >&5
13050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); } && {
13052          test -z "$ac_c_werror_flag" ||
13053          test ! -s conftest.err
13054        } && test -s conftest.$ac_objext; then
13055   # It does; now see whether it defined to _BIG_ENDIAN or not.
13056          cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h.  */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h.  */
13062 #include <limits.h>
13064 int
13065 main ()
13067 #ifndef _BIG_ENDIAN
13068                  not big endian
13069                 #endif
13071   ;
13072   return 0;
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (ac_try="$ac_compile"
13077 case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083   (eval "$ac_compile") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } && {
13090          test -z "$ac_c_werror_flag" ||
13091          test ! -s conftest.err
13092        } && test -s conftest.$ac_objext; then
13093   ac_cv_c_bigendian=yes
13094 else
13095   $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098         ac_cv_c_bigendian=no
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 else
13103   $as_echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110     fi
13111     if test $ac_cv_c_bigendian = unknown; then
13112       # Compile a test program.
13113       if test "$cross_compiling" = yes; then
13114   # Try to guess by grepping values from an object file.
13115          cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h.  */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h.  */
13121 short int ascii_mm[] =
13122                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13123                 short int ascii_ii[] =
13124                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13125                 int use_ascii (int i) {
13126                   return ascii_mm[i] + ascii_ii[i];
13127                 }
13128                 short int ebcdic_ii[] =
13129                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13130                 short int ebcdic_mm[] =
13131                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13132                 int use_ebcdic (int i) {
13133                   return ebcdic_mm[i] + ebcdic_ii[i];
13134                 }
13135                 extern int foo;
13137 int
13138 main ()
13140 return use_ascii (foo) == use_ebcdic (foo);
13141   ;
13142   return 0;
13144 _ACEOF
13145 rm -f conftest.$ac_objext
13146 if { (ac_try="$ac_compile"
13147 case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13152 $as_echo "$ac_try_echo") >&5
13153   (eval "$ac_compile") 2>conftest.er1
13154   ac_status=$?
13155   grep -v '^ *+' conftest.er1 >conftest.err
13156   rm -f conftest.er1
13157   cat conftest.err >&5
13158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); } && {
13160          test -z "$ac_c_werror_flag" ||
13161          test ! -s conftest.err
13162        } && test -s conftest.$ac_objext; then
13163   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13164               ac_cv_c_bigendian=yes
13165             fi
13166             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13167               if test "$ac_cv_c_bigendian" = unknown; then
13168                 ac_cv_c_bigendian=no
13169               else
13170                 # finding both strings is unlikely to happen, but who knows?
13171                 ac_cv_c_bigendian=unknown
13172               fi
13173             fi
13174 else
13175   $as_echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 else
13183   cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 $ac_includes_default
13190 int
13191 main ()
13194              /* Are we little or big endian?  From Harbison&Steele.  */
13195              union
13196              {
13197                long int l;
13198                char c[sizeof (long int)];
13199              } u;
13200              u.l = 1;
13201              return u.c[sizeof (long int) - 1] == 1;
13203   ;
13204   return 0;
13206 _ACEOF
13207 rm -f conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211   *) ac_try_echo=$ac_try;;
13212 esac
13213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13214 $as_echo "$ac_try_echo") >&5
13215   (eval "$ac_link") 2>&5
13216   ac_status=$?
13217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13219   { (case "(($ac_try" in
13220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221   *) ac_try_echo=$ac_try;;
13222 esac
13223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13224 $as_echo "$ac_try_echo") >&5
13225   (eval "$ac_try") 2>&5
13226   ac_status=$?
13227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); }; }; then
13229   ac_cv_c_bigendian=no
13230 else
13231   $as_echo "$as_me: program exited with status $ac_status" >&5
13232 $as_echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ( exit $ac_status )
13236 ac_cv_c_bigendian=yes
13238 rm -rf conftest.dSYM
13239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13243     fi
13245 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13246 $as_echo "$ac_cv_c_bigendian" >&6; }
13247  case $ac_cv_c_bigendian in #(
13248    yes)
13249      cat >>confdefs.h <<\_ACEOF
13250 #define WORDS_BIGENDIAN 1
13251 _ACEOF
13252 ;; #(
13253    no)
13254       ;; #(
13255    universal)
13257 cat >>confdefs.h <<\_ACEOF
13258 #define AC_APPLE_UNIVERSAL_BUILD 1
13259 _ACEOF
13261      ;; #(
13262    *)
13263      { { $as_echo "$as_me:$LINENO: error: unknown endianness
13264  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13265 $as_echo "$as_me: error: unknown endianness
13266  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13267    { (exit 1); exit 1; }; } ;;
13268  esac
13293 for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
13295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13296 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13297 $as_echo_n "checking for $ac_func... " >&6; }
13298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13299   $as_echo_n "(cached) " >&6
13300 else
13301   cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h.  */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h.  */
13307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13309 #define $ac_func innocuous_$ac_func
13311 /* System header to define __stub macros and hopefully few prototypes,
13312     which can conflict with char $ac_func (); below.
13313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13314     <limits.h> exists even on freestanding compilers.  */
13316 #ifdef __STDC__
13317 # include <limits.h>
13318 #else
13319 # include <assert.h>
13320 #endif
13322 #undef $ac_func
13324 /* Override any GCC internal prototype to avoid an error.
13325    Use char because int might match the return type of a GCC
13326    builtin and then its argument prototype would still apply.  */
13327 #ifdef __cplusplus
13328 extern "C"
13329 #endif
13330 char $ac_func ();
13331 /* The GNU C library defines this for functions which it implements
13332     to always fail with ENOSYS.  Some functions are actually named
13333     something starting with __ and the normal name is an alias.  */
13334 #if defined __stub_$ac_func || defined __stub___$ac_func
13335 choke me
13336 #endif
13338 int
13339 main ()
13341 return $ac_func ();
13342   ;
13343   return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13353 $as_echo "$ac_try_echo") >&5
13354   (eval "$ac_link") 2>conftest.er1
13355   ac_status=$?
13356   grep -v '^ *+' conftest.er1 >conftest.err
13357   rm -f conftest.er1
13358   cat conftest.err >&5
13359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } && {
13361          test -z "$ac_c_werror_flag" ||
13362          test ! -s conftest.err
13363        } && test -s conftest$ac_exeext && {
13364          test "$cross_compiling" = yes ||
13365          $as_test_x conftest$ac_exeext
13366        }; then
13367   eval "$as_ac_var=yes"
13368 else
13369   $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372         eval "$as_ac_var=no"
13375 rm -rf conftest.dSYM
13376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13377       conftest$ac_exeext conftest.$ac_ext
13379 ac_res=`eval 'as_val=${'$as_ac_var'}
13380                  $as_echo "$as_val"'`
13381                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13382 $as_echo "$ac_res" >&6; }
13383 as_val=`eval 'as_val=${'$as_ac_var'}
13384                  $as_echo "$as_val"'`
13385    if test "x$as_val" = x""yes; then
13386   cat >>confdefs.h <<_ACEOF
13387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13388 _ACEOF
13391 done
13394 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13395 $as_echo_n "checking whether strerror_r is declared... " >&6; }
13396 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13397   $as_echo_n "(cached) " >&6
13398 else
13399   cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405 $ac_includes_default
13406 int
13407 main ()
13409 #ifndef strerror_r
13410   (void) strerror_r;
13411 #endif
13413   ;
13414   return 0;
13416 _ACEOF
13417 rm -f conftest.$ac_objext
13418 if { (ac_try="$ac_compile"
13419 case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13424 $as_echo "$ac_try_echo") >&5
13425   (eval "$ac_compile") 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } && {
13432          test -z "$ac_c_werror_flag" ||
13433          test ! -s conftest.err
13434        } && test -s conftest.$ac_objext; then
13435   ac_cv_have_decl_strerror_r=yes
13436 else
13437   $as_echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440         ac_cv_have_decl_strerror_r=no
13443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13446 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
13447 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
13449 cat >>confdefs.h <<_ACEOF
13450 #define HAVE_DECL_STRERROR_R 1
13451 _ACEOF
13454 else
13455   cat >>confdefs.h <<_ACEOF
13456 #define HAVE_DECL_STRERROR_R 0
13457 _ACEOF
13464 for ac_func in strerror_r
13466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13467 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13468 $as_echo_n "checking for $ac_func... " >&6; }
13469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13470   $as_echo_n "(cached) " >&6
13471 else
13472   cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13480 #define $ac_func innocuous_$ac_func
13482 /* System header to define __stub macros and hopefully few prototypes,
13483     which can conflict with char $ac_func (); below.
13484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13485     <limits.h> exists even on freestanding compilers.  */
13487 #ifdef __STDC__
13488 # include <limits.h>
13489 #else
13490 # include <assert.h>
13491 #endif
13493 #undef $ac_func
13495 /* Override any GCC internal prototype to avoid an error.
13496    Use char because int might match the return type of a GCC
13497    builtin and then its argument prototype would still apply.  */
13498 #ifdef __cplusplus
13499 extern "C"
13500 #endif
13501 char $ac_func ();
13502 /* The GNU C library defines this for functions which it implements
13503     to always fail with ENOSYS.  Some functions are actually named
13504     something starting with __ and the normal name is an alias.  */
13505 #if defined __stub_$ac_func || defined __stub___$ac_func
13506 choke me
13507 #endif
13509 int
13510 main ()
13512 return $ac_func ();
13513   ;
13514   return 0;
13516 _ACEOF
13517 rm -f conftest.$ac_objext conftest$ac_exeext
13518 if { (ac_try="$ac_link"
13519 case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524 $as_echo "$ac_try_echo") >&5
13525   (eval "$ac_link") 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } && {
13532          test -z "$ac_c_werror_flag" ||
13533          test ! -s conftest.err
13534        } && test -s conftest$ac_exeext && {
13535          test "$cross_compiling" = yes ||
13536          $as_test_x conftest$ac_exeext
13537        }; then
13538   eval "$as_ac_var=yes"
13539 else
13540   $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543         eval "$as_ac_var=no"
13546 rm -rf conftest.dSYM
13547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13548       conftest$ac_exeext conftest.$ac_ext
13550 ac_res=`eval 'as_val=${'$as_ac_var'}
13551                  $as_echo "$as_val"'`
13552                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13553 $as_echo "$ac_res" >&6; }
13554 as_val=`eval 'as_val=${'$as_ac_var'}
13555                  $as_echo "$as_val"'`
13556    if test "x$as_val" = x""yes; then
13557   cat >>confdefs.h <<_ACEOF
13558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13559 _ACEOF
13562 done
13564 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13565 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13566 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13567   $as_echo_n "(cached) " >&6
13568 else
13570     ac_cv_func_strerror_r_char_p=no
13571     if test $ac_cv_have_decl_strerror_r = yes; then
13572       cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 $ac_includes_default
13579 int
13580 main ()
13583           char buf[100];
13584           char x = *strerror_r (0, buf, sizeof buf);
13585           char *p = strerror_r (0, buf, sizeof buf);
13586           return !p || x;
13588   ;
13589   return 0;
13591 _ACEOF
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596   *) ac_try_echo=$ac_try;;
13597 esac
13598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13599 $as_echo "$ac_try_echo") >&5
13600   (eval "$ac_compile") 2>conftest.er1
13601   ac_status=$?
13602   grep -v '^ *+' conftest.er1 >conftest.err
13603   rm -f conftest.er1
13604   cat conftest.err >&5
13605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } && {
13607          test -z "$ac_c_werror_flag" ||
13608          test ! -s conftest.err
13609        } && test -s conftest.$ac_objext; then
13610   ac_cv_func_strerror_r_char_p=yes
13611 else
13612   $as_echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13619     else
13620       # strerror_r is not declared.  Choose between
13621       # systems that have relatively inaccessible declarations for the
13622       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13623       # former has a strerror_r that returns char*, while the latter
13624       # has a strerror_r that returns `int'.
13625       # This test should segfault on the DEC system.
13626       if test "$cross_compiling" = yes; then
13627   :
13628 else
13629   cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635 $ac_includes_default
13636         extern char *strerror_r ();
13637 int
13638 main ()
13640 char buf[100];
13641           char x = *strerror_r (0, buf, sizeof buf);
13642           return ! isalpha (x);
13643   ;
13644   return 0;
13646 _ACEOF
13647 rm -f conftest$ac_exeext
13648 if { (ac_try="$ac_link"
13649 case "(($ac_try" in
13650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651   *) ac_try_echo=$ac_try;;
13652 esac
13653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13654 $as_echo "$ac_try_echo") >&5
13655   (eval "$ac_link") 2>&5
13656   ac_status=$?
13657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13659   { (case "(($ac_try" in
13660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661   *) ac_try_echo=$ac_try;;
13662 esac
13663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13664 $as_echo "$ac_try_echo") >&5
13665   (eval "$ac_try") 2>&5
13666   ac_status=$?
13667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }; }; then
13669   ac_cv_func_strerror_r_char_p=yes
13670 else
13671   $as_echo "$as_me: program exited with status $ac_status" >&5
13672 $as_echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13676 rm -rf conftest.dSYM
13677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13681     fi
13684 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
13685 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13686 if test $ac_cv_func_strerror_r_char_p = yes; then
13688 cat >>confdefs.h <<\_ACEOF
13689 #define STRERROR_R_CHAR_P 1
13690 _ACEOF
13696 case $TERM in
13697        #   for the most important terminal types we directly know the sequences
13698        xterm|xterm*|vt220|vt220*)
13699                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13700                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13701        ;;
13702        vt100|vt100*|cygwin)
13703                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13704                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13705        ;;
13706        *)
13707                T_MD=''
13708                T_ME=''
13709        ;;
13710 esac
13711   { $as_echo "$as_me:$LINENO: result: " >&5
13712 $as_echo "" >&6; }
13713   { $as_echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
13714 $as_echo "${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
13720 for ac_func in fdatasync
13722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13724 $as_echo_n "checking for $ac_func... " >&6; }
13725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13726   $as_echo_n "(cached) " >&6
13727 else
13728   cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h.  */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h.  */
13734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13736 #define $ac_func innocuous_$ac_func
13738 /* System header to define __stub macros and hopefully few prototypes,
13739     which can conflict with char $ac_func (); below.
13740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13741     <limits.h> exists even on freestanding compilers.  */
13743 #ifdef __STDC__
13744 # include <limits.h>
13745 #else
13746 # include <assert.h>
13747 #endif
13749 #undef $ac_func
13751 /* Override any GCC internal prototype to avoid an error.
13752    Use char because int might match the return type of a GCC
13753    builtin and then its argument prototype would still apply.  */
13754 #ifdef __cplusplus
13755 extern "C"
13756 #endif
13757 char $ac_func ();
13758 /* The GNU C library defines this for functions which it implements
13759     to always fail with ENOSYS.  Some functions are actually named
13760     something starting with __ and the normal name is an alias.  */
13761 #if defined __stub_$ac_func || defined __stub___$ac_func
13762 choke me
13763 #endif
13765 int
13766 main ()
13768 return $ac_func ();
13769   ;
13770   return 0;
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (ac_try="$ac_link"
13775 case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13780 $as_echo "$ac_try_echo") >&5
13781   (eval "$ac_link") 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } && {
13788          test -z "$ac_c_werror_flag" ||
13789          test ! -s conftest.err
13790        } && test -s conftest$ac_exeext && {
13791          test "$cross_compiling" = yes ||
13792          $as_test_x conftest$ac_exeext
13793        }; then
13794   eval "$as_ac_var=yes"
13795 else
13796   $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799         eval "$as_ac_var=no"
13802 rm -rf conftest.dSYM
13803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13804       conftest$ac_exeext conftest.$ac_ext
13806 ac_res=`eval 'as_val=${'$as_ac_var'}
13807                  $as_echo "$as_val"'`
13808                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13809 $as_echo "$ac_res" >&6; }
13810 as_val=`eval 'as_val=${'$as_ac_var'}
13811                  $as_echo "$as_val"'`
13812    if test "x$as_val" = x""yes; then
13813   cat >>confdefs.h <<_ACEOF
13814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13815 _ACEOF
13817 else
13818   { $as_echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
13819 $as_echo_n "checking for fdatasync in -lrt... " >&6; }
13820 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
13821   $as_echo_n "(cached) " >&6
13822 else
13823   ac_check_lib_save_LIBS=$LIBS
13824 LIBS="-lrt  $LIBS"
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h.  */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h.  */
13832 /* Override any GCC internal prototype to avoid an error.
13833    Use char because int might match the return type of a GCC
13834    builtin and then its argument prototype would still apply.  */
13835 #ifdef __cplusplus
13836 extern "C"
13837 #endif
13838 char fdatasync ();
13839 int
13840 main ()
13842 return fdatasync ();
13843   ;
13844   return 0;
13846 _ACEOF
13847 rm -f conftest.$ac_objext conftest$ac_exeext
13848 if { (ac_try="$ac_link"
13849 case "(($ac_try" in
13850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851   *) ac_try_echo=$ac_try;;
13852 esac
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855   (eval "$ac_link") 2>conftest.er1
13856   ac_status=$?
13857   grep -v '^ *+' conftest.er1 >conftest.err
13858   rm -f conftest.er1
13859   cat conftest.err >&5
13860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } && {
13862          test -z "$ac_c_werror_flag" ||
13863          test ! -s conftest.err
13864        } && test -s conftest$ac_exeext && {
13865          test "$cross_compiling" = yes ||
13866          $as_test_x conftest$ac_exeext
13867        }; then
13868   ac_cv_lib_rt_fdatasync=yes
13869 else
13870   $as_echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873         ac_cv_lib_rt_fdatasync=no
13876 rm -rf conftest.dSYM
13877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13878       conftest$ac_exeext conftest.$ac_ext
13879 LIBS=$ac_check_lib_save_LIBS
13881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
13882 $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
13883 if test "x$ac_cv_lib_rt_fdatasync" = x""yes; then
13884   LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
13885 #define HAVE_FDATASYNC 1
13886 _ACEOF
13891 done
13894 for ac_func in fsync
13896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13897 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13898 $as_echo_n "checking for $ac_func... " >&6; }
13899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13900   $as_echo_n "(cached) " >&6
13901 else
13902   cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h.  */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h.  */
13908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13910 #define $ac_func innocuous_$ac_func
13912 /* System header to define __stub macros and hopefully few prototypes,
13913     which can conflict with char $ac_func (); below.
13914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13915     <limits.h> exists even on freestanding compilers.  */
13917 #ifdef __STDC__
13918 # include <limits.h>
13919 #else
13920 # include <assert.h>
13921 #endif
13923 #undef $ac_func
13925 /* Override any GCC internal prototype to avoid an error.
13926    Use char because int might match the return type of a GCC
13927    builtin and then its argument prototype would still apply.  */
13928 #ifdef __cplusplus
13929 extern "C"
13930 #endif
13931 char $ac_func ();
13932 /* The GNU C library defines this for functions which it implements
13933     to always fail with ENOSYS.  Some functions are actually named
13934     something starting with __ and the normal name is an alias.  */
13935 #if defined __stub_$ac_func || defined __stub___$ac_func
13936 choke me
13937 #endif
13939 int
13940 main ()
13942 return $ac_func ();
13943   ;
13944   return 0;
13946 _ACEOF
13947 rm -f conftest.$ac_objext conftest$ac_exeext
13948 if { (ac_try="$ac_link"
13949 case "(($ac_try" in
13950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951   *) ac_try_echo=$ac_try;;
13952 esac
13953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13954 $as_echo "$ac_try_echo") >&5
13955   (eval "$ac_link") 2>conftest.er1
13956   ac_status=$?
13957   grep -v '^ *+' conftest.er1 >conftest.err
13958   rm -f conftest.er1
13959   cat conftest.err >&5
13960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); } && {
13962          test -z "$ac_c_werror_flag" ||
13963          test ! -s conftest.err
13964        } && test -s conftest$ac_exeext && {
13965          test "$cross_compiling" = yes ||
13966          $as_test_x conftest$ac_exeext
13967        }; then
13968   eval "$as_ac_var=yes"
13969 else
13970   $as_echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973         eval "$as_ac_var=no"
13976 rm -rf conftest.dSYM
13977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13978       conftest$ac_exeext conftest.$ac_ext
13980 ac_res=`eval 'as_val=${'$as_ac_var'}
13981                  $as_echo "$as_val"'`
13982                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13983 $as_echo "$ac_res" >&6; }
13984 as_val=`eval 'as_val=${'$as_ac_var'}
13985                  $as_echo "$as_val"'`
13986    if test "x$as_val" = x""yes; then
13987   cat >>confdefs.h <<_ACEOF
13988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13989 _ACEOF
13992 done
13996 if test "x$enable_mmap" = "xyes"; then
13997   case "$host" in
13998   *cygwin*)
13999     # the normal mmap test does not work in cygwin
14001 for ac_func in mmap
14003 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14004 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14005 $as_echo_n "checking for $ac_func... " >&6; }
14006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14007   $as_echo_n "(cached) " >&6
14008 else
14009   cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h.  */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h.  */
14015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14017 #define $ac_func innocuous_$ac_func
14019 /* System header to define __stub macros and hopefully few prototypes,
14020     which can conflict with char $ac_func (); below.
14021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14022     <limits.h> exists even on freestanding compilers.  */
14024 #ifdef __STDC__
14025 # include <limits.h>
14026 #else
14027 # include <assert.h>
14028 #endif
14030 #undef $ac_func
14032 /* Override any GCC internal prototype to avoid an error.
14033    Use char because int might match the return type of a GCC
14034    builtin and then its argument prototype would still apply.  */
14035 #ifdef __cplusplus
14036 extern "C"
14037 #endif
14038 char $ac_func ();
14039 /* The GNU C library defines this for functions which it implements
14040     to always fail with ENOSYS.  Some functions are actually named
14041     something starting with __ and the normal name is an alias.  */
14042 #if defined __stub_$ac_func || defined __stub___$ac_func
14043 choke me
14044 #endif
14046 int
14047 main ()
14049 return $ac_func ();
14050   ;
14051   return 0;
14053 _ACEOF
14054 rm -f conftest.$ac_objext conftest$ac_exeext
14055 if { (ac_try="$ac_link"
14056 case "(($ac_try" in
14057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058   *) ac_try_echo=$ac_try;;
14059 esac
14060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14061 $as_echo "$ac_try_echo") >&5
14062   (eval "$ac_link") 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } && {
14069          test -z "$ac_c_werror_flag" ||
14070          test ! -s conftest.err
14071        } && test -s conftest$ac_exeext && {
14072          test "$cross_compiling" = yes ||
14073          $as_test_x conftest$ac_exeext
14074        }; then
14075   eval "$as_ac_var=yes"
14076 else
14077   $as_echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080         eval "$as_ac_var=no"
14083 rm -rf conftest.dSYM
14084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14085       conftest$ac_exeext conftest.$ac_ext
14087 ac_res=`eval 'as_val=${'$as_ac_var'}
14088                  $as_echo "$as_val"'`
14089                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14090 $as_echo "$ac_res" >&6; }
14091 as_val=`eval 'as_val=${'$as_ac_var'}
14092                  $as_echo "$as_val"'`
14093    if test "x$as_val" = x""yes; then
14094   cat >>confdefs.h <<_ACEOF
14095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14096 _ACEOF
14099 done
14101     if test "x$ac_cv_func_mmap" = "xyes"; then
14102       ac_cv_func_mmap_fixed_mapped=yes
14103     fi
14104   ;;
14105   *)
14107 for ac_header in sys/mman.h
14109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14111   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14112 $as_echo_n "checking for $ac_header... " >&6; }
14113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14114   $as_echo_n "(cached) " >&6
14116 ac_res=`eval 'as_val=${'$as_ac_Header'}
14117                  $as_echo "$as_val"'`
14118                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14119 $as_echo "$ac_res" >&6; }
14120 else
14121   # Is the header compilable?
14122 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14123 $as_echo_n "checking $ac_header usability... " >&6; }
14124 cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h.  */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h.  */
14130 $ac_includes_default
14131 #include <$ac_header>
14132 _ACEOF
14133 rm -f conftest.$ac_objext
14134 if { (ac_try="$ac_compile"
14135 case "(($ac_try" in
14136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137   *) ac_try_echo=$ac_try;;
14138 esac
14139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14140 $as_echo "$ac_try_echo") >&5
14141   (eval "$ac_compile") 2>conftest.er1
14142   ac_status=$?
14143   grep -v '^ *+' conftest.er1 >conftest.err
14144   rm -f conftest.er1
14145   cat conftest.err >&5
14146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } && {
14148          test -z "$ac_c_werror_flag" ||
14149          test ! -s conftest.err
14150        } && test -s conftest.$ac_objext; then
14151   ac_header_compiler=yes
14152 else
14153   $as_echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156         ac_header_compiler=no
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14161 $as_echo "$ac_header_compiler" >&6; }
14163 # Is the header present?
14164 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14165 $as_echo_n "checking $ac_header presence... " >&6; }
14166 cat >conftest.$ac_ext <<_ACEOF
14167 /* confdefs.h.  */
14168 _ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h.  */
14172 #include <$ac_header>
14173 _ACEOF
14174 if { (ac_try="$ac_cpp conftest.$ac_ext"
14175 case "(($ac_try" in
14176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177   *) ac_try_echo=$ac_try;;
14178 esac
14179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14180 $as_echo "$ac_try_echo") >&5
14181   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14182   ac_status=$?
14183   grep -v '^ *+' conftest.er1 >conftest.err
14184   rm -f conftest.er1
14185   cat conftest.err >&5
14186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); } >/dev/null && {
14188          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14189          test ! -s conftest.err
14190        }; then
14191   ac_header_preproc=yes
14192 else
14193   $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196   ac_header_preproc=no
14199 rm -f conftest.err conftest.$ac_ext
14200 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14201 $as_echo "$ac_header_preproc" >&6; }
14203 # So?  What about this header?
14204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14205   yes:no: )
14206     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14207 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14208     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14209 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14210     ac_header_preproc=yes
14211     ;;
14212   no:yes:* )
14213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14214 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14215     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14216 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14217     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14218 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14220 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14222 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14224 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14226     ;;
14227 esac
14228 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14229 $as_echo_n "checking for $ac_header... " >&6; }
14230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14231   $as_echo_n "(cached) " >&6
14232 else
14233   eval "$as_ac_Header=\$ac_header_preproc"
14235 ac_res=`eval 'as_val=${'$as_ac_Header'}
14236                  $as_echo "$as_val"'`
14237                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14238 $as_echo "$ac_res" >&6; }
14241 as_val=`eval 'as_val=${'$as_ac_Header'}
14242                  $as_echo "$as_val"'`
14243    if test "x$as_val" = x""yes; then
14244   cat >>confdefs.h <<_ACEOF
14245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14246 _ACEOF
14250 done
14254 for ac_header in stdlib.h unistd.h
14256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14258   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14259 $as_echo_n "checking for $ac_header... " >&6; }
14260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14261   $as_echo_n "(cached) " >&6
14263 ac_res=`eval 'as_val=${'$as_ac_Header'}
14264                  $as_echo "$as_val"'`
14265                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14266 $as_echo "$ac_res" >&6; }
14267 else
14268   # Is the header compilable?
14269 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14270 $as_echo_n "checking $ac_header usability... " >&6; }
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h.  */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h.  */
14277 $ac_includes_default
14278 #include <$ac_header>
14279 _ACEOF
14280 rm -f conftest.$ac_objext
14281 if { (ac_try="$ac_compile"
14282 case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288   (eval "$ac_compile") 2>conftest.er1
14289   ac_status=$?
14290   grep -v '^ *+' conftest.er1 >conftest.err
14291   rm -f conftest.er1
14292   cat conftest.err >&5
14293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } && {
14295          test -z "$ac_c_werror_flag" ||
14296          test ! -s conftest.err
14297        } && test -s conftest.$ac_objext; then
14298   ac_header_compiler=yes
14299 else
14300   $as_echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303         ac_header_compiler=no
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14308 $as_echo "$ac_header_compiler" >&6; }
14310 # Is the header present?
14311 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14312 $as_echo_n "checking $ac_header presence... " >&6; }
14313 cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319 #include <$ac_header>
14320 _ACEOF
14321 if { (ac_try="$ac_cpp conftest.$ac_ext"
14322 case "(($ac_try" in
14323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324   *) ac_try_echo=$ac_try;;
14325 esac
14326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14327 $as_echo "$ac_try_echo") >&5
14328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14329   ac_status=$?
14330   grep -v '^ *+' conftest.er1 >conftest.err
14331   rm -f conftest.er1
14332   cat conftest.err >&5
14333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } >/dev/null && {
14335          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14336          test ! -s conftest.err
14337        }; then
14338   ac_header_preproc=yes
14339 else
14340   $as_echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343   ac_header_preproc=no
14346 rm -f conftest.err conftest.$ac_ext
14347 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14348 $as_echo "$ac_header_preproc" >&6; }
14350 # So?  What about this header?
14351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14352   yes:no: )
14353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14354 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14357     ac_header_preproc=yes
14358     ;;
14359   no:yes:* )
14360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14361 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14363 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14365 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14367 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14371 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14373     ;;
14374 esac
14375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14376 $as_echo_n "checking for $ac_header... " >&6; }
14377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14378   $as_echo_n "(cached) " >&6
14379 else
14380   eval "$as_ac_Header=\$ac_header_preproc"
14382 ac_res=`eval 'as_val=${'$as_ac_Header'}
14383                  $as_echo "$as_val"'`
14384                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14385 $as_echo "$ac_res" >&6; }
14388 as_val=`eval 'as_val=${'$as_ac_Header'}
14389                  $as_echo "$as_val"'`
14390    if test "x$as_val" = x""yes; then
14391   cat >>confdefs.h <<_ACEOF
14392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14393 _ACEOF
14397 done
14400 for ac_func in getpagesize
14402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14403 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14404 $as_echo_n "checking for $ac_func... " >&6; }
14405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14406   $as_echo_n "(cached) " >&6
14407 else
14408   cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h.  */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h.  */
14414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14416 #define $ac_func innocuous_$ac_func
14418 /* System header to define __stub macros and hopefully few prototypes,
14419     which can conflict with char $ac_func (); below.
14420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14421     <limits.h> exists even on freestanding compilers.  */
14423 #ifdef __STDC__
14424 # include <limits.h>
14425 #else
14426 # include <assert.h>
14427 #endif
14429 #undef $ac_func
14431 /* Override any GCC internal prototype to avoid an error.
14432    Use char because int might match the return type of a GCC
14433    builtin and then its argument prototype would still apply.  */
14434 #ifdef __cplusplus
14435 extern "C"
14436 #endif
14437 char $ac_func ();
14438 /* The GNU C library defines this for functions which it implements
14439     to always fail with ENOSYS.  Some functions are actually named
14440     something starting with __ and the normal name is an alias.  */
14441 #if defined __stub_$ac_func || defined __stub___$ac_func
14442 choke me
14443 #endif
14445 int
14446 main ()
14448 return $ac_func ();
14449   ;
14450   return 0;
14452 _ACEOF
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454 if { (ac_try="$ac_link"
14455 case "(($ac_try" in
14456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457   *) ac_try_echo=$ac_try;;
14458 esac
14459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14460 $as_echo "$ac_try_echo") >&5
14461   (eval "$ac_link") 2>conftest.er1
14462   ac_status=$?
14463   grep -v '^ *+' conftest.er1 >conftest.err
14464   rm -f conftest.er1
14465   cat conftest.err >&5
14466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); } && {
14468          test -z "$ac_c_werror_flag" ||
14469          test ! -s conftest.err
14470        } && test -s conftest$ac_exeext && {
14471          test "$cross_compiling" = yes ||
14472          $as_test_x conftest$ac_exeext
14473        }; then
14474   eval "$as_ac_var=yes"
14475 else
14476   $as_echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479         eval "$as_ac_var=no"
14482 rm -rf conftest.dSYM
14483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14484       conftest$ac_exeext conftest.$ac_ext
14486 ac_res=`eval 'as_val=${'$as_ac_var'}
14487                  $as_echo "$as_val"'`
14488                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14489 $as_echo "$ac_res" >&6; }
14490 as_val=`eval 'as_val=${'$as_ac_var'}
14491                  $as_echo "$as_val"'`
14492    if test "x$as_val" = x""yes; then
14493   cat >>confdefs.h <<_ACEOF
14494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14495 _ACEOF
14498 done
14500 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
14501 $as_echo_n "checking for working mmap... " >&6; }
14502 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14503   $as_echo_n "(cached) " >&6
14504 else
14505   if test "$cross_compiling" = yes; then
14506   ac_cv_func_mmap_fixed_mapped=no
14507 else
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 $ac_includes_default
14515 /* malloc might have been renamed as rpl_malloc. */
14516 #undef malloc
14518 /* Thanks to Mike Haertel and Jim Avera for this test.
14519    Here is a matrix of mmap possibilities:
14520         mmap private not fixed
14521         mmap private fixed at somewhere currently unmapped
14522         mmap private fixed at somewhere already mapped
14523         mmap shared not fixed
14524         mmap shared fixed at somewhere currently unmapped
14525         mmap shared fixed at somewhere already mapped
14526    For private mappings, we should verify that changes cannot be read()
14527    back from the file, nor mmap's back from the file at a different
14528    address.  (There have been systems where private was not correctly
14529    implemented like the infamous i386 svr4.0, and systems where the
14530    VM page cache was not coherent with the file system buffer cache
14531    like early versions of FreeBSD and possibly contemporary NetBSD.)
14532    For shared mappings, we should conversely verify that changes get
14533    propagated back to all the places they're supposed to be.
14535    Grep wants private fixed already mapped.
14536    The main things grep needs to know about mmap are:
14537    * does it exist and is it safe to write into the mmap'd area
14538    * how to use it (BSD variants)  */
14540 #include <fcntl.h>
14541 #include <sys/mman.h>
14543 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14544 char *malloc ();
14545 #endif
14547 /* This mess was copied from the GNU getpagesize.h.  */
14548 #ifndef HAVE_GETPAGESIZE
14549 /* Assume that all systems that can run configure have sys/param.h.  */
14550 # ifndef HAVE_SYS_PARAM_H
14551 #  define HAVE_SYS_PARAM_H 1
14552 # endif
14554 # ifdef _SC_PAGESIZE
14555 #  define getpagesize() sysconf(_SC_PAGESIZE)
14556 # else /* no _SC_PAGESIZE */
14557 #  ifdef HAVE_SYS_PARAM_H
14558 #   include <sys/param.h>
14559 #   ifdef EXEC_PAGESIZE
14560 #    define getpagesize() EXEC_PAGESIZE
14561 #   else /* no EXEC_PAGESIZE */
14562 #    ifdef NBPG
14563 #     define getpagesize() NBPG * CLSIZE
14564 #     ifndef CLSIZE
14565 #      define CLSIZE 1
14566 #     endif /* no CLSIZE */
14567 #    else /* no NBPG */
14568 #     ifdef NBPC
14569 #      define getpagesize() NBPC
14570 #     else /* no NBPC */
14571 #      ifdef PAGESIZE
14572 #       define getpagesize() PAGESIZE
14573 #      endif /* PAGESIZE */
14574 #     endif /* no NBPC */
14575 #    endif /* no NBPG */
14576 #   endif /* no EXEC_PAGESIZE */
14577 #  else /* no HAVE_SYS_PARAM_H */
14578 #   define getpagesize() 8192   /* punt totally */
14579 #  endif /* no HAVE_SYS_PARAM_H */
14580 # endif /* no _SC_PAGESIZE */
14582 #endif /* no HAVE_GETPAGESIZE */
14584 int
14585 main ()
14587   char *data, *data2, *data3;
14588   int i, pagesize;
14589   int fd;
14591   pagesize = getpagesize ();
14593   /* First, make a file with some known garbage in it. */
14594   data = (char *) malloc (pagesize);
14595   if (!data)
14596     return 1;
14597   for (i = 0; i < pagesize; ++i)
14598     *(data + i) = rand ();
14599   umask (0);
14600   fd = creat ("conftest.mmap", 0600);
14601   if (fd < 0)
14602     return 1;
14603   if (write (fd, data, pagesize) != pagesize)
14604     return 1;
14605   close (fd);
14607   /* Next, try to mmap the file at a fixed address which already has
14608      something else allocated at it.  If we can, also make sure that
14609      we see the same garbage.  */
14610   fd = open ("conftest.mmap", O_RDWR);
14611   if (fd < 0)
14612     return 1;
14613   data2 = (char *) malloc (2 * pagesize);
14614   if (!data2)
14615     return 1;
14616   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14617   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14618                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14619     return 1;
14620   for (i = 0; i < pagesize; ++i)
14621     if (*(data + i) != *(data2 + i))
14622       return 1;
14624   /* Finally, make sure that changes to the mapped area do not
14625      percolate back to the file as seen by read().  (This is a bug on
14626      some variants of i386 svr4.0.)  */
14627   for (i = 0; i < pagesize; ++i)
14628     *(data2 + i) = *(data2 + i) + 1;
14629   data3 = (char *) malloc (pagesize);
14630   if (!data3)
14631     return 1;
14632   if (read (fd, data3, pagesize) != pagesize)
14633     return 1;
14634   for (i = 0; i < pagesize; ++i)
14635     if (*(data + i) != *(data3 + i))
14636       return 1;
14637   close (fd);
14638   return 0;
14640 _ACEOF
14641 rm -f conftest$ac_exeext
14642 if { (ac_try="$ac_link"
14643 case "(($ac_try" in
14644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645   *) ac_try_echo=$ac_try;;
14646 esac
14647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14648 $as_echo "$ac_try_echo") >&5
14649   (eval "$ac_link") 2>&5
14650   ac_status=$?
14651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14653   { (case "(($ac_try" in
14654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655   *) ac_try_echo=$ac_try;;
14656 esac
14657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14658 $as_echo "$ac_try_echo") >&5
14659   (eval "$ac_try") 2>&5
14660   ac_status=$?
14661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; }; then
14663   ac_cv_func_mmap_fixed_mapped=yes
14664 else
14665   $as_echo "$as_me: program exited with status $ac_status" >&5
14666 $as_echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 ( exit $ac_status )
14670 ac_cv_func_mmap_fixed_mapped=no
14672 rm -rf conftest.dSYM
14673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14678 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14679 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14680 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_MMAP 1
14684 _ACEOF
14687 rm -f conftest.mmap
14692 for ac_func in mmap munmap msync
14694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14695 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14696 $as_echo_n "checking for $ac_func... " >&6; }
14697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14698   $as_echo_n "(cached) " >&6
14699 else
14700   cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14708 #define $ac_func innocuous_$ac_func
14710 /* System header to define __stub macros and hopefully few prototypes,
14711     which can conflict with char $ac_func (); below.
14712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14713     <limits.h> exists even on freestanding compilers.  */
14715 #ifdef __STDC__
14716 # include <limits.h>
14717 #else
14718 # include <assert.h>
14719 #endif
14721 #undef $ac_func
14723 /* Override any GCC internal prototype to avoid an error.
14724    Use char because int might match the return type of a GCC
14725    builtin and then its argument prototype would still apply.  */
14726 #ifdef __cplusplus
14727 extern "C"
14728 #endif
14729 char $ac_func ();
14730 /* The GNU C library defines this for functions which it implements
14731     to always fail with ENOSYS.  Some functions are actually named
14732     something starting with __ and the normal name is an alias.  */
14733 #if defined __stub_$ac_func || defined __stub___$ac_func
14734 choke me
14735 #endif
14737 int
14738 main ()
14740 return $ac_func ();
14741   ;
14742   return 0;
14744 _ACEOF
14745 rm -f conftest.$ac_objext conftest$ac_exeext
14746 if { (ac_try="$ac_link"
14747 case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14752 $as_echo "$ac_try_echo") >&5
14753   (eval "$ac_link") 2>conftest.er1
14754   ac_status=$?
14755   grep -v '^ *+' conftest.er1 >conftest.err
14756   rm -f conftest.er1
14757   cat conftest.err >&5
14758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); } && {
14760          test -z "$ac_c_werror_flag" ||
14761          test ! -s conftest.err
14762        } && test -s conftest$ac_exeext && {
14763          test "$cross_compiling" = yes ||
14764          $as_test_x conftest$ac_exeext
14765        }; then
14766   eval "$as_ac_var=yes"
14767 else
14768   $as_echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771         eval "$as_ac_var=no"
14774 rm -rf conftest.dSYM
14775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14776       conftest$ac_exeext conftest.$ac_ext
14778 ac_res=`eval 'as_val=${'$as_ac_var'}
14779                  $as_echo "$as_val"'`
14780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14781 $as_echo "$ac_res" >&6; }
14782 as_val=`eval 'as_val=${'$as_ac_var'}
14783                  $as_echo "$as_val"'`
14784    if test "x$as_val" = x""yes; then
14785   cat >>confdefs.h <<_ACEOF
14786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14787 _ACEOF
14790 done
14792     { $as_echo "$as_me:$LINENO: checking whether madvise is declared" >&5
14793 $as_echo_n "checking whether madvise is declared... " >&6; }
14794 if test "${ac_cv_have_decl_madvise+set}" = set; then
14795   $as_echo_n "(cached) " >&6
14796 else
14797   cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h.  */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h.  */
14803 #ifdef HAVE_SYS_MMAN_H
14804                                      # include <sys/mman.h>
14805                                      #endif
14807 int
14808 main ()
14810 #ifndef madvise
14811   (void) madvise;
14812 #endif
14814   ;
14815   return 0;
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (ac_try="$ac_compile"
14820 case "(($ac_try" in
14821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822   *) ac_try_echo=$ac_try;;
14823 esac
14824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14825 $as_echo "$ac_try_echo") >&5
14826   (eval "$ac_compile") 2>conftest.er1
14827   ac_status=$?
14828   grep -v '^ *+' conftest.er1 >conftest.err
14829   rm -f conftest.er1
14830   cat conftest.err >&5
14831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); } && {
14833          test -z "$ac_c_werror_flag" ||
14834          test ! -s conftest.err
14835        } && test -s conftest.$ac_objext; then
14836   ac_cv_have_decl_madvise=yes
14837 else
14838   $as_echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841         ac_cv_have_decl_madvise=no
14844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
14847 $as_echo "$ac_cv_have_decl_madvise" >&6; }
14848 if test "x$ac_cv_have_decl_madvise" = x""yes; then
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_DECL_MADVISE 1
14852 _ACEOF
14855 else
14856   cat >>confdefs.h <<_ACEOF
14857 #define HAVE_DECL_MADVISE 0
14858 _ACEOF
14864     if test "x$ac_cv_have_decl_madvise" = "xyes";
14865     then
14867 for ac_func in madvise
14869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14870 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14871 $as_echo_n "checking for $ac_func... " >&6; }
14872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14873   $as_echo_n "(cached) " >&6
14874 else
14875   cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h.  */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h.  */
14881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14883 #define $ac_func innocuous_$ac_func
14885 /* System header to define __stub macros and hopefully few prototypes,
14886     which can conflict with char $ac_func (); below.
14887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14888     <limits.h> exists even on freestanding compilers.  */
14890 #ifdef __STDC__
14891 # include <limits.h>
14892 #else
14893 # include <assert.h>
14894 #endif
14896 #undef $ac_func
14898 /* Override any GCC internal prototype to avoid an error.
14899    Use char because int might match the return type of a GCC
14900    builtin and then its argument prototype would still apply.  */
14901 #ifdef __cplusplus
14902 extern "C"
14903 #endif
14904 char $ac_func ();
14905 /* The GNU C library defines this for functions which it implements
14906     to always fail with ENOSYS.  Some functions are actually named
14907     something starting with __ and the normal name is an alias.  */
14908 #if defined __stub_$ac_func || defined __stub___$ac_func
14909 choke me
14910 #endif
14912 int
14913 main ()
14915 return $ac_func ();
14916   ;
14917   return 0;
14919 _ACEOF
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (ac_try="$ac_link"
14922 case "(($ac_try" in
14923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924   *) ac_try_echo=$ac_try;;
14925 esac
14926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14927 $as_echo "$ac_try_echo") >&5
14928   (eval "$ac_link") 2>conftest.er1
14929   ac_status=$?
14930   grep -v '^ *+' conftest.er1 >conftest.err
14931   rm -f conftest.er1
14932   cat conftest.err >&5
14933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); } && {
14935          test -z "$ac_c_werror_flag" ||
14936          test ! -s conftest.err
14937        } && test -s conftest$ac_exeext && {
14938          test "$cross_compiling" = yes ||
14939          $as_test_x conftest$ac_exeext
14940        }; then
14941   eval "$as_ac_var=yes"
14942 else
14943   $as_echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946         eval "$as_ac_var=no"
14949 rm -rf conftest.dSYM
14950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951       conftest$ac_exeext conftest.$ac_ext
14953 ac_res=`eval 'as_val=${'$as_ac_var'}
14954                  $as_echo "$as_val"'`
14955                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14956 $as_echo "$ac_res" >&6; }
14957 as_val=`eval 'as_val=${'$as_ac_var'}
14958                  $as_echo "$as_val"'`
14959    if test "x$as_val" = x""yes; then
14960   cat >>confdefs.h <<_ACEOF
14961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14962 _ACEOF
14965 done
14967     else
14969 for ac_func in posix_madvise
14971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14972 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14973 $as_echo_n "checking for $ac_func... " >&6; }
14974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14975   $as_echo_n "(cached) " >&6
14976 else
14977   cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h.  */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h.  */
14983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14985 #define $ac_func innocuous_$ac_func
14987 /* System header to define __stub macros and hopefully few prototypes,
14988     which can conflict with char $ac_func (); below.
14989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14990     <limits.h> exists even on freestanding compilers.  */
14992 #ifdef __STDC__
14993 # include <limits.h>
14994 #else
14995 # include <assert.h>
14996 #endif
14998 #undef $ac_func
15000 /* Override any GCC internal prototype to avoid an error.
15001    Use char because int might match the return type of a GCC
15002    builtin and then its argument prototype would still apply.  */
15003 #ifdef __cplusplus
15004 extern "C"
15005 #endif
15006 char $ac_func ();
15007 /* The GNU C library defines this for functions which it implements
15008     to always fail with ENOSYS.  Some functions are actually named
15009     something starting with __ and the normal name is an alias.  */
15010 #if defined __stub_$ac_func || defined __stub___$ac_func
15011 choke me
15012 #endif
15014 int
15015 main ()
15017 return $ac_func ();
15018   ;
15019   return 0;
15021 _ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (ac_try="$ac_link"
15024 case "(($ac_try" in
15025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026   *) ac_try_echo=$ac_try;;
15027 esac
15028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15029 $as_echo "$ac_try_echo") >&5
15030   (eval "$ac_link") 2>conftest.er1
15031   ac_status=$?
15032   grep -v '^ *+' conftest.er1 >conftest.err
15033   rm -f conftest.er1
15034   cat conftest.err >&5
15035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } && {
15037          test -z "$ac_c_werror_flag" ||
15038          test ! -s conftest.err
15039        } && test -s conftest$ac_exeext && {
15040          test "$cross_compiling" = yes ||
15041          $as_test_x conftest$ac_exeext
15042        }; then
15043   eval "$as_ac_var=yes"
15044 else
15045   $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048         eval "$as_ac_var=no"
15051 rm -rf conftest.dSYM
15052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15053       conftest$ac_exeext conftest.$ac_ext
15055 ac_res=`eval 'as_val=${'$as_ac_var'}
15056                  $as_echo "$as_val"'`
15057                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15058 $as_echo "$ac_res" >&6; }
15059 as_val=`eval 'as_val=${'$as_ac_var'}
15060                  $as_echo "$as_val"'`
15061    if test "x$as_val" = x""yes; then
15062   cat >>confdefs.h <<_ACEOF
15063 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15064 _ACEOF
15067 done
15069       if test "x$ac_cv_func_posix_madvise" != "xyes"; then
15070         { $as_echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
15071 $as_echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
15072       fi
15073     fi
15074   ;;
15075   esac
15076   if test "x$ac_cv_func_mmap" != "xyes";
15077   then
15078     { { $as_echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
15079 $as_echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
15080    { (exit 1); exit 1; }; }
15081   fi
15084 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15085 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
15086 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15087   $as_echo_n "(cached) " >&6
15088 else
15089   cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h.  */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h.  */
15095 #define _XOPEN_SOURCE 600
15096 #include <fcntl.h>
15098 int
15099 main ()
15101 #ifndef posix_fadvise
15102   (void) posix_fadvise;
15103 #endif
15105   ;
15106   return 0;
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (ac_try="$ac_compile"
15111 case "(($ac_try" in
15112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113   *) ac_try_echo=$ac_try;;
15114 esac
15115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15116 $as_echo "$ac_try_echo") >&5
15117   (eval "$ac_compile") 2>conftest.er1
15118   ac_status=$?
15119   grep -v '^ *+' conftest.er1 >conftest.err
15120   rm -f conftest.er1
15121   cat conftest.err >&5
15122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); } && {
15124          test -z "$ac_c_werror_flag" ||
15125          test ! -s conftest.err
15126        } && test -s conftest.$ac_objext; then
15127   ac_cv_have_decl_posix_fadvise=yes
15128 else
15129   $as_echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132         ac_cv_have_decl_posix_fadvise=no
15135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15138 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
15139 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_DECL_POSIX_FADVISE 1
15143 _ACEOF
15146 else
15147   cat >>confdefs.h <<_ACEOF
15148 #define HAVE_DECL_POSIX_FADVISE 0
15149 _ACEOF
15156 for ac_func in posix_fadvise
15158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 $as_echo_n "checking for $ac_func... " >&6; }
15161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15162   $as_echo_n "(cached) " >&6
15163 else
15164   cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h.  */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h.  */
15170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15172 #define $ac_func innocuous_$ac_func
15174 /* System header to define __stub macros and hopefully few prototypes,
15175     which can conflict with char $ac_func (); below.
15176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15177     <limits.h> exists even on freestanding compilers.  */
15179 #ifdef __STDC__
15180 # include <limits.h>
15181 #else
15182 # include <assert.h>
15183 #endif
15185 #undef $ac_func
15187 /* Override any GCC internal prototype to avoid an error.
15188    Use char because int might match the return type of a GCC
15189    builtin and then its argument prototype would still apply.  */
15190 #ifdef __cplusplus
15191 extern "C"
15192 #endif
15193 char $ac_func ();
15194 /* The GNU C library defines this for functions which it implements
15195     to always fail with ENOSYS.  Some functions are actually named
15196     something starting with __ and the normal name is an alias.  */
15197 #if defined __stub_$ac_func || defined __stub___$ac_func
15198 choke me
15199 #endif
15201 int
15202 main ()
15204 return $ac_func ();
15205   ;
15206   return 0;
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15216 $as_echo "$ac_try_echo") >&5
15217   (eval "$ac_link") 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } && {
15224          test -z "$ac_c_werror_flag" ||
15225          test ! -s conftest.err
15226        } && test -s conftest$ac_exeext && {
15227          test "$cross_compiling" = yes ||
15228          $as_test_x conftest$ac_exeext
15229        }; then
15230   eval "$as_ac_var=yes"
15231 else
15232   $as_echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235         eval "$as_ac_var=no"
15238 rm -rf conftest.dSYM
15239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15240       conftest$ac_exeext conftest.$ac_ext
15242 ac_res=`eval 'as_val=${'$as_ac_var'}
15243                  $as_echo "$as_val"'`
15244                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15245 $as_echo "$ac_res" >&6; }
15246 as_val=`eval 'as_val=${'$as_ac_var'}
15247                  $as_echo "$as_val"'`
15248    if test "x$as_val" = x""yes; then
15249   cat >>confdefs.h <<_ACEOF
15250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15251 _ACEOF
15254 done
15258 case $TERM in
15259        #   for the most important terminal types we directly know the sequences
15260        xterm|xterm*|vt220|vt220*)
15261                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
15262                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
15263        ;;
15264        vt100|vt100*|cygwin)
15265                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
15266                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
15267        ;;
15268        *)
15269                T_MD=''
15270                T_ME=''
15271        ;;
15272 esac
15273   { $as_echo "$as_me:$LINENO: result: " >&5
15274 $as_echo "" >&6; }
15275   { $as_echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
15276 $as_echo "${T_MD}Libintl Processing${T_ME}" >&6; }
15280 GETTEXT_PACKAGE=rrdtool
15283 cat >>confdefs.h <<_ACEOF
15284 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15285 _ACEOF
15290 for ac_header in locale.h
15292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15294   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15295 $as_echo_n "checking for $ac_header... " >&6; }
15296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297   $as_echo_n "(cached) " >&6
15299 ac_res=`eval 'as_val=${'$as_ac_Header'}
15300                  $as_echo "$as_val"'`
15301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15302 $as_echo "$ac_res" >&6; }
15303 else
15304   # Is the header compilable?
15305 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15306 $as_echo_n "checking $ac_header usability... " >&6; }
15307 cat >conftest.$ac_ext <<_ACEOF
15308 /* confdefs.h.  */
15309 _ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h.  */
15313 $ac_includes_default
15314 #include <$ac_header>
15315 _ACEOF
15316 rm -f conftest.$ac_objext
15317 if { (ac_try="$ac_compile"
15318 case "(($ac_try" in
15319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320   *) ac_try_echo=$ac_try;;
15321 esac
15322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15323 $as_echo "$ac_try_echo") >&5
15324   (eval "$ac_compile") 2>conftest.er1
15325   ac_status=$?
15326   grep -v '^ *+' conftest.er1 >conftest.err
15327   rm -f conftest.er1
15328   cat conftest.err >&5
15329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } && {
15331          test -z "$ac_c_werror_flag" ||
15332          test ! -s conftest.err
15333        } && test -s conftest.$ac_objext; then
15334   ac_header_compiler=yes
15335 else
15336   $as_echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339         ac_header_compiler=no
15342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15344 $as_echo "$ac_header_compiler" >&6; }
15346 # Is the header present?
15347 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15348 $as_echo_n "checking $ac_header presence... " >&6; }
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 #include <$ac_header>
15356 _ACEOF
15357 if { (ac_try="$ac_cpp conftest.$ac_ext"
15358 case "(($ac_try" in
15359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360   *) ac_try_echo=$ac_try;;
15361 esac
15362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15363 $as_echo "$ac_try_echo") >&5
15364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15365   ac_status=$?
15366   grep -v '^ *+' conftest.er1 >conftest.err
15367   rm -f conftest.er1
15368   cat conftest.err >&5
15369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); } >/dev/null && {
15371          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15372          test ! -s conftest.err
15373        }; then
15374   ac_header_preproc=yes
15375 else
15376   $as_echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379   ac_header_preproc=no
15382 rm -f conftest.err conftest.$ac_ext
15383 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15384 $as_echo "$ac_header_preproc" >&6; }
15386 # So?  What about this header?
15387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15388   yes:no: )
15389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15390 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15393     ac_header_preproc=yes
15394     ;;
15395   no:yes:* )
15396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15399 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15400     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15401 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15402     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15403 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15404     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15406     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15407 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15409     ;;
15410 esac
15411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15412 $as_echo_n "checking for $ac_header... " >&6; }
15413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15414   $as_echo_n "(cached) " >&6
15415 else
15416   eval "$as_ac_Header=\$ac_header_preproc"
15418 ac_res=`eval 'as_val=${'$as_ac_Header'}
15419                  $as_echo "$as_val"'`
15420                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15421 $as_echo "$ac_res" >&6; }
15424 as_val=`eval 'as_val=${'$as_ac_Header'}
15425                  $as_echo "$as_val"'`
15426    if test "x$as_val" = x""yes; then
15427   cat >>confdefs.h <<_ACEOF
15428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15429 _ACEOF
15433 done
15435     if test $ac_cv_header_locale_h = yes; then
15436     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
15437 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15438 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
15439   $as_echo_n "(cached) " >&6
15440 else
15441   cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 #include <locale.h>
15448 int
15449 main ()
15451 return LC_MESSAGES
15452   ;
15453   return 0;
15455 _ACEOF
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (ac_try="$ac_link"
15458 case "(($ac_try" in
15459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460   *) ac_try_echo=$ac_try;;
15461 esac
15462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464   (eval "$ac_link") 2>conftest.er1
15465   ac_status=$?
15466   grep -v '^ *+' conftest.er1 >conftest.err
15467   rm -f conftest.er1
15468   cat conftest.err >&5
15469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); } && {
15471          test -z "$ac_c_werror_flag" ||
15472          test ! -s conftest.err
15473        } && test -s conftest$ac_exeext && {
15474          test "$cross_compiling" = yes ||
15475          $as_test_x conftest$ac_exeext
15476        }; then
15477   am_cv_val_LC_MESSAGES=yes
15478 else
15479   $as_echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482         am_cv_val_LC_MESSAGES=no
15485 rm -rf conftest.dSYM
15486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15487       conftest$ac_exeext conftest.$ac_ext
15489 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
15490 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15491     if test $am_cv_val_LC_MESSAGES = yes; then
15493 cat >>confdefs.h <<\_ACEOF
15494 #define HAVE_LC_MESSAGES 1
15495 _ACEOF
15497     fi
15498   fi
15499      USE_NLS=yes
15502     gt_cv_have_gettext=no
15504     CATOBJEXT=NONE
15505     XGETTEXT=:
15506     INTLLIBS=
15508     if test "${ac_cv_header_libintl_h+set}" = set; then
15509   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
15510 $as_echo_n "checking for libintl.h... " >&6; }
15511 if test "${ac_cv_header_libintl_h+set}" = set; then
15512   $as_echo_n "(cached) " >&6
15514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15515 $as_echo "$ac_cv_header_libintl_h" >&6; }
15516 else
15517   # Is the header compilable?
15518 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
15519 $as_echo_n "checking libintl.h usability... " >&6; }
15520 cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h.  */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h.  */
15526 $ac_includes_default
15527 #include <libintl.h>
15528 _ACEOF
15529 rm -f conftest.$ac_objext
15530 if { (ac_try="$ac_compile"
15531 case "(($ac_try" in
15532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533   *) ac_try_echo=$ac_try;;
15534 esac
15535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15536 $as_echo "$ac_try_echo") >&5
15537   (eval "$ac_compile") 2>conftest.er1
15538   ac_status=$?
15539   grep -v '^ *+' conftest.er1 >conftest.err
15540   rm -f conftest.er1
15541   cat conftest.err >&5
15542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } && {
15544          test -z "$ac_c_werror_flag" ||
15545          test ! -s conftest.err
15546        } && test -s conftest.$ac_objext; then
15547   ac_header_compiler=yes
15548 else
15549   $as_echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15552         ac_header_compiler=no
15555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15557 $as_echo "$ac_header_compiler" >&6; }
15559 # Is the header present?
15560 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
15561 $as_echo_n "checking libintl.h presence... " >&6; }
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h.  */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h.  */
15568 #include <libintl.h>
15569 _ACEOF
15570 if { (ac_try="$ac_cpp conftest.$ac_ext"
15571 case "(($ac_try" in
15572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573   *) ac_try_echo=$ac_try;;
15574 esac
15575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15576 $as_echo "$ac_try_echo") >&5
15577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } >/dev/null && {
15584          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15585          test ! -s conftest.err
15586        }; then
15587   ac_header_preproc=yes
15588 else
15589   $as_echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592   ac_header_preproc=no
15595 rm -f conftest.err conftest.$ac_ext
15596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15597 $as_echo "$ac_header_preproc" >&6; }
15599 # So?  What about this header?
15600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15601   yes:no: )
15602     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15603 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15604     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
15605 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
15606     ac_header_preproc=yes
15607     ;;
15608   no:yes:* )
15609     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15610 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15611     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
15612 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
15613     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
15614 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
15615     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
15616 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15617     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15618 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
15619     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
15620 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
15622     ;;
15623 esac
15624 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
15625 $as_echo_n "checking for libintl.h... " >&6; }
15626 if test "${ac_cv_header_libintl_h+set}" = set; then
15627   $as_echo_n "(cached) " >&6
15628 else
15629   ac_cv_header_libintl_h=$ac_header_preproc
15631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15632 $as_echo "$ac_cv_header_libintl_h" >&6; }
15635 if test "x$ac_cv_header_libintl_h" = x""yes; then
15636   gt_cv_func_dgettext_libintl="no"
15637       libintl_extra_libs=""
15639       #
15640       # First check in libc
15641       #
15642       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
15643 $as_echo_n "checking for ngettext in libc... " >&6; }
15644 if test "${gt_cv_func_ngettext_libc+set}" = set; then
15645   $as_echo_n "(cached) " >&6
15646 else
15647   cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h.  */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h.  */
15654 #include <libintl.h>
15656 int
15657 main ()
15659 return !ngettext ("","", 1)
15660   ;
15661   return 0;
15663 _ACEOF
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (ac_try="$ac_link"
15666 case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15671 $as_echo "$ac_try_echo") >&5
15672   (eval "$ac_link") 2>conftest.er1
15673   ac_status=$?
15674   grep -v '^ *+' conftest.er1 >conftest.err
15675   rm -f conftest.er1
15676   cat conftest.err >&5
15677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); } && {
15679          test -z "$ac_c_werror_flag" ||
15680          test ! -s conftest.err
15681        } && test -s conftest$ac_exeext && {
15682          test "$cross_compiling" = yes ||
15683          $as_test_x conftest$ac_exeext
15684        }; then
15685   gt_cv_func_ngettext_libc=yes
15686 else
15687   $as_echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690         gt_cv_func_ngettext_libc=no
15693 rm -rf conftest.dSYM
15694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15695       conftest$ac_exeext conftest.$ac_ext
15698 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
15699 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
15701       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15702               { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
15703 $as_echo_n "checking for dgettext in libc... " >&6; }
15704 if test "${gt_cv_func_dgettext_libc+set}" = set; then
15705   $as_echo_n "(cached) " >&6
15706 else
15707   cat >conftest.$ac_ext <<_ACEOF
15708 /* confdefs.h.  */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h.  */
15714 #include <libintl.h>
15716 int
15717 main ()
15719 return !dgettext ("","")
15720   ;
15721   return 0;
15723 _ACEOF
15724 rm -f conftest.$ac_objext conftest$ac_exeext
15725 if { (ac_try="$ac_link"
15726 case "(($ac_try" in
15727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728   *) ac_try_echo=$ac_try;;
15729 esac
15730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15731 $as_echo "$ac_try_echo") >&5
15732   (eval "$ac_link") 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } && {
15739          test -z "$ac_c_werror_flag" ||
15740          test ! -s conftest.err
15741        } && test -s conftest$ac_exeext && {
15742          test "$cross_compiling" = yes ||
15743          $as_test_x conftest$ac_exeext
15744        }; then
15745   gt_cv_func_dgettext_libc=yes
15746 else
15747   $as_echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750         gt_cv_func_dgettext_libc=no
15753 rm -rf conftest.dSYM
15754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755       conftest$ac_exeext conftest.$ac_ext
15758 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
15759 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
15760       fi
15762       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15764 for ac_func in bind_textdomain_codeset
15766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15767 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15768 $as_echo_n "checking for $ac_func... " >&6; }
15769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15770   $as_echo_n "(cached) " >&6
15771 else
15772   cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15780 #define $ac_func innocuous_$ac_func
15782 /* System header to define __stub macros and hopefully few prototypes,
15783     which can conflict with char $ac_func (); below.
15784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15785     <limits.h> exists even on freestanding compilers.  */
15787 #ifdef __STDC__
15788 # include <limits.h>
15789 #else
15790 # include <assert.h>
15791 #endif
15793 #undef $ac_func
15795 /* Override any GCC internal prototype to avoid an error.
15796    Use char because int might match the return type of a GCC
15797    builtin and then its argument prototype would still apply.  */
15798 #ifdef __cplusplus
15799 extern "C"
15800 #endif
15801 char $ac_func ();
15802 /* The GNU C library defines this for functions which it implements
15803     to always fail with ENOSYS.  Some functions are actually named
15804     something starting with __ and the normal name is an alias.  */
15805 #if defined __stub_$ac_func || defined __stub___$ac_func
15806 choke me
15807 #endif
15809 int
15810 main ()
15812 return $ac_func ();
15813   ;
15814   return 0;
15816 _ACEOF
15817 rm -f conftest.$ac_objext conftest$ac_exeext
15818 if { (ac_try="$ac_link"
15819 case "(($ac_try" in
15820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821   *) ac_try_echo=$ac_try;;
15822 esac
15823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15824 $as_echo "$ac_try_echo") >&5
15825   (eval "$ac_link") 2>conftest.er1
15826   ac_status=$?
15827   grep -v '^ *+' conftest.er1 >conftest.err
15828   rm -f conftest.er1
15829   cat conftest.err >&5
15830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } && {
15832          test -z "$ac_c_werror_flag" ||
15833          test ! -s conftest.err
15834        } && test -s conftest$ac_exeext && {
15835          test "$cross_compiling" = yes ||
15836          $as_test_x conftest$ac_exeext
15837        }; then
15838   eval "$as_ac_var=yes"
15839 else
15840   $as_echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843         eval "$as_ac_var=no"
15846 rm -rf conftest.dSYM
15847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15848       conftest$ac_exeext conftest.$ac_ext
15850 ac_res=`eval 'as_val=${'$as_ac_var'}
15851                  $as_echo "$as_val"'`
15852                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15853 $as_echo "$ac_res" >&6; }
15854 as_val=`eval 'as_val=${'$as_ac_var'}
15855                  $as_echo "$as_val"'`
15856    if test "x$as_val" = x""yes; then
15857   cat >>confdefs.h <<_ACEOF
15858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15859 _ACEOF
15862 done
15864       fi
15866       #
15867       # If we don't have everything we want, check in libintl
15868       #
15869       if test "$gt_cv_func_dgettext_libc" != "yes" \
15870          || test "$gt_cv_func_ngettext_libc" != "yes" \
15871          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15873         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
15874 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
15875 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
15876   $as_echo_n "(cached) " >&6
15877 else
15878   ac_check_lib_save_LIBS=$LIBS
15879 LIBS="-lintl  $LIBS"
15880 cat >conftest.$ac_ext <<_ACEOF
15881 /* confdefs.h.  */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h.  */
15887 /* Override any GCC internal prototype to avoid an error.
15888    Use char because int might match the return type of a GCC
15889    builtin and then its argument prototype would still apply.  */
15890 #ifdef __cplusplus
15891 extern "C"
15892 #endif
15893 char bindtextdomain ();
15894 int
15895 main ()
15897 return bindtextdomain ();
15898   ;
15899   return 0;
15901 _ACEOF
15902 rm -f conftest.$ac_objext conftest$ac_exeext
15903 if { (ac_try="$ac_link"
15904 case "(($ac_try" in
15905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906   *) ac_try_echo=$ac_try;;
15907 esac
15908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909 $as_echo "$ac_try_echo") >&5
15910   (eval "$ac_link") 2>conftest.er1
15911   ac_status=$?
15912   grep -v '^ *+' conftest.er1 >conftest.err
15913   rm -f conftest.er1
15914   cat conftest.err >&5
15915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); } && {
15917          test -z "$ac_c_werror_flag" ||
15918          test ! -s conftest.err
15919        } && test -s conftest$ac_exeext && {
15920          test "$cross_compiling" = yes ||
15921          $as_test_x conftest$ac_exeext
15922        }; then
15923   ac_cv_lib_intl_bindtextdomain=yes
15924 else
15925   $as_echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928         ac_cv_lib_intl_bindtextdomain=no
15931 rm -rf conftest.dSYM
15932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15933       conftest$ac_exeext conftest.$ac_ext
15934 LIBS=$ac_check_lib_save_LIBS
15936 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
15937 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
15938 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
15939   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15940 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15941 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15942   $as_echo_n "(cached) " >&6
15943 else
15944   ac_check_lib_save_LIBS=$LIBS
15945 LIBS="-lintl  $LIBS"
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h.  */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h.  */
15953 /* Override any GCC internal prototype to avoid an error.
15954    Use char because int might match the return type of a GCC
15955    builtin and then its argument prototype would still apply.  */
15956 #ifdef __cplusplus
15957 extern "C"
15958 #endif
15959 char ngettext ();
15960 int
15961 main ()
15963 return ngettext ();
15964   ;
15965   return 0;
15967 _ACEOF
15968 rm -f conftest.$ac_objext conftest$ac_exeext
15969 if { (ac_try="$ac_link"
15970 case "(($ac_try" in
15971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972   *) ac_try_echo=$ac_try;;
15973 esac
15974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15975 $as_echo "$ac_try_echo") >&5
15976   (eval "$ac_link") 2>conftest.er1
15977   ac_status=$?
15978   grep -v '^ *+' conftest.er1 >conftest.err
15979   rm -f conftest.er1
15980   cat conftest.err >&5
15981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } && {
15983          test -z "$ac_c_werror_flag" ||
15984          test ! -s conftest.err
15985        } && test -s conftest$ac_exeext && {
15986          test "$cross_compiling" = yes ||
15987          $as_test_x conftest$ac_exeext
15988        }; then
15989   ac_cv_lib_intl_ngettext=yes
15990 else
15991   $as_echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994         ac_cv_lib_intl_ngettext=no
15997 rm -rf conftest.dSYM
15998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999       conftest$ac_exeext conftest.$ac_ext
16000 LIBS=$ac_check_lib_save_LIBS
16002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
16003 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16004 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
16005   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16006 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16007 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16008   $as_echo_n "(cached) " >&6
16009 else
16010   ac_check_lib_save_LIBS=$LIBS
16011 LIBS="-lintl  $LIBS"
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h.  */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h.  */
16019 /* Override any GCC internal prototype to avoid an error.
16020    Use char because int might match the return type of a GCC
16021    builtin and then its argument prototype would still apply.  */
16022 #ifdef __cplusplus
16023 extern "C"
16024 #endif
16025 char dgettext ();
16026 int
16027 main ()
16029 return dgettext ();
16030   ;
16031   return 0;
16033 _ACEOF
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038   *) ac_try_echo=$ac_try;;
16039 esac
16040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041 $as_echo "$ac_try_echo") >&5
16042   (eval "$ac_link") 2>conftest.er1
16043   ac_status=$?
16044   grep -v '^ *+' conftest.er1 >conftest.err
16045   rm -f conftest.er1
16046   cat conftest.err >&5
16047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); } && {
16049          test -z "$ac_c_werror_flag" ||
16050          test ! -s conftest.err
16051        } && test -s conftest$ac_exeext && {
16052          test "$cross_compiling" = yes ||
16053          $as_test_x conftest$ac_exeext
16054        }; then
16055   ac_cv_lib_intl_dgettext=yes
16056 else
16057   $as_echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060         ac_cv_lib_intl_dgettext=no
16063 rm -rf conftest.dSYM
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065       conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16068 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16069 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16070 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
16071   gt_cv_func_dgettext_libintl=yes
16079         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
16080           { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
16081 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
16082           { $as_echo "$as_me:$LINENO: result: " >&5
16083 $as_echo "" >&6; }
16084           { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
16085 $as_echo_n "checking for ngettext in -lintl... " >&6; }
16086 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
16087   $as_echo_n "(cached) " >&6
16088 else
16089   ac_check_lib_save_LIBS=$LIBS
16090 LIBS="-lintl -liconv $LIBS"
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h.  */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h.  */
16098 /* Override any GCC internal prototype to avoid an error.
16099    Use char because int might match the return type of a GCC
16100    builtin and then its argument prototype would still apply.  */
16101 #ifdef __cplusplus
16102 extern "C"
16103 #endif
16104 char ngettext ();
16105 int
16106 main ()
16108 return ngettext ();
16109   ;
16110   return 0;
16112 _ACEOF
16113 rm -f conftest.$ac_objext conftest$ac_exeext
16114 if { (ac_try="$ac_link"
16115 case "(($ac_try" in
16116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117   *) ac_try_echo=$ac_try;;
16118 esac
16119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16120 $as_echo "$ac_try_echo") >&5
16121   (eval "$ac_link") 2>conftest.er1
16122   ac_status=$?
16123   grep -v '^ *+' conftest.er1 >conftest.err
16124   rm -f conftest.er1
16125   cat conftest.err >&5
16126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); } && {
16128          test -z "$ac_c_werror_flag" ||
16129          test ! -s conftest.err
16130        } && test -s conftest$ac_exeext && {
16131          test "$cross_compiling" = yes ||
16132          $as_test_x conftest$ac_exeext
16133        }; then
16134   ac_cv_lib_intl_ngettext=yes
16135 else
16136   $as_echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139         ac_cv_lib_intl_ngettext=no
16142 rm -rf conftest.dSYM
16143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16144       conftest$ac_exeext conftest.$ac_ext
16145 LIBS=$ac_check_lib_save_LIBS
16147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
16148 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16149 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
16150   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
16151 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
16152 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
16153   $as_echo_n "(cached) " >&6
16154 else
16155   ac_check_lib_save_LIBS=$LIBS
16156 LIBS="-lintl -liconv $LIBS"
16157 cat >conftest.$ac_ext <<_ACEOF
16158 /* confdefs.h.  */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h.  */
16164 /* Override any GCC internal prototype to avoid an error.
16165    Use char because int might match the return type of a GCC
16166    builtin and then its argument prototype would still apply.  */
16167 #ifdef __cplusplus
16168 extern "C"
16169 #endif
16170 char dcgettext ();
16171 int
16172 main ()
16174 return dcgettext ();
16175   ;
16176   return 0;
16178 _ACEOF
16179 rm -f conftest.$ac_objext conftest$ac_exeext
16180 if { (ac_try="$ac_link"
16181 case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186 $as_echo "$ac_try_echo") >&5
16187   (eval "$ac_link") 2>conftest.er1
16188   ac_status=$?
16189   grep -v '^ *+' conftest.er1 >conftest.err
16190   rm -f conftest.er1
16191   cat conftest.err >&5
16192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); } && {
16194          test -z "$ac_c_werror_flag" ||
16195          test ! -s conftest.err
16196        } && test -s conftest$ac_exeext && {
16197          test "$cross_compiling" = yes ||
16198          $as_test_x conftest$ac_exeext
16199        }; then
16200   ac_cv_lib_intl_dcgettext=yes
16201 else
16202   $as_echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205         ac_cv_lib_intl_dcgettext=no
16208 rm -rf conftest.dSYM
16209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16210       conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_lib_save_LIBS
16213 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
16214 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
16215 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
16216   gt_cv_func_dgettext_libintl=yes
16217                         libintl_extra_libs=-liconv
16218 else
16219   :
16222 else
16223   :
16226         fi
16228         #
16229         # If we found libintl, then check in it for bind_textdomain_codeset();
16230         # we'll prefer libc if neither have bind_textdomain_codeset(),
16231         # and both have dgettext and ngettext
16232         #
16233         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
16234           glib_save_LIBS="$LIBS"
16235           LIBS="$LIBS -lintl $libintl_extra_libs"
16236           unset ac_cv_func_bind_textdomain_codeset
16238 for ac_func in bind_textdomain_codeset
16240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16241 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16242 $as_echo_n "checking for $ac_func... " >&6; }
16243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16244   $as_echo_n "(cached) " >&6
16245 else
16246   cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16254 #define $ac_func innocuous_$ac_func
16256 /* System header to define __stub macros and hopefully few prototypes,
16257     which can conflict with char $ac_func (); below.
16258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16259     <limits.h> exists even on freestanding compilers.  */
16261 #ifdef __STDC__
16262 # include <limits.h>
16263 #else
16264 # include <assert.h>
16265 #endif
16267 #undef $ac_func
16269 /* Override any GCC internal prototype to avoid an error.
16270    Use char because int might match the return type of a GCC
16271    builtin and then its argument prototype would still apply.  */
16272 #ifdef __cplusplus
16273 extern "C"
16274 #endif
16275 char $ac_func ();
16276 /* The GNU C library defines this for functions which it implements
16277     to always fail with ENOSYS.  Some functions are actually named
16278     something starting with __ and the normal name is an alias.  */
16279 #if defined __stub_$ac_func || defined __stub___$ac_func
16280 choke me
16281 #endif
16283 int
16284 main ()
16286 return $ac_func ();
16287   ;
16288   return 0;
16290 _ACEOF
16291 rm -f conftest.$ac_objext conftest$ac_exeext
16292 if { (ac_try="$ac_link"
16293 case "(($ac_try" in
16294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295   *) ac_try_echo=$ac_try;;
16296 esac
16297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16298 $as_echo "$ac_try_echo") >&5
16299   (eval "$ac_link") 2>conftest.er1
16300   ac_status=$?
16301   grep -v '^ *+' conftest.er1 >conftest.err
16302   rm -f conftest.er1
16303   cat conftest.err >&5
16304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); } && {
16306          test -z "$ac_c_werror_flag" ||
16307          test ! -s conftest.err
16308        } && test -s conftest$ac_exeext && {
16309          test "$cross_compiling" = yes ||
16310          $as_test_x conftest$ac_exeext
16311        }; then
16312   eval "$as_ac_var=yes"
16313 else
16314   $as_echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317         eval "$as_ac_var=no"
16320 rm -rf conftest.dSYM
16321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16322       conftest$ac_exeext conftest.$ac_ext
16324 ac_res=`eval 'as_val=${'$as_ac_var'}
16325                  $as_echo "$as_val"'`
16326                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16327 $as_echo "$ac_res" >&6; }
16328 as_val=`eval 'as_val=${'$as_ac_var'}
16329                  $as_echo "$as_val"'`
16330    if test "x$as_val" = x""yes; then
16331   cat >>confdefs.h <<_ACEOF
16332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16333 _ACEOF
16336 done
16338           LIBS="$glib_save_LIBS"
16340           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
16341             gt_cv_func_dgettext_libc=no
16342           else
16343             if test "$gt_cv_func_dgettext_libc" = "yes" \
16344                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
16345               gt_cv_func_dgettext_libintl=no
16346             fi
16347           fi
16348         fi
16349       fi
16351       if test "$gt_cv_func_dgettext_libc" = "yes" \
16352         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
16353         gt_cv_have_gettext=yes
16354       fi
16356       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
16357         INTLLIBS="-lintl $libintl_extra_libs"
16358       fi
16360       if test "$gt_cv_have_gettext" = "yes"; then
16362 cat >>confdefs.h <<\_ACEOF
16363 #define HAVE_GETTEXT 1
16364 _ACEOF
16366         # Extract the first word of "msgfmt", so it can be a program name with args.
16367 set dummy msgfmt; ac_word=$2
16368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16369 $as_echo_n "checking for $ac_word... " >&6; }
16370 if test "${ac_cv_path_MSGFMT+set}" = set; then
16371   $as_echo_n "(cached) " >&6
16372 else
16373   case "$MSGFMT" in
16374   /*)
16375   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16376   ;;
16377   *)
16378   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16379   for ac_dir in $PATH; do
16380     test -z "$ac_dir" && ac_dir=.
16381     if test -f $ac_dir/$ac_word; then
16382       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16383         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16384         break
16385       fi
16386     fi
16387   done
16388   IFS="$ac_save_ifs"
16389   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
16390   ;;
16391 esac
16393 MSGFMT="$ac_cv_path_MSGFMT"
16394 if test "$MSGFMT" != "no"; then
16395   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16396 $as_echo "$MSGFMT" >&6; }
16397 else
16398   { $as_echo "$as_me:$LINENO: result: no" >&5
16399 $as_echo "no" >&6; }
16401         if test "$MSGFMT" != "no"; then
16402           glib_save_LIBS="$LIBS"
16403           LIBS="$LIBS $INTLLIBS"
16405 for ac_func in dcgettext
16407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16408 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16409 $as_echo_n "checking for $ac_func... " >&6; }
16410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16411   $as_echo_n "(cached) " >&6
16412 else
16413   cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h.  */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h.  */
16419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16421 #define $ac_func innocuous_$ac_func
16423 /* System header to define __stub macros and hopefully few prototypes,
16424     which can conflict with char $ac_func (); below.
16425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16426     <limits.h> exists even on freestanding compilers.  */
16428 #ifdef __STDC__
16429 # include <limits.h>
16430 #else
16431 # include <assert.h>
16432 #endif
16434 #undef $ac_func
16436 /* Override any GCC internal prototype to avoid an error.
16437    Use char because int might match the return type of a GCC
16438    builtin and then its argument prototype would still apply.  */
16439 #ifdef __cplusplus
16440 extern "C"
16441 #endif
16442 char $ac_func ();
16443 /* The GNU C library defines this for functions which it implements
16444     to always fail with ENOSYS.  Some functions are actually named
16445     something starting with __ and the normal name is an alias.  */
16446 #if defined __stub_$ac_func || defined __stub___$ac_func
16447 choke me
16448 #endif
16450 int
16451 main ()
16453 return $ac_func ();
16454   ;
16455   return 0;
16457 _ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (ac_try="$ac_link"
16460 case "(($ac_try" in
16461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462   *) ac_try_echo=$ac_try;;
16463 esac
16464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16465 $as_echo "$ac_try_echo") >&5
16466   (eval "$ac_link") 2>conftest.er1
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
16470   cat conftest.err >&5
16471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } && {
16473          test -z "$ac_c_werror_flag" ||
16474          test ! -s conftest.err
16475        } && test -s conftest$ac_exeext && {
16476          test "$cross_compiling" = yes ||
16477          $as_test_x conftest$ac_exeext
16478        }; then
16479   eval "$as_ac_var=yes"
16480 else
16481   $as_echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16484         eval "$as_ac_var=no"
16487 rm -rf conftest.dSYM
16488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16489       conftest$ac_exeext conftest.$ac_ext
16491 ac_res=`eval 'as_val=${'$as_ac_var'}
16492                  $as_echo "$as_val"'`
16493                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16494 $as_echo "$ac_res" >&6; }
16495 as_val=`eval 'as_val=${'$as_ac_var'}
16496                  $as_echo "$as_val"'`
16497    if test "x$as_val" = x""yes; then
16498   cat >>confdefs.h <<_ACEOF
16499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16500 _ACEOF
16503 done
16505           MSGFMT_OPTS=
16506           { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
16507 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
16508           cat >conftest.foo <<_ACEOF
16510 msgid ""
16511 msgstr ""
16512 "Content-Type: text/plain; charset=UTF-8\n"
16513 "Project-Id-Version: test 1.0\n"
16514 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
16515 "Last-Translator: test <foo@bar.xx>\n"
16516 "Language-Team: C <LL@li.org>\n"
16517 "MIME-Version: 1.0\n"
16518 "Content-Transfer-Encoding: 8bit\n"
16520 _ACEOF
16521 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
16522   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
16523   ac_status=$?
16524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); }; then
16526   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
16527 $as_echo "yes" >&6; }
16528 else { $as_echo "$as_me:$LINENO: result: no" >&5
16529 $as_echo "no" >&6; }
16530 echo "$as_me: failed input was:" >&5
16531 sed 's/^/| /' conftest.foo >&5
16534           # Extract the first word of "gmsgfmt", so it can be a program name with args.
16535 set dummy gmsgfmt; ac_word=$2
16536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16537 $as_echo_n "checking for $ac_word... " >&6; }
16538 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16539   $as_echo_n "(cached) " >&6
16540 else
16541   case $GMSGFMT in
16542   [\\/]* | ?:[\\/]*)
16543   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16544   ;;
16545   *)
16546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547 for as_dir in $PATH
16549   IFS=$as_save_IFS
16550   test -z "$as_dir" && as_dir=.
16551   for ac_exec_ext in '' $ac_executable_extensions; do
16552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16553     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16554     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16555     break 2
16556   fi
16557 done
16558 done
16559 IFS=$as_save_IFS
16561   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16562   ;;
16563 esac
16565 GMSGFMT=$ac_cv_path_GMSGFMT
16566 if test -n "$GMSGFMT"; then
16567   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16568 $as_echo "$GMSGFMT" >&6; }
16569 else
16570   { $as_echo "$as_me:$LINENO: result: no" >&5
16571 $as_echo "no" >&6; }
16575           # Extract the first word of "xgettext", so it can be a program name with args.
16576 set dummy xgettext; ac_word=$2
16577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16578 $as_echo_n "checking for $ac_word... " >&6; }
16579 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16580   $as_echo_n "(cached) " >&6
16581 else
16582   case "$XGETTEXT" in
16583   /*)
16584   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16585   ;;
16586   *)
16587   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16588   for ac_dir in $PATH; do
16589     test -z "$ac_dir" && ac_dir=.
16590     if test -f $ac_dir/$ac_word; then
16591       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
16592         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16593         break
16594       fi
16595     fi
16596   done
16597   IFS="$ac_save_ifs"
16598   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16599   ;;
16600 esac
16602 XGETTEXT="$ac_cv_path_XGETTEXT"
16603 if test "$XGETTEXT" != ":"; then
16604   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16605 $as_echo "$XGETTEXT" >&6; }
16606 else
16607   { $as_echo "$as_me:$LINENO: result: no" >&5
16608 $as_echo "no" >&6; }
16611           cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h.  */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h.  */
16618 int
16619 main ()
16621 extern int _nl_msg_cat_cntr;
16622                          return _nl_msg_cat_cntr
16623   ;
16624   return 0;
16626 _ACEOF
16627 rm -f conftest.$ac_objext conftest$ac_exeext
16628 if { (ac_try="$ac_link"
16629 case "(($ac_try" in
16630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631   *) ac_try_echo=$ac_try;;
16632 esac
16633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16634 $as_echo "$ac_try_echo") >&5
16635   (eval "$ac_link") 2>conftest.er1
16636   ac_status=$?
16637   grep -v '^ *+' conftest.er1 >conftest.err
16638   rm -f conftest.er1
16639   cat conftest.err >&5
16640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); } && {
16642          test -z "$ac_c_werror_flag" ||
16643          test ! -s conftest.err
16644        } && test -s conftest$ac_exeext && {
16645          test "$cross_compiling" = yes ||
16646          $as_test_x conftest$ac_exeext
16647        }; then
16648   CATOBJEXT=.gmo
16649              DATADIRNAME=share
16650 else
16651   $as_echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654         case $host in
16655             *-*-solaris*)
16656                                                                 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
16657 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
16658 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
16659   $as_echo_n "(cached) " >&6
16660 else
16661   cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h.  */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h.  */
16667 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
16668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16669 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
16671 /* System header to define __stub macros and hopefully few prototypes,
16672     which can conflict with char bind_textdomain_codeset (); below.
16673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16674     <limits.h> exists even on freestanding compilers.  */
16676 #ifdef __STDC__
16677 # include <limits.h>
16678 #else
16679 # include <assert.h>
16680 #endif
16682 #undef bind_textdomain_codeset
16684 /* Override any GCC internal prototype to avoid an error.
16685    Use char because int might match the return type of a GCC
16686    builtin and then its argument prototype would still apply.  */
16687 #ifdef __cplusplus
16688 extern "C"
16689 #endif
16690 char bind_textdomain_codeset ();
16691 /* The GNU C library defines this for functions which it implements
16692     to always fail with ENOSYS.  Some functions are actually named
16693     something starting with __ and the normal name is an alias.  */
16694 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
16695 choke me
16696 #endif
16698 int
16699 main ()
16701 return bind_textdomain_codeset ();
16702   ;
16703   return 0;
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714   (eval "$ac_link") 2>conftest.er1
16715   ac_status=$?
16716   grep -v '^ *+' conftest.er1 >conftest.err
16717   rm -f conftest.er1
16718   cat conftest.err >&5
16719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } && {
16721          test -z "$ac_c_werror_flag" ||
16722          test ! -s conftest.err
16723        } && test -s conftest$ac_exeext && {
16724          test "$cross_compiling" = yes ||
16725          $as_test_x conftest$ac_exeext
16726        }; then
16727   ac_cv_func_bind_textdomain_codeset=yes
16728 else
16729   $as_echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16732         ac_cv_func_bind_textdomain_codeset=no
16735 rm -rf conftest.dSYM
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737       conftest$ac_exeext conftest.$ac_ext
16739 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
16740 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
16741 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
16742   CATOBJEXT=.gmo
16743                DATADIRNAME=share
16744 else
16745   CATOBJEXT=.mo
16746                DATADIRNAME=lib
16749             ;;
16750             *)
16751             CATOBJEXT=.mo
16752             DATADIRNAME=lib
16753             ;;
16754             esac
16757 rm -rf conftest.dSYM
16758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16759       conftest$ac_exeext conftest.$ac_ext
16760           LIBS="$glib_save_LIBS"
16761           INSTOBJEXT=.mo
16762         else
16763           gt_cv_have_gettext=no
16764         fi
16765       fi
16771     if test "$gt_cv_have_gettext" = "yes" ; then
16773 cat >>confdefs.h <<\_ACEOF
16774 #define ENABLE_NLS 1
16775 _ACEOF
16777     fi
16779         if test "$XGETTEXT" != ":"; then
16780                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
16781         : ;
16782       else
16783         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16784 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16785         XGETTEXT=":"
16786       fi
16787     fi
16789     # We need to process the po/ directory.
16790     POSUB=po
16792     ac_config_commands="$ac_config_commands default-1"
16795                 for lang in $ALL_LINGUAS; do
16796       GMOFILES="$GMOFILES $lang.gmo"
16797       POFILES="$POFILES $lang.po"
16798     done
16812    if test "$gt_cv_have_gettext" = "yes"; then
16813      if test "x$ALL_LINGUAS" = "x"; then
16814        LINGUAS=
16815      else
16816        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
16817 $as_echo_n "checking for catalogs to be installed... " >&6; }
16818        NEW_LINGUAS=
16819        for presentlang in $ALL_LINGUAS; do
16820          useit=no
16821          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
16822            desiredlanguages="$LINGUAS"
16823          else
16824            desiredlanguages="$ALL_LINGUAS"
16825          fi
16826          for desiredlang in $desiredlanguages; do
16827            # Use the presentlang catalog if desiredlang is
16828            #   a. equal to presentlang, or
16829            #   b. a variant of presentlang (because in this case,
16830            #      presentlang can be used as a fallback for messages
16831            #      which are not translated in the desiredlang catalog).
16832            case "$desiredlang" in
16833              "$presentlang"*) useit=yes;;
16834            esac
16835          done
16836          if test $useit = yes; then
16837            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16838          fi
16839        done
16840        LINGUAS=$NEW_LINGUAS
16841        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
16842 $as_echo "$LINGUAS" >&6; }
16843      fi
16845           if test -n "$LINGUAS"; then
16846        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16847      fi
16848    fi
16850             MKINSTALLDIRS=
16851    if test -n "$ac_aux_dir"; then
16852      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16853    fi
16854    if test -z "$MKINSTALLDIRS"; then
16855      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16856    fi
16859          test -d po || mkdir po
16860    if test "x$srcdir" != "x."; then
16861      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
16862        posrcprefix="$srcdir/"
16863      else
16864        posrcprefix="../$srcdir/"
16865      fi
16866    else
16867      posrcprefix="../"
16868    fi
16869    rm -f po/POTFILES
16870    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
16871         < $srcdir/po/POTFILES.in > po/POTFILES
16874 # Check whether --enable-libintl was given.
16875 if test "${enable_libintl+set}" = set; then
16876   enableval=$enable_libintl;
16877 else
16878   enable_libintl=yes
16882 if test x$enable_libintl = xyes; then
16884   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16885 $as_echo_n "checking whether NLS is requested... " >&6; }
16886     # Check whether --enable-nls was given.
16887 if test "${enable_nls+set}" = set; then
16888   enableval=$enable_nls; USE_NLS=$enableval
16889 else
16890   USE_NLS=yes
16893   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16894 $as_echo "$USE_NLS" >&6; }
16899 case "$am__api_version" in
16900     1.01234)
16901         { { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
16902 $as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
16903    { (exit 1); exit 1; }; }
16904     ;;
16905     *)
16906     ;;
16907 esac
16909 if test -n "0.35.0"; then
16910     { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
16911 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
16913     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16914     INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
16915     INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16917     { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
16918 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
16919     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
16920         { { $as_echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
16921 $as_echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
16922    { (exit 1); exit 1; }; }
16925 # Extract the first word of "intltool-update", so it can be a program name with args.
16926 set dummy intltool-update; ac_word=$2
16927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16928 $as_echo_n "checking for $ac_word... " >&6; }
16929 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
16930   $as_echo_n "(cached) " >&6
16931 else
16932   case $INTLTOOL_UPDATE in
16933   [\\/]* | ?:[\\/]*)
16934   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
16935   ;;
16936   *)
16937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16938 for as_dir in $PATH
16940   IFS=$as_save_IFS
16941   test -z "$as_dir" && as_dir=.
16942   for ac_exec_ext in '' $ac_executable_extensions; do
16943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16944     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
16945     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16946     break 2
16947   fi
16948 done
16949 done
16950 IFS=$as_save_IFS
16952   ;;
16953 esac
16955 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
16956 if test -n "$INTLTOOL_UPDATE"; then
16957   { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
16958 $as_echo "$INTLTOOL_UPDATE" >&6; }
16959 else
16960   { $as_echo "$as_me:$LINENO: result: no" >&5
16961 $as_echo "no" >&6; }
16965 # Extract the first word of "intltool-merge", so it can be a program name with args.
16966 set dummy intltool-merge; ac_word=$2
16967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16968 $as_echo_n "checking for $ac_word... " >&6; }
16969 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
16970   $as_echo_n "(cached) " >&6
16971 else
16972   case $INTLTOOL_MERGE in
16973   [\\/]* | ?:[\\/]*)
16974   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
16975   ;;
16976   *)
16977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16978 for as_dir in $PATH
16980   IFS=$as_save_IFS
16981   test -z "$as_dir" && as_dir=.
16982   for ac_exec_ext in '' $ac_executable_extensions; do
16983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16984     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
16985     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16986     break 2
16987   fi
16988 done
16989 done
16990 IFS=$as_save_IFS
16992   ;;
16993 esac
16995 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
16996 if test -n "$INTLTOOL_MERGE"; then
16997   { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
16998 $as_echo "$INTLTOOL_MERGE" >&6; }
16999 else
17000   { $as_echo "$as_me:$LINENO: result: no" >&5
17001 $as_echo "no" >&6; }
17005 # Extract the first word of "intltool-extract", so it can be a program name with args.
17006 set dummy intltool-extract; ac_word=$2
17007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17008 $as_echo_n "checking for $ac_word... " >&6; }
17009 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
17010   $as_echo_n "(cached) " >&6
17011 else
17012   case $INTLTOOL_EXTRACT in
17013   [\\/]* | ?:[\\/]*)
17014   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
17015   ;;
17016   *)
17017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17018 for as_dir in $PATH
17020   IFS=$as_save_IFS
17021   test -z "$as_dir" && as_dir=.
17022   for ac_exec_ext in '' $ac_executable_extensions; do
17023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17024     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
17025     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17026     break 2
17027   fi
17028 done
17029 done
17030 IFS=$as_save_IFS
17032   ;;
17033 esac
17035 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
17036 if test -n "$INTLTOOL_EXTRACT"; then
17037   { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
17038 $as_echo "$INTLTOOL_EXTRACT" >&6; }
17039 else
17040   { $as_echo "$as_me:$LINENO: result: no" >&5
17041 $as_echo "no" >&6; }
17045 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
17046     { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
17047 $as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
17048    { (exit 1); exit 1; }; }
17051   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 $< $@'
17052 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 $< $@'
17053      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 $< $@'
17054      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 $< $@'
17055       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
17056      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 $< $@'
17057    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 $< $@'
17058     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 $< $@'
17059 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 $< $@'
17060        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 $< $@'
17061       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 $< $@'
17062       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
17063       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 $< $@'
17064       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 $< $@'
17065     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 $< $@'
17066   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 $< $@'
17067     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 $< $@'
17068     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 $< $@'
17069    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 $< $@'
17167 # Check the gettext tools to make sure they are GNU
17168 # Extract the first word of "xgettext", so it can be a program name with args.
17169 set dummy xgettext; ac_word=$2
17170 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17171 $as_echo_n "checking for $ac_word... " >&6; }
17172 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17173   $as_echo_n "(cached) " >&6
17174 else
17175   case $XGETTEXT in
17176   [\\/]* | ?:[\\/]*)
17177   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17178   ;;
17179   *)
17180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181 for as_dir in $PATH
17183   IFS=$as_save_IFS
17184   test -z "$as_dir" && as_dir=.
17185   for ac_exec_ext in '' $ac_executable_extensions; do
17186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17187     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
17188     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17189     break 2
17190   fi
17191 done
17192 done
17193 IFS=$as_save_IFS
17195   ;;
17196 esac
17198 XGETTEXT=$ac_cv_path_XGETTEXT
17199 if test -n "$XGETTEXT"; then
17200   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17201 $as_echo "$XGETTEXT" >&6; }
17202 else
17203   { $as_echo "$as_me:$LINENO: result: no" >&5
17204 $as_echo "no" >&6; }
17208 # Extract the first word of "msgmerge", so it can be a program name with args.
17209 set dummy msgmerge; ac_word=$2
17210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17211 $as_echo_n "checking for $ac_word... " >&6; }
17212 if test "${ac_cv_path_MSGMERGE+set}" = set; then
17213   $as_echo_n "(cached) " >&6
17214 else
17215   case $MSGMERGE in
17216   [\\/]* | ?:[\\/]*)
17217   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17218   ;;
17219   *)
17220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221 for as_dir in $PATH
17223   IFS=$as_save_IFS
17224   test -z "$as_dir" && as_dir=.
17225   for ac_exec_ext in '' $ac_executable_extensions; do
17226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17227     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
17228     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17229     break 2
17230   fi
17231 done
17232 done
17233 IFS=$as_save_IFS
17235   ;;
17236 esac
17238 MSGMERGE=$ac_cv_path_MSGMERGE
17239 if test -n "$MSGMERGE"; then
17240   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17241 $as_echo "$MSGMERGE" >&6; }
17242 else
17243   { $as_echo "$as_me:$LINENO: result: no" >&5
17244 $as_echo "no" >&6; }
17248 # Extract the first word of "msgfmt", so it can be a program name with args.
17249 set dummy msgfmt; ac_word=$2
17250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17251 $as_echo_n "checking for $ac_word... " >&6; }
17252 if test "${ac_cv_path_MSGFMT+set}" = set; then
17253   $as_echo_n "(cached) " >&6
17254 else
17255   case $MSGFMT in
17256   [\\/]* | ?:[\\/]*)
17257   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17258   ;;
17259   *)
17260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17263   IFS=$as_save_IFS
17264   test -z "$as_dir" && as_dir=.
17265   for ac_exec_ext in '' $ac_executable_extensions; do
17266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17267     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17268     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17269     break 2
17270   fi
17271 done
17272 done
17273 IFS=$as_save_IFS
17275   ;;
17276 esac
17278 MSGFMT=$ac_cv_path_MSGFMT
17279 if test -n "$MSGFMT"; then
17280   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
17281 $as_echo "$MSGFMT" >&6; }
17282 else
17283   { $as_echo "$as_me:$LINENO: result: no" >&5
17284 $as_echo "no" >&6; }
17288 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17289 set dummy gmsgfmt; ac_word=$2
17290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17291 $as_echo_n "checking for $ac_word... " >&6; }
17292 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17293   $as_echo_n "(cached) " >&6
17294 else
17295   case $GMSGFMT in
17296   [\\/]* | ?:[\\/]*)
17297   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17298   ;;
17299   *)
17300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17301 for as_dir in $PATH
17303   IFS=$as_save_IFS
17304   test -z "$as_dir" && as_dir=.
17305   for ac_exec_ext in '' $ac_executable_extensions; do
17306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17307     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17308     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17309     break 2
17310   fi
17311 done
17312 done
17313 IFS=$as_save_IFS
17315   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17316   ;;
17317 esac
17319 GMSGFMT=$ac_cv_path_GMSGFMT
17320 if test -n "$GMSGFMT"; then
17321   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17322 $as_echo "$GMSGFMT" >&6; }
17323 else
17324   { $as_echo "$as_me:$LINENO: result: no" >&5
17325 $as_echo "no" >&6; }
17329 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
17330     { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
17331 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
17332    { (exit 1); exit 1; }; }
17334 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
17335 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
17336 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
17337 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
17338     { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
17339 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
17340    { (exit 1); exit 1; }; }
17343 # Extract the first word of "perl", so it can be a program name with args.
17344 set dummy perl; ac_word=$2
17345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17346 $as_echo_n "checking for $ac_word... " >&6; }
17347 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
17348   $as_echo_n "(cached) " >&6
17349 else
17350   case $INTLTOOL_PERL in
17351   [\\/]* | ?:[\\/]*)
17352   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
17353   ;;
17354   *)
17355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17356 for as_dir in $PATH
17358   IFS=$as_save_IFS
17359   test -z "$as_dir" && as_dir=.
17360   for ac_exec_ext in '' $ac_executable_extensions; do
17361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17362     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
17363     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17364     break 2
17365   fi
17366 done
17367 done
17368 IFS=$as_save_IFS
17370   ;;
17371 esac
17373 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
17374 if test -n "$INTLTOOL_PERL"; then
17375   { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
17376 $as_echo "$INTLTOOL_PERL" >&6; }
17377 else
17378   { $as_echo "$as_me:$LINENO: result: no" >&5
17379 $as_echo "no" >&6; }
17383 if test -z "$INTLTOOL_PERL"; then
17384    { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
17385 $as_echo "$as_me: error: perl not found" >&2;}
17386    { (exit 1); exit 1; }; }
17388 { $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
17389 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
17390 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
17391 if test $? -ne 0; then
17392    { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
17393 $as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
17394    { (exit 1); exit 1; }; }
17395 else
17396    IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
17397    { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
17398 $as_echo "$IT_PERL_VERSION" >&6; }
17400 if test "xno-xml" != "xno-xml"; then
17401    { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
17402 $as_echo_n "checking for XML::Parser... " >&6; }
17403    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
17404        { $as_echo "$as_me:$LINENO: result: ok" >&5
17405 $as_echo "ok" >&6; }
17406    else
17407        { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
17408 $as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
17409    { (exit 1); exit 1; }; }
17410    fi
17413 # Substitute ALL_LINGUAS so we can use it in po/Makefile
17416 # Set DATADIRNAME correctly if it is not set yet
17417 # (copied from glib-gettext.m4)
17418 if test -z "$DATADIRNAME"; then
17419   cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h.  */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h.  */
17426 int
17427 main ()
17429 extern int _nl_msg_cat_cntr;
17430                        return _nl_msg_cat_cntr
17431   ;
17432   return 0;
17434 _ACEOF
17435 rm -f conftest.$ac_objext conftest$ac_exeext
17436 if { (ac_try="$ac_link"
17437 case "(($ac_try" in
17438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439   *) ac_try_echo=$ac_try;;
17440 esac
17441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17442 $as_echo "$ac_try_echo") >&5
17443   (eval "$ac_link") 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } && {
17450          test -z "$ac_c_werror_flag" ||
17451          test ! -s conftest.err
17452        } && test -s conftest$ac_exeext && {
17453          test "$cross_compiling" = yes ||
17454          $as_test_x conftest$ac_exeext
17455        }; then
17456   DATADIRNAME=share
17457 else
17458   $as_echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461         case $host in
17462     *-*-solaris*)
17463                         { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
17464 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
17465 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
17466   $as_echo_n "(cached) " >&6
17467 else
17468   cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
17475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17476 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
17478 /* System header to define __stub macros and hopefully few prototypes,
17479     which can conflict with char bind_textdomain_codeset (); below.
17480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481     <limits.h> exists even on freestanding compilers.  */
17483 #ifdef __STDC__
17484 # include <limits.h>
17485 #else
17486 # include <assert.h>
17487 #endif
17489 #undef bind_textdomain_codeset
17491 /* Override any GCC internal prototype to avoid an error.
17492    Use char because int might match the return type of a GCC
17493    builtin and then its argument prototype would still apply.  */
17494 #ifdef __cplusplus
17495 extern "C"
17496 #endif
17497 char bind_textdomain_codeset ();
17498 /* The GNU C library defines this for functions which it implements
17499     to always fail with ENOSYS.  Some functions are actually named
17500     something starting with __ and the normal name is an alias.  */
17501 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
17502 choke me
17503 #endif
17505 int
17506 main ()
17508 return bind_textdomain_codeset ();
17509   ;
17510   return 0;
17512 _ACEOF
17513 rm -f conftest.$ac_objext conftest$ac_exeext
17514 if { (ac_try="$ac_link"
17515 case "(($ac_try" in
17516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517   *) ac_try_echo=$ac_try;;
17518 esac
17519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17520 $as_echo "$ac_try_echo") >&5
17521   (eval "$ac_link") 2>conftest.er1
17522   ac_status=$?
17523   grep -v '^ *+' conftest.er1 >conftest.err
17524   rm -f conftest.er1
17525   cat conftest.err >&5
17526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } && {
17528          test -z "$ac_c_werror_flag" ||
17529          test ! -s conftest.err
17530        } && test -s conftest$ac_exeext && {
17531          test "$cross_compiling" = yes ||
17532          $as_test_x conftest$ac_exeext
17533        }; then
17534   ac_cv_func_bind_textdomain_codeset=yes
17535 else
17536   $as_echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17539         ac_cv_func_bind_textdomain_codeset=no
17542 rm -rf conftest.dSYM
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544       conftest$ac_exeext conftest.$ac_ext
17546 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
17547 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
17548 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
17549   DATADIRNAME=share
17550 else
17551   DATADIRNAME=lib
17554     ;;
17555     *)
17556     DATADIRNAME=lib
17557     ;;
17558     esac
17561 rm -rf conftest.dSYM
17562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563       conftest$ac_exeext conftest.$ac_ext
17572 if test x$enable_libintl = xyes -a x$MSGFMT = xno; then
17573   { $as_echo "$as_me:$LINENO: WARNING: I could not find msgfmt. Diabeling libintl build." >&5
17574 $as_echo "$as_me: WARNING: I could not find msgfmt. Diabeling libintl build." >&2;}
17575   enable_libintl=no
17578 if test x$enable_libintl = xyes; then
17580 for ac_header in libintl.h
17582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17584   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17585 $as_echo_n "checking for $ac_header... " >&6; }
17586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17587   $as_echo_n "(cached) " >&6
17589 ac_res=`eval 'as_val=${'$as_ac_Header'}
17590                  $as_echo "$as_val"'`
17591                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17592 $as_echo "$ac_res" >&6; }
17593 else
17594   # Is the header compilable?
17595 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17596 $as_echo_n "checking $ac_header usability... " >&6; }
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h.  */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h.  */
17603 $ac_includes_default
17604 #include <$ac_header>
17605 _ACEOF
17606 rm -f conftest.$ac_objext
17607 if { (ac_try="$ac_compile"
17608 case "(($ac_try" in
17609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610   *) ac_try_echo=$ac_try;;
17611 esac
17612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17613 $as_echo "$ac_try_echo") >&5
17614   (eval "$ac_compile") 2>conftest.er1
17615   ac_status=$?
17616   grep -v '^ *+' conftest.er1 >conftest.err
17617   rm -f conftest.er1
17618   cat conftest.err >&5
17619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); } && {
17621          test -z "$ac_c_werror_flag" ||
17622          test ! -s conftest.err
17623        } && test -s conftest.$ac_objext; then
17624   ac_header_compiler=yes
17625 else
17626   $as_echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629         ac_header_compiler=no
17632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17634 $as_echo "$ac_header_compiler" >&6; }
17636 # Is the header present?
17637 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17638 $as_echo_n "checking $ac_header presence... " >&6; }
17639 cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645 #include <$ac_header>
17646 _ACEOF
17647 if { (ac_try="$ac_cpp conftest.$ac_ext"
17648 case "(($ac_try" in
17649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650   *) ac_try_echo=$ac_try;;
17651 esac
17652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17653 $as_echo "$ac_try_echo") >&5
17654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } >/dev/null && {
17661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17662          test ! -s conftest.err
17663        }; then
17664   ac_header_preproc=yes
17665 else
17666   $as_echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669   ac_header_preproc=no
17672 rm -f conftest.err conftest.$ac_ext
17673 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17674 $as_echo "$ac_header_preproc" >&6; }
17676 # So?  What about this header?
17677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17678   yes:no: )
17679     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17680 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17681     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17683     ac_header_preproc=yes
17684     ;;
17685   no:yes:* )
17686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17687 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17689 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17691 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17693 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17697 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17699     ;;
17700 esac
17701 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17702 $as_echo_n "checking for $ac_header... " >&6; }
17703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17704   $as_echo_n "(cached) " >&6
17705 else
17706   eval "$as_ac_Header=\$ac_header_preproc"
17708 ac_res=`eval 'as_val=${'$as_ac_Header'}
17709                  $as_echo "$as_val"'`
17710                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17711 $as_echo "$ac_res" >&6; }
17714 as_val=`eval 'as_val=${'$as_ac_Header'}
17715                  $as_echo "$as_val"'`
17716    if test "x$as_val" = x""yes; then
17717   cat >>confdefs.h <<_ACEOF
17718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17719 _ACEOF
17721 else
17722   { $as_echo "$as_me:$LINENO: result: disabeling libintl build" >&5
17723 $as_echo "disabeling libintl build" >&6; }; enable_libintl=no
17726 done
17730 if test x$enable_libintl = xyes ; then
17731       { $as_echo "$as_me:$LINENO: checking for libintl_gettext in -lintl" >&5
17732 $as_echo_n "checking for libintl_gettext in -lintl... " >&6; }
17733 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
17734   $as_echo_n "(cached) " >&6
17735 else
17736   ac_check_lib_save_LIBS=$LIBS
17737 LIBS="-lintl  $LIBS"
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h.  */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h.  */
17745 /* Override any GCC internal prototype to avoid an error.
17746    Use char because int might match the return type of a GCC
17747    builtin and then its argument prototype would still apply.  */
17748 #ifdef __cplusplus
17749 extern "C"
17750 #endif
17751 char libintl_gettext ();
17752 int
17753 main ()
17755 return libintl_gettext ();
17756   ;
17757   return 0;
17759 _ACEOF
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764   *) ac_try_echo=$ac_try;;
17765 esac
17766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17767 $as_echo "$ac_try_echo") >&5
17768   (eval "$ac_link") 2>conftest.er1
17769   ac_status=$?
17770   grep -v '^ *+' conftest.er1 >conftest.err
17771   rm -f conftest.er1
17772   cat conftest.err >&5
17773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); } && {
17775          test -z "$ac_c_werror_flag" ||
17776          test ! -s conftest.err
17777        } && test -s conftest$ac_exeext && {
17778          test "$cross_compiling" = yes ||
17779          $as_test_x conftest$ac_exeext
17780        }; then
17781   ac_cv_lib_intl_libintl_gettext=yes
17782 else
17783   $as_echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786         ac_cv_lib_intl_libintl_gettext=no
17789 rm -rf conftest.dSYM
17790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17791       conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17794 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_libintl_gettext" >&5
17795 $as_echo "$ac_cv_lib_intl_libintl_gettext" >&6; }
17796 if test "x$ac_cv_lib_intl_libintl_gettext" = x""yes; then
17797   LIB_LIBINTL="-lintl"
17804  if test x$enable_libintl = xyes; then
17805   BUILD_LIBINTL_TRUE=
17806   BUILD_LIBINTL_FALSE='#'
17807 else
17808   BUILD_LIBINTL_TRUE='#'
17809   BUILD_LIBINTL_FALSE=
17813 if test x$enable_libintl = xyes; then
17815 cat >>confdefs.h <<\_ACEOF
17816 #define BUILD_LIBINTL /**/
17817 _ACEOF
17822 case $TERM in
17823        #   for the most important terminal types we directly know the sequences
17824        xterm|xterm*|vt220|vt220*)
17825                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
17826                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
17827        ;;
17828        vt100|vt100*|cygwin)
17829                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
17830                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
17831        ;;
17832        *)
17833                T_MD=''
17834                T_ME=''
17835        ;;
17836 esac
17837   { $as_echo "$as_me:$LINENO: result: " >&5
17838 $as_echo "" >&6; }
17839   { $as_echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
17840 $as_echo "${T_MD}IEEE Math Checks${T_ME}" >&6; }
17845 for ac_func in fpclassify
17847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17848 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17849 $as_echo_n "checking for $ac_func... " >&6; }
17850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17851   $as_echo_n "(cached) " >&6
17852 else
17853   cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17861 #define $ac_func innocuous_$ac_func
17863 /* System header to define __stub macros and hopefully few prototypes,
17864     which can conflict with char $ac_func (); below.
17865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17866     <limits.h> exists even on freestanding compilers.  */
17868 #ifdef __STDC__
17869 # include <limits.h>
17870 #else
17871 # include <assert.h>
17872 #endif
17874 #undef $ac_func
17876 /* Override any GCC internal prototype to avoid an error.
17877    Use char because int might match the return type of a GCC
17878    builtin and then its argument prototype would still apply.  */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 char $ac_func ();
17883 /* The GNU C library defines this for functions which it implements
17884     to always fail with ENOSYS.  Some functions are actually named
17885     something starting with __ and the normal name is an alias.  */
17886 #if defined __stub_$ac_func || defined __stub___$ac_func
17887 choke me
17888 #endif
17890 int
17891 main ()
17893 return $ac_func ();
17894   ;
17895   return 0;
17897 _ACEOF
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (ac_try="$ac_link"
17900 case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905 $as_echo "$ac_try_echo") >&5
17906   (eval "$ac_link") 2>conftest.er1
17907   ac_status=$?
17908   grep -v '^ *+' conftest.er1 >conftest.err
17909   rm -f conftest.er1
17910   cat conftest.err >&5
17911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } && {
17913          test -z "$ac_c_werror_flag" ||
17914          test ! -s conftest.err
17915        } && test -s conftest$ac_exeext && {
17916          test "$cross_compiling" = yes ||
17917          $as_test_x conftest$ac_exeext
17918        }; then
17919   eval "$as_ac_var=yes"
17920 else
17921   $as_echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17924         eval "$as_ac_var=no"
17927 rm -rf conftest.dSYM
17928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17929       conftest$ac_exeext conftest.$ac_ext
17931 ac_res=`eval 'as_val=${'$as_ac_var'}
17932                  $as_echo "$as_val"'`
17933                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17934 $as_echo "$ac_res" >&6; }
17935 as_val=`eval 'as_val=${'$as_ac_var'}
17936                  $as_echo "$as_val"'`
17937    if test "x$as_val" = x""yes; then
17938   cat >>confdefs.h <<_ACEOF
17939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17940 _ACEOF
17942 else
17943   { $as_echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
17944 $as_echo_n "checking for fpclassify with <math.h>... " >&6; }
17945     cat >conftest.$ac_ext <<_ACEOF
17946 /* confdefs.h.  */
17947 _ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h.  */
17951 #include <math.h>
17952 volatile int x;volatile float f;
17953 int
17954 main ()
17956 x = fpclassify(f)
17957   ;
17958   return 0;
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (ac_try="$ac_link"
17963 case "(($ac_try" in
17964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965   *) ac_try_echo=$ac_try;;
17966 esac
17967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17968 $as_echo "$ac_try_echo") >&5
17969   (eval "$ac_link") 2>conftest.er1
17970   ac_status=$?
17971   grep -v '^ *+' conftest.er1 >conftest.err
17972   rm -f conftest.er1
17973   cat conftest.err >&5
17974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); } && {
17976          test -z "$ac_c_werror_flag" ||
17977          test ! -s conftest.err
17978        } && test -s conftest$ac_exeext && {
17979          test "$cross_compiling" = yes ||
17980          $as_test_x conftest$ac_exeext
17981        }; then
17982   { $as_echo "$as_me:$LINENO: result: yes" >&5
17983 $as_echo "yes" >&6; }
17984       cat >>confdefs.h <<\_ACEOF
17985 #define HAVE_FPCLASSIFY 1
17986 _ACEOF
17988 else
17989   $as_echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992         { $as_echo "$as_me:$LINENO: result: no" >&5
17993 $as_echo "no" >&6; }
17996 rm -rf conftest.dSYM
17997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17998       conftest$ac_exeext conftest.$ac_ext
18000 done
18004 for ac_func in isinf
18006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18008 $as_echo_n "checking for $ac_func... " >&6; }
18009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18010   $as_echo_n "(cached) " >&6
18011 else
18012   cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h.  */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h.  */
18018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18020 #define $ac_func innocuous_$ac_func
18022 /* System header to define __stub macros and hopefully few prototypes,
18023     which can conflict with char $ac_func (); below.
18024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18025     <limits.h> exists even on freestanding compilers.  */
18027 #ifdef __STDC__
18028 # include <limits.h>
18029 #else
18030 # include <assert.h>
18031 #endif
18033 #undef $ac_func
18035 /* Override any GCC internal prototype to avoid an error.
18036    Use char because int might match the return type of a GCC
18037    builtin and then its argument prototype would still apply.  */
18038 #ifdef __cplusplus
18039 extern "C"
18040 #endif
18041 char $ac_func ();
18042 /* The GNU C library defines this for functions which it implements
18043     to always fail with ENOSYS.  Some functions are actually named
18044     something starting with __ and the normal name is an alias.  */
18045 #if defined __stub_$ac_func || defined __stub___$ac_func
18046 choke me
18047 #endif
18049 int
18050 main ()
18052 return $ac_func ();
18053   ;
18054   return 0;
18056 _ACEOF
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061   *) ac_try_echo=$ac_try;;
18062 esac
18063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18064 $as_echo "$ac_try_echo") >&5
18065   (eval "$ac_link") 2>conftest.er1
18066   ac_status=$?
18067   grep -v '^ *+' conftest.er1 >conftest.err
18068   rm -f conftest.er1
18069   cat conftest.err >&5
18070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); } && {
18072          test -z "$ac_c_werror_flag" ||
18073          test ! -s conftest.err
18074        } && test -s conftest$ac_exeext && {
18075          test "$cross_compiling" = yes ||
18076          $as_test_x conftest$ac_exeext
18077        }; then
18078   eval "$as_ac_var=yes"
18079 else
18080   $as_echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083         eval "$as_ac_var=no"
18086 rm -rf conftest.dSYM
18087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18088       conftest$ac_exeext conftest.$ac_ext
18090 ac_res=`eval 'as_val=${'$as_ac_var'}
18091                  $as_echo "$as_val"'`
18092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18093 $as_echo "$ac_res" >&6; }
18094 as_val=`eval 'as_val=${'$as_ac_var'}
18095                  $as_echo "$as_val"'`
18096    if test "x$as_val" = x""yes; then
18097   cat >>confdefs.h <<_ACEOF
18098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18099 _ACEOF
18101 else
18102   { $as_echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
18103 $as_echo_n "checking for isinf with <math.h>... " >&6; }
18104     cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h.  */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h.  */
18110 #include <math.h>
18111 volatile int x;volatile float f;
18112 int
18113 main ()
18115 x = isinf(f)
18116   ;
18117   return 0;
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18127 $as_echo "$ac_try_echo") >&5
18128   (eval "$ac_link") 2>conftest.er1
18129   ac_status=$?
18130   grep -v '^ *+' conftest.er1 >conftest.err
18131   rm -f conftest.er1
18132   cat conftest.err >&5
18133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } && {
18135          test -z "$ac_c_werror_flag" ||
18136          test ! -s conftest.err
18137        } && test -s conftest$ac_exeext && {
18138          test "$cross_compiling" = yes ||
18139          $as_test_x conftest$ac_exeext
18140        }; then
18141   { $as_echo "$as_me:$LINENO: result: yes" >&5
18142 $as_echo "yes" >&6; }
18143       cat >>confdefs.h <<\_ACEOF
18144 #define HAVE_ISINF 1
18145 _ACEOF
18147 else
18148   $as_echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151         { $as_echo "$as_me:$LINENO: result: no" >&5
18152 $as_echo "no" >&6; }
18155 rm -rf conftest.dSYM
18156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18157       conftest$ac_exeext conftest.$ac_ext
18159 done
18162 { $as_echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
18163 $as_echo_n "checking whether isfinite is broken... " >&6; }
18164 if test "${ac_cv_have_broken_isfinite+set}" = set; then
18165   $as_echo_n "(cached) " >&6
18166 else
18168 if test "$cross_compiling" = yes; then
18170 case "${target}" in
18171   hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
18172   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
18173   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
18174   *) ac_cv_have_broken_isfinite=no ;;
18175 esac
18176 else
18177   cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h.  */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h.  */
18184 #ifdef HAVE_MATH_H
18185 #include <math.h>
18186 #endif
18187 #ifdef HAVE_FLOAT_H
18188 #include <float.h>
18189 #endif
18190 int main ()
18192 #ifdef isfinite
18193 #ifdef LDBL_MAX
18194   if (!isfinite(LDBL_MAX)) return 1;
18195 #endif
18196 #ifdef DBL_MAX
18197   if (!isfinite(DBL_MAX)) return 1;
18198 #endif
18199 #endif
18200 return 0;
18202 _ACEOF
18203 rm -f conftest$ac_exeext
18204 if { (ac_try="$ac_link"
18205 case "(($ac_try" in
18206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207   *) ac_try_echo=$ac_try;;
18208 esac
18209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18210 $as_echo "$ac_try_echo") >&5
18211   (eval "$ac_link") 2>&5
18212   ac_status=$?
18213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18215   { (case "(($ac_try" in
18216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217   *) ac_try_echo=$ac_try;;
18218 esac
18219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18220 $as_echo "$ac_try_echo") >&5
18221   (eval "$ac_try") 2>&5
18222   ac_status=$?
18223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); }; }; then
18225   ac_cv_have_broken_isfinite=no
18226 else
18227   $as_echo "$as_me: program exited with status $ac_status" >&5
18228 $as_echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18231 ( exit $ac_status )
18232 ac_cv_have_broken_isfinite=yes
18234 rm -rf conftest.dSYM
18235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18241 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_broken_isfinite" >&5
18242 $as_echo "$ac_cv_have_broken_isfinite" >&6; }
18244 case "${target}" in
18245   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
18246   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
18247 esac
18249 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
18250   cat >>confdefs.h <<\_ACEOF
18251 #define HAVE_ISFINITE 1
18252 _ACEOF
18254 else
18256 for ac_func in finite
18258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18259 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18260 $as_echo_n "checking for $ac_func... " >&6; }
18261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18262   $as_echo_n "(cached) " >&6
18263 else
18264   cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h.  */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h.  */
18270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18272 #define $ac_func innocuous_$ac_func
18274 /* System header to define __stub macros and hopefully few prototypes,
18275     which can conflict with char $ac_func (); below.
18276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277     <limits.h> exists even on freestanding compilers.  */
18279 #ifdef __STDC__
18280 # include <limits.h>
18281 #else
18282 # include <assert.h>
18283 #endif
18285 #undef $ac_func
18287 /* Override any GCC internal prototype to avoid an error.
18288    Use char because int might match the return type of a GCC
18289    builtin and then its argument prototype would still apply.  */
18290 #ifdef __cplusplus
18291 extern "C"
18292 #endif
18293 char $ac_func ();
18294 /* The GNU C library defines this for functions which it implements
18295     to always fail with ENOSYS.  Some functions are actually named
18296     something starting with __ and the normal name is an alias.  */
18297 #if defined __stub_$ac_func || defined __stub___$ac_func
18298 choke me
18299 #endif
18301 int
18302 main ()
18304 return $ac_func ();
18305   ;
18306   return 0;
18308 _ACEOF
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (ac_try="$ac_link"
18311 case "(($ac_try" in
18312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313   *) ac_try_echo=$ac_try;;
18314 esac
18315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18316 $as_echo "$ac_try_echo") >&5
18317   (eval "$ac_link") 2>conftest.er1
18318   ac_status=$?
18319   grep -v '^ *+' conftest.er1 >conftest.err
18320   rm -f conftest.er1
18321   cat conftest.err >&5
18322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } && {
18324          test -z "$ac_c_werror_flag" ||
18325          test ! -s conftest.err
18326        } && test -s conftest$ac_exeext && {
18327          test "$cross_compiling" = yes ||
18328          $as_test_x conftest$ac_exeext
18329        }; then
18330   eval "$as_ac_var=yes"
18331 else
18332   $as_echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335         eval "$as_ac_var=no"
18338 rm -rf conftest.dSYM
18339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18340       conftest$ac_exeext conftest.$ac_ext
18342 ac_res=`eval 'as_val=${'$as_ac_var'}
18343                  $as_echo "$as_val"'`
18344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18345 $as_echo "$ac_res" >&6; }
18346 as_val=`eval 'as_val=${'$as_ac_var'}
18347                  $as_echo "$as_val"'`
18348    if test "x$as_val" = x""yes; then
18349   cat >>confdefs.h <<_ACEOF
18350 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18351 _ACEOF
18353 else
18355 for ac_func in isfinite
18357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18359 $as_echo_n "checking for $ac_func... " >&6; }
18360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18361   $as_echo_n "(cached) " >&6
18362 else
18363   cat >conftest.$ac_ext <<_ACEOF
18364 /* confdefs.h.  */
18365 _ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h.  */
18369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18371 #define $ac_func innocuous_$ac_func
18373 /* System header to define __stub macros and hopefully few prototypes,
18374     which can conflict with char $ac_func (); below.
18375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18376     <limits.h> exists even on freestanding compilers.  */
18378 #ifdef __STDC__
18379 # include <limits.h>
18380 #else
18381 # include <assert.h>
18382 #endif
18384 #undef $ac_func
18386 /* Override any GCC internal prototype to avoid an error.
18387    Use char because int might match the return type of a GCC
18388    builtin and then its argument prototype would still apply.  */
18389 #ifdef __cplusplus
18390 extern "C"
18391 #endif
18392 char $ac_func ();
18393 /* The GNU C library defines this for functions which it implements
18394     to always fail with ENOSYS.  Some functions are actually named
18395     something starting with __ and the normal name is an alias.  */
18396 #if defined __stub_$ac_func || defined __stub___$ac_func
18397 choke me
18398 #endif
18400 int
18401 main ()
18403 return $ac_func ();
18404   ;
18405   return 0;
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412   *) ac_try_echo=$ac_try;;
18413 esac
18414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18415 $as_echo "$ac_try_echo") >&5
18416   (eval "$ac_link") 2>conftest.er1
18417   ac_status=$?
18418   grep -v '^ *+' conftest.er1 >conftest.err
18419   rm -f conftest.er1
18420   cat conftest.err >&5
18421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); } && {
18423          test -z "$ac_c_werror_flag" ||
18424          test ! -s conftest.err
18425        } && test -s conftest$ac_exeext && {
18426          test "$cross_compiling" = yes ||
18427          $as_test_x conftest$ac_exeext
18428        }; then
18429   eval "$as_ac_var=yes"
18430 else
18431   $as_echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434         eval "$as_ac_var=no"
18437 rm -rf conftest.dSYM
18438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18439       conftest$ac_exeext conftest.$ac_ext
18441 ac_res=`eval 'as_val=${'$as_ac_var'}
18442                  $as_echo "$as_val"'`
18443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18444 $as_echo "$ac_res" >&6; }
18445 as_val=`eval 'as_val=${'$as_ac_var'}
18446                  $as_echo "$as_val"'`
18447    if test "x$as_val" = x""yes; then
18448   cat >>confdefs.h <<_ACEOF
18449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18450 _ACEOF
18452 else
18453   { $as_echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
18454 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
18455           cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h.  */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h.  */
18461 #include <math.h>
18462 volatile int x;volatile float f;
18463 int
18464 main ()
18466 x = isfinite(f)
18467   ;
18468   return 0;
18470 _ACEOF
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475   *) ac_try_echo=$ac_try;;
18476 esac
18477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18478 $as_echo "$ac_try_echo") >&5
18479   (eval "$ac_link") 2>conftest.er1
18480   ac_status=$?
18481   grep -v '^ *+' conftest.er1 >conftest.err
18482   rm -f conftest.er1
18483   cat conftest.err >&5
18484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } && {
18486          test -z "$ac_c_werror_flag" ||
18487          test ! -s conftest.err
18488        } && test -s conftest$ac_exeext && {
18489          test "$cross_compiling" = yes ||
18490          $as_test_x conftest$ac_exeext
18491        }; then
18492   { $as_echo "$as_me:$LINENO: result: yes" >&5
18493 $as_echo "yes" >&6; }
18494                 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE_ISFINITE 1
18496 _ACEOF
18498 else
18499   $as_echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502         { $as_echo "$as_me:$LINENO: result: no" >&5
18503 $as_echo "no" >&6; }
18506 rm -rf conftest.dSYM
18507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18508       conftest$ac_exeext conftest.$ac_ext
18510 done
18513 done
18518 ac_ext=c
18519 ac_cpp='$CPP $CPPFLAGS'
18520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18524 _cflags=${CFLAGS}
18526 { $as_echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
18527 $as_echo_n "checking if IEEE math works out of the box... " >&6; }
18528 if test "${rd_cv_ieee_works+set}" = set; then
18529   $as_echo_n "(cached) " >&6
18530 else
18531   if test "$cross_compiling" = yes; then
18532   :
18533 else
18534   cat >conftest.$ac_ext <<_ACEOF
18535 /* confdefs.h.  */
18536 _ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h.  */
18542 #if HAVE_MATH_H
18543 #  include <math.h>
18544 #endif
18546 #if HAVE_FLOAT_H
18547 #  include <float.h>
18548 #endif
18550 #if HAVE_IEEEFP_H
18551 #  include <ieeefp.h>
18552 #endif
18554 #if HAVE_FP_CLASS_H
18555 #  include <fp_class.h>
18556 #endif
18558 /* Solaris */
18559 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
18560 #  define HAVE_ISINF 1
18561 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
18562 #endif
18564 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
18565 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
18566 #  undef isnan
18567 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
18568 #endif
18570 /* Digital UNIX */
18571 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
18572 #  define HAVE_ISINF 1
18573 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
18574 #endif
18576 /* AIX */
18577 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
18578 #  define HAVE_ISINF 1
18579 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
18580 #endif
18582 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
18583 #  define HAVE_ISINF 1
18584 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
18585 #endif
18587 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
18588 #  define HAVE_ISINF 1
18589 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
18590 #endif
18592 #include <stdio.h>
18593 int main(void){
18594     double rrdnan,rrdinf,rrdc,rrdzero;
18595     ;
18596     /* some math to see if we get a floating point exception */
18597     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18598     rrdnan=0.0/rrdzero; /* especially here */
18599     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18600                   /* at run time without sig fpe */
18601     rrdc = rrdinf + rrdnan;
18602     rrdc = rrdinf / rrdnan;
18603     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18604     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18605     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18606     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18607     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18608     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18609     return 0;
18610  }
18611 _ACEOF
18612 rm -f conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18619 $as_echo "$ac_try_echo") >&5
18620   (eval "$ac_link") 2>&5
18621   ac_status=$?
18622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18624   { (case "(($ac_try" in
18625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626   *) ac_try_echo=$ac_try;;
18627 esac
18628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18629 $as_echo "$ac_try_echo") >&5
18630   (eval "$ac_try") 2>&5
18631   ac_status=$?
18632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; }; then
18634   rd_cv_ieee_works=yes
18635 else
18636   $as_echo "$as_me: program exited with status $ac_status" >&5
18637 $as_echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 ( exit $ac_status )
18641 rd_cv_ieee_works=no
18643 rm -rf conftest.dSYM
18644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18650 if test x${rd_cv_ieee_works} = "xyes"; then
18651  { $as_echo "$as_me:$LINENO: result: yes" >&5
18652 $as_echo "yes" >&6; }
18654 else
18655  { $as_echo "$as_me:$LINENO: result: no" >&5
18656 $as_echo "no" >&6; }
18657  CFLAGS="$_cflags -ieee"
18659 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
18660 $as_echo_n "checking if IEEE math works with the -ieee switch... " >&6; }
18661 if test "${rd_cv_ieee_switch+set}" = set; then
18662   $as_echo_n "(cached) " >&6
18663 else
18664   if test "$cross_compiling" = yes; then
18665   :
18666 else
18667   cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h.  */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h.  */
18675 #if HAVE_MATH_H
18676 #  include <math.h>
18677 #endif
18679 #if HAVE_FLOAT_H
18680 #  include <float.h>
18681 #endif
18683 #if HAVE_IEEEFP_H
18684 #  include <ieeefp.h>
18685 #endif
18687 #if HAVE_FP_CLASS_H
18688 #  include <fp_class.h>
18689 #endif
18691 /* Solaris */
18692 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
18693 #  define HAVE_ISINF 1
18694 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
18695 #endif
18697 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
18698 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
18699 #  undef isnan
18700 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
18701 #endif
18703 /* Digital UNIX */
18704 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
18705 #  define HAVE_ISINF 1
18706 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
18707 #endif
18709 /* AIX */
18710 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
18711 #  define HAVE_ISINF 1
18712 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
18713 #endif
18715 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
18716 #  define HAVE_ISINF 1
18717 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
18718 #endif
18720 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
18721 #  define HAVE_ISINF 1
18722 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
18723 #endif
18725 #include <stdio.h>
18726 int main(void){
18727     double rrdnan,rrdinf,rrdc,rrdzero;
18728     ;
18729     /* some math to see if we get a floating point exception */
18730     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18731     rrdnan=0.0/rrdzero; /* especially here */
18732     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18733                   /* at run time without sig fpe */
18734     rrdc = rrdinf + rrdnan;
18735     rrdc = rrdinf / rrdnan;
18736     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18737     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18738     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18739     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18740     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18741     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18742     return 0;
18743  }
18744 _ACEOF
18745 rm -f conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749   *) ac_try_echo=$ac_try;;
18750 esac
18751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18752 $as_echo "$ac_try_echo") >&5
18753   (eval "$ac_link") 2>&5
18754   ac_status=$?
18755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18757   { (case "(($ac_try" in
18758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759   *) ac_try_echo=$ac_try;;
18760 esac
18761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18762 $as_echo "$ac_try_echo") >&5
18763   (eval "$ac_try") 2>&5
18764   ac_status=$?
18765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; }; then
18767   rd_cv_ieee_switch=yes
18768 else
18769   $as_echo "$as_me: program exited with status $ac_status" >&5
18770 $as_echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 ( exit $ac_status )
18774 rd_cv_ieee_switch=no
18776 rm -rf conftest.dSYM
18777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18783 if test x${rd_cv_ieee_switch} = "xyes"; then
18784  { $as_echo "$as_me:$LINENO: result: yes" >&5
18785 $as_echo "yes" >&6; }
18787 else
18788  { $as_echo "$as_me:$LINENO: result: no" >&5
18789 $as_echo "no" >&6; }
18790  CFLAGS="$_cflags -qfloat=nofold"
18792 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
18793 $as_echo_n "checking if IEEE math works with the -qfloat=nofold switch... " >&6; }
18794 if test "${rd_cv_ieee_nofold+set}" = set; then
18795   $as_echo_n "(cached) " >&6
18796 else
18797   if test "$cross_compiling" = yes; then
18798   :
18799 else
18800   cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h.  */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h.  */
18808 #if HAVE_MATH_H
18809 #  include <math.h>
18810 #endif
18812 #if HAVE_FLOAT_H
18813 #  include <float.h>
18814 #endif
18816 #if HAVE_IEEEFP_H
18817 #  include <ieeefp.h>
18818 #endif
18820 #if HAVE_FP_CLASS_H
18821 #  include <fp_class.h>
18822 #endif
18824 /* Solaris */
18825 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
18826 #  define HAVE_ISINF 1
18827 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
18828 #endif
18830 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
18831 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
18832 #  undef isnan
18833 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
18834 #endif
18836 /* Digital UNIX */
18837 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
18838 #  define HAVE_ISINF 1
18839 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
18840 #endif
18842 /* AIX */
18843 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
18844 #  define HAVE_ISINF 1
18845 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
18846 #endif
18848 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
18849 #  define HAVE_ISINF 1
18850 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
18851 #endif
18853 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
18854 #  define HAVE_ISINF 1
18855 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
18856 #endif
18858 #include <stdio.h>
18859 int main(void){
18860     double rrdnan,rrdinf,rrdc,rrdzero;
18861     ;
18862     /* some math to see if we get a floating point exception */
18863     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18864     rrdnan=0.0/rrdzero; /* especially here */
18865     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18866                   /* at run time without sig fpe */
18867     rrdc = rrdinf + rrdnan;
18868     rrdc = rrdinf / rrdnan;
18869     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18870     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18871     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18872     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18873     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18874     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18875     return 0;
18876  }
18877 _ACEOF
18878 rm -f conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882   *) ac_try_echo=$ac_try;;
18883 esac
18884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18885 $as_echo "$ac_try_echo") >&5
18886   (eval "$ac_link") 2>&5
18887   ac_status=$?
18888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18890   { (case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18895 $as_echo "$ac_try_echo") >&5
18896   (eval "$ac_try") 2>&5
18897   ac_status=$?
18898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); }; }; then
18900   rd_cv_ieee_nofold=yes
18901 else
18902   $as_echo "$as_me: program exited with status $ac_status" >&5
18903 $as_echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ( exit $ac_status )
18907 rd_cv_ieee_nofold=no
18909 rm -rf conftest.dSYM
18910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18916 if test x${rd_cv_ieee_nofold} = "xyes"; then
18917  { $as_echo "$as_me:$LINENO: result: yes" >&5
18918 $as_echo "yes" >&6; }
18920 else
18921  { $as_echo "$as_me:$LINENO: result: no" >&5
18922 $as_echo "no" >&6; }
18923  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
18925 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
18926 $as_echo_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... " >&6; }
18927 if test "${rd_cv_ieee_flttrap+set}" = set; then
18928   $as_echo_n "(cached) " >&6
18929 else
18930   if test "$cross_compiling" = yes; then
18931   :
18932 else
18933   cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h.  */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h.  */
18941 #if HAVE_MATH_H
18942 #  include <math.h>
18943 #endif
18945 #if HAVE_FLOAT_H
18946 #  include <float.h>
18947 #endif
18949 #if HAVE_IEEEFP_H
18950 #  include <ieeefp.h>
18951 #endif
18953 #if HAVE_FP_CLASS_H
18954 #  include <fp_class.h>
18955 #endif
18957 /* Solaris */
18958 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
18959 #  define HAVE_ISINF 1
18960 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
18961 #endif
18963 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
18964 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
18965 #  undef isnan
18966 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
18967 #endif
18969 /* Digital UNIX */
18970 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
18971 #  define HAVE_ISINF 1
18972 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
18973 #endif
18975 /* AIX */
18976 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
18977 #  define HAVE_ISINF 1
18978 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
18979 #endif
18981 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
18982 #  define HAVE_ISINF 1
18983 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
18984 #endif
18986 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
18987 #  define HAVE_ISINF 1
18988 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
18989 #endif
18991 #include <stdio.h>
18992 int main(void){
18993     double rrdnan,rrdinf,rrdc,rrdzero;
18994     ;
18995     /* some math to see if we get a floating point exception */
18996     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18997     rrdnan=0.0/rrdzero; /* especially here */
18998     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18999                   /* at run time without sig fpe */
19000     rrdc = rrdinf + rrdnan;
19001     rrdc = rrdinf / rrdnan;
19002     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19003     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19004     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19005     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19006     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19007     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19008     return 0;
19009  }
19010 _ACEOF
19011 rm -f conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015   *) ac_try_echo=$ac_try;;
19016 esac
19017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019   (eval "$ac_link") 2>&5
19020   ac_status=$?
19021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19023   { (case "(($ac_try" in
19024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025   *) ac_try_echo=$ac_try;;
19026 esac
19027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19028 $as_echo "$ac_try_echo") >&5
19029   (eval "$ac_try") 2>&5
19030   ac_status=$?
19031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; }; then
19033   rd_cv_ieee_flttrap=yes
19034 else
19035   $as_echo "$as_me: program exited with status $ac_status" >&5
19036 $as_echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 ( exit $ac_status )
19040 rd_cv_ieee_flttrap=no
19042 rm -rf conftest.dSYM
19043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19049 if test x${rd_cv_ieee_flttrap} = "xyes"; then
19050  { $as_echo "$as_me:$LINENO: result: yes" >&5
19051 $as_echo "yes" >&6; }
19053 else
19054  { $as_echo "$as_me:$LINENO: result: no" >&5
19055 $as_echo "no" >&6; }
19056  CFLAGS="$_cflags -mieee"
19058 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
19059 $as_echo_n "checking if IEEE math works with the -mieee switch... " >&6; }
19060 if test "${rd_cv_ieee_mswitch+set}" = set; then
19061   $as_echo_n "(cached) " >&6
19062 else
19063   if test "$cross_compiling" = yes; then
19064   :
19065 else
19066   cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h.  */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h.  */
19074 #if HAVE_MATH_H
19075 #  include <math.h>
19076 #endif
19078 #if HAVE_FLOAT_H
19079 #  include <float.h>
19080 #endif
19082 #if HAVE_IEEEFP_H
19083 #  include <ieeefp.h>
19084 #endif
19086 #if HAVE_FP_CLASS_H
19087 #  include <fp_class.h>
19088 #endif
19090 /* Solaris */
19091 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
19092 #  define HAVE_ISINF 1
19093 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
19094 #endif
19096 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19097 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
19098 #  undef isnan
19099 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19100 #endif
19102 /* Digital UNIX */
19103 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
19104 #  define HAVE_ISINF 1
19105 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19106 #endif
19108 /* AIX */
19109 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
19110 #  define HAVE_ISINF 1
19111 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
19112 #endif
19114 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
19115 #  define HAVE_ISINF 1
19116 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
19117 #endif
19119 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
19120 #  define HAVE_ISINF 1
19121 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
19122 #endif
19124 #include <stdio.h>
19125 int main(void){
19126     double rrdnan,rrdinf,rrdc,rrdzero;
19127     ;
19128     /* some math to see if we get a floating point exception */
19129     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19130     rrdnan=0.0/rrdzero; /* especially here */
19131     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19132                   /* at run time without sig fpe */
19133     rrdc = rrdinf + rrdnan;
19134     rrdc = rrdinf / rrdnan;
19135     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19136     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19137     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19138     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19139     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19140     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19141     return 0;
19142  }
19143 _ACEOF
19144 rm -f conftest$ac_exeext
19145 if { (ac_try="$ac_link"
19146 case "(($ac_try" in
19147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148   *) ac_try_echo=$ac_try;;
19149 esac
19150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19151 $as_echo "$ac_try_echo") >&5
19152   (eval "$ac_link") 2>&5
19153   ac_status=$?
19154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19156   { (case "(($ac_try" in
19157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158   *) ac_try_echo=$ac_try;;
19159 esac
19160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19161 $as_echo "$ac_try_echo") >&5
19162   (eval "$ac_try") 2>&5
19163   ac_status=$?
19164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); }; }; then
19166   rd_cv_ieee_mswitch=yes
19167 else
19168   $as_echo "$as_me: program exited with status $ac_status" >&5
19169 $as_echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ( exit $ac_status )
19173 rd_cv_ieee_mswitch=no
19175 rm -rf conftest.dSYM
19176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19182 if test x${rd_cv_ieee_mswitch} = "xyes"; then
19183  { $as_echo "$as_me:$LINENO: result: yes" >&5
19184 $as_echo "yes" >&6; }
19186 else
19187  { $as_echo "$as_me:$LINENO: result: no" >&5
19188 $as_echo "no" >&6; }
19189  CFLAGS="$_cflags -q float=rndsngl"
19191 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
19192 $as_echo_n "checking if IEEE math works with the -q float=rndsngl switch... " >&6; }
19193 if test "${rd_cv_ieee_qswitch+set}" = set; then
19194   $as_echo_n "(cached) " >&6
19195 else
19196   if test "$cross_compiling" = yes; then
19197   :
19198 else
19199   cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19207 #if HAVE_MATH_H
19208 #  include <math.h>
19209 #endif
19211 #if HAVE_FLOAT_H
19212 #  include <float.h>
19213 #endif
19215 #if HAVE_IEEEFP_H
19216 #  include <ieeefp.h>
19217 #endif
19219 #if HAVE_FP_CLASS_H
19220 #  include <fp_class.h>
19221 #endif
19223 /* Solaris */
19224 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
19225 #  define HAVE_ISINF 1
19226 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
19227 #endif
19229 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19230 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
19231 #  undef isnan
19232 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19233 #endif
19235 /* Digital UNIX */
19236 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
19237 #  define HAVE_ISINF 1
19238 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19239 #endif
19241 /* AIX */
19242 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
19243 #  define HAVE_ISINF 1
19244 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
19245 #endif
19247 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
19248 #  define HAVE_ISINF 1
19249 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
19250 #endif
19252 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
19253 #  define HAVE_ISINF 1
19254 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
19255 #endif
19257 #include <stdio.h>
19258 int main(void){
19259     double rrdnan,rrdinf,rrdc,rrdzero;
19260     ;
19261     /* some math to see if we get a floating point exception */
19262     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19263     rrdnan=0.0/rrdzero; /* especially here */
19264     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19265                   /* at run time without sig fpe */
19266     rrdc = rrdinf + rrdnan;
19267     rrdc = rrdinf / rrdnan;
19268     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19269     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19270     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19271     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19272     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19273     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19274     return 0;
19275  }
19276 _ACEOF
19277 rm -f conftest$ac_exeext
19278 if { (ac_try="$ac_link"
19279 case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19284 $as_echo "$ac_try_echo") >&5
19285   (eval "$ac_link") 2>&5
19286   ac_status=$?
19287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19289   { (case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19294 $as_echo "$ac_try_echo") >&5
19295   (eval "$ac_try") 2>&5
19296   ac_status=$?
19297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   rd_cv_ieee_qswitch=yes
19300 else
19301   $as_echo "$as_me: program exited with status $ac_status" >&5
19302 $as_echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ( exit $ac_status )
19306 rd_cv_ieee_qswitch=no
19308 rm -rf conftest.dSYM
19309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19315 if test x${rd_cv_ieee_qswitch} = "xyes"; then
19316  { $as_echo "$as_me:$LINENO: result: yes" >&5
19317 $as_echo "yes" >&6; }
19319 else
19320  { $as_echo "$as_me:$LINENO: result: no" >&5
19321 $as_echo "no" >&6; }
19322  CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
19324 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
19325 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... " >&6; }
19326 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
19327   $as_echo_n "(cached) " >&6
19328 else
19329   if test "$cross_compiling" = yes; then
19330   :
19331 else
19332   cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h.  */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h.  */
19340 #if HAVE_MATH_H
19341 #  include <math.h>
19342 #endif
19344 #if HAVE_FLOAT_H
19345 #  include <float.h>
19346 #endif
19348 #if HAVE_IEEEFP_H
19349 #  include <ieeefp.h>
19350 #endif
19352 #if HAVE_FP_CLASS_H
19353 #  include <fp_class.h>
19354 #endif
19356 /* Solaris */
19357 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
19358 #  define HAVE_ISINF 1
19359 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
19360 #endif
19362 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19363 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
19364 #  undef isnan
19365 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19366 #endif
19368 /* Digital UNIX */
19369 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
19370 #  define HAVE_ISINF 1
19371 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19372 #endif
19374 /* AIX */
19375 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
19376 #  define HAVE_ISINF 1
19377 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
19378 #endif
19380 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
19381 #  define HAVE_ISINF 1
19382 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
19383 #endif
19385 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
19386 #  define HAVE_ISINF 1
19387 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
19388 #endif
19390 #include <stdio.h>
19391 int main(void){
19392     double rrdnan,rrdinf,rrdc,rrdzero;
19393     ;
19394     /* some math to see if we get a floating point exception */
19395     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19396     rrdnan=0.0/rrdzero; /* especially here */
19397     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19398                   /* at run time without sig fpe */
19399     rrdc = rrdinf + rrdnan;
19400     rrdc = rrdinf / rrdnan;
19401     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19402     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19403     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19404     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19405     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19406     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19407     return 0;
19408  }
19409 _ACEOF
19410 rm -f conftest$ac_exeext
19411 if { (ac_try="$ac_link"
19412 case "(($ac_try" in
19413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414   *) ac_try_echo=$ac_try;;
19415 esac
19416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19417 $as_echo "$ac_try_echo") >&5
19418   (eval "$ac_link") 2>&5
19419   ac_status=$?
19420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19422   { (case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19427 $as_echo "$ac_try_echo") >&5
19428   (eval "$ac_try") 2>&5
19429   ac_status=$?
19430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   rd_cv_ieee_ieeenaninfswitch=yes
19433 else
19434   $as_echo "$as_me: program exited with status $ac_status" >&5
19435 $as_echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ( exit $ac_status )
19439 rd_cv_ieee_ieeenaninfswitch=no
19441 rm -rf conftest.dSYM
19442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19448 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
19449  { $as_echo "$as_me:$LINENO: result: yes" >&5
19450 $as_echo "yes" >&6; }
19452 else
19453  { $as_echo "$as_me:$LINENO: result: no" >&5
19454 $as_echo "no" >&6; }
19455  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
19457 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
19458 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... " >&6; }
19459 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
19460   $as_echo_n "(cached) " >&6
19461 else
19462   if test "$cross_compiling" = yes; then
19463   :
19464 else
19465   cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h.  */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h.  */
19473 #if HAVE_MATH_H
19474 #  include <math.h>
19475 #endif
19477 #if HAVE_FLOAT_H
19478 #  include <float.h>
19479 #endif
19481 #if HAVE_IEEEFP_H
19482 #  include <ieeefp.h>
19483 #endif
19485 #if HAVE_FP_CLASS_H
19486 #  include <fp_class.h>
19487 #endif
19489 /* Solaris */
19490 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
19491 #  define HAVE_ISINF 1
19492 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
19493 #endif
19495 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19496 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
19497 #  undef isnan
19498 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19499 #endif
19501 /* Digital UNIX */
19502 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
19503 #  define HAVE_ISINF 1
19504 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19505 #endif
19507 /* AIX */
19508 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
19509 #  define HAVE_ISINF 1
19510 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
19511 #endif
19513 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
19514 #  define HAVE_ISINF 1
19515 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
19516 #endif
19518 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
19519 #  define HAVE_ISINF 1
19520 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
19521 #endif
19523 #include <stdio.h>
19524 int main(void){
19525     double rrdnan,rrdinf,rrdc,rrdzero;
19526     ;
19527     /* some math to see if we get a floating point exception */
19528     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19529     rrdnan=0.0/rrdzero; /* especially here */
19530     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19531                   /* at run time without sig fpe */
19532     rrdc = rrdinf + rrdnan;
19533     rrdc = rrdinf / rrdnan;
19534     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19535     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19536     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19537     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19538     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19539     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19540     return 0;
19541  }
19542 _ACEOF
19543 rm -f conftest$ac_exeext
19544 if { (ac_try="$ac_link"
19545 case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19550 $as_echo "$ac_try_echo") >&5
19551   (eval "$ac_link") 2>&5
19552   ac_status=$?
19553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19555   { (case "(($ac_try" in
19556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557   *) ac_try_echo=$ac_try;;
19558 esac
19559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19560 $as_echo "$ac_try_echo") >&5
19561   (eval "$ac_try") 2>&5
19562   ac_status=$?
19563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; }; then
19565   rd_cv_ieee_ieeecmpswitch=yes
19566 else
19567   $as_echo "$as_me: program exited with status $ac_status" >&5
19568 $as_echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ( exit $ac_status )
19572 rd_cv_ieee_ieeecmpswitch=no
19574 rm -rf conftest.dSYM
19575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19581 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
19582  { $as_echo "$as_me:$LINENO: result: yes" >&5
19583 $as_echo "yes" >&6; }
19585 else
19586  { $as_echo "$as_me:$LINENO: result: no" >&5
19587 $as_echo "no" >&6; }
19588  CFLAGS=$_cflags
19590 { $as_echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
19591 $as_echo_n "checking if IEEE math works with fpsetmask(0)... " >&6; }
19592 if test "${rd_cv_ieee_mask+set}" = set; then
19593   $as_echo_n "(cached) " >&6
19594 else
19595   if test "$cross_compiling" = yes; then
19596   :
19597 else
19598   cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604 #include <floatingpoint.h>
19606 #if HAVE_MATH_H
19607 #  include <math.h>
19608 #endif
19610 #if HAVE_FLOAT_H
19611 #  include <float.h>
19612 #endif
19614 #if HAVE_IEEEFP_H
19615 #  include <ieeefp.h>
19616 #endif
19618 #if HAVE_FP_CLASS_H
19619 #  include <fp_class.h>
19620 #endif
19622 /* Solaris */
19623 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
19624 #  define HAVE_ISINF 1
19625 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
19626 #endif
19628 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19629 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
19630 #  undef isnan
19631 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19632 #endif
19634 /* Digital UNIX */
19635 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
19636 #  define HAVE_ISINF 1
19637 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19638 #endif
19640 /* AIX */
19641 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
19642 #  define HAVE_ISINF 1
19643 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
19644 #endif
19646 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
19647 #  define HAVE_ISINF 1
19648 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
19649 #endif
19651 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
19652 #  define HAVE_ISINF 1
19653 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
19654 #endif
19656 #include <stdio.h>
19657 int main(void){
19658     double rrdnan,rrdinf,rrdc,rrdzero;
19659     fpsetmask(0);
19660     /* some math to see if we get a floating point exception */
19661     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19662     rrdnan=0.0/rrdzero; /* especially here */
19663     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19664                   /* at run time without sig fpe */
19665     rrdc = rrdinf + rrdnan;
19666     rrdc = rrdinf / rrdnan;
19667     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19668     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19669     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19670     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19671     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19672     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19673     return 0;
19674  }
19675 _ACEOF
19676 rm -f conftest$ac_exeext
19677 if { (ac_try="$ac_link"
19678 case "(($ac_try" in
19679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680   *) ac_try_echo=$ac_try;;
19681 esac
19682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19683 $as_echo "$ac_try_echo") >&5
19684   (eval "$ac_link") 2>&5
19685   ac_status=$?
19686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19688   { (case "(($ac_try" in
19689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690   *) ac_try_echo=$ac_try;;
19691 esac
19692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19693 $as_echo "$ac_try_echo") >&5
19694   (eval "$ac_try") 2>&5
19695   ac_status=$?
19696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); }; }; then
19698   rd_cv_ieee_mask=yes
19699 else
19700   $as_echo "$as_me: program exited with status $ac_status" >&5
19701 $as_echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 ( exit $ac_status )
19705 rd_cv_ieee_mask=no
19707 rm -rf conftest.dSYM
19708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19714 if test x${rd_cv_ieee_mask} = "xyes"; then
19715  { $as_echo "$as_me:$LINENO: result: yes" >&5
19716 $as_echo "yes" >&6; }
19717  cat >>confdefs.h <<\_ACEOF
19718 #define MUST_DISABLE_FPMASK 1
19719 _ACEOF
19721                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
19722 else
19723  { $as_echo "$as_me:$LINENO: result: no" >&5
19724 $as_echo "no" >&6; }
19726 { $as_echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
19727 $as_echo_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... " >&6; }
19728 if test "${rd_cv_ieee_sigfpe+set}" = set; then
19729   $as_echo_n "(cached) " >&6
19730 else
19731   if test "$cross_compiling" = yes; then
19732   :
19733 else
19734   cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19740 #include <signal.h>
19742 #if HAVE_MATH_H
19743 #  include <math.h>
19744 #endif
19746 #if HAVE_FLOAT_H
19747 #  include <float.h>
19748 #endif
19750 #if HAVE_IEEEFP_H
19751 #  include <ieeefp.h>
19752 #endif
19754 #if HAVE_FP_CLASS_H
19755 #  include <fp_class.h>
19756 #endif
19758 /* Solaris */
19759 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
19760 #  define HAVE_ISINF 1
19761 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
19762 #endif
19764 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19765 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
19766 #  undef isnan
19767 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19768 #endif
19770 /* Digital UNIX */
19771 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
19772 #  define HAVE_ISINF 1
19773 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19774 #endif
19776 /* AIX */
19777 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
19778 #  define HAVE_ISINF 1
19779 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
19780 #endif
19782 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
19783 #  define HAVE_ISINF 1
19784 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
19785 #endif
19787 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
19788 #  define HAVE_ISINF 1
19789 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
19790 #endif
19792 #include <stdio.h>
19793 int main(void){
19794     double rrdnan,rrdinf,rrdc,rrdzero;
19795     signal(SIGFPE,SIG_IGN);
19796     /* some math to see if we get a floating point exception */
19797     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19798     rrdnan=0.0/rrdzero; /* especially here */
19799     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19800                   /* at run time without sig fpe */
19801     rrdc = rrdinf + rrdnan;
19802     rrdc = rrdinf / rrdnan;
19803     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19804     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19805     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19806     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19807     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19808     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19809     return 0;
19810  }
19811 _ACEOF
19812 rm -f conftest$ac_exeext
19813 if { (ac_try="$ac_link"
19814 case "(($ac_try" in
19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816   *) ac_try_echo=$ac_try;;
19817 esac
19818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19819 $as_echo "$ac_try_echo") >&5
19820   (eval "$ac_link") 2>&5
19821   ac_status=$?
19822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19824   { (case "(($ac_try" in
19825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826   *) ac_try_echo=$ac_try;;
19827 esac
19828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19829 $as_echo "$ac_try_echo") >&5
19830   (eval "$ac_try") 2>&5
19831   ac_status=$?
19832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; }; then
19834   rd_cv_ieee_sigfpe=yes
19835 else
19836   $as_echo "$as_me: program exited with status $ac_status" >&5
19837 $as_echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 ( exit $ac_status )
19841 rd_cv_ieee_sigfpe=no
19843 rm -rf conftest.dSYM
19844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19850 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
19851  { $as_echo "$as_me:$LINENO: result: yes" >&5
19852 $as_echo "yes" >&6; }
19853  cat >>confdefs.h <<\_ACEOF
19854 #define MUST_DISABLE_SIGFPE 1
19855 _ACEOF
19857                    PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
19858 else
19859  { $as_echo "$as_me:$LINENO: result: no" >&5
19860 $as_echo "no" >&6; }
19861  { { $as_echo "$as_me:$LINENO: error:
19862 Your Compiler does not do propper IEEE math ... Please find out how to
19863 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
19864 Check config.log to see what went wrong ...
19865 " >&5
19866 $as_echo "$as_me: error:
19867 Your Compiler does not do propper IEEE math ... Please find out how to
19868 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
19869 Check config.log to see what went wrong ...
19870 " >&2;}
19871    { (exit 1); exit 1; }; }
19903 ac_ext=c
19904 ac_cpp='$CPP $CPPFLAGS'
19905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19913 case $TERM in
19914        #   for the most important terminal types we directly know the sequences
19915        xterm|xterm*|vt220|vt220*)
19916                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
19917                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
19918        ;;
19919        vt100|vt100*|cygwin)
19920                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
19921                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
19922        ;;
19923        *)
19924                T_MD=''
19925                T_ME=''
19926        ;;
19927 esac
19928   { $as_echo "$as_me:$LINENO: result: " >&5
19929 $as_echo "" >&6; }
19930   { $as_echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
19931 $as_echo "${T_MD}Resolve Portability Issues${T_ME}" >&6; }
19935 { $as_echo "$as_me:$LINENO: checking if msync with MS_ASYNC updates the files mtime" >&5
19936 $as_echo_n "checking if msync with MS_ASYNC updates the files mtime... " >&6; }
19937 if test "${rd_cv_ms_async+set}" = set; then
19938   $as_echo_n "(cached) " >&6
19939 else
19940   if test "$cross_compiling" = yes; then
19941   :
19942 else
19943   cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h.  */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h.  */
19950 #include <fcntl.h>
19951 #include <sys/types.h>
19952 #include <sys/stat.h>
19953 #include <unistd.h>
19954 #include <stdio.h>
19955 #include <sys/mman.h>
19956 #include <stdlib.h>
19957 #include <utime.h>
19958 int main(void){
19959         int fd;
19960         struct stat stbuf;
19961         char *addr;
19962         int res;
19963         char temp[] = "mmaptestXXXXXX";
19964         struct utimbuf newtime;
19966         time_t create_ts;
19967         fd = mkstemp(temp);
19968         if (fd == -1){
19969             perror(temp);
19970             return 1;
19971         }
19972         write(fd,"12345\n", 6);
19973         stat(temp, &stbuf);
19974         create_ts = stbuf.st_mtime;
19975         newtime.actime = 0;
19976         newtime.modtime = 0;
19977         utime(temp,&newtime);
19978         addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
19979         if (addr == MAP_FAILED) {
19980             perror("mmap");
19981             goto bad_exit;
19982         }
19983         addr[0]='x';
19984         res = msync(addr, 4, MS_ASYNC);
19985         if (res == -1) {
19986            perror("msync");
19987            goto bad_exit;
19988         }
19989         res = close(fd);
19990         if (res == -1) {
19991            perror("close");
19992            goto bad_exit;
19993         }
19994         /* The ASYNC means that we schedule the msync and return immediately.
19995            Since we want to see if the modification time is updated upon
19996            msync(), we have to make sure that our asynchronous request
19997            completes before we stat below. In a real application, the
19998            request would be completed at a random time in the future
19999            but for this test we do not want to wait an arbitrary amount of
20000            time, so force a commit now.  */
20001         sync();
20002         stat(temp, &stbuf);
20003         if (create_ts > stbuf.st_mtime){
20004            goto bad_exit;
20005         }
20006         unlink(temp);
20007         return 0;
20008      bad_exit:
20009         unlink(temp);
20010         return 1;
20013 _ACEOF
20014 rm -f conftest$ac_exeext
20015 if { (ac_try="$ac_link"
20016 case "(($ac_try" in
20017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018   *) ac_try_echo=$ac_try;;
20019 esac
20020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20021 $as_echo "$ac_try_echo") >&5
20022   (eval "$ac_link") 2>&5
20023   ac_status=$?
20024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20026   { (case "(($ac_try" in
20027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028   *) ac_try_echo=$ac_try;;
20029 esac
20030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20031 $as_echo "$ac_try_echo") >&5
20032   (eval "$ac_try") 2>&5
20033   ac_status=$?
20034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036   rd_cv_ms_async=ok
20037 else
20038   $as_echo "$as_me: program exited with status $ac_status" >&5
20039 $as_echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 ( exit $ac_status )
20043 rd_cv_ms_async=broken
20045 rm -rf conftest.dSYM
20046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20054 if test "${rd_cv_ms_async}" = "ok"; then
20055  { $as_echo "$as_me:$LINENO: result: yes" >&5
20056 $as_echo "yes" >&6; }
20057 else
20059 cat >>confdefs.h <<_ACEOF
20060 #define HAVE_BROKEN_MS_ASYNC 1
20061 _ACEOF
20063  { $as_echo "$as_me:$LINENO: result: no" >&5
20064 $as_echo "no" >&6; }
20065  { $as_echo "$as_me:$LINENO: WARNING: With mmap access, your platform fails to update the files" >&5
20066 $as_echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
20067  { $as_echo "$as_me:$LINENO: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
20068 $as_echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
20069  { $as_echo "$as_me:$LINENO: WARNING: file it opens for rw access." >&5
20070 $as_echo "$as_me: WARNING: file it opens for rw access." >&2;}
20071  sleep 2
20078 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
20079 $as_echo_n "checking for opterr... " >&6; }
20080 if test "${rd_cv_var_int_opterr+set}" = set; then
20081   $as_echo_n "(cached) " >&6
20082 else
20083   cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 #include <unistd.h>
20090 int
20091 main ()
20093 extern int opterr; opterr = 1;
20094   ;
20095   return 0;
20097 _ACEOF
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102   *) ac_try_echo=$ac_try;;
20103 esac
20104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20105 $as_echo "$ac_try_echo") >&5
20106   (eval "$ac_link") 2>conftest.er1
20107   ac_status=$?
20108   grep -v '^ *+' conftest.er1 >conftest.err
20109   rm -f conftest.er1
20110   cat conftest.err >&5
20111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); } && {
20113          test -z "$ac_c_werror_flag" ||
20114          test ! -s conftest.err
20115        } && test -s conftest$ac_exeext && {
20116          test "$cross_compiling" = yes ||
20117          $as_test_x conftest$ac_exeext
20118        }; then
20119   rd_cv_var_int_opterr=yes
20120 else
20121   $as_echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124         rd_cv_var_int_opterr=no
20127 rm -rf conftest.dSYM
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129       conftest$ac_exeext conftest.$ac_ext
20131 { $as_echo "$as_me:$LINENO: result: $rd_cv_var_int_opterr" >&5
20132 $as_echo "$rd_cv_var_int_opterr" >&6; }
20133 if test x"$rd_cv_var_int_opterr" = x"yes"; then
20135 cat >>confdefs.h <<\_ACEOF
20136 #define HAVE_INT_OPTERR 1
20137 _ACEOF
20141 build_getopt=no
20142 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
20143 { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
20144 $as_echo_n "checking for getopt_long... " >&6; }
20145 if test "${ac_cv_func_getopt_long+set}" = set; then
20146   $as_echo_n "(cached) " >&6
20147 else
20148   cat >conftest.$ac_ext <<_ACEOF
20149 /* confdefs.h.  */
20150 _ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h.  */
20154 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
20155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20156 #define getopt_long innocuous_getopt_long
20158 /* System header to define __stub macros and hopefully few prototypes,
20159     which can conflict with char getopt_long (); below.
20160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20161     <limits.h> exists even on freestanding compilers.  */
20163 #ifdef __STDC__
20164 # include <limits.h>
20165 #else
20166 # include <assert.h>
20167 #endif
20169 #undef getopt_long
20171 /* Override any GCC internal prototype to avoid an error.
20172    Use char because int might match the return type of a GCC
20173    builtin and then its argument prototype would still apply.  */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 char getopt_long ();
20178 /* The GNU C library defines this for functions which it implements
20179     to always fail with ENOSYS.  Some functions are actually named
20180     something starting with __ and the normal name is an alias.  */
20181 #if defined __stub_getopt_long || defined __stub___getopt_long
20182 choke me
20183 #endif
20185 int
20186 main ()
20188 return getopt_long ();
20189   ;
20190   return 0;
20192 _ACEOF
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20200 $as_echo "$ac_try_echo") >&5
20201   (eval "$ac_link") 2>conftest.er1
20202   ac_status=$?
20203   grep -v '^ *+' conftest.er1 >conftest.err
20204   rm -f conftest.er1
20205   cat conftest.err >&5
20206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); } && {
20208          test -z "$ac_c_werror_flag" ||
20209          test ! -s conftest.err
20210        } && test -s conftest$ac_exeext && {
20211          test "$cross_compiling" = yes ||
20212          $as_test_x conftest$ac_exeext
20213        }; then
20214   ac_cv_func_getopt_long=yes
20215 else
20216   $as_echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219         ac_cv_func_getopt_long=no
20222 rm -rf conftest.dSYM
20223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20224       conftest$ac_exeext conftest.$ac_ext
20226 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
20227 $as_echo "$ac_cv_func_getopt_long" >&6; }
20228 if test "x$ac_cv_func_getopt_long" = x""yes; then
20229   :
20230 else
20232 RRD_GETOPT_LONG="getopt_long"
20233 build_getopt=yes
20238  if test $build_getopt = yes; then
20239   BUILD_GETOPT_TRUE=
20240   BUILD_GETOPT_FALSE='#'
20241 else
20242   BUILD_GETOPT_TRUE='#'
20243   BUILD_GETOPT_FALSE=
20248 { $as_echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
20249 $as_echo_n "checking if realloc can deal with NULL... " >&6; }
20250 if test "${rd_cv_null_realloc+set}" = set; then
20251   $as_echo_n "(cached) " >&6
20252 else
20253   if test "$cross_compiling" = yes; then
20254   :
20255 else
20256   cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h.  */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h.  */
20262 #include <stdlib.h>
20263               int main(void){
20264               char *x = NULL;
20265               x = realloc (x,10);
20266               if (x==NULL) return 1;
20267               return 0;
20268              }
20269 _ACEOF
20270 rm -f conftest$ac_exeext
20271 if { (ac_try="$ac_link"
20272 case "(($ac_try" in
20273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274   *) ac_try_echo=$ac_try;;
20275 esac
20276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20277 $as_echo "$ac_try_echo") >&5
20278   (eval "$ac_link") 2>&5
20279   ac_status=$?
20280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20282   { (case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20287 $as_echo "$ac_try_echo") >&5
20288   (eval "$ac_try") 2>&5
20289   ac_status=$?
20290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); }; }; then
20292   rd_cv_null_realloc=yes
20293 else
20294   $as_echo "$as_me: program exited with status $ac_status" >&5
20295 $as_echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ( exit $ac_status )
20299 rd_cv_null_realloc=nope
20301 rm -rf conftest.dSYM
20302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20307 { $as_echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
20308 $as_echo "$rd_cv_null_realloc" >&6; }
20310 if test x"$rd_cv_null_realloc" = xnope; then
20311 cat >>confdefs.h <<\_ACEOF
20312 #define NO_NULL_REALLOC 1
20313 _ACEOF
20317 ac_ext=c
20318 ac_cpp='$CPP $CPPFLAGS'
20319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20323 { $as_echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
20324 $as_echo_n "checking if ctime_r need special care to act posixly correct... " >&6; }
20325 cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331 #include <time.h>
20332 int
20333 main ()
20335 ctime_r(NULL,NULL,0)
20337   ;
20338   return 0;
20340 _ACEOF
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (ac_try="$ac_link"
20343 case "(($ac_try" in
20344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345   *) ac_try_echo=$ac_try;;
20346 esac
20347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20348 $as_echo "$ac_try_echo") >&5
20349   (eval "$ac_link") 2>conftest.er1
20350   ac_status=$?
20351   grep -v '^ *+' conftest.er1 >conftest.err
20352   rm -f conftest.er1
20353   cat conftest.err >&5
20354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } && {
20356          test -z "$ac_c_werror_flag" ||
20357          test ! -s conftest.err
20358        } && test -s conftest$ac_exeext && {
20359          test "$cross_compiling" = yes ||
20360          $as_test_x conftest$ac_exeext
20361        }; then
20362    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
20363       cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h.  */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h.  */
20369 #include <time.h>
20370 int
20371 main ()
20373 ctime_r(NULL,NULL)
20375   ;
20376   return 0;
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (ac_try="$ac_link"
20381 case "(($ac_try" in
20382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383   *) ac_try_echo=$ac_try;;
20384 esac
20385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20386 $as_echo "$ac_try_echo") >&5
20387   (eval "$ac_link") 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } && {
20394          test -z "$ac_c_werror_flag" ||
20395          test ! -s conftest.err
20396        } && test -s conftest$ac_exeext && {
20397          test "$cross_compiling" = yes ||
20398          $as_test_x conftest$ac_exeext
20399        }; then
20400   { $as_echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
20401 $as_echo "yes, this seems to be solaris style" >&6; }
20402 else
20403   $as_echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20406         { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
20407 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
20408    { (exit 1); exit 1; }; }
20412 rm -rf conftest.dSYM
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414       conftest$ac_exeext conftest.$ac_ext
20416 else
20417   $as_echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420          cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h.  */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h.  */
20426 #include <time.h>
20427 int
20428 main ()
20430 ctime_r(NULL,NULL)
20432   ;
20433   return 0;
20435 _ACEOF
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20443 $as_echo "$ac_try_echo") >&5
20444   (eval "$ac_link") 2>conftest.er1
20445   ac_status=$?
20446   grep -v '^ *+' conftest.er1 >conftest.err
20447   rm -f conftest.er1
20448   cat conftest.err >&5
20449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); } && {
20451          test -z "$ac_c_werror_flag" ||
20452          test ! -s conftest.err
20453        } && test -s conftest$ac_exeext && {
20454          test "$cross_compiling" = yes ||
20455          $as_test_x conftest$ac_exeext
20456        }; then
20457   { $as_echo "$as_me:$LINENO: result: no" >&5
20458 $as_echo "no" >&6; }
20459 else
20460   $as_echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20463         { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
20464 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
20465    { (exit 1); exit 1; }; }
20469 rm -rf conftest.dSYM
20470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20471       conftest$ac_exeext conftest.$ac_ext
20476 rm -rf conftest.dSYM
20477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20478       conftest$ac_exeext conftest.$ac_ext
20479 ac_ext=c
20480 ac_cpp='$CPP $CPPFLAGS'
20481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20490 if test $enable_pthread != no; then
20493 ac_ext=c
20494 ac_cpp='$CPP $CPPFLAGS'
20495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20499 acx_pthread_ok=no
20501 # We used to check for pthread.h first, but this fails if pthread.h
20502 # requires special compiler flags (e.g. on True64 or Sequent).
20503 # It gets checked for in the link test anyway.
20505 # First of all, check if the user has set any of the PTHREAD_LIBS,
20506 # etcetera environment variables, and if threads linking works using
20507 # them:
20508 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20509         save_CFLAGS="$CFLAGS"
20510         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20511         save_LIBS="$LIBS"
20512         LIBS="$PTHREAD_LIBS $LIBS"
20513         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20514 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20515         cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h.  */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h.  */
20522 /* Override any GCC internal prototype to avoid an error.
20523    Use char because int might match the return type of a GCC
20524    builtin and then its argument prototype would still apply.  */
20525 #ifdef __cplusplus
20526 extern "C"
20527 #endif
20528 char pthread_join ();
20529 int
20530 main ()
20532 return pthread_join ();
20533   ;
20534   return 0;
20536 _ACEOF
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541   *) ac_try_echo=$ac_try;;
20542 esac
20543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20544 $as_echo "$ac_try_echo") >&5
20545   (eval "$ac_link") 2>conftest.er1
20546   ac_status=$?
20547   grep -v '^ *+' conftest.er1 >conftest.err
20548   rm -f conftest.er1
20549   cat conftest.err >&5
20550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } && {
20552          test -z "$ac_c_werror_flag" ||
20553          test ! -s conftest.err
20554        } && test -s conftest$ac_exeext && {
20555          test "$cross_compiling" = yes ||
20556          $as_test_x conftest$ac_exeext
20557        }; then
20558   acx_pthread_ok=yes
20559 else
20560   $as_echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20566 rm -rf conftest.dSYM
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568       conftest$ac_exeext conftest.$ac_ext
20569         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20570 $as_echo "$acx_pthread_ok" >&6; }
20571         if test x"$acx_pthread_ok" = xno; then
20572                 PTHREAD_LIBS=""
20573                 PTHREAD_CFLAGS=""
20574         fi
20575         LIBS="$save_LIBS"
20576         CFLAGS="$save_CFLAGS"
20579 # We must check for the threads library under a number of different
20580 # names; the ordering is very important because some systems
20581 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20582 # libraries is broken (non-POSIX).
20584 # Create a list of thread flags to try.  Items starting with a "-" are
20585 # C compiler flags, and other items are library names, except for "none"
20586 # which indicates that we try without any flags at all, and "pthread-config"
20587 # which is a program returning the flags for the Pth emulation library.
20589 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20591 # The ordering *is* (sometimes) important.  Some notes on the
20592 # individual items follow:
20594 # pthreads: AIX (must check this before -lpthread)
20595 # none: in case threads are in libc; should be tried before -Kthread and
20596 #       other compiler flags to prevent continual compiler warnings
20597 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20598 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20599 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20600 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20601 # -pthreads: Solaris/gcc
20602 # -mthreads: Mingw32/gcc, Lynx/gcc
20603 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20604 #      doesn't hurt to check since this sometimes defines pthreads too;
20605 #      also defines -D_REENTRANT)
20606 # pthread: Linux, etcetera
20607 # --thread-safe: KAI C++
20608 # pthread-config: use pthread-config program (for GNU Pth library)
20610 case "${host_cpu}-${host_os}" in
20611         *solaris*)
20613         # On Solaris (at least, for some versions), libc contains stubbed
20614         # (non-functional) versions of the pthreads routines, so link-based
20615         # tests will erroneously succeed.  (We need to link with -pthread or
20616         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20617         # a function called by this macro, so we could check for that, but
20618         # who knows whether they'll stub that too in a future libc.)  So,
20619         # we'll just look for -pthreads and -lpthread first:
20621         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20622         ;;
20623 esac
20625 if test x"$acx_pthread_ok" = xno; then
20626 for flag in $acx_pthread_flags; do
20628         case $flag in
20629                 none)
20630                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20631 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20632                 ;;
20634                 -*)
20635                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20636 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20637                 PTHREAD_CFLAGS="$flag"
20638                 ;;
20640                 pthread-config)
20641                 # Extract the first word of "pthread-config", so it can be a program name with args.
20642 set dummy pthread-config; ac_word=$2
20643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20644 $as_echo_n "checking for $ac_word... " >&6; }
20645 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20646   $as_echo_n "(cached) " >&6
20647 else
20648   if test -n "$acx_pthread_config"; then
20649   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20650 else
20651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20652 for as_dir in $PATH
20654   IFS=$as_save_IFS
20655   test -z "$as_dir" && as_dir=.
20656   for ac_exec_ext in '' $ac_executable_extensions; do
20657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20658     ac_cv_prog_acx_pthread_config="yes"
20659     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20660     break 2
20661   fi
20662 done
20663 done
20664 IFS=$as_save_IFS
20666   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20669 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20670 if test -n "$acx_pthread_config"; then
20671   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20672 $as_echo "$acx_pthread_config" >&6; }
20673 else
20674   { $as_echo "$as_me:$LINENO: result: no" >&5
20675 $as_echo "no" >&6; }
20679                 if test x"$acx_pthread_config" = xno; then continue; fi
20680                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20681                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20682                 ;;
20684                 *)
20685                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20686 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20687                 PTHREAD_LIBS="-l$flag"
20688                 ;;
20689         esac
20691         save_LIBS="$LIBS"
20692         save_CFLAGS="$CFLAGS"
20693         LIBS="$PTHREAD_LIBS $LIBS"
20694         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20696         # Check for various functions.  We must include pthread.h,
20697         # since some functions may be macros.  (On the Sequent, we
20698         # need a special flag -Kthread to make this header compile.)
20699         # We check for pthread_join because it is in -lpthread on IRIX
20700         # while pthread_create is in libc.  We check for pthread_attr_init
20701         # due to DEC craziness with -lpthreads.  We check for
20702         # pthread_cleanup_push because it is one of the few pthread
20703         # functions on Solaris that doesn't have a non-functional libc stub.
20704         # We try pthread_create on general principles.
20705         cat >conftest.$ac_ext <<_ACEOF
20706 /* confdefs.h.  */
20707 _ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h.  */
20711 #include <pthread.h>
20712 int
20713 main ()
20715 pthread_t th; pthread_join(th, 0);
20716                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
20717                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20718   ;
20719   return 0;
20721 _ACEOF
20722 rm -f conftest.$ac_objext conftest$ac_exeext
20723 if { (ac_try="$ac_link"
20724 case "(($ac_try" in
20725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726   *) ac_try_echo=$ac_try;;
20727 esac
20728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20729 $as_echo "$ac_try_echo") >&5
20730   (eval "$ac_link") 2>conftest.er1
20731   ac_status=$?
20732   grep -v '^ *+' conftest.er1 >conftest.err
20733   rm -f conftest.er1
20734   cat conftest.err >&5
20735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); } && {
20737          test -z "$ac_c_werror_flag" ||
20738          test ! -s conftest.err
20739        } && test -s conftest$ac_exeext && {
20740          test "$cross_compiling" = yes ||
20741          $as_test_x conftest$ac_exeext
20742        }; then
20743   acx_pthread_ok=yes
20744 else
20745   $as_echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20751 rm -rf conftest.dSYM
20752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20753       conftest$ac_exeext conftest.$ac_ext
20755         LIBS="$save_LIBS"
20756         CFLAGS="$save_CFLAGS"
20758         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20759 $as_echo "$acx_pthread_ok" >&6; }
20760         if test "x$acx_pthread_ok" = xyes; then
20761                 break;
20762         fi
20764         PTHREAD_LIBS=""
20765         PTHREAD_CFLAGS=""
20766 done
20769 # Various other checks:
20770 if test "x$acx_pthread_ok" = xyes; then
20771         save_LIBS="$LIBS"
20772         LIBS="$PTHREAD_LIBS $LIBS"
20773         save_CFLAGS="$CFLAGS"
20774         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20776         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20777         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
20778 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20779         attr_name=unknown
20780         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20781             cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h.  */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h.  */
20787 #include <pthread.h>
20788 int
20789 main ()
20791 int attr=$attr;
20792   ;
20793   return 0;
20795 _ACEOF
20796 rm -f conftest.$ac_objext conftest$ac_exeext
20797 if { (ac_try="$ac_link"
20798 case "(($ac_try" in
20799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800   *) ac_try_echo=$ac_try;;
20801 esac
20802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20803 $as_echo "$ac_try_echo") >&5
20804   (eval "$ac_link") 2>conftest.er1
20805   ac_status=$?
20806   grep -v '^ *+' conftest.er1 >conftest.err
20807   rm -f conftest.er1
20808   cat conftest.err >&5
20809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); } && {
20811          test -z "$ac_c_werror_flag" ||
20812          test ! -s conftest.err
20813        } && test -s conftest$ac_exeext && {
20814          test "$cross_compiling" = yes ||
20815          $as_test_x conftest$ac_exeext
20816        }; then
20817   attr_name=$attr; break
20818 else
20819   $as_echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20825 rm -rf conftest.dSYM
20826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20827       conftest$ac_exeext conftest.$ac_ext
20828         done
20829         { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
20830 $as_echo "$attr_name" >&6; }
20831         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20833 cat >>confdefs.h <<_ACEOF
20834 #define PTHREAD_CREATE_JOINABLE $attr_name
20835 _ACEOF
20837         fi
20839         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
20840 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20841         x_rflag=no
20842         case "${host_cpu}-${host_os}" in
20843             *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
20844             *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
20845             *-linux*)
20846             if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
20847                 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
20848                 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
20849                 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
20850             fi;;
20851         esac
20852         { $as_echo "$as_me:$LINENO: result: ${x_rflag}" >&5
20853 $as_echo "${x_rflag}" >&6; }
20854         if test "x$x_rflag" != xno; then
20855             PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
20856         fi
20858         LIBS="$save_LIBS"
20859         CFLAGS="$save_CFLAGS"
20861         # More AIX lossage: must compile with cc_r
20862         # Extract the first word of "cc_r", so it can be a program name with args.
20863 set dummy cc_r; ac_word=$2
20864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20865 $as_echo_n "checking for $ac_word... " >&6; }
20866 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
20867   $as_echo_n "(cached) " >&6
20868 else
20869   if test -n "$PTHREAD_CC"; then
20870   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20871 else
20872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20873 for as_dir in $PATH
20875   IFS=$as_save_IFS
20876   test -z "$as_dir" && as_dir=.
20877   for ac_exec_ext in '' $ac_executable_extensions; do
20878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20879     ac_cv_prog_PTHREAD_CC="cc_r"
20880     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20881     break 2
20882   fi
20883 done
20884 done
20885 IFS=$as_save_IFS
20887   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
20890 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20891 if test -n "$PTHREAD_CC"; then
20892   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
20893 $as_echo "$PTHREAD_CC" >&6; }
20894 else
20895   { $as_echo "$as_me:$LINENO: result: no" >&5
20896 $as_echo "no" >&6; }
20900 else
20901         PTHREAD_CC="$CC"
20908 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20909 if test x"$acx_pthread_ok" = xyes; then
20911     MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
20912     MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
20914         :
20915 else
20916         acx_pthread_ok=no
20919 ac_ext=c
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20929 if test  "x$x_rflag" != "xno"; then
20930    CPPFLAGS="$CPPFLAGS $x_rflag"
20933  if test $enable_pthread != no; then
20934   BUILD_MULTITHREAD_TRUE=
20935   BUILD_MULTITHREAD_FALSE='#'
20936 else
20937   BUILD_MULTITHREAD_TRUE='#'
20938   BUILD_MULTITHREAD_FALSE=
20942 ac_ext=c
20943 ac_cpp='$CPP $CPPFLAGS'
20944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20948 { $as_echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
20949 $as_echo_n "checking do we need malloc/malloc.h... " >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 #include <stdlib.h>
20957 int
20958 main ()
20960 malloc(1)
20962   ;
20963   return 0;
20965 _ACEOF
20966 rm -f conftest.$ac_objext conftest$ac_exeext
20967 if { (ac_try="$ac_link"
20968 case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20973 $as_echo "$ac_try_echo") >&5
20974   (eval "$ac_link") 2>conftest.er1
20975   ac_status=$?
20976   grep -v '^ *+' conftest.er1 >conftest.err
20977   rm -f conftest.er1
20978   cat conftest.err >&5
20979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); } && {
20981          test -z "$ac_c_werror_flag" ||
20982          test ! -s conftest.err
20983        } && test -s conftest$ac_exeext && {
20984          test "$cross_compiling" = yes ||
20985          $as_test_x conftest$ac_exeext
20986        }; then
20987    { $as_echo "$as_me:$LINENO: result: nope, works out of the box" >&5
20988 $as_echo "nope, works out of the box" >&6; }
20989 else
20990   $as_echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20993          cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h.  */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h.  */
20999 #include <stdlib.h>
21000                   #include <malloc/malloc.h>
21001 int
21002 main ()
21004 malloc(1)
21006   ;
21007   return 0;
21009 _ACEOF
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (ac_try="$ac_link"
21012 case "(($ac_try" in
21013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014   *) ac_try_echo=$ac_try;;
21015 esac
21016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017 $as_echo "$ac_try_echo") >&5
21018   (eval "$ac_link") 2>conftest.er1
21019   ac_status=$?
21020   grep -v '^ *+' conftest.er1 >conftest.err
21021   rm -f conftest.er1
21022   cat conftest.err >&5
21023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); } && {
21025          test -z "$ac_c_werror_flag" ||
21026          test ! -s conftest.err
21027        } && test -s conftest$ac_exeext && {
21028          test "$cross_compiling" = yes ||
21029          $as_test_x conftest$ac_exeext
21030        }; then
21032            cat >>confdefs.h <<\_ACEOF
21033 #define MUST_HAVE_MALLOC_MALLOC_H 1
21034 _ACEOF
21036            { $as_echo "$as_me:$LINENO: result: yes we do" >&5
21037 $as_echo "yes we do" >&6; }
21038 else
21039   $as_echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042         { { $as_echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
21043 $as_echo "$as_me: error: Can not figure how to compile malloc" >&2;}
21044    { (exit 1); exit 1; }; }
21048 rm -rf conftest.dSYM
21049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21050       conftest$ac_exeext conftest.$ac_ext
21055 rm -rf conftest.dSYM
21056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21057       conftest$ac_exeext conftest.$ac_ext
21058 ac_ext=c
21059 ac_cpp='$CPP $CPPFLAGS'
21060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21066 case $TERM in
21067        #   for the most important terminal types we directly know the sequences
21068        xterm|xterm*|vt220|vt220*)
21069                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
21070                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
21071        ;;
21072        vt100|vt100*|cygwin)
21073                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
21074                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
21075        ;;
21076        *)
21077                T_MD=''
21078                T_ME=''
21079        ;;
21080 esac
21081   { $as_echo "$as_me:$LINENO: result: " >&5
21082 $as_echo "" >&6; }
21083   { $as_echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
21084 $as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
21088  if test $enable_rrdcgi != no; then
21089   BUILD_RRDCGI_TRUE=
21090   BUILD_RRDCGI_FALSE='#'
21091 else
21092   BUILD_RRDCGI_TRUE='#'
21093   BUILD_RRDCGI_FALSE=
21098 CORE_LIBS="$LIBS"
21101  ac_ext=c
21102 ac_cpp='$CPP $CPPFLAGS'
21103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21107  EX_CHECK_STATE=NO
21108  ex_check_save_LIBS=${LIBS}
21109  ex_check_save_CPPFLAGS=${CPPFLAGS}
21110  ex_check_save_LDFLAGS=${LDFLAGS}
21111  if test "x""" != "x"; then
21112    CPPFLAGS="$CPPFLAGS -I"""
21113  fi
21114   { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
21115 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
21116 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
21117   $as_echo_n "(cached) " >&6
21118 else
21119   ac_check_lib_save_LIBS=$LIBS
21120 LIBS="-lcairo  $LIBS"
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h.  */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h.  */
21128 /* Override any GCC internal prototype to avoid an error.
21129    Use char because int might match the return type of a GCC
21130    builtin and then its argument prototype would still apply.  */
21131 #ifdef __cplusplus
21132 extern "C"
21133 #endif
21134 char cairo_font_options_create ();
21135 int
21136 main ()
21138 return cairo_font_options_create ();
21139   ;
21140   return 0;
21142 _ACEOF
21143 rm -f conftest.$ac_objext conftest$ac_exeext
21144 if { (ac_try="$ac_link"
21145 case "(($ac_try" in
21146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147   *) ac_try_echo=$ac_try;;
21148 esac
21149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21150 $as_echo "$ac_try_echo") >&5
21151   (eval "$ac_link") 2>conftest.er1
21152   ac_status=$?
21153   grep -v '^ *+' conftest.er1 >conftest.err
21154   rm -f conftest.er1
21155   cat conftest.err >&5
21156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } && {
21158          test -z "$ac_c_werror_flag" ||
21159          test ! -s conftest.err
21160        } && test -s conftest$ac_exeext && {
21161          test "$cross_compiling" = yes ||
21162          $as_test_x conftest$ac_exeext
21163        }; then
21164   ac_cv_lib_cairo_cairo_font_options_create=yes
21165 else
21166   $as_echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169         ac_cv_lib_cairo_cairo_font_options_create=no
21172 rm -rf conftest.dSYM
21173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21174       conftest$ac_exeext conftest.$ac_ext
21175 LIBS=$ac_check_lib_save_LIBS
21177 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
21178 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
21179 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
21181     if test "${ac_cv_header_cairo_h+set}" = set; then
21182   { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
21183 $as_echo_n "checking for cairo.h... " >&6; }
21184 if test "${ac_cv_header_cairo_h+set}" = set; then
21185   $as_echo_n "(cached) " >&6
21187 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
21188 $as_echo "$ac_cv_header_cairo_h" >&6; }
21189 else
21190   # Is the header compilable?
21191 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
21192 $as_echo_n "checking cairo.h usability... " >&6; }
21193 cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199 $ac_includes_default
21200 #include <cairo.h>
21201 _ACEOF
21202 rm -f conftest.$ac_objext
21203 if { (ac_try="$ac_compile"
21204 case "(($ac_try" in
21205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206   *) ac_try_echo=$ac_try;;
21207 esac
21208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21209 $as_echo "$ac_try_echo") >&5
21210   (eval "$ac_compile") 2>conftest.er1
21211   ac_status=$?
21212   grep -v '^ *+' conftest.er1 >conftest.err
21213   rm -f conftest.er1
21214   cat conftest.err >&5
21215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); } && {
21217          test -z "$ac_c_werror_flag" ||
21218          test ! -s conftest.err
21219        } && test -s conftest.$ac_objext; then
21220   ac_header_compiler=yes
21221 else
21222   $as_echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21225         ac_header_compiler=no
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21230 $as_echo "$ac_header_compiler" >&6; }
21232 # Is the header present?
21233 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
21234 $as_echo_n "checking cairo.h presence... " >&6; }
21235 cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h.  */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h.  */
21241 #include <cairo.h>
21242 _ACEOF
21243 if { (ac_try="$ac_cpp conftest.$ac_ext"
21244 case "(($ac_try" in
21245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246   *) ac_try_echo=$ac_try;;
21247 esac
21248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21249 $as_echo "$ac_try_echo") >&5
21250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21251   ac_status=$?
21252   grep -v '^ *+' conftest.er1 >conftest.err
21253   rm -f conftest.er1
21254   cat conftest.err >&5
21255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); } >/dev/null && {
21257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21258          test ! -s conftest.err
21259        }; then
21260   ac_header_preproc=yes
21261 else
21262   $as_echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265   ac_header_preproc=no
21268 rm -f conftest.err conftest.$ac_ext
21269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21270 $as_echo "$ac_header_preproc" >&6; }
21272 # So?  What about this header?
21273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21274   yes:no: )
21275     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
21276 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21277     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
21278 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
21279     ac_header_preproc=yes
21280     ;;
21281   no:yes:* )
21282     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
21283 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
21284     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
21285 $as_echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
21286     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
21287 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
21288     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
21289 $as_echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21290     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
21291 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
21292     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
21293 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
21295     ;;
21296 esac
21297 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
21298 $as_echo_n "checking for cairo.h... " >&6; }
21299 if test "${ac_cv_header_cairo_h+set}" = set; then
21300   $as_echo_n "(cached) " >&6
21301 else
21302   ac_cv_header_cairo_h=$ac_header_preproc
21304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
21305 $as_echo "$ac_cv_header_cairo_h" >&6; }
21308 if test "x$ac_cv_header_cairo_h" = x""yes; then
21309   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
21315  if test $EX_CHECK_STATE = NO; then
21316         for ac_prog in pkg-config
21318   # Extract the first word of "$ac_prog", so it can be a program name with args.
21319 set dummy $ac_prog; ac_word=$2
21320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21321 $as_echo_n "checking for $ac_word... " >&6; }
21322 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
21323   $as_echo_n "(cached) " >&6
21324 else
21325   if test -n "$PKGCONFIG"; then
21326   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
21327 else
21328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21329 for as_dir in $PATH
21331   IFS=$as_save_IFS
21332   test -z "$as_dir" && as_dir=.
21333   for ac_exec_ext in '' $ac_executable_extensions; do
21334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21335     ac_cv_prog_PKGCONFIG="$ac_prog"
21336     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21337     break 2
21338   fi
21339 done
21340 done
21341 IFS=$as_save_IFS
21345 PKGCONFIG=$ac_cv_prog_PKGCONFIG
21346 if test -n "$PKGCONFIG"; then
21347   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
21348 $as_echo "$PKGCONFIG" >&6; }
21349 else
21350   { $as_echo "$as_me:$LINENO: result: no" >&5
21351 $as_echo "no" >&6; }
21355   test -n "$PKGCONFIG" && break
21356 done
21357 test -n "$PKGCONFIG" || PKGCONFIG="no"
21359     if test "$PKGCONFIG" != "no"; then
21360           if $PKGCONFIG --exists cairo-png; then
21361              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
21362              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
21363              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
21364              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
21365                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
21366              { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
21367 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
21368 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
21369   $as_echo_n "(cached) " >&6
21370 else
21371   ac_check_lib_save_LIBS=$LIBS
21372 LIBS="-lcairo  $LIBS"
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h.  */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h.  */
21380 /* Override any GCC internal prototype to avoid an error.
21381    Use char because int might match the return type of a GCC
21382    builtin and then its argument prototype would still apply.  */
21383 #ifdef __cplusplus
21384 extern "C"
21385 #endif
21386 char cairo_font_options_create ();
21387 int
21388 main ()
21390 return cairo_font_options_create ();
21391   ;
21392   return 0;
21394 _ACEOF
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21402 $as_echo "$ac_try_echo") >&5
21403   (eval "$ac_link") 2>conftest.er1
21404   ac_status=$?
21405   grep -v '^ *+' conftest.er1 >conftest.err
21406   rm -f conftest.er1
21407   cat conftest.err >&5
21408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } && {
21410          test -z "$ac_c_werror_flag" ||
21411          test ! -s conftest.err
21412        } && test -s conftest$ac_exeext && {
21413          test "$cross_compiling" = yes ||
21414          $as_test_x conftest$ac_exeext
21415        }; then
21416   ac_cv_lib_cairo_cairo_font_options_create=yes
21417 else
21418   $as_echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421         ac_cv_lib_cairo_cairo_font_options_create=no
21424 rm -rf conftest.dSYM
21425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21426       conftest$ac_exeext conftest.$ac_ext
21427 LIBS=$ac_check_lib_save_LIBS
21429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
21430 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
21431 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
21433                  unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
21434                  if test "${ac_cv_header_cairo_h+set}" = set; then
21435   { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
21436 $as_echo_n "checking for cairo.h... " >&6; }
21437 if test "${ac_cv_header_cairo_h+set}" = set; then
21438   $as_echo_n "(cached) " >&6
21440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
21441 $as_echo "$ac_cv_header_cairo_h" >&6; }
21442 else
21443   # Is the header compilable?
21444 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
21445 $as_echo_n "checking cairo.h usability... " >&6; }
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452 $ac_includes_default
21453 #include <cairo.h>
21454 _ACEOF
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21462 $as_echo "$ac_try_echo") >&5
21463   (eval "$ac_compile") 2>conftest.er1
21464   ac_status=$?
21465   grep -v '^ *+' conftest.er1 >conftest.err
21466   rm -f conftest.er1
21467   cat conftest.err >&5
21468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); } && {
21470          test -z "$ac_c_werror_flag" ||
21471          test ! -s conftest.err
21472        } && test -s conftest.$ac_objext; then
21473   ac_header_compiler=yes
21474 else
21475   $as_echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478         ac_header_compiler=no
21481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21482 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21483 $as_echo "$ac_header_compiler" >&6; }
21485 # Is the header present?
21486 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
21487 $as_echo_n "checking cairo.h presence... " >&6; }
21488 cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h.  */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h.  */
21494 #include <cairo.h>
21495 _ACEOF
21496 if { (ac_try="$ac_cpp conftest.$ac_ext"
21497 case "(($ac_try" in
21498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499   *) ac_try_echo=$ac_try;;
21500 esac
21501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21502 $as_echo "$ac_try_echo") >&5
21503   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } >/dev/null && {
21510          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21511          test ! -s conftest.err
21512        }; then
21513   ac_header_preproc=yes
21514 else
21515   $as_echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518   ac_header_preproc=no
21521 rm -f conftest.err conftest.$ac_ext
21522 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21523 $as_echo "$ac_header_preproc" >&6; }
21525 # So?  What about this header?
21526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21527   yes:no: )
21528     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
21529 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21530     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
21531 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
21532     ac_header_preproc=yes
21533     ;;
21534   no:yes:* )
21535     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
21536 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
21537     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
21538 $as_echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
21539     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
21540 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
21541     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
21542 $as_echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21543     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
21544 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
21545     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
21546 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
21548     ;;
21549 esac
21550 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
21551 $as_echo_n "checking for cairo.h... " >&6; }
21552 if test "${ac_cv_header_cairo_h+set}" = set; then
21553   $as_echo_n "(cached) " >&6
21554 else
21555   ac_cv_header_cairo_h=$ac_header_preproc
21557 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
21558 $as_echo "$ac_cv_header_cairo_h" >&6; }
21561 if test "x$ac_cv_header_cairo_h" = x""yes; then
21562   EX_CHECK_STATE=YES
21569           else
21570              { $as_echo "$as_me:$LINENO: WARNING:
21571 ----------------------------------------------------------------------------
21572 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
21573   You may want to set the PKG_CONFIG_PATH variable to point to its
21574   location.
21575 ----------------------------------------------------------------------------
21576                         " >&5
21577 $as_echo "$as_me: WARNING:
21578 ----------------------------------------------------------------------------
21579 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
21580   You may want to set the PKG_CONFIG_PATH variable to point to its
21581   location.
21582 ----------------------------------------------------------------------------
21583                         " >&2;}
21584            fi
21585      fi
21586   fi
21588   if test ${EX_CHECK_STATE} = NO; then
21589      { $as_echo "$as_me:$LINENO: WARNING:
21590 ----------------------------------------------------------------------------
21591 * I could not find a working copy of cairo-png. Check config.log for hints on why
21592   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21593   so that compiler and the linker can find libcairo and its header files. If
21594   you have not installed cairo-png, you can get it either from its original home on
21596      http://cairographics.org/releases/
21598   You can find also find an archive copy on
21600      http://oss.oetiker.ch/rrdtool/pub/libs
21602   The last tested version of cairo-png is 1.4.6.
21604        LIBS=$LIBS
21605    LDFLAGS=$LDFLAGS
21606   CPPFLAGS=$CPPFLAGS
21608 ----------------------------------------------------------------------------
21609                 " >&5
21610 $as_echo "$as_me: WARNING:
21611 ----------------------------------------------------------------------------
21612 * I could not find a working copy of cairo-png. Check config.log for hints on why
21613   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21614   so that compiler and the linker can find libcairo and its header files. If
21615   you have not installed cairo-png, you can get it either from its original home on
21617      http://cairographics.org/releases/
21619   You can find also find an archive copy on
21621      http://oss.oetiker.ch/rrdtool/pub/libs
21623   The last tested version of cairo-png is 1.4.6.
21625        LIBS=$LIBS
21626    LDFLAGS=$LDFLAGS
21627   CPPFLAGS=$CPPFLAGS
21629 ----------------------------------------------------------------------------
21630                 " >&2;}
21631        EX_CHECK_ALL_ERR=YES
21632        LIBS="${ex_check_save_LIBS}"
21633        CPPFLAGS="${ex_check_save_CPPFLAGS}"
21634        LDFLAGS="${ex_check_save_LDFLAGS}"
21635     fi
21636     ac_ext=c
21637 ac_cpp='$CPP $CPPFLAGS'
21638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21645  ac_ext=c
21646 ac_cpp='$CPP $CPPFLAGS'
21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21651  EX_CHECK_STATE=NO
21652  ex_check_save_LIBS=${LIBS}
21653  ex_check_save_CPPFLAGS=${CPPFLAGS}
21654  ex_check_save_LDFLAGS=${LDFLAGS}
21655  if test "x""" != "x"; then
21656    CPPFLAGS="$CPPFLAGS -I"""
21657  fi
21658   { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
21659 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
21660 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
21661   $as_echo_n "(cached) " >&6
21662 else
21663   ac_check_lib_save_LIBS=$LIBS
21664 LIBS="-lcairo  $LIBS"
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.  */
21672 /* Override any GCC internal prototype to avoid an error.
21673    Use char because int might match the return type of a GCC
21674    builtin and then its argument prototype would still apply.  */
21675 #ifdef __cplusplus
21676 extern "C"
21677 #endif
21678 char cairo_svg_surface_create ();
21679 int
21680 main ()
21682 return cairo_svg_surface_create ();
21683   ;
21684   return 0;
21686 _ACEOF
21687 rm -f conftest.$ac_objext conftest$ac_exeext
21688 if { (ac_try="$ac_link"
21689 case "(($ac_try" in
21690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691   *) ac_try_echo=$ac_try;;
21692 esac
21693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21694 $as_echo "$ac_try_echo") >&5
21695   (eval "$ac_link") 2>conftest.er1
21696   ac_status=$?
21697   grep -v '^ *+' conftest.er1 >conftest.err
21698   rm -f conftest.er1
21699   cat conftest.err >&5
21700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); } && {
21702          test -z "$ac_c_werror_flag" ||
21703          test ! -s conftest.err
21704        } && test -s conftest$ac_exeext && {
21705          test "$cross_compiling" = yes ||
21706          $as_test_x conftest$ac_exeext
21707        }; then
21708   ac_cv_lib_cairo_cairo_svg_surface_create=yes
21709 else
21710   $as_echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713         ac_cv_lib_cairo_cairo_svg_surface_create=no
21716 rm -rf conftest.dSYM
21717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21718       conftest$ac_exeext conftest.$ac_ext
21719 LIBS=$ac_check_lib_save_LIBS
21721 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
21722 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
21723 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
21725     if test "${ac_cv_header_cairo_svg_h+set}" = set; then
21726   { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
21727 $as_echo_n "checking for cairo-svg.h... " >&6; }
21728 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
21729   $as_echo_n "(cached) " >&6
21731 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
21732 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
21733 else
21734   # Is the header compilable?
21735 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
21736 $as_echo_n "checking cairo-svg.h usability... " >&6; }
21737 cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h.  */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h.  */
21743 $ac_includes_default
21744 #include <cairo-svg.h>
21745 _ACEOF
21746 rm -f conftest.$ac_objext
21747 if { (ac_try="$ac_compile"
21748 case "(($ac_try" in
21749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750   *) ac_try_echo=$ac_try;;
21751 esac
21752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21753 $as_echo "$ac_try_echo") >&5
21754   (eval "$ac_compile") 2>conftest.er1
21755   ac_status=$?
21756   grep -v '^ *+' conftest.er1 >conftest.err
21757   rm -f conftest.er1
21758   cat conftest.err >&5
21759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } && {
21761          test -z "$ac_c_werror_flag" ||
21762          test ! -s conftest.err
21763        } && test -s conftest.$ac_objext; then
21764   ac_header_compiler=yes
21765 else
21766   $as_echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769         ac_header_compiler=no
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774 $as_echo "$ac_header_compiler" >&6; }
21776 # Is the header present?
21777 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
21778 $as_echo_n "checking cairo-svg.h presence... " >&6; }
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785 #include <cairo-svg.h>
21786 _ACEOF
21787 if { (ac_try="$ac_cpp conftest.$ac_ext"
21788 case "(($ac_try" in
21789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790   *) ac_try_echo=$ac_try;;
21791 esac
21792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21793 $as_echo "$ac_try_echo") >&5
21794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21795   ac_status=$?
21796   grep -v '^ *+' conftest.er1 >conftest.err
21797   rm -f conftest.er1
21798   cat conftest.err >&5
21799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); } >/dev/null && {
21801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21802          test ! -s conftest.err
21803        }; then
21804   ac_header_preproc=yes
21805 else
21806   $as_echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809   ac_header_preproc=no
21812 rm -f conftest.err conftest.$ac_ext
21813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21814 $as_echo "$ac_header_preproc" >&6; }
21816 # So?  What about this header?
21817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21818   yes:no: )
21819     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
21820 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21821     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
21822 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
21823     ac_header_preproc=yes
21824     ;;
21825   no:yes:* )
21826     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
21827 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
21828     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
21829 $as_echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
21830     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
21831 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
21832     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
21833 $as_echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21834     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
21835 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
21836     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
21837 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
21839     ;;
21840 esac
21841 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
21842 $as_echo_n "checking for cairo-svg.h... " >&6; }
21843 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
21844   $as_echo_n "(cached) " >&6
21845 else
21846   ac_cv_header_cairo_svg_h=$ac_header_preproc
21848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
21849 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
21852 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
21853   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
21859  if test $EX_CHECK_STATE = NO; then
21860         for ac_prog in pkg-config
21862   # Extract the first word of "$ac_prog", so it can be a program name with args.
21863 set dummy $ac_prog; ac_word=$2
21864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21865 $as_echo_n "checking for $ac_word... " >&6; }
21866 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
21867   $as_echo_n "(cached) " >&6
21868 else
21869   if test -n "$PKGCONFIG"; then
21870   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
21871 else
21872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21873 for as_dir in $PATH
21875   IFS=$as_save_IFS
21876   test -z "$as_dir" && as_dir=.
21877   for ac_exec_ext in '' $ac_executable_extensions; do
21878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21879     ac_cv_prog_PKGCONFIG="$ac_prog"
21880     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21881     break 2
21882   fi
21883 done
21884 done
21885 IFS=$as_save_IFS
21889 PKGCONFIG=$ac_cv_prog_PKGCONFIG
21890 if test -n "$PKGCONFIG"; then
21891   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
21892 $as_echo "$PKGCONFIG" >&6; }
21893 else
21894   { $as_echo "$as_me:$LINENO: result: no" >&5
21895 $as_echo "no" >&6; }
21899   test -n "$PKGCONFIG" && break
21900 done
21901 test -n "$PKGCONFIG" || PKGCONFIG="no"
21903     if test "$PKGCONFIG" != "no"; then
21904           if $PKGCONFIG --exists cairo-svg; then
21905              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
21906              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
21907              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
21908              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
21909                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
21910              { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
21911 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
21912 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
21913   $as_echo_n "(cached) " >&6
21914 else
21915   ac_check_lib_save_LIBS=$LIBS
21916 LIBS="-lcairo  $LIBS"
21917 cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h.  */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h.  */
21924 /* Override any GCC internal prototype to avoid an error.
21925    Use char because int might match the return type of a GCC
21926    builtin and then its argument prototype would still apply.  */
21927 #ifdef __cplusplus
21928 extern "C"
21929 #endif
21930 char cairo_svg_surface_create ();
21931 int
21932 main ()
21934 return cairo_svg_surface_create ();
21935   ;
21936   return 0;
21938 _ACEOF
21939 rm -f conftest.$ac_objext conftest$ac_exeext
21940 if { (ac_try="$ac_link"
21941 case "(($ac_try" in
21942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943   *) ac_try_echo=$ac_try;;
21944 esac
21945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21946 $as_echo "$ac_try_echo") >&5
21947   (eval "$ac_link") 2>conftest.er1
21948   ac_status=$?
21949   grep -v '^ *+' conftest.er1 >conftest.err
21950   rm -f conftest.er1
21951   cat conftest.err >&5
21952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); } && {
21954          test -z "$ac_c_werror_flag" ||
21955          test ! -s conftest.err
21956        } && test -s conftest$ac_exeext && {
21957          test "$cross_compiling" = yes ||
21958          $as_test_x conftest$ac_exeext
21959        }; then
21960   ac_cv_lib_cairo_cairo_svg_surface_create=yes
21961 else
21962   $as_echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965         ac_cv_lib_cairo_cairo_svg_surface_create=no
21968 rm -rf conftest.dSYM
21969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21970       conftest$ac_exeext conftest.$ac_ext
21971 LIBS=$ac_check_lib_save_LIBS
21973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
21974 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
21975 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
21977                  unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
21978                  if test "${ac_cv_header_cairo_svg_h+set}" = set; then
21979   { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
21980 $as_echo_n "checking for cairo-svg.h... " >&6; }
21981 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
21982   $as_echo_n "(cached) " >&6
21984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
21985 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
21986 else
21987   # Is the header compilable?
21988 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
21989 $as_echo_n "checking cairo-svg.h usability... " >&6; }
21990 cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h.  */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h.  */
21996 $ac_includes_default
21997 #include <cairo-svg.h>
21998 _ACEOF
21999 rm -f conftest.$ac_objext
22000 if { (ac_try="$ac_compile"
22001 case "(($ac_try" in
22002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003   *) ac_try_echo=$ac_try;;
22004 esac
22005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22006 $as_echo "$ac_try_echo") >&5
22007   (eval "$ac_compile") 2>conftest.er1
22008   ac_status=$?
22009   grep -v '^ *+' conftest.er1 >conftest.err
22010   rm -f conftest.er1
22011   cat conftest.err >&5
22012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); } && {
22014          test -z "$ac_c_werror_flag" ||
22015          test ! -s conftest.err
22016        } && test -s conftest.$ac_objext; then
22017   ac_header_compiler=yes
22018 else
22019   $as_echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22022         ac_header_compiler=no
22025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22026 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22027 $as_echo "$ac_header_compiler" >&6; }
22029 # Is the header present?
22030 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
22031 $as_echo_n "checking cairo-svg.h presence... " >&6; }
22032 cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 #include <cairo-svg.h>
22039 _ACEOF
22040 if { (ac_try="$ac_cpp conftest.$ac_ext"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22046 $as_echo "$ac_try_echo") >&5
22047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22048   ac_status=$?
22049   grep -v '^ *+' conftest.er1 >conftest.err
22050   rm -f conftest.er1
22051   cat conftest.err >&5
22052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); } >/dev/null && {
22054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22055          test ! -s conftest.err
22056        }; then
22057   ac_header_preproc=yes
22058 else
22059   $as_echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22062   ac_header_preproc=no
22065 rm -f conftest.err conftest.$ac_ext
22066 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22067 $as_echo "$ac_header_preproc" >&6; }
22069 # So?  What about this header?
22070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071   yes:no: )
22072     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
22073 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22074     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
22075 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
22076     ac_header_preproc=yes
22077     ;;
22078   no:yes:* )
22079     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
22080 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
22081     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
22082 $as_echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
22083     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
22084 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
22085     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
22086 $as_echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22087     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
22088 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
22089     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
22090 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
22092     ;;
22093 esac
22094 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
22095 $as_echo_n "checking for cairo-svg.h... " >&6; }
22096 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
22097   $as_echo_n "(cached) " >&6
22098 else
22099   ac_cv_header_cairo_svg_h=$ac_header_preproc
22101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
22102 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
22105 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
22106   EX_CHECK_STATE=YES
22113           else
22114              { $as_echo "$as_me:$LINENO: WARNING:
22115 ----------------------------------------------------------------------------
22116 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
22117   You may want to set the PKG_CONFIG_PATH variable to point to its
22118   location.
22119 ----------------------------------------------------------------------------
22120                         " >&5
22121 $as_echo "$as_me: WARNING:
22122 ----------------------------------------------------------------------------
22123 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
22124   You may want to set the PKG_CONFIG_PATH variable to point to its
22125   location.
22126 ----------------------------------------------------------------------------
22127                         " >&2;}
22128            fi
22129      fi
22130   fi
22132   if test ${EX_CHECK_STATE} = NO; then
22133      { $as_echo "$as_me:$LINENO: WARNING:
22134 ----------------------------------------------------------------------------
22135 * I could not find a working copy of cairo-svg. Check config.log for hints on why
22136   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
22137   so that compiler and the linker can find libcairo and its header files. If
22138   you have not installed cairo-svg, you can get it either from its original home on
22140      http://cairographics.org/releases/
22142   You can find also find an archive copy on
22144      http://oss.oetiker.ch/rrdtool/pub/libs
22146   The last tested version of cairo-svg is 1.4.6.
22148        LIBS=$LIBS
22149    LDFLAGS=$LDFLAGS
22150   CPPFLAGS=$CPPFLAGS
22152 ----------------------------------------------------------------------------
22153                 " >&5
22154 $as_echo "$as_me: WARNING:
22155 ----------------------------------------------------------------------------
22156 * I could not find a working copy of cairo-svg. Check config.log for hints on why
22157   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
22158   so that compiler and the linker can find libcairo and its header files. If
22159   you have not installed cairo-svg, you can get it either from its original home on
22161      http://cairographics.org/releases/
22163   You can find also find an archive copy on
22165      http://oss.oetiker.ch/rrdtool/pub/libs
22167   The last tested version of cairo-svg is 1.4.6.
22169        LIBS=$LIBS
22170    LDFLAGS=$LDFLAGS
22171   CPPFLAGS=$CPPFLAGS
22173 ----------------------------------------------------------------------------
22174                 " >&2;}
22175        EX_CHECK_ALL_ERR=YES
22176        LIBS="${ex_check_save_LIBS}"
22177        CPPFLAGS="${ex_check_save_CPPFLAGS}"
22178        LDFLAGS="${ex_check_save_LDFLAGS}"
22179     fi
22180     ac_ext=c
22181 ac_cpp='$CPP $CPPFLAGS'
22182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22189  ac_ext=c
22190 ac_cpp='$CPP $CPPFLAGS'
22191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22195  EX_CHECK_STATE=NO
22196  ex_check_save_LIBS=${LIBS}
22197  ex_check_save_CPPFLAGS=${CPPFLAGS}
22198  ex_check_save_LDFLAGS=${LDFLAGS}
22199  if test "x""" != "x"; then
22200    CPPFLAGS="$CPPFLAGS -I"""
22201  fi
22202   { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
22203 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
22204 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
22205   $as_echo_n "(cached) " >&6
22206 else
22207   ac_check_lib_save_LIBS=$LIBS
22208 LIBS="-lcairo  $LIBS"
22209 cat >conftest.$ac_ext <<_ACEOF
22210 /* confdefs.h.  */
22211 _ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h.  */
22216 /* Override any GCC internal prototype to avoid an error.
22217    Use char because int might match the return type of a GCC
22218    builtin and then its argument prototype would still apply.  */
22219 #ifdef __cplusplus
22220 extern "C"
22221 #endif
22222 char cairo_pdf_surface_create ();
22223 int
22224 main ()
22226 return cairo_pdf_surface_create ();
22227   ;
22228   return 0;
22230 _ACEOF
22231 rm -f conftest.$ac_objext conftest$ac_exeext
22232 if { (ac_try="$ac_link"
22233 case "(($ac_try" in
22234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235   *) ac_try_echo=$ac_try;;
22236 esac
22237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22238 $as_echo "$ac_try_echo") >&5
22239   (eval "$ac_link") 2>conftest.er1
22240   ac_status=$?
22241   grep -v '^ *+' conftest.er1 >conftest.err
22242   rm -f conftest.er1
22243   cat conftest.err >&5
22244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); } && {
22246          test -z "$ac_c_werror_flag" ||
22247          test ! -s conftest.err
22248        } && test -s conftest$ac_exeext && {
22249          test "$cross_compiling" = yes ||
22250          $as_test_x conftest$ac_exeext
22251        }; then
22252   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
22253 else
22254   $as_echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257         ac_cv_lib_cairo_cairo_pdf_surface_create=no
22260 rm -rf conftest.dSYM
22261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22262       conftest$ac_exeext conftest.$ac_ext
22263 LIBS=$ac_check_lib_save_LIBS
22265 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
22266 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
22267 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
22269     if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
22270   { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
22271 $as_echo_n "checking for cairo-pdf.h... " >&6; }
22272 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
22273   $as_echo_n "(cached) " >&6
22275 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
22276 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
22277 else
22278   # Is the header compilable?
22279 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
22280 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
22281 cat >conftest.$ac_ext <<_ACEOF
22282 /* confdefs.h.  */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h.  */
22287 $ac_includes_default
22288 #include <cairo-pdf.h>
22289 _ACEOF
22290 rm -f conftest.$ac_objext
22291 if { (ac_try="$ac_compile"
22292 case "(($ac_try" in
22293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294   *) ac_try_echo=$ac_try;;
22295 esac
22296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22297 $as_echo "$ac_try_echo") >&5
22298   (eval "$ac_compile") 2>conftest.er1
22299   ac_status=$?
22300   grep -v '^ *+' conftest.er1 >conftest.err
22301   rm -f conftest.er1
22302   cat conftest.err >&5
22303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } && {
22305          test -z "$ac_c_werror_flag" ||
22306          test ! -s conftest.err
22307        } && test -s conftest.$ac_objext; then
22308   ac_header_compiler=yes
22309 else
22310   $as_echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313         ac_header_compiler=no
22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22318 $as_echo "$ac_header_compiler" >&6; }
22320 # Is the header present?
22321 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
22322 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
22323 cat >conftest.$ac_ext <<_ACEOF
22324 /* confdefs.h.  */
22325 _ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h.  */
22329 #include <cairo-pdf.h>
22330 _ACEOF
22331 if { (ac_try="$ac_cpp conftest.$ac_ext"
22332 case "(($ac_try" in
22333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334   *) ac_try_echo=$ac_try;;
22335 esac
22336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22337 $as_echo "$ac_try_echo") >&5
22338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22339   ac_status=$?
22340   grep -v '^ *+' conftest.er1 >conftest.err
22341   rm -f conftest.er1
22342   cat conftest.err >&5
22343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); } >/dev/null && {
22345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22346          test ! -s conftest.err
22347        }; then
22348   ac_header_preproc=yes
22349 else
22350   $as_echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353   ac_header_preproc=no
22356 rm -f conftest.err conftest.$ac_ext
22357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22358 $as_echo "$ac_header_preproc" >&6; }
22360 # So?  What about this header?
22361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22362   yes:no: )
22363     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
22364 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22365     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
22366 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
22367     ac_header_preproc=yes
22368     ;;
22369   no:yes:* )
22370     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
22371 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
22372     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
22373 $as_echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
22374     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
22375 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
22376     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
22377 $as_echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22378     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
22379 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
22380     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
22381 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
22383     ;;
22384 esac
22385 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
22386 $as_echo_n "checking for cairo-pdf.h... " >&6; }
22387 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
22388   $as_echo_n "(cached) " >&6
22389 else
22390   ac_cv_header_cairo_pdf_h=$ac_header_preproc
22392 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
22393 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
22396 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
22397   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
22403  if test $EX_CHECK_STATE = NO; then
22404         for ac_prog in pkg-config
22406   # Extract the first word of "$ac_prog", so it can be a program name with args.
22407 set dummy $ac_prog; ac_word=$2
22408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22409 $as_echo_n "checking for $ac_word... " >&6; }
22410 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
22411   $as_echo_n "(cached) " >&6
22412 else
22413   if test -n "$PKGCONFIG"; then
22414   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
22415 else
22416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22417 for as_dir in $PATH
22419   IFS=$as_save_IFS
22420   test -z "$as_dir" && as_dir=.
22421   for ac_exec_ext in '' $ac_executable_extensions; do
22422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22423     ac_cv_prog_PKGCONFIG="$ac_prog"
22424     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22425     break 2
22426   fi
22427 done
22428 done
22429 IFS=$as_save_IFS
22433 PKGCONFIG=$ac_cv_prog_PKGCONFIG
22434 if test -n "$PKGCONFIG"; then
22435   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
22436 $as_echo "$PKGCONFIG" >&6; }
22437 else
22438   { $as_echo "$as_me:$LINENO: result: no" >&5
22439 $as_echo "no" >&6; }
22443   test -n "$PKGCONFIG" && break
22444 done
22445 test -n "$PKGCONFIG" || PKGCONFIG="no"
22447     if test "$PKGCONFIG" != "no"; then
22448           if $PKGCONFIG --exists cairo-pdf; then
22449              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
22450              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
22451              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
22452              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
22453                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
22454              { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
22455 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
22456 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
22457   $as_echo_n "(cached) " >&6
22458 else
22459   ac_check_lib_save_LIBS=$LIBS
22460 LIBS="-lcairo  $LIBS"
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22468 /* Override any GCC internal prototype to avoid an error.
22469    Use char because int might match the return type of a GCC
22470    builtin and then its argument prototype would still apply.  */
22471 #ifdef __cplusplus
22472 extern "C"
22473 #endif
22474 char cairo_pdf_surface_create ();
22475 int
22476 main ()
22478 return cairo_pdf_surface_create ();
22479   ;
22480   return 0;
22482 _ACEOF
22483 rm -f conftest.$ac_objext conftest$ac_exeext
22484 if { (ac_try="$ac_link"
22485 case "(($ac_try" in
22486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487   *) ac_try_echo=$ac_try;;
22488 esac
22489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22490 $as_echo "$ac_try_echo") >&5
22491   (eval "$ac_link") 2>conftest.er1
22492   ac_status=$?
22493   grep -v '^ *+' conftest.er1 >conftest.err
22494   rm -f conftest.er1
22495   cat conftest.err >&5
22496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); } && {
22498          test -z "$ac_c_werror_flag" ||
22499          test ! -s conftest.err
22500        } && test -s conftest$ac_exeext && {
22501          test "$cross_compiling" = yes ||
22502          $as_test_x conftest$ac_exeext
22503        }; then
22504   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
22505 else
22506   $as_echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509         ac_cv_lib_cairo_cairo_pdf_surface_create=no
22512 rm -rf conftest.dSYM
22513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22514       conftest$ac_exeext conftest.$ac_ext
22515 LIBS=$ac_check_lib_save_LIBS
22517 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
22518 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
22519 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
22521                  unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
22522                  if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
22523   { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
22524 $as_echo_n "checking for cairo-pdf.h... " >&6; }
22525 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
22526   $as_echo_n "(cached) " >&6
22528 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
22529 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
22530 else
22531   # Is the header compilable?
22532 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
22533 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h.  */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h.  */
22540 $ac_includes_default
22541 #include <cairo-pdf.h>
22542 _ACEOF
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547   *) ac_try_echo=$ac_try;;
22548 esac
22549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22550 $as_echo "$ac_try_echo") >&5
22551   (eval "$ac_compile") 2>conftest.er1
22552   ac_status=$?
22553   grep -v '^ *+' conftest.er1 >conftest.err
22554   rm -f conftest.er1
22555   cat conftest.err >&5
22556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } && {
22558          test -z "$ac_c_werror_flag" ||
22559          test ! -s conftest.err
22560        } && test -s conftest.$ac_objext; then
22561   ac_header_compiler=yes
22562 else
22563   $as_echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22566         ac_header_compiler=no
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22571 $as_echo "$ac_header_compiler" >&6; }
22573 # Is the header present?
22574 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
22575 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
22576 cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h.  */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h.  */
22582 #include <cairo-pdf.h>
22583 _ACEOF
22584 if { (ac_try="$ac_cpp conftest.$ac_ext"
22585 case "(($ac_try" in
22586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587   *) ac_try_echo=$ac_try;;
22588 esac
22589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22590 $as_echo "$ac_try_echo") >&5
22591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22592   ac_status=$?
22593   grep -v '^ *+' conftest.er1 >conftest.err
22594   rm -f conftest.er1
22595   cat conftest.err >&5
22596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } >/dev/null && {
22598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22599          test ! -s conftest.err
22600        }; then
22601   ac_header_preproc=yes
22602 else
22603   $as_echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22606   ac_header_preproc=no
22609 rm -f conftest.err conftest.$ac_ext
22610 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22611 $as_echo "$ac_header_preproc" >&6; }
22613 # So?  What about this header?
22614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22615   yes:no: )
22616     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
22617 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22618     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
22619 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
22620     ac_header_preproc=yes
22621     ;;
22622   no:yes:* )
22623     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
22624 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
22625     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
22626 $as_echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
22627     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
22628 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
22629     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
22630 $as_echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22631     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
22632 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
22633     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
22634 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
22636     ;;
22637 esac
22638 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
22639 $as_echo_n "checking for cairo-pdf.h... " >&6; }
22640 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
22641   $as_echo_n "(cached) " >&6
22642 else
22643   ac_cv_header_cairo_pdf_h=$ac_header_preproc
22645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
22646 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
22649 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
22650   EX_CHECK_STATE=YES
22657           else
22658              { $as_echo "$as_me:$LINENO: WARNING:
22659 ----------------------------------------------------------------------------
22660 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
22661   You may want to set the PKG_CONFIG_PATH variable to point to its
22662   location.
22663 ----------------------------------------------------------------------------
22664                         " >&5
22665 $as_echo "$as_me: WARNING:
22666 ----------------------------------------------------------------------------
22667 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
22668   You may want to set the PKG_CONFIG_PATH variable to point to its
22669   location.
22670 ----------------------------------------------------------------------------
22671                         " >&2;}
22672            fi
22673      fi
22674   fi
22676   if test ${EX_CHECK_STATE} = NO; then
22677      { $as_echo "$as_me:$LINENO: WARNING:
22678 ----------------------------------------------------------------------------
22679 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
22680   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
22681   so that compiler and the linker can find libcairo and its header files. If
22682   you have not installed cairo-pdf, you can get it either from its original home on
22684      http://cairographics.org/releases/
22686   You can find also find an archive copy on
22688      http://oss.oetiker.ch/rrdtool/pub/libs
22690   The last tested version of cairo-pdf is 1.4.6.
22692        LIBS=$LIBS
22693    LDFLAGS=$LDFLAGS
22694   CPPFLAGS=$CPPFLAGS
22696 ----------------------------------------------------------------------------
22697                 " >&5
22698 $as_echo "$as_me: WARNING:
22699 ----------------------------------------------------------------------------
22700 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
22701   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
22702   so that compiler and the linker can find libcairo and its header files. If
22703   you have not installed cairo-pdf, you can get it either from its original home on
22705      http://cairographics.org/releases/
22707   You can find also find an archive copy on
22709      http://oss.oetiker.ch/rrdtool/pub/libs
22711   The last tested version of cairo-pdf is 1.4.6.
22713        LIBS=$LIBS
22714    LDFLAGS=$LDFLAGS
22715   CPPFLAGS=$CPPFLAGS
22717 ----------------------------------------------------------------------------
22718                 " >&2;}
22719        EX_CHECK_ALL_ERR=YES
22720        LIBS="${ex_check_save_LIBS}"
22721        CPPFLAGS="${ex_check_save_CPPFLAGS}"
22722        LDFLAGS="${ex_check_save_LDFLAGS}"
22723     fi
22724     ac_ext=c
22725 ac_cpp='$CPP $CPPFLAGS'
22726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22733  ac_ext=c
22734 ac_cpp='$CPP $CPPFLAGS'
22735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22739  EX_CHECK_STATE=NO
22740  ex_check_save_LIBS=${LIBS}
22741  ex_check_save_CPPFLAGS=${CPPFLAGS}
22742  ex_check_save_LDFLAGS=${LDFLAGS}
22743  if test "x""" != "x"; then
22744    CPPFLAGS="$CPPFLAGS -I"""
22745  fi
22746   { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
22747 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
22748 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
22749   $as_echo_n "(cached) " >&6
22750 else
22751   ac_check_lib_save_LIBS=$LIBS
22752 LIBS="-lcairo  $LIBS"
22753 cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h.  */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h.  */
22760 /* Override any GCC internal prototype to avoid an error.
22761    Use char because int might match the return type of a GCC
22762    builtin and then its argument prototype would still apply.  */
22763 #ifdef __cplusplus
22764 extern "C"
22765 #endif
22766 char cairo_ps_surface_create ();
22767 int
22768 main ()
22770 return cairo_ps_surface_create ();
22771   ;
22772   return 0;
22774 _ACEOF
22775 rm -f conftest.$ac_objext conftest$ac_exeext
22776 if { (ac_try="$ac_link"
22777 case "(($ac_try" in
22778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779   *) ac_try_echo=$ac_try;;
22780 esac
22781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22782 $as_echo "$ac_try_echo") >&5
22783   (eval "$ac_link") 2>conftest.er1
22784   ac_status=$?
22785   grep -v '^ *+' conftest.er1 >conftest.err
22786   rm -f conftest.er1
22787   cat conftest.err >&5
22788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } && {
22790          test -z "$ac_c_werror_flag" ||
22791          test ! -s conftest.err
22792        } && test -s conftest$ac_exeext && {
22793          test "$cross_compiling" = yes ||
22794          $as_test_x conftest$ac_exeext
22795        }; then
22796   ac_cv_lib_cairo_cairo_ps_surface_create=yes
22797 else
22798   $as_echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22801         ac_cv_lib_cairo_cairo_ps_surface_create=no
22804 rm -rf conftest.dSYM
22805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22806       conftest$ac_exeext conftest.$ac_ext
22807 LIBS=$ac_check_lib_save_LIBS
22809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
22810 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
22811 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
22813     if test "${ac_cv_header_cairo_ps_h+set}" = set; then
22814   { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
22815 $as_echo_n "checking for cairo-ps.h... " >&6; }
22816 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
22817   $as_echo_n "(cached) " >&6
22819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
22820 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
22821 else
22822   # Is the header compilable?
22823 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
22824 $as_echo_n "checking cairo-ps.h usability... " >&6; }
22825 cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h.  */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h.  */
22831 $ac_includes_default
22832 #include <cairo-ps.h>
22833 _ACEOF
22834 rm -f conftest.$ac_objext
22835 if { (ac_try="$ac_compile"
22836 case "(($ac_try" in
22837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838   *) ac_try_echo=$ac_try;;
22839 esac
22840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22841 $as_echo "$ac_try_echo") >&5
22842   (eval "$ac_compile") 2>conftest.er1
22843   ac_status=$?
22844   grep -v '^ *+' conftest.er1 >conftest.err
22845   rm -f conftest.er1
22846   cat conftest.err >&5
22847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); } && {
22849          test -z "$ac_c_werror_flag" ||
22850          test ! -s conftest.err
22851        } && test -s conftest.$ac_objext; then
22852   ac_header_compiler=yes
22853 else
22854   $as_echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857         ac_header_compiler=no
22860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22862 $as_echo "$ac_header_compiler" >&6; }
22864 # Is the header present?
22865 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
22866 $as_echo_n "checking cairo-ps.h presence... " >&6; }
22867 cat >conftest.$ac_ext <<_ACEOF
22868 /* confdefs.h.  */
22869 _ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h.  */
22873 #include <cairo-ps.h>
22874 _ACEOF
22875 if { (ac_try="$ac_cpp conftest.$ac_ext"
22876 case "(($ac_try" in
22877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878   *) ac_try_echo=$ac_try;;
22879 esac
22880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22881 $as_echo "$ac_try_echo") >&5
22882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22883   ac_status=$?
22884   grep -v '^ *+' conftest.er1 >conftest.err
22885   rm -f conftest.er1
22886   cat conftest.err >&5
22887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); } >/dev/null && {
22889          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22890          test ! -s conftest.err
22891        }; then
22892   ac_header_preproc=yes
22893 else
22894   $as_echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897   ac_header_preproc=no
22900 rm -f conftest.err conftest.$ac_ext
22901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22902 $as_echo "$ac_header_preproc" >&6; }
22904 # So?  What about this header?
22905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22906   yes:no: )
22907     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
22908 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22909     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
22910 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
22911     ac_header_preproc=yes
22912     ;;
22913   no:yes:* )
22914     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
22915 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
22916     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
22917 $as_echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
22918     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
22919 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
22920     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
22921 $as_echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22922     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
22923 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
22924     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
22925 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
22927     ;;
22928 esac
22929 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
22930 $as_echo_n "checking for cairo-ps.h... " >&6; }
22931 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
22932   $as_echo_n "(cached) " >&6
22933 else
22934   ac_cv_header_cairo_ps_h=$ac_header_preproc
22936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
22937 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
22940 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
22941   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
22947  if test $EX_CHECK_STATE = NO; then
22948         for ac_prog in pkg-config
22950   # Extract the first word of "$ac_prog", so it can be a program name with args.
22951 set dummy $ac_prog; ac_word=$2
22952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22953 $as_echo_n "checking for $ac_word... " >&6; }
22954 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
22955   $as_echo_n "(cached) " >&6
22956 else
22957   if test -n "$PKGCONFIG"; then
22958   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
22959 else
22960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22961 for as_dir in $PATH
22963   IFS=$as_save_IFS
22964   test -z "$as_dir" && as_dir=.
22965   for ac_exec_ext in '' $ac_executable_extensions; do
22966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22967     ac_cv_prog_PKGCONFIG="$ac_prog"
22968     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22969     break 2
22970   fi
22971 done
22972 done
22973 IFS=$as_save_IFS
22977 PKGCONFIG=$ac_cv_prog_PKGCONFIG
22978 if test -n "$PKGCONFIG"; then
22979   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
22980 $as_echo "$PKGCONFIG" >&6; }
22981 else
22982   { $as_echo "$as_me:$LINENO: result: no" >&5
22983 $as_echo "no" >&6; }
22987   test -n "$PKGCONFIG" && break
22988 done
22989 test -n "$PKGCONFIG" || PKGCONFIG="no"
22991     if test "$PKGCONFIG" != "no"; then
22992           if $PKGCONFIG --exists cairo-ps; then
22993              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
22994              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
22995              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
22996              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
22997                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
22998              { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
22999 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
23000 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
23001   $as_echo_n "(cached) " >&6
23002 else
23003   ac_check_lib_save_LIBS=$LIBS
23004 LIBS="-lcairo  $LIBS"
23005 cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h.  */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h.  */
23012 /* Override any GCC internal prototype to avoid an error.
23013    Use char because int might match the return type of a GCC
23014    builtin and then its argument prototype would still apply.  */
23015 #ifdef __cplusplus
23016 extern "C"
23017 #endif
23018 char cairo_ps_surface_create ();
23019 int
23020 main ()
23022 return cairo_ps_surface_create ();
23023   ;
23024   return 0;
23026 _ACEOF
23027 rm -f conftest.$ac_objext conftest$ac_exeext
23028 if { (ac_try="$ac_link"
23029 case "(($ac_try" in
23030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031   *) ac_try_echo=$ac_try;;
23032 esac
23033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23034 $as_echo "$ac_try_echo") >&5
23035   (eval "$ac_link") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } && {
23042          test -z "$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        } && test -s conftest$ac_exeext && {
23045          test "$cross_compiling" = yes ||
23046          $as_test_x conftest$ac_exeext
23047        }; then
23048   ac_cv_lib_cairo_cairo_ps_surface_create=yes
23049 else
23050   $as_echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23053         ac_cv_lib_cairo_cairo_ps_surface_create=no
23056 rm -rf conftest.dSYM
23057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23058       conftest$ac_exeext conftest.$ac_ext
23059 LIBS=$ac_check_lib_save_LIBS
23061 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
23062 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
23063 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
23065                  unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
23066                  if test "${ac_cv_header_cairo_ps_h+set}" = set; then
23067   { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
23068 $as_echo_n "checking for cairo-ps.h... " >&6; }
23069 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
23070   $as_echo_n "(cached) " >&6
23072 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
23073 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
23074 else
23075   # Is the header compilable?
23076 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
23077 $as_echo_n "checking cairo-ps.h usability... " >&6; }
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h.  */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h.  */
23084 $ac_includes_default
23085 #include <cairo-ps.h>
23086 _ACEOF
23087 rm -f conftest.$ac_objext
23088 if { (ac_try="$ac_compile"
23089 case "(($ac_try" in
23090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23091   *) ac_try_echo=$ac_try;;
23092 esac
23093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23094 $as_echo "$ac_try_echo") >&5
23095   (eval "$ac_compile") 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } && {
23102          test -z "$ac_c_werror_flag" ||
23103          test ! -s conftest.err
23104        } && test -s conftest.$ac_objext; then
23105   ac_header_compiler=yes
23106 else
23107   $as_echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23110         ac_header_compiler=no
23113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23115 $as_echo "$ac_header_compiler" >&6; }
23117 # Is the header present?
23118 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
23119 $as_echo_n "checking cairo-ps.h presence... " >&6; }
23120 cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126 #include <cairo-ps.h>
23127 _ACEOF
23128 if { (ac_try="$ac_cpp conftest.$ac_ext"
23129 case "(($ac_try" in
23130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131   *) ac_try_echo=$ac_try;;
23132 esac
23133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23134 $as_echo "$ac_try_echo") >&5
23135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } >/dev/null && {
23142          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23143          test ! -s conftest.err
23144        }; then
23145   ac_header_preproc=yes
23146 else
23147   $as_echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23150   ac_header_preproc=no
23153 rm -f conftest.err conftest.$ac_ext
23154 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23155 $as_echo "$ac_header_preproc" >&6; }
23157 # So?  What about this header?
23158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23159   yes:no: )
23160     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
23161 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23162     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
23163 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
23164     ac_header_preproc=yes
23165     ;;
23166   no:yes:* )
23167     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
23168 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
23169     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
23170 $as_echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
23171     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
23172 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
23173     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
23174 $as_echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23175     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
23176 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
23177     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
23178 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
23180     ;;
23181 esac
23182 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
23183 $as_echo_n "checking for cairo-ps.h... " >&6; }
23184 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
23185   $as_echo_n "(cached) " >&6
23186 else
23187   ac_cv_header_cairo_ps_h=$ac_header_preproc
23189 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
23190 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
23193 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
23194   EX_CHECK_STATE=YES
23201           else
23202              { $as_echo "$as_me:$LINENO: WARNING:
23203 ----------------------------------------------------------------------------
23204 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
23205   You may want to set the PKG_CONFIG_PATH variable to point to its
23206   location.
23207 ----------------------------------------------------------------------------
23208                         " >&5
23209 $as_echo "$as_me: WARNING:
23210 ----------------------------------------------------------------------------
23211 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
23212   You may want to set the PKG_CONFIG_PATH variable to point to its
23213   location.
23214 ----------------------------------------------------------------------------
23215                         " >&2;}
23216            fi
23217      fi
23218   fi
23220   if test ${EX_CHECK_STATE} = NO; then
23221      { $as_echo "$as_me:$LINENO: WARNING:
23222 ----------------------------------------------------------------------------
23223 * I could not find a working copy of cairo-ps. Check config.log for hints on why
23224   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
23225   so that compiler and the linker can find libcairo and its header files. If
23226   you have not installed cairo-ps, you can get it either from its original home on
23228      http://cairographics.org/releases/
23230   You can find also find an archive copy on
23232      http://oss.oetiker.ch/rrdtool/pub/libs
23234   The last tested version of cairo-ps is 1.4.6.
23236        LIBS=$LIBS
23237    LDFLAGS=$LDFLAGS
23238   CPPFLAGS=$CPPFLAGS
23240 ----------------------------------------------------------------------------
23241                 " >&5
23242 $as_echo "$as_me: WARNING:
23243 ----------------------------------------------------------------------------
23244 * I could not find a working copy of cairo-ps. Check config.log for hints on why
23245   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
23246   so that compiler and the linker can find libcairo and its header files. If
23247   you have not installed cairo-ps, you can get it either from its original home on
23249      http://cairographics.org/releases/
23251   You can find also find an archive copy on
23253      http://oss.oetiker.ch/rrdtool/pub/libs
23255   The last tested version of cairo-ps is 1.4.6.
23257        LIBS=$LIBS
23258    LDFLAGS=$LDFLAGS
23259   CPPFLAGS=$CPPFLAGS
23261 ----------------------------------------------------------------------------
23262                 " >&2;}
23263        EX_CHECK_ALL_ERR=YES
23264        LIBS="${ex_check_save_LIBS}"
23265        CPPFLAGS="${ex_check_save_CPPFLAGS}"
23266        LDFLAGS="${ex_check_save_LDFLAGS}"
23267     fi
23268     ac_ext=c
23269 ac_cpp='$CPP $CPPFLAGS'
23270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23277  ac_ext=c
23278 ac_cpp='$CPP $CPPFLAGS'
23279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23283  EX_CHECK_STATE=NO
23284  ex_check_save_LIBS=${LIBS}
23285  ex_check_save_CPPFLAGS=${CPPFLAGS}
23286  ex_check_save_LDFLAGS=${LDFLAGS}
23287  if test "x""" != "x"; then
23288    CPPFLAGS="$CPPFLAGS -I"""
23289  fi
23290   { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
23291 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
23292 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
23293   $as_echo_n "(cached) " >&6
23294 else
23295   ac_check_lib_save_LIBS=$LIBS
23296 LIBS="-lpango-1.0  $LIBS"
23297 cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23304 /* Override any GCC internal prototype to avoid an error.
23305    Use char because int might match the return type of a GCC
23306    builtin and then its argument prototype would still apply.  */
23307 #ifdef __cplusplus
23308 extern "C"
23309 #endif
23310 char pango_cairo_context_set_font_options ();
23311 int
23312 main ()
23314 return pango_cairo_context_set_font_options ();
23315   ;
23316   return 0;
23318 _ACEOF
23319 rm -f conftest.$ac_objext conftest$ac_exeext
23320 if { (ac_try="$ac_link"
23321 case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23326 $as_echo "$ac_try_echo") >&5
23327   (eval "$ac_link") 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } && {
23334          test -z "$ac_c_werror_flag" ||
23335          test ! -s conftest.err
23336        } && test -s conftest$ac_exeext && {
23337          test "$cross_compiling" = yes ||
23338          $as_test_x conftest$ac_exeext
23339        }; then
23340   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
23341 else
23342   $as_echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
23348 rm -rf conftest.dSYM
23349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23350       conftest$ac_exeext conftest.$ac_ext
23351 LIBS=$ac_check_lib_save_LIBS
23353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
23354 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
23355 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then
23357     if test "${ac_cv_header_pango_pango_h+set}" = set; then
23358   { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
23359 $as_echo_n "checking for pango/pango.h... " >&6; }
23360 if test "${ac_cv_header_pango_pango_h+set}" = set; then
23361   $as_echo_n "(cached) " >&6
23363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
23364 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
23365 else
23366   # Is the header compilable?
23367 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
23368 $as_echo_n "checking pango/pango.h usability... " >&6; }
23369 cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h.  */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h.  */
23375 $ac_includes_default
23376 #include <pango/pango.h>
23377 _ACEOF
23378 rm -f conftest.$ac_objext
23379 if { (ac_try="$ac_compile"
23380 case "(($ac_try" in
23381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23382   *) ac_try_echo=$ac_try;;
23383 esac
23384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23385 $as_echo "$ac_try_echo") >&5
23386   (eval "$ac_compile") 2>conftest.er1
23387   ac_status=$?
23388   grep -v '^ *+' conftest.er1 >conftest.err
23389   rm -f conftest.er1
23390   cat conftest.err >&5
23391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); } && {
23393          test -z "$ac_c_werror_flag" ||
23394          test ! -s conftest.err
23395        } && test -s conftest.$ac_objext; then
23396   ac_header_compiler=yes
23397 else
23398   $as_echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23401         ac_header_compiler=no
23404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23406 $as_echo "$ac_header_compiler" >&6; }
23408 # Is the header present?
23409 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
23410 $as_echo_n "checking pango/pango.h presence... " >&6; }
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417 #include <pango/pango.h>
23418 _ACEOF
23419 if { (ac_try="$ac_cpp conftest.$ac_ext"
23420 case "(($ac_try" in
23421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422   *) ac_try_echo=$ac_try;;
23423 esac
23424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23425 $as_echo "$ac_try_echo") >&5
23426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23427   ac_status=$?
23428   grep -v '^ *+' conftest.er1 >conftest.err
23429   rm -f conftest.er1
23430   cat conftest.err >&5
23431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); } >/dev/null && {
23433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23434          test ! -s conftest.err
23435        }; then
23436   ac_header_preproc=yes
23437 else
23438   $as_echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23441   ac_header_preproc=no
23444 rm -f conftest.err conftest.$ac_ext
23445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23446 $as_echo "$ac_header_preproc" >&6; }
23448 # So?  What about this header?
23449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23450   yes:no: )
23451     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
23452 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23453     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
23454 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
23455     ac_header_preproc=yes
23456     ;;
23457   no:yes:* )
23458     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
23459 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
23460     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
23461 $as_echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
23462     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
23463 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
23464     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
23465 $as_echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23466     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
23467 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
23468     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
23469 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
23471     ;;
23472 esac
23473 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
23474 $as_echo_n "checking for pango/pango.h... " >&6; }
23475 if test "${ac_cv_header_pango_pango_h+set}" = set; then
23476   $as_echo_n "(cached) " >&6
23477 else
23478   ac_cv_header_pango_pango_h=$ac_header_preproc
23480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
23481 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
23484 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
23485   LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
23491  if test $EX_CHECK_STATE = NO; then
23492         for ac_prog in pkg-config
23494   # Extract the first word of "$ac_prog", so it can be a program name with args.
23495 set dummy $ac_prog; ac_word=$2
23496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23497 $as_echo_n "checking for $ac_word... " >&6; }
23498 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
23499   $as_echo_n "(cached) " >&6
23500 else
23501   if test -n "$PKGCONFIG"; then
23502   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
23503 else
23504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23505 for as_dir in $PATH
23507   IFS=$as_save_IFS
23508   test -z "$as_dir" && as_dir=.
23509   for ac_exec_ext in '' $ac_executable_extensions; do
23510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23511     ac_cv_prog_PKGCONFIG="$ac_prog"
23512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23513     break 2
23514   fi
23515 done
23516 done
23517 IFS=$as_save_IFS
23521 PKGCONFIG=$ac_cv_prog_PKGCONFIG
23522 if test -n "$PKGCONFIG"; then
23523   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
23524 $as_echo "$PKGCONFIG" >&6; }
23525 else
23526   { $as_echo "$as_me:$LINENO: result: no" >&5
23527 $as_echo "no" >&6; }
23531   test -n "$PKGCONFIG" && break
23532 done
23533 test -n "$PKGCONFIG" || PKGCONFIG="no"
23535     if test "$PKGCONFIG" != "no"; then
23536           if $PKGCONFIG --exists pangocairo; then
23537              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
23538              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
23539              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
23540              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
23541                              unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
23542              { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
23543 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
23544 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
23545   $as_echo_n "(cached) " >&6
23546 else
23547   ac_check_lib_save_LIBS=$LIBS
23548 LIBS="-lpango-1.0  $LIBS"
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h.  */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h.  */
23556 /* Override any GCC internal prototype to avoid an error.
23557    Use char because int might match the return type of a GCC
23558    builtin and then its argument prototype would still apply.  */
23559 #ifdef __cplusplus
23560 extern "C"
23561 #endif
23562 char pango_cairo_context_set_font_options ();
23563 int
23564 main ()
23566 return pango_cairo_context_set_font_options ();
23567   ;
23568   return 0;
23570 _ACEOF
23571 rm -f conftest.$ac_objext conftest$ac_exeext
23572 if { (ac_try="$ac_link"
23573 case "(($ac_try" in
23574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575   *) ac_try_echo=$ac_try;;
23576 esac
23577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23578 $as_echo "$ac_try_echo") >&5
23579   (eval "$ac_link") 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } && {
23586          test -z "$ac_c_werror_flag" ||
23587          test ! -s conftest.err
23588        } && test -s conftest$ac_exeext && {
23589          test "$cross_compiling" = yes ||
23590          $as_test_x conftest$ac_exeext
23591        }; then
23592   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
23593 else
23594   $as_echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23597         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
23600 rm -rf conftest.dSYM
23601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23602       conftest$ac_exeext conftest.$ac_ext
23603 LIBS=$ac_check_lib_save_LIBS
23605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
23606 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
23607 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then
23609                  unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
23610                  if test "${ac_cv_header_pango_pango_h+set}" = set; then
23611   { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
23612 $as_echo_n "checking for pango/pango.h... " >&6; }
23613 if test "${ac_cv_header_pango_pango_h+set}" = set; then
23614   $as_echo_n "(cached) " >&6
23616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
23617 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
23618 else
23619   # Is the header compilable?
23620 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
23621 $as_echo_n "checking pango/pango.h usability... " >&6; }
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h.  */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h.  */
23628 $ac_includes_default
23629 #include <pango/pango.h>
23630 _ACEOF
23631 rm -f conftest.$ac_objext
23632 if { (ac_try="$ac_compile"
23633 case "(($ac_try" in
23634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635   *) ac_try_echo=$ac_try;;
23636 esac
23637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23638 $as_echo "$ac_try_echo") >&5
23639   (eval "$ac_compile") 2>conftest.er1
23640   ac_status=$?
23641   grep -v '^ *+' conftest.er1 >conftest.err
23642   rm -f conftest.er1
23643   cat conftest.err >&5
23644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); } && {
23646          test -z "$ac_c_werror_flag" ||
23647          test ! -s conftest.err
23648        } && test -s conftest.$ac_objext; then
23649   ac_header_compiler=yes
23650 else
23651   $as_echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654         ac_header_compiler=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23659 $as_echo "$ac_header_compiler" >&6; }
23661 # Is the header present?
23662 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
23663 $as_echo_n "checking pango/pango.h presence... " >&6; }
23664 cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h.  */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h.  */
23670 #include <pango/pango.h>
23671 _ACEOF
23672 if { (ac_try="$ac_cpp conftest.$ac_ext"
23673 case "(($ac_try" in
23674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675   *) ac_try_echo=$ac_try;;
23676 esac
23677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23678 $as_echo "$ac_try_echo") >&5
23679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23680   ac_status=$?
23681   grep -v '^ *+' conftest.er1 >conftest.err
23682   rm -f conftest.er1
23683   cat conftest.err >&5
23684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); } >/dev/null && {
23686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23687          test ! -s conftest.err
23688        }; then
23689   ac_header_preproc=yes
23690 else
23691   $as_echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694   ac_header_preproc=no
23697 rm -f conftest.err conftest.$ac_ext
23698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23699 $as_echo "$ac_header_preproc" >&6; }
23701 # So?  What about this header?
23702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23703   yes:no: )
23704     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
23705 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23706     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
23707 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
23708     ac_header_preproc=yes
23709     ;;
23710   no:yes:* )
23711     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
23712 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
23713     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
23714 $as_echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
23715     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
23716 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
23717     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
23718 $as_echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23719     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
23720 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
23721     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
23722 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
23724     ;;
23725 esac
23726 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
23727 $as_echo_n "checking for pango/pango.h... " >&6; }
23728 if test "${ac_cv_header_pango_pango_h+set}" = set; then
23729   $as_echo_n "(cached) " >&6
23730 else
23731   ac_cv_header_pango_pango_h=$ac_header_preproc
23733 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
23734 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
23737 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
23738   EX_CHECK_STATE=YES
23745           else
23746              { $as_echo "$as_me:$LINENO: WARNING:
23747 ----------------------------------------------------------------------------
23748 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
23749   You may want to set the PKG_CONFIG_PATH variable to point to its
23750   location.
23751 ----------------------------------------------------------------------------
23752                         " >&5
23753 $as_echo "$as_me: WARNING:
23754 ----------------------------------------------------------------------------
23755 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
23756   You may want to set the PKG_CONFIG_PATH variable to point to its
23757   location.
23758 ----------------------------------------------------------------------------
23759                         " >&2;}
23760            fi
23761      fi
23762   fi
23764   if test ${EX_CHECK_STATE} = NO; then
23765      { $as_echo "$as_me:$LINENO: WARNING:
23766 ----------------------------------------------------------------------------
23767 * I could not find a working copy of pangocairo. Check config.log for hints on why
23768   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
23769   so that compiler and the linker can find libpango-1.0 and its header files. If
23770   you have not installed pangocairo, you can get it either from its original home on
23772      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
23774   You can find also find an archive copy on
23776      http://oss.oetiker.ch/rrdtool/pub/libs
23778   The last tested version of pangocairo is 1.17.
23780        LIBS=$LIBS
23781    LDFLAGS=$LDFLAGS
23782   CPPFLAGS=$CPPFLAGS
23784 ----------------------------------------------------------------------------
23785                 " >&5
23786 $as_echo "$as_me: WARNING:
23787 ----------------------------------------------------------------------------
23788 * I could not find a working copy of pangocairo. Check config.log for hints on why
23789   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
23790   so that compiler and the linker can find libpango-1.0 and its header files. If
23791   you have not installed pangocairo, you can get it either from its original home on
23793      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
23795   You can find also find an archive copy on
23797      http://oss.oetiker.ch/rrdtool/pub/libs
23799   The last tested version of pangocairo is 1.17.
23801        LIBS=$LIBS
23802    LDFLAGS=$LDFLAGS
23803   CPPFLAGS=$CPPFLAGS
23805 ----------------------------------------------------------------------------
23806                 " >&2;}
23807        EX_CHECK_ALL_ERR=YES
23808        LIBS="${ex_check_save_LIBS}"
23809        CPPFLAGS="${ex_check_save_CPPFLAGS}"
23810        LDFLAGS="${ex_check_save_LDFLAGS}"
23811     fi
23812     ac_ext=c
23813 ac_cpp='$CPP $CPPFLAGS'
23814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23821  ac_ext=c
23822 ac_cpp='$CPP $CPPFLAGS'
23823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23827  EX_CHECK_STATE=NO
23828  ex_check_save_LIBS=${LIBS}
23829  ex_check_save_CPPFLAGS=${CPPFLAGS}
23830  ex_check_save_LDFLAGS=${LDFLAGS}
23831  if test "x/usr/include/libxml2" != "x"; then
23832    CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
23833  fi
23834   { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
23835 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
23836 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
23837   $as_echo_n "(cached) " >&6
23838 else
23839   ac_check_lib_save_LIBS=$LIBS
23840 LIBS="-lxml2  $LIBS"
23841 cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h.  */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h.  */
23848 /* Override any GCC internal prototype to avoid an error.
23849    Use char because int might match the return type of a GCC
23850    builtin and then its argument prototype would still apply.  */
23851 #ifdef __cplusplus
23852 extern "C"
23853 #endif
23854 char xmlParseFile ();
23855 int
23856 main ()
23858 return xmlParseFile ();
23859   ;
23860   return 0;
23862 _ACEOF
23863 rm -f conftest.$ac_objext conftest$ac_exeext
23864 if { (ac_try="$ac_link"
23865 case "(($ac_try" in
23866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23867   *) ac_try_echo=$ac_try;;
23868 esac
23869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23870 $as_echo "$ac_try_echo") >&5
23871   (eval "$ac_link") 2>conftest.er1
23872   ac_status=$?
23873   grep -v '^ *+' conftest.er1 >conftest.err
23874   rm -f conftest.er1
23875   cat conftest.err >&5
23876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); } && {
23878          test -z "$ac_c_werror_flag" ||
23879          test ! -s conftest.err
23880        } && test -s conftest$ac_exeext && {
23881          test "$cross_compiling" = yes ||
23882          $as_test_x conftest$ac_exeext
23883        }; then
23884   ac_cv_lib_xml2_xmlParseFile=yes
23885 else
23886   $as_echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23889         ac_cv_lib_xml2_xmlParseFile=no
23892 rm -rf conftest.dSYM
23893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23894       conftest$ac_exeext conftest.$ac_ext
23895 LIBS=$ac_check_lib_save_LIBS
23897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
23898 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
23899 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
23901     if test "${ac_cv_header_libxml_parser_h+set}" = set; then
23902   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
23903 $as_echo_n "checking for libxml/parser.h... " >&6; }
23904 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
23905   $as_echo_n "(cached) " >&6
23907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
23908 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
23909 else
23910   # Is the header compilable?
23911 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
23912 $as_echo_n "checking libxml/parser.h usability... " >&6; }
23913 cat >conftest.$ac_ext <<_ACEOF
23914 /* confdefs.h.  */
23915 _ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h.  */
23919 $ac_includes_default
23920 #include <libxml/parser.h>
23921 _ACEOF
23922 rm -f conftest.$ac_objext
23923 if { (ac_try="$ac_compile"
23924 case "(($ac_try" in
23925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926   *) ac_try_echo=$ac_try;;
23927 esac
23928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23929 $as_echo "$ac_try_echo") >&5
23930   (eval "$ac_compile") 2>conftest.er1
23931   ac_status=$?
23932   grep -v '^ *+' conftest.er1 >conftest.err
23933   rm -f conftest.er1
23934   cat conftest.err >&5
23935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); } && {
23937          test -z "$ac_c_werror_flag" ||
23938          test ! -s conftest.err
23939        } && test -s conftest.$ac_objext; then
23940   ac_header_compiler=yes
23941 else
23942   $as_echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23945         ac_header_compiler=no
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23950 $as_echo "$ac_header_compiler" >&6; }
23952 # Is the header present?
23953 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
23954 $as_echo_n "checking libxml/parser.h presence... " >&6; }
23955 cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961 #include <libxml/parser.h>
23962 _ACEOF
23963 if { (ac_try="$ac_cpp conftest.$ac_ext"
23964 case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23971   ac_status=$?
23972   grep -v '^ *+' conftest.er1 >conftest.err
23973   rm -f conftest.er1
23974   cat conftest.err >&5
23975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } >/dev/null && {
23977          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23978          test ! -s conftest.err
23979        }; then
23980   ac_header_preproc=yes
23981 else
23982   $as_echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23985   ac_header_preproc=no
23988 rm -f conftest.err conftest.$ac_ext
23989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23990 $as_echo "$ac_header_preproc" >&6; }
23992 # So?  What about this header?
23993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23994   yes:no: )
23995     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
23996 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23997     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
23998 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
23999     ac_header_preproc=yes
24000     ;;
24001   no:yes:* )
24002     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
24003 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
24004     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
24005 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
24006     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
24007 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
24008     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
24009 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24010     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
24011 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
24012     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
24013 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
24015     ;;
24016 esac
24017 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
24018 $as_echo_n "checking for libxml/parser.h... " >&6; }
24019 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
24020   $as_echo_n "(cached) " >&6
24021 else
24022   ac_cv_header_libxml_parser_h=$ac_header_preproc
24024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
24025 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
24028 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
24029   LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
24035  if test $EX_CHECK_STATE = NO; then
24036         for ac_prog in pkg-config
24038   # Extract the first word of "$ac_prog", so it can be a program name with args.
24039 set dummy $ac_prog; ac_word=$2
24040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24041 $as_echo_n "checking for $ac_word... " >&6; }
24042 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
24043   $as_echo_n "(cached) " >&6
24044 else
24045   if test -n "$PKGCONFIG"; then
24046   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
24047 else
24048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24049 for as_dir in $PATH
24051   IFS=$as_save_IFS
24052   test -z "$as_dir" && as_dir=.
24053   for ac_exec_ext in '' $ac_executable_extensions; do
24054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24055     ac_cv_prog_PKGCONFIG="$ac_prog"
24056     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24057     break 2
24058   fi
24059 done
24060 done
24061 IFS=$as_save_IFS
24065 PKGCONFIG=$ac_cv_prog_PKGCONFIG
24066 if test -n "$PKGCONFIG"; then
24067   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
24068 $as_echo "$PKGCONFIG" >&6; }
24069 else
24070   { $as_echo "$as_me:$LINENO: result: no" >&5
24071 $as_echo "no" >&6; }
24075   test -n "$PKGCONFIG" && break
24076 done
24077 test -n "$PKGCONFIG" || PKGCONFIG="no"
24079     if test "$PKGCONFIG" != "no"; then
24080           if $PKGCONFIG --exists libxml-2.0; then
24081              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
24082              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
24083              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
24084              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
24085                              unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
24086              { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
24087 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
24088 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
24089   $as_echo_n "(cached) " >&6
24090 else
24091   ac_check_lib_save_LIBS=$LIBS
24092 LIBS="-lxml2  $LIBS"
24093 cat >conftest.$ac_ext <<_ACEOF
24094 /* confdefs.h.  */
24095 _ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h.  */
24100 /* Override any GCC internal prototype to avoid an error.
24101    Use char because int might match the return type of a GCC
24102    builtin and then its argument prototype would still apply.  */
24103 #ifdef __cplusplus
24104 extern "C"
24105 #endif
24106 char xmlParseFile ();
24107 int
24108 main ()
24110 return xmlParseFile ();
24111   ;
24112   return 0;
24114 _ACEOF
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (ac_try="$ac_link"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24122 $as_echo "$ac_try_echo") >&5
24123   (eval "$ac_link") 2>conftest.er1
24124   ac_status=$?
24125   grep -v '^ *+' conftest.er1 >conftest.err
24126   rm -f conftest.er1
24127   cat conftest.err >&5
24128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); } && {
24130          test -z "$ac_c_werror_flag" ||
24131          test ! -s conftest.err
24132        } && test -s conftest$ac_exeext && {
24133          test "$cross_compiling" = yes ||
24134          $as_test_x conftest$ac_exeext
24135        }; then
24136   ac_cv_lib_xml2_xmlParseFile=yes
24137 else
24138   $as_echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24141         ac_cv_lib_xml2_xmlParseFile=no
24144 rm -rf conftest.dSYM
24145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24146       conftest$ac_exeext conftest.$ac_ext
24147 LIBS=$ac_check_lib_save_LIBS
24149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
24150 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
24151 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
24153                  unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
24154                  if test "${ac_cv_header_libxml_parser_h+set}" = set; then
24155   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
24156 $as_echo_n "checking for libxml/parser.h... " >&6; }
24157 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
24158   $as_echo_n "(cached) " >&6
24160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
24161 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
24162 else
24163   # Is the header compilable?
24164 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
24165 $as_echo_n "checking libxml/parser.h usability... " >&6; }
24166 cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h.  */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h.  */
24172 $ac_includes_default
24173 #include <libxml/parser.h>
24174 _ACEOF
24175 rm -f conftest.$ac_objext
24176 if { (ac_try="$ac_compile"
24177 case "(($ac_try" in
24178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179   *) ac_try_echo=$ac_try;;
24180 esac
24181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24182 $as_echo "$ac_try_echo") >&5
24183   (eval "$ac_compile") 2>conftest.er1
24184   ac_status=$?
24185   grep -v '^ *+' conftest.er1 >conftest.err
24186   rm -f conftest.er1
24187   cat conftest.err >&5
24188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); } && {
24190          test -z "$ac_c_werror_flag" ||
24191          test ! -s conftest.err
24192        } && test -s conftest.$ac_objext; then
24193   ac_header_compiler=yes
24194 else
24195   $as_echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198         ac_header_compiler=no
24201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24202 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24203 $as_echo "$ac_header_compiler" >&6; }
24205 # Is the header present?
24206 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
24207 $as_echo_n "checking libxml/parser.h presence... " >&6; }
24208 cat >conftest.$ac_ext <<_ACEOF
24209 /* confdefs.h.  */
24210 _ACEOF
24211 cat confdefs.h >>conftest.$ac_ext
24212 cat >>conftest.$ac_ext <<_ACEOF
24213 /* end confdefs.h.  */
24214 #include <libxml/parser.h>
24215 _ACEOF
24216 if { (ac_try="$ac_cpp conftest.$ac_ext"
24217 case "(($ac_try" in
24218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24219   *) ac_try_echo=$ac_try;;
24220 esac
24221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24222 $as_echo "$ac_try_echo") >&5
24223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24224   ac_status=$?
24225   grep -v '^ *+' conftest.er1 >conftest.err
24226   rm -f conftest.er1
24227   cat conftest.err >&5
24228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); } >/dev/null && {
24230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24231          test ! -s conftest.err
24232        }; then
24233   ac_header_preproc=yes
24234 else
24235   $as_echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24238   ac_header_preproc=no
24241 rm -f conftest.err conftest.$ac_ext
24242 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24243 $as_echo "$ac_header_preproc" >&6; }
24245 # So?  What about this header?
24246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24247   yes:no: )
24248     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
24249 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24250     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
24251 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
24252     ac_header_preproc=yes
24253     ;;
24254   no:yes:* )
24255     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
24256 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
24257     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
24258 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
24259     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
24260 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
24261     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
24262 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24263     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
24264 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
24265     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
24266 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
24268     ;;
24269 esac
24270 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
24271 $as_echo_n "checking for libxml/parser.h... " >&6; }
24272 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
24273   $as_echo_n "(cached) " >&6
24274 else
24275   ac_cv_header_libxml_parser_h=$ac_header_preproc
24277 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
24278 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
24281 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
24282   EX_CHECK_STATE=YES
24289           else
24290              { $as_echo "$as_me:$LINENO: WARNING:
24291 ----------------------------------------------------------------------------
24292 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
24293   You may want to set the PKG_CONFIG_PATH variable to point to its
24294   location.
24295 ----------------------------------------------------------------------------
24296                         " >&5
24297 $as_echo "$as_me: WARNING:
24298 ----------------------------------------------------------------------------
24299 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
24300   You may want to set the PKG_CONFIG_PATH variable to point to its
24301   location.
24302 ----------------------------------------------------------------------------
24303                         " >&2;}
24304            fi
24305      fi
24306   fi
24308   if test ${EX_CHECK_STATE} = NO; then
24309      { $as_echo "$as_me:$LINENO: WARNING:
24310 ----------------------------------------------------------------------------
24311 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
24312   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
24313   so that compiler and the linker can find libxml2 and its header files. If
24314   you have not installed libxml-2.0, you can get it either from its original home on
24316      http://xmlsoft.org/downloads.html
24318   You can find also find an archive copy on
24320      http://oss.oetiker.ch/rrdtool/pub/libs
24322   The last tested version of libxml-2.0 is 2.6.31.
24324        LIBS=$LIBS
24325    LDFLAGS=$LDFLAGS
24326   CPPFLAGS=$CPPFLAGS
24328 ----------------------------------------------------------------------------
24329                 " >&5
24330 $as_echo "$as_me: WARNING:
24331 ----------------------------------------------------------------------------
24332 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
24333   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
24334   so that compiler and the linker can find libxml2 and its header files. If
24335   you have not installed libxml-2.0, you can get it either from its original home on
24337      http://xmlsoft.org/downloads.html
24339   You can find also find an archive copy on
24341      http://oss.oetiker.ch/rrdtool/pub/libs
24343   The last tested version of libxml-2.0 is 2.6.31.
24345        LIBS=$LIBS
24346    LDFLAGS=$LDFLAGS
24347   CPPFLAGS=$CPPFLAGS
24349 ----------------------------------------------------------------------------
24350                 " >&2;}
24351        EX_CHECK_ALL_ERR=YES
24352        LIBS="${ex_check_save_LIBS}"
24353        CPPFLAGS="${ex_check_save_CPPFLAGS}"
24354        LDFLAGS="${ex_check_save_LDFLAGS}"
24355     fi
24356     ac_ext=c
24357 ac_cpp='$CPP $CPPFLAGS'
24358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24365 if test "$EX_CHECK_ALL_ERR" = "YES"; then
24366   { { $as_echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
24367 $as_echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
24368    { (exit 1); exit 1; }; }
24371 ALL_LIBS="$LIBS"
24372 LIBS=
24378 case $TERM in
24379        #   for the most important terminal types we directly know the sequences
24380        xterm|xterm*|vt220|vt220*)
24381                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
24382                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
24383        ;;
24384        vt100|vt100*|cygwin)
24385                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
24386                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
24387        ;;
24388        *)
24389                T_MD=''
24390                T_ME=''
24391        ;;
24392 esac
24393   { $as_echo "$as_me:$LINENO: result: " >&5
24394 $as_echo "" >&6; }
24395   { $as_echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
24396 $as_echo "${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
24399 PATH=$PATH:/usr/perl5/bin
24400 export PATH
24401 # Extract the first word of "perl", so it can be a program name with args.
24402 set dummy perl; ac_word=$2
24403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24404 $as_echo_n "checking for $ac_word... " >&6; }
24405 if test "${ac_cv_path_PERL+set}" = set; then
24406   $as_echo_n "(cached) " >&6
24407 else
24408   case $PERL in
24409   [\\/]* | ?:[\\/]*)
24410   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
24411   ;;
24412   *)
24413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24414 for as_dir in $PATH
24416   IFS=$as_save_IFS
24417   test -z "$as_dir" && as_dir=.
24418   for ac_exec_ext in '' $ac_executable_extensions; do
24419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24420     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
24421     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24422     break 2
24423   fi
24424 done
24425 done
24426 IFS=$as_save_IFS
24428   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
24429   ;;
24430 esac
24432 PERL=$ac_cv_path_PERL
24433 if test -n "$PERL"; then
24434   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
24435 $as_echo "$PERL" >&6; }
24436 else
24437   { $as_echo "$as_me:$LINENO: result: no" >&5
24438 $as_echo "no" >&6; }
24442 # Extract the first word of "pod2man", so it can be a program name with args.
24443 set dummy pod2man; ac_word=$2
24444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24445 $as_echo_n "checking for $ac_word... " >&6; }
24446 if test "${ac_cv_path_POD2MAN+set}" = set; then
24447   $as_echo_n "(cached) " >&6
24448 else
24449   case $POD2MAN in
24450   [\\/]* | ?:[\\/]*)
24451   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
24452   ;;
24453   *)
24454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24455 for as_dir in $PATH
24457   IFS=$as_save_IFS
24458   test -z "$as_dir" && as_dir=.
24459   for ac_exec_ext in '' $ac_executable_extensions; do
24460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24461     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
24462     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24463     break 2
24464   fi
24465 done
24466 done
24467 IFS=$as_save_IFS
24469   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
24470   ;;
24471 esac
24473 POD2MAN=$ac_cv_path_POD2MAN
24474 if test -n "$POD2MAN"; then
24475   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
24476 $as_echo "$POD2MAN" >&6; }
24477 else
24478   { $as_echo "$as_me:$LINENO: result: no" >&5
24479 $as_echo "no" >&6; }
24483 # Extract the first word of "pod2html", so it can be a program name with args.
24484 set dummy pod2html; ac_word=$2
24485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24486 $as_echo_n "checking for $ac_word... " >&6; }
24487 if test "${ac_cv_path_POD2HTML+set}" = set; then
24488   $as_echo_n "(cached) " >&6
24489 else
24490   case $POD2HTML in
24491   [\\/]* | ?:[\\/]*)
24492   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
24493   ;;
24494   *)
24495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24496 for as_dir in $PATH
24498   IFS=$as_save_IFS
24499   test -z "$as_dir" && as_dir=.
24500   for ac_exec_ext in '' $ac_executable_extensions; do
24501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24502     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
24503     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24504     break 2
24505   fi
24506 done
24507 done
24508 IFS=$as_save_IFS
24510   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
24511   ;;
24512 esac
24514 POD2HTML=$ac_cv_path_POD2HTML
24515 if test -n "$POD2HTML"; then
24516   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
24517 $as_echo "$POD2HTML" >&6; }
24518 else
24519   { $as_echo "$as_me:$LINENO: result: no" >&5
24520 $as_echo "no" >&6; }
24526 # Check whether --enable-perl was given.
24527 if test "${enable_perl+set}" = set; then
24528   enableval=$enable_perl;
24529 else
24530   enable_perl=yes
24540 if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
24541         COMP_PERL=
24542 else
24543         COMP_PERL="perl_piped perl_shared"
24544         { $as_echo "$as_me:$LINENO: checking for the perl version you are running" >&5
24545 $as_echo_n "checking for the perl version you are running... " >&6; }
24546         PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
24547         { $as_echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
24548 $as_echo "$PERL_VERSION" >&6; }
24549         if test -z "$PERLCC"; then
24550             { $as_echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
24551 $as_echo_n "checking for the C compiler perl wants to use to build its modules... " >&6; }
24552             perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
24553             { $as_echo "$as_me:$LINENO: result: $perlcc" >&5
24554 $as_echo "$perlcc" >&6; }
24555             if test ! -x "$perlcc"; then
24556                 # Extract the first word of "${perlcc}", so it can be a program name with args.
24557 set dummy ${perlcc}; ac_word=$2
24558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24559 $as_echo_n "checking for $ac_word... " >&6; }
24560 if test "${ac_cv_path_PERL_CC+set}" = set; then
24561   $as_echo_n "(cached) " >&6
24562 else
24563   case $PERL_CC in
24564   [\\/]* | ?:[\\/]*)
24565   ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
24566   ;;
24567   *)
24568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24569 for as_dir in $PATH
24571   IFS=$as_save_IFS
24572   test -z "$as_dir" && as_dir=.
24573   for ac_exec_ext in '' $ac_executable_extensions; do
24574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24575     ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
24576     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24577     break 2
24578   fi
24579 done
24580 done
24581 IFS=$as_save_IFS
24583   test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
24584   ;;
24585 esac
24587 PERL_CC=$ac_cv_path_PERL_CC
24588 if test -n "$PERL_CC"; then
24589   { $as_echo "$as_me:$LINENO: result: $PERL_CC" >&5
24590 $as_echo "$PERL_CC" >&6; }
24591 else
24592   { $as_echo "$as_me:$LINENO: result: no" >&5
24593 $as_echo "no" >&6; }
24597                 if test "$PERL_CC" = "no"; then
24598                     { $as_echo "$as_me:$LINENO: WARNING:
24599 I would not find the Compiler ($perlcc) that was originally used to compile
24600 your perl binary. You should either make sure that this compiler is
24601 available on your system, pick an other compiler and set PERLCC
24602 appropriately, or use a different perl setup that was compiled locally.
24604 I will disable the compilation of the RRDs perl module for now.
24605 " >&5
24606 $as_echo "$as_me: WARNING:
24607 I would not find the Compiler ($perlcc) that was originally used to compile
24608 your perl binary. You should either make sure that this compiler is
24609 available on your system, pick an other compiler and set PERLCC
24610 appropriately, or use a different perl setup that was compiled locally.
24612 I will disable the compilation of the RRDs perl module for now.
24613 " >&2;}
24614                     COMP_PERL="perl_piped"
24615                 fi
24616             fi
24617         fi
24620 { $as_echo "$as_me:$LINENO: checking Perl Modules to build" >&5
24621 $as_echo_n "checking Perl Modules to build... " >&6; }
24622 { $as_echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
24623 $as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
24625 # Options to pass when configuring perl module
24626 ppref=$prefix
24627 test "$ppref" = 'NONE' && ppref=$ac_default_prefix
24629 PERL_MAKE_OPTIONS="PREFIX="'$(DESTDIR)'"$ppref LIB="'$(DESTDIR)'"$ppref/lib/perl/$PERL_VERSION"
24631 # Check whether --enable-perl-site-install was given.
24632 if test "${enable_perl_site_install+set}" = set; then
24633   enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
24637 if test ! -z "$PERLCC"; then
24638    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
24640    if test ! -z "$PERLCCFLAGS"; then
24641        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
24642    fi
24644    if test -z "$PERLLD"; then
24645        PERLLD=$PERLCC
24646    fi
24647    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
24649    if test ! -z "$PERLLDFLAGS"; then
24650        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
24651    fi
24655 # Check whether --with-perl-options was given.
24656 if test "${with_perl_options+set}" = set; then
24657   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
24666 # Extract the first word of "ruby", so it can be a program name with args.
24667 set dummy ruby; ac_word=$2
24668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24669 $as_echo_n "checking for $ac_word... " >&6; }
24670 if test "${ac_cv_path_RUBY+set}" = set; then
24671   $as_echo_n "(cached) " >&6
24672 else
24673   case $RUBY in
24674   [\\/]* | ?:[\\/]*)
24675   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
24676   ;;
24677   *)
24678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24679 for as_dir in $PATH
24681   IFS=$as_save_IFS
24682   test -z "$as_dir" && as_dir=.
24683   for ac_exec_ext in '' $ac_executable_extensions; do
24684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24685     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
24686     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24687     break 2
24688   fi
24689 done
24690 done
24691 IFS=$as_save_IFS
24693   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
24694   ;;
24695 esac
24697 RUBY=$ac_cv_path_RUBY
24698 if test -n "$RUBY"; then
24699   { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
24700 $as_echo "$RUBY" >&6; }
24701 else
24702   { $as_echo "$as_me:$LINENO: result: no" >&5
24703 $as_echo "no" >&6; }
24708 # Check whether --enable-ruby was given.
24709 if test "${enable_ruby+set}" = set; then
24710   enableval=$enable_ruby;
24711 else
24712   enable_ruby=yes
24716 { $as_echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
24717 $as_echo_n "checking if ruby modules can be built... " >&6; }
24719 if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
24720         COMP_RUBY=
24721         { $as_echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
24722 $as_echo "No .. Ruby not found or disabled" >&6; }
24723 else
24724         if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
24725                 COMP_RUBY="ruby"
24726                 { $as_echo "$as_me:$LINENO: result: YES" >&5
24727 $as_echo "YES" >&6; }
24728         else
24729                 COMP_RUBY=
24730                 { $as_echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
24731 $as_echo "Ruby found but mkmf is missing! Install the -dev package" >&6; }
24732         fi
24735 rpref=$prefix
24736 test "$rpref" = 'NONE' && rpref=$ac_default_prefix
24738 # Check whether --enable-ruby-site-install was given.
24739 if test "${enable_ruby_site_install+set}" = set; then
24740   enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
24741 else
24742   RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$rpref/lib/ruby"
24748 # Check whether --with-ruby-options was given.
24749 if test "${with_ruby_options+set}" = set; then
24750   withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
24759 enable_tcl_site=no
24761 # Check whether --enable-tcl was given.
24762 if test "${enable_tcl+set}" = set; then
24763   enableval=$enable_tcl;
24764 else
24765   enable_tcl=yes
24769 if test  "$enable_tcl" = "yes"; then
24770     withval=""
24772 # Check whether --with-tcllib was given.
24773 if test "${with_tcllib+set}" = set; then
24774   withval=$with_tcllib;
24777   enable_tcl=no
24778   for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
24779     { $as_echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
24780 $as_echo_n "checking for tclConfig.sh in $dir... " >&6; }
24781     if test -f "$dir/tclConfig.sh" ; then
24782         tcl_config=$dir/tclConfig.sh
24783         enable_tcl=yes
24784         { $as_echo "$as_me:$LINENO: result: yes" >&5
24785 $as_echo "yes" >&6; }
24786         break
24787     else
24788         { $as_echo "$as_me:$LINENO: result: no" >&5
24789 $as_echo "no" >&6; }
24790     fi
24791   done
24793   if test "$enable_tcl" = "no"; then
24794         { $as_echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
24795 $as_echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
24796   else
24797         . $tcl_config
24798         TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
24799         if test -n "$TCL_INC_DIR"; then
24800           TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
24801         fi
24802   fi
24803   # Check whether --enable-tcl was given.
24804 if test "${enable_tcl+set}" = set; then
24805   enableval=$enable_tcl;
24806 else
24807   enable_tcl_site=yes
24813  if test "$enable_tcl" = "yes" ; then
24814   BUILD_TCL_TRUE=
24815   BUILD_TCL_FALSE='#'
24816 else
24817   BUILD_TCL_TRUE='#'
24818   BUILD_TCL_FALSE=
24821  if test "$enable_tcl_site" = "yes" ; then
24822   BUILD_TCL_SITE_TRUE=
24823   BUILD_TCL_SITE_FALSE='#'
24824 else
24825   BUILD_TCL_SITE_TRUE='#'
24826   BUILD_TCL_SITE_FALSE=
24842 # Check whether --enable-python was given.
24843 if test "${enable_python+set}" = set; then
24844   enableval=$enable_python;
24845 else
24846   enable_python=yes
24850 if test  "$enable_python" = "yes"; then
24855         if test -n "$PYTHON"; then
24856       # If the user set $PYTHON, use it and don't search something else.
24857       { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
24858 $as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
24859       prog="import sys, string
24860 # split strings by '.' and convert to numeric.  Append some zeros
24861 # because we need at least 4 digits for the hex conversion.
24862 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
24863 minverhex = 0
24864 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
24865 sys.exit(sys.hexversion < minverhex)"
24866   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
24867    ($PYTHON -c "$prog") >&5 2>&5
24868    ac_status=$?
24869    echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870    (exit $ac_status); }; then
24871   { $as_echo "$as_me:$LINENO: result: yes" >&5
24872 $as_echo "yes" >&6; }
24873 else
24874   { { $as_echo "$as_me:$LINENO: error: too old" >&5
24875 $as_echo "$as_me: error: too old" >&2;}
24876    { (exit 1); exit 1; }; }
24879       am_display_PYTHON=$PYTHON
24880     else
24881       # Otherwise, try each interpreter until we find one that satisfies
24882       # VERSION.
24883       { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
24884 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
24885 if test "${am_cv_pathless_PYTHON+set}" = set; then
24886   $as_echo_n "(cached) " >&6
24887 else
24889         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
24890           test "$am_cv_pathless_PYTHON" = none && break
24891           prog="import sys, string
24892 # split strings by '.' and convert to numeric.  Append some zeros
24893 # because we need at least 4 digits for the hex conversion.
24894 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
24895 minverhex = 0
24896 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
24897 sys.exit(sys.hexversion < minverhex)"
24898   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
24899    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
24900    ac_status=$?
24901    echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902    (exit $ac_status); }; then
24903   break
24906         done
24908 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
24909 $as_echo "$am_cv_pathless_PYTHON" >&6; }
24910       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
24911       if test "$am_cv_pathless_PYTHON" = none; then
24912         PYTHON=:
24913       else
24914         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
24915 set dummy $am_cv_pathless_PYTHON; ac_word=$2
24916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24917 $as_echo_n "checking for $ac_word... " >&6; }
24918 if test "${ac_cv_path_PYTHON+set}" = set; then
24919   $as_echo_n "(cached) " >&6
24920 else
24921   case $PYTHON in
24922   [\\/]* | ?:[\\/]*)
24923   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24924   ;;
24925   *)
24926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24927 for as_dir in $PATH
24929   IFS=$as_save_IFS
24930   test -z "$as_dir" && as_dir=.
24931   for ac_exec_ext in '' $ac_executable_extensions; do
24932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24933     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24934     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24935     break 2
24936   fi
24937 done
24938 done
24939 IFS=$as_save_IFS
24941   ;;
24942 esac
24944 PYTHON=$ac_cv_path_PYTHON
24945 if test -n "$PYTHON"; then
24946   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
24947 $as_echo "$PYTHON" >&6; }
24948 else
24949   { $as_echo "$as_me:$LINENO: result: no" >&5
24950 $as_echo "no" >&6; }
24954       fi
24955       am_display_PYTHON=$am_cv_pathless_PYTHON
24956     fi
24959   if test "$PYTHON" = :; then
24960       enable_python=no
24961   else
24964   { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
24965 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24966 if test "${am_cv_python_version+set}" = set; then
24967   $as_echo_n "(cached) " >&6
24968 else
24969   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
24971 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
24972 $as_echo "$am_cv_python_version" >&6; }
24973   PYTHON_VERSION=$am_cv_python_version
24977   PYTHON_PREFIX='${prefix}'
24979   PYTHON_EXEC_PREFIX='${exec_prefix}'
24983   { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
24984 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24985 if test "${am_cv_python_platform+set}" = set; then
24986   $as_echo_n "(cached) " >&6
24987 else
24988   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
24990 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
24991 $as_echo "$am_cv_python_platform" >&6; }
24992   PYTHON_PLATFORM=$am_cv_python_platform
24997                 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
24998 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24999 if test "${am_cv_python_pythondir+set}" = set; then
25000   $as_echo_n "(cached) " >&6
25001 else
25002   if test "x$prefix" = xNONE
25003      then
25004        py_prefix_arg=
25005      else
25006        py_prefix_arg=",prefix='$prefix'"
25007      fi
25008      am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0$py_prefix_arg)" -n -q install $py_prefix_arg 2>/dev/null ||
25009      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
25011 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
25012 $as_echo "$am_cv_python_pythondir" >&6; }
25013   pythondir=$am_cv_python_pythondir
25017   pkgpythondir=\${pythondir}/$PACKAGE
25020             { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
25021 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
25022 if test "${am_cv_python_pyexecdir+set}" = set; then
25023   $as_echo_n "(cached) " >&6
25024 else
25025   if test "x$exec_prefix" = xNONE
25026      then
25027        py_exec_prefix_arg=$py_prefix_arg
25028      else
25029        py_exec_prefix_arg=",prefix='$exec_prefix'"
25030      fi
25031      am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install $py_exec_prefix_arg 2>/dev/null ||
25032      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
25034 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
25035 $as_echo "$am_cv_python_pyexecdir" >&6; }
25036   pyexecdir=$am_cv_python_pyexecdir
25040   pkgpyexecdir=\${pyexecdir}/$PACKAGE
25044   fi
25048 { $as_echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
25049 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
25050 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
25051 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
25052 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
25053 if test "$py_prefix" != "$py_exec_prefix"; then
25054   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
25057 save_CPPFLAGS="$CPPFLAGS"
25058 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
25059 cat >conftest.$ac_ext <<_ACEOF
25060 /* confdefs.h.  */
25061 _ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h.  */
25065 #include <Python.h>
25066 _ACEOF
25067 if { (ac_try="$ac_cpp conftest.$ac_ext"
25068 case "(($ac_try" in
25069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25070   *) ac_try_echo=$ac_try;;
25071 esac
25072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25073 $as_echo "$ac_try_echo") >&5
25074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25075   ac_status=$?
25076   grep -v '^ *+' conftest.er1 >conftest.err
25077   rm -f conftest.er1
25078   cat conftest.err >&5
25079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080   (exit $ac_status); } >/dev/null && {
25081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25082          test ! -s conftest.err
25083        }; then
25084   { $as_echo "$as_me:$LINENO: result: found" >&5
25085 $as_echo "found" >&6; }
25087 else
25088   $as_echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25091   { $as_echo "$as_me:$LINENO: result: not found" >&5
25092 $as_echo "not found" >&6; }
25093 enable_python=no;{ $as_echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
25094 $as_echo "$as_me: WARNING: could not find Python headers" >&2;}
25097 rm -f conftest.err conftest.$ac_ext
25098 CPPFLAGS="$save_CPPFLAGS"
25102 if test  x$enable_python = xno; then
25103         COMP_PYTHON=
25104 else
25105         COMP_PYTHON="python"
25110 for ac_prog in gnroff nroff
25112   # Extract the first word of "$ac_prog", so it can be a program name with args.
25113 set dummy $ac_prog; ac_word=$2
25114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25115 $as_echo_n "checking for $ac_word... " >&6; }
25116 if test "${ac_cv_path_NROFF+set}" = set; then
25117   $as_echo_n "(cached) " >&6
25118 else
25119   case $NROFF in
25120   [\\/]* | ?:[\\/]*)
25121   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
25122   ;;
25123   *)
25124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25125 for as_dir in $PATH
25127   IFS=$as_save_IFS
25128   test -z "$as_dir" && as_dir=.
25129   for ac_exec_ext in '' $ac_executable_extensions; do
25130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25131     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
25132     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25133     break 2
25134   fi
25135 done
25136 done
25137 IFS=$as_save_IFS
25139   ;;
25140 esac
25142 NROFF=$ac_cv_path_NROFF
25143 if test -n "$NROFF"; then
25144   { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
25145 $as_echo "$NROFF" >&6; }
25146 else
25147   { $as_echo "$as_me:$LINENO: result: no" >&5
25148 $as_echo "no" >&6; }
25152   test -n "$NROFF" && break
25153 done
25155 for ac_prog in groff troff
25157   # Extract the first word of "$ac_prog", so it can be a program name with args.
25158 set dummy $ac_prog; ac_word=$2
25159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25160 $as_echo_n "checking for $ac_word... " >&6; }
25161 if test "${ac_cv_path_TROFF+set}" = set; then
25162   $as_echo_n "(cached) " >&6
25163 else
25164   case $TROFF in
25165   [\\/]* | ?:[\\/]*)
25166   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
25167   ;;
25168   *)
25169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25170 for as_dir in $PATH
25172   IFS=$as_save_IFS
25173   test -z "$as_dir" && as_dir=.
25174   for ac_exec_ext in '' $ac_executable_extensions; do
25175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25176     ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
25177     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25178     break 2
25179   fi
25180 done
25181 done
25182 IFS=$as_save_IFS
25184   ;;
25185 esac
25187 TROFF=$ac_cv_path_TROFF
25188 if test -n "$TROFF"; then
25189   { $as_echo "$as_me:$LINENO: result: $TROFF" >&5
25190 $as_echo "$TROFF" >&6; }
25191 else
25192   { $as_echo "$as_me:$LINENO: result: no" >&5
25193 $as_echo "no" >&6; }
25197   test -n "$TROFF" && break
25198 done
25202 if test -z "$RRDDOCDIR"; then
25203    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
25207 case $TERM in
25208        #   for the most important terminal types we directly know the sequences
25209        xterm|xterm*|vt220|vt220*)
25210                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25211                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25212        ;;
25213        vt100|vt100*|cygwin)
25214                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25215                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25216        ;;
25217        *)
25218                T_MD=''
25219                T_ME=''
25220        ;;
25221 esac
25222   { $as_echo "$as_me:$LINENO: result: " >&5
25223 $as_echo "" >&6; }
25224   { $as_echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
25225 $as_echo "${T_MD}Apply Configuration Information${T_ME}" >&6; }
25228 ac_config_files="$ac_config_files examples/shared-demo.pl"
25230 ac_config_files="$ac_config_files examples/piped-demo.pl"
25232 ac_config_files="$ac_config_files examples/stripes.pl"
25234 ac_config_files="$ac_config_files examples/bigtops.pl"
25236 ac_config_files="$ac_config_files examples/minmax.pl"
25238 ac_config_files="$ac_config_files examples/4charts.pl"
25240 ac_config_files="$ac_config_files examples/perftest.pl"
25242 ac_config_files="$ac_config_files examples/Makefile"
25244 ac_config_files="$ac_config_files doc/Makefile"
25246 ac_config_files="$ac_config_files po/Makefile.in"
25248 ac_config_files="$ac_config_files src/Makefile"
25250 ac_config_files="$ac_config_files src/librrd.sym.in"
25252 ac_config_files="$ac_config_files src/librrd.pc"
25254 ac_config_files="$ac_config_files bindings/Makefile"
25256 ac_config_files="$ac_config_files bindings/tcl/Makefile"
25258 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
25260 ac_config_files="$ac_config_files Makefile"
25263 ac_config_commands="$ac_config_commands default"
25265 cat >confcache <<\_ACEOF
25266 # This file is a shell script that caches the results of configure
25267 # tests run on this system so they can be shared between configure
25268 # scripts and configure runs, see configure's option --config-cache.
25269 # It is not useful on other systems.  If it contains results you don't
25270 # want to keep, you may remove or edit it.
25272 # config.status only pays attention to the cache file if you give it
25273 # the --recheck option to rerun configure.
25275 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25276 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25277 # following values.
25279 _ACEOF
25281 # The following way of writing the cache mishandles newlines in values,
25282 # but we know of no workaround that is simple, portable, and efficient.
25283 # So, we kill variables containing newlines.
25284 # Ultrix sh set writes to stderr and can't be redirected directly,
25285 # and sets the high bit in the cache file unless we assign to the vars.
25287   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25288     eval ac_val=\$$ac_var
25289     case $ac_val in #(
25290     *${as_nl}*)
25291       case $ac_var in #(
25292       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25293 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25294       esac
25295       case $ac_var in #(
25296       _ | IFS | as_nl) ;; #(
25297       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25298       *) $as_unset $ac_var ;;
25299       esac ;;
25300     esac
25301   done
25303   (set) 2>&1 |
25304     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25305     *${as_nl}ac_space=\ *)
25306       # `set' does not quote correctly, so add quotes (double-quote
25307       # substitution turns \\\\ into \\, and sed turns \\ into \).
25308       sed -n \
25309         "s/'/'\\\\''/g;
25310           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25311       ;; #(
25312     *)
25313       # `set' quotes correctly as required by POSIX, so do not add quotes.
25314       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25315       ;;
25316     esac |
25317     sort
25318 ) |
25319   sed '
25320      /^ac_cv_env_/b end
25321      t clear
25322      :clear
25323      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25324      t end
25325      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25326      :end' >>confcache
25327 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25328   if test -w "$cache_file"; then
25329     test "x$cache_file" != "x/dev/null" &&
25330       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25331 $as_echo "$as_me: updating cache $cache_file" >&6;}
25332     cat confcache >$cache_file
25333   else
25334     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25335 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25336   fi
25338 rm -f confcache
25340 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25341 # Let make expand exec_prefix.
25342 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25344 DEFS=-DHAVE_CONFIG_H
25346 ac_libobjs=
25347 ac_ltlibobjs=
25348 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25349   # 1. Remove the extension, and $U if already installed.
25350   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25351   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25352   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25353   #    will be set to the directory where LIBOBJS objects are built.
25354   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25355   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25356 done
25357 LIBOBJS=$ac_libobjs
25359 LTLIBOBJS=$ac_ltlibobjs
25362 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25363   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25364 Usually this means the macro was only invoked conditionally." >&5
25365 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25366 Usually this means the macro was only invoked conditionally." >&2;}
25367    { (exit 1); exit 1; }; }
25369 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
25370   { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
25371 Usually this means the macro was only invoked conditionally." >&5
25372 $as_echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
25373 Usually this means the macro was only invoked conditionally." >&2;}
25374    { (exit 1); exit 1; }; }
25376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25377   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25378 Usually this means the macro was only invoked conditionally." >&5
25379 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
25380 Usually this means the macro was only invoked conditionally." >&2;}
25381    { (exit 1); exit 1; }; }
25383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25384   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25385 Usually this means the macro was only invoked conditionally." >&5
25386 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25387 Usually this means the macro was only invoked conditionally." >&2;}
25388    { (exit 1); exit 1; }; }
25392   ac_config_commands="$ac_config_commands po/stamp-it"
25395 if test -z "${BUILD_LIBINTL_TRUE}" && test -z "${BUILD_LIBINTL_FALSE}"; then
25396   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBINTL\" was never defined.
25397 Usually this means the macro was only invoked conditionally." >&5
25398 $as_echo "$as_me: error: conditional \"BUILD_LIBINTL\" was never defined.
25399 Usually this means the macro was only invoked conditionally." >&2;}
25400    { (exit 1); exit 1; }; }
25402 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
25403   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
25404 Usually this means the macro was only invoked conditionally." >&5
25405 $as_echo "$as_me: error: conditional \"BUILD_GETOPT\" was never defined.
25406 Usually this means the macro was only invoked conditionally." >&2;}
25407    { (exit 1); exit 1; }; }
25409 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
25410   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
25411 Usually this means the macro was only invoked conditionally." >&5
25412 $as_echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
25413 Usually this means the macro was only invoked conditionally." >&2;}
25414    { (exit 1); exit 1; }; }
25416 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
25417   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
25418 Usually this means the macro was only invoked conditionally." >&5
25419 $as_echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
25420 Usually this means the macro was only invoked conditionally." >&2;}
25421    { (exit 1); exit 1; }; }
25423 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
25424   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
25425 Usually this means the macro was only invoked conditionally." >&5
25426 $as_echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
25427 Usually this means the macro was only invoked conditionally." >&2;}
25428    { (exit 1); exit 1; }; }
25430 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
25431   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
25432 Usually this means the macro was only invoked conditionally." >&5
25433 $as_echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
25434 Usually this means the macro was only invoked conditionally." >&2;}
25435    { (exit 1); exit 1; }; }
25438 : ${CONFIG_STATUS=./config.status}
25439 ac_write_fail=0
25440 ac_clean_files_save=$ac_clean_files
25441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25442 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25443 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25444 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25445 #! $SHELL
25446 # Generated by $as_me.
25447 # Run this file to recreate the current configuration.
25448 # Compiler output produced by configure, useful for debugging
25449 # configure, is in config.log if it exists.
25451 debug=false
25452 ac_cs_recheck=false
25453 ac_cs_silent=false
25454 SHELL=\${CONFIG_SHELL-$SHELL}
25455 _ACEOF
25457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25458 ## --------------------- ##
25459 ## M4sh Initialization.  ##
25460 ## --------------------- ##
25462 # Be more Bourne compatible
25463 DUALCASE=1; export DUALCASE # for MKS sh
25464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25465   emulate sh
25466   NULLCMD=:
25467   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25468   # is contrary to our usage.  Disable this feature.
25469   alias -g '${1+"$@"}'='"$@"'
25470   setopt NO_GLOB_SUBST
25471 else
25472   case `(set -o) 2>/dev/null` in
25473   *posix*) set -o posix ;;
25474 esac
25481 # PATH needs CR
25482 # Avoid depending upon Character Ranges.
25483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25486 as_cr_digits='0123456789'
25487 as_cr_alnum=$as_cr_Letters$as_cr_digits
25489 as_nl='
25491 export as_nl
25492 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25493 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25496 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25497   as_echo='printf %s\n'
25498   as_echo_n='printf %s'
25499 else
25500   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25501     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25502     as_echo_n='/usr/ucb/echo -n'
25503   else
25504     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25505     as_echo_n_body='eval
25506       arg=$1;
25507       case $arg in
25508       *"$as_nl"*)
25509         expr "X$arg" : "X\\(.*\\)$as_nl";
25510         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25511       esac;
25512       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25513     '
25514     export as_echo_n_body
25515     as_echo_n='sh -c $as_echo_n_body as_echo'
25516   fi
25517   export as_echo_body
25518   as_echo='sh -c $as_echo_body as_echo'
25521 # The user is always right.
25522 if test "${PATH_SEPARATOR+set}" != set; then
25523   PATH_SEPARATOR=:
25524   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25525     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25526       PATH_SEPARATOR=';'
25527   }
25530 # Support unset when possible.
25531 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25532   as_unset=unset
25533 else
25534   as_unset=false
25538 # IFS
25539 # We need space, tab and new line, in precisely that order.  Quoting is
25540 # there to prevent editors from complaining about space-tab.
25541 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25542 # splitting by setting IFS to empty value.)
25543 IFS=" ""        $as_nl"
25545 # Find who we are.  Look in the path if we contain no directory separator.
25546 case $0 in
25547   *[\\/]* ) as_myself=$0 ;;
25548   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25549 for as_dir in $PATH
25551   IFS=$as_save_IFS
25552   test -z "$as_dir" && as_dir=.
25553   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25554 done
25555 IFS=$as_save_IFS
25557      ;;
25558 esac
25559 # We did not find ourselves, most probably we were run as `sh COMMAND'
25560 # in which case we are not to be found in the path.
25561 if test "x$as_myself" = x; then
25562   as_myself=$0
25564 if test ! -f "$as_myself"; then
25565   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25566   { (exit 1); exit 1; }
25569 # Work around bugs in pre-3.0 UWIN ksh.
25570 for as_var in ENV MAIL MAILPATH
25571 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25572 done
25573 PS1='$ '
25574 PS2='> '
25575 PS4='+ '
25577 # NLS nuisances.
25578 LC_ALL=C
25579 export LC_ALL
25580 LANGUAGE=C
25581 export LANGUAGE
25583 # Required to use basename.
25584 if expr a : '\(a\)' >/dev/null 2>&1 &&
25585    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25586   as_expr=expr
25587 else
25588   as_expr=false
25591 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25592   as_basename=basename
25593 else
25594   as_basename=false
25598 # Name of the executable.
25599 as_me=`$as_basename -- "$0" ||
25600 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25601          X"$0" : 'X\(//\)$' \| \
25602          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25603 $as_echo X/"$0" |
25604     sed '/^.*\/\([^/][^/]*\)\/*$/{
25605             s//\1/
25606             q
25607           }
25608           /^X\/\(\/\/\)$/{
25609             s//\1/
25610             q
25611           }
25612           /^X\/\(\/\).*/{
25613             s//\1/
25614             q
25615           }
25616           s/.*/./; q'`
25618 # CDPATH.
25619 $as_unset CDPATH
25623   as_lineno_1=$LINENO
25624   as_lineno_2=$LINENO
25625   test "x$as_lineno_1" != "x$as_lineno_2" &&
25626   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25628   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25629   # uniformly replaced by the line number.  The first 'sed' inserts a
25630   # line-number line after each line using $LINENO; the second 'sed'
25631   # does the real work.  The second script uses 'N' to pair each
25632   # line-number line with the line containing $LINENO, and appends
25633   # trailing '-' during substitution so that $LINENO is not a special
25634   # case at line end.
25635   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25636   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25637   # E. McMahon (1931-1989) for sed's syntax.  :-)
25638   sed -n '
25639     p
25640     /[$]LINENO/=
25641   ' <$as_myself |
25642     sed '
25643       s/[$]LINENO.*/&-/
25644       t lineno
25645       b
25646       :lineno
25647       N
25648       :loop
25649       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25650       t loop
25651       s/-\n.*//
25652     ' >$as_me.lineno &&
25653   chmod +x "$as_me.lineno" ||
25654     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25655    { (exit 1); exit 1; }; }
25657   # Don't try to exec as it changes $[0], causing all sort of problems
25658   # (the dirname of $[0] is not the place where we might find the
25659   # original and so on.  Autoconf is especially sensitive to this).
25660   . "./$as_me.lineno"
25661   # Exit status is that of the last command.
25662   exit
25666 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25667   as_dirname=dirname
25668 else
25669   as_dirname=false
25672 ECHO_C= ECHO_N= ECHO_T=
25673 case `echo -n x` in
25674 -n*)
25675   case `echo 'x\c'` in
25676   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25677   *)   ECHO_C='\c';;
25678   esac;;
25680   ECHO_N='-n';;
25681 esac
25682 if expr a : '\(a\)' >/dev/null 2>&1 &&
25683    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25684   as_expr=expr
25685 else
25686   as_expr=false
25689 rm -f conf$$ conf$$.exe conf$$.file
25690 if test -d conf$$.dir; then
25691   rm -f conf$$.dir/conf$$.file
25692 else
25693   rm -f conf$$.dir
25694   mkdir conf$$.dir 2>/dev/null
25696 if (echo >conf$$.file) 2>/dev/null; then
25697   if ln -s conf$$.file conf$$ 2>/dev/null; then
25698     as_ln_s='ln -s'
25699     # ... but there are two gotchas:
25700     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25701     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25702     # In both cases, we have to default to `cp -p'.
25703     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25704       as_ln_s='cp -p'
25705   elif ln conf$$.file conf$$ 2>/dev/null; then
25706     as_ln_s=ln
25707   else
25708     as_ln_s='cp -p'
25709   fi
25710 else
25711   as_ln_s='cp -p'
25713 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25714 rmdir conf$$.dir 2>/dev/null
25716 if mkdir -p . 2>/dev/null; then
25717   as_mkdir_p=:
25718 else
25719   test -d ./-p && rmdir ./-p
25720   as_mkdir_p=false
25723 if test -x / >/dev/null 2>&1; then
25724   as_test_x='test -x'
25725 else
25726   if ls -dL / >/dev/null 2>&1; then
25727     as_ls_L_option=L
25728   else
25729     as_ls_L_option=
25730   fi
25731   as_test_x='
25732     eval sh -c '\''
25733       if test -d "$1"; then
25734         test -d "$1/.";
25735       else
25736         case $1 in
25737         -*)set "./$1";;
25738         esac;
25739         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25740         ???[sx]*):;;*)false;;esac;fi
25741     '\'' sh
25742   '
25744 as_executable_p=$as_test_x
25746 # Sed expression to map a string onto a valid CPP name.
25747 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25749 # Sed expression to map a string onto a valid variable name.
25750 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25753 exec 6>&1
25755 # Save the log message, to keep $[0] and so on meaningful, and to
25756 # report actual input values of CONFIG_FILES etc. instead of their
25757 # values after options handling.
25758 ac_log="
25759 This file was extended by rrdtool $as_me 1.3.8, which was
25760 generated by GNU Autoconf 2.63.  Invocation command line was
25762   CONFIG_FILES    = $CONFIG_FILES
25763   CONFIG_HEADERS  = $CONFIG_HEADERS
25764   CONFIG_LINKS    = $CONFIG_LINKS
25765   CONFIG_COMMANDS = $CONFIG_COMMANDS
25766   $ $0 $@
25768 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25771 _ACEOF
25773 case $ac_config_files in *"
25774 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25775 esac
25777 case $ac_config_headers in *"
25778 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25779 esac
25782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25783 # Files that config.status was made for.
25784 config_files="$ac_config_files"
25785 config_headers="$ac_config_headers"
25786 config_commands="$ac_config_commands"
25788 _ACEOF
25790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25791 ac_cs_usage="\
25792 \`$as_me' instantiates files from templates according to the
25793 current configuration.
25795 Usage: $0 [OPTION]... [FILE]...
25797   -h, --help       print this help, then exit
25798   -V, --version    print version number and configuration settings, then exit
25799   -q, --quiet, --silent
25800                    do not print progress messages
25801   -d, --debug      don't remove temporary files
25802       --recheck    update $as_me by reconfiguring in the same conditions
25803       --file=FILE[:TEMPLATE]
25804                    instantiate the configuration file FILE
25805       --header=FILE[:TEMPLATE]
25806                    instantiate the configuration header FILE
25808 Configuration files:
25809 $config_files
25811 Configuration headers:
25812 $config_headers
25814 Configuration commands:
25815 $config_commands
25817 Report bugs to <bug-autoconf@gnu.org>."
25819 _ACEOF
25820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25821 ac_cs_version="\\
25822 rrdtool config.status 1.3.8
25823 configured by $0, generated by GNU Autoconf 2.63,
25824   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25826 Copyright (C) 2008 Free Software Foundation, Inc.
25827 This config.status script is free software; the Free Software Foundation
25828 gives unlimited permission to copy, distribute and modify it."
25830 ac_pwd='$ac_pwd'
25831 srcdir='$srcdir'
25832 INSTALL='$INSTALL'
25833 MKDIR_P='$MKDIR_P'
25834 AWK='$AWK'
25835 test -n "\$AWK" || AWK=awk
25836 _ACEOF
25838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25839 # The default lists apply if the user does not specify any file.
25840 ac_need_defaults=:
25841 while test $# != 0
25843   case $1 in
25844   --*=*)
25845     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25846     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25847     ac_shift=:
25848     ;;
25849   *)
25850     ac_option=$1
25851     ac_optarg=$2
25852     ac_shift=shift
25853     ;;
25854   esac
25856   case $ac_option in
25857   # Handling of the options.
25858   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25859     ac_cs_recheck=: ;;
25860   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25861     $as_echo "$ac_cs_version"; exit ;;
25862   --debug | --debu | --deb | --de | --d | -d )
25863     debug=: ;;
25864   --file | --fil | --fi | --f )
25865     $ac_shift
25866     case $ac_optarg in
25867     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25868     esac
25869     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25870     ac_need_defaults=false;;
25871   --header | --heade | --head | --hea )
25872     $ac_shift
25873     case $ac_optarg in
25874     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25875     esac
25876     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25877     ac_need_defaults=false;;
25878   --he | --h)
25879     # Conflict between --help and --header
25880     { $as_echo "$as_me: error: ambiguous option: $1
25881 Try \`$0 --help' for more information." >&2
25882    { (exit 1); exit 1; }; };;
25883   --help | --hel | -h )
25884     $as_echo "$ac_cs_usage"; exit ;;
25885   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25886   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25887     ac_cs_silent=: ;;
25889   # This is an error.
25890   -*) { $as_echo "$as_me: error: unrecognized option: $1
25891 Try \`$0 --help' for more information." >&2
25892    { (exit 1); exit 1; }; } ;;
25894   *) ac_config_targets="$ac_config_targets $1"
25895      ac_need_defaults=false ;;
25897   esac
25898   shift
25899 done
25901 ac_configure_extra_args=
25903 if $ac_cs_silent; then
25904   exec 6>/dev/null
25905   ac_configure_extra_args="$ac_configure_extra_args --silent"
25908 _ACEOF
25909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25910 if \$ac_cs_recheck; then
25911   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25912   shift
25913   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25914   CONFIG_SHELL='$SHELL'
25915   export CONFIG_SHELL
25916   exec "\$@"
25919 _ACEOF
25920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25921 exec 5>>config.log
25923   echo
25924   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25925 ## Running $as_me. ##
25926 _ASBOX
25927   $as_echo "$ac_log"
25928 } >&5
25930 _ACEOF
25931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25933 # INIT-COMMANDS
25935 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25938 # The HP-UX ksh and POSIX shell print the target directory to stdout
25939 # if CDPATH is set.
25940 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25942 sed_quote_subst='$sed_quote_subst'
25943 double_quote_subst='$double_quote_subst'
25944 delay_variable_subst='$delay_variable_subst'
25945 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25946 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25947 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25948 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25949 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25950 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25951 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25952 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25953 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25954 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25955 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25956 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25957 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25958 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25959 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25960 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25961 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25962 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25963 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25964 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25965 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25966 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25967 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25968 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25969 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25970 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25971 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25972 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25973 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25974 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25975 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25976 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25977 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25978 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25979 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25980 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25981 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25982 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25983 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25984 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25985 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25986 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25987 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25988 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25989 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25991 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25992 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25993 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25994 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25995 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25996 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25997 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25998 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25999 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26000 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26001 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26002 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26003 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26004 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26005 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26006 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26007 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26008 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26009 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26010 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26011 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26012 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26013 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26014 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26015 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26016 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26017 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26018 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26019 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26020 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26021 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26022 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26023 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26024 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26025 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26026 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26027 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26028 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26029 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26030 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26031 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26032 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26033 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26034 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26035 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26036 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26037 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26038 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26039 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26040 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26041 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26042 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26043 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26044 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26045 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26046 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26047 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26048 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26049 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26050 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26051 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26052 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26053 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26054 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26055 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26056 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26057 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26058 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26059 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26060 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26061 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26062 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26064 LTCC='$LTCC'
26065 LTCFLAGS='$LTCFLAGS'
26066 compiler='$compiler_DEFAULT'
26068 # Quote evaled strings.
26069 for var in SED \
26070 GREP \
26071 EGREP \
26072 FGREP \
26073 LD \
26074 NM \
26075 LN_S \
26076 lt_SP2NL \
26077 lt_NL2SP \
26078 reload_flag \
26079 OBJDUMP \
26080 deplibs_check_method \
26081 file_magic_cmd \
26082 AR \
26083 AR_FLAGS \
26084 STRIP \
26085 RANLIB \
26086 CC \
26087 CFLAGS \
26088 compiler \
26089 lt_cv_sys_global_symbol_pipe \
26090 lt_cv_sys_global_symbol_to_cdecl \
26091 lt_cv_sys_global_symbol_to_c_name_address \
26092 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26093 SHELL \
26094 ECHO \
26095 lt_prog_compiler_no_builtin_flag \
26096 lt_prog_compiler_wl \
26097 lt_prog_compiler_pic \
26098 lt_prog_compiler_static \
26099 lt_cv_prog_compiler_c_o \
26100 need_locks \
26101 DSYMUTIL \
26102 NMEDIT \
26103 LIPO \
26104 OTOOL \
26105 OTOOL64 \
26106 shrext_cmds \
26107 export_dynamic_flag_spec \
26108 whole_archive_flag_spec \
26109 compiler_needs_object \
26110 with_gnu_ld \
26111 allow_undefined_flag \
26112 no_undefined_flag \
26113 hardcode_libdir_flag_spec \
26114 hardcode_libdir_flag_spec_ld \
26115 hardcode_libdir_separator \
26116 fix_srcfile_path \
26117 exclude_expsyms \
26118 include_expsyms \
26119 file_list_spec \
26120 variables_saved_for_relink \
26121 libname_spec \
26122 library_names_spec \
26123 soname_spec \
26124 finish_eval \
26125 old_striplib \
26126 striplib; do
26127     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26128     *[\\\\\\\`\\"\\\$]*)
26129       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26130       ;;
26131     *)
26132       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26133       ;;
26134     esac
26135 done
26137 # Double-quote double-evaled strings.
26138 for var in reload_cmds \
26139 old_postinstall_cmds \
26140 old_postuninstall_cmds \
26141 old_archive_cmds \
26142 extract_expsyms_cmds \
26143 old_archive_from_new_cmds \
26144 old_archive_from_expsyms_cmds \
26145 archive_cmds \
26146 archive_expsym_cmds \
26147 module_cmds \
26148 module_expsym_cmds \
26149 export_symbols_cmds \
26150 prelink_cmds \
26151 postinstall_cmds \
26152 postuninstall_cmds \
26153 finish_cmds \
26154 sys_lib_search_path_spec \
26155 sys_lib_dlsearch_path_spec; do
26156     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26157     *[\\\\\\\`\\"\\\$]*)
26158       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26159       ;;
26160     *)
26161       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26162       ;;
26163     esac
26164 done
26166 # Fix-up fallback echo if it was mangled by the above quoting rules.
26167 case \$lt_ECHO in
26168 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26169   ;;
26170 esac
26172 ac_aux_dir='$ac_aux_dir'
26173 xsi_shell='$xsi_shell'
26174 lt_shell_append='$lt_shell_append'
26176 # See if we are running on zsh, and set the options which allow our
26177 # commands through without removal of \ escapes INIT.
26178 if test -n "\${ZSH_VERSION+set}" ; then
26179    setopt NO_GLOB_SUBST
26183     PACKAGE='$PACKAGE'
26184     VERSION='$VERSION'
26185     TIMESTAMP='$TIMESTAMP'
26186     RM='$RM'
26187     ofile='$ofile'
26194 _ACEOF
26196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26198 # Handling of arguments.
26199 for ac_config_target in $ac_config_targets
26201   case $ac_config_target in
26202     "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
26203     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26204     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26205     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26206     "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
26207     "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
26208     "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
26209     "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
26210     "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
26211     "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
26212     "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
26213     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26214     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26215     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26216     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26217     "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
26218     "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
26219     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
26220     "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
26221     "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
26222     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26223     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26224     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
26226   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26227 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26228    { (exit 1); exit 1; }; };;
26229   esac
26230 done
26233 # If the user did not use the arguments to specify the items to instantiate,
26234 # then the envvar interface is used.  Set only those that are not.
26235 # We use the long form for the default assignment because of an extremely
26236 # bizarre bug on SunOS 4.1.3.
26237 if $ac_need_defaults; then
26238   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26239   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26240   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26243 # Have a temporary directory for convenience.  Make it in the build tree
26244 # simply because there is no reason against having it here, and in addition,
26245 # creating and moving files from /tmp can sometimes cause problems.
26246 # Hook for its removal unless debugging.
26247 # Note that there is a small window in which the directory will not be cleaned:
26248 # after its creation but before its name has been assigned to `$tmp'.
26249 $debug ||
26251   tmp=
26252   trap 'exit_status=$?
26253   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26254 ' 0
26255   trap '{ (exit 1); exit 1; }' 1 2 13 15
26257 # Create a (secure) tmp directory for tmp files.
26260   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26261   test -n "$tmp" && test -d "$tmp"
26262 }  ||
26264   tmp=./conf$$-$RANDOM
26265   (umask 077 && mkdir "$tmp")
26266 } ||
26268    $as_echo "$as_me: cannot create a temporary directory in ." >&2
26269    { (exit 1); exit 1; }
26272 # Set up the scripts for CONFIG_FILES section.
26273 # No need to generate them if there are no CONFIG_FILES.
26274 # This happens for instance with `./config.status config.h'.
26275 if test -n "$CONFIG_FILES"; then
26278 ac_cr='\r'
26279 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26280 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26281   ac_cs_awk_cr='\\r'
26282 else
26283   ac_cs_awk_cr=$ac_cr
26286 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26287 _ACEOF
26291   echo "cat >conf$$subs.awk <<_ACEOF" &&
26292   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26293   echo "_ACEOF"
26294 } >conf$$subs.sh ||
26295   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26296 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26297    { (exit 1); exit 1; }; }
26298 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26299 ac_delim='%!_!# '
26300 for ac_last_try in false false false false false :; do
26301   . ./conf$$subs.sh ||
26302     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26303 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26304    { (exit 1); exit 1; }; }
26306   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26307   if test $ac_delim_n = $ac_delim_num; then
26308     break
26309   elif $ac_last_try; then
26310     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26311 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26312    { (exit 1); exit 1; }; }
26313   else
26314     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26315   fi
26316 done
26317 rm -f conf$$subs.sh
26319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26320 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26321 _ACEOF
26322 sed -n '
26324 s/^/S["/; s/!.*/"]=/
26327 s/^[^!]*!//
26328 :repl
26329 t repl
26330 s/'"$ac_delim"'$//
26331 t delim
26332 :nl
26334 s/\(.\{148\}\).*/\1/
26335 t more1
26336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26339 b repl
26340 :more1
26341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26344 s/.\{148\}//
26345 t nl
26346 :delim
26348 s/\(.\{148\}\).*/\1/
26349 t more2
26350 s/["\\]/\\&/g; s/^/"/; s/$/"/
26353 :more2
26354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26357 s/.\{148\}//
26358 t delim
26359 ' <conf$$subs.awk | sed '
26360 /^[^""]/{
26361   N
26362   s/\n//
26364 ' >>$CONFIG_STATUS || ac_write_fail=1
26365 rm -f conf$$subs.awk
26366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26367 _ACAWK
26368 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26369   for (key in S) S_is_set[key] = 1
26370   FS = "\a"
26374   line = $ 0
26375   nfields = split(line, field, "@")
26376   substed = 0
26377   len = length(field[1])
26378   for (i = 2; i < nfields; i++) {
26379     key = field[i]
26380     keylen = length(key)
26381     if (S_is_set[key]) {
26382       value = S[key]
26383       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26384       len += length(value) + length(field[++i])
26385       substed = 1
26386     } else
26387       len += 1 + keylen
26388   }
26390   print line
26393 _ACAWK
26394 _ACEOF
26395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26396 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26397   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26398 else
26399   cat
26400 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26401   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26402 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26403    { (exit 1); exit 1; }; }
26404 _ACEOF
26406 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26407 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26408 # trailing colons and then remove the whole line if VPATH becomes empty
26409 # (actually we leave an empty line to preserve line numbers).
26410 if test "x$srcdir" = x.; then
26411   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26412 s/:*\$(srcdir):*/:/
26413 s/:*\${srcdir}:*/:/
26414 s/:*@srcdir@:*/:/
26415 s/^\([^=]*=[     ]*\):*/\1/
26416 s/:*$//
26417 s/^[^=]*=[       ]*$//
26421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26422 fi # test -n "$CONFIG_FILES"
26424 # Set up the scripts for CONFIG_HEADERS section.
26425 # No need to generate them if there are no CONFIG_HEADERS.
26426 # This happens for instance with `./config.status Makefile'.
26427 if test -n "$CONFIG_HEADERS"; then
26428 cat >"$tmp/defines.awk" <<\_ACAWK ||
26429 BEGIN {
26430 _ACEOF
26432 # Transform confdefs.h into an awk script `defines.awk', embedded as
26433 # here-document in config.status, that substitutes the proper values into
26434 # config.h.in to produce config.h.
26436 # Create a delimiter string that does not exist in confdefs.h, to ease
26437 # handling of long lines.
26438 ac_delim='%!_!# '
26439 for ac_last_try in false false :; do
26440   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26441   if test -z "$ac_t"; then
26442     break
26443   elif $ac_last_try; then
26444     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26445 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26446    { (exit 1); exit 1; }; }
26447   else
26448     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26449   fi
26450 done
26452 # For the awk script, D is an array of macro values keyed by name,
26453 # likewise P contains macro parameters if any.  Preserve backslash
26454 # newline sequences.
26456 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26457 sed -n '
26458 s/.\{148\}/&'"$ac_delim"'/g
26459 t rset
26460 :rset
26461 s/^[     ]*#[    ]*define[       ][      ]*/ /
26462 t def
26464 :def
26465 s/\\$//
26466 t bsnl
26467 s/["\\]/\\&/g
26468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26469 D["\1"]=" \3"/p
26470 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26472 :bsnl
26473 s/["\\]/\\&/g
26474 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26475 D["\1"]=" \3\\\\\\n"\\/p
26476 t cont
26477 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26478 t cont
26480 :cont
26482 s/.\{148\}/&'"$ac_delim"'/g
26483 t clear
26484 :clear
26485 s/\\$//
26486 t bsnlc
26487 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26489 :bsnlc
26490 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26491 b cont
26492 ' <confdefs.h | sed '
26493 s/'"$ac_delim"'/"\\\
26494 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26497   for (key in D) D_is_set[key] = 1
26498   FS = "\a"
26500 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26501   line = \$ 0
26502   split(line, arg, " ")
26503   if (arg[1] == "#") {
26504     defundef = arg[2]
26505     mac1 = arg[3]
26506   } else {
26507     defundef = substr(arg[1], 2)
26508     mac1 = arg[2]
26509   }
26510   split(mac1, mac2, "(") #)
26511   macro = mac2[1]
26512   prefix = substr(line, 1, index(line, defundef) - 1)
26513   if (D_is_set[macro]) {
26514     # Preserve the white space surrounding the "#".
26515     print prefix "define", macro P[macro] D[macro]
26516     next
26517   } else {
26518     # Replace #undef with comments.  This is necessary, for example,
26519     # in the case of _POSIX_SOURCE, which is predefined and required
26520     # on some systems where configure will not decide to define it.
26521     if (defundef == "undef") {
26522       print "/*", prefix defundef, macro, "*/"
26523       next
26524     }
26525   }
26527 { print }
26528 _ACAWK
26529 _ACEOF
26530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26531   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26532 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26533    { (exit 1); exit 1; }; }
26534 fi # test -n "$CONFIG_HEADERS"
26537 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26538 shift
26539 for ac_tag
26541   case $ac_tag in
26542   :[FHLC]) ac_mode=$ac_tag; continue;;
26543   esac
26544   case $ac_mode$ac_tag in
26545   :[FHL]*:*);;
26546   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
26547 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26548    { (exit 1); exit 1; }; };;
26549   :[FH]-) ac_tag=-:-;;
26550   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26551   esac
26552   ac_save_IFS=$IFS
26553   IFS=:
26554   set x $ac_tag
26555   IFS=$ac_save_IFS
26556   shift
26557   ac_file=$1
26558   shift
26560   case $ac_mode in
26561   :L) ac_source=$1;;
26562   :[FH])
26563     ac_file_inputs=
26564     for ac_f
26565     do
26566       case $ac_f in
26567       -) ac_f="$tmp/stdin";;
26568       *) # Look for the file first in the build tree, then in the source tree
26569          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26570          # because $ac_f cannot contain `:'.
26571          test -f "$ac_f" ||
26572            case $ac_f in
26573            [\\/$]*) false;;
26574            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26575            esac ||
26576            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26577 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26578    { (exit 1); exit 1; }; };;
26579       esac
26580       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26581       ac_file_inputs="$ac_file_inputs '$ac_f'"
26582     done
26584     # Let's still pretend it is `configure' which instantiates (i.e., don't
26585     # use $as_me), people would be surprised to read:
26586     #    /* config.h.  Generated by config.status.  */
26587     configure_input='Generated from '`
26588           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26589         `' by configure.'
26590     if test x"$ac_file" != x-; then
26591       configure_input="$ac_file.  $configure_input"
26592       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26593 $as_echo "$as_me: creating $ac_file" >&6;}
26594     fi
26595     # Neutralize special characters interpreted by sed in replacement strings.
26596     case $configure_input in #(
26597     *\&* | *\|* | *\\* )
26598        ac_sed_conf_input=`$as_echo "$configure_input" |
26599        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26600     *) ac_sed_conf_input=$configure_input;;
26601     esac
26603     case $ac_tag in
26604     *:-:* | *:-) cat >"$tmp/stdin" \
26605       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26606 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26607    { (exit 1); exit 1; }; } ;;
26608     esac
26609     ;;
26610   esac
26612   ac_dir=`$as_dirname -- "$ac_file" ||
26613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26614          X"$ac_file" : 'X\(//\)[^/]' \| \
26615          X"$ac_file" : 'X\(//\)$' \| \
26616          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26617 $as_echo X"$ac_file" |
26618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26619             s//\1/
26620             q
26621           }
26622           /^X\(\/\/\)[^/].*/{
26623             s//\1/
26624             q
26625           }
26626           /^X\(\/\/\)$/{
26627             s//\1/
26628             q
26629           }
26630           /^X\(\/\).*/{
26631             s//\1/
26632             q
26633           }
26634           s/.*/./; q'`
26635   { as_dir="$ac_dir"
26636   case $as_dir in #(
26637   -*) as_dir=./$as_dir;;
26638   esac
26639   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26640     as_dirs=
26641     while :; do
26642       case $as_dir in #(
26643       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26644       *) as_qdir=$as_dir;;
26645       esac
26646       as_dirs="'$as_qdir' $as_dirs"
26647       as_dir=`$as_dirname -- "$as_dir" ||
26648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26649          X"$as_dir" : 'X\(//\)[^/]' \| \
26650          X"$as_dir" : 'X\(//\)$' \| \
26651          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26652 $as_echo X"$as_dir" |
26653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26654             s//\1/
26655             q
26656           }
26657           /^X\(\/\/\)[^/].*/{
26658             s//\1/
26659             q
26660           }
26661           /^X\(\/\/\)$/{
26662             s//\1/
26663             q
26664           }
26665           /^X\(\/\).*/{
26666             s//\1/
26667             q
26668           }
26669           s/.*/./; q'`
26670       test -d "$as_dir" && break
26671     done
26672     test -z "$as_dirs" || eval "mkdir $as_dirs"
26673   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26674 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26675    { (exit 1); exit 1; }; }; }
26676   ac_builddir=.
26678 case "$ac_dir" in
26679 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26681   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26682   # A ".." for each directory in $ac_dir_suffix.
26683   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26684   case $ac_top_builddir_sub in
26685   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26686   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26687   esac ;;
26688 esac
26689 ac_abs_top_builddir=$ac_pwd
26690 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26691 # for backward compatibility:
26692 ac_top_builddir=$ac_top_build_prefix
26694 case $srcdir in
26695   .)  # We are building in place.
26696     ac_srcdir=.
26697     ac_top_srcdir=$ac_top_builddir_sub
26698     ac_abs_top_srcdir=$ac_pwd ;;
26699   [\\/]* | ?:[\\/]* )  # Absolute name.
26700     ac_srcdir=$srcdir$ac_dir_suffix;
26701     ac_top_srcdir=$srcdir
26702     ac_abs_top_srcdir=$srcdir ;;
26703   *) # Relative name.
26704     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26705     ac_top_srcdir=$ac_top_build_prefix$srcdir
26706     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26707 esac
26708 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26711   case $ac_mode in
26712   :F)
26713   #
26714   # CONFIG_FILE
26715   #
26717   case $INSTALL in
26718   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26719   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26720   esac
26721   ac_MKDIR_P=$MKDIR_P
26722   case $MKDIR_P in
26723   [\\/$]* | ?:[\\/]* ) ;;
26724   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26725   esac
26726 _ACEOF
26728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26729 # If the template does not know about datarootdir, expand it.
26730 # FIXME: This hack should be removed a few years after 2.60.
26731 ac_datarootdir_hack=; ac_datarootdir_seen=
26733 ac_sed_dataroot='
26734 /datarootdir/ {
26735   p
26736   q
26738 /@datadir@/p
26739 /@docdir@/p
26740 /@infodir@/p
26741 /@localedir@/p
26742 /@mandir@/p
26744 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26745 *datarootdir*) ac_datarootdir_seen=yes;;
26746 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26747   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26748 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26749 _ACEOF
26750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26751   ac_datarootdir_hack='
26752   s&@datadir@&$datadir&g
26753   s&@docdir@&$docdir&g
26754   s&@infodir@&$infodir&g
26755   s&@localedir@&$localedir&g
26756   s&@mandir@&$mandir&g
26757     s&\\\${datarootdir}&$datarootdir&g' ;;
26758 esac
26759 _ACEOF
26761 # Neutralize VPATH when `$srcdir' = `.'.
26762 # Shell code in configure.ac might set extrasub.
26763 # FIXME: do we really want to maintain this feature?
26764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26765 ac_sed_extra="$ac_vpsub
26766 $extrasub
26767 _ACEOF
26768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26771 s|@configure_input@|$ac_sed_conf_input|;t t
26772 s&@top_builddir@&$ac_top_builddir_sub&;t t
26773 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26774 s&@srcdir@&$ac_srcdir&;t t
26775 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26776 s&@top_srcdir@&$ac_top_srcdir&;t t
26777 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26778 s&@builddir@&$ac_builddir&;t t
26779 s&@abs_builddir@&$ac_abs_builddir&;t t
26780 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26781 s&@INSTALL@&$ac_INSTALL&;t t
26782 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26783 $ac_datarootdir_hack
26785 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26786   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26787 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26788    { (exit 1); exit 1; }; }
26790 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26791   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26792   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26793   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26794 which seems to be undefined.  Please make sure it is defined." >&5
26795 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26796 which seems to be undefined.  Please make sure it is defined." >&2;}
26798   rm -f "$tmp/stdin"
26799   case $ac_file in
26800   -) cat "$tmp/out" && rm -f "$tmp/out";;
26801   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26802   esac \
26803   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26804 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26805    { (exit 1); exit 1; }; }
26806  ;;
26807   :H)
26808   #
26809   # CONFIG_HEADER
26810   #
26811   if test x"$ac_file" != x-; then
26812     {
26813       $as_echo "/* $configure_input  */" \
26814       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26815     } >"$tmp/config.h" \
26816       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26817 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26818    { (exit 1); exit 1; }; }
26819     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26820       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26821 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26822     else
26823       rm -f "$ac_file"
26824       mv "$tmp/config.h" "$ac_file" \
26825         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26826 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26827    { (exit 1); exit 1; }; }
26828     fi
26829   else
26830     $as_echo "/* $configure_input  */" \
26831       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26832       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26833 $as_echo "$as_me: error: could not create -" >&2;}
26834    { (exit 1); exit 1; }; }
26835   fi
26836 # Compute "$ac_file"'s index in $config_headers.
26837 _am_arg="$ac_file"
26838 _am_stamp_count=1
26839 for _am_header in $config_headers :; do
26840   case $_am_header in
26841     $_am_arg | $_am_arg:* )
26842       break ;;
26843     * )
26844       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26845   esac
26846 done
26847 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26848 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26849          X"$_am_arg" : 'X\(//\)[^/]' \| \
26850          X"$_am_arg" : 'X\(//\)$' \| \
26851          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26852 $as_echo X"$_am_arg" |
26853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26854             s//\1/
26855             q
26856           }
26857           /^X\(\/\/\)[^/].*/{
26858             s//\1/
26859             q
26860           }
26861           /^X\(\/\/\)$/{
26862             s//\1/
26863             q
26864           }
26865           /^X\(\/\).*/{
26866             s//\1/
26867             q
26868           }
26869           s/.*/./; q'`/stamp-h$_am_stamp_count
26870  ;;
26872   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26873 $as_echo "$as_me: executing $ac_file commands" >&6;}
26874  ;;
26875   esac
26878   case $ac_file$ac_mode in
26879     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26880   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26881   # are listed without --file.  Let's play safe and only enable the eval
26882   # if we detect the quoting.
26883   case $CONFIG_FILES in
26884   *\'*) eval set x "$CONFIG_FILES" ;;
26885   *)   set x $CONFIG_FILES ;;
26886   esac
26887   shift
26888   for mf
26889   do
26890     # Strip MF so we end up with the name of the file.
26891     mf=`echo "$mf" | sed -e 's/:.*$//'`
26892     # Check whether this is an Automake generated Makefile or not.
26893     # We used to match only the files named `Makefile.in', but
26894     # some people rename them; so instead we look at the file content.
26895     # Grep'ing the first line is not enough: some people post-process
26896     # each Makefile.in and add a new line on top of each file to say so.
26897     # Grep'ing the whole file is not good either: AIX grep has a line
26898     # limit of 2048, but all sed's we know have understand at least 4000.
26899     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26900       dirpart=`$as_dirname -- "$mf" ||
26901 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26902          X"$mf" : 'X\(//\)[^/]' \| \
26903          X"$mf" : 'X\(//\)$' \| \
26904          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26905 $as_echo X"$mf" |
26906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26907             s//\1/
26908             q
26909           }
26910           /^X\(\/\/\)[^/].*/{
26911             s//\1/
26912             q
26913           }
26914           /^X\(\/\/\)$/{
26915             s//\1/
26916             q
26917           }
26918           /^X\(\/\).*/{
26919             s//\1/
26920             q
26921           }
26922           s/.*/./; q'`
26923     else
26924       continue
26925     fi
26926     # Extract the definition of DEPDIR, am__include, and am__quote
26927     # from the Makefile without running `make'.
26928     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26929     test -z "$DEPDIR" && continue
26930     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26931     test -z "am__include" && continue
26932     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26933     # When using ansi2knr, U may be empty or an underscore; expand it
26934     U=`sed -n 's/^U = //p' < "$mf"`
26935     # Find all dependency output files, they are included files with
26936     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26937     # simplest approach to changing $(DEPDIR) to its actual value in the
26938     # expansion.
26939     for file in `sed -n "
26940       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26941          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26942       # Make sure the directory exists.
26943       test -f "$dirpart/$file" && continue
26944       fdir=`$as_dirname -- "$file" ||
26945 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26946          X"$file" : 'X\(//\)[^/]' \| \
26947          X"$file" : 'X\(//\)$' \| \
26948          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26949 $as_echo X"$file" |
26950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26951             s//\1/
26952             q
26953           }
26954           /^X\(\/\/\)[^/].*/{
26955             s//\1/
26956             q
26957           }
26958           /^X\(\/\/\)$/{
26959             s//\1/
26960             q
26961           }
26962           /^X\(\/\).*/{
26963             s//\1/
26964             q
26965           }
26966           s/.*/./; q'`
26967       { as_dir=$dirpart/$fdir
26968   case $as_dir in #(
26969   -*) as_dir=./$as_dir;;
26970   esac
26971   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26972     as_dirs=
26973     while :; do
26974       case $as_dir in #(
26975       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26976       *) as_qdir=$as_dir;;
26977       esac
26978       as_dirs="'$as_qdir' $as_dirs"
26979       as_dir=`$as_dirname -- "$as_dir" ||
26980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26981          X"$as_dir" : 'X\(//\)[^/]' \| \
26982          X"$as_dir" : 'X\(//\)$' \| \
26983          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26984 $as_echo X"$as_dir" |
26985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26986             s//\1/
26987             q
26988           }
26989           /^X\(\/\/\)[^/].*/{
26990             s//\1/
26991             q
26992           }
26993           /^X\(\/\/\)$/{
26994             s//\1/
26995             q
26996           }
26997           /^X\(\/\).*/{
26998             s//\1/
26999             q
27000           }
27001           s/.*/./; q'`
27002       test -d "$as_dir" && break
27003     done
27004     test -z "$as_dirs" || eval "mkdir $as_dirs"
27005   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27006 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27007    { (exit 1); exit 1; }; }; }
27008       # echo "creating $dirpart/$file"
27009       echo '# dummy' > "$dirpart/$file"
27010     done
27011   done
27013  ;;
27014     "libtool":C)
27016     # See if we are running on zsh, and set the options which allow our
27017     # commands through without removal of \ escapes.
27018     if test -n "${ZSH_VERSION+set}" ; then
27019       setopt NO_GLOB_SUBST
27020     fi
27022     cfgfile="${ofile}T"
27023     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27024     $RM "$cfgfile"
27026     cat <<_LT_EOF >> "$cfgfile"
27027 #! $SHELL
27029 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27030 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27032 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27034 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27035 #                 2006, 2007, 2008 Free Software Foundation, Inc.
27036 #   Written by Gordon Matzigkeit, 1996
27038 #   This file is part of GNU Libtool.
27040 # GNU Libtool is free software; you can redistribute it and/or
27041 # modify it under the terms of the GNU General Public License as
27042 # published by the Free Software Foundation; either version 2 of
27043 # the License, or (at your option) any later version.
27045 # As a special exception to the GNU General Public License,
27046 # if you distribute this file as part of a program or library that
27047 # is built using GNU Libtool, you may include this file under the
27048 # same distribution terms that you use for the rest of that program.
27050 # GNU Libtool is distributed in the hope that it will be useful,
27051 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27052 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27053 # GNU General Public License for more details.
27055 # You should have received a copy of the GNU General Public License
27056 # along with GNU Libtool; see the file COPYING.  If not, a copy
27057 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27058 # obtained by writing to the Free Software Foundation, Inc.,
27059 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27062 # The names of the tagged configurations supported by this script.
27063 available_tags=""
27065 # ### BEGIN LIBTOOL CONFIG
27067 # Which release of libtool.m4 was used?
27068 macro_version=$macro_version
27069 macro_revision=$macro_revision
27071 # Whether or not to build shared libraries.
27072 build_libtool_libs=$enable_shared
27074 # Whether or not to build static libraries.
27075 build_old_libs=$enable_static
27077 # What type of objects to build.
27078 pic_mode=$pic_mode
27080 # Whether or not to optimize for fast installation.
27081 fast_install=$enable_fast_install
27083 # The host system.
27084 host_alias=$host_alias
27085 host=$host
27086 host_os=$host_os
27088 # The build system.
27089 build_alias=$build_alias
27090 build=$build
27091 build_os=$build_os
27093 # A sed program that does not truncate output.
27094 SED=$lt_SED
27096 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27097 Xsed="\$SED -e 1s/^X//"
27099 # A grep program that handles long lines.
27100 GREP=$lt_GREP
27102 # An ERE matcher.
27103 EGREP=$lt_EGREP
27105 # A literal string matcher.
27106 FGREP=$lt_FGREP
27108 # A BSD- or MS-compatible name lister.
27109 NM=$lt_NM
27111 # Whether we need soft or hard links.
27112 LN_S=$lt_LN_S
27114 # What is the maximum length of a command?
27115 max_cmd_len=$max_cmd_len
27117 # Object file suffix (normally "o").
27118 objext=$ac_objext
27120 # Executable file suffix (normally "").
27121 exeext=$exeext
27123 # whether the shell understands "unset".
27124 lt_unset=$lt_unset
27126 # turn spaces into newlines.
27127 SP2NL=$lt_lt_SP2NL
27129 # turn newlines into spaces.
27130 NL2SP=$lt_lt_NL2SP
27132 # How to create reloadable object files.
27133 reload_flag=$lt_reload_flag
27134 reload_cmds=$lt_reload_cmds
27136 # An object symbol dumper.
27137 OBJDUMP=$lt_OBJDUMP
27139 # Method to check whether dependent libraries are shared objects.
27140 deplibs_check_method=$lt_deplibs_check_method
27142 # Command to use when deplibs_check_method == "file_magic".
27143 file_magic_cmd=$lt_file_magic_cmd
27145 # The archiver.
27146 AR=$lt_AR
27147 AR_FLAGS=$lt_AR_FLAGS
27149 # A symbol stripping program.
27150 STRIP=$lt_STRIP
27152 # Commands used to install an old-style archive.
27153 RANLIB=$lt_RANLIB
27154 old_postinstall_cmds=$lt_old_postinstall_cmds
27155 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27157 # A C compiler.
27158 LTCC=$lt_CC
27160 # LTCC compiler flags.
27161 LTCFLAGS=$lt_CFLAGS
27163 # Take the output of nm and produce a listing of raw symbols and C names.
27164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27166 # Transform the output of nm in a proper C declaration.
27167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27169 # Transform the output of nm in a C name address pair.
27170 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27172 # Transform the output of nm in a C name address pair when lib prefix is needed.
27173 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27175 # The name of the directory that contains temporary libtool files.
27176 objdir=$objdir
27178 # Shell to use when invoking shell scripts.
27179 SHELL=$lt_SHELL
27181 # An echo program that does not interpret backslashes.
27182 ECHO=$lt_ECHO
27184 # Used to examine libraries when file_magic_cmd begins with "file".
27185 MAGIC_CMD=$MAGIC_CMD
27187 # Must we lock files when doing compilation?
27188 need_locks=$lt_need_locks
27190 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27191 DSYMUTIL=$lt_DSYMUTIL
27193 # Tool to change global to local symbols on Mac OS X.
27194 NMEDIT=$lt_NMEDIT
27196 # Tool to manipulate fat objects and archives on Mac OS X.
27197 LIPO=$lt_LIPO
27199 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27200 OTOOL=$lt_OTOOL
27202 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27203 OTOOL64=$lt_OTOOL64
27205 # Old archive suffix (normally "a").
27206 libext=$libext
27208 # Shared library suffix (normally ".so").
27209 shrext_cmds=$lt_shrext_cmds
27211 # The commands to extract the exported symbol list from a shared archive.
27212 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27214 # Variables whose values should be saved in libtool wrapper scripts and
27215 # restored at link time.
27216 variables_saved_for_relink=$lt_variables_saved_for_relink
27218 # Do we need the "lib" prefix for modules?
27219 need_lib_prefix=$need_lib_prefix
27221 # Do we need a version for libraries?
27222 need_version=$need_version
27224 # Library versioning type.
27225 version_type=$version_type
27227 # Shared library runtime path variable.
27228 runpath_var=$runpath_var
27230 # Shared library path variable.
27231 shlibpath_var=$shlibpath_var
27233 # Is shlibpath searched before the hard-coded library search path?
27234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27236 # Format of library name prefix.
27237 libname_spec=$lt_libname_spec
27239 # List of archive names.  First name is the real one, the rest are links.
27240 # The last name is the one that the linker finds with -lNAME
27241 library_names_spec=$lt_library_names_spec
27243 # The coded name of the library, if different from the real name.
27244 soname_spec=$lt_soname_spec
27246 # Command to use after installation of a shared archive.
27247 postinstall_cmds=$lt_postinstall_cmds
27249 # Command to use after uninstallation of a shared archive.
27250 postuninstall_cmds=$lt_postuninstall_cmds
27252 # Commands used to finish a libtool library installation in a directory.
27253 finish_cmds=$lt_finish_cmds
27255 # As "finish_cmds", except a single script fragment to be evaled but
27256 # not shown.
27257 finish_eval=$lt_finish_eval
27259 # Whether we should hardcode library paths into libraries.
27260 hardcode_into_libs=$hardcode_into_libs
27262 # Compile-time system search path for libraries.
27263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27265 # Run-time system search path for libraries.
27266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27268 # Whether dlopen is supported.
27269 dlopen_support=$enable_dlopen
27271 # Whether dlopen of programs is supported.
27272 dlopen_self=$enable_dlopen_self
27274 # Whether dlopen of statically linked programs is supported.
27275 dlopen_self_static=$enable_dlopen_self_static
27277 # Commands to strip libraries.
27278 old_striplib=$lt_old_striplib
27279 striplib=$lt_striplib
27282 # The linker used to build libraries.
27283 LD=$lt_LD
27285 # Commands used to build an old-style archive.
27286 old_archive_cmds=$lt_old_archive_cmds
27288 # A language specific compiler.
27289 CC=$lt_compiler
27291 # Is the compiler the GNU compiler?
27292 with_gcc=$GCC
27294 # Compiler flag to turn off builtin functions.
27295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27297 # How to pass a linker flag through the compiler.
27298 wl=$lt_lt_prog_compiler_wl
27300 # Additional compiler flags for building library objects.
27301 pic_flag=$lt_lt_prog_compiler_pic
27303 # Compiler flag to prevent dynamic linking.
27304 link_static_flag=$lt_lt_prog_compiler_static
27306 # Does compiler simultaneously support -c and -o options?
27307 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27309 # Whether or not to add -lc for building shared libraries.
27310 build_libtool_need_lc=$archive_cmds_need_lc
27312 # Whether or not to disallow shared libs when runtime libs are static.
27313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27315 # Compiler flag to allow reflexive dlopens.
27316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27318 # Compiler flag to generate shared objects directly from archives.
27319 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27321 # Whether the compiler copes with passing no objects directly.
27322 compiler_needs_object=$lt_compiler_needs_object
27324 # Create an old-style archive from a shared archive.
27325 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27327 # Create a temporary old-style archive to link instead of a shared archive.
27328 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27330 # Commands used to build a shared archive.
27331 archive_cmds=$lt_archive_cmds
27332 archive_expsym_cmds=$lt_archive_expsym_cmds
27334 # Commands used to build a loadable module if different from building
27335 # a shared archive.
27336 module_cmds=$lt_module_cmds
27337 module_expsym_cmds=$lt_module_expsym_cmds
27339 # Whether we are building with GNU ld or not.
27340 with_gnu_ld=$lt_with_gnu_ld
27342 # Flag that allows shared libraries with undefined symbols to be built.
27343 allow_undefined_flag=$lt_allow_undefined_flag
27345 # Flag that enforces no undefined symbols.
27346 no_undefined_flag=$lt_no_undefined_flag
27348 # Flag to hardcode \$libdir into a binary during linking.
27349 # This must work even if \$libdir does not exist
27350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27352 # If ld is used when linking, flag to hardcode \$libdir into a binary
27353 # during linking.  This must work even if \$libdir does not exist.
27354 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27356 # Whether we need a single "-rpath" flag with a separated argument.
27357 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27359 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27360 # DIR into the resulting binary.
27361 hardcode_direct=$hardcode_direct
27363 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27364 # DIR into the resulting binary and the resulting library dependency is
27365 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27366 # library is relocated.
27367 hardcode_direct_absolute=$hardcode_direct_absolute
27369 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27370 # into the resulting binary.
27371 hardcode_minus_L=$hardcode_minus_L
27373 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27374 # into the resulting binary.
27375 hardcode_shlibpath_var=$hardcode_shlibpath_var
27377 # Set to "yes" if building a shared library automatically hardcodes DIR
27378 # into the library and all subsequent libraries and executables linked
27379 # against it.
27380 hardcode_automatic=$hardcode_automatic
27382 # Set to yes if linker adds runtime paths of dependent libraries
27383 # to runtime path list.
27384 inherit_rpath=$inherit_rpath
27386 # Whether libtool must link a program against all its dependency libraries.
27387 link_all_deplibs=$link_all_deplibs
27389 # Fix the shell variable \$srcfile for the compiler.
27390 fix_srcfile_path=$lt_fix_srcfile_path
27392 # Set to "yes" if exported symbols are required.
27393 always_export_symbols=$always_export_symbols
27395 # The commands to list exported symbols.
27396 export_symbols_cmds=$lt_export_symbols_cmds
27398 # Symbols that should not be listed in the preloaded symbols.
27399 exclude_expsyms=$lt_exclude_expsyms
27401 # Symbols that must always be exported.
27402 include_expsyms=$lt_include_expsyms
27404 # Commands necessary for linking programs (against libraries) with templates.
27405 prelink_cmds=$lt_prelink_cmds
27407 # Specify filename containing input files.
27408 file_list_spec=$lt_file_list_spec
27410 # How to hardcode a shared library path into an executable.
27411 hardcode_action=$hardcode_action
27413 # ### END LIBTOOL CONFIG
27415 _LT_EOF
27417   case $host_os in
27418   aix3*)
27419     cat <<\_LT_EOF >> "$cfgfile"
27420 # AIX sometimes has problems with the GCC collect2 program.  For some
27421 # reason, if we set the COLLECT_NAMES environment variable, the problems
27422 # vanish in a puff of smoke.
27423 if test "X${COLLECT_NAMES+set}" != Xset; then
27424   COLLECT_NAMES=
27425   export COLLECT_NAMES
27427 _LT_EOF
27428     ;;
27429   esac
27432 ltmain="$ac_aux_dir/ltmain.sh"
27435   # We use sed instead of cat because bash on DJGPP gets confused if
27436   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27437   # text mode, it properly converts lines to CR/LF.  This bash problem
27438   # is reportedly fixed, but why not run on old versions too?
27439   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27440     || (rm -f "$cfgfile"; exit 1)
27442   case $xsi_shell in
27443   yes)
27444     cat << \_LT_EOF >> "$cfgfile"
27446 # func_dirname file append nondir_replacement
27447 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27448 # otherwise set result to NONDIR_REPLACEMENT.
27449 func_dirname ()
27451   case ${1} in
27452     */*) func_dirname_result="${1%/*}${2}" ;;
27453     *  ) func_dirname_result="${3}" ;;
27454   esac
27457 # func_basename file
27458 func_basename ()
27460   func_basename_result="${1##*/}"
27463 # func_dirname_and_basename file append nondir_replacement
27464 # perform func_basename and func_dirname in a single function
27465 # call:
27466 #   dirname:  Compute the dirname of FILE.  If nonempty,
27467 #             add APPEND to the result, otherwise set result
27468 #             to NONDIR_REPLACEMENT.
27469 #             value returned in "$func_dirname_result"
27470 #   basename: Compute filename of FILE.
27471 #             value retuned in "$func_basename_result"
27472 # Implementation must be kept synchronized with func_dirname
27473 # and func_basename. For efficiency, we do not delegate to
27474 # those functions but instead duplicate the functionality here.
27475 func_dirname_and_basename ()
27477   case ${1} in
27478     */*) func_dirname_result="${1%/*}${2}" ;;
27479     *  ) func_dirname_result="${3}" ;;
27480   esac
27481   func_basename_result="${1##*/}"
27484 # func_stripname prefix suffix name
27485 # strip PREFIX and SUFFIX off of NAME.
27486 # PREFIX and SUFFIX must not contain globbing or regex special
27487 # characters, hashes, percent signs, but SUFFIX may contain a leading
27488 # dot (in which case that matches only a dot).
27489 func_stripname ()
27491   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27492   # positional parameters, so assign one to ordinary parameter first.
27493   func_stripname_result=${3}
27494   func_stripname_result=${func_stripname_result#"${1}"}
27495   func_stripname_result=${func_stripname_result%"${2}"}
27498 # func_opt_split
27499 func_opt_split ()
27501   func_opt_split_opt=${1%%=*}
27502   func_opt_split_arg=${1#*=}
27505 # func_lo2o object
27506 func_lo2o ()
27508   case ${1} in
27509     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27510     *)    func_lo2o_result=${1} ;;
27511   esac
27514 # func_xform libobj-or-source
27515 func_xform ()
27517   func_xform_result=${1%.*}.lo
27520 # func_arith arithmetic-term...
27521 func_arith ()
27523   func_arith_result=$(( $* ))
27526 # func_len string
27527 # STRING may not start with a hyphen.
27528 func_len ()
27530   func_len_result=${#1}
27533 _LT_EOF
27534     ;;
27535   *) # Bourne compatible functions.
27536     cat << \_LT_EOF >> "$cfgfile"
27538 # func_dirname file append nondir_replacement
27539 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27540 # otherwise set result to NONDIR_REPLACEMENT.
27541 func_dirname ()
27543   # Extract subdirectory from the argument.
27544   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27545   if test "X$func_dirname_result" = "X${1}"; then
27546     func_dirname_result="${3}"
27547   else
27548     func_dirname_result="$func_dirname_result${2}"
27549   fi
27552 # func_basename file
27553 func_basename ()
27555   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27559 # func_stripname prefix suffix name
27560 # strip PREFIX and SUFFIX off of NAME.
27561 # PREFIX and SUFFIX must not contain globbing or regex special
27562 # characters, hashes, percent signs, but SUFFIX may contain a leading
27563 # dot (in which case that matches only a dot).
27564 # func_strip_suffix prefix name
27565 func_stripname ()
27567   case ${2} in
27568     .*) func_stripname_result=`$ECHO "X${3}" \
27569            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27570     *)  func_stripname_result=`$ECHO "X${3}" \
27571            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27572   esac
27575 # sed scripts:
27576 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27577 my_sed_long_arg='1s/^-[^=]*=//'
27579 # func_opt_split
27580 func_opt_split ()
27582   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27583   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27586 # func_lo2o object
27587 func_lo2o ()
27589   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27592 # func_xform libobj-or-source
27593 func_xform ()
27595   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27598 # func_arith arithmetic-term...
27599 func_arith ()
27601   func_arith_result=`expr "$@"`
27604 # func_len string
27605 # STRING may not start with a hyphen.
27606 func_len ()
27608   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27611 _LT_EOF
27612 esac
27614 case $lt_shell_append in
27615   yes)
27616     cat << \_LT_EOF >> "$cfgfile"
27618 # func_append var value
27619 # Append VALUE to the end of shell variable VAR.
27620 func_append ()
27622   eval "$1+=\$2"
27624 _LT_EOF
27625     ;;
27626   *)
27627     cat << \_LT_EOF >> "$cfgfile"
27629 # func_append var value
27630 # Append VALUE to the end of shell variable VAR.
27631 func_append ()
27633   eval "$1=\$$1\$2"
27636 _LT_EOF
27637     ;;
27638   esac
27641   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27642     || (rm -f "$cfgfile"; exit 1)
27644   mv -f "$cfgfile" "$ofile" ||
27645     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27646   chmod +x "$ofile"
27648  ;;
27649     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
27650         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
27651       esac ;;
27652     "default":C)  chmod +x examples/*.pl ;;
27653     "po/stamp-it":C)
27654     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
27655        { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
27656 $as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
27657    { (exit 1); exit 1; }; }
27658     fi
27659     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
27660     >"po/stamp-it.tmp"
27661     sed '/^#/d
27662          s/^[[].*] *//
27663          /^[    ]*$/d
27664         '"s|^|  $ac_top_srcdir/|" \
27665       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
27667     sed '/^POTFILES =/,/[^\\]$/ {
27668                 /^POTFILES =/!d
27669                 r po/POTFILES
27670           }
27671          ' "po/Makefile.in" >"po/Makefile"
27672     rm -f "po/Makefile.tmp"
27673     mv "po/stamp-it.tmp" "po/stamp-it"
27674    ;;
27676   esac
27677 done # for ac_tag
27680 { (exit 0); exit 0; }
27681 _ACEOF
27682 chmod +x $CONFIG_STATUS
27683 ac_clean_files=$ac_clean_files_save
27685 test $ac_write_fail = 0 ||
27686   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27687 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27688    { (exit 1); exit 1; }; }
27691 # configure is writing to config.log, and then calls config.status.
27692 # config.status does its own redirection, appending to config.log.
27693 # Unfortunately, on DOS this fails, as config.log is still kept open
27694 # by configure, so config.status won't be able to write to it; its
27695 # output is simply discarded.  So we exec the FD to /dev/null,
27696 # effectively closing config.log, so it can be properly (re)opened and
27697 # appended to by config.status.  When coming back to configure, we
27698 # need to make the FD available again.
27699 if test "$no_create" != yes; then
27700   ac_cs_success=:
27701   ac_config_status_args=
27702   test "$silent" = yes &&
27703     ac_config_status_args="$ac_config_status_args --quiet"
27704   exec 5>/dev/null
27705   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27706   exec 5>>config.log
27707   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27708   # would make configure fail if this is the last instruction.
27709   $ac_cs_success || { (exit 1); exit 1; }
27711 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27712   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27713 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27717 { $as_echo "$as_me:$LINENO: checking in" >&5
27718 $as_echo_n "checking in... " >&6; }
27719 { $as_echo "$as_me:$LINENO: result: and out again" >&5
27720 $as_echo "and out again" >&6; }
27722 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
27723 sleep 1
27724 echo $ECHO_N ".$ECHO_C" 1>&6
27725 sleep 1
27726 echo $ECHO_N ".$ECHO_C" 1>&6
27727 sleep 1
27728 echo $ECHO_N ".$ECHO_C" 1>&6
27729 sleep 1
27730 echo $ECHO_N ".$ECHO_C" 1>&6
27731 sleep 1
27732 { $as_echo "$as_me:$LINENO: result:  just kidding ;-)" >&5
27733 $as_echo " just kidding ;-)" >&6; }
27734 echo
27735 echo "----------------------------------------------------------------"
27736 echo "Config is DONE!"
27737 echo
27738 echo "          With MMAP IO: $enable_mmap"
27739 echo "      Build rrd_getopt: $build_getopt"
27740 echo "       Static programs: $staticprogs"
27741 echo "          Perl Modules: $COMP_PERL"
27742 echo "           Perl Binary: $PERL"
27743 echo "          Perl Version: $PERL_VERSION"
27744 echo "          Perl Options: $PERL_MAKE_OPTIONS"
27745 echo "          Ruby Modules: $COMP_RUBY"
27746 echo "           Ruby Binary: $RUBY"
27747 echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
27748 echo "    Build Tcl Bindings: $enable_tcl"
27749 echo " Build Python Bindings: $enable_python"
27750 echo "          Build rrdcgi: $enable_rrdcgi"
27751 echo "       Build librrd MT: $enable_pthread"
27752 echo "     Link with libintl: $enable_libintl"
27753 echo
27754 echo "             Libraries: $ALL_LIBS"
27755 echo
27756 echo "Type 'make' to compile the software and use 'make install' to "
27757 echo "install everything to: $prefix."
27758 echo
27759 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
27760 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
27761 echo "place an order."
27762 echo
27763 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
27764 echo "----------------------------------------------------------------"