Code

More Lua binding stuff.
[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.99909060808.
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.99909060808'
747 PACKAGE_STRING='rrdtool 1.3.99909060808'
748 PACKAGE_BUGREPORT=''
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 #  include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 #  include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
786 ac_default_prefix=/usr/local/rrdtool-$PACKAGE_VERSION
787 ac_subst_vars='am__EXEEXT_FALSE
788 am__EXEEXT_TRUE
789 LTLIBOBJS
790 LIBOBJS
791 RRDDOCDIR
792 TROFF
793 NROFF
794 COMP_PYTHON
795 PYTHON_INCLUDES
796 pkgpyexecdir
797 pyexecdir
798 pkgpythondir
799 pythondir
800 PYTHON_PLATFORM
801 PYTHON_EXEC_PREFIX
802 PYTHON_PREFIX
803 PYTHON_VERSION
804 PYTHON
805 TCL_INCLUDE_SPEC
806 TCL_PACKAGE_DIR
807 TCL_VERSION
808 TCL_STUB_LIB_SPEC
809 TCL_LD_SEARCH_FLAGS
810 TCL_PACKAGE_PATH
811 TCL_SHLIB_SUFFIX
812 TCL_SHLIB_LD
813 TCL_SHLIB_CFLAGS
814 TCL_PREFIX
815 BUILD_TCL_SITE_FALSE
816 BUILD_TCL_SITE_TRUE
817 BUILD_TCL_FALSE
818 BUILD_TCL_TRUE
819 BUILD_LUA_FALSE
820 BUILD_LUA_TRUE
821 LUA50_FALSE
822 LUA50_TRUE
823 LUA_SITE_LINSTALL_FALSE
824 LUA_SITE_LINSTALL_TRUE
825 LUA_SITE_CINSTALL_FALSE
826 LUA_SITE_CINSTALL_TRUE
827 LUA_NEED_OUR_COMPAT51_FALSE
828 LUA_NEED_OUR_COMPAT51_TRUE
829 LUA_DEFINES
830 LUA_LFLAGS
831 LUA_CFLAGS
832 LUA_INSTALL_LMOD
833 LUA_INSTALL_CMOD
834 COMP_LUA
835 LUA
836 COMP_RUBY
837 RUBY_MAKE_OPTIONS
838 RUBY
839 PERL_VERSION
840 COMP_PERL
841 PERL_MAKE_OPTIONS
842 PERL_CC
843 PERLLDFLAGS
844 PERLLD
845 PERLCCFLAGS
846 PERLCC
847 POD2HTML
848 POD2MAN
849 PERL
850 ALL_LIBS
851 CORE_LIBS
852 PKGCONFIG
853 BUILD_RRDCGI_FALSE
854 BUILD_RRDCGI_TRUE
855 BUILD_LIBDBI_FALSE
856 BUILD_LIBDBI_TRUE
857 BUILD_MULTITHREAD_FALSE
858 BUILD_MULTITHREAD_TRUE
859 PTHREAD_CFLAGS
860 PTHREAD_LIBS
861 PTHREAD_CC
862 acx_pthread_config
863 MULTITHREAD_LDFLAGS
864 MULTITHREAD_CFLAGS
865 BUILD_GETOPT_FALSE
866 BUILD_GETOPT_TRUE
867 RRD_GETOPT_LONG
868 POSUB
869 LTLIBINTL
870 LIBINTL
871 INTLLIBS
872 INTL_LIBTOOL_SUFFIX_PREFIX
873 INTLOBJS
874 GENCAT
875 INSTOBJEXT
876 DATADIRNAME
877 CATOBJEXT
878 USE_INCLUDED_LIBINTL
879 BUILD_INCLUDED_LIBINTL
880 INTLBISON
881 LTLIBICONV
882 LIBICONV
883 HAVE_WPRINTF
884 HAVE_SNPRINTF
885 HAVE_ASPRINTF
886 HAVE_POSIX_PRINTF
887 INTL_MACOSX_LIBS
888 GLIBC21
889 ALLOCA
890 GLIBC2
891 MSGMERGE
892 XGETTEXT
893 GMSGFMT
894 MSGFMT
895 USE_NLS
896 MKINSTALLDIRS
897 RRD_DEFAULT_FONT
898 WERROR
899 OTOOL64
900 OTOOL
901 LIPO
902 NMEDIT
903 DSYMUTIL
904 lt_ECHO
905 RANLIB
906 AR
907 OBJDUMP
908 LN_S
909 NM
910 ac_ct_DUMPBIN
911 DUMPBIN
912 LD
913 FGREP
914 SED
915 LIBTOOL
916 STATIC_PROGRAMS_FALSE
917 STATIC_PROGRAMS_TRUE
918 RRDGRAPH_YLEGEND_ANGLE
919 MAINT
920 MAINTAINER_MODE_FALSE
921 MAINTAINER_MODE_TRUE
922 AM_BACKSLASH
923 AM_DEFAULT_VERBOSITY
924 am__fastdepCC_FALSE
925 am__fastdepCC_TRUE
926 CCDEPMODE
927 AMDEPBACKSLASH
928 AMDEP_FALSE
929 AMDEP_TRUE
930 am__quote
931 am__include
932 DEPDIR
933 am__untar
934 am__tar
935 AMTAR
936 am__leading_dot
937 SET_MAKE
938 AWK
939 mkdir_p
940 MKDIR_P
941 INSTALL_STRIP_PROGRAM
942 STRIP
943 install_sh
944 MAKEINFO
945 AUTOHEADER
946 AUTOMAKE
947 AUTOCONF
948 ACLOCAL
949 VERSION
950 PACKAGE
951 CYGPATH_W
952 am__isrc
953 INSTALL_DATA
954 INSTALL_SCRIPT
955 INSTALL_PROGRAM
956 EGREP
957 GREP
958 CPP
959 OBJEXT
960 EXEEXT
961 ac_ct_CC
962 CPPFLAGS
963 LDFLAGS
964 CFLAGS
965 CC
966 target_os
967 target_vendor
968 target_cpu
969 target
970 host_os
971 host_vendor
972 host_cpu
973 host
974 build_os
975 build_vendor
976 build_cpu
977 build
978 LIBVERS
979 NUMVERS
980 target_alias
981 host_alias
982 build_alias
983 LIBS
984 ECHO_T
985 ECHO_N
986 ECHO_C
987 DEFS
988 mandir
989 localedir
990 libdir
991 psdir
992 pdfdir
993 dvidir
994 htmldir
995 infodir
996 docdir
997 oldincludedir
998 includedir
999 localstatedir
1000 sharedstatedir
1001 sysconfdir
1002 datadir
1003 datarootdir
1004 libexecdir
1005 sbindir
1006 bindir
1007 program_transform_name
1008 prefix
1009 exec_prefix
1010 PACKAGE_BUGREPORT
1011 PACKAGE_STRING
1012 PACKAGE_VERSION
1013 PACKAGE_TARNAME
1014 PACKAGE_NAME
1015 PATH_SEPARATOR
1016 SHELL
1017 PERLFLAGS'
1018 ac_subst_files=''
1019 ac_user_opts='
1020 enable_option_checking
1021 enable_dependency_tracking
1022 enable_silent_rules
1023 enable_maintainer_mode
1024 enable_rrdcgi
1025 with_rrd_default_font
1026 enable_mmap
1027 enable_pthread
1028 enable_static_programs
1029 enable_shared
1030 enable_static
1031 with_pic
1032 enable_fast_install
1033 with_gnu_ld
1034 enable_libtool_lock
1035 enable_nls
1036 enable_rpath
1037 with_libiconv_prefix
1038 with_included_gettext
1039 with_libintl_prefix
1040 enable_libdbi
1041 enable_perl
1042 enable_perl_site_install
1043 with_perl_options
1044 enable_ruby
1045 enable_ruby_site_install
1046 with_ruby_options
1047 enable_lua
1048 enable_lua_site_install
1049 enable_tcl
1050 with_tcllib
1051 enable_python
1053       ac_precious_vars='build_alias
1054 host_alias
1055 target_alias
1056 CC
1057 CFLAGS
1058 LDFLAGS
1059 LIBS
1060 CPPFLAGS
1061 CPP
1062 RRDGRAPH_YLEGEND_ANGLE
1063 PERLCC
1064 PERLCCFLAGS
1065 PERLLD
1066 PERLLDFLAGS
1067 RRDDOCDIR'
1070 # Initialize some variables set by options.
1071 ac_init_help=
1072 ac_init_version=false
1073 ac_unrecognized_opts=
1074 ac_unrecognized_sep=
1075 # The variables have the same names as the options, with
1076 # dashes changed to underlines.
1077 cache_file=/dev/null
1078 exec_prefix=NONE
1079 no_create=
1080 no_recursion=
1081 prefix=NONE
1082 program_prefix=NONE
1083 program_suffix=NONE
1084 program_transform_name=s,x,x,
1085 silent=
1086 site=
1087 srcdir=
1088 verbose=
1089 x_includes=NONE
1090 x_libraries=NONE
1092 # Installation directory options.
1093 # These are left unexpanded so users can "make install exec_prefix=/foo"
1094 # and all the variables that are supposed to be based on exec_prefix
1095 # by default will actually change.
1096 # Use braces instead of parens because sh, perl, etc. also accept them.
1097 # (The list follows the same order as the GNU Coding Standards.)
1098 bindir='${exec_prefix}/bin'
1099 sbindir='${exec_prefix}/sbin'
1100 libexecdir='${exec_prefix}/libexec'
1101 datarootdir='${prefix}/share'
1102 datadir='${datarootdir}'
1103 sysconfdir='${prefix}/etc'
1104 sharedstatedir='${prefix}/com'
1105 localstatedir='${prefix}/var'
1106 includedir='${prefix}/include'
1107 oldincludedir='/usr/include'
1108 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1109 infodir='${datarootdir}/info'
1110 htmldir='${docdir}'
1111 dvidir='${docdir}'
1112 pdfdir='${docdir}'
1113 psdir='${docdir}'
1114 libdir='${exec_prefix}/lib'
1115 localedir='${datarootdir}/locale'
1116 mandir='${datarootdir}/man'
1118 ac_prev=
1119 ac_dashdash=
1120 for ac_option
1121 do
1122   # If the previous option needs an argument, assign it.
1123   if test -n "$ac_prev"; then
1124     eval $ac_prev=\$ac_option
1125     ac_prev=
1126     continue
1127   fi
1129   case $ac_option in
1130   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131   *)    ac_optarg=yes ;;
1132   esac
1134   # Accept the important Cygnus configure options, so we can diagnose typos.
1136   case $ac_dashdash$ac_option in
1137   --)
1138     ac_dashdash=yes ;;
1140   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1141     ac_prev=bindir ;;
1142   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1143     bindir=$ac_optarg ;;
1145   -build | --build | --buil | --bui | --bu)
1146     ac_prev=build_alias ;;
1147   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1148     build_alias=$ac_optarg ;;
1150   -cache-file | --cache-file | --cache-fil | --cache-fi \
1151   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1152     ac_prev=cache_file ;;
1153   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1154   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1155     cache_file=$ac_optarg ;;
1157   --config-cache | -C)
1158     cache_file=config.cache ;;
1160   -datadir | --datadir | --datadi | --datad)
1161     ac_prev=datadir ;;
1162   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1163     datadir=$ac_optarg ;;
1165   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1166   | --dataroo | --dataro | --datar)
1167     ac_prev=datarootdir ;;
1168   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1169   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1170     datarootdir=$ac_optarg ;;
1172   -disable-* | --disable-*)
1173     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1174     # Reject names that are not valid shell variable names.
1175     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1177    { (exit 1); exit 1; }; }
1178     ac_useropt_orig=$ac_useropt
1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180     case $ac_user_opts in
1181       *"
1182 "enable_$ac_useropt"
1183 "*) ;;
1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1185          ac_unrecognized_sep=', ';;
1186     esac
1187     eval enable_$ac_useropt=no ;;
1189   -docdir | --docdir | --docdi | --doc | --do)
1190     ac_prev=docdir ;;
1191   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1192     docdir=$ac_optarg ;;
1194   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195     ac_prev=dvidir ;;
1196   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1197     dvidir=$ac_optarg ;;
1199   -enable-* | --enable-*)
1200     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_useropt_orig=$ac_useropt
1206     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207     case $ac_user_opts in
1208       *"
1209 "enable_$ac_useropt"
1210 "*) ;;
1211       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1212          ac_unrecognized_sep=', ';;
1213     esac
1214     eval enable_$ac_useropt=\$ac_optarg ;;
1216   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1217   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1218   | --exec | --exe | --ex)
1219     ac_prev=exec_prefix ;;
1220   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1221   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1222   | --exec=* | --exe=* | --ex=*)
1223     exec_prefix=$ac_optarg ;;
1225   -gas | --gas | --ga | --g)
1226     # Obsolete; use --with-gas.
1227     with_gas=yes ;;
1229   -help | --help | --hel | --he | -h)
1230     ac_init_help=long ;;
1231   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1232     ac_init_help=recursive ;;
1233   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1234     ac_init_help=short ;;
1236   -host | --host | --hos | --ho)
1237     ac_prev=host_alias ;;
1238   -host=* | --host=* | --hos=* | --ho=*)
1239     host_alias=$ac_optarg ;;
1241   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1242     ac_prev=htmldir ;;
1243   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1244   | --ht=*)
1245     htmldir=$ac_optarg ;;
1247   -includedir | --includedir | --includedi | --included | --include \
1248   | --includ | --inclu | --incl | --inc)
1249     ac_prev=includedir ;;
1250   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1251   | --includ=* | --inclu=* | --incl=* | --inc=*)
1252     includedir=$ac_optarg ;;
1254   -infodir | --infodir | --infodi | --infod | --info | --inf)
1255     ac_prev=infodir ;;
1256   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1257     infodir=$ac_optarg ;;
1259   -libdir | --libdir | --libdi | --libd)
1260     ac_prev=libdir ;;
1261   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1262     libdir=$ac_optarg ;;
1264   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1265   | --libexe | --libex | --libe)
1266     ac_prev=libexecdir ;;
1267   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1268   | --libexe=* | --libex=* | --libe=*)
1269     libexecdir=$ac_optarg ;;
1271   -localedir | --localedir | --localedi | --localed | --locale)
1272     ac_prev=localedir ;;
1273   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1274     localedir=$ac_optarg ;;
1276   -localstatedir | --localstatedir | --localstatedi | --localstated \
1277   | --localstate | --localstat | --localsta | --localst | --locals)
1278     ac_prev=localstatedir ;;
1279   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1280   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1281     localstatedir=$ac_optarg ;;
1283   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1284     ac_prev=mandir ;;
1285   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1286     mandir=$ac_optarg ;;
1288   -nfp | --nfp | --nf)
1289     # Obsolete; use --without-fp.
1290     with_fp=no ;;
1292   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1293   | --no-cr | --no-c | -n)
1294     no_create=yes ;;
1296   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1297   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1298     no_recursion=yes ;;
1300   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1301   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1302   | --oldin | --oldi | --old | --ol | --o)
1303     ac_prev=oldincludedir ;;
1304   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1305   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1306   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1307     oldincludedir=$ac_optarg ;;
1309   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1310     ac_prev=prefix ;;
1311   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1312     prefix=$ac_optarg ;;
1314   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1315   | --program-pre | --program-pr | --program-p)
1316     ac_prev=program_prefix ;;
1317   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1318   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1319     program_prefix=$ac_optarg ;;
1321   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1322   | --program-suf | --program-su | --program-s)
1323     ac_prev=program_suffix ;;
1324   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1325   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1326     program_suffix=$ac_optarg ;;
1328   -program-transform-name | --program-transform-name \
1329   | --program-transform-nam | --program-transform-na \
1330   | --program-transform-n | --program-transform- \
1331   | --program-transform | --program-transfor \
1332   | --program-transfo | --program-transf \
1333   | --program-trans | --program-tran \
1334   | --progr-tra | --program-tr | --program-t)
1335     ac_prev=program_transform_name ;;
1336   -program-transform-name=* | --program-transform-name=* \
1337   | --program-transform-nam=* | --program-transform-na=* \
1338   | --program-transform-n=* | --program-transform-=* \
1339   | --program-transform=* | --program-transfor=* \
1340   | --program-transfo=* | --program-transf=* \
1341   | --program-trans=* | --program-tran=* \
1342   | --progr-tra=* | --program-tr=* | --program-t=*)
1343     program_transform_name=$ac_optarg ;;
1345   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1346     ac_prev=pdfdir ;;
1347   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1348     pdfdir=$ac_optarg ;;
1350   -psdir | --psdir | --psdi | --psd | --ps)
1351     ac_prev=psdir ;;
1352   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1353     psdir=$ac_optarg ;;
1355   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1356   | -silent | --silent | --silen | --sile | --sil)
1357     silent=yes ;;
1359   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1360     ac_prev=sbindir ;;
1361   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1362   | --sbi=* | --sb=*)
1363     sbindir=$ac_optarg ;;
1365   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1367   | --sharedst | --shareds | --shared | --share | --shar \
1368   | --sha | --sh)
1369     ac_prev=sharedstatedir ;;
1370   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1371   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1372   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1373   | --sha=* | --sh=*)
1374     sharedstatedir=$ac_optarg ;;
1376   -site | --site | --sit)
1377     ac_prev=site ;;
1378   -site=* | --site=* | --sit=*)
1379     site=$ac_optarg ;;
1381   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1382     ac_prev=srcdir ;;
1383   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1384     srcdir=$ac_optarg ;;
1386   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1387   | --syscon | --sysco | --sysc | --sys | --sy)
1388     ac_prev=sysconfdir ;;
1389   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1390   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1391     sysconfdir=$ac_optarg ;;
1393   -target | --target | --targe | --targ | --tar | --ta | --t)
1394     ac_prev=target_alias ;;
1395   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1396     target_alias=$ac_optarg ;;
1398   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1399     verbose=yes ;;
1401   -version | --version | --versio | --versi | --vers | -V)
1402     ac_init_version=: ;;
1404   -with-* | --with-*)
1405     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1406     # Reject names that are not valid shell variable names.
1407     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1409    { (exit 1); exit 1; }; }
1410     ac_useropt_orig=$ac_useropt
1411     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1412     case $ac_user_opts in
1413       *"
1414 "with_$ac_useropt"
1415 "*) ;;
1416       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1417          ac_unrecognized_sep=', ';;
1418     esac
1419     eval with_$ac_useropt=\$ac_optarg ;;
1421   -without-* | --without-*)
1422     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1423     # Reject names that are not valid shell variable names.
1424     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1425       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1426    { (exit 1); exit 1; }; }
1427     ac_useropt_orig=$ac_useropt
1428     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1429     case $ac_user_opts in
1430       *"
1431 "with_$ac_useropt"
1432 "*) ;;
1433       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434          ac_unrecognized_sep=', ';;
1435     esac
1436     eval with_$ac_useropt=no ;;
1438   --x)
1439     # Obsolete; use --with-x.
1440     with_x=yes ;;
1442   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1443   | --x-incl | --x-inc | --x-in | --x-i)
1444     ac_prev=x_includes ;;
1445   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1446   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1447     x_includes=$ac_optarg ;;
1449   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1450   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1451     ac_prev=x_libraries ;;
1452   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1453   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1454     x_libraries=$ac_optarg ;;
1456   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1457 Try \`$0 --help' for more information." >&2
1458    { (exit 1); exit 1; }; }
1459     ;;
1461   *=*)
1462     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1463     # Reject names that are not valid shell variable names.
1464     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1465       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1466    { (exit 1); exit 1; }; }
1467     eval $ac_envvar=\$ac_optarg
1468     export $ac_envvar ;;
1470   *)
1471     # FIXME: should be removed in autoconf 3.0.
1472     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1473     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1474       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1475     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1476     ;;
1478   esac
1479 done
1481 if test -n "$ac_prev"; then
1482   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1483   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1484    { (exit 1); exit 1; }; }
1485 fi
1487 if test -n "$ac_unrecognized_opts"; then
1488   case $enable_option_checking in
1489     no) ;;
1490     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1491    { (exit 1); exit 1; }; } ;;
1492     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1493   esac
1494 fi
1496 # Check all directory arguments for consistency.
1497 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1498                 datadir sysconfdir sharedstatedir localstatedir includedir \
1499                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1500                 libdir localedir mandir
1501 do
1502   eval ac_val=\$$ac_var
1503   # Remove trailing slashes.
1504   case $ac_val in
1505     */ )
1506       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1507       eval $ac_var=\$ac_val;;
1508   esac
1509   # Be sure to have absolute directory names.
1510   case $ac_val in
1511     [\\/$]* | ?:[\\/]* )  continue;;
1512     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1513   esac
1514   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1515    { (exit 1); exit 1; }; }
1516 done
1518 # There might be people who depend on the old broken behavior: `$host'
1519 # used to hold the argument of --host etc.
1520 # FIXME: To remove some day.
1521 build=$build_alias
1522 host=$host_alias
1523 target=$target_alias
1525 # FIXME: To remove some day.
1526 if test "x$host_alias" != x; then
1527   if test "x$build_alias" = x; then
1528     cross_compiling=maybe
1529     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1530     If a cross compiler is detected then cross compile mode will be used." >&2
1531   elif test "x$build_alias" != "x$host_alias"; then
1532     cross_compiling=yes
1533   fi
1534 fi
1536 ac_tool_prefix=
1537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1539 test "$silent" = yes && exec 6>/dev/null
1542 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1543 ac_ls_di=`ls -di .` &&
1544 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1545   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1546    { (exit 1); exit 1; }; }
1547 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1548   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1549    { (exit 1); exit 1; }; }
1552 # Find the source files, if location was not specified.
1553 if test -z "$srcdir"; then
1554   ac_srcdir_defaulted=yes
1555   # Try the directory containing this script, then the parent directory.
1556   ac_confdir=`$as_dirname -- "$as_myself" ||
1557 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1558          X"$as_myself" : 'X\(//\)[^/]' \| \
1559          X"$as_myself" : 'X\(//\)$' \| \
1560          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1561 $as_echo X"$as_myself" |
1562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1563             s//\1/
1564             q
1565           }
1566           /^X\(\/\/\)[^/].*/{
1567             s//\1/
1568             q
1569           }
1570           /^X\(\/\/\)$/{
1571             s//\1/
1572             q
1573           }
1574           /^X\(\/\).*/{
1575             s//\1/
1576             q
1577           }
1578           s/.*/./; q'`
1579   srcdir=$ac_confdir
1580   if test ! -r "$srcdir/$ac_unique_file"; then
1581     srcdir=..
1582   fi
1583 else
1584   ac_srcdir_defaulted=no
1585 fi
1586 if test ! -r "$srcdir/$ac_unique_file"; then
1587   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1588   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1589    { (exit 1); exit 1; }; }
1590 fi
1591 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1592 ac_abs_confdir=`(
1593         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1594    { (exit 1); exit 1; }; }
1595         pwd)`
1596 # When building in place, set srcdir=.
1597 if test "$ac_abs_confdir" = "$ac_pwd"; then
1598   srcdir=.
1599 fi
1600 # Remove unnecessary trailing slashes from srcdir.
1601 # Double slashes in file names in object file debugging info
1602 # mess up M-x gdb in Emacs.
1603 case $srcdir in
1604 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1605 esac
1606 for ac_var in $ac_precious_vars; do
1607   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1608   eval ac_env_${ac_var}_value=\$${ac_var}
1609   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1610   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1611 done
1614 # Report the --help message.
1616 if test "$ac_init_help" = "long"; then
1617   # Omit some internal or obsolete options to make the list less imposing.
1618   # This message is too long to be a string in the A/UX 3.1 sh.
1619   cat <<_ACEOF
1620 \`configure' configures rrdtool 1.3.99909060808 to adapt to many kinds of systems.
1622 Usage: $0 [OPTION]... [VAR=VALUE]...
1624 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1625 VAR=VALUE.  See below for descriptions of some of the useful variables.
1627 Defaults for the options are specified in brackets.
1629 Configuration:
1630   -h, --help              display this help and exit
1631       --help=short        display options specific to this package
1632       --help=recursive    display the short help of all the included packages
1633   -V, --version           display version information and exit
1634   -q, --quiet, --silent   do not print \`checking...' messages
1635       --cache-file=FILE   cache test results in FILE [disabled]
1636   -C, --config-cache      alias for \`--cache-file=config.cache'
1637   -n, --no-create         do not create output files
1638       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1640 Installation directories:
1641   --prefix=PREFIX         install architecture-independent files in PREFIX
1642                           [$ac_default_prefix]
1643   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1644                           [PREFIX]
1646 By default, \`make install' will install all the files in
1647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1649 for instance \`--prefix=\$HOME'.
1651 For better control, use the options below.
1653 Fine tuning of the installation directories:
1654   --bindir=DIR            user executables [EPREFIX/bin]
1655   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1656   --libexecdir=DIR        program executables [EPREFIX/libexec]
1657   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1658   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1659   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1660   --libdir=DIR            object code libraries [EPREFIX/lib]
1661   --includedir=DIR        C header files [PREFIX/include]
1662   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1663   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1664   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1665   --infodir=DIR           info documentation [DATAROOTDIR/info]
1666   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1667   --mandir=DIR            man documentation [DATAROOTDIR/man]
1668   --docdir=DIR            documentation root [DATAROOTDIR/doc/rrdtool]
1669   --htmldir=DIR           html documentation [DOCDIR]
1670   --dvidir=DIR            dvi documentation [DOCDIR]
1671   --pdfdir=DIR            pdf documentation [DOCDIR]
1672   --psdir=DIR             ps documentation [DOCDIR]
1673 _ACEOF
1675   cat <<\_ACEOF
1677 Program names:
1678   --program-prefix=PREFIX            prepend PREFIX to installed program names
1679   --program-suffix=SUFFIX            append SUFFIX to installed program names
1680   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1682 System types:
1683   --build=BUILD     configure for building on BUILD [guessed]
1684   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1685   --target=TARGET   configure for building compilers for TARGET [HOST]
1686 _ACEOF
1687 fi
1689 if test -n "$ac_init_help"; then
1690   case $ac_init_help in
1691      short | recursive ) echo "Configuration of rrdtool 1.3.99909060808:";;
1692    esac
1693   cat <<\_ACEOF
1695 Optional Features:
1696   --disable-option-checking  ignore unrecognized --enable/--with options
1697   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1698   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1699   --disable-dependency-tracking  speeds up one-time build
1700   --enable-dependency-tracking   do not reject slow dependency extractors
1701   --enable-silent-rules          less verbose build output (undo: `make V=1')
1702   --disable-silent-rules         verbose build output (undo: `make V=0')
1703   --enable-maintainer-mode  enable make rules and dependencies not useful
1704                           (and sometimes confusing) to the casual installer
1705   --disable-rrdcgi        disable building of rrdcgi
1706   --disable-mmap          disable mmap in rrd_update, use seek+write instead
1707   --disable-pthread       disable multithread support
1708   --enable-static-programs
1709                           Build static programs
1710   --enable-shared[=PKGS]  build shared libraries [default=yes]
1711   --enable-static[=PKGS]  build static libraries [default=yes]
1712   --enable-fast-install[=PKGS]
1713                           optimize for fast installation [default=yes]
1714   --disable-libtool-lock  avoid locking (might break parallel builds)
1715   --disable-nls           do not use Native Language Support
1716   --disable-rpath         do not hardcode runtime library paths
1717   --disable-libdbi        do not build in support for libdbi
1718   --disable-perl          do not build the perl modules
1719   --enable-perl-site-install
1720                           by default the rrdtool perl modules are installed
1721                           together with rrdtool in $prefix/lib/perl. You have
1722                           to put a 'use lib qw($prefix/lib/perl)' into your
1723                           scripts when you want to use them. When you set this
1724                           option the perl modules will get installed wherever
1725                           your perl setup thinks it is best.
1726   --disable-ruby          do not build the ruby modules
1727   --enable-ruby-site-install
1728                           by default the rrdtool ruby modules are installed
1729                           together with rrdtool in $prefix/lib/ruby. You have
1730                           to add $prefix/lib/ruby/$ruby_version/$sitearch to
1731                           your $: variable for ruby to find the RRD.so file.
1732   --disable-lua           do not build the lua modules
1733   --enable-lua-site-install
1734                           by default the lua module is installed together with
1735                           rrdtool in $prefix/lib/lua/$lua_version. You have to
1736                           add $prefix/lib/lua/$lua_version/?.so to
1737                           package.cpath for lua to find 'rrd.so'. For lua 5.0
1738                           you may also need to change LUA_PATH to the same
1739                           dir, to require 'compat-5.1'. When you set this
1740                           option the lua modules will get installed wherever
1741                           your Lua setup thinks it is best. WARNING: if you
1742                           set this option, system lua modules compat-5.1.lua
1743                           and rrd.so, if any, may be overwritten.
1744   --disable-tcl           do not build the tcl modules
1745   --enable-tcl-site       install the tcl extension in the tcl tree
1746   --disable-python        do not build the python modules
1748 Optional Packages:
1749   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1750   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1751   --with-rrd-default-font=OPTIONS  set the full path to your default font.
1752   --with-pic              try to use only PIC/non-PIC objects [default=use
1753                           both]
1754   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1755   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1756   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1757   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1758   --with-included-gettext use the GNU gettext library included here
1759   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1760   --without-libintl-prefix     don't search for libintl in includedir and libdir
1761   --with-perl-options=OPTIONS  options to pass on command-line when
1762                           generating Makefile from Makefile.PL. If you set this
1763                           option, interesting things may happen unless you know
1764                           what you are doing!
1765   --with-ruby-options=OPTIONS  options to pass on command-line when
1766                           generating Makefile from extconf.rb. If you set this
1767                           option, interesting things may happen unless you know
1768                           what you are doing!
1769   --with-tcllib=DIR       location of the tclConfig.sh
1771 Some influential environment variables:
1772   CC          C compiler command
1773   CFLAGS      C compiler flags
1774   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1775               nonstandard directory <lib dir>
1776   LIBS        libraries to pass to the linker, e.g. -l<library>
1777   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1778               you have headers in a nonstandard directory <include dir>
1779   CPP         C preprocessor
1780   RRDGRAPH_YLEGEND_ANGLE
1781               Vertical label angle: -90.0 (default) or 90.0
1782   PERLCC      [] C compiler for Perl modules
1783   PERLCCFLAGS [] CC flags for Perl modules
1784   PERLLD      [same], [as], [PERLCC] Linker for Perl modules
1785   PERLLDFLAGS [] LD flags for Perl modules
1786   RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1788 Use these variables to override the choices made by `configure' or to help
1789 it to find libraries and programs with nonstandard names/locations.
1791 _ACEOF
1792 ac_status=$?
1793 fi
1795 if test "$ac_init_help" = "recursive"; then
1796   # If there are subdirs, report their specific --help.
1797   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1798     test -d "$ac_dir" ||
1799       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1800       continue
1801     ac_builddir=.
1803 case "$ac_dir" in
1804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1805 *)
1806   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1807   # A ".." for each directory in $ac_dir_suffix.
1808   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1809   case $ac_top_builddir_sub in
1810   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1811   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1812   esac ;;
1813 esac
1814 ac_abs_top_builddir=$ac_pwd
1815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1816 # for backward compatibility:
1817 ac_top_builddir=$ac_top_build_prefix
1819 case $srcdir in
1820   .)  # We are building in place.
1821     ac_srcdir=.
1822     ac_top_srcdir=$ac_top_builddir_sub
1823     ac_abs_top_srcdir=$ac_pwd ;;
1824   [\\/]* | ?:[\\/]* )  # Absolute name.
1825     ac_srcdir=$srcdir$ac_dir_suffix;
1826     ac_top_srcdir=$srcdir
1827     ac_abs_top_srcdir=$srcdir ;;
1828   *) # Relative name.
1829     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1830     ac_top_srcdir=$ac_top_build_prefix$srcdir
1831     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1832 esac
1833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1835     cd "$ac_dir" || { ac_status=$?; continue; }
1836     # Check for guested configure.
1837     if test -f "$ac_srcdir/configure.gnu"; then
1838       echo &&
1839       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1840     elif test -f "$ac_srcdir/configure"; then
1841       echo &&
1842       $SHELL "$ac_srcdir/configure" --help=recursive
1843     else
1844       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1845     fi || ac_status=$?
1846     cd "$ac_pwd" || { ac_status=$?; break; }
1847   done
1848 fi
1850 test -n "$ac_init_help" && exit $ac_status
1851 if $ac_init_version; then
1852   cat <<\_ACEOF
1853 rrdtool configure 1.3.99909060808
1854 generated by GNU Autoconf 2.63
1856 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1857 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1858 This configure script is free software; the Free Software Foundation
1859 gives unlimited permission to copy, distribute and modify it.
1860 _ACEOF
1861   exit
1862 fi
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1867 It was created by rrdtool $as_me 1.3.99909060808, which was
1868 generated by GNU Autoconf 2.63.  Invocation command line was
1870   $ $0 $@
1872 _ACEOF
1873 exec 5>>config.log
1875 cat <<_ASUNAME
1876 ## --------- ##
1877 ## Platform. ##
1878 ## --------- ##
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1889 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1890 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1893 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1894 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1895 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1897 _ASUNAME
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   $as_echo "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1908 } >&5
1910 cat >&5 <<_ACEOF
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1917 _ACEOF
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1930 do
1931   for ac_arg
1932   do
1933     case $ac_arg in
1934     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936     | -silent | --silent | --silen | --sile | --sil)
1937       continue ;;
1938     *\'*)
1939       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940     esac
1941     case $ac_pass in
1942     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1943     2)
1944       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1945       if test $ac_must_keep_next = true; then
1946         ac_must_keep_next=false # Got value, back to normal.
1947       else
1948         case $ac_arg in
1949           *=* | --config-cache | -C | -disable-* | --disable-* \
1950           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952           | -with-* | --with-* | -without-* | --without-* | --x)
1953             case "$ac_configure_args0 " in
1954               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955             esac
1956             ;;
1957           -* ) ac_must_keep_next=true ;;
1958         esac
1959       fi
1960       ac_configure_args="$ac_configure_args '$ac_arg'"
1961       ;;
1962     esac
1963   done
1964 done
1965 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1966 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log.  We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974   # Save into config.log some information that might help in debugging.
1975   {
1976     echo
1978     cat <<\_ASBOX
1979 ## ---------------- ##
1980 ## Cache variables. ##
1981 ## ---------------- ##
1982 _ASBOX
1983     echo
1984     # The following way of writing the cache mishandles newlines in values,
1986   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987     eval ac_val=\$$ac_var
1988     case $ac_val in #(
1989     *${as_nl}*)
1990       case $ac_var in #(
1991       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993       esac
1994       case $ac_var in #(
1995       _ | IFS | as_nl) ;; #(
1996       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997       *) $as_unset $ac_var ;;
1998       esac ;;
1999     esac
2000   done
2001   (set) 2>&1 |
2002     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003     *${as_nl}ac_space=\ *)
2004       sed -n \
2005         "s/'\''/'\''\\\\'\'''\''/g;
2006           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007       ;; #(
2008     *)
2009       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010       ;;
2011     esac |
2012     sort
2014     echo
2016     cat <<\_ASBOX
2017 ## ----------------- ##
2018 ## Output variables. ##
2019 ## ----------------- ##
2020 _ASBOX
2021     echo
2022     for ac_var in $ac_subst_vars
2023     do
2024       eval ac_val=\$$ac_var
2025       case $ac_val in
2026       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027       esac
2028       $as_echo "$ac_var='\''$ac_val'\''"
2029     done | sort
2030     echo
2032     if test -n "$ac_subst_files"; then
2033       cat <<\_ASBOX
2034 ## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##
2037 _ASBOX
2038       echo
2039       for ac_var in $ac_subst_files
2040       do
2041         eval ac_val=\$$ac_var
2042         case $ac_val in
2043         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044         esac
2045         $as_echo "$ac_var='\''$ac_val'\''"
2046       done | sort
2047       echo
2048     fi
2050     if test -s confdefs.h; then
2051       cat <<\_ASBOX
2052 ## ----------- ##
2053 ## confdefs.h. ##
2054 ## ----------- ##
2055 _ASBOX
2056       echo
2057       cat confdefs.h
2058       echo
2059     fi
2060     test "$ac_signal" != 0 &&
2061       $as_echo "$as_me: caught signal $ac_signal"
2062     $as_echo "$as_me: exit $exit_status"
2063   } >&5
2064   rm -f core *.core core.conftest.* &&
2065     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066     exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2070 done
2071 ac_signal=0
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2076 # Predefined preprocessor variables.
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_NAME "$PACKAGE_NAME"
2080 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_STRING "$PACKAGE_STRING"
2095 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100 _ACEOF
2103 # Let the site file select an alternate cache file if it wants to.
2104 # Prefer an explicitly selected file to automatically selected ones.
2105 ac_site_file1=NONE
2106 ac_site_file2=NONE
2107 if test -n "$CONFIG_SITE"; then
2108   ac_site_file1=$CONFIG_SITE
2109 elif test "x$prefix" != xNONE; then
2110   ac_site_file1=$prefix/share/config.site
2111   ac_site_file2=$prefix/etc/config.site
2112 else
2113   ac_site_file1=$ac_default_prefix/share/config.site
2114   ac_site_file2=$ac_default_prefix/etc/config.site
2115 fi
2116 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 do
2118   test "x$ac_site_file" = xNONE && continue
2119   if test -r "$ac_site_file"; then
2120     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2121 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2122     sed 's/^/| /' "$ac_site_file" >&5
2123     . "$ac_site_file"
2124   fi
2125 done
2127 if test -r "$cache_file"; then
2128   # Some versions of bash will fail to source /dev/null (special
2129   # files actually), so we avoid doing that.
2130   if test -f "$cache_file"; then
2131     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2132 $as_echo "$as_me: loading cache $cache_file" >&6;}
2133     case $cache_file in
2134       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135       *)                      . "./$cache_file";;
2136     esac
2137   fi
2138 else
2139   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2140 $as_echo "$as_me: creating cache $cache_file" >&6;}
2141   >$cache_file
2142 fi
2144 # Check that the precious variables saved in the cache have kept the same
2145 # value.
2146 ac_cache_corrupted=false
2147 for ac_var in $ac_precious_vars; do
2148   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149   eval ac_new_set=\$ac_env_${ac_var}_set
2150   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151   eval ac_new_val=\$ac_env_${ac_var}_value
2152   case $ac_old_set,$ac_new_set in
2153     set,)
2154       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156       ac_cache_corrupted=: ;;
2157     ,set)
2158       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160       ac_cache_corrupted=: ;;
2161     ,);;
2162     *)
2163       if test "x$ac_old_val" != "x$ac_new_val"; then
2164         # differences in whitespace do not lead to failure.
2165         ac_old_val_w=`echo x $ac_old_val`
2166         ac_new_val_w=`echo x $ac_new_val`
2167         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2169 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170           ac_cache_corrupted=:
2171         else
2172           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174           eval $ac_var=\$ac_old_val
2175         fi
2176         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2177 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2178         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2179 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2180       fi;;
2181   esac
2182   # Pass precious variables to config.status.
2183   if test "$ac_new_set" = set; then
2184     case $ac_new_val in
2185     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186     *) ac_arg=$ac_var=$ac_new_val ;;
2187     esac
2188     case " $ac_configure_args " in
2189       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2190       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2191     esac
2192   fi
2193 done
2194 if $ac_cache_corrupted; then
2195   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2198 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2200 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2201    { (exit 1); exit 1; }; }
2202 fi
2228 ac_ext=c
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236 NUMVERS=1.399909060808
2239 LIBVERS=5:0:1
2242 ac_aux_dir=
2243 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2244   if test -f "$ac_dir/install-sh"; then
2245     ac_aux_dir=$ac_dir
2246     ac_install_sh="$ac_aux_dir/install-sh -c"
2247     break
2248   elif test -f "$ac_dir/install.sh"; then
2249     ac_aux_dir=$ac_dir
2250     ac_install_sh="$ac_aux_dir/install.sh -c"
2251     break
2252   elif test -f "$ac_dir/shtool"; then
2253     ac_aux_dir=$ac_dir
2254     ac_install_sh="$ac_aux_dir/shtool install -c"
2255     break
2256   fi
2257 done
2258 if test -z "$ac_aux_dir"; then
2259   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2260 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2261    { (exit 1); exit 1; }; }
2262 fi
2264 # These three variables are undocumented and unsupported,
2265 # and are intended to be withdrawn in a future Autoconf release.
2266 # They can cause serious problems if a builder's source tree is in a directory
2267 # whose full name contains unusual characters.
2268 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2269 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2270 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2273 # Make sure we can run config.sub.
2274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2275   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2276 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2277    { (exit 1); exit 1; }; }
2279 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2280 $as_echo_n "checking build system type... " >&6; }
2281 if test "${ac_cv_build+set}" = set; then
2282   $as_echo_n "(cached) " >&6
2283 else
2284   ac_build_alias=$build_alias
2285 test "x$ac_build_alias" = x &&
2286   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2287 test "x$ac_build_alias" = x &&
2288   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2289 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2290    { (exit 1); exit 1; }; }
2291 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2292   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2293 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2294    { (exit 1); exit 1; }; }
2296 fi
2297 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2298 $as_echo "$ac_cv_build" >&6; }
2299 case $ac_cv_build in
2300 *-*-*) ;;
2301 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2302 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2303    { (exit 1); exit 1; }; };;
2304 esac
2305 build=$ac_cv_build
2306 ac_save_IFS=$IFS; IFS='-'
2307 set x $ac_cv_build
2308 shift
2309 build_cpu=$1
2310 build_vendor=$2
2311 shift; shift
2312 # Remember, the first character of IFS is used to create $*,
2313 # except with old shells:
2314 build_os=$*
2315 IFS=$ac_save_IFS
2316 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2319 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2320 $as_echo_n "checking host system type... " >&6; }
2321 if test "${ac_cv_host+set}" = set; then
2322   $as_echo_n "(cached) " >&6
2323 else
2324   if test "x$host_alias" = x; then
2325   ac_cv_host=$ac_cv_build
2326 else
2327   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2328     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2329 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2333 fi
2334 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2335 $as_echo "$ac_cv_host" >&6; }
2336 case $ac_cv_host in
2337 *-*-*) ;;
2338 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2339 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2340    { (exit 1); exit 1; }; };;
2341 esac
2342 host=$ac_cv_host
2343 ac_save_IFS=$IFS; IFS='-'
2344 set x $ac_cv_host
2345 shift
2346 host_cpu=$1
2347 host_vendor=$2
2348 shift; shift
2349 # Remember, the first character of IFS is used to create $*,
2350 # except with old shells:
2351 host_os=$*
2352 IFS=$ac_save_IFS
2353 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2356 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2357 $as_echo_n "checking target system type... " >&6; }
2358 if test "${ac_cv_target+set}" = set; then
2359   $as_echo_n "(cached) " >&6
2360 else
2361   if test "x$target_alias" = x; then
2362   ac_cv_target=$ac_cv_host
2363 else
2364   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2365     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2366 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2367    { (exit 1); exit 1; }; }
2368 fi
2370 fi
2371 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2372 $as_echo "$ac_cv_target" >&6; }
2373 case $ac_cv_target in
2374 *-*-*) ;;
2375 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2376 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2377    { (exit 1); exit 1; }; };;
2378 esac
2379 target=$ac_cv_target
2380 ac_save_IFS=$IFS; IFS='-'
2381 set x $ac_cv_target
2382 shift
2383 target_cpu=$1
2384 target_vendor=$2
2385 shift; shift
2386 # Remember, the first character of IFS is used to create $*,
2387 # except with old shells:
2388 target_os=$*
2389 IFS=$ac_save_IFS
2390 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2393 # The aliases save the names the user supplied, while $host etc.
2394 # will get canonicalized.
2395 test -n "$target_alias" &&
2396   test "$program_prefix$program_suffix$program_transform_name" = \
2397     NONENONEs,x,x, &&
2398   program_prefix=${target_alias}-
2399 ac_ext=c
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 if test -n "$ac_tool_prefix"; then
2405   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410   $as_echo_n "(cached) " >&6
2411 else
2412   if test -n "$CC"; then
2413   ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   for ac_exec_ext in '' $ac_executable_extensions; do
2421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2423     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424     break 2
2425   fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2430 fi
2431 fi
2432 CC=$ac_cv_prog_CC
2433 if test -n "$CC"; then
2434   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2436 else
2437   { $as_echo "$as_me:$LINENO: result: no" >&5
2438 $as_echo "no" >&6; }
2439 fi
2442 fi
2443 if test -z "$ac_cv_prog_CC"; then
2444   ac_ct_CC=$CC
2445   # Extract the first word of "gcc", so it can be a program name with args.
2446 set dummy gcc; ac_word=$2
2447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450   $as_echo_n "(cached) " >&6
2451 else
2452   if test -n "$ac_ct_CC"; then
2453   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460   for ac_exec_ext in '' $ac_executable_extensions; do
2461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462     ac_cv_prog_ac_ct_CC="gcc"
2463     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2470 fi
2471 fi
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 $as_echo "$ac_ct_CC" >&6; }
2476 else
2477   { $as_echo "$as_me:$LINENO: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2481   if test "x$ac_ct_CC" = x; then
2482     CC=""
2483   else
2484     case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2488 ac_tool_warned=yes ;;
2489 esac
2490     CC=$ac_ct_CC
2491   fi
2492 else
2493   CC="$ac_cv_prog_CC"
2494 fi
2496 if test -z "$CC"; then
2497           if test -n "$ac_tool_prefix"; then
2498     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}cc; ac_word=$2
2500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then
2503   $as_echo_n "(cached) " >&6
2504 else
2505   if test -n "$CC"; then
2506   ac_cv_prog_CC="$CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     ac_cv_prog_CC="${ac_tool_prefix}cc"
2516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2523 fi
2524 fi
2525 CC=$ac_cv_prog_CC
2526 if test -n "$CC"; then
2527   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2529 else
2530   { $as_echo "$as_me:$LINENO: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2535   fi
2536 fi
2537 if test -z "$CC"; then
2538   # Extract the first word of "cc", so it can be a program name with args.
2539 set dummy cc; ac_word=$2
2540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543   $as_echo_n "(cached) " >&6
2544 else
2545   if test -n "$CC"; then
2546   ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548   ac_prog_rejected=no
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554   for ac_exec_ext in '' $ac_executable_extensions; do
2555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2557        ac_prog_rejected=yes
2558        continue
2559      fi
2560     ac_cv_prog_CC="cc"
2561     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562     break 2
2563   fi
2564 done
2565 done
2566 IFS=$as_save_IFS
2568 if test $ac_prog_rejected = yes; then
2569   # We found a bogon in the path, so make sure we never use it.
2570   set dummy $ac_cv_prog_CC
2571   shift
2572   if test $# != 0; then
2573     # We chose a different compiler from the bogus one.
2574     # However, it has the same basename, so the bogon will be chosen
2575     # first if we set CC to just the basename; use the full file name.
2576     shift
2577     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2578   fi
2579 fi
2580 fi
2581 fi
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2585 $as_echo "$CC" >&6; }
2586 else
2587   { $as_echo "$as_me:$LINENO: result: no" >&5
2588 $as_echo "no" >&6; }
2589 fi
2592 fi
2593 if test -z "$CC"; then
2594   if test -n "$ac_tool_prefix"; then
2595   for ac_prog in cl.exe
2596   do
2597     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602   $as_echo_n "(cached) " >&6
2603 else
2604   if test -n "$CC"; then
2605   ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610   IFS=$as_save_IFS
2611   test -z "$as_dir" && as_dir=.
2612   for ac_exec_ext in '' $ac_executable_extensions; do
2613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2615     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616     break 2
2617   fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2622 fi
2623 fi
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2628 else
2629   { $as_echo "$as_me:$LINENO: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2634     test -n "$CC" && break
2635   done
2636 fi
2637 if test -z "$CC"; then
2638   ac_ct_CC=$CC
2639   for ac_prog in cl.exe
2640 do
2641   # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2646   $as_echo_n "(cached) " >&6
2647 else
2648   if test -n "$ac_ct_CC"; then
2649   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656   for ac_exec_ext in '' $ac_executable_extensions; do
2657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658     ac_cv_prog_ac_ct_CC="$ac_prog"
2659     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2666 fi
2667 fi
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2671 $as_echo "$ac_ct_CC" >&6; }
2672 else
2673   { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2678   test -n "$ac_ct_CC" && break
2679 done
2681   if test "x$ac_ct_CC" = x; then
2682     CC=""
2683   else
2684     case $cross_compiling:$ac_tool_warned in
2685 yes:)
2686 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690     CC=$ac_ct_CC
2691   fi
2692 fi
2694 fi
2697 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&5
2701 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2702 See \`config.log' for more details." >&2;}
2703    { (exit 1); exit 1; }; }; }
2705 # Provide some information about the compiler.
2706 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2707 set X $ac_compile
2708 ac_compiler=$2
2709 { (ac_try="$ac_compiler --version >&5"
2710 case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2715 $as_echo "$ac_try_echo") >&5
2716   (eval "$ac_compiler --version >&5") 2>&5
2717   ac_status=$?
2718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }
2720 { (ac_try="$ac_compiler -v >&5"
2721 case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2726 $as_echo "$ac_try_echo") >&5
2727   (eval "$ac_compiler -v >&5") 2>&5
2728   ac_status=$?
2729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }
2731 { (ac_try="$ac_compiler -V >&5"
2732 case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737 $as_echo "$ac_try_echo") >&5
2738   (eval "$ac_compiler -V >&5") 2>&5
2739   ac_status=$?
2740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2750 int
2751 main ()
2754   ;
2755   return 0;
2757 _ACEOF
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2762 # of exeext.
2763 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764 $as_echo_n "checking for C compiler default output file name... " >&6; }
2765 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767 # The possible output files:
2768 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2770 ac_rmfiles=
2771 for ac_file in $ac_files
2772 do
2773   case $ac_file in
2774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2775     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776   esac
2777 done
2778 rm -f $ac_rmfiles
2780 if { (ac_try="$ac_link_default"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2786 $as_echo "$ac_try_echo") >&5
2787   (eval "$ac_link_default") 2>&5
2788   ac_status=$?
2789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; then
2791   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2792 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2793 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2794 # so that the user can short-circuit this test for compilers unknown to
2795 # Autoconf.
2796 for ac_file in $ac_files ''
2797 do
2798   test -f "$ac_file" || continue
2799   case $ac_file in
2800     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2801         ;;
2802     [ab].out )
2803         # We found the default executable, but exeext='' is most
2804         # certainly right.
2805         break;;
2806     *.* )
2807         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808         then :; else
2809            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810         fi
2811         # We set ac_cv_exeext here because the later test for it is not
2812         # safe: cross compilers may not add the suffix if given an `-o'
2813         # argument, so we may need to know it at that point already.
2814         # Even if this section looks crufty: it has the advantage of
2815         # actually working.
2816         break;;
2817     * )
2818         break;;
2819   esac
2820 done
2821 test "$ac_cv_exeext" = no && ac_cv_exeext=
2823 else
2824   ac_file=''
2825 fi
2827 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2828 $as_echo "$ac_file" >&6; }
2829 if test -z "$ac_file"; then
2830   $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2836 See \`config.log' for more details." >&5
2837 $as_echo "$as_me: error: C compiler cannot create executables
2838 See \`config.log' for more details." >&2;}
2839    { (exit 77); exit 77; }; }; }
2840 fi
2842 ac_exeext=$ac_cv_exeext
2844 # Check that the compiler produces executables we can run.  If not, either
2845 # the compiler is broken, or we cross compile.
2846 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2847 $as_echo_n "checking whether the C compiler works... " >&6; }
2848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2849 # If not cross compiling, check that we can run a simple program.
2850 if test "$cross_compiling" != yes; then
2851   if { ac_try='./$ac_file'
2852   { (case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858   (eval "$ac_try") 2>&5
2859   ac_status=$?
2860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; }; then
2862     cross_compiling=no
2863   else
2864     if test "$cross_compiling" = maybe; then
2865         cross_compiling=yes
2866     else
2867         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2870 If you meant to cross compile, use \`--host'.
2871 See \`config.log' for more details." >&5
2872 $as_echo "$as_me: error: cannot run C compiled programs.
2873 If you meant to cross compile, use \`--host'.
2874 See \`config.log' for more details." >&2;}
2875    { (exit 1); exit 1; }; }; }
2876     fi
2877   fi
2878 fi
2879 { $as_echo "$as_me:$LINENO: result: yes" >&5
2880 $as_echo "yes" >&6; }
2882 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2883 ac_clean_files=$ac_clean_files_save
2884 # Check that the compiler produces executables we can run.  If not, either
2885 # the compiler is broken, or we cross compile.
2886 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2887 $as_echo_n "checking whether we are cross compiling... " >&6; }
2888 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2889 $as_echo "$cross_compiling" >&6; }
2891 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2892 $as_echo_n "checking for suffix of executables... " >&6; }
2893 if { (ac_try="$ac_link"
2894 case "(($ac_try" in
2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896   *) ac_try_echo=$ac_try;;
2897 esac
2898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2899 $as_echo "$ac_try_echo") >&5
2900   (eval "$ac_link") 2>&5
2901   ac_status=$?
2902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; then
2904   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2906 # work properly (i.e., refer to `conftest.exe'), while it won't with
2907 # `rm'.
2908 for ac_file in conftest.exe conftest conftest.*; do
2909   test -f "$ac_file" || continue
2910   case $ac_file in
2911     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2912     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913           break;;
2914     * ) break;;
2915   esac
2916 done
2917 else
2918   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&5
2922 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&2;}
2924    { (exit 1); exit 1; }; }; }
2925 fi
2927 rm -f conftest$ac_cv_exeext
2928 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2929 $as_echo "$ac_cv_exeext" >&6; }
2931 rm -f conftest.$ac_ext
2932 EXEEXT=$ac_cv_exeext
2933 ac_exeext=$EXEEXT
2934 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2935 $as_echo_n "checking for suffix of object files... " >&6; }
2936 if test "${ac_cv_objext+set}" = set; then
2937   $as_echo_n "(cached) " >&6
2938 else
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2946 int
2947 main ()
2950   ;
2951   return 0;
2953 _ACEOF
2954 rm -f conftest.o conftest.obj
2955 if { (ac_try="$ac_compile"
2956 case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2961 $as_echo "$ac_try_echo") >&5
2962   (eval "$ac_compile") 2>&5
2963   ac_status=$?
2964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; then
2966   for ac_file in conftest.o conftest.obj conftest.*; do
2967   test -f "$ac_file" || continue;
2968   case $ac_file in
2969     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2970     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2971        break;;
2972   esac
2973 done
2974 else
2975   $as_echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2981 See \`config.log' for more details." >&5
2982 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2983 See \`config.log' for more details." >&2;}
2984    { (exit 1); exit 1; }; }; }
2985 fi
2987 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2988 fi
2989 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2990 $as_echo "$ac_cv_objext" >&6; }
2991 OBJEXT=$ac_cv_objext
2992 ac_objext=$OBJEXT
2993 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2995 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2996   $as_echo_n "(cached) " >&6
2997 else
2998   cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3005 int
3006 main ()
3008 #ifndef __GNUC__
3009        choke me
3010 #endif
3012   ;
3013   return 0;
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } && {
3031          test -z "$ac_c_werror_flag" ||
3032          test ! -s conftest.err
3033        } && test -s conftest.$ac_objext; then
3034   ac_compiler_gnu=yes
3035 else
3036   $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039         ac_compiler_gnu=no
3040 fi
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3045 fi
3046 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3048 if test $ac_compiler_gnu = yes; then
3049   GCC=yes
3050 else
3051   GCC=
3052 fi
3053 ac_test_CFLAGS=${CFLAGS+set}
3054 ac_save_CFLAGS=$CFLAGS
3055 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3056 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3057 if test "${ac_cv_prog_cc_g+set}" = set; then
3058   $as_echo_n "(cached) " >&6
3059 else
3060   ac_save_c_werror_flag=$ac_c_werror_flag
3061    ac_c_werror_flag=yes
3062    ac_cv_prog_cc_g=no
3063    CFLAGS="-g"
3064    cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3071 int
3072 main ()
3075   ;
3076   return 0;
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086 $as_echo "$ac_try_echo") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } && {
3094          test -z "$ac_c_werror_flag" ||
3095          test ! -s conftest.err
3096        } && test -s conftest.$ac_objext; then
3097   ac_cv_prog_cc_g=yes
3098 else
3099   $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102         CFLAGS=""
3103       cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3110 int
3111 main ()
3114   ;
3115   return 0;
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3125 $as_echo "$ac_try_echo") >&5
3126   (eval "$ac_compile") 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } && {
3133          test -z "$ac_c_werror_flag" ||
3134          test ! -s conftest.err
3135        } && test -s conftest.$ac_objext; then
3136   :
3137 else
3138   $as_echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141         ac_c_werror_flag=$ac_save_c_werror_flag
3142          CFLAGS="-g"
3143          cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3150 int
3151 main ()
3154   ;
3155   return 0;
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166   (eval "$ac_compile") 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } && {
3173          test -z "$ac_c_werror_flag" ||
3174          test ! -s conftest.err
3175        } && test -s conftest.$ac_objext; then
3176   ac_cv_prog_cc_g=yes
3177 else
3178   $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3182 fi
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 fi
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 fi
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191    ac_c_werror_flag=$ac_save_c_werror_flag
3192 fi
3193 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3194 $as_echo "$ac_cv_prog_cc_g" >&6; }
3195 if test "$ac_test_CFLAGS" = set; then
3196   CFLAGS=$ac_save_CFLAGS
3197 elif test $ac_cv_prog_cc_g = yes; then
3198   if test "$GCC" = yes; then
3199     CFLAGS="-g -O2"
3200   else
3201     CFLAGS="-g"
3202   fi
3203 else
3204   if test "$GCC" = yes; then
3205     CFLAGS="-O2"
3206   else
3207     CFLAGS=
3208   fi
3209 fi
3210 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3211 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3212 if test "${ac_cv_prog_cc_c89+set}" = set; then
3213   $as_echo_n "(cached) " >&6
3214 else
3215   ac_cv_prog_cc_c89=no
3216 ac_save_CC=$CC
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 #include <stdarg.h>
3224 #include <stdio.h>
3225 #include <sys/types.h>
3226 #include <sys/stat.h>
3227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3228 struct buf { int x; };
3229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3230 static char *e (p, i)
3231      char **p;
3232      int i;
3234   return p[i];
3236 static char *f (char * (*g) (char **, int), char **p, ...)
3238   char *s;
3239   va_list v;
3240   va_start (v,p);
3241   s = g (p, va_arg (v,int));
3242   va_end (v);
3243   return s;
3246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3247    function prototypes and stuff, but not '\xHH' hex character constants.
3248    These don't provoke an error unfortunately, instead are silently treated
3249    as 'x'.  The following induces an error, until -std is added to get
3250    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3251    array size at least.  It's necessary to write '\x00'==0 to get something
3252    that's true only with -std.  */
3253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3256    inside strings and character constants.  */
3257 #define FOO(x) 'x'
3258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3260 int test (int i, double x);
3261 struct s1 {int (*f) (int a);};
3262 struct s2 {int (*f) (double a);};
3263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3264 int argc;
3265 char **argv;
3266 int
3267 main ()
3269 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3270   ;
3271   return 0;
3273 _ACEOF
3274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3275         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3276 do
3277   CC="$ac_save_CC $ac_arg"
3278   rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3285 $as_echo "$ac_try_echo") >&5
3286   (eval "$ac_compile") 2>conftest.er1
3287   ac_status=$?
3288   grep -v '^ *+' conftest.er1 >conftest.err
3289   rm -f conftest.er1
3290   cat conftest.err >&5
3291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } && {
3293          test -z "$ac_c_werror_flag" ||
3294          test ! -s conftest.err
3295        } && test -s conftest.$ac_objext; then
3296   ac_cv_prog_cc_c89=$ac_arg
3297 else
3298   $as_echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3302 fi
3304 rm -f core conftest.err conftest.$ac_objext
3305   test "x$ac_cv_prog_cc_c89" != "xno" && break
3306 done
3307 rm -f conftest.$ac_ext
3308 CC=$ac_save_CC
3310 fi
3311 # AC_CACHE_VAL
3312 case "x$ac_cv_prog_cc_c89" in
3313   x)
3314     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3315 $as_echo "none needed" >&6; } ;;
3316   xno)
3317     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3318 $as_echo "unsupported" >&6; } ;;
3319   *)
3320     CC="$CC $ac_cv_prog_cc_c89"
3321     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3323 esac
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3340 # On Suns, sometimes $CPP names a directory.
3341 if test -n "$CPP" && test -d "$CPP"; then
3342   CPP=
3343 fi
3344 if test -z "$CPP"; then
3345   if test "${ac_cv_prog_CPP+set}" = set; then
3346   $as_echo_n "(cached) " >&6
3347 else
3348       # Double quotes because CPP needs to be expanded
3349     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3350     do
3351       ac_preproc_ok=false
3352 for ac_c_preproc_warn_flag in '' yes
3353 do
3354   # Use a header file that comes with gcc, so configuring glibc
3355   # with a fresh cross-compiler works.
3356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3357   # <limits.h> exists even on freestanding compilers.
3358   # On the NeXT, cc -E runs the code through the compiler's parser,
3359   # not just through cpp. "Syntax error" is here to catch this case.
3360   cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h.  */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h.  */
3366 #ifdef __STDC__
3367 # include <limits.h>
3368 #else
3369 # include <assert.h>
3370 #endif
3371                      Syntax error
3372 _ACEOF
3373 if { (ac_try="$ac_cpp conftest.$ac_ext"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379 $as_echo "$ac_try_echo") >&5
3380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } >/dev/null && {
3387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388          test ! -s conftest.err
3389        }; then
3390   :
3391 else
3392   $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395   # Broken: fails on valid input.
3396 continue
3397 fi
3399 rm -f conftest.err conftest.$ac_ext
3401   # OK, works on sane cases.  Now check whether nonexistent headers
3402   # can be detected and how.
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } >/dev/null && {
3425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3426          test ! -s conftest.err
3427        }; then
3428   # Broken: success on invalid input.
3429 continue
3430 else
3431   $as_echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434   # Passes both tests.
3435 ac_preproc_ok=:
3436 break
3437 fi
3439 rm -f conftest.err conftest.$ac_ext
3441 done
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3445   break
3446 fi
3448     done
3449     ac_cv_prog_CPP=$CPP
3451 fi
3452   CPP=$ac_cv_prog_CPP
3453 else
3454   ac_cv_prog_CPP=$CPP
3455 fi
3456 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3457 $as_echo "$CPP" >&6; }
3458 ac_preproc_ok=false
3459 for ac_c_preproc_warn_flag in '' yes
3460 do
3461   # Use a header file that comes with gcc, so configuring glibc
3462   # with a fresh cross-compiler works.
3463   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464   # <limits.h> exists even on freestanding compilers.
3465   # On the NeXT, cc -E runs the code through the compiler's parser,
3466   # not just through cpp. "Syntax error" is here to catch this case.
3467   cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h.  */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h.  */
3473 #ifdef __STDC__
3474 # include <limits.h>
3475 #else
3476 # include <assert.h>
3477 #endif
3478                      Syntax error
3479 _ACEOF
3480 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } >/dev/null && {
3494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495          test ! -s conftest.err
3496        }; then
3497   :
3498 else
3499   $as_echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502   # Broken: fails on valid input.
3503 continue
3504 fi
3506 rm -f conftest.err conftest.$ac_ext
3508   # OK, works on sane cases.  Now check whether nonexistent headers
3509   # can be detected and how.
3510   cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h.  */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h.  */
3516 #include <ac_nonexistent.h>
3517 _ACEOF
3518 if { (ac_try="$ac_cpp conftest.$ac_ext"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524 $as_echo "$ac_try_echo") >&5
3525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } >/dev/null && {
3532          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533          test ! -s conftest.err
3534        }; then
3535   # Broken: success on invalid input.
3536 continue
3537 else
3538   $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541   # Passes both tests.
3542 ac_preproc_ok=:
3543 break
3544 fi
3546 rm -f conftest.err conftest.$ac_ext
3548 done
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then
3552   :
3553 else
3554   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3557 See \`config.log' for more details." >&5
3558 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&2;}
3560    { (exit 1); exit 1; }; }; }
3561 fi
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3572 if test "${ac_cv_path_GREP+set}" = set; then
3573   $as_echo_n "(cached) " >&6
3574 else
3575   if test -z "$GREP"; then
3576   ac_path_GREP_found=false
3577   # Loop through the user's path and test for each of PROGNAME-LIST
3578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580 do
3581   IFS=$as_save_IFS
3582   test -z "$as_dir" && as_dir=.
3583   for ac_prog in grep ggrep; do
3584     for ac_exec_ext in '' $ac_executable_extensions; do
3585       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3586       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3587 # Check for GNU ac_path_GREP and select it if it is found.
3588   # Check for GNU $ac_path_GREP
3589 case `"$ac_path_GREP" --version 2>&1` in
3590 *GNU*)
3591   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3592 *)
3593   ac_count=0
3594   $as_echo_n 0123456789 >"conftest.in"
3595   while :
3596   do
3597     cat "conftest.in" "conftest.in" >"conftest.tmp"
3598     mv "conftest.tmp" "conftest.in"
3599     cp "conftest.in" "conftest.nl"
3600     $as_echo 'GREP' >> "conftest.nl"
3601     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603     ac_count=`expr $ac_count + 1`
3604     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3605       # Best one so far, save it but keep looking for a better one
3606       ac_cv_path_GREP="$ac_path_GREP"
3607       ac_path_GREP_max=$ac_count
3608     fi
3609     # 10*(2^10) chars as input seems more than enough
3610     test $ac_count -gt 10 && break
3611   done
3612   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613 esac
3615       $ac_path_GREP_found && break 3
3616     done
3617   done
3618 done
3619 IFS=$as_save_IFS
3620   if test -z "$ac_cv_path_GREP"; then
3621     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3622 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3623    { (exit 1); exit 1; }; }
3624   fi
3625 else
3626   ac_cv_path_GREP=$GREP
3627 fi
3629 fi
3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3631 $as_echo "$ac_cv_path_GREP" >&6; }
3632  GREP="$ac_cv_path_GREP"
3635 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3636 $as_echo_n "checking for egrep... " >&6; }
3637 if test "${ac_cv_path_EGREP+set}" = set; then
3638   $as_echo_n "(cached) " >&6
3639 else
3640   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3641    then ac_cv_path_EGREP="$GREP -E"
3642    else
3643      if test -z "$EGREP"; then
3644   ac_path_EGREP_found=false
3645   # Loop through the user's path and test for each of PROGNAME-LIST
3646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3648 do
3649   IFS=$as_save_IFS
3650   test -z "$as_dir" && as_dir=.
3651   for ac_prog in egrep; do
3652     for ac_exec_ext in '' $ac_executable_extensions; do
3653       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3654       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3655 # Check for GNU ac_path_EGREP and select it if it is found.
3656   # Check for GNU $ac_path_EGREP
3657 case `"$ac_path_EGREP" --version 2>&1` in
3658 *GNU*)
3659   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3660 *)
3661   ac_count=0
3662   $as_echo_n 0123456789 >"conftest.in"
3663   while :
3664   do
3665     cat "conftest.in" "conftest.in" >"conftest.tmp"
3666     mv "conftest.tmp" "conftest.in"
3667     cp "conftest.in" "conftest.nl"
3668     $as_echo 'EGREP' >> "conftest.nl"
3669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3671     ac_count=`expr $ac_count + 1`
3672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3673       # Best one so far, save it but keep looking for a better one
3674       ac_cv_path_EGREP="$ac_path_EGREP"
3675       ac_path_EGREP_max=$ac_count
3676     fi
3677     # 10*(2^10) chars as input seems more than enough
3678     test $ac_count -gt 10 && break
3679   done
3680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3681 esac
3683       $ac_path_EGREP_found && break 3
3684     done
3685   done
3686 done
3687 IFS=$as_save_IFS
3688   if test -z "$ac_cv_path_EGREP"; then
3689     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3690 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3691    { (exit 1); exit 1; }; }
3692   fi
3693 else
3694   ac_cv_path_EGREP=$EGREP
3695 fi
3697    fi
3698 fi
3699 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3700 $as_echo "$ac_cv_path_EGREP" >&6; }
3701  EGREP="$ac_cv_path_EGREP"
3704 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3705 $as_echo_n "checking for ANSI C header files... " >&6; }
3706 if test "${ac_cv_header_stdc+set}" = set; then
3707   $as_echo_n "(cached) " >&6
3708 else
3709   cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h.  */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h.  */
3715 #include <stdlib.h>
3716 #include <stdarg.h>
3717 #include <string.h>
3718 #include <float.h>
3720 int
3721 main ()
3724   ;
3725   return 0;
3727 _ACEOF
3728 rm -f conftest.$ac_objext
3729 if { (ac_try="$ac_compile"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3735 $as_echo "$ac_try_echo") >&5
3736   (eval "$ac_compile") 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } && {
3743          test -z "$ac_c_werror_flag" ||
3744          test ! -s conftest.err
3745        } && test -s conftest.$ac_objext; then
3746   ac_cv_header_stdc=yes
3747 else
3748   $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751         ac_cv_header_stdc=no
3752 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 if test $ac_cv_header_stdc = yes; then
3757   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3758   cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 #include <string.h>
3766 _ACEOF
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768   $EGREP "memchr" >/dev/null 2>&1; then
3769   :
3770 else
3771   ac_cv_header_stdc=no
3772 fi
3773 rm -f conftest*
3775 fi
3777 if test $ac_cv_header_stdc = yes; then
3778   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #include <stdlib.h>
3787 _ACEOF
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789   $EGREP "free" >/dev/null 2>&1; then
3790   :
3791 else
3792   ac_cv_header_stdc=no
3793 fi
3794 rm -f conftest*
3796 fi
3798 if test $ac_cv_header_stdc = yes; then
3799   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800   if test "$cross_compiling" = yes; then
3801   :
3802 else
3803   cat >conftest.$ac_ext <<_ACEOF
3804 /* confdefs.h.  */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h.  */
3809 #include <ctype.h>
3810 #include <stdlib.h>
3811 #if ((' ' & 0x0FF) == 0x020)
3812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3814 #else
3815 # define ISLOWER(c) \
3816                    (('a' <= (c) && (c) <= 'i') \
3817                      || ('j' <= (c) && (c) <= 'r') \
3818                      || ('s' <= (c) && (c) <= 'z'))
3819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3820 #endif
3822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3823 int
3824 main ()
3826   int i;
3827   for (i = 0; i < 256; i++)
3828     if (XOR (islower (i), ISLOWER (i))
3829         || toupper (i) != TOUPPER (i))
3830       return 2;
3831   return 0;
3833 _ACEOF
3834 rm -f conftest$ac_exeext
3835 if { (ac_try="$ac_link"
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_link") 2>&5
3843   ac_status=$?
3844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3846   { (case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851 $as_echo "$ac_try_echo") >&5
3852   (eval "$ac_try") 2>&5
3853   ac_status=$?
3854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; }; then
3856   :
3857 else
3858   $as_echo "$as_me: program exited with status $ac_status" >&5
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ( exit $ac_status )
3863 ac_cv_header_stdc=no
3864 fi
3865 rm -rf conftest.dSYM
3866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3867 fi
3870 fi
3871 fi
3872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3873 $as_echo "$ac_cv_header_stdc" >&6; }
3874 if test $ac_cv_header_stdc = yes; then
3876 cat >>confdefs.h <<\_ACEOF
3877 #define STDC_HEADERS 1
3878 _ACEOF
3880 fi
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3893                   inttypes.h stdint.h unistd.h
3894 do
3895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3897 $as_echo_n "checking for $ac_header... " >&6; }
3898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3899   $as_echo_n "(cached) " >&6
3900 else
3901   cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907 $ac_includes_default
3909 #include <$ac_header>
3910 _ACEOF
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919   (eval "$ac_compile") 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } && {
3926          test -z "$ac_c_werror_flag" ||
3927          test ! -s conftest.err
3928        } && test -s conftest.$ac_objext; then
3929   eval "$as_ac_Header=yes"
3930 else
3931   $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934         eval "$as_ac_Header=no"
3935 fi
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 fi
3939 ac_res=`eval 'as_val=${'$as_ac_Header'}
3940                  $as_echo "$as_val"'`
3941                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3942 $as_echo "$ac_res" >&6; }
3943 as_val=`eval 'as_val=${'$as_ac_Header'}
3944                  $as_echo "$as_val"'`
3945    if test "x$as_val" = x""yes; then
3946   cat >>confdefs.h <<_ACEOF
3947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948 _ACEOF
3950 fi
3952 done
3956   if test "${ac_cv_header_minix_config_h+set}" = set; then
3957   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3958 $as_echo_n "checking for minix/config.h... " >&6; }
3959 if test "${ac_cv_header_minix_config_h+set}" = set; then
3960   $as_echo_n "(cached) " >&6
3961 fi
3962 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3963 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3964 else
3965   # Is the header compilable?
3966 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3967 $as_echo_n "checking minix/config.h usability... " >&6; }
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3974 $ac_includes_default
3975 #include <minix/config.h>
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3979 case "(($ac_try" in
3980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981   *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985   (eval "$ac_compile") 2>conftest.er1
3986   ac_status=$?
3987   grep -v '^ *+' conftest.er1 >conftest.err
3988   rm -f conftest.er1
3989   cat conftest.err >&5
3990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); } && {
3992          test -z "$ac_c_werror_flag" ||
3993          test ! -s conftest.err
3994        } && test -s conftest.$ac_objext; then
3995   ac_header_compiler=yes
3996 else
3997   $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000         ac_header_compiler=no
4001 fi
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4005 $as_echo "$ac_header_compiler" >&6; }
4007 # Is the header present?
4008 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4009 $as_echo_n "checking minix/config.h presence... " >&6; }
4010 cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h.  */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h.  */
4016 #include <minix/config.h>
4017 _ACEOF
4018 if { (ac_try="$ac_cpp conftest.$ac_ext"
4019 case "(($ac_try" in
4020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021   *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4026   ac_status=$?
4027   grep -v '^ *+' conftest.er1 >conftest.err
4028   rm -f conftest.er1
4029   cat conftest.err >&5
4030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); } >/dev/null && {
4032          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4033          test ! -s conftest.err
4034        }; then
4035   ac_header_preproc=yes
4036 else
4037   $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040   ac_header_preproc=no
4041 fi
4043 rm -f conftest.err conftest.$ac_ext
4044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4045 $as_echo "$ac_header_preproc" >&6; }
4047 # So?  What about this header?
4048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4049   yes:no: )
4050     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4051 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4052     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4053 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4054     ac_header_preproc=yes
4055     ;;
4056   no:yes:* )
4057     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4058 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4059     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4060 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4061     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4062 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4063     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4064 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4065     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4066 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4067     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4068 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4070     ;;
4071 esac
4072 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4073 $as_echo_n "checking for minix/config.h... " >&6; }
4074 if test "${ac_cv_header_minix_config_h+set}" = set; then
4075   $as_echo_n "(cached) " >&6
4076 else
4077   ac_cv_header_minix_config_h=$ac_header_preproc
4078 fi
4079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4080 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4082 fi
4083 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4084   MINIX=yes
4085 else
4086   MINIX=
4087 fi
4090   if test "$MINIX" = yes; then
4092 cat >>confdefs.h <<\_ACEOF
4093 #define _POSIX_SOURCE 1
4094 _ACEOF
4097 cat >>confdefs.h <<\_ACEOF
4098 #define _POSIX_1_SOURCE 2
4099 _ACEOF
4102 cat >>confdefs.h <<\_ACEOF
4103 #define _MINIX 1
4104 _ACEOF
4106   fi
4110   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4111 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4112 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4113   $as_echo_n "(cached) " >&6
4114 else
4115   cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4122 #         define __EXTENSIONS__ 1
4123           $ac_includes_default
4124 int
4125 main ()
4128   ;
4129   return 0;
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140   (eval "$ac_compile") 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } && {
4147          test -z "$ac_c_werror_flag" ||
4148          test ! -s conftest.err
4149        } && test -s conftest.$ac_objext; then
4150   ac_cv_safe_to_define___extensions__=yes
4151 else
4152   $as_echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155         ac_cv_safe_to_define___extensions__=no
4156 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 fi
4160 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4161 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4162   test $ac_cv_safe_to_define___extensions__ = yes &&
4163     cat >>confdefs.h <<\_ACEOF
4164 #define __EXTENSIONS__ 1
4165 _ACEOF
4167   cat >>confdefs.h <<\_ACEOF
4168 #define _ALL_SOURCE 1
4169 _ACEOF
4171   cat >>confdefs.h <<\_ACEOF
4172 #define _GNU_SOURCE 1
4173 _ACEOF
4175   cat >>confdefs.h <<\_ACEOF
4176 #define _POSIX_PTHREAD_SEMANTICS 1
4177 _ACEOF
4179   cat >>confdefs.h <<\_ACEOF
4180 #define _TANDEM_SOURCE 1
4181 _ACEOF
4184 am__api_version='1.11'
4186 # Find a good install program.  We prefer a C program (faster),
4187 # so one script is as good as another.  But avoid the broken or
4188 # incompatible versions:
4189 # SysV /etc/install, /usr/sbin/install
4190 # SunOS /usr/etc/install
4191 # IRIX /sbin/install
4192 # AIX /bin/install
4193 # AmigaOS /C/install, which installs bootblocks on floppy discs
4194 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4197 # OS/2's system install, which has a completely different semantic
4198 # ./install, which can be erroneously created by make from ./install.sh.
4199 # Reject install programs that cannot install multiple files.
4200 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4201 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4202 if test -z "$INSTALL"; then
4203 if test "${ac_cv_path_install+set}" = set; then
4204   $as_echo_n "(cached) " >&6
4205 else
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   # Account for people who put trailing slashes in PATH elements.
4212 case $as_dir/ in
4213   ./ | .// | /cC/* | \
4214   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4215   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4216   /usr/ucb/* ) ;;
4217   *)
4218     # OSF1 and SCO ODT 3.0 have their own names for install.
4219     # Don't use installbsd from OSF since it installs stuff as root
4220     # by default.
4221     for ac_prog in ginstall scoinst install; do
4222       for ac_exec_ext in '' $ac_executable_extensions; do
4223         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4224           if test $ac_prog = install &&
4225             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4226             # AIX install.  It has an incompatible calling convention.
4227             :
4228           elif test $ac_prog = install &&
4229             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4230             # program-specific install script used by HP pwplus--don't use.
4231             :
4232           else
4233             rm -rf conftest.one conftest.two conftest.dir
4234             echo one > conftest.one
4235             echo two > conftest.two
4236             mkdir conftest.dir
4237             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4238               test -s conftest.one && test -s conftest.two &&
4239               test -s conftest.dir/conftest.one &&
4240               test -s conftest.dir/conftest.two
4241             then
4242               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4243               break 3
4244             fi
4245           fi
4246         fi
4247       done
4248     done
4249     ;;
4250 esac
4252 done
4253 IFS=$as_save_IFS
4255 rm -rf conftest.one conftest.two conftest.dir
4257 fi
4258   if test "${ac_cv_path_install+set}" = set; then
4259     INSTALL=$ac_cv_path_install
4260   else
4261     # As a last resort, use the slow shell script.  Don't cache a
4262     # value for INSTALL within a source directory, because that will
4263     # break other packages using the cache if that directory is
4264     # removed, or if the value is a relative name.
4265     INSTALL=$ac_install_sh
4266   fi
4267 fi
4268 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4269 $as_echo "$INSTALL" >&6; }
4271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4272 # It thinks the first close brace ends the variable substitution.
4273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4279 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4280 $as_echo_n "checking whether build environment is sane... " >&6; }
4281 # Just in case
4282 sleep 1
4283 echo timestamp > conftest.file
4284 # Reject unsafe characters in $srcdir or the absolute working directory
4285 # name.  Accept space and tab only in the latter.
4286 am_lf='
4288 case `pwd` in
4289   *[\\\"\#\$\&\'\`$am_lf]*)
4290     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
4291 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
4292    { (exit 1); exit 1; }; };;
4293 esac
4294 case $srcdir in
4295   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4296     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
4297 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
4298    { (exit 1); exit 1; }; };;
4299 esac
4301 # Do `set' in a subshell so we don't clobber the current shell's
4302 # arguments.  Must try -L first in case configure is actually a
4303 # symlink; some systems play weird games with the mod time of symlinks
4304 # (eg FreeBSD returns the mod time of the symlink's containing
4305 # directory).
4306 if (
4307    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4308    if test "$*" = "X"; then
4309       # -L didn't work.
4310       set X `ls -t "$srcdir/configure" conftest.file`
4311    fi
4312    rm -f conftest.file
4313    if test "$*" != "X $srcdir/configure conftest.file" \
4314       && test "$*" != "X conftest.file $srcdir/configure"; then
4316       # If neither matched, then we have a broken ls.  This can happen
4317       # if, for instance, CONFIG_SHELL is bash and it inherits a
4318       # broken ls alias from the environment.  This has actually
4319       # happened.  Such a system could not be considered "sane".
4320       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4321 alias in your environment" >&5
4322 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4323 alias in your environment" >&2;}
4324    { (exit 1); exit 1; }; }
4325    fi
4327    test "$2" = conftest.file
4328    )
4329 then
4330    # Ok.
4331    :
4332 else
4333    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4334 Check your system clock" >&5
4335 $as_echo "$as_me: error: newly created file is older than distributed files!
4336 Check your system clock" >&2;}
4337    { (exit 1); exit 1; }; }
4338 fi
4339 { $as_echo "$as_me:$LINENO: result: yes" >&5
4340 $as_echo "yes" >&6; }
4341 test "$program_prefix" != NONE &&
4342   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4343 # Use a double $ so make ignores it.
4344 test "$program_suffix" != NONE &&
4345   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4346 # Double any \ or $.
4347 # By default was `s,x,x', remove it if useless.
4348 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4349 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4351 # expand $ac_aux_dir to an absolute path
4352 am_aux_dir=`cd $ac_aux_dir && pwd`
4354 if test x"${MISSING+set}" != xset; then
4355   case $am_aux_dir in
4356   *\ * | *\     *)
4357     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4358   *)
4359     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4360   esac
4361 fi
4362 # Use eval to expand $SHELL
4363 if eval "$MISSING --run true"; then
4364   am_missing_run="$MISSING --run "
4365 else
4366   am_missing_run=
4367   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4368 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4369 fi
4371 if test x"${install_sh}" != xset; then
4372   case $am_aux_dir in
4373   *\ * | *\     *)
4374     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4375   *)
4376     install_sh="\${SHELL} $am_aux_dir/install-sh"
4377   esac
4378 fi
4380 # Installed binaries are usually stripped using `strip' when the user
4381 # run `make install-strip'.  However `strip' might not be the right
4382 # tool to use in cross-compilation environments, therefore Automake
4383 # will honor the `STRIP' environment variable to overrule this program.
4384 if test "$cross_compiling" != no; then
4385   if test -n "$ac_tool_prefix"; then
4386   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}strip; ac_word=$2
4388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if test "${ac_cv_prog_STRIP+set}" = set; then
4391   $as_echo_n "(cached) " >&6
4392 else
4393   if test -n "$STRIP"; then
4394   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401   for ac_exec_ext in '' $ac_executable_extensions; do
4402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4404     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405     break 2
4406   fi
4407 done
4408 done
4409 IFS=$as_save_IFS
4411 fi
4412 fi
4413 STRIP=$ac_cv_prog_STRIP
4414 if test -n "$STRIP"; then
4415   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4416 $as_echo "$STRIP" >&6; }
4417 else
4418   { $as_echo "$as_me:$LINENO: result: no" >&5
4419 $as_echo "no" >&6; }
4420 fi
4423 fi
4424 if test -z "$ac_cv_prog_STRIP"; then
4425   ac_ct_STRIP=$STRIP
4426   # Extract the first word of "strip", so it can be a program name with args.
4427 set dummy strip; ac_word=$2
4428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4431   $as_echo_n "(cached) " >&6
4432 else
4433   if test -n "$ac_ct_STRIP"; then
4434   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441   for ac_exec_ext in '' $ac_executable_extensions; do
4442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443     ac_cv_prog_ac_ct_STRIP="strip"
4444     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4451 fi
4452 fi
4453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4454 if test -n "$ac_ct_STRIP"; then
4455   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4456 $as_echo "$ac_ct_STRIP" >&6; }
4457 else
4458   { $as_echo "$as_me:$LINENO: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4462   if test "x$ac_ct_STRIP" = x; then
4463     STRIP=":"
4464   else
4465     case $cross_compiling:$ac_tool_warned in
4466 yes:)
4467 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 ac_tool_warned=yes ;;
4470 esac
4471     STRIP=$ac_ct_STRIP
4472   fi
4473 else
4474   STRIP="$ac_cv_prog_STRIP"
4475 fi
4477 fi
4478 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4480 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4481 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4482 if test -z "$MKDIR_P"; then
4483   if test "${ac_cv_path_mkdir+set}" = set; then
4484   $as_echo_n "(cached) " >&6
4485 else
4486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_prog in mkdir gmkdir; do
4492          for ac_exec_ext in '' $ac_executable_extensions; do
4493            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4494            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4495              'mkdir (GNU coreutils) '* | \
4496              'mkdir (coreutils) '* | \
4497              'mkdir (fileutils) '4.1*)
4498                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4499                break 3;;
4500            esac
4501          done
4502        done
4503 done
4504 IFS=$as_save_IFS
4506 fi
4508   if test "${ac_cv_path_mkdir+set}" = set; then
4509     MKDIR_P="$ac_cv_path_mkdir -p"
4510   else
4511     # As a last resort, use the slow shell script.  Don't cache a
4512     # value for MKDIR_P within a source directory, because that will
4513     # break other packages using the cache if that directory is
4514     # removed, or if the value is a relative name.
4515     test -d ./--version && rmdir ./--version
4516     MKDIR_P="$ac_install_sh -d"
4517   fi
4518 fi
4519 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4520 $as_echo "$MKDIR_P" >&6; }
4522 mkdir_p="$MKDIR_P"
4523 case $mkdir_p in
4524   [\\/$]* | ?:[\\/]*) ;;
4525   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4526 esac
4528 for ac_prog in gawk mawk nawk awk
4529 do
4530   # Extract the first word of "$ac_prog", so it can be a program name with args.
4531 set dummy $ac_prog; ac_word=$2
4532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_AWK+set}" = set; then
4535   $as_echo_n "(cached) " >&6
4536 else
4537   if test -n "$AWK"; then
4538   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543   IFS=$as_save_IFS
4544   test -z "$as_dir" && as_dir=.
4545   for ac_exec_ext in '' $ac_executable_extensions; do
4546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547     ac_cv_prog_AWK="$ac_prog"
4548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549     break 2
4550   fi
4551 done
4552 done
4553 IFS=$as_save_IFS
4555 fi
4556 fi
4557 AWK=$ac_cv_prog_AWK
4558 if test -n "$AWK"; then
4559   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4560 $as_echo "$AWK" >&6; }
4561 else
4562   { $as_echo "$as_me:$LINENO: result: no" >&5
4563 $as_echo "no" >&6; }
4564 fi
4567   test -n "$AWK" && break
4568 done
4570 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4571 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4572 set x ${MAKE-make}
4573 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4574 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4575   $as_echo_n "(cached) " >&6
4576 else
4577   cat >conftest.make <<\_ACEOF
4578 SHELL = /bin/sh
4579 all:
4580         @echo '@@@%%%=$(MAKE)=@@@%%%'
4581 _ACEOF
4582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4583 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4584   *@@@%%%=?*=@@@%%%*)
4585     eval ac_cv_prog_make_${ac_make}_set=yes;;
4586   *)
4587     eval ac_cv_prog_make_${ac_make}_set=no;;
4588 esac
4589 rm -f conftest.make
4590 fi
4591 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4592   { $as_echo "$as_me:$LINENO: result: yes" >&5
4593 $as_echo "yes" >&6; }
4594   SET_MAKE=
4595 else
4596   { $as_echo "$as_me:$LINENO: result: no" >&5
4597 $as_echo "no" >&6; }
4598   SET_MAKE="MAKE=${MAKE-make}"
4599 fi
4601 rm -rf .tst 2>/dev/null
4602 mkdir .tst 2>/dev/null
4603 if test -d .tst; then
4604   am__leading_dot=.
4605 else
4606   am__leading_dot=_
4607 fi
4608 rmdir .tst 2>/dev/null
4610 DEPDIR="${am__leading_dot}deps"
4612 ac_config_commands="$ac_config_commands depfiles"
4615 am_make=${MAKE-make}
4616 cat > confinc << 'END'
4617 am__doit:
4618         @echo this is the am__doit target
4619 .PHONY: am__doit
4620 END
4621 # If we don't find an include directive, just comment out the code.
4622 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4623 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4624 am__include="#"
4625 am__quote=
4626 _am_result=none
4627 # First try GNU make style include.
4628 echo "include confinc" > confmf
4629 # Ignore all kinds of additional output from `make'.
4630 case `$am_make -s -f confmf 2> /dev/null` in #(
4631 *the\ am__doit\ target*)
4632   am__include=include
4633   am__quote=
4634   _am_result=GNU
4635   ;;
4636 esac
4637 # Now try BSD make style include.
4638 if test "$am__include" = "#"; then
4639    echo '.include "confinc"' > confmf
4640    case `$am_make -s -f confmf 2> /dev/null` in #(
4641    *the\ am__doit\ target*)
4642      am__include=.include
4643      am__quote="\""
4644      _am_result=BSD
4645      ;;
4646    esac
4647 fi
4650 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4651 $as_echo "$_am_result" >&6; }
4652 rm -f confinc confmf
4654 # Check whether --enable-dependency-tracking was given.
4655 if test "${enable_dependency_tracking+set}" = set; then
4656   enableval=$enable_dependency_tracking;
4657 fi
4659 if test "x$enable_dependency_tracking" != xno; then
4660   am_depcomp="$ac_aux_dir/depcomp"
4661   AMDEPBACKSLASH='\'
4662 fi
4663  if test "x$enable_dependency_tracking" != xno; then
4664   AMDEP_TRUE=
4665   AMDEP_FALSE='#'
4666 else
4667   AMDEP_TRUE='#'
4668   AMDEP_FALSE=
4669 fi
4672 # Check whether --enable-silent-rules was given.
4673 if test "${enable_silent_rules+set}" = set; then
4674   enableval=$enable_silent_rules;
4675 fi
4677 case $enable_silent_rules in
4678 yes) AM_DEFAULT_VERBOSITY=0;;
4679 no)  AM_DEFAULT_VERBOSITY=1;;
4680 *)   AM_DEFAULT_VERBOSITY=1;;
4681 esac
4682 AM_BACKSLASH='\'
4684 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4685   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4686   # is not polluted with repeated "-I."
4687   am__isrc=' -I$(srcdir)'
4688   # test to see if srcdir already configured
4689   if test -f $srcdir/config.status; then
4690     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4691 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4692    { (exit 1); exit 1; }; }
4693   fi
4694 fi
4696 # test whether we have cygpath
4697 if test -z "$CYGPATH_W"; then
4698   if (cygpath --version) >/dev/null 2>/dev/null; then
4699     CYGPATH_W='cygpath -w'
4700   else
4701     CYGPATH_W=echo
4702   fi
4703 fi
4706 # Define the identity of the package.
4707  PACKAGE='rrdtool'
4708  VERSION='1.3.99909060808'
4711 cat >>confdefs.h <<_ACEOF
4712 #define PACKAGE "$PACKAGE"
4713 _ACEOF
4716 cat >>confdefs.h <<_ACEOF
4717 #define VERSION "$VERSION"
4718 _ACEOF
4720 # Some tools Automake needs.
4722 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4725 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4728 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4731 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4734 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4736 # We need awk for the "check" target.  The system "awk" is bad on
4737 # some platforms.
4738 # Always define AMTAR for backward compatibility.
4740 AMTAR=${AMTAR-"${am_missing_run}tar"}
4742 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4747 depcc="$CC"   am_compiler_list=
4749 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4750 $as_echo_n "checking dependency style of $depcc... " >&6; }
4751 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4752   $as_echo_n "(cached) " >&6
4753 else
4754   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4755   # We make a subdir and do the tests there.  Otherwise we can end up
4756   # making bogus files that we don't know about and never remove.  For
4757   # instance it was reported that on HP-UX the gcc test will end up
4758   # making a dummy file named `D' -- because `-MD' means `put the output
4759   # in D'.
4760   mkdir conftest.dir
4761   # Copy depcomp to subdir because otherwise we won't find it if we're
4762   # using a relative directory.
4763   cp "$am_depcomp" conftest.dir
4764   cd conftest.dir
4765   # We will build objects and dependencies in a subdirectory because
4766   # it helps to detect inapplicable dependency modes.  For instance
4767   # both Tru64's cc and ICC support -MD to output dependencies as a
4768   # side effect of compilation, but ICC will put the dependencies in
4769   # the current directory while Tru64 will put them in the object
4770   # directory.
4771   mkdir sub
4773   am_cv_CC_dependencies_compiler_type=none
4774   if test "$am_compiler_list" = ""; then
4775      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4776   fi
4777   am__universal=false
4778   case " $depcc " in #(
4779      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4780      esac
4782   for depmode in $am_compiler_list; do
4783     # Setup a source with many dependencies, because some compilers
4784     # like to wrap large dependency lists on column 80 (with \), and
4785     # we should not choose a depcomp mode which is confused by this.
4786     #
4787     # We need to recreate these files for each test, as the compiler may
4788     # overwrite some of them when testing with obscure command lines.
4789     # This happens at least with the AIX C compiler.
4790     : > sub/conftest.c
4791     for i in 1 2 3 4 5 6; do
4792       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4793       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4794       # Solaris 8's {/usr,}/bin/sh.
4795       touch sub/conftst$i.h
4796     done
4797     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4799     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4800     # mode.  It turns out that the SunPro C++ compiler does not properly
4801     # handle `-M -o', and we need to detect this.  Also, some Intel
4802     # versions had trouble with output in subdirs
4803     am__obj=sub/conftest.${OBJEXT-o}
4804     am__minus_obj="-o $am__obj"
4805     case $depmode in
4806     gcc)
4807       # This depmode causes a compiler race in universal mode.
4808       test "$am__universal" = false || continue
4809       ;;
4810     nosideeffect)
4811       # after this tag, mechanisms are not by side-effect, so they'll
4812       # only be used when explicitly requested
4813       if test "x$enable_dependency_tracking" = xyes; then
4814         continue
4815       else
4816         break
4817       fi
4818       ;;
4819     msvisualcpp | msvcmsys)
4820       # This compiler won't grok `-c -o', but also, the minuso test has
4821       # not run yet.  These depmodes are late enough in the game, and
4822       # so weak that their functioning should not be impacted.
4823       am__obj=conftest.${OBJEXT-o}
4824       am__minus_obj=
4825       ;;
4826     none) break ;;
4827     esac
4828     if depmode=$depmode \
4829        source=sub/conftest.c object=$am__obj \
4830        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4831        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4832          >/dev/null 2>conftest.err &&
4833        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4834        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4835        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4836        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4837       # icc doesn't choke on unknown options, it will just issue warnings
4838       # or remarks (even with -Werror).  So we grep stderr for any message
4839       # that says an option was ignored or not supported.
4840       # When given -MP, icc 7.0 and 7.1 complain thusly:
4841       #   icc: Command line warning: ignoring option '-M'; no argument required
4842       # The diagnosis changed in icc 8.0:
4843       #   icc: Command line remark: option '-MP' not supported
4844       if (grep 'ignoring option' conftest.err ||
4845           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4846         am_cv_CC_dependencies_compiler_type=$depmode
4847         break
4848       fi
4849     fi
4850   done
4852   cd ..
4853   rm -rf conftest.dir
4854 else
4855   am_cv_CC_dependencies_compiler_type=none
4856 fi
4858 fi
4859 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4860 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4861 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4863  if
4864   test "x$enable_dependency_tracking" != xno \
4865   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4866   am__fastdepCC_TRUE=
4867   am__fastdepCC_FALSE='#'
4868 else
4869   am__fastdepCC_TRUE='#'
4870   am__fastdepCC_FALSE=
4871 fi
4876 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4877 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4878     # Check whether --enable-maintainer-mode was given.
4879 if test "${enable_maintainer_mode+set}" = set; then
4880   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4881 else
4882   USE_MAINTAINER_MODE=no
4883 fi
4885   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4886 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4887    if test $USE_MAINTAINER_MODE = yes; then
4888   MAINTAINER_MODE_TRUE=
4889   MAINTAINER_MODE_FALSE='#'
4890 else
4891   MAINTAINER_MODE_TRUE='#'
4892   MAINTAINER_MODE_FALSE=
4893 fi
4895   MAINT=$MAINTAINER_MODE_TRUE
4898 # Check whether --enable-silent-rules was given.
4899 if test "${enable_silent_rules+set}" = set; then
4900   enableval=$enable_silent_rules;
4901 fi
4903 case $enable_silent_rules in
4904 yes) AM_DEFAULT_VERBOSITY=0;;
4905 no)  AM_DEFAULT_VERBOSITY=1;;
4906 *)   AM_DEFAULT_VERBOSITY=0;;
4907 esac
4908 AM_BACKSLASH='\'
4910 ac_config_headers="$ac_config_headers rrd_config.h"
4931 cat >>confdefs.h <<_ACEOF
4932 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
4933 _ACEOF
4936 # Check whether --enable-rrdcgi was given.
4937 if test "${enable_rrdcgi+set}" = set; then
4938   enableval=$enable_rrdcgi;
4939 else
4940   enable_rrdcgi=yes
4941 fi
4945 # Check whether --with-rrd-default-font was given.
4946 if test "${with_rrd_default_font+set}" = set; then
4947   withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
4948 else
4950   if test -d ${WINDIR:-nodir}/cour.ttf ; then
4951         RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
4952   else
4953         RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
4954   fi
4956 fi
4959 # Check whether --enable-mmap was given.
4960 if test "${enable_mmap+set}" = set; then
4961   enableval=$enable_mmap;
4962 else
4963   enable_mmap=yes
4964 fi
4967 # Check whether --enable-pthread was given.
4968 if test "${enable_pthread+set}" = set; then
4969   enableval=$enable_pthread;
4970 else
4971   enable_pthread=yes
4972 fi
4975 # Check whether --enable-static-programs was given.
4976 if test "${enable_static_programs+set}" = set; then
4977   enableval=$enable_static_programs; case "${enableval}" in
4978        yes) staticprogs=yes ;;
4979        no)  staticprogs=no ;;
4980        *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
4981 $as_echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
4982    { (exit 1); exit 1; }; } ;;
4983      esac
4984 else
4985   staticprogs=no
4986 fi
4988  if test "x$staticprogs" = "xyes"; then
4989   STATIC_PROGRAMS_TRUE=
4990   STATIC_PROGRAMS_FALSE='#'
4991 else
4992   STATIC_PROGRAMS_TRUE='#'
4993   STATIC_PROGRAMS_FALSE=
4994 fi
4999 case $TERM in
5000        #   for the most important terminal types we directly know the sequences
5001        xterm|xterm*|vt220|vt220*)
5002                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
5003                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
5004        ;;
5005        vt100|vt100*|cygwin)
5006                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
5007                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
5008        ;;
5009        *)
5010                T_MD=''
5011                T_ME=''
5012        ;;
5013 esac
5014   { $as_echo "$as_me:$LINENO: result: " >&5
5015 $as_echo "" >&6; }
5016   { $as_echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
5017 $as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5027 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5028 # On Suns, sometimes $CPP names a directory.
5029 if test -n "$CPP" && test -d "$CPP"; then
5030   CPP=
5031 fi
5032 if test -z "$CPP"; then
5033   if test "${ac_cv_prog_CPP+set}" = set; then
5034   $as_echo_n "(cached) " >&6
5035 else
5036       # Double quotes because CPP needs to be expanded
5037     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5038     do
5039       ac_preproc_ok=false
5040 for ac_c_preproc_warn_flag in '' yes
5041 do
5042   # Use a header file that comes with gcc, so configuring glibc
5043   # with a fresh cross-compiler works.
5044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045   # <limits.h> exists even on freestanding compilers.
5046   # On the NeXT, cc -E runs the code through the compiler's parser,
5047   # not just through cpp. "Syntax error" is here to catch this case.
5048   cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 #ifdef __STDC__
5055 # include <limits.h>
5056 #else
5057 # include <assert.h>
5058 #endif
5059                      Syntax error
5060 _ACEOF
5061 if { (ac_try="$ac_cpp conftest.$ac_ext"
5062 case "(($ac_try" in
5063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064   *) ac_try_echo=$ac_try;;
5065 esac
5066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5067 $as_echo "$ac_try_echo") >&5
5068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } >/dev/null && {
5075          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5076          test ! -s conftest.err
5077        }; then
5078   :
5079 else
5080   $as_echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083   # Broken: fails on valid input.
5084 continue
5085 fi
5087 rm -f conftest.err conftest.$ac_ext
5089   # OK, works on sane cases.  Now check whether nonexistent headers
5090   # can be detected and how.
5091   cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 #include <ac_nonexistent.h>
5098 _ACEOF
5099 if { (ac_try="$ac_cpp conftest.$ac_ext"
5100 case "(($ac_try" in
5101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102   *) ac_try_echo=$ac_try;;
5103 esac
5104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105 $as_echo "$ac_try_echo") >&5
5106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107   ac_status=$?
5108   grep -v '^ *+' conftest.er1 >conftest.err
5109   rm -f conftest.er1
5110   cat conftest.err >&5
5111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); } >/dev/null && {
5113          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5114          test ! -s conftest.err
5115        }; then
5116   # Broken: success on invalid input.
5117 continue
5118 else
5119   $as_echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122   # Passes both tests.
5123 ac_preproc_ok=:
5124 break
5125 fi
5127 rm -f conftest.err conftest.$ac_ext
5129 done
5130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131 rm -f conftest.err conftest.$ac_ext
5132 if $ac_preproc_ok; then
5133   break
5134 fi
5136     done
5137     ac_cv_prog_CPP=$CPP
5139 fi
5140   CPP=$ac_cv_prog_CPP
5141 else
5142   ac_cv_prog_CPP=$CPP
5143 fi
5144 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5145 $as_echo "$CPP" >&6; }
5146 ac_preproc_ok=false
5147 for ac_c_preproc_warn_flag in '' yes
5148 do
5149   # Use a header file that comes with gcc, so configuring glibc
5150   # with a fresh cross-compiler works.
5151   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152   # <limits.h> exists even on freestanding compilers.
5153   # On the NeXT, cc -E runs the code through the compiler's parser,
5154   # not just through cpp. "Syntax error" is here to catch this case.
5155   cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 #ifdef __STDC__
5162 # include <limits.h>
5163 #else
5164 # include <assert.h>
5165 #endif
5166                      Syntax error
5167 _ACEOF
5168 if { (ac_try="$ac_cpp conftest.$ac_ext"
5169 case "(($ac_try" in
5170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171   *) ac_try_echo=$ac_try;;
5172 esac
5173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5174 $as_echo "$ac_try_echo") >&5
5175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5176   ac_status=$?
5177   grep -v '^ *+' conftest.er1 >conftest.err
5178   rm -f conftest.er1
5179   cat conftest.err >&5
5180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } >/dev/null && {
5182          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5183          test ! -s conftest.err
5184        }; then
5185   :
5186 else
5187   $as_echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190   # Broken: fails on valid input.
5191 continue
5192 fi
5194 rm -f conftest.err conftest.$ac_ext
5196   # OK, works on sane cases.  Now check whether nonexistent headers
5197   # can be detected and how.
5198   cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204 #include <ac_nonexistent.h>
5205 _ACEOF
5206 if { (ac_try="$ac_cpp conftest.$ac_ext"
5207 case "(($ac_try" in
5208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209   *) ac_try_echo=$ac_try;;
5210 esac
5211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5212 $as_echo "$ac_try_echo") >&5
5213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } >/dev/null && {
5220          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5221          test ! -s conftest.err
5222        }; then
5223   # Broken: success on invalid input.
5224 continue
5225 else
5226   $as_echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5229   # Passes both tests.
5230 ac_preproc_ok=:
5231 break
5232 fi
5234 rm -f conftest.err conftest.$ac_ext
5236 done
5237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5238 rm -f conftest.err conftest.$ac_ext
5239 if $ac_preproc_ok; then
5240   :
5241 else
5242   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5244 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5245 See \`config.log' for more details." >&5
5246 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5247 See \`config.log' for more details." >&2;}
5248    { (exit 1); exit 1; }; }; }
5249 fi
5251 ac_ext=c
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257 ac_ext=c
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 if test -n "$ac_tool_prefix"; then
5263   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_CC+set}" = set; then
5268   $as_echo_n "(cached) " >&6
5269 else
5270   if test -n "$CC"; then
5271   ac_cv_prog_CC="$CC" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276   IFS=$as_save_IFS
5277   test -z "$as_dir" && as_dir=.
5278   for ac_exec_ext in '' $ac_executable_extensions; do
5279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5281     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282     break 2
5283   fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5288 fi
5289 fi
5290 CC=$ac_cv_prog_CC
5291 if test -n "$CC"; then
5292   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5293 $as_echo "$CC" >&6; }
5294 else
5295   { $as_echo "$as_me:$LINENO: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5300 fi
5301 if test -z "$ac_cv_prog_CC"; then
5302   ac_ct_CC=$CC
5303   # Extract the first word of "gcc", so it can be a program name with args.
5304 set dummy gcc; ac_word=$2
5305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5308   $as_echo_n "(cached) " >&6
5309 else
5310   if test -n "$ac_ct_CC"; then
5311   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318   for ac_exec_ext in '' $ac_executable_extensions; do
5319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320     ac_cv_prog_ac_ct_CC="gcc"
5321     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325 done
5326 IFS=$as_save_IFS
5328 fi
5329 fi
5330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5331 if test -n "$ac_ct_CC"; then
5332   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5333 $as_echo "$ac_ct_CC" >&6; }
5334 else
5335   { $as_echo "$as_me:$LINENO: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5339   if test "x$ac_ct_CC" = x; then
5340     CC=""
5341   else
5342     case $cross_compiling:$ac_tool_warned in
5343 yes:)
5344 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346 ac_tool_warned=yes ;;
5347 esac
5348     CC=$ac_ct_CC
5349   fi
5350 else
5351   CC="$ac_cv_prog_CC"
5352 fi
5354 if test -z "$CC"; then
5355           if test -n "$ac_tool_prefix"; then
5356     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}cc; ac_word=$2
5358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_prog_CC+set}" = set; then
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -n "$CC"; then
5364   ac_cv_prog_CC="$CC" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371   for ac_exec_ext in '' $ac_executable_extensions; do
5372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373     ac_cv_prog_CC="${ac_tool_prefix}cc"
5374     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5381 fi
5382 fi
5383 CC=$ac_cv_prog_CC
5384 if test -n "$CC"; then
5385   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5386 $as_echo "$CC" >&6; }
5387 else
5388   { $as_echo "$as_me:$LINENO: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5393   fi
5394 fi
5395 if test -z "$CC"; then
5396   # Extract the first word of "cc", so it can be a program name with args.
5397 set dummy cc; ac_word=$2
5398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if test "${ac_cv_prog_CC+set}" = set; then
5401   $as_echo_n "(cached) " >&6
5402 else
5403   if test -n "$CC"; then
5404   ac_cv_prog_CC="$CC" # Let the user override the test.
5405 else
5406   ac_prog_rejected=no
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410   IFS=$as_save_IFS
5411   test -z "$as_dir" && as_dir=.
5412   for ac_exec_ext in '' $ac_executable_extensions; do
5413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5415        ac_prog_rejected=yes
5416        continue
5417      fi
5418     ac_cv_prog_CC="cc"
5419     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5426 if test $ac_prog_rejected = yes; then
5427   # We found a bogon in the path, so make sure we never use it.
5428   set dummy $ac_cv_prog_CC
5429   shift
5430   if test $# != 0; then
5431     # We chose a different compiler from the bogus one.
5432     # However, it has the same basename, so the bogon will be chosen
5433     # first if we set CC to just the basename; use the full file name.
5434     shift
5435     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5436   fi
5437 fi
5438 fi
5439 fi
5440 CC=$ac_cv_prog_CC
5441 if test -n "$CC"; then
5442   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5443 $as_echo "$CC" >&6; }
5444 else
5445   { $as_echo "$as_me:$LINENO: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5450 fi
5451 if test -z "$CC"; then
5452   if test -n "$ac_tool_prefix"; then
5453   for ac_prog in cl.exe
5454   do
5455     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_prog_CC+set}" = set; then
5460   $as_echo_n "(cached) " >&6
5461 else
5462   if test -n "$CC"; then
5463   ac_cv_prog_CC="$CC" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468   IFS=$as_save_IFS
5469   test -z "$as_dir" && as_dir=.
5470   for ac_exec_ext in '' $ac_executable_extensions; do
5471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5473     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474     break 2
5475   fi
5476 done
5477 done
5478 IFS=$as_save_IFS
5480 fi
5481 fi
5482 CC=$ac_cv_prog_CC
5483 if test -n "$CC"; then
5484   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5485 $as_echo "$CC" >&6; }
5486 else
5487   { $as_echo "$as_me:$LINENO: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5492     test -n "$CC" && break
5493   done
5494 fi
5495 if test -z "$CC"; then
5496   ac_ct_CC=$CC
5497   for ac_prog in cl.exe
5498 do
5499   # Extract the first word of "$ac_prog", so it can be a program name with args.
5500 set dummy $ac_prog; ac_word=$2
5501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5504   $as_echo_n "(cached) " >&6
5505 else
5506   if test -n "$ac_ct_CC"; then
5507   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514   for ac_exec_ext in '' $ac_executable_extensions; do
5515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516     ac_cv_prog_ac_ct_CC="$ac_prog"
5517     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518     break 2
5519   fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5524 fi
5525 fi
5526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5527 if test -n "$ac_ct_CC"; then
5528   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5529 $as_echo "$ac_ct_CC" >&6; }
5530 else
5531   { $as_echo "$as_me:$LINENO: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5536   test -n "$ac_ct_CC" && break
5537 done
5539   if test "x$ac_ct_CC" = x; then
5540     CC=""
5541   else
5542     case $cross_compiling:$ac_tool_warned in
5543 yes:)
5544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5547 esac
5548     CC=$ac_ct_CC
5549   fi
5550 fi
5552 fi
5555 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5557 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5558 See \`config.log' for more details." >&5
5559 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5560 See \`config.log' for more details." >&2;}
5561    { (exit 1); exit 1; }; }; }
5563 # Provide some information about the compiler.
5564 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5565 set X $ac_compile
5566 ac_compiler=$2
5567 { (ac_try="$ac_compiler --version >&5"
5568 case "(($ac_try" in
5569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570   *) ac_try_echo=$ac_try;;
5571 esac
5572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573 $as_echo "$ac_try_echo") >&5
5574   (eval "$ac_compiler --version >&5") 2>&5
5575   ac_status=$?
5576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }
5578 { (ac_try="$ac_compiler -v >&5"
5579 case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5584 $as_echo "$ac_try_echo") >&5
5585   (eval "$ac_compiler -v >&5") 2>&5
5586   ac_status=$?
5587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }
5589 { (ac_try="$ac_compiler -V >&5"
5590 case "(($ac_try" in
5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592   *) ac_try_echo=$ac_try;;
5593 esac
5594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595 $as_echo "$ac_try_echo") >&5
5596   (eval "$ac_compiler -V >&5") 2>&5
5597   ac_status=$?
5598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }
5601 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5602 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5604   $as_echo_n "(cached) " >&6
5605 else
5606   cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5613 int
5614 main ()
5616 #ifndef __GNUC__
5617        choke me
5618 #endif
5620   ;
5621   return 0;
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628   *) ac_try_echo=$ac_try;;
5629 esac
5630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631 $as_echo "$ac_try_echo") >&5
5632   (eval "$ac_compile") 2>conftest.er1
5633   ac_status=$?
5634   grep -v '^ *+' conftest.er1 >conftest.err
5635   rm -f conftest.er1
5636   cat conftest.err >&5
5637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } && {
5639          test -z "$ac_c_werror_flag" ||
5640          test ! -s conftest.err
5641        } && test -s conftest.$ac_objext; then
5642   ac_compiler_gnu=yes
5643 else
5644   $as_echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647         ac_compiler_gnu=no
5648 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5653 fi
5654 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5655 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5656 if test $ac_compiler_gnu = yes; then
5657   GCC=yes
5658 else
5659   GCC=
5660 fi
5661 ac_test_CFLAGS=${CFLAGS+set}
5662 ac_save_CFLAGS=$CFLAGS
5663 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5664 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5665 if test "${ac_cv_prog_cc_g+set}" = set; then
5666   $as_echo_n "(cached) " >&6
5667 else
5668   ac_save_c_werror_flag=$ac_c_werror_flag
5669    ac_c_werror_flag=yes
5670    ac_cv_prog_cc_g=no
5671    CFLAGS="-g"
5672    cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h.  */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h.  */
5679 int
5680 main ()
5683   ;
5684   return 0;
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5689 case "(($ac_try" in
5690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691   *) ac_try_echo=$ac_try;;
5692 esac
5693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5694 $as_echo "$ac_try_echo") >&5
5695   (eval "$ac_compile") 2>conftest.er1
5696   ac_status=$?
5697   grep -v '^ *+' conftest.er1 >conftest.err
5698   rm -f conftest.er1
5699   cat conftest.err >&5
5700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } && {
5702          test -z "$ac_c_werror_flag" ||
5703          test ! -s conftest.err
5704        } && test -s conftest.$ac_objext; then
5705   ac_cv_prog_cc_g=yes
5706 else
5707   $as_echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710         CFLAGS=""
5711       cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5718 int
5719 main ()
5722   ;
5723   return 0;
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5728 case "(($ac_try" in
5729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730   *) ac_try_echo=$ac_try;;
5731 esac
5732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5733 $as_echo "$ac_try_echo") >&5
5734   (eval "$ac_compile") 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } && {
5741          test -z "$ac_c_werror_flag" ||
5742          test ! -s conftest.err
5743        } && test -s conftest.$ac_objext; then
5744   :
5745 else
5746   $as_echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5749         ac_c_werror_flag=$ac_save_c_werror_flag
5750          CFLAGS="-g"
5751          cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h.  */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h.  */
5758 int
5759 main ()
5762   ;
5763   return 0;
5765 _ACEOF
5766 rm -f conftest.$ac_objext
5767 if { (ac_try="$ac_compile"
5768 case "(($ac_try" in
5769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770   *) ac_try_echo=$ac_try;;
5771 esac
5772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5773 $as_echo "$ac_try_echo") >&5
5774   (eval "$ac_compile") 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } && {
5781          test -z "$ac_c_werror_flag" ||
5782          test ! -s conftest.err
5783        } && test -s conftest.$ac_objext; then
5784   ac_cv_prog_cc_g=yes
5785 else
5786   $as_echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5790 fi
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 fi
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799    ac_c_werror_flag=$ac_save_c_werror_flag
5800 fi
5801 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5802 $as_echo "$ac_cv_prog_cc_g" >&6; }
5803 if test "$ac_test_CFLAGS" = set; then
5804   CFLAGS=$ac_save_CFLAGS
5805 elif test $ac_cv_prog_cc_g = yes; then
5806   if test "$GCC" = yes; then
5807     CFLAGS="-g -O2"
5808   else
5809     CFLAGS="-g"
5810   fi
5811 else
5812   if test "$GCC" = yes; then
5813     CFLAGS="-O2"
5814   else
5815     CFLAGS=
5816   fi
5817 fi
5818 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5820 if test "${ac_cv_prog_cc_c89+set}" = set; then
5821   $as_echo_n "(cached) " >&6
5822 else
5823   ac_cv_prog_cc_c89=no
5824 ac_save_CC=$CC
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h.  */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h.  */
5831 #include <stdarg.h>
5832 #include <stdio.h>
5833 #include <sys/types.h>
5834 #include <sys/stat.h>
5835 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5836 struct buf { int x; };
5837 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5838 static char *e (p, i)
5839      char **p;
5840      int i;
5842   return p[i];
5844 static char *f (char * (*g) (char **, int), char **p, ...)
5846   char *s;
5847   va_list v;
5848   va_start (v,p);
5849   s = g (p, va_arg (v,int));
5850   va_end (v);
5851   return s;
5854 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5855    function prototypes and stuff, but not '\xHH' hex character constants.
5856    These don't provoke an error unfortunately, instead are silently treated
5857    as 'x'.  The following induces an error, until -std is added to get
5858    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5859    array size at least.  It's necessary to write '\x00'==0 to get something
5860    that's true only with -std.  */
5861 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5863 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5864    inside strings and character constants.  */
5865 #define FOO(x) 'x'
5866 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5868 int test (int i, double x);
5869 struct s1 {int (*f) (int a);};
5870 struct s2 {int (*f) (double a);};
5871 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5872 int argc;
5873 char **argv;
5874 int
5875 main ()
5877 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5878   ;
5879   return 0;
5881 _ACEOF
5882 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5883         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5884 do
5885   CC="$ac_save_CC $ac_arg"
5886   rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5888 case "(($ac_try" in
5889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890   *) ac_try_echo=$ac_try;;
5891 esac
5892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5893 $as_echo "$ac_try_echo") >&5
5894   (eval "$ac_compile") 2>conftest.er1
5895   ac_status=$?
5896   grep -v '^ *+' conftest.er1 >conftest.err
5897   rm -f conftest.er1
5898   cat conftest.err >&5
5899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } && {
5901          test -z "$ac_c_werror_flag" ||
5902          test ! -s conftest.err
5903        } && test -s conftest.$ac_objext; then
5904   ac_cv_prog_cc_c89=$ac_arg
5905 else
5906   $as_echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5910 fi
5912 rm -f core conftest.err conftest.$ac_objext
5913   test "x$ac_cv_prog_cc_c89" != "xno" && break
5914 done
5915 rm -f conftest.$ac_ext
5916 CC=$ac_save_CC
5918 fi
5919 # AC_CACHE_VAL
5920 case "x$ac_cv_prog_cc_c89" in
5921   x)
5922     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5923 $as_echo "none needed" >&6; } ;;
5924   xno)
5925     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5926 $as_echo "unsupported" >&6; } ;;
5927   *)
5928     CC="$CC $ac_cv_prog_cc_c89"
5929     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5930 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5931 esac
5934 ac_ext=c
5935 ac_cpp='$CPP $CPPFLAGS'
5936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940 if test "x$CC" != xcc; then
5941   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5942 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5943 else
5944   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5945 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5946 fi
5947 set dummy $CC; ac_cc=`$as_echo "$2" |
5948                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5949 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5950   $as_echo_n "(cached) " >&6
5951 else
5952   cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h.  */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h.  */
5959 int
5960 main ()
5963   ;
5964   return 0;
5966 _ACEOF
5967 # Make sure it works both with $CC and with simple cc.
5968 # We do the test twice because some compilers refuse to overwrite an
5969 # existing .o file with -o, though they will create one.
5970 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5971 rm -f conftest2.*
5972 if { (case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978   (eval "$ac_try") 2>&5
5979   ac_status=$?
5980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982    test -f conftest2.$ac_objext && { (case "(($ac_try" in
5983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984   *) ac_try_echo=$ac_try;;
5985 esac
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988   (eval "$ac_try") 2>&5
5989   ac_status=$?
5990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); };
5992 then
5993   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5994   if test "x$CC" != xcc; then
5995     # Test first that cc exists at all.
5996     if { ac_try='cc -c conftest.$ac_ext >&5'
5997   { (case "(($ac_try" in
5998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999   *) ac_try_echo=$ac_try;;
6000 esac
6001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6002 $as_echo "$ac_try_echo") >&5
6003   (eval "$ac_try") 2>&5
6004   ac_status=$?
6005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6008       rm -f conftest2.*
6009       if { (case "(($ac_try" in
6010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011   *) ac_try_echo=$ac_try;;
6012 esac
6013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6014 $as_echo "$ac_try_echo") >&5
6015   (eval "$ac_try") 2>&5
6016   ac_status=$?
6017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } &&
6019          test -f conftest2.$ac_objext && { (case "(($ac_try" in
6020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021   *) ac_try_echo=$ac_try;;
6022 esac
6023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6024 $as_echo "$ac_try_echo") >&5
6025   (eval "$ac_try") 2>&5
6026   ac_status=$?
6027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); };
6029       then
6030         # cc works too.
6031         :
6032       else
6033         # cc exists but doesn't like -o.
6034         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6035       fi
6036     fi
6037   fi
6038 else
6039   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6040 fi
6041 rm -f core conftest*
6043 fi
6044 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6045   { $as_echo "$as_me:$LINENO: result: yes" >&5
6046 $as_echo "yes" >&6; }
6047 else
6048   { $as_echo "$as_me:$LINENO: result: no" >&5
6049 $as_echo "no" >&6; }
6051 cat >>confdefs.h <<\_ACEOF
6052 #define NO_MINUS_C_MINUS_O 1
6053 _ACEOF
6055 fi
6057 # FIXME: we rely on the cache variable name because
6058 # there is no other way.
6059 set dummy $CC
6060 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6061 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6062 if test "$am_t" != yes; then
6063    # Losing compiler, so override with the script.
6064    # FIXME: It is wrong to rewrite CC.
6065    # But if we don't then we get into trouble of one sort or another.
6066    # A longer-term fix would be to have automake use am__CC in this case,
6067    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6068    CC="$am_aux_dir/compile $CC"
6069 fi
6072 case `pwd` in
6073   *\ * | *\     *)
6074     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6076 esac
6080 macro_version='2.2.6'
6081 macro_revision='1.3012'
6095 ltmain="$ac_aux_dir/ltmain.sh"
6097 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6098 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6099 if test "${ac_cv_path_SED+set}" = set; then
6100   $as_echo_n "(cached) " >&6
6101 else
6102             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6103      for ac_i in 1 2 3 4 5 6 7; do
6104        ac_script="$ac_script$as_nl$ac_script"
6105      done
6106      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6107      $as_unset ac_script || ac_script=
6108      if test -z "$SED"; then
6109   ac_path_SED_found=false
6110   # Loop through the user's path and test for each of PROGNAME-LIST
6111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116   for ac_prog in sed gsed; do
6117     for ac_exec_ext in '' $ac_executable_extensions; do
6118       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6119       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6120 # Check for GNU ac_path_SED and select it if it is found.
6121   # Check for GNU $ac_path_SED
6122 case `"$ac_path_SED" --version 2>&1` in
6123 *GNU*)
6124   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6125 *)
6126   ac_count=0
6127   $as_echo_n 0123456789 >"conftest.in"
6128   while :
6129   do
6130     cat "conftest.in" "conftest.in" >"conftest.tmp"
6131     mv "conftest.tmp" "conftest.in"
6132     cp "conftest.in" "conftest.nl"
6133     $as_echo '' >> "conftest.nl"
6134     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136     ac_count=`expr $ac_count + 1`
6137     if test $ac_count -gt ${ac_path_SED_max-0}; then
6138       # Best one so far, save it but keep looking for a better one
6139       ac_cv_path_SED="$ac_path_SED"
6140       ac_path_SED_max=$ac_count
6141     fi
6142     # 10*(2^10) chars as input seems more than enough
6143     test $ac_count -gt 10 && break
6144   done
6145   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6146 esac
6148       $ac_path_SED_found && break 3
6149     done
6150   done
6151 done
6152 IFS=$as_save_IFS
6153   if test -z "$ac_cv_path_SED"; then
6154     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6155 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6156    { (exit 1); exit 1; }; }
6157   fi
6158 else
6159   ac_cv_path_SED=$SED
6160 fi
6162 fi
6163 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6164 $as_echo "$ac_cv_path_SED" >&6; }
6165  SED="$ac_cv_path_SED"
6166   rm -f conftest.sed
6168 test -z "$SED" && SED=sed
6169 Xsed="$SED -e 1s/^X//"
6181 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6182 $as_echo_n "checking for fgrep... " >&6; }
6183 if test "${ac_cv_path_FGREP+set}" = set; then
6184   $as_echo_n "(cached) " >&6
6185 else
6186   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6187    then ac_cv_path_FGREP="$GREP -F"
6188    else
6189      if test -z "$FGREP"; then
6190   ac_path_FGREP_found=false
6191   # Loop through the user's path and test for each of PROGNAME-LIST
6192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197   for ac_prog in fgrep; do
6198     for ac_exec_ext in '' $ac_executable_extensions; do
6199       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6200       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6201 # Check for GNU ac_path_FGREP and select it if it is found.
6202   # Check for GNU $ac_path_FGREP
6203 case `"$ac_path_FGREP" --version 2>&1` in
6204 *GNU*)
6205   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6206 *)
6207   ac_count=0
6208   $as_echo_n 0123456789 >"conftest.in"
6209   while :
6210   do
6211     cat "conftest.in" "conftest.in" >"conftest.tmp"
6212     mv "conftest.tmp" "conftest.in"
6213     cp "conftest.in" "conftest.nl"
6214     $as_echo 'FGREP' >> "conftest.nl"
6215     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6216     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6217     ac_count=`expr $ac_count + 1`
6218     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6219       # Best one so far, save it but keep looking for a better one
6220       ac_cv_path_FGREP="$ac_path_FGREP"
6221       ac_path_FGREP_max=$ac_count
6222     fi
6223     # 10*(2^10) chars as input seems more than enough
6224     test $ac_count -gt 10 && break
6225   done
6226   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6227 esac
6229       $ac_path_FGREP_found && break 3
6230     done
6231   done
6232 done
6233 IFS=$as_save_IFS
6234   if test -z "$ac_cv_path_FGREP"; then
6235     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6236 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6237    { (exit 1); exit 1; }; }
6238   fi
6239 else
6240   ac_cv_path_FGREP=$FGREP
6241 fi
6243    fi
6244 fi
6245 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6246 $as_echo "$ac_cv_path_FGREP" >&6; }
6247  FGREP="$ac_cv_path_FGREP"
6250 test -z "$GREP" && GREP=grep
6270 # Check whether --with-gnu-ld was given.
6271 if test "${with_gnu_ld+set}" = set; then
6272   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6273 else
6274   with_gnu_ld=no
6275 fi
6277 ac_prog=ld
6278 if test "$GCC" = yes; then
6279   # Check if gcc -print-prog-name=ld gives a path.
6280   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6281 $as_echo_n "checking for ld used by $CC... " >&6; }
6282   case $host in
6283   *-*-mingw*)
6284     # gcc leaves a trailing carriage return which upsets mingw
6285     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6286   *)
6287     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6288   esac
6289   case $ac_prog in
6290     # Accept absolute paths.
6291     [\\/]* | ?:[\\/]*)
6292       re_direlt='/[^/][^/]*/\.\./'
6293       # Canonicalize the pathname of ld
6294       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6295       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6296         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6297       done
6298       test -z "$LD" && LD="$ac_prog"
6299       ;;
6300   "")
6301     # If it fails, then pretend we aren't using GCC.
6302     ac_prog=ld
6303     ;;
6304   *)
6305     # If it is relative, then search for the first ld in PATH.
6306     with_gnu_ld=unknown
6307     ;;
6308   esac
6309 elif test "$with_gnu_ld" = yes; then
6310   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6311 $as_echo_n "checking for GNU ld... " >&6; }
6312 else
6313   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6314 $as_echo_n "checking for non-GNU ld... " >&6; }
6315 fi
6316 if test "${lt_cv_path_LD+set}" = set; then
6317   $as_echo_n "(cached) " >&6
6318 else
6319   if test -z "$LD"; then
6320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6321   for ac_dir in $PATH; do
6322     IFS="$lt_save_ifs"
6323     test -z "$ac_dir" && ac_dir=.
6324     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6325       lt_cv_path_LD="$ac_dir/$ac_prog"
6326       # Check to see if the program is GNU ld.  I'd rather use --version,
6327       # but apparently some variants of GNU ld only accept -v.
6328       # Break only if it was the GNU/non-GNU ld that we prefer.
6329       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6330       *GNU* | *'with BFD'*)
6331         test "$with_gnu_ld" != no && break
6332         ;;
6333       *)
6334         test "$with_gnu_ld" != yes && break
6335         ;;
6336       esac
6337     fi
6338   done
6339   IFS="$lt_save_ifs"
6340 else
6341   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6342 fi
6343 fi
6345 LD="$lt_cv_path_LD"
6346 if test -n "$LD"; then
6347   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6348 $as_echo "$LD" >&6; }
6349 else
6350   { $as_echo "$as_me:$LINENO: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6354 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6355    { (exit 1); exit 1; }; }
6356 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6357 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6359   $as_echo_n "(cached) " >&6
6360 else
6361   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6362 case `$LD -v 2>&1 </dev/null` in
6363 *GNU* | *'with BFD'*)
6364   lt_cv_prog_gnu_ld=yes
6365   ;;
6366 *)
6367   lt_cv_prog_gnu_ld=no
6368   ;;
6369 esac
6370 fi
6371 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6372 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6373 with_gnu_ld=$lt_cv_prog_gnu_ld
6383 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6384 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6385 if test "${lt_cv_path_NM+set}" = set; then
6386   $as_echo_n "(cached) " >&6
6387 else
6388   if test -n "$NM"; then
6389   # Let the user override the test.
6390   lt_cv_path_NM="$NM"
6391 else
6392   lt_nm_to_check="${ac_tool_prefix}nm"
6393   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6394     lt_nm_to_check="$lt_nm_to_check nm"
6395   fi
6396   for lt_tmp_nm in $lt_nm_to_check; do
6397     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6398     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6399       IFS="$lt_save_ifs"
6400       test -z "$ac_dir" && ac_dir=.
6401       tmp_nm="$ac_dir/$lt_tmp_nm"
6402       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6403         # Check to see if the nm accepts a BSD-compat flag.
6404         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6405         #   nm: unknown option "B" ignored
6406         # Tru64's nm complains that /dev/null is an invalid object file
6407         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6408         */dev/null* | *'Invalid file or object type'*)
6409           lt_cv_path_NM="$tmp_nm -B"
6410           break
6411           ;;
6412         *)
6413           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6414           */dev/null*)
6415             lt_cv_path_NM="$tmp_nm -p"
6416             break
6417             ;;
6418           *)
6419             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6420             continue # so that we can try to find one that supports BSD flags
6421             ;;
6422           esac
6423           ;;
6424         esac
6425       fi
6426     done
6427     IFS="$lt_save_ifs"
6428   done
6429   : ${lt_cv_path_NM=no}
6430 fi
6431 fi
6432 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6433 $as_echo "$lt_cv_path_NM" >&6; }
6434 if test "$lt_cv_path_NM" != "no"; then
6435   NM="$lt_cv_path_NM"
6436 else
6437   # Didn't find any BSD compatible name lister, look for dumpbin.
6438   if test -n "$ac_tool_prefix"; then
6439   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6440   do
6441     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6446   $as_echo_n "(cached) " >&6
6447 else
6448   if test -n "$DUMPBIN"; then
6449   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454   IFS=$as_save_IFS
6455   test -z "$as_dir" && as_dir=.
6456   for ac_exec_ext in '' $ac_executable_extensions; do
6457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6459     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460     break 2
6461   fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6466 fi
6467 fi
6468 DUMPBIN=$ac_cv_prog_DUMPBIN
6469 if test -n "$DUMPBIN"; then
6470   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6471 $as_echo "$DUMPBIN" >&6; }
6472 else
6473   { $as_echo "$as_me:$LINENO: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6478     test -n "$DUMPBIN" && break
6479   done
6480 fi
6481 if test -z "$DUMPBIN"; then
6482   ac_ct_DUMPBIN=$DUMPBIN
6483   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6484 do
6485   # Extract the first word of "$ac_prog", so it can be a program name with args.
6486 set dummy $ac_prog; ac_word=$2
6487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6490   $as_echo_n "(cached) " >&6
6491 else
6492   if test -n "$ac_ct_DUMPBIN"; then
6493   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500   for ac_exec_ext in '' $ac_executable_extensions; do
6501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6503     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6510 fi
6511 fi
6512 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6513 if test -n "$ac_ct_DUMPBIN"; then
6514   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6515 $as_echo "$ac_ct_DUMPBIN" >&6; }
6516 else
6517   { $as_echo "$as_me:$LINENO: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6522   test -n "$ac_ct_DUMPBIN" && break
6523 done
6525   if test "x$ac_ct_DUMPBIN" = x; then
6526     DUMPBIN=":"
6527   else
6528     case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534     DUMPBIN=$ac_ct_DUMPBIN
6535   fi
6536 fi
6539   if test "$DUMPBIN" != ":"; then
6540     NM="$DUMPBIN"
6541   fi
6542 fi
6543 test -z "$NM" && NM=nm
6550 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6551 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6552 if test "${lt_cv_nm_interface+set}" = set; then
6553   $as_echo_n "(cached) " >&6
6554 else
6555   lt_cv_nm_interface="BSD nm"
6556   echo "int some_variable = 0;" > conftest.$ac_ext
6557   (eval echo "\"\$as_me:6557: $ac_compile\"" >&5)
6558   (eval "$ac_compile" 2>conftest.err)
6559   cat conftest.err >&5
6560   (eval echo "\"\$as_me:6560: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6561   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6562   cat conftest.err >&5
6563   (eval echo "\"\$as_me:6563: output\"" >&5)
6564   cat conftest.out >&5
6565   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6566     lt_cv_nm_interface="MS dumpbin"
6567   fi
6568   rm -f conftest*
6569 fi
6570 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6571 $as_echo "$lt_cv_nm_interface" >&6; }
6573 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6574 $as_echo_n "checking whether ln -s works... " >&6; }
6575 LN_S=$as_ln_s
6576 if test "$LN_S" = "ln -s"; then
6577   { $as_echo "$as_me:$LINENO: result: yes" >&5
6578 $as_echo "yes" >&6; }
6579 else
6580   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6581 $as_echo "no, using $LN_S" >&6; }
6582 fi
6584 # find the maximum length of command line arguments
6585 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6586 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6587 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6588   $as_echo_n "(cached) " >&6
6589 else
6590     i=0
6591   teststring="ABCD"
6593   case $build_os in
6594   msdosdjgpp*)
6595     # On DJGPP, this test can blow up pretty badly due to problems in libc
6596     # (any single argument exceeding 2000 bytes causes a buffer overrun
6597     # during glob expansion).  Even if it were fixed, the result of this
6598     # check would be larger than it should be.
6599     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6600     ;;
6602   gnu*)
6603     # Under GNU Hurd, this test is not required because there is
6604     # no limit to the length of command line arguments.
6605     # Libtool will interpret -1 as no limit whatsoever
6606     lt_cv_sys_max_cmd_len=-1;
6607     ;;
6609   cygwin* | mingw* | cegcc*)
6610     # On Win9x/ME, this test blows up -- it succeeds, but takes
6611     # about 5 minutes as the teststring grows exponentially.
6612     # Worse, since 9x/ME are not pre-emptively multitasking,
6613     # you end up with a "frozen" computer, even though with patience
6614     # the test eventually succeeds (with a max line length of 256k).
6615     # Instead, let's just punt: use the minimum linelength reported by
6616     # all of the supported platforms: 8192 (on NT/2K/XP).
6617     lt_cv_sys_max_cmd_len=8192;
6618     ;;
6620   amigaos*)
6621     # On AmigaOS with pdksh, this test takes hours, literally.
6622     # So we just punt and use a minimum line length of 8192.
6623     lt_cv_sys_max_cmd_len=8192;
6624     ;;
6626   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6627     # This has been around since 386BSD, at least.  Likely further.
6628     if test -x /sbin/sysctl; then
6629       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6630     elif test -x /usr/sbin/sysctl; then
6631       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6632     else
6633       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6634     fi
6635     # And add a safety zone
6636     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6637     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6638     ;;
6640   interix*)
6641     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6642     lt_cv_sys_max_cmd_len=196608
6643     ;;
6645   osf*)
6646     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6647     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6648     # nice to cause kernel panics so lets avoid the loop below.
6649     # First set a reasonable default.
6650     lt_cv_sys_max_cmd_len=16384
6651     #
6652     if test -x /sbin/sysconfig; then
6653       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6654         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6655       esac
6656     fi
6657     ;;
6658   sco3.2v5*)
6659     lt_cv_sys_max_cmd_len=102400
6660     ;;
6661   sysv5* | sco5v6* | sysv4.2uw2*)
6662     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6663     if test -n "$kargmax"; then
6664       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6665     else
6666       lt_cv_sys_max_cmd_len=32768
6667     fi
6668     ;;
6669   *)
6670     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6671     if test -n "$lt_cv_sys_max_cmd_len"; then
6672       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6673       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6674     else
6675       # Make teststring a little bigger before we do anything with it.
6676       # a 1K string should be a reasonable start.
6677       for i in 1 2 3 4 5 6 7 8 ; do
6678         teststring=$teststring$teststring
6679       done
6680       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6681       # If test is not a shell built-in, we'll probably end up computing a
6682       # maximum length that is only half of the actual maximum length, but
6683       # we can't tell.
6684       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6685                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6686               test $i != 17 # 1/2 MB should be enough
6687       do
6688         i=`expr $i + 1`
6689         teststring=$teststring$teststring
6690       done
6691       # Only check the string length outside the loop.
6692       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6693       teststring=
6694       # Add a significant safety factor because C++ compilers can tack on
6695       # massive amounts of additional arguments before passing them to the
6696       # linker.  It appears as though 1/2 is a usable value.
6697       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6698     fi
6699     ;;
6700   esac
6702 fi
6704 if test -n $lt_cv_sys_max_cmd_len ; then
6705   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6706 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6707 else
6708   { $as_echo "$as_me:$LINENO: result: none" >&5
6709 $as_echo "none" >&6; }
6710 fi
6711 max_cmd_len=$lt_cv_sys_max_cmd_len
6718 : ${CP="cp -f"}
6719 : ${MV="mv -f"}
6720 : ${RM="rm -f"}
6722 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6723 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6724 # Try some XSI features
6725 xsi_shell=no
6726 ( _lt_dummy="a/b/c"
6727   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6728       = c,a/b,, \
6729     && eval 'test $(( 1 + 1 )) -eq 2 \
6730     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6731   && xsi_shell=yes
6732 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6733 $as_echo "$xsi_shell" >&6; }
6736 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6737 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6738 lt_shell_append=no
6739 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6740     >/dev/null 2>&1 \
6741   && lt_shell_append=yes
6742 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6743 $as_echo "$lt_shell_append" >&6; }
6746 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6747   lt_unset=unset
6748 else
6749   lt_unset=false
6750 fi
6756 # test EBCDIC or ASCII
6757 case `echo X|tr X '\101'` in
6758  A) # ASCII based system
6759     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6760   lt_SP2NL='tr \040 \012'
6761   lt_NL2SP='tr \015\012 \040\040'
6762   ;;
6763  *) # EBCDIC based system
6764   lt_SP2NL='tr \100 \n'
6765   lt_NL2SP='tr \r\n \100\100'
6766   ;;
6767 esac
6777 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6778 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6779 if test "${lt_cv_ld_reload_flag+set}" = set; then
6780   $as_echo_n "(cached) " >&6
6781 else
6782   lt_cv_ld_reload_flag='-r'
6783 fi
6784 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6785 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6786 reload_flag=$lt_cv_ld_reload_flag
6787 case $reload_flag in
6788 "" | " "*) ;;
6789 *) reload_flag=" $reload_flag" ;;
6790 esac
6791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6792 case $host_os in
6793   darwin*)
6794     if test "$GCC" = yes; then
6795       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6796     else
6797       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6798     fi
6799     ;;
6800 esac
6810 if test -n "$ac_tool_prefix"; then
6811   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6816   $as_echo_n "(cached) " >&6
6817 else
6818   if test -n "$OBJDUMP"; then
6819   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826   for ac_exec_ext in '' $ac_executable_extensions; do
6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6829     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6836 fi
6837 fi
6838 OBJDUMP=$ac_cv_prog_OBJDUMP
6839 if test -n "$OBJDUMP"; then
6840   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6841 $as_echo "$OBJDUMP" >&6; }
6842 else
6843   { $as_echo "$as_me:$LINENO: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6848 fi
6849 if test -z "$ac_cv_prog_OBJDUMP"; then
6850   ac_ct_OBJDUMP=$OBJDUMP
6851   # Extract the first word of "objdump", so it can be a program name with args.
6852 set dummy objdump; ac_word=$2
6853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6856   $as_echo_n "(cached) " >&6
6857 else
6858   if test -n "$ac_ct_OBJDUMP"; then
6859   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866   for ac_exec_ext in '' $ac_executable_extensions; do
6867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6869     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6876 fi
6877 fi
6878 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6879 if test -n "$ac_ct_OBJDUMP"; then
6880   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6881 $as_echo "$ac_ct_OBJDUMP" >&6; }
6882 else
6883   { $as_echo "$as_me:$LINENO: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6887   if test "x$ac_ct_OBJDUMP" = x; then
6888     OBJDUMP="false"
6889   else
6890     case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896     OBJDUMP=$ac_ct_OBJDUMP
6897   fi
6898 else
6899   OBJDUMP="$ac_cv_prog_OBJDUMP"
6900 fi
6902 test -z "$OBJDUMP" && OBJDUMP=objdump
6912 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6913 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6914 if test "${lt_cv_deplibs_check_method+set}" = set; then
6915   $as_echo_n "(cached) " >&6
6916 else
6917   lt_cv_file_magic_cmd='$MAGIC_CMD'
6918 lt_cv_file_magic_test_file=
6919 lt_cv_deplibs_check_method='unknown'
6920 # Need to set the preceding variable on all platforms that support
6921 # interlibrary dependencies.
6922 # 'none' -- dependencies not supported.
6923 # `unknown' -- same as none, but documents that we really don't know.
6924 # 'pass_all' -- all dependencies passed with no checks.
6925 # 'test_compile' -- check by making test program.
6926 # 'file_magic [[regex]]' -- check by looking for files in library path
6927 # which responds to the $file_magic_cmd with a given extended regex.
6928 # If you have `file' or equivalent on your system and you're not sure
6929 # whether `pass_all' will *always* work, you probably want this one.
6931 case $host_os in
6932 aix[4-9]*)
6933   lt_cv_deplibs_check_method=pass_all
6934   ;;
6936 beos*)
6937   lt_cv_deplibs_check_method=pass_all
6938   ;;
6940 bsdi[45]*)
6941   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6942   lt_cv_file_magic_cmd='/usr/bin/file -L'
6943   lt_cv_file_magic_test_file=/shlib/libc.so
6944   ;;
6946 cygwin*)
6947   # func_win32_libid is a shell function defined in ltmain.sh
6948   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6949   lt_cv_file_magic_cmd='func_win32_libid'
6950   ;;
6952 mingw* | pw32*)
6953   # Base MSYS/MinGW do not provide the 'file' command needed by
6954   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6955   # unless we find 'file', for example because we are cross-compiling.
6956   if ( file / ) >/dev/null 2>&1; then
6957     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6958     lt_cv_file_magic_cmd='func_win32_libid'
6959   else
6960     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6961     lt_cv_file_magic_cmd='$OBJDUMP -f'
6962   fi
6963   ;;
6965 cegcc)
6966   # use the weaker test based on 'objdump'. See mingw*.
6967   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6968   lt_cv_file_magic_cmd='$OBJDUMP -f'
6969   ;;
6971 darwin* | rhapsody*)
6972   lt_cv_deplibs_check_method=pass_all
6973   ;;
6975 freebsd* | dragonfly*)
6976   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6977     case $host_cpu in
6978     i*86 )
6979       # Not sure whether the presence of OpenBSD here was a mistake.
6980       # Let's accept both of them until this is cleared up.
6981       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6982       lt_cv_file_magic_cmd=/usr/bin/file
6983       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6984       ;;
6985     esac
6986   else
6987     lt_cv_deplibs_check_method=pass_all
6988   fi
6989   ;;
6991 gnu*)
6992   lt_cv_deplibs_check_method=pass_all
6993   ;;
6995 hpux10.20* | hpux11*)
6996   lt_cv_file_magic_cmd=/usr/bin/file
6997   case $host_cpu in
6998   ia64*)
6999     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7000     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7001     ;;
7002   hppa*64*)
7003     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]'
7004     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7005     ;;
7006   *)
7007     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7008     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7009     ;;
7010   esac
7011   ;;
7013 interix[3-9]*)
7014   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7015   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7016   ;;
7018 irix5* | irix6* | nonstopux*)
7019   case $LD in
7020   *-32|*"-32 ") libmagic=32-bit;;
7021   *-n32|*"-n32 ") libmagic=N32;;
7022   *-64|*"-64 ") libmagic=64-bit;;
7023   *) libmagic=never-match;;
7024   esac
7025   lt_cv_deplibs_check_method=pass_all
7026   ;;
7028 # This must be Linux ELF.
7029 linux* | k*bsd*-gnu)
7030   lt_cv_deplibs_check_method=pass_all
7031   ;;
7033 netbsd*)
7034   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7035     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7036   else
7037     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7038   fi
7039   ;;
7041 newos6*)
7042   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7043   lt_cv_file_magic_cmd=/usr/bin/file
7044   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7045   ;;
7047 *nto* | *qnx*)
7048   lt_cv_deplibs_check_method=pass_all
7049   ;;
7051 openbsd*)
7052   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7053     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7054   else
7055     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7056   fi
7057   ;;
7059 osf3* | osf4* | osf5*)
7060   lt_cv_deplibs_check_method=pass_all
7061   ;;
7063 rdos*)
7064   lt_cv_deplibs_check_method=pass_all
7065   ;;
7067 solaris*)
7068   lt_cv_deplibs_check_method=pass_all
7069   ;;
7071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7072   lt_cv_deplibs_check_method=pass_all
7073   ;;
7075 sysv4 | sysv4.3*)
7076   case $host_vendor in
7077   motorola)
7078     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]'
7079     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7080     ;;
7081   ncr)
7082     lt_cv_deplibs_check_method=pass_all
7083     ;;
7084   sequent)
7085     lt_cv_file_magic_cmd='/bin/file'
7086     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7087     ;;
7088   sni)
7089     lt_cv_file_magic_cmd='/bin/file'
7090     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7091     lt_cv_file_magic_test_file=/lib/libc.so
7092     ;;
7093   siemens)
7094     lt_cv_deplibs_check_method=pass_all
7095     ;;
7096   pc)
7097     lt_cv_deplibs_check_method=pass_all
7098     ;;
7099   esac
7100   ;;
7102 tpf*)
7103   lt_cv_deplibs_check_method=pass_all
7104   ;;
7105 esac
7107 fi
7108 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7109 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7110 file_magic_cmd=$lt_cv_file_magic_cmd
7111 deplibs_check_method=$lt_cv_deplibs_check_method
7112 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7125 if test -n "$ac_tool_prefix"; then
7126   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}ar; ac_word=$2
7128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_AR+set}" = set; then
7131   $as_echo_n "(cached) " >&6
7132 else
7133   if test -n "$AR"; then
7134   ac_cv_prog_AR="$AR" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141   for ac_exec_ext in '' $ac_executable_extensions; do
7142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143     ac_cv_prog_AR="${ac_tool_prefix}ar"
7144     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7151 fi
7152 fi
7153 AR=$ac_cv_prog_AR
7154 if test -n "$AR"; then
7155   { $as_echo "$as_me:$LINENO: result: $AR" >&5
7156 $as_echo "$AR" >&6; }
7157 else
7158   { $as_echo "$as_me:$LINENO: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7163 fi
7164 if test -z "$ac_cv_prog_AR"; then
7165   ac_ct_AR=$AR
7166   # Extract the first word of "ar", so it can be a program name with args.
7167 set dummy ar; ac_word=$2
7168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$ac_ct_AR"; then
7174   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181   for ac_exec_ext in '' $ac_executable_extensions; do
7182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183     ac_cv_prog_ac_ct_AR="ar"
7184     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7191 fi
7192 fi
7193 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7194 if test -n "$ac_ct_AR"; then
7195   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7196 $as_echo "$ac_ct_AR" >&6; }
7197 else
7198   { $as_echo "$as_me:$LINENO: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7202   if test "x$ac_ct_AR" = x; then
7203     AR="false"
7204   else
7205     case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211     AR=$ac_ct_AR
7212   fi
7213 else
7214   AR="$ac_cv_prog_AR"
7215 fi
7217 test -z "$AR" && AR=ar
7218 test -z "$AR_FLAGS" && AR_FLAGS=cru
7230 if test -n "$ac_tool_prefix"; then
7231   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}strip; ac_word=$2
7233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_STRIP+set}" = set; then
7236   $as_echo_n "(cached) " >&6
7237 else
7238   if test -n "$STRIP"; then
7239   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246   for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7249     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7256 fi
7257 fi
7258 STRIP=$ac_cv_prog_STRIP
7259 if test -n "$STRIP"; then
7260   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7261 $as_echo "$STRIP" >&6; }
7262 else
7263   { $as_echo "$as_me:$LINENO: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7268 fi
7269 if test -z "$ac_cv_prog_STRIP"; then
7270   ac_ct_STRIP=$STRIP
7271   # Extract the first word of "strip", so it can be a program name with args.
7272 set dummy strip; ac_word=$2
7273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7276   $as_echo_n "(cached) " >&6
7277 else
7278   if test -n "$ac_ct_STRIP"; then
7279   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284   IFS=$as_save_IFS
7285   test -z "$as_dir" && as_dir=.
7286   for ac_exec_ext in '' $ac_executable_extensions; do
7287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288     ac_cv_prog_ac_ct_STRIP="strip"
7289     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7296 fi
7297 fi
7298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7299 if test -n "$ac_ct_STRIP"; then
7300   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7301 $as_echo "$ac_ct_STRIP" >&6; }
7302 else
7303   { $as_echo "$as_me:$LINENO: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7307   if test "x$ac_ct_STRIP" = x; then
7308     STRIP=":"
7309   else
7310     case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7315 esac
7316     STRIP=$ac_ct_STRIP
7317   fi
7318 else
7319   STRIP="$ac_cv_prog_STRIP"
7320 fi
7322 test -z "$STRIP" && STRIP=:
7329 if test -n "$ac_tool_prefix"; then
7330   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if test "${ac_cv_prog_RANLIB+set}" = set; then
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$RANLIB"; then
7338   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345   for ac_exec_ext in '' $ac_executable_extensions; do
7346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7348     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352 done
7353 IFS=$as_save_IFS
7355 fi
7356 fi
7357 RANLIB=$ac_cv_prog_RANLIB
7358 if test -n "$RANLIB"; then
7359   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7360 $as_echo "$RANLIB" >&6; }
7361 else
7362   { $as_echo "$as_me:$LINENO: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7367 fi
7368 if test -z "$ac_cv_prog_RANLIB"; then
7369   ac_ct_RANLIB=$RANLIB
7370   # Extract the first word of "ranlib", so it can be a program name with args.
7371 set dummy ranlib; ac_word=$2
7372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7375   $as_echo_n "(cached) " >&6
7376 else
7377   if test -n "$ac_ct_RANLIB"; then
7378   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385   for ac_exec_ext in '' $ac_executable_extensions; do
7386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387     ac_cv_prog_ac_ct_RANLIB="ranlib"
7388     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390   fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7395 fi
7396 fi
7397 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7398 if test -n "$ac_ct_RANLIB"; then
7399   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7400 $as_echo "$ac_ct_RANLIB" >&6; }
7401 else
7402   { $as_echo "$as_me:$LINENO: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7406   if test "x$ac_ct_RANLIB" = x; then
7407     RANLIB=":"
7408   else
7409     case $cross_compiling:$ac_tool_warned in
7410 yes:)
7411 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413 ac_tool_warned=yes ;;
7414 esac
7415     RANLIB=$ac_ct_RANLIB
7416   fi
7417 else
7418   RANLIB="$ac_cv_prog_RANLIB"
7419 fi
7421 test -z "$RANLIB" && RANLIB=:
7428 # Determine commands to create old-style static archives.
7429 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7430 old_postinstall_cmds='chmod 644 $oldlib'
7431 old_postuninstall_cmds=
7433 if test -n "$RANLIB"; then
7434   case $host_os in
7435   openbsd*)
7436     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7437     ;;
7438   *)
7439     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7440     ;;
7441   esac
7442   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7443 fi
7478 # If no C compiler was specified, use CC.
7479 LTCC=${LTCC-"$CC"}
7481 # If no C compiler flags were specified, use CFLAGS.
7482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7484 # Allow CC to be a program name with arguments.
7485 compiler=$CC
7488 # Check for command to grab the raw symbol name followed by C symbol from nm.
7489 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7490 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7491 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7492   $as_echo_n "(cached) " >&6
7493 else
7495 # These are sane defaults that work on at least a few old systems.
7496 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7498 # Character class describing NM global symbol codes.
7499 symcode='[BCDEGRST]'
7501 # Regexp to match symbols that can be accessed directly from C.
7502 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7504 # Define system-specific variables.
7505 case $host_os in
7506 aix*)
7507   symcode='[BCDT]'
7508   ;;
7509 cygwin* | mingw* | pw32* | cegcc*)
7510   symcode='[ABCDGISTW]'
7511   ;;
7512 hpux*)
7513   if test "$host_cpu" = ia64; then
7514     symcode='[ABCDEGRST]'
7515   fi
7516   ;;
7517 irix* | nonstopux*)
7518   symcode='[BCDEGRST]'
7519   ;;
7520 osf*)
7521   symcode='[BCDEGQRST]'
7522   ;;
7523 solaris*)
7524   symcode='[BDRT]'
7525   ;;
7526 sco3.2v5*)
7527   symcode='[DT]'
7528   ;;
7529 sysv4.2uw2*)
7530   symcode='[DT]'
7531   ;;
7532 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7533   symcode='[ABDT]'
7534   ;;
7535 sysv4)
7536   symcode='[DFNSTU]'
7537   ;;
7538 esac
7540 # If we're using GNU nm, then use its standard symbol codes.
7541 case `$NM -V 2>&1` in
7542 *GNU* | *'with BFD'*)
7543   symcode='[ABCDGIRSTW]' ;;
7544 esac
7546 # Transform an extracted symbol line into a proper C declaration.
7547 # Some systems (esp. on ia64) link data and code symbols differently,
7548 # so use this general approach.
7549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7551 # Transform an extracted symbol line into symbol name and symbol address
7552 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7553 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'"
7555 # Handle CRLF in mingw tool chain
7556 opt_cr=
7557 case $build_os in
7558 mingw*)
7559   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7560   ;;
7561 esac
7563 # Try without a prefix underscore, then with it.
7564 for ac_symprfx in "" "_"; do
7566   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7567   symxfrm="\\1 $ac_symprfx\\2 \\2"
7569   # Write the raw and C identifiers.
7570   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7571     # Fake it for dumpbin and say T for any non-static function
7572     # and D for any global variable.
7573     # Also find C++ and __fastcall symbols from MSVC++,
7574     # which start with @ or ?.
7575     lt_cv_sys_global_symbol_pipe="$AWK '"\
7576 "     {last_section=section; section=\$ 3};"\
7577 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7578 "     \$ 0!~/External *\|/{next};"\
7579 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7580 "     {if(hide[section]) next};"\
7581 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7582 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7583 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7584 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7585 "     ' prfx=^$ac_symprfx"
7586   else
7587     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7588   fi
7590   # Check to see that the pipe works correctly.
7591   pipe_works=no
7593   rm -f conftest*
7594   cat > conftest.$ac_ext <<_LT_EOF
7595 #ifdef __cplusplus
7596 extern "C" {
7597 #endif
7598 char nm_test_var;
7599 void nm_test_func(void);
7600 void nm_test_func(void){}
7601 #ifdef __cplusplus
7603 #endif
7604 int main(){nm_test_var='a';nm_test_func();return(0);}
7605 _LT_EOF
7607   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608   (eval $ac_compile) 2>&5
7609   ac_status=$?
7610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); }; then
7612     # Now try to grab the symbols.
7613     nlist=conftest.nm
7614     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7615   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7616   ac_status=$?
7617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); } && test -s "$nlist"; then
7619       # Try sorting and uniquifying the output.
7620       if sort "$nlist" | uniq > "$nlist"T; then
7621         mv -f "$nlist"T "$nlist"
7622       else
7623         rm -f "$nlist"T
7624       fi
7626       # Make sure that we snagged all the symbols we need.
7627       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7628         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7629           cat <<_LT_EOF > conftest.$ac_ext
7630 #ifdef __cplusplus
7631 extern "C" {
7632 #endif
7634 _LT_EOF
7635           # Now generate the symbol file.
7636           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7638           cat <<_LT_EOF >> conftest.$ac_ext
7640 /* The mapping between symbol names and symbols.  */
7641 const struct {
7642   const char *name;
7643   void       *address;
7645 lt__PROGRAM__LTX_preloaded_symbols[] =
7647   { "@PROGRAM@", (void *) 0 },
7648 _LT_EOF
7649           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7650           cat <<\_LT_EOF >> conftest.$ac_ext
7651   {0, (void *) 0}
7652 };
7654 /* This works around a problem in FreeBSD linker */
7655 #ifdef FREEBSD_WORKAROUND
7656 static const void *lt_preloaded_setup() {
7657   return lt__PROGRAM__LTX_preloaded_symbols;
7659 #endif
7661 #ifdef __cplusplus
7663 #endif
7664 _LT_EOF
7665           # Now try linking the two files.
7666           mv conftest.$ac_objext conftstm.$ac_objext
7667           lt_save_LIBS="$LIBS"
7668           lt_save_CFLAGS="$CFLAGS"
7669           LIBS="conftstm.$ac_objext"
7670           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7671           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7672   (eval $ac_link) 2>&5
7673   ac_status=$?
7674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7676             pipe_works=yes
7677           fi
7678           LIBS="$lt_save_LIBS"
7679           CFLAGS="$lt_save_CFLAGS"
7680         else
7681           echo "cannot find nm_test_func in $nlist" >&5
7682         fi
7683       else
7684         echo "cannot find nm_test_var in $nlist" >&5
7685       fi
7686     else
7687       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7688     fi
7689   else
7690     echo "$progname: failed program was:" >&5
7691     cat conftest.$ac_ext >&5
7692   fi
7693   rm -rf conftest* conftst*
7695   # Do not use the global_symbol_pipe unless it works.
7696   if test "$pipe_works" = yes; then
7697     break
7698   else
7699     lt_cv_sys_global_symbol_pipe=
7700   fi
7701 done
7703 fi
7705 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7706   lt_cv_sys_global_symbol_to_cdecl=
7707 fi
7708 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7709   { $as_echo "$as_me:$LINENO: result: failed" >&5
7710 $as_echo "failed" >&6; }
7711 else
7712   { $as_echo "$as_me:$LINENO: result: ok" >&5
7713 $as_echo "ok" >&6; }
7714 fi
7737 # Check whether --enable-libtool-lock was given.
7738 if test "${enable_libtool_lock+set}" = set; then
7739   enableval=$enable_libtool_lock;
7740 fi
7742 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7744 # Some flags need to be propagated to the compiler or linker for good
7745 # libtool support.
7746 case $host in
7747 ia64-*-hpux*)
7748   # Find out which ABI we are using.
7749   echo 'int i;' > conftest.$ac_ext
7750   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7751   (eval $ac_compile) 2>&5
7752   ac_status=$?
7753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; then
7755     case `/usr/bin/file conftest.$ac_objext` in
7756       *ELF-32*)
7757         HPUX_IA64_MODE="32"
7758         ;;
7759       *ELF-64*)
7760         HPUX_IA64_MODE="64"
7761         ;;
7762     esac
7763   fi
7764   rm -rf conftest*
7765   ;;
7766 *-*-irix6*)
7767   # Find out which ABI we are using.
7768   echo '#line 7768 "configure"' > conftest.$ac_ext
7769   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770   (eval $ac_compile) 2>&5
7771   ac_status=$?
7772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773   (exit $ac_status); }; then
7774     if test "$lt_cv_prog_gnu_ld" = yes; then
7775       case `/usr/bin/file conftest.$ac_objext` in
7776         *32-bit*)
7777           LD="${LD-ld} -melf32bsmip"
7778           ;;
7779         *N32*)
7780           LD="${LD-ld} -melf32bmipn32"
7781           ;;
7782         *64-bit*)
7783           LD="${LD-ld} -melf64bmip"
7784         ;;
7785       esac
7786     else
7787       case `/usr/bin/file conftest.$ac_objext` in
7788         *32-bit*)
7789           LD="${LD-ld} -32"
7790           ;;
7791         *N32*)
7792           LD="${LD-ld} -n32"
7793           ;;
7794         *64-bit*)
7795           LD="${LD-ld} -64"
7796           ;;
7797       esac
7798     fi
7799   fi
7800   rm -rf conftest*
7801   ;;
7803 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7804 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7805   # Find out which ABI we are using.
7806   echo 'int i;' > conftest.$ac_ext
7807   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7808   (eval $ac_compile) 2>&5
7809   ac_status=$?
7810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); }; then
7812     case `/usr/bin/file conftest.o` in
7813       *32-bit*)
7814         case $host in
7815           x86_64-*kfreebsd*-gnu)
7816             LD="${LD-ld} -m elf_i386_fbsd"
7817             ;;
7818           x86_64-*linux*)
7819             LD="${LD-ld} -m elf_i386"
7820             ;;
7821           ppc64-*linux*|powerpc64-*linux*)
7822             LD="${LD-ld} -m elf32ppclinux"
7823             ;;
7824           s390x-*linux*)
7825             LD="${LD-ld} -m elf_s390"
7826             ;;
7827           sparc64-*linux*)
7828             LD="${LD-ld} -m elf32_sparc"
7829             ;;
7830         esac
7831         ;;
7832       *64-bit*)
7833         case $host in
7834           x86_64-*kfreebsd*-gnu)
7835             LD="${LD-ld} -m elf_x86_64_fbsd"
7836             ;;
7837           x86_64-*linux*)
7838             LD="${LD-ld} -m elf_x86_64"
7839             ;;
7840           ppc*-*linux*|powerpc*-*linux*)
7841             LD="${LD-ld} -m elf64ppc"
7842             ;;
7843           s390*-*linux*|s390*-*tpf*)
7844             LD="${LD-ld} -m elf64_s390"
7845             ;;
7846           sparc*-*linux*)
7847             LD="${LD-ld} -m elf64_sparc"
7848             ;;
7849         esac
7850         ;;
7851     esac
7852   fi
7853   rm -rf conftest*
7854   ;;
7856 *-*-sco3.2v5*)
7857   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7858   SAVE_CFLAGS="$CFLAGS"
7859   CFLAGS="$CFLAGS -belf"
7860   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7861 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7862 if test "${lt_cv_cc_needs_belf+set}" = set; then
7863   $as_echo_n "(cached) " >&6
7864 else
7865   ac_ext=c
7866 ac_cpp='$CPP $CPPFLAGS'
7867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871      cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7878 int
7879 main ()
7882   ;
7883   return 0;
7885 _ACEOF
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (ac_try="$ac_link"
7888 case "(($ac_try" in
7889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890   *) ac_try_echo=$ac_try;;
7891 esac
7892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7893 $as_echo "$ac_try_echo") >&5
7894   (eval "$ac_link") 2>conftest.er1
7895   ac_status=$?
7896   grep -v '^ *+' conftest.er1 >conftest.err
7897   rm -f conftest.er1
7898   cat conftest.err >&5
7899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } && {
7901          test -z "$ac_c_werror_flag" ||
7902          test ! -s conftest.err
7903        } && test -s conftest$ac_exeext && {
7904          test "$cross_compiling" = yes ||
7905          $as_test_x conftest$ac_exeext
7906        }; then
7907   lt_cv_cc_needs_belf=yes
7908 else
7909   $as_echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7912         lt_cv_cc_needs_belf=no
7913 fi
7915 rm -rf conftest.dSYM
7916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7917       conftest$ac_exeext conftest.$ac_ext
7918      ac_ext=c
7919 ac_cpp='$CPP $CPPFLAGS'
7920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924 fi
7925 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7926 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7927   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7928     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7929     CFLAGS="$SAVE_CFLAGS"
7930   fi
7931   ;;
7932 sparc*-*solaris*)
7933   # Find out which ABI we are using.
7934   echo 'int i;' > conftest.$ac_ext
7935   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7936   (eval $ac_compile) 2>&5
7937   ac_status=$?
7938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; then
7940     case `/usr/bin/file conftest.o` in
7941     *64-bit*)
7942       case $lt_cv_prog_gnu_ld in
7943       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7944       *)
7945         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7946           LD="${LD-ld} -64"
7947         fi
7948         ;;
7949       esac
7950       ;;
7951     esac
7952   fi
7953   rm -rf conftest*
7954   ;;
7955 esac
7957 need_locks="$enable_libtool_lock"
7960   case $host_os in
7961     rhapsody* | darwin*)
7962     if test -n "$ac_tool_prefix"; then
7963   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7964 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7965 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7968   $as_echo_n "(cached) " >&6
7969 else
7970   if test -n "$DSYMUTIL"; then
7971   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976   IFS=$as_save_IFS
7977   test -z "$as_dir" && as_dir=.
7978   for ac_exec_ext in '' $ac_executable_extensions; do
7979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7980     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7981     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982     break 2
7983   fi
7984 done
7985 done
7986 IFS=$as_save_IFS
7988 fi
7989 fi
7990 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7991 if test -n "$DSYMUTIL"; then
7992   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7993 $as_echo "$DSYMUTIL" >&6; }
7994 else
7995   { $as_echo "$as_me:$LINENO: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
8000 fi
8001 if test -z "$ac_cv_prog_DSYMUTIL"; then
8002   ac_ct_DSYMUTIL=$DSYMUTIL
8003   # Extract the first word of "dsymutil", so it can be a program name with args.
8004 set dummy dsymutil; ac_word=$2
8005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8008   $as_echo_n "(cached) " >&6
8009 else
8010   if test -n "$ac_ct_DSYMUTIL"; then
8011   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016   IFS=$as_save_IFS
8017   test -z "$as_dir" && as_dir=.
8018   for ac_exec_ext in '' $ac_executable_extensions; do
8019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8021     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022     break 2
8023   fi
8024 done
8025 done
8026 IFS=$as_save_IFS
8028 fi
8029 fi
8030 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8031 if test -n "$ac_ct_DSYMUTIL"; then
8032   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8033 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8034 else
8035   { $as_echo "$as_me:$LINENO: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8039   if test "x$ac_ct_DSYMUTIL" = x; then
8040     DSYMUTIL=":"
8041   else
8042     case $cross_compiling:$ac_tool_warned in
8043 yes:)
8044 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8046 ac_tool_warned=yes ;;
8047 esac
8048     DSYMUTIL=$ac_ct_DSYMUTIL
8049   fi
8050 else
8051   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8052 fi
8054     if test -n "$ac_tool_prefix"; then
8055   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8056 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8060   $as_echo_n "(cached) " >&6
8061 else
8062   if test -n "$NMEDIT"; then
8063   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068   IFS=$as_save_IFS
8069   test -z "$as_dir" && as_dir=.
8070   for ac_exec_ext in '' $ac_executable_extensions; do
8071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8072     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8073     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8074     break 2
8075   fi
8076 done
8077 done
8078 IFS=$as_save_IFS
8080 fi
8081 fi
8082 NMEDIT=$ac_cv_prog_NMEDIT
8083 if test -n "$NMEDIT"; then
8084   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8085 $as_echo "$NMEDIT" >&6; }
8086 else
8087   { $as_echo "$as_me:$LINENO: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8092 fi
8093 if test -z "$ac_cv_prog_NMEDIT"; then
8094   ac_ct_NMEDIT=$NMEDIT
8095   # Extract the first word of "nmedit", so it can be a program name with args.
8096 set dummy nmedit; ac_word=$2
8097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 $as_echo_n "checking for $ac_word... " >&6; }
8099 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8100   $as_echo_n "(cached) " >&6
8101 else
8102   if test -n "$ac_ct_NMEDIT"; then
8103   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8107 do
8108   IFS=$as_save_IFS
8109   test -z "$as_dir" && as_dir=.
8110   for ac_exec_ext in '' $ac_executable_extensions; do
8111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8112     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8113     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114     break 2
8115   fi
8116 done
8117 done
8118 IFS=$as_save_IFS
8120 fi
8121 fi
8122 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8123 if test -n "$ac_ct_NMEDIT"; then
8124   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8125 $as_echo "$ac_ct_NMEDIT" >&6; }
8126 else
8127   { $as_echo "$as_me:$LINENO: result: no" >&5
8128 $as_echo "no" >&6; }
8129 fi
8131   if test "x$ac_ct_NMEDIT" = x; then
8132     NMEDIT=":"
8133   else
8134     case $cross_compiling:$ac_tool_warned in
8135 yes:)
8136 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8138 ac_tool_warned=yes ;;
8139 esac
8140     NMEDIT=$ac_ct_NMEDIT
8141   fi
8142 else
8143   NMEDIT="$ac_cv_prog_NMEDIT"
8144 fi
8146     if test -n "$ac_tool_prefix"; then
8147   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8148 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if test "${ac_cv_prog_LIPO+set}" = set; then
8152   $as_echo_n "(cached) " >&6
8153 else
8154   if test -n "$LIPO"; then
8155   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8156 else
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8159 do
8160   IFS=$as_save_IFS
8161   test -z "$as_dir" && as_dir=.
8162   for ac_exec_ext in '' $ac_executable_extensions; do
8163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8164     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8165     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166     break 2
8167   fi
8168 done
8169 done
8170 IFS=$as_save_IFS
8172 fi
8173 fi
8174 LIPO=$ac_cv_prog_LIPO
8175 if test -n "$LIPO"; then
8176   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8177 $as_echo "$LIPO" >&6; }
8178 else
8179   { $as_echo "$as_me:$LINENO: result: no" >&5
8180 $as_echo "no" >&6; }
8181 fi
8184 fi
8185 if test -z "$ac_cv_prog_LIPO"; then
8186   ac_ct_LIPO=$LIPO
8187   # Extract the first word of "lipo", so it can be a program name with args.
8188 set dummy lipo; ac_word=$2
8189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8192   $as_echo_n "(cached) " >&6
8193 else
8194   if test -n "$ac_ct_LIPO"; then
8195   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8199 do
8200   IFS=$as_save_IFS
8201   test -z "$as_dir" && as_dir=.
8202   for ac_exec_ext in '' $ac_executable_extensions; do
8203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204     ac_cv_prog_ac_ct_LIPO="lipo"
8205     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206     break 2
8207   fi
8208 done
8209 done
8210 IFS=$as_save_IFS
8212 fi
8213 fi
8214 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8215 if test -n "$ac_ct_LIPO"; then
8216   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8217 $as_echo "$ac_ct_LIPO" >&6; }
8218 else
8219   { $as_echo "$as_me:$LINENO: result: no" >&5
8220 $as_echo "no" >&6; }
8221 fi
8223   if test "x$ac_ct_LIPO" = x; then
8224     LIPO=":"
8225   else
8226     case $cross_compiling:$ac_tool_warned in
8227 yes:)
8228 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8230 ac_tool_warned=yes ;;
8231 esac
8232     LIPO=$ac_ct_LIPO
8233   fi
8234 else
8235   LIPO="$ac_cv_prog_LIPO"
8236 fi
8238     if test -n "$ac_tool_prefix"; then
8239   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8240 set dummy ${ac_tool_prefix}otool; ac_word=$2
8241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if test "${ac_cv_prog_OTOOL+set}" = set; then
8244   $as_echo_n "(cached) " >&6
8245 else
8246   if test -n "$OTOOL"; then
8247   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252   IFS=$as_save_IFS
8253   test -z "$as_dir" && as_dir=.
8254   for ac_exec_ext in '' $ac_executable_extensions; do
8255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8256     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8257     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8258     break 2
8259   fi
8260 done
8261 done
8262 IFS=$as_save_IFS
8264 fi
8265 fi
8266 OTOOL=$ac_cv_prog_OTOOL
8267 if test -n "$OTOOL"; then
8268   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8269 $as_echo "$OTOOL" >&6; }
8270 else
8271   { $as_echo "$as_me:$LINENO: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8276 fi
8277 if test -z "$ac_cv_prog_OTOOL"; then
8278   ac_ct_OTOOL=$OTOOL
8279   # Extract the first word of "otool", so it can be a program name with args.
8280 set dummy otool; ac_word=$2
8281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 $as_echo_n "checking for $ac_word... " >&6; }
8283 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8284   $as_echo_n "(cached) " >&6
8285 else
8286   if test -n "$ac_ct_OTOOL"; then
8287   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292   IFS=$as_save_IFS
8293   test -z "$as_dir" && as_dir=.
8294   for ac_exec_ext in '' $ac_executable_extensions; do
8295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8296     ac_cv_prog_ac_ct_OTOOL="otool"
8297     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298     break 2
8299   fi
8300 done
8301 done
8302 IFS=$as_save_IFS
8304 fi
8305 fi
8306 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8307 if test -n "$ac_ct_OTOOL"; then
8308   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8309 $as_echo "$ac_ct_OTOOL" >&6; }
8310 else
8311   { $as_echo "$as_me:$LINENO: result: no" >&5
8312 $as_echo "no" >&6; }
8313 fi
8315   if test "x$ac_ct_OTOOL" = x; then
8316     OTOOL=":"
8317   else
8318     case $cross_compiling:$ac_tool_warned in
8319 yes:)
8320 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8322 ac_tool_warned=yes ;;
8323 esac
8324     OTOOL=$ac_ct_OTOOL
8325   fi
8326 else
8327   OTOOL="$ac_cv_prog_OTOOL"
8328 fi
8330     if test -n "$ac_tool_prefix"; then
8331   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8332 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8336   $as_echo_n "(cached) " >&6
8337 else
8338   if test -n "$OTOOL64"; then
8339   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344   IFS=$as_save_IFS
8345   test -z "$as_dir" && as_dir=.
8346   for ac_exec_ext in '' $ac_executable_extensions; do
8347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8349     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8350     break 2
8351   fi
8352 done
8353 done
8354 IFS=$as_save_IFS
8356 fi
8357 fi
8358 OTOOL64=$ac_cv_prog_OTOOL64
8359 if test -n "$OTOOL64"; then
8360   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8361 $as_echo "$OTOOL64" >&6; }
8362 else
8363   { $as_echo "$as_me:$LINENO: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8368 fi
8369 if test -z "$ac_cv_prog_OTOOL64"; then
8370   ac_ct_OTOOL64=$OTOOL64
8371   # Extract the first word of "otool64", so it can be a program name with args.
8372 set dummy otool64; ac_word=$2
8373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8376   $as_echo_n "(cached) " >&6
8377 else
8378   if test -n "$ac_ct_OTOOL64"; then
8379   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8383 do
8384   IFS=$as_save_IFS
8385   test -z "$as_dir" && as_dir=.
8386   for ac_exec_ext in '' $ac_executable_extensions; do
8387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388     ac_cv_prog_ac_ct_OTOOL64="otool64"
8389     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8390     break 2
8391   fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8396 fi
8397 fi
8398 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8399 if test -n "$ac_ct_OTOOL64"; then
8400   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8401 $as_echo "$ac_ct_OTOOL64" >&6; }
8402 else
8403   { $as_echo "$as_me:$LINENO: result: no" >&5
8404 $as_echo "no" >&6; }
8405 fi
8407   if test "x$ac_ct_OTOOL64" = x; then
8408     OTOOL64=":"
8409   else
8410     case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416     OTOOL64=$ac_ct_OTOOL64
8417   fi
8418 else
8419   OTOOL64="$ac_cv_prog_OTOOL64"
8420 fi
8448     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8449 $as_echo_n "checking for -single_module linker flag... " >&6; }
8450 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8451   $as_echo_n "(cached) " >&6
8452 else
8453   lt_cv_apple_cc_single_mod=no
8454       if test -z "${LT_MULTI_MODULE}"; then
8455         # By default we will add the -single_module flag. You can override
8456         # by either setting the environment variable LT_MULTI_MODULE
8457         # non-empty at configure time, or by adding -multi_module to the
8458         # link flags.
8459         rm -rf libconftest.dylib*
8460         echo "int foo(void){return 1;}" > conftest.c
8461         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8462 -dynamiclib -Wl,-single_module conftest.c" >&5
8463         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8464           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8465         _lt_result=$?
8466         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8467           lt_cv_apple_cc_single_mod=yes
8468         else
8469           cat conftest.err >&5
8470         fi
8471         rm -rf libconftest.dylib*
8472         rm -f conftest.*
8473       fi
8474 fi
8475 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8476 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8477     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8478 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8479 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8480   $as_echo_n "(cached) " >&6
8481 else
8482   lt_cv_ld_exported_symbols_list=no
8483       save_LDFLAGS=$LDFLAGS
8484       echo "_main" > conftest.sym
8485       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8486       cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8493 int
8494 main ()
8497   ;
8498   return 0;
8500 _ACEOF
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (ac_try="$ac_link"
8503 case "(($ac_try" in
8504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505   *) ac_try_echo=$ac_try;;
8506 esac
8507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8508 $as_echo "$ac_try_echo") >&5
8509   (eval "$ac_link") 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } && {
8516          test -z "$ac_c_werror_flag" ||
8517          test ! -s conftest.err
8518        } && test -s conftest$ac_exeext && {
8519          test "$cross_compiling" = yes ||
8520          $as_test_x conftest$ac_exeext
8521        }; then
8522   lt_cv_ld_exported_symbols_list=yes
8523 else
8524   $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527         lt_cv_ld_exported_symbols_list=no
8528 fi
8530 rm -rf conftest.dSYM
8531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8532       conftest$ac_exeext conftest.$ac_ext
8533         LDFLAGS="$save_LDFLAGS"
8535 fi
8536 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8537 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8538     case $host_os in
8539     rhapsody* | darwin1.[012])
8540       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8541     darwin1.*)
8542       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8543     darwin*) # darwin 5.x on
8544       # if running on 10.5 or later, the deployment target defaults
8545       # to the OS version, if on x86, and 10.4, the deployment
8546       # target defaults to 10.4. Don't you love it?
8547       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8548         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8549           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8550         10.[012]*)
8551           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8552         10.*)
8553           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8554       esac
8555     ;;
8556   esac
8557     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8558       _lt_dar_single_mod='$single_module'
8559     fi
8560     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8561       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8562     else
8563       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8564     fi
8565     if test "$DSYMUTIL" != ":"; then
8566       _lt_dsymutil='~$DSYMUTIL $lib || :'
8567     else
8568       _lt_dsymutil=
8569     fi
8570     ;;
8571   esac
8574 for ac_header in dlfcn.h
8575 do
8576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8577 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8578 $as_echo_n "checking for $ac_header... " >&6; }
8579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580   $as_echo_n "(cached) " >&6
8581 else
8582   cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h.  */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h.  */
8588 $ac_includes_default
8590 #include <$ac_header>
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8594 case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8599 $as_echo "$ac_try_echo") >&5
8600   (eval "$ac_compile") 2>conftest.er1
8601   ac_status=$?
8602   grep -v '^ *+' conftest.er1 >conftest.err
8603   rm -f conftest.er1
8604   cat conftest.err >&5
8605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } && {
8607          test -z "$ac_c_werror_flag" ||
8608          test ! -s conftest.err
8609        } && test -s conftest.$ac_objext; then
8610   eval "$as_ac_Header=yes"
8611 else
8612   $as_echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615         eval "$as_ac_Header=no"
8616 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 ac_res=`eval 'as_val=${'$as_ac_Header'}
8621                  $as_echo "$as_val"'`
8622                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8623 $as_echo "$ac_res" >&6; }
8624 as_val=`eval 'as_val=${'$as_ac_Header'}
8625                  $as_echo "$as_val"'`
8626    if test "x$as_val" = x""yes; then
8627   cat >>confdefs.h <<_ACEOF
8628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8629 _ACEOF
8631 fi
8633 done
8637 # Set options
8641         enable_dlopen=no
8644   enable_win32_dll=no
8647             # Check whether --enable-shared was given.
8648 if test "${enable_shared+set}" = set; then
8649   enableval=$enable_shared; p=${PACKAGE-default}
8650     case $enableval in
8651     yes) enable_shared=yes ;;
8652     no) enable_shared=no ;;
8653     *)
8654       enable_shared=no
8655       # Look at the argument we got.  We use all the common list separators.
8656       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8657       for pkg in $enableval; do
8658         IFS="$lt_save_ifs"
8659         if test "X$pkg" = "X$p"; then
8660           enable_shared=yes
8661         fi
8662       done
8663       IFS="$lt_save_ifs"
8664       ;;
8665     esac
8666 else
8667   enable_shared=yes
8668 fi
8678   # Check whether --enable-static was given.
8679 if test "${enable_static+set}" = set; then
8680   enableval=$enable_static; p=${PACKAGE-default}
8681     case $enableval in
8682     yes) enable_static=yes ;;
8683     no) enable_static=no ;;
8684     *)
8685      enable_static=no
8686       # Look at the argument we got.  We use all the common list separators.
8687       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8688       for pkg in $enableval; do
8689         IFS="$lt_save_ifs"
8690         if test "X$pkg" = "X$p"; then
8691           enable_static=yes
8692         fi
8693       done
8694       IFS="$lt_save_ifs"
8695       ;;
8696     esac
8697 else
8698   enable_static=yes
8699 fi
8710 # Check whether --with-pic was given.
8711 if test "${with_pic+set}" = set; then
8712   withval=$with_pic; pic_mode="$withval"
8713 else
8714   pic_mode=default
8715 fi
8718 test -z "$pic_mode" && pic_mode=default
8726   # Check whether --enable-fast-install was given.
8727 if test "${enable_fast_install+set}" = set; then
8728   enableval=$enable_fast_install; p=${PACKAGE-default}
8729     case $enableval in
8730     yes) enable_fast_install=yes ;;
8731     no) enable_fast_install=no ;;
8732     *)
8733       enable_fast_install=no
8734       # Look at the argument we got.  We use all the common list separators.
8735       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8736       for pkg in $enableval; do
8737         IFS="$lt_save_ifs"
8738         if test "X$pkg" = "X$p"; then
8739           enable_fast_install=yes
8740         fi
8741       done
8742       IFS="$lt_save_ifs"
8743       ;;
8744     esac
8745 else
8746   enable_fast_install=yes
8747 fi
8759 # This can be used to rebuild libtool when needed
8760 LIBTOOL_DEPS="$ltmain"
8762 # Always use our own libtool.
8763 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8789 test -z "$LN_S" && LN_S="ln -s"
8804 if test -n "${ZSH_VERSION+set}" ; then
8805    setopt NO_GLOB_SUBST
8806 fi
8808 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8809 $as_echo_n "checking for objdir... " >&6; }
8810 if test "${lt_cv_objdir+set}" = set; then
8811   $as_echo_n "(cached) " >&6
8812 else
8813   rm -f .libs 2>/dev/null
8814 mkdir .libs 2>/dev/null
8815 if test -d .libs; then
8816   lt_cv_objdir=.libs
8817 else
8818   # MS-DOS does not allow filenames that begin with a dot.
8819   lt_cv_objdir=_libs
8820 fi
8821 rmdir .libs 2>/dev/null
8822 fi
8823 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8824 $as_echo "$lt_cv_objdir" >&6; }
8825 objdir=$lt_cv_objdir
8831 cat >>confdefs.h <<_ACEOF
8832 #define LT_OBJDIR "$lt_cv_objdir/"
8833 _ACEOF
8851 case $host_os in
8852 aix3*)
8853   # AIX sometimes has problems with the GCC collect2 program.  For some
8854   # reason, if we set the COLLECT_NAMES environment variable, the problems
8855   # vanish in a puff of smoke.
8856   if test "X${COLLECT_NAMES+set}" != Xset; then
8857     COLLECT_NAMES=
8858     export COLLECT_NAMES
8859   fi
8860   ;;
8861 esac
8863 # Sed substitution that helps us do robust quoting.  It backslashifies
8864 # metacharacters that are still active within double-quoted strings.
8865 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8867 # Same as above, but do not quote variable references.
8868 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8870 # Sed substitution to delay expansion of an escaped shell variable in a
8871 # double_quote_subst'ed string.
8872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8874 # Sed substitution to delay expansion of an escaped single quote.
8875 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8877 # Sed substitution to avoid accidental globbing in evaled expressions
8878 no_glob_subst='s/\*/\\\*/g'
8880 # Global variables:
8881 ofile=libtool
8882 can_build_shared=yes
8884 # All known linkers require a `.a' archive for static linking (except MSVC,
8885 # which needs '.lib').
8886 libext=a
8888 with_gnu_ld="$lt_cv_prog_gnu_ld"
8890 old_CC="$CC"
8891 old_CFLAGS="$CFLAGS"
8893 # Set sane defaults for various variables
8894 test -z "$CC" && CC=cc
8895 test -z "$LTCC" && LTCC=$CC
8896 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8897 test -z "$LD" && LD=ld
8898 test -z "$ac_objext" && ac_objext=o
8900 for cc_temp in $compiler""; do
8901   case $cc_temp in
8902     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8903     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8904     \-*) ;;
8905     *) break;;
8906   esac
8907 done
8908 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8911 # Only perform the check for file, if the check method requires it
8912 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8913 case $deplibs_check_method in
8914 file_magic*)
8915   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8916     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8917 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8918 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8919   $as_echo_n "(cached) " >&6
8920 else
8921   case $MAGIC_CMD in
8922 [\\/*] |  ?:[\\/]*)
8923   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8924   ;;
8925 *)
8926   lt_save_MAGIC_CMD="$MAGIC_CMD"
8927   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8928   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8929   for ac_dir in $ac_dummy; do
8930     IFS="$lt_save_ifs"
8931     test -z "$ac_dir" && ac_dir=.
8932     if test -f $ac_dir/${ac_tool_prefix}file; then
8933       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8934       if test -n "$file_magic_test_file"; then
8935         case $deplibs_check_method in
8936         "file_magic "*)
8937           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8938           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8939           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8940             $EGREP "$file_magic_regex" > /dev/null; then
8941             :
8942           else
8943             cat <<_LT_EOF 1>&2
8945 *** Warning: the command libtool uses to detect shared libraries,
8946 *** $file_magic_cmd, produces output that libtool cannot recognize.
8947 *** The result is that libtool may fail to recognize shared libraries
8948 *** as such.  This will affect the creation of libtool libraries that
8949 *** depend on shared libraries, but programs linked with such libtool
8950 *** libraries will work regardless of this problem.  Nevertheless, you
8951 *** may want to report the problem to your system manager and/or to
8952 *** bug-libtool@gnu.org
8954 _LT_EOF
8955           fi ;;
8956         esac
8957       fi
8958       break
8959     fi
8960   done
8961   IFS="$lt_save_ifs"
8962   MAGIC_CMD="$lt_save_MAGIC_CMD"
8963   ;;
8964 esac
8965 fi
8967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8968 if test -n "$MAGIC_CMD"; then
8969   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8970 $as_echo "$MAGIC_CMD" >&6; }
8971 else
8972   { $as_echo "$as_me:$LINENO: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8980 if test -z "$lt_cv_path_MAGIC_CMD"; then
8981   if test -n "$ac_tool_prefix"; then
8982     { $as_echo "$as_me:$LINENO: checking for file" >&5
8983 $as_echo_n "checking for file... " >&6; }
8984 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8985   $as_echo_n "(cached) " >&6
8986 else
8987   case $MAGIC_CMD in
8988 [\\/*] |  ?:[\\/]*)
8989   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8990   ;;
8991 *)
8992   lt_save_MAGIC_CMD="$MAGIC_CMD"
8993   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8994   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8995   for ac_dir in $ac_dummy; do
8996     IFS="$lt_save_ifs"
8997     test -z "$ac_dir" && ac_dir=.
8998     if test -f $ac_dir/file; then
8999       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9000       if test -n "$file_magic_test_file"; then
9001         case $deplibs_check_method in
9002         "file_magic "*)
9003           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9004           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9005           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9006             $EGREP "$file_magic_regex" > /dev/null; then
9007             :
9008           else
9009             cat <<_LT_EOF 1>&2
9011 *** Warning: the command libtool uses to detect shared libraries,
9012 *** $file_magic_cmd, produces output that libtool cannot recognize.
9013 *** The result is that libtool may fail to recognize shared libraries
9014 *** as such.  This will affect the creation of libtool libraries that
9015 *** depend on shared libraries, but programs linked with such libtool
9016 *** libraries will work regardless of this problem.  Nevertheless, you
9017 *** may want to report the problem to your system manager and/or to
9018 *** bug-libtool@gnu.org
9020 _LT_EOF
9021           fi ;;
9022         esac
9023       fi
9024       break
9025     fi
9026   done
9027   IFS="$lt_save_ifs"
9028   MAGIC_CMD="$lt_save_MAGIC_CMD"
9029   ;;
9030 esac
9031 fi
9033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9034 if test -n "$MAGIC_CMD"; then
9035   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9036 $as_echo "$MAGIC_CMD" >&6; }
9037 else
9038   { $as_echo "$as_me:$LINENO: result: no" >&5
9039 $as_echo "no" >&6; }
9040 fi
9043   else
9044     MAGIC_CMD=:
9045   fi
9046 fi
9048   fi
9049   ;;
9050 esac
9052 # Use C for the default configuration in the libtool script
9054 lt_save_CC="$CC"
9055 ac_ext=c
9056 ac_cpp='$CPP $CPPFLAGS'
9057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9062 # Source file extension for C test sources.
9063 ac_ext=c
9065 # Object file extension for compiled C test sources.
9066 objext=o
9067 objext=$objext
9069 # Code to be used in simple compile tests
9070 lt_simple_compile_test_code="int some_variable = 0;"
9072 # Code to be used in simple link tests
9073 lt_simple_link_test_code='int main(){return(0);}'
9081 # If no C compiler was specified, use CC.
9082 LTCC=${LTCC-"$CC"}
9084 # If no C compiler flags were specified, use CFLAGS.
9085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9087 # Allow CC to be a program name with arguments.
9088 compiler=$CC
9090 # Save the default compiler, since it gets overwritten when the other
9091 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9092 compiler_DEFAULT=$CC
9094 # save warnings/boilerplate of simple test code
9095 ac_outfile=conftest.$ac_objext
9096 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9098 _lt_compiler_boilerplate=`cat conftest.err`
9099 $RM conftest*
9101 ac_outfile=conftest.$ac_objext
9102 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9104 _lt_linker_boilerplate=`cat conftest.err`
9105 $RM -r conftest*
9108 ## CAVEAT EMPTOR:
9109 ## There is no encapsulation within the following macros, do not change
9110 ## the running order or otherwise move them around unless you know exactly
9111 ## what you are doing...
9112 if test -n "$compiler"; then
9114 lt_prog_compiler_no_builtin_flag=
9116 if test "$GCC" = yes; then
9117   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9119   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9120 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9121 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9122   $as_echo_n "(cached) " >&6
9123 else
9124   lt_cv_prog_compiler_rtti_exceptions=no
9125    ac_outfile=conftest.$ac_objext
9126    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127    lt_compiler_flag="-fno-rtti -fno-exceptions"
9128    # Insert the option either (1) after the last *FLAGS variable, or
9129    # (2) before a word containing "conftest.", or (3) at the end.
9130    # Note that $ac_compile itself does not contain backslashes and begins
9131    # with a dollar sign (not a hyphen), so the echo should work correctly.
9132    # The option is referenced via a variable to avoid confusing sed.
9133    lt_compile=`echo "$ac_compile" | $SED \
9134    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136    -e 's:$: $lt_compiler_flag:'`
9137    (eval echo "\"\$as_me:9137: $lt_compile\"" >&5)
9138    (eval "$lt_compile" 2>conftest.err)
9139    ac_status=$?
9140    cat conftest.err >&5
9141    echo "$as_me:9141: \$? = $ac_status" >&5
9142    if (exit $ac_status) && test -s "$ac_outfile"; then
9143      # The compiler can only warn and ignore the option if not recognized
9144      # So say no if there are warnings other than the usual output.
9145      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9146      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9147      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9148        lt_cv_prog_compiler_rtti_exceptions=yes
9149      fi
9150    fi
9151    $RM conftest*
9153 fi
9154 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9155 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9157 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9158     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9159 else
9160     :
9161 fi
9163 fi
9170   lt_prog_compiler_wl=
9171 lt_prog_compiler_pic=
9172 lt_prog_compiler_static=
9174 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9177   if test "$GCC" = yes; then
9178     lt_prog_compiler_wl='-Wl,'
9179     lt_prog_compiler_static='-static'
9181     case $host_os in
9182       aix*)
9183       # All AIX code is PIC.
9184       if test "$host_cpu" = ia64; then
9185         # AIX 5 now supports IA64 processor
9186         lt_prog_compiler_static='-Bstatic'
9187       fi
9188       ;;
9190     amigaos*)
9191       case $host_cpu in
9192       powerpc)
9193             # see comment about AmigaOS4 .so support
9194             lt_prog_compiler_pic='-fPIC'
9195         ;;
9196       m68k)
9197             # FIXME: we need at least 68020 code to build shared libraries, but
9198             # adding the `-m68020' flag to GCC prevents building anything better,
9199             # like `-m68040'.
9200             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9201         ;;
9202       esac
9203       ;;
9205     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9206       # PIC is the default for these OSes.
9207       ;;
9209     mingw* | cygwin* | pw32* | os2* | cegcc*)
9210       # This hack is so that the source file can tell whether it is being
9211       # built for inclusion in a dll (and should export symbols for example).
9212       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9213       # (--disable-auto-import) libraries
9214       lt_prog_compiler_pic='-DDLL_EXPORT'
9215       ;;
9217     darwin* | rhapsody*)
9218       # PIC is the default on this platform
9219       # Common symbols not allowed in MH_DYLIB files
9220       lt_prog_compiler_pic='-fno-common'
9221       ;;
9223     hpux*)
9224       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9225       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9226       # sets the default TLS model and affects inlining.
9227       case $host_cpu in
9228       hppa*64*)
9229         # +Z the default
9230         ;;
9231       *)
9232         lt_prog_compiler_pic='-fPIC'
9233         ;;
9234       esac
9235       ;;
9237     interix[3-9]*)
9238       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9239       # Instead, we relocate shared libraries at runtime.
9240       ;;
9242     msdosdjgpp*)
9243       # Just because we use GCC doesn't mean we suddenly get shared libraries
9244       # on systems that don't support them.
9245       lt_prog_compiler_can_build_shared=no
9246       enable_shared=no
9247       ;;
9249     *nto* | *qnx*)
9250       # QNX uses GNU C++, but need to define -shared option too, otherwise
9251       # it will coredump.
9252       lt_prog_compiler_pic='-fPIC -shared'
9253       ;;
9255     sysv4*MP*)
9256       if test -d /usr/nec; then
9257         lt_prog_compiler_pic=-Kconform_pic
9258       fi
9259       ;;
9261     *)
9262       lt_prog_compiler_pic='-fPIC'
9263       ;;
9264     esac
9265   else
9266     # PORTME Check for flag to pass linker flags through the system compiler.
9267     case $host_os in
9268     aix*)
9269       lt_prog_compiler_wl='-Wl,'
9270       if test "$host_cpu" = ia64; then
9271         # AIX 5 now supports IA64 processor
9272         lt_prog_compiler_static='-Bstatic'
9273       else
9274         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9275       fi
9276       ;;
9278     mingw* | cygwin* | pw32* | os2* | cegcc*)
9279       # This hack is so that the source file can tell whether it is being
9280       # built for inclusion in a dll (and should export symbols for example).
9281       lt_prog_compiler_pic='-DDLL_EXPORT'
9282       ;;
9284     hpux9* | hpux10* | hpux11*)
9285       lt_prog_compiler_wl='-Wl,'
9286       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9287       # not for PA HP-UX.
9288       case $host_cpu in
9289       hppa*64*|ia64*)
9290         # +Z the default
9291         ;;
9292       *)
9293         lt_prog_compiler_pic='+Z'
9294         ;;
9295       esac
9296       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9297       lt_prog_compiler_static='${wl}-a ${wl}archive'
9298       ;;
9300     irix5* | irix6* | nonstopux*)
9301       lt_prog_compiler_wl='-Wl,'
9302       # PIC (with -KPIC) is the default.
9303       lt_prog_compiler_static='-non_shared'
9304       ;;
9306     linux* | k*bsd*-gnu)
9307       case $cc_basename in
9308       # old Intel for x86_64 which still supported -KPIC.
9309       ecc*)
9310         lt_prog_compiler_wl='-Wl,'
9311         lt_prog_compiler_pic='-KPIC'
9312         lt_prog_compiler_static='-static'
9313         ;;
9314       # icc used to be incompatible with GCC.
9315       # ICC 10 doesn't accept -KPIC any more.
9316       icc* | ifort*)
9317         lt_prog_compiler_wl='-Wl,'
9318         lt_prog_compiler_pic='-fPIC'
9319         lt_prog_compiler_static='-static'
9320         ;;
9321       # Lahey Fortran 8.1.
9322       lf95*)
9323         lt_prog_compiler_wl='-Wl,'
9324         lt_prog_compiler_pic='--shared'
9325         lt_prog_compiler_static='--static'
9326         ;;
9327       pgcc* | pgf77* | pgf90* | pgf95*)
9328         # Portland Group compilers (*not* the Pentium gcc compiler,
9329         # which looks to be a dead project)
9330         lt_prog_compiler_wl='-Wl,'
9331         lt_prog_compiler_pic='-fpic'
9332         lt_prog_compiler_static='-Bstatic'
9333         ;;
9334       ccc*)
9335         lt_prog_compiler_wl='-Wl,'
9336         # All Alpha code is PIC.
9337         lt_prog_compiler_static='-non_shared'
9338         ;;
9339       xl*)
9340         # IBM XL C 8.0/Fortran 10.1 on PPC
9341         lt_prog_compiler_wl='-Wl,'
9342         lt_prog_compiler_pic='-qpic'
9343         lt_prog_compiler_static='-qstaticlink'
9344         ;;
9345       *)
9346         case `$CC -V 2>&1 | sed 5q` in
9347         *Sun\ C*)
9348           # Sun C 5.9
9349           lt_prog_compiler_pic='-KPIC'
9350           lt_prog_compiler_static='-Bstatic'
9351           lt_prog_compiler_wl='-Wl,'
9352           ;;
9353         *Sun\ F*)
9354           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9355           lt_prog_compiler_pic='-KPIC'
9356           lt_prog_compiler_static='-Bstatic'
9357           lt_prog_compiler_wl=''
9358           ;;
9359         esac
9360         ;;
9361       esac
9362       ;;
9364     newsos6)
9365       lt_prog_compiler_pic='-KPIC'
9366       lt_prog_compiler_static='-Bstatic'
9367       ;;
9369     *nto* | *qnx*)
9370       # QNX uses GNU C++, but need to define -shared option too, otherwise
9371       # it will coredump.
9372       lt_prog_compiler_pic='-fPIC -shared'
9373       ;;
9375     osf3* | osf4* | osf5*)
9376       lt_prog_compiler_wl='-Wl,'
9377       # All OSF/1 code is PIC.
9378       lt_prog_compiler_static='-non_shared'
9379       ;;
9381     rdos*)
9382       lt_prog_compiler_static='-non_shared'
9383       ;;
9385     solaris*)
9386       lt_prog_compiler_pic='-KPIC'
9387       lt_prog_compiler_static='-Bstatic'
9388       case $cc_basename in
9389       f77* | f90* | f95*)
9390         lt_prog_compiler_wl='-Qoption ld ';;
9391       *)
9392         lt_prog_compiler_wl='-Wl,';;
9393       esac
9394       ;;
9396     sunos4*)
9397       lt_prog_compiler_wl='-Qoption ld '
9398       lt_prog_compiler_pic='-PIC'
9399       lt_prog_compiler_static='-Bstatic'
9400       ;;
9402     sysv4 | sysv4.2uw2* | sysv4.3*)
9403       lt_prog_compiler_wl='-Wl,'
9404       lt_prog_compiler_pic='-KPIC'
9405       lt_prog_compiler_static='-Bstatic'
9406       ;;
9408     sysv4*MP*)
9409       if test -d /usr/nec ;then
9410         lt_prog_compiler_pic='-Kconform_pic'
9411         lt_prog_compiler_static='-Bstatic'
9412       fi
9413       ;;
9415     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9416       lt_prog_compiler_wl='-Wl,'
9417       lt_prog_compiler_pic='-KPIC'
9418       lt_prog_compiler_static='-Bstatic'
9419       ;;
9421     unicos*)
9422       lt_prog_compiler_wl='-Wl,'
9423       lt_prog_compiler_can_build_shared=no
9424       ;;
9426     uts4*)
9427       lt_prog_compiler_pic='-pic'
9428       lt_prog_compiler_static='-Bstatic'
9429       ;;
9431     *)
9432       lt_prog_compiler_can_build_shared=no
9433       ;;
9434     esac
9435   fi
9437 case $host_os in
9438   # For platforms which do not support PIC, -DPIC is meaningless:
9439   *djgpp*)
9440     lt_prog_compiler_pic=
9441     ;;
9442   *)
9443     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9444     ;;
9445 esac
9446 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9447 $as_echo "$lt_prog_compiler_pic" >&6; }
9455 # Check to make sure the PIC flag actually works.
9457 if test -n "$lt_prog_compiler_pic"; then
9458   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9460 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9461   $as_echo_n "(cached) " >&6
9462 else
9463   lt_cv_prog_compiler_pic_works=no
9464    ac_outfile=conftest.$ac_objext
9465    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9466    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9467    # Insert the option either (1) after the last *FLAGS variable, or
9468    # (2) before a word containing "conftest.", or (3) at the end.
9469    # Note that $ac_compile itself does not contain backslashes and begins
9470    # with a dollar sign (not a hyphen), so the echo should work correctly.
9471    # The option is referenced via a variable to avoid confusing sed.
9472    lt_compile=`echo "$ac_compile" | $SED \
9473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9475    -e 's:$: $lt_compiler_flag:'`
9476    (eval echo "\"\$as_me:9476: $lt_compile\"" >&5)
9477    (eval "$lt_compile" 2>conftest.err)
9478    ac_status=$?
9479    cat conftest.err >&5
9480    echo "$as_me:9480: \$? = $ac_status" >&5
9481    if (exit $ac_status) && test -s "$ac_outfile"; then
9482      # The compiler can only warn and ignore the option if not recognized
9483      # So say no if there are warnings other than the usual output.
9484      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9485      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9486      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9487        lt_cv_prog_compiler_pic_works=yes
9488      fi
9489    fi
9490    $RM conftest*
9492 fi
9493 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9494 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9496 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9497     case $lt_prog_compiler_pic in
9498      "" | " "*) ;;
9499      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9500      esac
9501 else
9502     lt_prog_compiler_pic=
9503      lt_prog_compiler_can_build_shared=no
9504 fi
9506 fi
9514 # Check to make sure the static flag actually works.
9516 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9517 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9518 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9519 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9520   $as_echo_n "(cached) " >&6
9521 else
9522   lt_cv_prog_compiler_static_works=no
9523    save_LDFLAGS="$LDFLAGS"
9524    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9525    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9526    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9527      # The linker can only warn and ignore the option if not recognized
9528      # So say no if there are warnings
9529      if test -s conftest.err; then
9530        # Append any errors to the config.log.
9531        cat conftest.err 1>&5
9532        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9533        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9534        if diff conftest.exp conftest.er2 >/dev/null; then
9535          lt_cv_prog_compiler_static_works=yes
9536        fi
9537      else
9538        lt_cv_prog_compiler_static_works=yes
9539      fi
9540    fi
9541    $RM -r conftest*
9542    LDFLAGS="$save_LDFLAGS"
9544 fi
9545 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9546 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9548 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9549     :
9550 else
9551     lt_prog_compiler_static=
9552 fi
9560   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9563   $as_echo_n "(cached) " >&6
9564 else
9565   lt_cv_prog_compiler_c_o=no
9566    $RM -r conftest 2>/dev/null
9567    mkdir conftest
9568    cd conftest
9569    mkdir out
9570    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9572    lt_compiler_flag="-o out/conftest2.$ac_objext"
9573    # Insert the option either (1) after the last *FLAGS variable, or
9574    # (2) before a word containing "conftest.", or (3) at the end.
9575    # Note that $ac_compile itself does not contain backslashes and begins
9576    # with a dollar sign (not a hyphen), so the echo should work correctly.
9577    lt_compile=`echo "$ac_compile" | $SED \
9578    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9579    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9580    -e 's:$: $lt_compiler_flag:'`
9581    (eval echo "\"\$as_me:9581: $lt_compile\"" >&5)
9582    (eval "$lt_compile" 2>out/conftest.err)
9583    ac_status=$?
9584    cat out/conftest.err >&5
9585    echo "$as_me:9585: \$? = $ac_status" >&5
9586    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9587    then
9588      # The compiler can only warn and ignore the option if not recognized
9589      # So say no if there are warnings
9590      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9591      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9592      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9593        lt_cv_prog_compiler_c_o=yes
9594      fi
9595    fi
9596    chmod u+w . 2>&5
9597    $RM conftest*
9598    # SGI C++ compiler will create directory out/ii_files/ for
9599    # template instantiation
9600    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9601    $RM out/* && rmdir out
9602    cd ..
9603    $RM -r conftest
9604    $RM conftest*
9606 fi
9607 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9608 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9615   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9617 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9618   $as_echo_n "(cached) " >&6
9619 else
9620   lt_cv_prog_compiler_c_o=no
9621    $RM -r conftest 2>/dev/null
9622    mkdir conftest
9623    cd conftest
9624    mkdir out
9625    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9627    lt_compiler_flag="-o out/conftest2.$ac_objext"
9628    # Insert the option either (1) after the last *FLAGS variable, or
9629    # (2) before a word containing "conftest.", or (3) at the end.
9630    # Note that $ac_compile itself does not contain backslashes and begins
9631    # with a dollar sign (not a hyphen), so the echo should work correctly.
9632    lt_compile=`echo "$ac_compile" | $SED \
9633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9635    -e 's:$: $lt_compiler_flag:'`
9636    (eval echo "\"\$as_me:9636: $lt_compile\"" >&5)
9637    (eval "$lt_compile" 2>out/conftest.err)
9638    ac_status=$?
9639    cat out/conftest.err >&5
9640    echo "$as_me:9640: \$? = $ac_status" >&5
9641    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9642    then
9643      # The compiler can only warn and ignore the option if not recognized
9644      # So say no if there are warnings
9645      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9646      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9647      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9648        lt_cv_prog_compiler_c_o=yes
9649      fi
9650    fi
9651    chmod u+w . 2>&5
9652    $RM conftest*
9653    # SGI C++ compiler will create directory out/ii_files/ for
9654    # template instantiation
9655    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9656    $RM out/* && rmdir out
9657    cd ..
9658    $RM -r conftest
9659    $RM conftest*
9661 fi
9662 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9663 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9668 hard_links="nottested"
9669 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9670   # do not overwrite the value of need_locks provided by the user
9671   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9672 $as_echo_n "checking if we can lock with hard links... " >&6; }
9673   hard_links=yes
9674   $RM conftest*
9675   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9676   touch conftest.a
9677   ln conftest.a conftest.b 2>&5 || hard_links=no
9678   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9679   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9680 $as_echo "$hard_links" >&6; }
9681   if test "$hard_links" = no; then
9682     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9683 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9684     need_locks=warn
9685   fi
9686 else
9687   need_locks=no
9688 fi
9695   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9696 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9698   runpath_var=
9699   allow_undefined_flag=
9700   always_export_symbols=no
9701   archive_cmds=
9702   archive_expsym_cmds=
9703   compiler_needs_object=no
9704   enable_shared_with_static_runtimes=no
9705   export_dynamic_flag_spec=
9706   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9707   hardcode_automatic=no
9708   hardcode_direct=no
9709   hardcode_direct_absolute=no
9710   hardcode_libdir_flag_spec=
9711   hardcode_libdir_flag_spec_ld=
9712   hardcode_libdir_separator=
9713   hardcode_minus_L=no
9714   hardcode_shlibpath_var=unsupported
9715   inherit_rpath=no
9716   link_all_deplibs=unknown
9717   module_cmds=
9718   module_expsym_cmds=
9719   old_archive_from_new_cmds=
9720   old_archive_from_expsyms_cmds=
9721   thread_safe_flag_spec=
9722   whole_archive_flag_spec=
9723   # include_expsyms should be a list of space-separated symbols to be *always*
9724   # included in the symbol list
9725   include_expsyms=
9726   # exclude_expsyms can be an extended regexp of symbols to exclude
9727   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9728   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9729   # as well as any symbol that contains `d'.
9730   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9731   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9732   # platforms (ab)use it in PIC code, but their linkers get confused if
9733   # the symbol is explicitly referenced.  Since portable code cannot
9734   # rely on this symbol name, it's probably fine to never include it in
9735   # preloaded symbol tables.
9736   # Exclude shared library initialization/finalization symbols.
9737   extract_expsyms_cmds=
9739   case $host_os in
9740   cygwin* | mingw* | pw32* | cegcc*)
9741     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9742     # When not using gcc, we currently assume that we are using
9743     # Microsoft Visual C++.
9744     if test "$GCC" != yes; then
9745       with_gnu_ld=no
9746     fi
9747     ;;
9748   interix*)
9749     # we just hope/assume this is gcc and not c89 (= MSVC++)
9750     with_gnu_ld=yes
9751     ;;
9752   openbsd*)
9753     with_gnu_ld=no
9754     ;;
9755   esac
9757   ld_shlibs=yes
9758   if test "$with_gnu_ld" = yes; then
9759     # If archive_cmds runs LD, not CC, wlarc should be empty
9760     wlarc='${wl}'
9762     # Set some defaults for GNU ld with shared library support. These
9763     # are reset later if shared libraries are not supported. Putting them
9764     # here allows them to be overridden if necessary.
9765     runpath_var=LD_RUN_PATH
9766     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9767     export_dynamic_flag_spec='${wl}--export-dynamic'
9768     # ancient GNU ld didn't support --whole-archive et. al.
9769     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9770       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9771     else
9772       whole_archive_flag_spec=
9773     fi
9774     supports_anon_versioning=no
9775     case `$LD -v 2>&1` in
9776       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9777       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9778       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9779       *\ 2.11.*) ;; # other 2.11 versions
9780       *) supports_anon_versioning=yes ;;
9781     esac
9783     # See if GNU ld supports shared libraries.
9784     case $host_os in
9785     aix[3-9]*)
9786       # On AIX/PPC, the GNU linker is very broken
9787       if test "$host_cpu" != ia64; then
9788         ld_shlibs=no
9789         cat <<_LT_EOF 1>&2
9791 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9792 *** to be unable to reliably create shared libraries on AIX.
9793 *** Therefore, libtool is disabling shared libraries support.  If you
9794 *** really care for shared libraries, you may want to modify your PATH
9795 *** so that a non-GNU linker is found, and then restart.
9797 _LT_EOF
9798       fi
9799       ;;
9801     amigaos*)
9802       case $host_cpu in
9803       powerpc)
9804             # see comment about AmigaOS4 .so support
9805             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9806             archive_expsym_cmds=''
9807         ;;
9808       m68k)
9809             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)'
9810             hardcode_libdir_flag_spec='-L$libdir'
9811             hardcode_minus_L=yes
9812         ;;
9813       esac
9814       ;;
9816     beos*)
9817       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9818         allow_undefined_flag=unsupported
9819         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9820         # support --undefined.  This deserves some investigation.  FIXME
9821         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822       else
9823         ld_shlibs=no
9824       fi
9825       ;;
9827     cygwin* | mingw* | pw32* | cegcc*)
9828       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9829       # as there is no search path for DLLs.
9830       hardcode_libdir_flag_spec='-L$libdir'
9831       allow_undefined_flag=unsupported
9832       always_export_symbols=no
9833       enable_shared_with_static_runtimes=yes
9834       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9836       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9837         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9838         # If the export-symbols file already is a .def file (1st line
9839         # is EXPORTS), use it as is; otherwise, prepend...
9840         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9841           cp $export_symbols $output_objdir/$soname.def;
9842         else
9843           echo EXPORTS > $output_objdir/$soname.def;
9844           cat $export_symbols >> $output_objdir/$soname.def;
9845         fi~
9846         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9847       else
9848         ld_shlibs=no
9849       fi
9850       ;;
9852     interix[3-9]*)
9853       hardcode_direct=no
9854       hardcode_shlibpath_var=no
9855       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9856       export_dynamic_flag_spec='${wl}-E'
9857       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9858       # Instead, shared libraries are loaded at an image base (0x10000000 by
9859       # default) and relocated if they conflict, which is a slow very memory
9860       # consuming and fragmenting process.  To avoid this, we pick a random,
9861       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9862       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9863       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9864       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'
9865       ;;
9867     gnu* | linux* | tpf* | k*bsd*-gnu)
9868       tmp_diet=no
9869       if test "$host_os" = linux-dietlibc; then
9870         case $cc_basename in
9871           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9872         esac
9873       fi
9874       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9875          && test "$tmp_diet" = no
9876       then
9877         tmp_addflag=
9878         tmp_sharedflag='-shared'
9879         case $cc_basename,$host_cpu in
9880         pgcc*)                          # Portland Group C compiler
9881           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'
9882           tmp_addflag=' $pic_flag'
9883           ;;
9884         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9885           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'
9886           tmp_addflag=' $pic_flag -Mnomain' ;;
9887         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9888           tmp_addflag=' -i_dynamic' ;;
9889         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9890           tmp_addflag=' -i_dynamic -nofor_main' ;;
9891         ifc* | ifort*)                  # Intel Fortran compiler
9892           tmp_addflag=' -nofor_main' ;;
9893         lf95*)                          # Lahey Fortran 8.1
9894           whole_archive_flag_spec=
9895           tmp_sharedflag='--shared' ;;
9896         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9897           tmp_sharedflag='-qmkshrobj'
9898           tmp_addflag= ;;
9899         esac
9900         case `$CC -V 2>&1 | sed 5q` in
9901         *Sun\ C*)                       # Sun C 5.9
9902           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'
9903           compiler_needs_object=yes
9904           tmp_sharedflag='-G' ;;
9905         *Sun\ F*)                       # Sun Fortran 8.3
9906           tmp_sharedflag='-G' ;;
9907         esac
9908         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910         if test "x$supports_anon_versioning" = xyes; then
9911           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9912             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9913             echo "local: *; };" >> $output_objdir/$libname.ver~
9914             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9915         fi
9917         case $cc_basename in
9918         xlf*)
9919           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9920           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9921           hardcode_libdir_flag_spec=
9922           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9923           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9924           if test "x$supports_anon_versioning" = xyes; then
9925             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9926               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9927               echo "local: *; };" >> $output_objdir/$libname.ver~
9928               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9929           fi
9930           ;;
9931         esac
9932       else
9933         ld_shlibs=no
9934       fi
9935       ;;
9937     netbsd*)
9938       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9939         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9940         wlarc=
9941       else
9942         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9943         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9944       fi
9945       ;;
9947     solaris*)
9948       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9949         ld_shlibs=no
9950         cat <<_LT_EOF 1>&2
9952 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9953 *** create shared libraries on Solaris systems.  Therefore, libtool
9954 *** is disabling shared libraries support.  We urge you to upgrade GNU
9955 *** binutils to release 2.9.1 or newer.  Another option is to modify
9956 *** your PATH or compiler configuration so that the native linker is
9957 *** used, and then restart.
9959 _LT_EOF
9960       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963       else
9964         ld_shlibs=no
9965       fi
9966       ;;
9968     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9969       case `$LD -v 2>&1` in
9970         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9971         ld_shlibs=no
9972         cat <<_LT_EOF 1>&2
9974 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9975 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9976 *** is disabling shared libraries support.  We urge you to upgrade GNU
9977 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9978 *** your PATH or compiler configuration so that the native linker is
9979 *** used, and then restart.
9981 _LT_EOF
9982         ;;
9983         *)
9984           # For security reasons, it is highly recommended that you always
9985           # use absolute paths for naming shared libraries, and exclude the
9986           # DT_RUNPATH tag from executables and libraries.  But doing so
9987           # requires that you compile everything twice, which is a pain.
9988           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9989             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9991             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9992           else
9993             ld_shlibs=no
9994           fi
9995         ;;
9996       esac
9997       ;;
9999     sunos4*)
10000       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10001       wlarc=
10002       hardcode_direct=yes
10003       hardcode_shlibpath_var=no
10004       ;;
10006     *)
10007       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10008         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10010       else
10011         ld_shlibs=no
10012       fi
10013       ;;
10014     esac
10016     if test "$ld_shlibs" = no; then
10017       runpath_var=
10018       hardcode_libdir_flag_spec=
10019       export_dynamic_flag_spec=
10020       whole_archive_flag_spec=
10021     fi
10022   else
10023     # PORTME fill in a description of your system's linker (not GNU ld)
10024     case $host_os in
10025     aix3*)
10026       allow_undefined_flag=unsupported
10027       always_export_symbols=yes
10028       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'
10029       # Note: this linker hardcodes the directories in LIBPATH if there
10030       # are no directories specified by -L.
10031       hardcode_minus_L=yes
10032       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10033         # Neither direct hardcoding nor static linking is supported with a
10034         # broken collect2.
10035         hardcode_direct=unsupported
10036       fi
10037       ;;
10039     aix[4-9]*)
10040       if test "$host_cpu" = ia64; then
10041         # On IA64, the linker does run time linking by default, so we don't
10042         # have to do anything special.
10043         aix_use_runtimelinking=no
10044         exp_sym_flag='-Bexport'
10045         no_entry_flag=""
10046       else
10047         # If we're using GNU nm, then we don't want the "-C" option.
10048         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10049         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10050           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'
10051         else
10052           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'
10053         fi
10054         aix_use_runtimelinking=no
10056         # Test if we are trying to use run time linking or normal
10057         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10058         # need to do runtime linking.
10059         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10060           for ld_flag in $LDFLAGS; do
10061           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10062             aix_use_runtimelinking=yes
10063             break
10064           fi
10065           done
10066           ;;
10067         esac
10069         exp_sym_flag='-bexport'
10070         no_entry_flag='-bnoentry'
10071       fi
10073       # When large executables or shared objects are built, AIX ld can
10074       # have problems creating the table of contents.  If linking a library
10075       # or program results in "error TOC overflow" add -mminimal-toc to
10076       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10077       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10079       archive_cmds=''
10080       hardcode_direct=yes
10081       hardcode_direct_absolute=yes
10082       hardcode_libdir_separator=':'
10083       link_all_deplibs=yes
10084       file_list_spec='${wl}-f,'
10086       if test "$GCC" = yes; then
10087         case $host_os in aix4.[012]|aix4.[012].*)
10088         # We only want to do this on AIX 4.2 and lower, the check
10089         # below for broken collect2 doesn't work under 4.3+
10090           collect2name=`${CC} -print-prog-name=collect2`
10091           if test -f "$collect2name" &&
10092            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10093           then
10094           # We have reworked collect2
10095           :
10096           else
10097           # We have old collect2
10098           hardcode_direct=unsupported
10099           # It fails to find uninstalled libraries when the uninstalled
10100           # path is not listed in the libpath.  Setting hardcode_minus_L
10101           # to unsupported forces relinking
10102           hardcode_minus_L=yes
10103           hardcode_libdir_flag_spec='-L$libdir'
10104           hardcode_libdir_separator=
10105           fi
10106           ;;
10107         esac
10108         shared_flag='-shared'
10109         if test "$aix_use_runtimelinking" = yes; then
10110           shared_flag="$shared_flag "'${wl}-G'
10111         fi
10112       else
10113         # not using gcc
10114         if test "$host_cpu" = ia64; then
10115         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10116         # chokes on -Wl,-G. The following line is correct:
10117           shared_flag='-G'
10118         else
10119           if test "$aix_use_runtimelinking" = yes; then
10120             shared_flag='${wl}-G'
10121           else
10122             shared_flag='${wl}-bM:SRE'
10123           fi
10124         fi
10125       fi
10127       export_dynamic_flag_spec='${wl}-bexpall'
10128       # It seems that -bexpall does not export symbols beginning with
10129       # underscore (_), so it is better to generate a list of symbols to export.
10130       always_export_symbols=yes
10131       if test "$aix_use_runtimelinking" = yes; then
10132         # Warning - without using the other runtime loading flags (-brtl),
10133         # -berok will link without error, but may produce a broken library.
10134         allow_undefined_flag='-berok'
10135         # Determine the default libpath from the value encoded in an
10136         # empty executable.
10137         cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h.  */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h.  */
10144 int
10145 main ()
10148   ;
10149   return 0;
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10159 $as_echo "$ac_try_echo") >&5
10160   (eval "$ac_link") 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } && {
10167          test -z "$ac_c_werror_flag" ||
10168          test ! -s conftest.err
10169        } && test -s conftest$ac_exeext && {
10170          test "$cross_compiling" = yes ||
10171          $as_test_x conftest$ac_exeext
10172        }; then
10174 lt_aix_libpath_sed='
10175     /Import File Strings/,/^$/ {
10176         /^0/ {
10177             s/^0  *\(.*\)$/\1/
10178             p
10179         }
10180     }'
10181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10182 # Check for a 64-bit object if we didn't find anything.
10183 if test -z "$aix_libpath"; then
10184   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10186 else
10187   $as_echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10193 rm -rf conftest.dSYM
10194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195       conftest$ac_exeext conftest.$ac_ext
10196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10198         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10199         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"
10200       else
10201         if test "$host_cpu" = ia64; then
10202           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10203           allow_undefined_flag="-z nodefs"
10204           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"
10205         else
10206          # Determine the default libpath from the value encoded in an
10207          # empty executable.
10208          cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h.  */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h.  */
10215 int
10216 main ()
10219   ;
10220   return 0;
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10230 $as_echo "$ac_try_echo") >&5
10231   (eval "$ac_link") 2>conftest.er1
10232   ac_status=$?
10233   grep -v '^ *+' conftest.er1 >conftest.err
10234   rm -f conftest.er1
10235   cat conftest.err >&5
10236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } && {
10238          test -z "$ac_c_werror_flag" ||
10239          test ! -s conftest.err
10240        } && test -s conftest$ac_exeext && {
10241          test "$cross_compiling" = yes ||
10242          $as_test_x conftest$ac_exeext
10243        }; then
10245 lt_aix_libpath_sed='
10246     /Import File Strings/,/^$/ {
10247         /^0/ {
10248             s/^0  *\(.*\)$/\1/
10249             p
10250         }
10251     }'
10252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10253 # Check for a 64-bit object if we didn't find anything.
10254 if test -z "$aix_libpath"; then
10255   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10257 else
10258   $as_echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10264 rm -rf conftest.dSYM
10265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10266       conftest$ac_exeext conftest.$ac_ext
10267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10269          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10270           # Warning - without using the other run time loading flags,
10271           # -berok will link without error, but may produce a broken library.
10272           no_undefined_flag=' ${wl}-bernotok'
10273           allow_undefined_flag=' ${wl}-berok'
10274           # Exported symbols can be pulled into shared objects from archives
10275           whole_archive_flag_spec='$convenience'
10276           archive_cmds_need_lc=yes
10277           # This is similar to how AIX traditionally builds its shared libraries.
10278           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'
10279         fi
10280       fi
10281       ;;
10283     amigaos*)
10284       case $host_cpu in
10285       powerpc)
10286             # see comment about AmigaOS4 .so support
10287             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10288             archive_expsym_cmds=''
10289         ;;
10290       m68k)
10291             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)'
10292             hardcode_libdir_flag_spec='-L$libdir'
10293             hardcode_minus_L=yes
10294         ;;
10295       esac
10296       ;;
10298     bsdi[45]*)
10299       export_dynamic_flag_spec=-rdynamic
10300       ;;
10302     cygwin* | mingw* | pw32* | cegcc*)
10303       # When not using gcc, we currently assume that we are using
10304       # Microsoft Visual C++.
10305       # hardcode_libdir_flag_spec is actually meaningless, as there is
10306       # no search path for DLLs.
10307       hardcode_libdir_flag_spec=' '
10308       allow_undefined_flag=unsupported
10309       # Tell ltmain to make .lib files, not .a files.
10310       libext=lib
10311       # Tell ltmain to make .dll files, not .so files.
10312       shrext_cmds=".dll"
10313       # FIXME: Setting linknames here is a bad hack.
10314       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10315       # The linker will automatically build a .lib file if we build a DLL.
10316       old_archive_from_new_cmds='true'
10317       # FIXME: Should let the user specify the lib program.
10318       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10319       fix_srcfile_path='`cygpath -w "$srcfile"`'
10320       enable_shared_with_static_runtimes=yes
10321       ;;
10323     darwin* | rhapsody*)
10326   archive_cmds_need_lc=no
10327   hardcode_direct=no
10328   hardcode_automatic=yes
10329   hardcode_shlibpath_var=unsupported
10330   whole_archive_flag_spec=''
10331   link_all_deplibs=yes
10332   allow_undefined_flag="$_lt_dar_allow_undefined"
10333   case $cc_basename in
10334      ifort*) _lt_dar_can_shared=yes ;;
10335      *) _lt_dar_can_shared=$GCC ;;
10336   esac
10337   if test "$_lt_dar_can_shared" = "yes"; then
10338     output_verbose_link_cmd=echo
10339     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10340     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10341     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}"
10342     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}"
10344   else
10345   ld_shlibs=no
10346   fi
10348       ;;
10350     dgux*)
10351       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352       hardcode_libdir_flag_spec='-L$libdir'
10353       hardcode_shlibpath_var=no
10354       ;;
10356     freebsd1*)
10357       ld_shlibs=no
10358       ;;
10360     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10361     # support.  Future versions do this automatically, but an explicit c++rt0.o
10362     # does not break anything, and helps significantly (at the cost of a little
10363     # extra space).
10364     freebsd2.2*)
10365       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10366       hardcode_libdir_flag_spec='-R$libdir'
10367       hardcode_direct=yes
10368       hardcode_shlibpath_var=no
10369       ;;
10371     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10372     freebsd2*)
10373       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10374       hardcode_direct=yes
10375       hardcode_minus_L=yes
10376       hardcode_shlibpath_var=no
10377       ;;
10379     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10380     freebsd* | dragonfly*)
10381       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10382       hardcode_libdir_flag_spec='-R$libdir'
10383       hardcode_direct=yes
10384       hardcode_shlibpath_var=no
10385       ;;
10387     hpux9*)
10388       if test "$GCC" = yes; then
10389         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'
10390       else
10391         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'
10392       fi
10393       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10394       hardcode_libdir_separator=:
10395       hardcode_direct=yes
10397       # hardcode_minus_L: Not really in the search PATH,
10398       # but as the default location of the library.
10399       hardcode_minus_L=yes
10400       export_dynamic_flag_spec='${wl}-E'
10401       ;;
10403     hpux10*)
10404       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10405         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10406       else
10407         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10408       fi
10409       if test "$with_gnu_ld" = no; then
10410         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10411         hardcode_libdir_flag_spec_ld='+b $libdir'
10412         hardcode_libdir_separator=:
10413         hardcode_direct=yes
10414         hardcode_direct_absolute=yes
10415         export_dynamic_flag_spec='${wl}-E'
10416         # hardcode_minus_L: Not really in the search PATH,
10417         # but as the default location of the library.
10418         hardcode_minus_L=yes
10419       fi
10420       ;;
10422     hpux11*)
10423       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10424         case $host_cpu in
10425         hppa*64*)
10426           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10427           ;;
10428         ia64*)
10429           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10430           ;;
10431         *)
10432           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10433           ;;
10434         esac
10435       else
10436         case $host_cpu in
10437         hppa*64*)
10438           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10439           ;;
10440         ia64*)
10441           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10442           ;;
10443         *)
10444           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10445           ;;
10446         esac
10447       fi
10448       if test "$with_gnu_ld" = no; then
10449         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10450         hardcode_libdir_separator=:
10452         case $host_cpu in
10453         hppa*64*|ia64*)
10454           hardcode_direct=no
10455           hardcode_shlibpath_var=no
10456           ;;
10457         *)
10458           hardcode_direct=yes
10459           hardcode_direct_absolute=yes
10460           export_dynamic_flag_spec='${wl}-E'
10462           # hardcode_minus_L: Not really in the search PATH,
10463           # but as the default location of the library.
10464           hardcode_minus_L=yes
10465           ;;
10466         esac
10467       fi
10468       ;;
10470     irix5* | irix6* | nonstopux*)
10471       if test "$GCC" = yes; then
10472         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'
10473         # Try to use the -exported_symbol ld option, if it does not
10474         # work, assume that -exports_file does not work either and
10475         # implicitly export all symbols.
10476         save_LDFLAGS="$LDFLAGS"
10477         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10478         cat >conftest.$ac_ext <<_ACEOF
10479 int foo(void) {}
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485   *) ac_try_echo=$ac_try;;
10486 esac
10487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489   (eval "$ac_link") 2>conftest.er1
10490   ac_status=$?
10491   grep -v '^ *+' conftest.er1 >conftest.err
10492   rm -f conftest.er1
10493   cat conftest.err >&5
10494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); } && {
10496          test -z "$ac_c_werror_flag" ||
10497          test ! -s conftest.err
10498        } && test -s conftest$ac_exeext && {
10499          test "$cross_compiling" = yes ||
10500          $as_test_x conftest$ac_exeext
10501        }; then
10502   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'
10504 else
10505   $as_echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10511 rm -rf conftest.dSYM
10512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10513       conftest$ac_exeext conftest.$ac_ext
10514         LDFLAGS="$save_LDFLAGS"
10515       else
10516         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'
10517         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'
10518       fi
10519       archive_cmds_need_lc='no'
10520       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10521       hardcode_libdir_separator=:
10522       inherit_rpath=yes
10523       link_all_deplibs=yes
10524       ;;
10526     netbsd*)
10527       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10528         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10529       else
10530         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10531       fi
10532       hardcode_libdir_flag_spec='-R$libdir'
10533       hardcode_direct=yes
10534       hardcode_shlibpath_var=no
10535       ;;
10537     newsos6)
10538       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10539       hardcode_direct=yes
10540       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541       hardcode_libdir_separator=:
10542       hardcode_shlibpath_var=no
10543       ;;
10545     *nto* | *qnx*)
10546       ;;
10548     openbsd*)
10549       if test -f /usr/libexec/ld.so; then
10550         hardcode_direct=yes
10551         hardcode_shlibpath_var=no
10552         hardcode_direct_absolute=yes
10553         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10554           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10555           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10556           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10557           export_dynamic_flag_spec='${wl}-E'
10558         else
10559           case $host_os in
10560            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10561              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10562              hardcode_libdir_flag_spec='-R$libdir'
10563              ;;
10564            *)
10565              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10566              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10567              ;;
10568           esac
10569         fi
10570       else
10571         ld_shlibs=no
10572       fi
10573       ;;
10575     os2*)
10576       hardcode_libdir_flag_spec='-L$libdir'
10577       hardcode_minus_L=yes
10578       allow_undefined_flag=unsupported
10579       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'
10580       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10581       ;;
10583     osf3*)
10584       if test "$GCC" = yes; then
10585         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10586         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'
10587       else
10588         allow_undefined_flag=' -expect_unresolved \*'
10589         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'
10590       fi
10591       archive_cmds_need_lc='no'
10592       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10593       hardcode_libdir_separator=:
10594       ;;
10596     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10597       if test "$GCC" = yes; then
10598         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10599         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'
10600         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10601       else
10602         allow_undefined_flag=' -expect_unresolved \*'
10603         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'
10604         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~
10605         $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'
10607         # Both c and cxx compiler support -rpath directly
10608         hardcode_libdir_flag_spec='-rpath $libdir'
10609       fi
10610       archive_cmds_need_lc='no'
10611       hardcode_libdir_separator=:
10612       ;;
10614     solaris*)
10615       no_undefined_flag=' -z defs'
10616       if test "$GCC" = yes; then
10617         wlarc='${wl}'
10618         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10619         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10620           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10621       else
10622         case `$CC -V 2>&1` in
10623         *"Compilers 5.0"*)
10624           wlarc=''
10625           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10627           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10628           ;;
10629         *)
10630           wlarc='${wl}'
10631           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10632           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10633           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10634           ;;
10635         esac
10636       fi
10637       hardcode_libdir_flag_spec='-R$libdir'
10638       hardcode_shlibpath_var=no
10639       case $host_os in
10640       solaris2.[0-5] | solaris2.[0-5].*) ;;
10641       *)
10642         # The compiler driver will combine and reorder linker options,
10643         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10644         # but is careful enough not to reorder.
10645         # Supported since Solaris 2.6 (maybe 2.5.1?)
10646         if test "$GCC" = yes; then
10647           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10648         else
10649           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10650         fi
10651         ;;
10652       esac
10653       link_all_deplibs=yes
10654       ;;
10656     sunos4*)
10657       if test "x$host_vendor" = xsequent; then
10658         # Use $CC to link under sequent, because it throws in some extra .o
10659         # files that make .init and .fini sections work.
10660         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10661       else
10662         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10663       fi
10664       hardcode_libdir_flag_spec='-L$libdir'
10665       hardcode_direct=yes
10666       hardcode_minus_L=yes
10667       hardcode_shlibpath_var=no
10668       ;;
10670     sysv4)
10671       case $host_vendor in
10672         sni)
10673           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674           hardcode_direct=yes # is this really true???
10675         ;;
10676         siemens)
10677           ## LD is ld it makes a PLAMLIB
10678           ## CC just makes a GrossModule.
10679           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10680           reload_cmds='$CC -r -o $output$reload_objs'
10681           hardcode_direct=no
10682         ;;
10683         motorola)
10684           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10685           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10686         ;;
10687       esac
10688       runpath_var='LD_RUN_PATH'
10689       hardcode_shlibpath_var=no
10690       ;;
10692     sysv4.3*)
10693       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694       hardcode_shlibpath_var=no
10695       export_dynamic_flag_spec='-Bexport'
10696       ;;
10698     sysv4*MP*)
10699       if test -d /usr/nec; then
10700         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701         hardcode_shlibpath_var=no
10702         runpath_var=LD_RUN_PATH
10703         hardcode_runpath_var=yes
10704         ld_shlibs=yes
10705       fi
10706       ;;
10708     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10709       no_undefined_flag='${wl}-z,text'
10710       archive_cmds_need_lc=no
10711       hardcode_shlibpath_var=no
10712       runpath_var='LD_RUN_PATH'
10714       if test "$GCC" = yes; then
10715         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10716         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717       else
10718         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720       fi
10721       ;;
10723     sysv5* | sco3.2v5* | sco5v6*)
10724       # Note: We can NOT use -z defs as we might desire, because we do not
10725       # link with -lc, and that would cause any symbols used from libc to
10726       # always be unresolved, which means just about no library would
10727       # ever link correctly.  If we're not using GNU ld we use -z text
10728       # though, which does catch some bad symbols but isn't as heavy-handed
10729       # as -z defs.
10730       no_undefined_flag='${wl}-z,text'
10731       allow_undefined_flag='${wl}-z,nodefs'
10732       archive_cmds_need_lc=no
10733       hardcode_shlibpath_var=no
10734       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10735       hardcode_libdir_separator=':'
10736       link_all_deplibs=yes
10737       export_dynamic_flag_spec='${wl}-Bexport'
10738       runpath_var='LD_RUN_PATH'
10740       if test "$GCC" = yes; then
10741         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10742         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743       else
10744         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10746       fi
10747       ;;
10749     uts4*)
10750       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10751       hardcode_libdir_flag_spec='-L$libdir'
10752       hardcode_shlibpath_var=no
10753       ;;
10755     *)
10756       ld_shlibs=no
10757       ;;
10758     esac
10760     if test x$host_vendor = xsni; then
10761       case $host in
10762       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10763         export_dynamic_flag_spec='${wl}-Blargedynsym'
10764         ;;
10765       esac
10766     fi
10767   fi
10769 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10770 $as_echo "$ld_shlibs" >&6; }
10771 test "$ld_shlibs" = no && can_build_shared=no
10773 with_gnu_ld=$with_gnu_ld
10790 # Do we need to explicitly link libc?
10792 case "x$archive_cmds_need_lc" in
10793 x|xyes)
10794   # Assume -lc should be added
10795   archive_cmds_need_lc=yes
10797   if test "$enable_shared" = yes && test "$GCC" = yes; then
10798     case $archive_cmds in
10799     *'~'*)
10800       # FIXME: we may have to deal with multi-command sequences.
10801       ;;
10802     '$CC '*)
10803       # Test whether the compiler implicitly links with -lc since on some
10804       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10805       # to ld, don't add -lc before -lgcc.
10806       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10807 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10808       $RM conftest*
10809       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10811       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812   (eval $ac_compile) 2>&5
10813   ac_status=$?
10814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); } 2>conftest.err; then
10816         soname=conftest
10817         lib=conftest
10818         libobjs=conftest.$ac_objext
10819         deplibs=
10820         wl=$lt_prog_compiler_wl
10821         pic_flag=$lt_prog_compiler_pic
10822         compiler_flags=-v
10823         linker_flags=-v
10824         verstring=
10825         output_objdir=.
10826         libname=conftest
10827         lt_save_allow_undefined_flag=$allow_undefined_flag
10828         allow_undefined_flag=
10829         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10830   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10831   ac_status=$?
10832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }
10834         then
10835           archive_cmds_need_lc=no
10836         else
10837           archive_cmds_need_lc=yes
10838         fi
10839         allow_undefined_flag=$lt_save_allow_undefined_flag
10840       else
10841         cat conftest.err 1>&5
10842       fi
10843       $RM conftest*
10844       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10845 $as_echo "$archive_cmds_need_lc" >&6; }
10846       ;;
10847     esac
10848   fi
10849   ;;
10850 esac
11008   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11009 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11011 if test "$GCC" = yes; then
11012   case $host_os in
11013     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11014     *) lt_awk_arg="/^libraries:/" ;;
11015   esac
11016   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11017   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11018     # if the path contains ";" then we assume it to be the separator
11019     # otherwise default to the standard path separator (i.e. ":") - it is
11020     # assumed that no part of a normal pathname contains ";" but that should
11021     # okay in the real world where ";" in dirpaths is itself problematic.
11022     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11023   else
11024     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11025   fi
11026   # Ok, now we have the path, separated by spaces, we can step through it
11027   # and add multilib dir if necessary.
11028   lt_tmp_lt_search_path_spec=
11029   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11030   for lt_sys_path in $lt_search_path_spec; do
11031     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11032       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11033     else
11034       test -d "$lt_sys_path" && \
11035         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11036     fi
11037   done
11038   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11039 BEGIN {RS=" "; FS="/|\n";} {
11040   lt_foo="";
11041   lt_count=0;
11042   for (lt_i = NF; lt_i > 0; lt_i--) {
11043     if ($lt_i != "" && $lt_i != ".") {
11044       if ($lt_i == "..") {
11045         lt_count++;
11046       } else {
11047         if (lt_count == 0) {
11048           lt_foo="/" $lt_i lt_foo;
11049         } else {
11050           lt_count--;
11051         }
11052       }
11053     }
11054   }
11055   if (lt_foo != "") { lt_freq[lt_foo]++; }
11056   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11057 }'`
11058   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11059 else
11060   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11062 library_names_spec=
11063 libname_spec='lib$name'
11064 soname_spec=
11065 shrext_cmds=".so"
11066 postinstall_cmds=
11067 postuninstall_cmds=
11068 finish_cmds=
11069 finish_eval=
11070 shlibpath_var=
11071 shlibpath_overrides_runpath=unknown
11072 version_type=none
11073 dynamic_linker="$host_os ld.so"
11074 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11075 need_lib_prefix=unknown
11076 hardcode_into_libs=no
11078 # when you set need_version to no, make sure it does not cause -set_version
11079 # flags to be left without arguments
11080 need_version=unknown
11082 case $host_os in
11083 aix3*)
11084   version_type=linux
11085   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11086   shlibpath_var=LIBPATH
11088   # AIX 3 has no versioning support, so we append a major version to the name.
11089   soname_spec='${libname}${release}${shared_ext}$major'
11090   ;;
11092 aix[4-9]*)
11093   version_type=linux
11094   need_lib_prefix=no
11095   need_version=no
11096   hardcode_into_libs=yes
11097   if test "$host_cpu" = ia64; then
11098     # AIX 5 supports IA64
11099     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11100     shlibpath_var=LD_LIBRARY_PATH
11101   else
11102     # With GCC up to 2.95.x, collect2 would create an import file
11103     # for dependence libraries.  The import file would start with
11104     # the line `#! .'.  This would cause the generated library to
11105     # depend on `.', always an invalid library.  This was fixed in
11106     # development snapshots of GCC prior to 3.0.
11107     case $host_os in
11108       aix4 | aix4.[01] | aix4.[01].*)
11109       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11110            echo ' yes '
11111            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11112         :
11113       else
11114         can_build_shared=no
11115       fi
11116       ;;
11117     esac
11118     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11119     # soname into executable. Probably we can add versioning support to
11120     # collect2, so additional links can be useful in future.
11121     if test "$aix_use_runtimelinking" = yes; then
11122       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11123       # instead of lib<name>.a to let people know that these are not
11124       # typical AIX shared libraries.
11125       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126     else
11127       # We preserve .a as extension for shared libraries through AIX4.2
11128       # and later when we are not doing run time linking.
11129       library_names_spec='${libname}${release}.a $libname.a'
11130       soname_spec='${libname}${release}${shared_ext}$major'
11131     fi
11132     shlibpath_var=LIBPATH
11133   fi
11134   ;;
11136 amigaos*)
11137   case $host_cpu in
11138   powerpc)
11139     # Since July 2007 AmigaOS4 officially supports .so libraries.
11140     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142     ;;
11143   m68k)
11144     library_names_spec='$libname.ixlibrary $libname.a'
11145     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11146     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'
11147     ;;
11148   esac
11149   ;;
11151 beos*)
11152   library_names_spec='${libname}${shared_ext}'
11153   dynamic_linker="$host_os ld.so"
11154   shlibpath_var=LIBRARY_PATH
11155   ;;
11157 bsdi[45]*)
11158   version_type=linux
11159   need_version=no
11160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161   soname_spec='${libname}${release}${shared_ext}$major'
11162   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11163   shlibpath_var=LD_LIBRARY_PATH
11164   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11165   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11166   # the default ld.so.conf also contains /usr/contrib/lib and
11167   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11168   # libtool to hard-code these into programs
11169   ;;
11171 cygwin* | mingw* | pw32* | cegcc*)
11172   version_type=windows
11173   shrext_cmds=".dll"
11174   need_version=no
11175   need_lib_prefix=no
11177   case $GCC,$host_os in
11178   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11179     library_names_spec='$libname.dll.a'
11180     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11181     postinstall_cmds='base_file=`basename \${file}`~
11182       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11183       dldir=$destdir/`dirname \$dlpath`~
11184       test -d \$dldir || mkdir -p \$dldir~
11185       $install_prog $dir/$dlname \$dldir/$dlname~
11186       chmod a+x \$dldir/$dlname~
11187       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11188         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11189       fi'
11190     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11191       dlpath=$dir/\$dldll~
11192        $RM \$dlpath'
11193     shlibpath_overrides_runpath=yes
11195     case $host_os in
11196     cygwin*)
11197       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11198       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11199       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11200       ;;
11201     mingw* | cegcc*)
11202       # MinGW DLLs use traditional 'lib' prefix
11203       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11204       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11205       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11206         # It is most probably a Windows format PATH printed by
11207         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11208         # path with ; separators, and with drive letters. We can handle the
11209         # drive letters (cygwin fileutils understands them), so leave them,
11210         # especially as we might pass files found there to a mingw objdump,
11211         # which wouldn't understand a cygwinified path. Ahh.
11212         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11213       else
11214         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11215       fi
11216       ;;
11217     pw32*)
11218       # pw32 DLLs use 'pw' prefix rather than 'lib'
11219       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11220       ;;
11221     esac
11222     ;;
11224   *)
11225     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11226     ;;
11227   esac
11228   dynamic_linker='Win32 ld.exe'
11229   # FIXME: first we should search . and the directory the executable is in
11230   shlibpath_var=PATH
11231   ;;
11233 darwin* | rhapsody*)
11234   dynamic_linker="$host_os dyld"
11235   version_type=darwin
11236   need_lib_prefix=no
11237   need_version=no
11238   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11239   soname_spec='${libname}${release}${major}$shared_ext'
11240   shlibpath_overrides_runpath=yes
11241   shlibpath_var=DYLD_LIBRARY_PATH
11242   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11244   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11245   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11246   ;;
11248 dgux*)
11249   version_type=linux
11250   need_lib_prefix=no
11251   need_version=no
11252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11253   soname_spec='${libname}${release}${shared_ext}$major'
11254   shlibpath_var=LD_LIBRARY_PATH
11255   ;;
11257 freebsd1*)
11258   dynamic_linker=no
11259   ;;
11261 freebsd* | dragonfly*)
11262   # DragonFly does not have aout.  When/if they implement a new
11263   # versioning mechanism, adjust this.
11264   if test -x /usr/bin/objformat; then
11265     objformat=`/usr/bin/objformat`
11266   else
11267     case $host_os in
11268     freebsd[123]*) objformat=aout ;;
11269     *) objformat=elf ;;
11270     esac
11271   fi
11272   version_type=freebsd-$objformat
11273   case $version_type in
11274     freebsd-elf*)
11275       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11276       need_version=no
11277       need_lib_prefix=no
11278       ;;
11279     freebsd-*)
11280       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11281       need_version=yes
11282       ;;
11283   esac
11284   shlibpath_var=LD_LIBRARY_PATH
11285   case $host_os in
11286   freebsd2*)
11287     shlibpath_overrides_runpath=yes
11288     ;;
11289   freebsd3.[01]* | freebsdelf3.[01]*)
11290     shlibpath_overrides_runpath=yes
11291     hardcode_into_libs=yes
11292     ;;
11293   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11294   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11295     shlibpath_overrides_runpath=no
11296     hardcode_into_libs=yes
11297     ;;
11298   *) # from 4.6 on, and DragonFly
11299     shlibpath_overrides_runpath=yes
11300     hardcode_into_libs=yes
11301     ;;
11302   esac
11303   ;;
11305 gnu*)
11306   version_type=linux
11307   need_lib_prefix=no
11308   need_version=no
11309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11310   soname_spec='${libname}${release}${shared_ext}$major'
11311   shlibpath_var=LD_LIBRARY_PATH
11312   hardcode_into_libs=yes
11313   ;;
11315 hpux9* | hpux10* | hpux11*)
11316   # Give a soname corresponding to the major version so that dld.sl refuses to
11317   # link against other versions.
11318   version_type=sunos
11319   need_lib_prefix=no
11320   need_version=no
11321   case $host_cpu in
11322   ia64*)
11323     shrext_cmds='.so'
11324     hardcode_into_libs=yes
11325     dynamic_linker="$host_os dld.so"
11326     shlibpath_var=LD_LIBRARY_PATH
11327     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329     soname_spec='${libname}${release}${shared_ext}$major'
11330     if test "X$HPUX_IA64_MODE" = X32; then
11331       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11332     else
11333       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11334     fi
11335     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11336     ;;
11337   hppa*64*)
11338     shrext_cmds='.sl'
11339     hardcode_into_libs=yes
11340     dynamic_linker="$host_os dld.sl"
11341     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11342     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344     soname_spec='${libname}${release}${shared_ext}$major'
11345     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11347     ;;
11348   *)
11349     shrext_cmds='.sl'
11350     dynamic_linker="$host_os dld.sl"
11351     shlibpath_var=SHLIB_PATH
11352     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354     soname_spec='${libname}${release}${shared_ext}$major'
11355     ;;
11356   esac
11357   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11358   postinstall_cmds='chmod 555 $lib'
11359   ;;
11361 interix[3-9]*)
11362   version_type=linux
11363   need_lib_prefix=no
11364   need_version=no
11365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366   soname_spec='${libname}${release}${shared_ext}$major'
11367   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11368   shlibpath_var=LD_LIBRARY_PATH
11369   shlibpath_overrides_runpath=no
11370   hardcode_into_libs=yes
11371   ;;
11373 irix5* | irix6* | nonstopux*)
11374   case $host_os in
11375     nonstopux*) version_type=nonstopux ;;
11376     *)
11377         if test "$lt_cv_prog_gnu_ld" = yes; then
11378                 version_type=linux
11379         else
11380                 version_type=irix
11381         fi ;;
11382   esac
11383   need_lib_prefix=no
11384   need_version=no
11385   soname_spec='${libname}${release}${shared_ext}$major'
11386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11387   case $host_os in
11388   irix5* | nonstopux*)
11389     libsuff= shlibsuff=
11390     ;;
11391   *)
11392     case $LD in # libtool.m4 will add one of these switches to LD
11393     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11394       libsuff= shlibsuff= libmagic=32-bit;;
11395     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11396       libsuff=32 shlibsuff=N32 libmagic=N32;;
11397     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11398       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11399     *) libsuff= shlibsuff= libmagic=never-match;;
11400     esac
11401     ;;
11402   esac
11403   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11404   shlibpath_overrides_runpath=no
11405   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11406   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11407   hardcode_into_libs=yes
11408   ;;
11410 # No shared lib support for Linux oldld, aout, or coff.
11411 linux*oldld* | linux*aout* | linux*coff*)
11412   dynamic_linker=no
11413   ;;
11415 # This must be Linux ELF.
11416 linux* | k*bsd*-gnu)
11417   version_type=linux
11418   need_lib_prefix=no
11419   need_version=no
11420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421   soname_spec='${libname}${release}${shared_ext}$major'
11422   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11423   shlibpath_var=LD_LIBRARY_PATH
11424   shlibpath_overrides_runpath=no
11425   # Some binutils ld are patched to set DT_RUNPATH
11426   save_LDFLAGS=$LDFLAGS
11427   save_libdir=$libdir
11428   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11429        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11430   cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h.  */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h.  */
11437 int
11438 main ()
11441   ;
11442   return 0;
11444 _ACEOF
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (ac_try="$ac_link"
11447 case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11452 $as_echo "$ac_try_echo") >&5
11453   (eval "$ac_link") 2>conftest.er1
11454   ac_status=$?
11455   grep -v '^ *+' conftest.er1 >conftest.err
11456   rm -f conftest.er1
11457   cat conftest.err >&5
11458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } && {
11460          test -z "$ac_c_werror_flag" ||
11461          test ! -s conftest.err
11462        } && test -s conftest$ac_exeext && {
11463          test "$cross_compiling" = yes ||
11464          $as_test_x conftest$ac_exeext
11465        }; then
11466   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11467   shlibpath_overrides_runpath=yes
11470 else
11471   $as_echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11477 rm -rf conftest.dSYM
11478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11479       conftest$ac_exeext conftest.$ac_ext
11480   LDFLAGS=$save_LDFLAGS
11481   libdir=$save_libdir
11483   # This implies no fast_install, which is unacceptable.
11484   # Some rework will be needed to allow for fast_install
11485   # before this can be enabled.
11486   hardcode_into_libs=yes
11488   # Append ld.so.conf contents to the search path
11489   if test -f /etc/ld.so.conf; then
11490     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' ' '`
11491     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11492   fi
11494   # We used to test for /lib/ld.so.1 and disable shared libraries on
11495   # powerpc, because MkLinux only supported shared libraries with the
11496   # GNU dynamic linker.  Since this was broken with cross compilers,
11497   # most powerpc-linux boxes support dynamic linking these days and
11498   # people can always --disable-shared, the test was removed, and we
11499   # assume the GNU/Linux dynamic linker is in use.
11500   dynamic_linker='GNU/Linux ld.so'
11501   ;;
11503 netbsd*)
11504   version_type=sunos
11505   need_lib_prefix=no
11506   need_version=no
11507   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510     dynamic_linker='NetBSD (a.out) ld.so'
11511   else
11512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11513     soname_spec='${libname}${release}${shared_ext}$major'
11514     dynamic_linker='NetBSD ld.elf_so'
11515   fi
11516   shlibpath_var=LD_LIBRARY_PATH
11517   shlibpath_overrides_runpath=yes
11518   hardcode_into_libs=yes
11519   ;;
11521 newsos6)
11522   version_type=linux
11523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524   shlibpath_var=LD_LIBRARY_PATH
11525   shlibpath_overrides_runpath=yes
11526   ;;
11528 *nto* | *qnx*)
11529   version_type=qnx
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533   soname_spec='${libname}${release}${shared_ext}$major'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   shlibpath_overrides_runpath=no
11536   hardcode_into_libs=yes
11537   dynamic_linker='ldqnx.so'
11538   ;;
11540 openbsd*)
11541   version_type=sunos
11542   sys_lib_dlsearch_path_spec="/usr/lib"
11543   need_lib_prefix=no
11544   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11545   case $host_os in
11546     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11547     *)                          need_version=no  ;;
11548   esac
11549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11551   shlibpath_var=LD_LIBRARY_PATH
11552   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11553     case $host_os in
11554       openbsd2.[89] | openbsd2.[89].*)
11555         shlibpath_overrides_runpath=no
11556         ;;
11557       *)
11558         shlibpath_overrides_runpath=yes
11559         ;;
11560       esac
11561   else
11562     shlibpath_overrides_runpath=yes
11563   fi
11564   ;;
11566 os2*)
11567   libname_spec='$name'
11568   shrext_cmds=".dll"
11569   need_lib_prefix=no
11570   library_names_spec='$libname${shared_ext} $libname.a'
11571   dynamic_linker='OS/2 ld.exe'
11572   shlibpath_var=LIBPATH
11573   ;;
11575 osf3* | osf4* | osf5*)
11576   version_type=osf
11577   need_lib_prefix=no
11578   need_version=no
11579   soname_spec='${libname}${release}${shared_ext}$major'
11580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581   shlibpath_var=LD_LIBRARY_PATH
11582   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11583   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11584   ;;
11586 rdos*)
11587   dynamic_linker=no
11588   ;;
11590 solaris*)
11591   version_type=linux
11592   need_lib_prefix=no
11593   need_version=no
11594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595   soname_spec='${libname}${release}${shared_ext}$major'
11596   shlibpath_var=LD_LIBRARY_PATH
11597   shlibpath_overrides_runpath=yes
11598   hardcode_into_libs=yes
11599   # ldd complains unless libraries are executable
11600   postinstall_cmds='chmod +x $lib'
11601   ;;
11603 sunos4*)
11604   version_type=sunos
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11606   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11607   shlibpath_var=LD_LIBRARY_PATH
11608   shlibpath_overrides_runpath=yes
11609   if test "$with_gnu_ld" = yes; then
11610     need_lib_prefix=no
11611   fi
11612   need_version=yes
11613   ;;
11615 sysv4 | sysv4.3*)
11616   version_type=linux
11617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618   soname_spec='${libname}${release}${shared_ext}$major'
11619   shlibpath_var=LD_LIBRARY_PATH
11620   case $host_vendor in
11621     sni)
11622       shlibpath_overrides_runpath=no
11623       need_lib_prefix=no
11624       runpath_var=LD_RUN_PATH
11625       ;;
11626     siemens)
11627       need_lib_prefix=no
11628       ;;
11629     motorola)
11630       need_lib_prefix=no
11631       need_version=no
11632       shlibpath_overrides_runpath=no
11633       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11634       ;;
11635   esac
11636   ;;
11638 sysv4*MP*)
11639   if test -d /usr/nec ;then
11640     version_type=linux
11641     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11642     soname_spec='$libname${shared_ext}.$major'
11643     shlibpath_var=LD_LIBRARY_PATH
11644   fi
11645   ;;
11647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11648   version_type=freebsd-elf
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11652   soname_spec='${libname}${release}${shared_ext}$major'
11653   shlibpath_var=LD_LIBRARY_PATH
11654   shlibpath_overrides_runpath=yes
11655   hardcode_into_libs=yes
11656   if test "$with_gnu_ld" = yes; then
11657     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11658   else
11659     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11660     case $host_os in
11661       sco3.2v5*)
11662         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11663         ;;
11664     esac
11665   fi
11666   sys_lib_dlsearch_path_spec='/usr/lib'
11667   ;;
11669 tpf*)
11670   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11671   version_type=linux
11672   need_lib_prefix=no
11673   need_version=no
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675   shlibpath_var=LD_LIBRARY_PATH
11676   shlibpath_overrides_runpath=no
11677   hardcode_into_libs=yes
11678   ;;
11680 uts4*)
11681   version_type=linux
11682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11683   soname_spec='${libname}${release}${shared_ext}$major'
11684   shlibpath_var=LD_LIBRARY_PATH
11685   ;;
11688   dynamic_linker=no
11689   ;;
11690 esac
11691 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11692 $as_echo "$dynamic_linker" >&6; }
11693 test "$dynamic_linker" = no && can_build_shared=no
11695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11696 if test "$GCC" = yes; then
11697   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11700 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11701   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11703 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11704   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11793   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11794 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11795 hardcode_action=
11796 if test -n "$hardcode_libdir_flag_spec" ||
11797    test -n "$runpath_var" ||
11798    test "X$hardcode_automatic" = "Xyes" ; then
11800   # We can hardcode non-existent directories.
11801   if test "$hardcode_direct" != no &&
11802      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11803      # have to relink, otherwise we might link with an installed library
11804      # when we should be linking with a yet-to-be-installed one
11805      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11806      test "$hardcode_minus_L" != no; then
11807     # Linking always hardcodes the temporary library directory.
11808     hardcode_action=relink
11809   else
11810     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11811     hardcode_action=immediate
11812   fi
11813 else
11814   # We cannot hardcode anything, or else we can only hardcode existing
11815   # directories.
11816   hardcode_action=unsupported
11818 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11819 $as_echo "$hardcode_action" >&6; }
11821 if test "$hardcode_action" = relink ||
11822    test "$inherit_rpath" = yes; then
11823   # Fast installation is not supported
11824   enable_fast_install=no
11825 elif test "$shlibpath_overrides_runpath" = yes ||
11826      test "$enable_shared" = no; then
11827   # Fast installation is not necessary
11828   enable_fast_install=needless
11836   if test "x$enable_dlopen" != xyes; then
11837   enable_dlopen=unknown
11838   enable_dlopen_self=unknown
11839   enable_dlopen_self_static=unknown
11840 else
11841   lt_cv_dlopen=no
11842   lt_cv_dlopen_libs=
11844   case $host_os in
11845   beos*)
11846     lt_cv_dlopen="load_add_on"
11847     lt_cv_dlopen_libs=
11848     lt_cv_dlopen_self=yes
11849     ;;
11851   mingw* | pw32* | cegcc*)
11852     lt_cv_dlopen="LoadLibrary"
11853     lt_cv_dlopen_libs=
11854     ;;
11856   cygwin*)
11857     lt_cv_dlopen="dlopen"
11858     lt_cv_dlopen_libs=
11859     ;;
11861   darwin*)
11862   # if libdl is installed we need to link against it
11863     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11864 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11866   $as_echo_n "(cached) " >&6
11867 else
11868   ac_check_lib_save_LIBS=$LIBS
11869 LIBS="-ldl  $LIBS"
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11877 /* Override any GCC internal prototype to avoid an error.
11878    Use char because int might match the return type of a GCC
11879    builtin and then its argument prototype would still apply.  */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char dlopen ();
11884 int
11885 main ()
11887 return dlopen ();
11888   ;
11889   return 0;
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (ac_try="$ac_link"
11894 case "(($ac_try" in
11895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896   *) ac_try_echo=$ac_try;;
11897 esac
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900   (eval "$ac_link") 2>conftest.er1
11901   ac_status=$?
11902   grep -v '^ *+' conftest.er1 >conftest.err
11903   rm -f conftest.er1
11904   cat conftest.err >&5
11905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } && {
11907          test -z "$ac_c_werror_flag" ||
11908          test ! -s conftest.err
11909        } && test -s conftest$ac_exeext && {
11910          test "$cross_compiling" = yes ||
11911          $as_test_x conftest$ac_exeext
11912        }; then
11913   ac_cv_lib_dl_dlopen=yes
11914 else
11915   $as_echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918         ac_cv_lib_dl_dlopen=no
11921 rm -rf conftest.dSYM
11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11923       conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11927 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11928 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11929   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11930 else
11932     lt_cv_dlopen="dyld"
11933     lt_cv_dlopen_libs=
11934     lt_cv_dlopen_self=yes
11938     ;;
11940   *)
11941     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11942 $as_echo_n "checking for shl_load... " >&6; }
11943 if test "${ac_cv_func_shl_load+set}" = set; then
11944   $as_echo_n "(cached) " >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11954 #define shl_load innocuous_shl_load
11956 /* System header to define __stub macros and hopefully few prototypes,
11957     which can conflict with char shl_load (); below.
11958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959     <limits.h> exists even on freestanding compilers.  */
11961 #ifdef __STDC__
11962 # include <limits.h>
11963 #else
11964 # include <assert.h>
11965 #endif
11967 #undef shl_load
11969 /* Override any GCC internal prototype to avoid an error.
11970    Use char because int might match the return type of a GCC
11971    builtin and then its argument prototype would still apply.  */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char shl_load ();
11976 /* The GNU C library defines this for functions which it implements
11977     to always fail with ENOSYS.  Some functions are actually named
11978     something starting with __ and the normal name is an alias.  */
11979 #if defined __stub_shl_load || defined __stub___shl_load
11980 choke me
11981 #endif
11983 int
11984 main ()
11986 return shl_load ();
11987   ;
11988   return 0;
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11998 $as_echo "$ac_try_echo") >&5
11999   (eval "$ac_link") 2>conftest.er1
12000   ac_status=$?
12001   grep -v '^ *+' conftest.er1 >conftest.err
12002   rm -f conftest.er1
12003   cat conftest.err >&5
12004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } && {
12006          test -z "$ac_c_werror_flag" ||
12007          test ! -s conftest.err
12008        } && test -s conftest$ac_exeext && {
12009          test "$cross_compiling" = yes ||
12010          $as_test_x conftest$ac_exeext
12011        }; then
12012   ac_cv_func_shl_load=yes
12013 else
12014   $as_echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017         ac_cv_func_shl_load=no
12020 rm -rf conftest.dSYM
12021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12022       conftest$ac_exeext conftest.$ac_ext
12024 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12025 $as_echo "$ac_cv_func_shl_load" >&6; }
12026 if test "x$ac_cv_func_shl_load" = x""yes; then
12027   lt_cv_dlopen="shl_load"
12028 else
12029   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12031 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12032   $as_echo_n "(cached) " >&6
12033 else
12034   ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-ldld  $LIBS"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12043 /* Override any GCC internal prototype to avoid an error.
12044    Use char because int might match the return type of a GCC
12045    builtin and then its argument prototype would still apply.  */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 char shl_load ();
12050 int
12051 main ()
12053 return shl_load ();
12054   ;
12055   return 0;
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (ac_try="$ac_link"
12060 case "(($ac_try" in
12061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062   *) ac_try_echo=$ac_try;;
12063 esac
12064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12065 $as_echo "$ac_try_echo") >&5
12066   (eval "$ac_link") 2>conftest.er1
12067   ac_status=$?
12068   grep -v '^ *+' conftest.er1 >conftest.err
12069   rm -f conftest.er1
12070   cat conftest.err >&5
12071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); } && {
12073          test -z "$ac_c_werror_flag" ||
12074          test ! -s conftest.err
12075        } && test -s conftest$ac_exeext && {
12076          test "$cross_compiling" = yes ||
12077          $as_test_x conftest$ac_exeext
12078        }; then
12079   ac_cv_lib_dld_shl_load=yes
12080 else
12081   $as_echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12084         ac_cv_lib_dld_shl_load=no
12087 rm -rf conftest.dSYM
12088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12089       conftest$ac_exeext conftest.$ac_ext
12090 LIBS=$ac_check_lib_save_LIBS
12092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12093 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12094 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12095   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12096 else
12097   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12098 $as_echo_n "checking for dlopen... " >&6; }
12099 if test "${ac_cv_func_dlopen+set}" = set; then
12100   $as_echo_n "(cached) " >&6
12101 else
12102   cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h.  */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h.  */
12108 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12110 #define dlopen innocuous_dlopen
12112 /* System header to define __stub macros and hopefully few prototypes,
12113     which can conflict with char dlopen (); below.
12114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12115     <limits.h> exists even on freestanding compilers.  */
12117 #ifdef __STDC__
12118 # include <limits.h>
12119 #else
12120 # include <assert.h>
12121 #endif
12123 #undef dlopen
12125 /* Override any GCC internal prototype to avoid an error.
12126    Use char because int might match the return type of a GCC
12127    builtin and then its argument prototype would still apply.  */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char dlopen ();
12132 /* The GNU C library defines this for functions which it implements
12133     to always fail with ENOSYS.  Some functions are actually named
12134     something starting with __ and the normal name is an alias.  */
12135 #if defined __stub_dlopen || defined __stub___dlopen
12136 choke me
12137 #endif
12139 int
12140 main ()
12142 return dlopen ();
12143   ;
12144   return 0;
12146 _ACEOF
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (ac_try="$ac_link"
12149 case "(($ac_try" in
12150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151   *) ac_try_echo=$ac_try;;
12152 esac
12153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12154 $as_echo "$ac_try_echo") >&5
12155   (eval "$ac_link") 2>conftest.er1
12156   ac_status=$?
12157   grep -v '^ *+' conftest.er1 >conftest.err
12158   rm -f conftest.er1
12159   cat conftest.err >&5
12160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); } && {
12162          test -z "$ac_c_werror_flag" ||
12163          test ! -s conftest.err
12164        } && test -s conftest$ac_exeext && {
12165          test "$cross_compiling" = yes ||
12166          $as_test_x conftest$ac_exeext
12167        }; then
12168   ac_cv_func_dlopen=yes
12169 else
12170   $as_echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173         ac_cv_func_dlopen=no
12176 rm -rf conftest.dSYM
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178       conftest$ac_exeext conftest.$ac_ext
12180 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12181 $as_echo "$ac_cv_func_dlopen" >&6; }
12182 if test "x$ac_cv_func_dlopen" = x""yes; then
12183   lt_cv_dlopen="dlopen"
12184 else
12185   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12186 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12188   $as_echo_n "(cached) " >&6
12189 else
12190   ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-ldl  $LIBS"
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12199 /* Override any GCC internal prototype to avoid an error.
12200    Use char because int might match the return type of a GCC
12201    builtin and then its argument prototype would still apply.  */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char dlopen ();
12206 int
12207 main ()
12209 return dlopen ();
12210   ;
12211   return 0;
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12221 $as_echo "$ac_try_echo") >&5
12222   (eval "$ac_link") 2>conftest.er1
12223   ac_status=$?
12224   grep -v '^ *+' conftest.er1 >conftest.err
12225   rm -f conftest.er1
12226   cat conftest.err >&5
12227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } && {
12229          test -z "$ac_c_werror_flag" ||
12230          test ! -s conftest.err
12231        } && test -s conftest$ac_exeext && {
12232          test "$cross_compiling" = yes ||
12233          $as_test_x conftest$ac_exeext
12234        }; then
12235   ac_cv_lib_dl_dlopen=yes
12236 else
12237   $as_echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240         ac_cv_lib_dl_dlopen=no
12243 rm -rf conftest.dSYM
12244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12245       conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12248 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12249 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12250 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12251   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12252 else
12253   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12254 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12255 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12256   $as_echo_n "(cached) " >&6
12257 else
12258   ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-lsvld  $LIBS"
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12267 /* Override any GCC internal prototype to avoid an error.
12268    Use char because int might match the return type of a GCC
12269    builtin and then its argument prototype would still apply.  */
12270 #ifdef __cplusplus
12271 extern "C"
12272 #endif
12273 char dlopen ();
12274 int
12275 main ()
12277 return dlopen ();
12278   ;
12279   return 0;
12281 _ACEOF
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (ac_try="$ac_link"
12284 case "(($ac_try" in
12285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286   *) ac_try_echo=$ac_try;;
12287 esac
12288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12289 $as_echo "$ac_try_echo") >&5
12290   (eval "$ac_link") 2>conftest.er1
12291   ac_status=$?
12292   grep -v '^ *+' conftest.er1 >conftest.err
12293   rm -f conftest.er1
12294   cat conftest.err >&5
12295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); } && {
12297          test -z "$ac_c_werror_flag" ||
12298          test ! -s conftest.err
12299        } && test -s conftest$ac_exeext && {
12300          test "$cross_compiling" = yes ||
12301          $as_test_x conftest$ac_exeext
12302        }; then
12303   ac_cv_lib_svld_dlopen=yes
12304 else
12305   $as_echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308         ac_cv_lib_svld_dlopen=no
12311 rm -rf conftest.dSYM
12312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12313       conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12316 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12317 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12318 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12319   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12320 else
12321   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12322 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12323 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12324   $as_echo_n "(cached) " >&6
12325 else
12326   ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-ldld  $LIBS"
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h.  */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h.  */
12335 /* Override any GCC internal prototype to avoid an error.
12336    Use char because int might match the return type of a GCC
12337    builtin and then its argument prototype would still apply.  */
12338 #ifdef __cplusplus
12339 extern "C"
12340 #endif
12341 char dld_link ();
12342 int
12343 main ()
12345 return dld_link ();
12346   ;
12347   return 0;
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (ac_try="$ac_link"
12352 case "(($ac_try" in
12353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354   *) ac_try_echo=$ac_try;;
12355 esac
12356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12357 $as_echo "$ac_try_echo") >&5
12358   (eval "$ac_link") 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } && {
12365          test -z "$ac_c_werror_flag" ||
12366          test ! -s conftest.err
12367        } && test -s conftest$ac_exeext && {
12368          test "$cross_compiling" = yes ||
12369          $as_test_x conftest$ac_exeext
12370        }; then
12371   ac_cv_lib_dld_dld_link=yes
12372 else
12373   $as_echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376         ac_cv_lib_dld_dld_link=no
12379 rm -rf conftest.dSYM
12380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12381       conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12384 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12385 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12386 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12387   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12405     ;;
12406   esac
12408   if test "x$lt_cv_dlopen" != xno; then
12409     enable_dlopen=yes
12410   else
12411     enable_dlopen=no
12412   fi
12414   case $lt_cv_dlopen in
12415   dlopen)
12416     save_CPPFLAGS="$CPPFLAGS"
12417     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12419     save_LDFLAGS="$LDFLAGS"
12420     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12422     save_LIBS="$LIBS"
12423     LIBS="$lt_cv_dlopen_libs $LIBS"
12425     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12426 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12427 if test "${lt_cv_dlopen_self+set}" = set; then
12428   $as_echo_n "(cached) " >&6
12429 else
12430           if test "$cross_compiling" = yes; then :
12431   lt_cv_dlopen_self=cross
12432 else
12433   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12434   lt_status=$lt_dlunknown
12435   cat > conftest.$ac_ext <<_LT_EOF
12436 #line 12436 "configure"
12437 #include "confdefs.h"
12439 #if HAVE_DLFCN_H
12440 #include <dlfcn.h>
12441 #endif
12443 #include <stdio.h>
12445 #ifdef RTLD_GLOBAL
12446 #  define LT_DLGLOBAL           RTLD_GLOBAL
12447 #else
12448 #  ifdef DL_GLOBAL
12449 #    define LT_DLGLOBAL         DL_GLOBAL
12450 #  else
12451 #    define LT_DLGLOBAL         0
12452 #  endif
12453 #endif
12455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12456    find out it does not work in some platform. */
12457 #ifndef LT_DLLAZY_OR_NOW
12458 #  ifdef RTLD_LAZY
12459 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12460 #  else
12461 #    ifdef DL_LAZY
12462 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12463 #    else
12464 #      ifdef RTLD_NOW
12465 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12466 #      else
12467 #        ifdef DL_NOW
12468 #          define LT_DLLAZY_OR_NOW      DL_NOW
12469 #        else
12470 #          define LT_DLLAZY_OR_NOW      0
12471 #        endif
12472 #      endif
12473 #    endif
12474 #  endif
12475 #endif
12477 void fnord() { int i=42;}
12478 int main ()
12480   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12481   int status = $lt_dlunknown;
12483   if (self)
12484     {
12485       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12486       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12487       /* dlclose (self); */
12488     }
12489   else
12490     puts (dlerror ());
12492   return status;
12494 _LT_EOF
12495   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12496   (eval $ac_link) 2>&5
12497   ac_status=$?
12498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12500     (./conftest; exit; ) >&5 2>/dev/null
12501     lt_status=$?
12502     case x$lt_status in
12503       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12504       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12505       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12506     esac
12507   else :
12508     # compilation failed
12509     lt_cv_dlopen_self=no
12510   fi
12512 rm -fr conftest*
12516 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12517 $as_echo "$lt_cv_dlopen_self" >&6; }
12519     if test "x$lt_cv_dlopen_self" = xyes; then
12520       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12521       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12522 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12523 if test "${lt_cv_dlopen_self_static+set}" = set; then
12524   $as_echo_n "(cached) " >&6
12525 else
12526           if test "$cross_compiling" = yes; then :
12527   lt_cv_dlopen_self_static=cross
12528 else
12529   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12530   lt_status=$lt_dlunknown
12531   cat > conftest.$ac_ext <<_LT_EOF
12532 #line 12532 "configure"
12533 #include "confdefs.h"
12535 #if HAVE_DLFCN_H
12536 #include <dlfcn.h>
12537 #endif
12539 #include <stdio.h>
12541 #ifdef RTLD_GLOBAL
12542 #  define LT_DLGLOBAL           RTLD_GLOBAL
12543 #else
12544 #  ifdef DL_GLOBAL
12545 #    define LT_DLGLOBAL         DL_GLOBAL
12546 #  else
12547 #    define LT_DLGLOBAL         0
12548 #  endif
12549 #endif
12551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12552    find out it does not work in some platform. */
12553 #ifndef LT_DLLAZY_OR_NOW
12554 #  ifdef RTLD_LAZY
12555 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12556 #  else
12557 #    ifdef DL_LAZY
12558 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12559 #    else
12560 #      ifdef RTLD_NOW
12561 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12562 #      else
12563 #        ifdef DL_NOW
12564 #          define LT_DLLAZY_OR_NOW      DL_NOW
12565 #        else
12566 #          define LT_DLLAZY_OR_NOW      0
12567 #        endif
12568 #      endif
12569 #    endif
12570 #  endif
12571 #endif
12573 void fnord() { int i=42;}
12574 int main ()
12576   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12577   int status = $lt_dlunknown;
12579   if (self)
12580     {
12581       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12582       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12583       /* dlclose (self); */
12584     }
12585   else
12586     puts (dlerror ());
12588   return status;
12590 _LT_EOF
12591   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592   (eval $ac_link) 2>&5
12593   ac_status=$?
12594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12596     (./conftest; exit; ) >&5 2>/dev/null
12597     lt_status=$?
12598     case x$lt_status in
12599       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12600       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12601       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12602     esac
12603   else :
12604     # compilation failed
12605     lt_cv_dlopen_self_static=no
12606   fi
12608 rm -fr conftest*
12612 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12613 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12614     fi
12616     CPPFLAGS="$save_CPPFLAGS"
12617     LDFLAGS="$save_LDFLAGS"
12618     LIBS="$save_LIBS"
12619     ;;
12620   esac
12622   case $lt_cv_dlopen_self in
12623   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12624   *) enable_dlopen_self=unknown ;;
12625   esac
12627   case $lt_cv_dlopen_self_static in
12628   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12629   *) enable_dlopen_self_static=unknown ;;
12630   esac
12649 striplib=
12650 old_striplib=
12651 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12652 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12653 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12654   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12655   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12656   { $as_echo "$as_me:$LINENO: result: yes" >&5
12657 $as_echo "yes" >&6; }
12658 else
12659 # FIXME - insert some real tests, host_os isn't really good enough
12660   case $host_os in
12661   darwin*)
12662     if test -n "$STRIP" ; then
12663       striplib="$STRIP -x"
12664       old_striplib="$STRIP -S"
12665       { $as_echo "$as_me:$LINENO: result: yes" >&5
12666 $as_echo "yes" >&6; }
12667     else
12668       { $as_echo "$as_me:$LINENO: result: no" >&5
12669 $as_echo "no" >&6; }
12670     fi
12671     ;;
12672   *)
12673     { $as_echo "$as_me:$LINENO: result: no" >&5
12674 $as_echo "no" >&6; }
12675     ;;
12676   esac
12690   # Report which library types will actually be built
12691   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12692 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12693   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12694 $as_echo "$can_build_shared" >&6; }
12696   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12697 $as_echo_n "checking whether to build shared libraries... " >&6; }
12698   test "$can_build_shared" = "no" && enable_shared=no
12700   # On AIX, shared libraries and static libraries use the same namespace, and
12701   # are all built from PIC.
12702   case $host_os in
12703   aix3*)
12704     test "$enable_shared" = yes && enable_static=no
12705     if test -n "$RANLIB"; then
12706       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12707       postinstall_cmds='$RANLIB $lib'
12708     fi
12709     ;;
12711   aix[4-9]*)
12712     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12713       test "$enable_shared" = yes && enable_static=no
12714     fi
12715     ;;
12716   esac
12717   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12718 $as_echo "$enable_shared" >&6; }
12720   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12721 $as_echo_n "checking whether to build static libraries... " >&6; }
12722   # Make sure either enable_shared or enable_static is yes.
12723   test "$enable_shared" = yes || enable_static=yes
12724   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12725 $as_echo "$enable_static" >&6; }
12731 ac_ext=c
12732 ac_cpp='$CPP $CPPFLAGS'
12733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737 CC="$lt_save_CC"
12751         ac_config_commands="$ac_config_commands libtool"
12756 # Only expand once:
12760 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12762 { $as_echo "$as_me:$LINENO: checking if gcc likes the -Werror flag" >&5
12763 $as_echo_n "checking if gcc likes the -Werror flag... " >&6; }
12764 if test "${rd_cv_gcc_flag__Werror+set}" = set; then
12765   $as_echo_n "(cached) " >&6
12766 else
12767   cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12774 int
12775 main ()
12777 return 0
12778   ;
12779   return 0;
12781 _ACEOF
12782 rm -f conftest.$ac_objext
12783 if { (ac_try="$ac_compile"
12784 case "(($ac_try" in
12785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786   *) ac_try_echo=$ac_try;;
12787 esac
12788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12789 $as_echo "$ac_try_echo") >&5
12790   (eval "$ac_compile") 2>conftest.er1
12791   ac_status=$?
12792   grep -v '^ *+' conftest.er1 >conftest.err
12793   rm -f conftest.er1
12794   cat conftest.err >&5
12795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); } && {
12797          test -z "$ac_c_werror_flag" ||
12798          test ! -s conftest.err
12799        } && test -s conftest.$ac_objext; then
12800   rd_cv_gcc_flag__Werror="yes"
12801 else
12802   $as_echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805         rd_cv_gcc_flag__Werror="no"
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12810 { $as_echo "$as_me:$LINENO: result: $rd_cv_gcc_flag__Werror" >&5
12811 $as_echo "$rd_cv_gcc_flag__Werror" >&6; }
12812 if test "x$rd_cv_gcc_flag__Werror" = "xyes"; then
12813   WERROR="-Werror"
12814 else
12815   WERROR=""
12819 if test "x$GCC" = "xyes"; then
12820   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
12821     oCFLAGS="$CFLAGS"
12822     CFLAGS="$CFLAGS $flag"
12823     cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
12824     { $as_echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
12825 $as_echo_n "checking if gcc likes the $flag flag... " >&6; }
12826 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
12827   $as_echo_n "(cached) " >&6
12828 else
12829   cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12836 int
12837 main ()
12839 return 0
12840   ;
12841   return 0;
12843 _ACEOF
12844 rm -f conftest.$ac_objext
12845 if { (ac_try="$ac_compile"
12846 case "(($ac_try" in
12847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848   *) ac_try_echo=$ac_try;;
12849 esac
12850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12851 $as_echo "$ac_try_echo") >&5
12852   (eval "$ac_compile") 2>conftest.er1
12853   ac_status=$?
12854   grep -v '^ *+' conftest.er1 >conftest.err
12855   rm -f conftest.er1
12856   cat conftest.err >&5
12857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } && {
12859          test -z "$ac_c_werror_flag" ||
12860          test ! -s conftest.err
12861        } && test -s conftest.$ac_objext; then
12862   eval $cachename=yes
12863 else
12864   $as_echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867         eval $cachename=no
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 ac_res=`eval 'as_val=${'$cachename'}
12873                  $as_echo "$as_val"'`
12874                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12875 $as_echo "$ac_res" >&6; }
12876     if eval test \$$cachename = no; then
12877          CFLAGS="$oCFLAGS"
12878     fi
12879   done
12887 case $TERM in
12888        #   for the most important terminal types we directly know the sequences
12889        xterm|xterm*|vt220|vt220*)
12890                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12891                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12892        ;;
12893        vt100|vt100*|cygwin)
12894                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12895                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12896        ;;
12897        *)
12898                T_MD=''
12899                T_ME=''
12900        ;;
12901 esac
12902   { $as_echo "$as_me:$LINENO: result: " >&5
12903 $as_echo "" >&6; }
12904   { $as_echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
12905 $as_echo "${T_MD}Checking for Header Files${T_ME}" >&6; }
12908 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12909 $as_echo_n "checking for ANSI C header files... " >&6; }
12910 if test "${ac_cv_header_stdc+set}" = set; then
12911   $as_echo_n "(cached) " >&6
12912 else
12913   cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919 #include <stdlib.h>
12920 #include <stdarg.h>
12921 #include <string.h>
12922 #include <float.h>
12924 int
12925 main ()
12928   ;
12929   return 0;
12931 _ACEOF
12932 rm -f conftest.$ac_objext
12933 if { (ac_try="$ac_compile"
12934 case "(($ac_try" in
12935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936   *) ac_try_echo=$ac_try;;
12937 esac
12938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939 $as_echo "$ac_try_echo") >&5
12940   (eval "$ac_compile") 2>conftest.er1
12941   ac_status=$?
12942   grep -v '^ *+' conftest.er1 >conftest.err
12943   rm -f conftest.er1
12944   cat conftest.err >&5
12945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } && {
12947          test -z "$ac_c_werror_flag" ||
12948          test ! -s conftest.err
12949        } && test -s conftest.$ac_objext; then
12950   ac_cv_header_stdc=yes
12951 else
12952   $as_echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955         ac_cv_header_stdc=no
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 if test $ac_cv_header_stdc = yes; then
12961   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12962   cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 #include <string.h>
12970 _ACEOF
12971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12972   $EGREP "memchr" >/dev/null 2>&1; then
12973   :
12974 else
12975   ac_cv_header_stdc=no
12977 rm -f conftest*
12981 if test $ac_cv_header_stdc = yes; then
12982   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12983   cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h.  */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h.  */
12989 #include <stdlib.h>
12991 _ACEOF
12992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12993   $EGREP "free" >/dev/null 2>&1; then
12994   :
12995 else
12996   ac_cv_header_stdc=no
12998 rm -f conftest*
13002 if test $ac_cv_header_stdc = yes; then
13003   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13004   if test "$cross_compiling" = yes; then
13005   :
13006 else
13007   cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013 #include <ctype.h>
13014 #include <stdlib.h>
13015 #if ((' ' & 0x0FF) == 0x020)
13016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13018 #else
13019 # define ISLOWER(c) \
13020                    (('a' <= (c) && (c) <= 'i') \
13021                      || ('j' <= (c) && (c) <= 'r') \
13022                      || ('s' <= (c) && (c) <= 'z'))
13023 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13024 #endif
13026 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13027 int
13028 main ()
13030   int i;
13031   for (i = 0; i < 256; i++)
13032     if (XOR (islower (i), ISLOWER (i))
13033         || toupper (i) != TOUPPER (i))
13034       return 2;
13035   return 0;
13037 _ACEOF
13038 rm -f conftest$ac_exeext
13039 if { (ac_try="$ac_link"
13040 case "(($ac_try" in
13041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042   *) ac_try_echo=$ac_try;;
13043 esac
13044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13045 $as_echo "$ac_try_echo") >&5
13046   (eval "$ac_link") 2>&5
13047   ac_status=$?
13048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13050   { (case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13055 $as_echo "$ac_try_echo") >&5
13056   (eval "$ac_try") 2>&5
13057   ac_status=$?
13058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; }; then
13060   :
13061 else
13062   $as_echo "$as_me: program exited with status $ac_status" >&5
13063 $as_echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 ( exit $ac_status )
13067 ac_cv_header_stdc=no
13069 rm -rf conftest.dSYM
13070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13076 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13077 $as_echo "$ac_cv_header_stdc" >&6; }
13078 if test $ac_cv_header_stdc = yes; then
13080 cat >>confdefs.h <<\_ACEOF
13081 #define STDC_HEADERS 1
13082 _ACEOF
13091 ac_header_dirent=no
13092 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13093   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13094 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13095 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13097   $as_echo_n "(cached) " >&6
13098 else
13099   cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h.  */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h.  */
13105 #include <sys/types.h>
13106 #include <$ac_hdr>
13108 int
13109 main ()
13111 if ((DIR *) 0)
13112 return 0;
13113   ;
13114   return 0;
13116 _ACEOF
13117 rm -f conftest.$ac_objext
13118 if { (ac_try="$ac_compile"
13119 case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13124 $as_echo "$ac_try_echo") >&5
13125   (eval "$ac_compile") 2>conftest.er1
13126   ac_status=$?
13127   grep -v '^ *+' conftest.er1 >conftest.err
13128   rm -f conftest.er1
13129   cat conftest.err >&5
13130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); } && {
13132          test -z "$ac_c_werror_flag" ||
13133          test ! -s conftest.err
13134        } && test -s conftest.$ac_objext; then
13135   eval "$as_ac_Header=yes"
13136 else
13137   $as_echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140         eval "$as_ac_Header=no"
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145 ac_res=`eval 'as_val=${'$as_ac_Header'}
13146                  $as_echo "$as_val"'`
13147                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13148 $as_echo "$ac_res" >&6; }
13149 as_val=`eval 'as_val=${'$as_ac_Header'}
13150                  $as_echo "$as_val"'`
13151    if test "x$as_val" = x""yes; then
13152   cat >>confdefs.h <<_ACEOF
13153 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13154 _ACEOF
13156 ac_header_dirent=$ac_hdr; break
13159 done
13160 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13161 if test $ac_header_dirent = dirent.h; then
13162   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13163 $as_echo_n "checking for library containing opendir... " >&6; }
13164 if test "${ac_cv_search_opendir+set}" = set; then
13165   $as_echo_n "(cached) " >&6
13166 else
13167   ac_func_search_save_LIBS=$LIBS
13168 cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h.  */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h.  */
13175 /* Override any GCC internal prototype to avoid an error.
13176    Use char because int might match the return type of a GCC
13177    builtin and then its argument prototype would still apply.  */
13178 #ifdef __cplusplus
13179 extern "C"
13180 #endif
13181 char opendir ();
13182 int
13183 main ()
13185 return opendir ();
13186   ;
13187   return 0;
13189 _ACEOF
13190 for ac_lib in '' dir; do
13191   if test -z "$ac_lib"; then
13192     ac_res="none required"
13193   else
13194     ac_res=-l$ac_lib
13195     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13196   fi
13197   rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (ac_try="$ac_link"
13199 case "(($ac_try" in
13200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201   *) ac_try_echo=$ac_try;;
13202 esac
13203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13204 $as_echo "$ac_try_echo") >&5
13205   (eval "$ac_link") 2>conftest.er1
13206   ac_status=$?
13207   grep -v '^ *+' conftest.er1 >conftest.err
13208   rm -f conftest.er1
13209   cat conftest.err >&5
13210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); } && {
13212          test -z "$ac_c_werror_flag" ||
13213          test ! -s conftest.err
13214        } && test -s conftest$ac_exeext && {
13215          test "$cross_compiling" = yes ||
13216          $as_test_x conftest$ac_exeext
13217        }; then
13218   ac_cv_search_opendir=$ac_res
13219 else
13220   $as_echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13226 rm -rf conftest.dSYM
13227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13228       conftest$ac_exeext
13229   if test "${ac_cv_search_opendir+set}" = set; then
13230   break
13232 done
13233 if test "${ac_cv_search_opendir+set}" = set; then
13234   :
13235 else
13236   ac_cv_search_opendir=no
13238 rm conftest.$ac_ext
13239 LIBS=$ac_func_search_save_LIBS
13241 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13242 $as_echo "$ac_cv_search_opendir" >&6; }
13243 ac_res=$ac_cv_search_opendir
13244 if test "$ac_res" != no; then
13245   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13249 else
13250   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13251 $as_echo_n "checking for library containing opendir... " >&6; }
13252 if test "${ac_cv_search_opendir+set}" = set; then
13253   $as_echo_n "(cached) " >&6
13254 else
13255   ac_func_search_save_LIBS=$LIBS
13256 cat >conftest.$ac_ext <<_ACEOF
13257 /* confdefs.h.  */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h.  */
13263 /* Override any GCC internal prototype to avoid an error.
13264    Use char because int might match the return type of a GCC
13265    builtin and then its argument prototype would still apply.  */
13266 #ifdef __cplusplus
13267 extern "C"
13268 #endif
13269 char opendir ();
13270 int
13271 main ()
13273 return opendir ();
13274   ;
13275   return 0;
13277 _ACEOF
13278 for ac_lib in '' x; do
13279   if test -z "$ac_lib"; then
13280     ac_res="none required"
13281   else
13282     ac_res=-l$ac_lib
13283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13284   fi
13285   rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (ac_try="$ac_link"
13287 case "(($ac_try" in
13288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289   *) ac_try_echo=$ac_try;;
13290 esac
13291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13292 $as_echo "$ac_try_echo") >&5
13293   (eval "$ac_link") 2>conftest.er1
13294   ac_status=$?
13295   grep -v '^ *+' conftest.er1 >conftest.err
13296   rm -f conftest.er1
13297   cat conftest.err >&5
13298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } && {
13300          test -z "$ac_c_werror_flag" ||
13301          test ! -s conftest.err
13302        } && test -s conftest$ac_exeext && {
13303          test "$cross_compiling" = yes ||
13304          $as_test_x conftest$ac_exeext
13305        }; then
13306   ac_cv_search_opendir=$ac_res
13307 else
13308   $as_echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13314 rm -rf conftest.dSYM
13315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13316       conftest$ac_exeext
13317   if test "${ac_cv_search_opendir+set}" = set; then
13318   break
13320 done
13321 if test "${ac_cv_search_opendir+set}" = set; then
13322   :
13323 else
13324   ac_cv_search_opendir=no
13326 rm conftest.$ac_ext
13327 LIBS=$ac_func_search_save_LIBS
13329 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13330 $as_echo "$ac_cv_search_opendir" >&6; }
13331 ac_res=$ac_cv_search_opendir
13332 if test "$ac_res" != no; then
13333   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13360 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
13362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13364   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13365 $as_echo_n "checking for $ac_header... " >&6; }
13366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13367   $as_echo_n "(cached) " >&6
13369 ac_res=`eval 'as_val=${'$as_ac_Header'}
13370                  $as_echo "$as_val"'`
13371                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13372 $as_echo "$ac_res" >&6; }
13373 else
13374   # Is the header compilable?
13375 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13376 $as_echo_n "checking $ac_header usability... " >&6; }
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h.  */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h.  */
13383 $ac_includes_default
13384 #include <$ac_header>
13385 _ACEOF
13386 rm -f conftest.$ac_objext
13387 if { (ac_try="$ac_compile"
13388 case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393 $as_echo "$ac_try_echo") >&5
13394   (eval "$ac_compile") 2>conftest.er1
13395   ac_status=$?
13396   grep -v '^ *+' conftest.er1 >conftest.err
13397   rm -f conftest.er1
13398   cat conftest.err >&5
13399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } && {
13401          test -z "$ac_c_werror_flag" ||
13402          test ! -s conftest.err
13403        } && test -s conftest.$ac_objext; then
13404   ac_header_compiler=yes
13405 else
13406   $as_echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409         ac_header_compiler=no
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13414 $as_echo "$ac_header_compiler" >&6; }
13416 # Is the header present?
13417 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13418 $as_echo_n "checking $ac_header presence... " >&6; }
13419 cat >conftest.$ac_ext <<_ACEOF
13420 /* confdefs.h.  */
13421 _ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h.  */
13425 #include <$ac_header>
13426 _ACEOF
13427 if { (ac_try="$ac_cpp conftest.$ac_ext"
13428 case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13433 $as_echo "$ac_try_echo") >&5
13434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13435   ac_status=$?
13436   grep -v '^ *+' conftest.er1 >conftest.err
13437   rm -f conftest.er1
13438   cat conftest.err >&5
13439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } >/dev/null && {
13441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13442          test ! -s conftest.err
13443        }; then
13444   ac_header_preproc=yes
13445 else
13446   $as_echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449   ac_header_preproc=no
13452 rm -f conftest.err conftest.$ac_ext
13453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13454 $as_echo "$ac_header_preproc" >&6; }
13456 # So?  What about this header?
13457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13458   yes:no: )
13459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13460 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13463     ac_header_preproc=yes
13464     ;;
13465   no:yes:* )
13466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13467 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13468     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13469 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13471 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13473 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13476     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13477 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13479     ;;
13480 esac
13481 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13482 $as_echo_n "checking for $ac_header... " >&6; }
13483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13484   $as_echo_n "(cached) " >&6
13485 else
13486   eval "$as_ac_Header=\$ac_header_preproc"
13488 ac_res=`eval 'as_val=${'$as_ac_Header'}
13489                  $as_echo "$as_val"'`
13490                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13491 $as_echo "$ac_res" >&6; }
13494 as_val=`eval 'as_val=${'$as_ac_Header'}
13495                  $as_echo "$as_val"'`
13496    if test "x$as_val" = x""yes; then
13497   cat >>confdefs.h <<_ACEOF
13498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13499 _ACEOF
13503 done
13506 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13507 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13508 if test "${ac_cv_c_const+set}" = set; then
13509   $as_echo_n "(cached) " >&6
13510 else
13511   cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13518 int
13519 main ()
13521 /* FIXME: Include the comments suggested by Paul. */
13522 #ifndef __cplusplus
13523   /* Ultrix mips cc rejects this.  */
13524   typedef int charset[2];
13525   const charset cs;
13526   /* SunOS 4.1.1 cc rejects this.  */
13527   char const *const *pcpcc;
13528   char **ppc;
13529   /* NEC SVR4.0.2 mips cc rejects this.  */
13530   struct point {int x, y;};
13531   static struct point const zero = {0,0};
13532   /* AIX XL C 1.02.0.0 rejects this.
13533      It does not let you subtract one const X* pointer from another in
13534      an arm of an if-expression whose if-part is not a constant
13535      expression */
13536   const char *g = "string";
13537   pcpcc = &g + (g ? g-g : 0);
13538   /* HPUX 7.0 cc rejects these. */
13539   ++pcpcc;
13540   ppc = (char**) pcpcc;
13541   pcpcc = (char const *const *) ppc;
13542   { /* SCO 3.2v4 cc rejects this.  */
13543     char *t;
13544     char const *s = 0 ? (char *) 0 : (char const *) 0;
13546     *t++ = 0;
13547     if (s) return 0;
13548   }
13549   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13550     int x[] = {25, 17};
13551     const int *foo = &x[0];
13552     ++foo;
13553   }
13554   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13555     typedef const int *iptr;
13556     iptr p = 0;
13557     ++p;
13558   }
13559   { /* AIX XL C 1.02.0.0 rejects this saying
13560        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13561     struct s { int j; const int *ap[3]; };
13562     struct s *b; b->j = 5;
13563   }
13564   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13565     const int foo = 10;
13566     if (!foo) return 0;
13567   }
13568   return !cs[0] && !zero.x;
13569 #endif
13571   ;
13572   return 0;
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (ac_try="$ac_compile"
13577 case "(($ac_try" in
13578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579   *) ac_try_echo=$ac_try;;
13580 esac
13581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13582 $as_echo "$ac_try_echo") >&5
13583   (eval "$ac_compile") 2>conftest.er1
13584   ac_status=$?
13585   grep -v '^ *+' conftest.er1 >conftest.err
13586   rm -f conftest.er1
13587   cat conftest.err >&5
13588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } && {
13590          test -z "$ac_c_werror_flag" ||
13591          test ! -s conftest.err
13592        } && test -s conftest.$ac_objext; then
13593   ac_cv_c_const=yes
13594 else
13595   $as_echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598         ac_cv_c_const=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13604 $as_echo "$ac_cv_c_const" >&6; }
13605 if test $ac_cv_c_const = no; then
13607 cat >>confdefs.h <<\_ACEOF
13608 #define const /**/
13609 _ACEOF
13613 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13614 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13615 if test "${ac_cv_header_time+set}" = set; then
13616   $as_echo_n "(cached) " >&6
13617 else
13618   cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 #include <sys/types.h>
13625 #include <sys/time.h>
13626 #include <time.h>
13628 int
13629 main ()
13631 if ((struct tm *) 0)
13632 return 0;
13633   ;
13634   return 0;
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13644 $as_echo "$ac_try_echo") >&5
13645   (eval "$ac_compile") 2>conftest.er1
13646   ac_status=$?
13647   grep -v '^ *+' conftest.er1 >conftest.err
13648   rm -f conftest.er1
13649   cat conftest.err >&5
13650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } && {
13652          test -z "$ac_c_werror_flag" ||
13653          test ! -s conftest.err
13654        } && test -s conftest.$ac_objext; then
13655   ac_cv_header_time=yes
13656 else
13657   $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660         ac_cv_header_time=no
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13666 $as_echo "$ac_cv_header_time" >&6; }
13667 if test $ac_cv_header_time = yes; then
13669 cat >>confdefs.h <<\_ACEOF
13670 #define TIME_WITH_SYS_TIME 1
13671 _ACEOF
13675 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13676 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13677 if test "${ac_cv_struct_tm+set}" = set; then
13678   $as_echo_n "(cached) " >&6
13679 else
13680   cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 #include <sys/types.h>
13687 #include <time.h>
13689 int
13690 main ()
13692 struct tm tm;
13693                                      int *p = &tm.tm_sec;
13694                                      return !p;
13695   ;
13696   return 0;
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (ac_try="$ac_compile"
13701 case "(($ac_try" in
13702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703   *) ac_try_echo=$ac_try;;
13704 esac
13705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13706 $as_echo "$ac_try_echo") >&5
13707   (eval "$ac_compile") 2>conftest.er1
13708   ac_status=$?
13709   grep -v '^ *+' conftest.er1 >conftest.err
13710   rm -f conftest.er1
13711   cat conftest.err >&5
13712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); } && {
13714          test -z "$ac_c_werror_flag" ||
13715          test ! -s conftest.err
13716        } && test -s conftest.$ac_objext; then
13717   ac_cv_struct_tm=time.h
13718 else
13719   $as_echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13722         ac_cv_struct_tm=sys/time.h
13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13728 $as_echo "$ac_cv_struct_tm" >&6; }
13729 if test $ac_cv_struct_tm = sys/time.h; then
13731 cat >>confdefs.h <<\_ACEOF
13732 #define TM_IN_SYS_TIME 1
13733 _ACEOF
13739 case $TERM in
13740        #   for the most important terminal types we directly know the sequences
13741        xterm|xterm*|vt220|vt220*)
13742                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13743                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13744        ;;
13745        vt100|vt100*|cygwin)
13746                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13747                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13748        ;;
13749        *)
13750                T_MD=''
13751                T_ME=''
13752        ;;
13753 esac
13754   { $as_echo "$as_me:$LINENO: result: " >&5
13755 $as_echo "" >&6; }
13756   { $as_echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
13757 $as_echo "${T_MD}Test Library Functions${T_ME}" >&6; }
13760 { $as_echo "$as_me:$LINENO: checking for acos" >&5
13761 $as_echo_n "checking for acos... " >&6; }
13762 if test "${ac_cv_func_acos+set}" = set; then
13763   $as_echo_n "(cached) " >&6
13764 else
13765   cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h.  */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h.  */
13771 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
13772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13773 #define acos innocuous_acos
13775 /* System header to define __stub macros and hopefully few prototypes,
13776     which can conflict with char acos (); below.
13777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13778     <limits.h> exists even on freestanding compilers.  */
13780 #ifdef __STDC__
13781 # include <limits.h>
13782 #else
13783 # include <assert.h>
13784 #endif
13786 #undef acos
13788 /* Override any GCC internal prototype to avoid an error.
13789    Use char because int might match the return type of a GCC
13790    builtin and then its argument prototype would still apply.  */
13791 #ifdef __cplusplus
13792 extern "C"
13793 #endif
13794 char acos ();
13795 /* The GNU C library defines this for functions which it implements
13796     to always fail with ENOSYS.  Some functions are actually named
13797     something starting with __ and the normal name is an alias.  */
13798 #if defined __stub_acos || defined __stub___acos
13799 choke me
13800 #endif
13802 int
13803 main ()
13805 return acos ();
13806   ;
13807   return 0;
13809 _ACEOF
13810 rm -f conftest.$ac_objext conftest$ac_exeext
13811 if { (ac_try="$ac_link"
13812 case "(($ac_try" in
13813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814   *) ac_try_echo=$ac_try;;
13815 esac
13816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13817 $as_echo "$ac_try_echo") >&5
13818   (eval "$ac_link") 2>conftest.er1
13819   ac_status=$?
13820   grep -v '^ *+' conftest.er1 >conftest.err
13821   rm -f conftest.er1
13822   cat conftest.err >&5
13823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); } && {
13825          test -z "$ac_c_werror_flag" ||
13826          test ! -s conftest.err
13827        } && test -s conftest$ac_exeext && {
13828          test "$cross_compiling" = yes ||
13829          $as_test_x conftest$ac_exeext
13830        }; then
13831   ac_cv_func_acos=yes
13832 else
13833   $as_echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836         ac_cv_func_acos=no
13839 rm -rf conftest.dSYM
13840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13841       conftest$ac_exeext conftest.$ac_ext
13843 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
13844 $as_echo "$ac_cv_func_acos" >&6; }
13845 if test "x$ac_cv_func_acos" = x""yes; then
13846   :
13847 else
13849 { $as_echo "$as_me:$LINENO: checking for acos in -lm" >&5
13850 $as_echo_n "checking for acos in -lm... " >&6; }
13851 if test "${ac_cv_lib_m_acos+set}" = set; then
13852   $as_echo_n "(cached) " >&6
13853 else
13854   ac_check_lib_save_LIBS=$LIBS
13855 LIBS="-lm  $LIBS"
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h.  */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h.  */
13863 /* Override any GCC internal prototype to avoid an error.
13864    Use char because int might match the return type of a GCC
13865    builtin and then its argument prototype would still apply.  */
13866 #ifdef __cplusplus
13867 extern "C"
13868 #endif
13869 char acos ();
13870 int
13871 main ()
13873 return acos ();
13874   ;
13875   return 0;
13877 _ACEOF
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882   *) ac_try_echo=$ac_try;;
13883 esac
13884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13885 $as_echo "$ac_try_echo") >&5
13886   (eval "$ac_link") 2>conftest.er1
13887   ac_status=$?
13888   grep -v '^ *+' conftest.er1 >conftest.err
13889   rm -f conftest.er1
13890   cat conftest.err >&5
13891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } && {
13893          test -z "$ac_c_werror_flag" ||
13894          test ! -s conftest.err
13895        } && test -s conftest$ac_exeext && {
13896          test "$cross_compiling" = yes ||
13897          $as_test_x conftest$ac_exeext
13898        }; then
13899   ac_cv_lib_m_acos=yes
13900 else
13901   $as_echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904         ac_cv_lib_m_acos=no
13907 rm -rf conftest.dSYM
13908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13909       conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
13912 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
13913 $as_echo "$ac_cv_lib_m_acos" >&6; }
13914 if test "x$ac_cv_lib_m_acos" = x""yes; then
13915   cat >>confdefs.h <<_ACEOF
13916 #define HAVE_LIBM 1
13917 _ACEOF
13919   LIBS="-lm $LIBS"
13927 eval `./libtool --config | grep pic_flag`
13928 CFLAGS="$CFLAGS $pic_flag"
13932 for ac_func in strftime
13934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13936 $as_echo_n "checking for $ac_func... " >&6; }
13937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13938   $as_echo_n "(cached) " >&6
13939 else
13940   cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h.  */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h.  */
13946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13948 #define $ac_func innocuous_$ac_func
13950 /* System header to define __stub macros and hopefully few prototypes,
13951     which can conflict with char $ac_func (); below.
13952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13953     <limits.h> exists even on freestanding compilers.  */
13955 #ifdef __STDC__
13956 # include <limits.h>
13957 #else
13958 # include <assert.h>
13959 #endif
13961 #undef $ac_func
13963 /* Override any GCC internal prototype to avoid an error.
13964    Use char because int might match the return type of a GCC
13965    builtin and then its argument prototype would still apply.  */
13966 #ifdef __cplusplus
13967 extern "C"
13968 #endif
13969 char $ac_func ();
13970 /* The GNU C library defines this for functions which it implements
13971     to always fail with ENOSYS.  Some functions are actually named
13972     something starting with __ and the normal name is an alias.  */
13973 #if defined __stub_$ac_func || defined __stub___$ac_func
13974 choke me
13975 #endif
13977 int
13978 main ()
13980 return $ac_func ();
13981   ;
13982   return 0;
13984 _ACEOF
13985 rm -f conftest.$ac_objext conftest$ac_exeext
13986 if { (ac_try="$ac_link"
13987 case "(($ac_try" in
13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989   *) ac_try_echo=$ac_try;;
13990 esac
13991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13992 $as_echo "$ac_try_echo") >&5
13993   (eval "$ac_link") 2>conftest.er1
13994   ac_status=$?
13995   grep -v '^ *+' conftest.er1 >conftest.err
13996   rm -f conftest.er1
13997   cat conftest.err >&5
13998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); } && {
14000          test -z "$ac_c_werror_flag" ||
14001          test ! -s conftest.err
14002        } && test -s conftest$ac_exeext && {
14003          test "$cross_compiling" = yes ||
14004          $as_test_x conftest$ac_exeext
14005        }; then
14006   eval "$as_ac_var=yes"
14007 else
14008   $as_echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14011         eval "$as_ac_var=no"
14014 rm -rf conftest.dSYM
14015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14016       conftest$ac_exeext conftest.$ac_ext
14018 ac_res=`eval 'as_val=${'$as_ac_var'}
14019                  $as_echo "$as_val"'`
14020                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14021 $as_echo "$ac_res" >&6; }
14022 as_val=`eval 'as_val=${'$as_ac_var'}
14023                  $as_echo "$as_val"'`
14024    if test "x$as_val" = x""yes; then
14025   cat >>confdefs.h <<_ACEOF
14026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14027 _ACEOF
14029 else
14030   # strftime is in -lintl on SCO UNIX.
14031 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14032 $as_echo_n "checking for strftime in -lintl... " >&6; }
14033 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14034   $as_echo_n "(cached) " >&6
14035 else
14036   ac_check_lib_save_LIBS=$LIBS
14037 LIBS="-lintl  $LIBS"
14038 cat >conftest.$ac_ext <<_ACEOF
14039 /* confdefs.h.  */
14040 _ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h.  */
14045 /* Override any GCC internal prototype to avoid an error.
14046    Use char because int might match the return type of a GCC
14047    builtin and then its argument prototype would still apply.  */
14048 #ifdef __cplusplus
14049 extern "C"
14050 #endif
14051 char strftime ();
14052 int
14053 main ()
14055 return strftime ();
14056   ;
14057   return 0;
14059 _ACEOF
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (ac_try="$ac_link"
14062 case "(($ac_try" in
14063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064   *) ac_try_echo=$ac_try;;
14065 esac
14066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14067 $as_echo "$ac_try_echo") >&5
14068   (eval "$ac_link") 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } && {
14075          test -z "$ac_c_werror_flag" ||
14076          test ! -s conftest.err
14077        } && test -s conftest$ac_exeext && {
14078          test "$cross_compiling" = yes ||
14079          $as_test_x conftest$ac_exeext
14080        }; then
14081   ac_cv_lib_intl_strftime=yes
14082 else
14083   $as_echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086         ac_cv_lib_intl_strftime=no
14089 rm -rf conftest.dSYM
14090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14091       conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14095 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
14096 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14097   cat >>confdefs.h <<\_ACEOF
14098 #define HAVE_STRFTIME 1
14099 _ACEOF
14101 LIBS="-lintl $LIBS"
14105 done
14108 for ac_func in vprintf
14110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14112 $as_echo_n "checking for $ac_func... " >&6; }
14113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14114   $as_echo_n "(cached) " >&6
14115 else
14116   cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h.  */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h.  */
14122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14124 #define $ac_func innocuous_$ac_func
14126 /* System header to define __stub macros and hopefully few prototypes,
14127     which can conflict with char $ac_func (); below.
14128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129     <limits.h> exists even on freestanding compilers.  */
14131 #ifdef __STDC__
14132 # include <limits.h>
14133 #else
14134 # include <assert.h>
14135 #endif
14137 #undef $ac_func
14139 /* Override any GCC internal prototype to avoid an error.
14140    Use char because int might match the return type of a GCC
14141    builtin and then its argument prototype would still apply.  */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char $ac_func ();
14146 /* The GNU C library defines this for functions which it implements
14147     to always fail with ENOSYS.  Some functions are actually named
14148     something starting with __ and the normal name is an alias.  */
14149 #if defined __stub_$ac_func || defined __stub___$ac_func
14150 choke me
14151 #endif
14153 int
14154 main ()
14156 return $ac_func ();
14157   ;
14158   return 0;
14160 _ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165   *) ac_try_echo=$ac_try;;
14166 esac
14167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14168 $as_echo "$ac_try_echo") >&5
14169   (eval "$ac_link") 2>conftest.er1
14170   ac_status=$?
14171   grep -v '^ *+' conftest.er1 >conftest.err
14172   rm -f conftest.er1
14173   cat conftest.err >&5
14174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } && {
14176          test -z "$ac_c_werror_flag" ||
14177          test ! -s conftest.err
14178        } && test -s conftest$ac_exeext && {
14179          test "$cross_compiling" = yes ||
14180          $as_test_x conftest$ac_exeext
14181        }; then
14182   eval "$as_ac_var=yes"
14183 else
14184   $as_echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187         eval "$as_ac_var=no"
14190 rm -rf conftest.dSYM
14191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14192       conftest$ac_exeext conftest.$ac_ext
14194 ac_res=`eval 'as_val=${'$as_ac_var'}
14195                  $as_echo "$as_val"'`
14196                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14197 $as_echo "$ac_res" >&6; }
14198 as_val=`eval 'as_val=${'$as_ac_var'}
14199                  $as_echo "$as_val"'`
14200    if test "x$as_val" = x""yes; then
14201   cat >>confdefs.h <<_ACEOF
14202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14203 _ACEOF
14205 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
14206 $as_echo_n "checking for _doprnt... " >&6; }
14207 if test "${ac_cv_func__doprnt+set}" = set; then
14208   $as_echo_n "(cached) " >&6
14209 else
14210   cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14218 #define _doprnt innocuous__doprnt
14220 /* System header to define __stub macros and hopefully few prototypes,
14221     which can conflict with char _doprnt (); below.
14222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14223     <limits.h> exists even on freestanding compilers.  */
14225 #ifdef __STDC__
14226 # include <limits.h>
14227 #else
14228 # include <assert.h>
14229 #endif
14231 #undef _doprnt
14233 /* Override any GCC internal prototype to avoid an error.
14234    Use char because int might match the return type of a GCC
14235    builtin and then its argument prototype would still apply.  */
14236 #ifdef __cplusplus
14237 extern "C"
14238 #endif
14239 char _doprnt ();
14240 /* The GNU C library defines this for functions which it implements
14241     to always fail with ENOSYS.  Some functions are actually named
14242     something starting with __ and the normal name is an alias.  */
14243 #if defined __stub__doprnt || defined __stub____doprnt
14244 choke me
14245 #endif
14247 int
14248 main ()
14250 return _doprnt ();
14251   ;
14252   return 0;
14254 _ACEOF
14255 rm -f conftest.$ac_objext conftest$ac_exeext
14256 if { (ac_try="$ac_link"
14257 case "(($ac_try" in
14258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259   *) ac_try_echo=$ac_try;;
14260 esac
14261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14262 $as_echo "$ac_try_echo") >&5
14263   (eval "$ac_link") 2>conftest.er1
14264   ac_status=$?
14265   grep -v '^ *+' conftest.er1 >conftest.err
14266   rm -f conftest.er1
14267   cat conftest.err >&5
14268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); } && {
14270          test -z "$ac_c_werror_flag" ||
14271          test ! -s conftest.err
14272        } && test -s conftest$ac_exeext && {
14273          test "$cross_compiling" = yes ||
14274          $as_test_x conftest$ac_exeext
14275        }; then
14276   ac_cv_func__doprnt=yes
14277 else
14278   $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281         ac_cv_func__doprnt=no
14284 rm -rf conftest.dSYM
14285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286       conftest$ac_exeext conftest.$ac_ext
14288 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14289 $as_echo "$ac_cv_func__doprnt" >&6; }
14290 if test "x$ac_cv_func__doprnt" = x""yes; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_DOPRNT 1
14294 _ACEOF
14299 done
14304  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14305 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14306 if test "${ac_cv_c_bigendian+set}" = set; then
14307   $as_echo_n "(cached) " >&6
14308 else
14309   ac_cv_c_bigendian=unknown
14310     # See if we're dealing with a universal compiler.
14311     cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h.  */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h.  */
14317 #ifndef __APPLE_CC__
14318                not a universal capable compiler
14319              #endif
14320              typedef int dummy;
14322 _ACEOF
14323 rm -f conftest.$ac_objext
14324 if { (ac_try="$ac_compile"
14325 case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14330 $as_echo "$ac_try_echo") >&5
14331   (eval "$ac_compile") 2>conftest.er1
14332   ac_status=$?
14333   grep -v '^ *+' conftest.er1 >conftest.err
14334   rm -f conftest.er1
14335   cat conftest.err >&5
14336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); } && {
14338          test -z "$ac_c_werror_flag" ||
14339          test ! -s conftest.err
14340        } && test -s conftest.$ac_objext; then
14342         # Check for potential -arch flags.  It is not universal unless
14343         # there are some -arch flags.  Note that *ppc* also matches
14344         # ppc64.  This check is also rather less than ideal.
14345         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14346           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14347         esac
14348 else
14349   $as_echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356     if test $ac_cv_c_bigendian = unknown; then
14357       # See if sys/param.h defines the BYTE_ORDER macro.
14358       cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364 #include <sys/types.h>
14365              #include <sys/param.h>
14367 int
14368 main ()
14370 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14371                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14372                      && LITTLE_ENDIAN)
14373               bogus endian macros
14374              #endif
14376   ;
14377   return 0;
14379 _ACEOF
14380 rm -f conftest.$ac_objext
14381 if { (ac_try="$ac_compile"
14382 case "(($ac_try" in
14383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384   *) ac_try_echo=$ac_try;;
14385 esac
14386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14387 $as_echo "$ac_try_echo") >&5
14388   (eval "$ac_compile") 2>conftest.er1
14389   ac_status=$?
14390   grep -v '^ *+' conftest.er1 >conftest.err
14391   rm -f conftest.er1
14392   cat conftest.err >&5
14393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } && {
14395          test -z "$ac_c_werror_flag" ||
14396          test ! -s conftest.err
14397        } && test -s conftest.$ac_objext; then
14398   # It does; now see whether it defined to BIG_ENDIAN or not.
14399          cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h.  */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h.  */
14405 #include <sys/types.h>
14406                 #include <sys/param.h>
14408 int
14409 main ()
14411 #if BYTE_ORDER != BIG_ENDIAN
14412                  not big endian
14413                 #endif
14415   ;
14416   return 0;
14418 _ACEOF
14419 rm -f conftest.$ac_objext
14420 if { (ac_try="$ac_compile"
14421 case "(($ac_try" in
14422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423   *) ac_try_echo=$ac_try;;
14424 esac
14425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14426 $as_echo "$ac_try_echo") >&5
14427   (eval "$ac_compile") 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } && {
14434          test -z "$ac_c_werror_flag" ||
14435          test ! -s conftest.err
14436        } && test -s conftest.$ac_objext; then
14437   ac_cv_c_bigendian=yes
14438 else
14439   $as_echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442         ac_cv_c_bigendian=no
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 else
14447   $as_echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454     fi
14455     if test $ac_cv_c_bigendian = unknown; then
14456       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14457       cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 #include <limits.h>
14465 int
14466 main ()
14468 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14469               bogus endian macros
14470              #endif
14472   ;
14473   return 0;
14475 _ACEOF
14476 rm -f conftest.$ac_objext
14477 if { (ac_try="$ac_compile"
14478 case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14483 $as_echo "$ac_try_echo") >&5
14484   (eval "$ac_compile") 2>conftest.er1
14485   ac_status=$?
14486   grep -v '^ *+' conftest.er1 >conftest.err
14487   rm -f conftest.er1
14488   cat conftest.err >&5
14489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } && {
14491          test -z "$ac_c_werror_flag" ||
14492          test ! -s conftest.err
14493        } && test -s conftest.$ac_objext; then
14494   # It does; now see whether it defined to _BIG_ENDIAN or not.
14495          cat >conftest.$ac_ext <<_ACEOF
14496 /* confdefs.h.  */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h.  */
14501 #include <limits.h>
14503 int
14504 main ()
14506 #ifndef _BIG_ENDIAN
14507                  not big endian
14508                 #endif
14510   ;
14511   return 0;
14513 _ACEOF
14514 rm -f conftest.$ac_objext
14515 if { (ac_try="$ac_compile"
14516 case "(($ac_try" in
14517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518   *) ac_try_echo=$ac_try;;
14519 esac
14520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14521 $as_echo "$ac_try_echo") >&5
14522   (eval "$ac_compile") 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && {
14529          test -z "$ac_c_werror_flag" ||
14530          test ! -s conftest.err
14531        } && test -s conftest.$ac_objext; then
14532   ac_cv_c_bigendian=yes
14533 else
14534   $as_echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537         ac_cv_c_bigendian=no
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 else
14542   $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549     fi
14550     if test $ac_cv_c_bigendian = unknown; then
14551       # Compile a test program.
14552       if test "$cross_compiling" = yes; then
14553   # Try to guess by grepping values from an object file.
14554          cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560 short int ascii_mm[] =
14561                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14562                 short int ascii_ii[] =
14563                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14564                 int use_ascii (int i) {
14565                   return ascii_mm[i] + ascii_ii[i];
14566                 }
14567                 short int ebcdic_ii[] =
14568                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14569                 short int ebcdic_mm[] =
14570                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14571                 int use_ebcdic (int i) {
14572                   return ebcdic_mm[i] + ebcdic_ii[i];
14573                 }
14574                 extern int foo;
14576 int
14577 main ()
14579 return use_ascii (foo) == use_ebcdic (foo);
14580   ;
14581   return 0;
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (ac_try="$ac_compile"
14586 case "(($ac_try" in
14587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588   *) ac_try_echo=$ac_try;;
14589 esac
14590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14591 $as_echo "$ac_try_echo") >&5
14592   (eval "$ac_compile") 2>conftest.er1
14593   ac_status=$?
14594   grep -v '^ *+' conftest.er1 >conftest.err
14595   rm -f conftest.er1
14596   cat conftest.err >&5
14597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } && {
14599          test -z "$ac_c_werror_flag" ||
14600          test ! -s conftest.err
14601        } && test -s conftest.$ac_objext; then
14602   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14603               ac_cv_c_bigendian=yes
14604             fi
14605             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14606               if test "$ac_cv_c_bigendian" = unknown; then
14607                 ac_cv_c_bigendian=no
14608               else
14609                 # finding both strings is unlikely to happen, but who knows?
14610                 ac_cv_c_bigendian=unknown
14611               fi
14612             fi
14613 else
14614   $as_echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 else
14622   cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628 $ac_includes_default
14629 int
14630 main ()
14633              /* Are we little or big endian?  From Harbison&Steele.  */
14634              union
14635              {
14636                long int l;
14637                char c[sizeof (long int)];
14638              } u;
14639              u.l = 1;
14640              return u.c[sizeof (long int) - 1] == 1;
14642   ;
14643   return 0;
14645 _ACEOF
14646 rm -f conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14653 $as_echo "$ac_try_echo") >&5
14654   (eval "$ac_link") 2>&5
14655   ac_status=$?
14656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14658   { (case "(($ac_try" in
14659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660   *) ac_try_echo=$ac_try;;
14661 esac
14662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14663 $as_echo "$ac_try_echo") >&5
14664   (eval "$ac_try") 2>&5
14665   ac_status=$?
14666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; }; then
14668   ac_cv_c_bigendian=no
14669 else
14670   $as_echo "$as_me: program exited with status $ac_status" >&5
14671 $as_echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ( exit $ac_status )
14675 ac_cv_c_bigendian=yes
14677 rm -rf conftest.dSYM
14678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14682     fi
14684 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14685 $as_echo "$ac_cv_c_bigendian" >&6; }
14686  case $ac_cv_c_bigendian in #(
14687    yes)
14688      cat >>confdefs.h <<\_ACEOF
14689 #define WORDS_BIGENDIAN 1
14690 _ACEOF
14691 ;; #(
14692    no)
14693       ;; #(
14694    universal)
14696 cat >>confdefs.h <<\_ACEOF
14697 #define AC_APPLE_UNIVERSAL_BUILD 1
14698 _ACEOF
14700      ;; #(
14701    *)
14702      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14703  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14704 $as_echo "$as_me: error: unknown endianness
14705  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14706    { (exit 1); exit 1; }; } ;;
14707  esac
14733 for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
14735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14737 $as_echo_n "checking for $ac_func... " >&6; }
14738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14739   $as_echo_n "(cached) " >&6
14740 else
14741   cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h.  */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h.  */
14747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14749 #define $ac_func innocuous_$ac_func
14751 /* System header to define __stub macros and hopefully few prototypes,
14752     which can conflict with char $ac_func (); below.
14753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14754     <limits.h> exists even on freestanding compilers.  */
14756 #ifdef __STDC__
14757 # include <limits.h>
14758 #else
14759 # include <assert.h>
14760 #endif
14762 #undef $ac_func
14764 /* Override any GCC internal prototype to avoid an error.
14765    Use char because int might match the return type of a GCC
14766    builtin and then its argument prototype would still apply.  */
14767 #ifdef __cplusplus
14768 extern "C"
14769 #endif
14770 char $ac_func ();
14771 /* The GNU C library defines this for functions which it implements
14772     to always fail with ENOSYS.  Some functions are actually named
14773     something starting with __ and the normal name is an alias.  */
14774 #if defined __stub_$ac_func || defined __stub___$ac_func
14775 choke me
14776 #endif
14778 int
14779 main ()
14781 return $ac_func ();
14782   ;
14783   return 0;
14785 _ACEOF
14786 rm -f conftest.$ac_objext conftest$ac_exeext
14787 if { (ac_try="$ac_link"
14788 case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793 $as_echo "$ac_try_echo") >&5
14794   (eval "$ac_link") 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } && {
14801          test -z "$ac_c_werror_flag" ||
14802          test ! -s conftest.err
14803        } && test -s conftest$ac_exeext && {
14804          test "$cross_compiling" = yes ||
14805          $as_test_x conftest$ac_exeext
14806        }; then
14807   eval "$as_ac_var=yes"
14808 else
14809   $as_echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812         eval "$as_ac_var=no"
14815 rm -rf conftest.dSYM
14816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14817       conftest$ac_exeext conftest.$ac_ext
14819 ac_res=`eval 'as_val=${'$as_ac_var'}
14820                  $as_echo "$as_val"'`
14821                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14822 $as_echo "$ac_res" >&6; }
14823 as_val=`eval 'as_val=${'$as_ac_var'}
14824                  $as_echo "$as_val"'`
14825    if test "x$as_val" = x""yes; then
14826   cat >>confdefs.h <<_ACEOF
14827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14828 _ACEOF
14831 done
14834 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14835 $as_echo_n "checking whether strerror_r is declared... " >&6; }
14836 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14837   $as_echo_n "(cached) " >&6
14838 else
14839   cat >conftest.$ac_ext <<_ACEOF
14840 /* confdefs.h.  */
14841 _ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h.  */
14845 $ac_includes_default
14846 int
14847 main ()
14849 #ifndef strerror_r
14850   (void) strerror_r;
14851 #endif
14853   ;
14854   return 0;
14856 _ACEOF
14857 rm -f conftest.$ac_objext
14858 if { (ac_try="$ac_compile"
14859 case "(($ac_try" in
14860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861   *) ac_try_echo=$ac_try;;
14862 esac
14863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14864 $as_echo "$ac_try_echo") >&5
14865   (eval "$ac_compile") 2>conftest.er1
14866   ac_status=$?
14867   grep -v '^ *+' conftest.er1 >conftest.err
14868   rm -f conftest.er1
14869   cat conftest.err >&5
14870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); } && {
14872          test -z "$ac_c_werror_flag" ||
14873          test ! -s conftest.err
14874        } && test -s conftest.$ac_objext; then
14875   ac_cv_have_decl_strerror_r=yes
14876 else
14877   $as_echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880         ac_cv_have_decl_strerror_r=no
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14886 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
14887 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
14889 cat >>confdefs.h <<_ACEOF
14890 #define HAVE_DECL_STRERROR_R 1
14891 _ACEOF
14894 else
14895   cat >>confdefs.h <<_ACEOF
14896 #define HAVE_DECL_STRERROR_R 0
14897 _ACEOF
14904 for ac_func in strerror_r
14906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14907 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14908 $as_echo_n "checking for $ac_func... " >&6; }
14909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14910   $as_echo_n "(cached) " >&6
14911 else
14912   cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14920 #define $ac_func innocuous_$ac_func
14922 /* System header to define __stub macros and hopefully few prototypes,
14923     which can conflict with char $ac_func (); below.
14924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14925     <limits.h> exists even on freestanding compilers.  */
14927 #ifdef __STDC__
14928 # include <limits.h>
14929 #else
14930 # include <assert.h>
14931 #endif
14933 #undef $ac_func
14935 /* Override any GCC internal prototype to avoid an error.
14936    Use char because int might match the return type of a GCC
14937    builtin and then its argument prototype would still apply.  */
14938 #ifdef __cplusplus
14939 extern "C"
14940 #endif
14941 char $ac_func ();
14942 /* The GNU C library defines this for functions which it implements
14943     to always fail with ENOSYS.  Some functions are actually named
14944     something starting with __ and the normal name is an alias.  */
14945 #if defined __stub_$ac_func || defined __stub___$ac_func
14946 choke me
14947 #endif
14949 int
14950 main ()
14952 return $ac_func ();
14953   ;
14954   return 0;
14956 _ACEOF
14957 rm -f conftest.$ac_objext conftest$ac_exeext
14958 if { (ac_try="$ac_link"
14959 case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14964 $as_echo "$ac_try_echo") >&5
14965   (eval "$ac_link") 2>conftest.er1
14966   ac_status=$?
14967   grep -v '^ *+' conftest.er1 >conftest.err
14968   rm -f conftest.er1
14969   cat conftest.err >&5
14970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); } && {
14972          test -z "$ac_c_werror_flag" ||
14973          test ! -s conftest.err
14974        } && test -s conftest$ac_exeext && {
14975          test "$cross_compiling" = yes ||
14976          $as_test_x conftest$ac_exeext
14977        }; then
14978   eval "$as_ac_var=yes"
14979 else
14980   $as_echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983         eval "$as_ac_var=no"
14986 rm -rf conftest.dSYM
14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988       conftest$ac_exeext conftest.$ac_ext
14990 ac_res=`eval 'as_val=${'$as_ac_var'}
14991                  $as_echo "$as_val"'`
14992                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14993 $as_echo "$ac_res" >&6; }
14994 as_val=`eval 'as_val=${'$as_ac_var'}
14995                  $as_echo "$as_val"'`
14996    if test "x$as_val" = x""yes; then
14997   cat >>confdefs.h <<_ACEOF
14998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14999 _ACEOF
15002 done
15004 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15005 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15006 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15007   $as_echo_n "(cached) " >&6
15008 else
15010     ac_cv_func_strerror_r_char_p=no
15011     if test $ac_cv_have_decl_strerror_r = yes; then
15012       cat >conftest.$ac_ext <<_ACEOF
15013 /* confdefs.h.  */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h.  */
15018 $ac_includes_default
15019 int
15020 main ()
15023           char buf[100];
15024           char x = *strerror_r (0, buf, sizeof buf);
15025           char *p = strerror_r (0, buf, sizeof buf);
15026           return !p || x;
15028   ;
15029   return 0;
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (ac_try="$ac_compile"
15034 case "(($ac_try" in
15035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036   *) ac_try_echo=$ac_try;;
15037 esac
15038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15039 $as_echo "$ac_try_echo") >&5
15040   (eval "$ac_compile") 2>conftest.er1
15041   ac_status=$?
15042   grep -v '^ *+' conftest.er1 >conftest.err
15043   rm -f conftest.er1
15044   cat conftest.err >&5
15045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); } && {
15047          test -z "$ac_c_werror_flag" ||
15048          test ! -s conftest.err
15049        } && test -s conftest.$ac_objext; then
15050   ac_cv_func_strerror_r_char_p=yes
15051 else
15052   $as_echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059     else
15060       # strerror_r is not declared.  Choose between
15061       # systems that have relatively inaccessible declarations for the
15062       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
15063       # former has a strerror_r that returns char*, while the latter
15064       # has a strerror_r that returns `int'.
15065       # This test should segfault on the DEC system.
15066       if test "$cross_compiling" = yes; then
15067   :
15068 else
15069   cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h.  */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h.  */
15075 $ac_includes_default
15076         extern char *strerror_r ();
15077 int
15078 main ()
15080 char buf[100];
15081           char x = *strerror_r (0, buf, sizeof buf);
15082           return ! isalpha (x);
15083   ;
15084   return 0;
15086 _ACEOF
15087 rm -f conftest$ac_exeext
15088 if { (ac_try="$ac_link"
15089 case "(($ac_try" in
15090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091   *) ac_try_echo=$ac_try;;
15092 esac
15093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15094 $as_echo "$ac_try_echo") >&5
15095   (eval "$ac_link") 2>&5
15096   ac_status=$?
15097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15099   { (case "(($ac_try" in
15100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101   *) ac_try_echo=$ac_try;;
15102 esac
15103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15104 $as_echo "$ac_try_echo") >&5
15105   (eval "$ac_try") 2>&5
15106   ac_status=$?
15107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; }; then
15109   ac_cv_func_strerror_r_char_p=yes
15110 else
15111   $as_echo "$as_me: program exited with status $ac_status" >&5
15112 $as_echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15116 rm -rf conftest.dSYM
15117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15121     fi
15124 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15125 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15126 if test $ac_cv_func_strerror_r_char_p = yes; then
15128 cat >>confdefs.h <<\_ACEOF
15129 #define STRERROR_R_CHAR_P 1
15130 _ACEOF
15136 case $TERM in
15137        #   for the most important terminal types we directly know the sequences
15138        xterm|xterm*|vt220|vt220*)
15139                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
15140                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
15141        ;;
15142        vt100|vt100*|cygwin)
15143                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
15144                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
15145        ;;
15146        *)
15147                T_MD=''
15148                T_ME=''
15149        ;;
15150 esac
15151   { $as_echo "$as_me:$LINENO: result: " >&5
15152 $as_echo "" >&6; }
15153   { $as_echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
15154 $as_echo "${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
15160 for ac_func in fdatasync
15162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15163 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15164 $as_echo_n "checking for $ac_func... " >&6; }
15165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15166   $as_echo_n "(cached) " >&6
15167 else
15168   cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h.  */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h.  */
15174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15176 #define $ac_func innocuous_$ac_func
15178 /* System header to define __stub macros and hopefully few prototypes,
15179     which can conflict with char $ac_func (); below.
15180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15181     <limits.h> exists even on freestanding compilers.  */
15183 #ifdef __STDC__
15184 # include <limits.h>
15185 #else
15186 # include <assert.h>
15187 #endif
15189 #undef $ac_func
15191 /* Override any GCC internal prototype to avoid an error.
15192    Use char because int might match the return type of a GCC
15193    builtin and then its argument prototype would still apply.  */
15194 #ifdef __cplusplus
15195 extern "C"
15196 #endif
15197 char $ac_func ();
15198 /* The GNU C library defines this for functions which it implements
15199     to always fail with ENOSYS.  Some functions are actually named
15200     something starting with __ and the normal name is an alias.  */
15201 #if defined __stub_$ac_func || defined __stub___$ac_func
15202 choke me
15203 #endif
15205 int
15206 main ()
15208 return $ac_func ();
15209   ;
15210   return 0;
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217   *) ac_try_echo=$ac_try;;
15218 esac
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221   (eval "$ac_link") 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } && {
15228          test -z "$ac_c_werror_flag" ||
15229          test ! -s conftest.err
15230        } && test -s conftest$ac_exeext && {
15231          test "$cross_compiling" = yes ||
15232          $as_test_x conftest$ac_exeext
15233        }; then
15234   eval "$as_ac_var=yes"
15235 else
15236   $as_echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239         eval "$as_ac_var=no"
15242 rm -rf conftest.dSYM
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244       conftest$ac_exeext conftest.$ac_ext
15246 ac_res=`eval 'as_val=${'$as_ac_var'}
15247                  $as_echo "$as_val"'`
15248                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15249 $as_echo "$ac_res" >&6; }
15250 as_val=`eval 'as_val=${'$as_ac_var'}
15251                  $as_echo "$as_val"'`
15252    if test "x$as_val" = x""yes; then
15253   cat >>confdefs.h <<_ACEOF
15254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15255 _ACEOF
15257 else
15258   { $as_echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
15259 $as_echo_n "checking for fdatasync in -lrt... " >&6; }
15260 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
15261   $as_echo_n "(cached) " >&6
15262 else
15263   ac_check_lib_save_LIBS=$LIBS
15264 LIBS="-lrt  $LIBS"
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h.  */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h.  */
15272 /* Override any GCC internal prototype to avoid an error.
15273    Use char because int might match the return type of a GCC
15274    builtin and then its argument prototype would still apply.  */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 char fdatasync ();
15279 int
15280 main ()
15282 return fdatasync ();
15283   ;
15284   return 0;
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291   *) ac_try_echo=$ac_try;;
15292 esac
15293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15294 $as_echo "$ac_try_echo") >&5
15295   (eval "$ac_link") 2>conftest.er1
15296   ac_status=$?
15297   grep -v '^ *+' conftest.er1 >conftest.err
15298   rm -f conftest.er1
15299   cat conftest.err >&5
15300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); } && {
15302          test -z "$ac_c_werror_flag" ||
15303          test ! -s conftest.err
15304        } && test -s conftest$ac_exeext && {
15305          test "$cross_compiling" = yes ||
15306          $as_test_x conftest$ac_exeext
15307        }; then
15308   ac_cv_lib_rt_fdatasync=yes
15309 else
15310   $as_echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313         ac_cv_lib_rt_fdatasync=no
15316 rm -rf conftest.dSYM
15317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318       conftest$ac_exeext conftest.$ac_ext
15319 LIBS=$ac_check_lib_save_LIBS
15321 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
15322 $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
15323 if test "x$ac_cv_lib_rt_fdatasync" = x""yes; then
15324   LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
15325 #define HAVE_FDATASYNC 1
15326 _ACEOF
15331 done
15334 for ac_func in fsync
15336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15338 $as_echo_n "checking for $ac_func... " >&6; }
15339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15340   $as_echo_n "(cached) " >&6
15341 else
15342   cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15350 #define $ac_func innocuous_$ac_func
15352 /* System header to define __stub macros and hopefully few prototypes,
15353     which can conflict with char $ac_func (); below.
15354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15355     <limits.h> exists even on freestanding compilers.  */
15357 #ifdef __STDC__
15358 # include <limits.h>
15359 #else
15360 # include <assert.h>
15361 #endif
15363 #undef $ac_func
15365 /* Override any GCC internal prototype to avoid an error.
15366    Use char because int might match the return type of a GCC
15367    builtin and then its argument prototype would still apply.  */
15368 #ifdef __cplusplus
15369 extern "C"
15370 #endif
15371 char $ac_func ();
15372 /* The GNU C library defines this for functions which it implements
15373     to always fail with ENOSYS.  Some functions are actually named
15374     something starting with __ and the normal name is an alias.  */
15375 #if defined __stub_$ac_func || defined __stub___$ac_func
15376 choke me
15377 #endif
15379 int
15380 main ()
15382 return $ac_func ();
15383   ;
15384   return 0;
15386 _ACEOF
15387 rm -f conftest.$ac_objext conftest$ac_exeext
15388 if { (ac_try="$ac_link"
15389 case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395   (eval "$ac_link") 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } && {
15402          test -z "$ac_c_werror_flag" ||
15403          test ! -s conftest.err
15404        } && test -s conftest$ac_exeext && {
15405          test "$cross_compiling" = yes ||
15406          $as_test_x conftest$ac_exeext
15407        }; then
15408   eval "$as_ac_var=yes"
15409 else
15410   $as_echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413         eval "$as_ac_var=no"
15416 rm -rf conftest.dSYM
15417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15418       conftest$ac_exeext conftest.$ac_ext
15420 ac_res=`eval 'as_val=${'$as_ac_var'}
15421                  $as_echo "$as_val"'`
15422                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15423 $as_echo "$ac_res" >&6; }
15424 as_val=`eval 'as_val=${'$as_ac_var'}
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_func" | $as_tr_cpp` 1
15429 _ACEOF
15432 done
15436 if test "x$enable_mmap" = "xyes"; then
15437   case "$host" in
15438   *cygwin*)
15439     # the normal mmap test does not work in cygwin
15441 for ac_func in mmap
15443 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15444 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15445 $as_echo_n "checking for $ac_func... " >&6; }
15446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15447   $as_echo_n "(cached) " >&6
15448 else
15449   cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h.  */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h.  */
15455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15457 #define $ac_func innocuous_$ac_func
15459 /* System header to define __stub macros and hopefully few prototypes,
15460     which can conflict with char $ac_func (); below.
15461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15462     <limits.h> exists even on freestanding compilers.  */
15464 #ifdef __STDC__
15465 # include <limits.h>
15466 #else
15467 # include <assert.h>
15468 #endif
15470 #undef $ac_func
15472 /* Override any GCC internal prototype to avoid an error.
15473    Use char because int might match the return type of a GCC
15474    builtin and then its argument prototype would still apply.  */
15475 #ifdef __cplusplus
15476 extern "C"
15477 #endif
15478 char $ac_func ();
15479 /* The GNU C library defines this for functions which it implements
15480     to always fail with ENOSYS.  Some functions are actually named
15481     something starting with __ and the normal name is an alias.  */
15482 #if defined __stub_$ac_func || defined __stub___$ac_func
15483 choke me
15484 #endif
15486 int
15487 main ()
15489 return $ac_func ();
15490   ;
15491   return 0;
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498   *) ac_try_echo=$ac_try;;
15499 esac
15500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15501 $as_echo "$ac_try_echo") >&5
15502   (eval "$ac_link") 2>conftest.er1
15503   ac_status=$?
15504   grep -v '^ *+' conftest.er1 >conftest.err
15505   rm -f conftest.er1
15506   cat conftest.err >&5
15507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } && {
15509          test -z "$ac_c_werror_flag" ||
15510          test ! -s conftest.err
15511        } && test -s conftest$ac_exeext && {
15512          test "$cross_compiling" = yes ||
15513          $as_test_x conftest$ac_exeext
15514        }; then
15515   eval "$as_ac_var=yes"
15516 else
15517   $as_echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15520         eval "$as_ac_var=no"
15523 rm -rf conftest.dSYM
15524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15525       conftest$ac_exeext conftest.$ac_ext
15527 ac_res=`eval 'as_val=${'$as_ac_var'}
15528                  $as_echo "$as_val"'`
15529                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15530 $as_echo "$ac_res" >&6; }
15531 as_val=`eval 'as_val=${'$as_ac_var'}
15532                  $as_echo "$as_val"'`
15533    if test "x$as_val" = x""yes; then
15534   cat >>confdefs.h <<_ACEOF
15535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15536 _ACEOF
15539 done
15541     if test "x$ac_cv_func_mmap" = "xyes"; then
15542       ac_cv_func_mmap_fixed_mapped=yes
15543     fi
15544   ;;
15545   *)
15547 for ac_header in sys/mman.h
15549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15551   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15552 $as_echo_n "checking for $ac_header... " >&6; }
15553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15554   $as_echo_n "(cached) " >&6
15556 ac_res=`eval 'as_val=${'$as_ac_Header'}
15557                  $as_echo "$as_val"'`
15558                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15559 $as_echo "$ac_res" >&6; }
15560 else
15561   # Is the header compilable?
15562 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15563 $as_echo_n "checking $ac_header usability... " >&6; }
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h.  */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h.  */
15570 $ac_includes_default
15571 #include <$ac_header>
15572 _ACEOF
15573 rm -f conftest.$ac_objext
15574 if { (ac_try="$ac_compile"
15575 case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15580 $as_echo "$ac_try_echo") >&5
15581   (eval "$ac_compile") 2>conftest.er1
15582   ac_status=$?
15583   grep -v '^ *+' conftest.er1 >conftest.err
15584   rm -f conftest.er1
15585   cat conftest.err >&5
15586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); } && {
15588          test -z "$ac_c_werror_flag" ||
15589          test ! -s conftest.err
15590        } && test -s conftest.$ac_objext; then
15591   ac_header_compiler=yes
15592 else
15593   $as_echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596         ac_header_compiler=no
15599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15601 $as_echo "$ac_header_compiler" >&6; }
15603 # Is the header present?
15604 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15605 $as_echo_n "checking $ac_header presence... " >&6; }
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h.  */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h.  */
15612 #include <$ac_header>
15613 _ACEOF
15614 if { (ac_try="$ac_cpp conftest.$ac_ext"
15615 case "(($ac_try" in
15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617   *) ac_try_echo=$ac_try;;
15618 esac
15619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15620 $as_echo "$ac_try_echo") >&5
15621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } >/dev/null && {
15628          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15629          test ! -s conftest.err
15630        }; then
15631   ac_header_preproc=yes
15632 else
15633   $as_echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636   ac_header_preproc=no
15639 rm -f conftest.err conftest.$ac_ext
15640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15641 $as_echo "$ac_header_preproc" >&6; }
15643 # So?  What about this header?
15644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15645   yes:no: )
15646     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15647 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15649 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15650     ac_header_preproc=yes
15651     ;;
15652   no:yes:* )
15653     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15654 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15656 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15657     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15658 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15659     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15660 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15662 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15664 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15666     ;;
15667 esac
15668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15669 $as_echo_n "checking for $ac_header... " >&6; }
15670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15671   $as_echo_n "(cached) " >&6
15672 else
15673   eval "$as_ac_Header=\$ac_header_preproc"
15675 ac_res=`eval 'as_val=${'$as_ac_Header'}
15676                  $as_echo "$as_val"'`
15677                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15678 $as_echo "$ac_res" >&6; }
15681 as_val=`eval 'as_val=${'$as_ac_Header'}
15682                  $as_echo "$as_val"'`
15683    if test "x$as_val" = x""yes; then
15684   cat >>confdefs.h <<_ACEOF
15685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15686 _ACEOF
15690 done
15694 for ac_header in stdlib.h unistd.h
15696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15698   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 $as_echo_n "checking for $ac_header... " >&6; }
15700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701   $as_echo_n "(cached) " >&6
15703 ac_res=`eval 'as_val=${'$as_ac_Header'}
15704                  $as_echo "$as_val"'`
15705                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15706 $as_echo "$ac_res" >&6; }
15707 else
15708   # Is the header compilable?
15709 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710 $as_echo_n "checking $ac_header usability... " >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717 $ac_includes_default
15718 #include <$ac_header>
15719 _ACEOF
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724   *) ac_try_echo=$ac_try;;
15725 esac
15726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15727 $as_echo "$ac_try_echo") >&5
15728   (eval "$ac_compile") 2>conftest.er1
15729   ac_status=$?
15730   grep -v '^ *+' conftest.er1 >conftest.err
15731   rm -f conftest.er1
15732   cat conftest.err >&5
15733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); } && {
15735          test -z "$ac_c_werror_flag" ||
15736          test ! -s conftest.err
15737        } && test -s conftest.$ac_objext; then
15738   ac_header_compiler=yes
15739 else
15740   $as_echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743         ac_header_compiler=no
15746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15748 $as_echo "$ac_header_compiler" >&6; }
15750 # Is the header present?
15751 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15752 $as_echo_n "checking $ac_header presence... " >&6; }
15753 cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h.  */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h.  */
15759 #include <$ac_header>
15760 _ACEOF
15761 if { (ac_try="$ac_cpp conftest.$ac_ext"
15762 case "(($ac_try" in
15763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764   *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } >/dev/null && {
15775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15776          test ! -s conftest.err
15777        }; then
15778   ac_header_preproc=yes
15779 else
15780   $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783   ac_header_preproc=no
15786 rm -f conftest.err conftest.$ac_ext
15787 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15788 $as_echo "$ac_header_preproc" >&6; }
15790 # So?  What about this header?
15791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15792   yes:no: )
15793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15794 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15796 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15797     ac_header_preproc=yes
15798     ;;
15799   no:yes:* )
15800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15801 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15803 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15805 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15807 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15811 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15813     ;;
15814 esac
15815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15816 $as_echo_n "checking for $ac_header... " >&6; }
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818   $as_echo_n "(cached) " >&6
15819 else
15820   eval "$as_ac_Header=\$ac_header_preproc"
15822 ac_res=`eval 'as_val=${'$as_ac_Header'}
15823                  $as_echo "$as_val"'`
15824                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15825 $as_echo "$ac_res" >&6; }
15828 as_val=`eval 'as_val=${'$as_ac_Header'}
15829                  $as_echo "$as_val"'`
15830    if test "x$as_val" = x""yes; then
15831   cat >>confdefs.h <<_ACEOF
15832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15833 _ACEOF
15837 done
15840 for ac_func in getpagesize
15842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15843 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15844 $as_echo_n "checking for $ac_func... " >&6; }
15845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15846   $as_echo_n "(cached) " >&6
15847 else
15848   cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h.  */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h.  */
15854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15856 #define $ac_func innocuous_$ac_func
15858 /* System header to define __stub macros and hopefully few prototypes,
15859     which can conflict with char $ac_func (); below.
15860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15861     <limits.h> exists even on freestanding compilers.  */
15863 #ifdef __STDC__
15864 # include <limits.h>
15865 #else
15866 # include <assert.h>
15867 #endif
15869 #undef $ac_func
15871 /* Override any GCC internal prototype to avoid an error.
15872    Use char because int might match the return type of a GCC
15873    builtin and then its argument prototype would still apply.  */
15874 #ifdef __cplusplus
15875 extern "C"
15876 #endif
15877 char $ac_func ();
15878 /* The GNU C library defines this for functions which it implements
15879     to always fail with ENOSYS.  Some functions are actually named
15880     something starting with __ and the normal name is an alias.  */
15881 #if defined __stub_$ac_func || defined __stub___$ac_func
15882 choke me
15883 #endif
15885 int
15886 main ()
15888 return $ac_func ();
15889   ;
15890   return 0;
15892 _ACEOF
15893 rm -f conftest.$ac_objext conftest$ac_exeext
15894 if { (ac_try="$ac_link"
15895 case "(($ac_try" in
15896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897   *) ac_try_echo=$ac_try;;
15898 esac
15899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15900 $as_echo "$ac_try_echo") >&5
15901   (eval "$ac_link") 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } && {
15908          test -z "$ac_c_werror_flag" ||
15909          test ! -s conftest.err
15910        } && test -s conftest$ac_exeext && {
15911          test "$cross_compiling" = yes ||
15912          $as_test_x conftest$ac_exeext
15913        }; then
15914   eval "$as_ac_var=yes"
15915 else
15916   $as_echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919         eval "$as_ac_var=no"
15922 rm -rf conftest.dSYM
15923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15924       conftest$ac_exeext conftest.$ac_ext
15926 ac_res=`eval 'as_val=${'$as_ac_var'}
15927                  $as_echo "$as_val"'`
15928                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15929 $as_echo "$ac_res" >&6; }
15930 as_val=`eval 'as_val=${'$as_ac_var'}
15931                  $as_echo "$as_val"'`
15932    if test "x$as_val" = x""yes; then
15933   cat >>confdefs.h <<_ACEOF
15934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15935 _ACEOF
15938 done
15940 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
15941 $as_echo_n "checking for working mmap... " >&6; }
15942 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15943   $as_echo_n "(cached) " >&6
15944 else
15945   if test "$cross_compiling" = yes; then
15946   ac_cv_func_mmap_fixed_mapped=no
15947 else
15948   cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954 $ac_includes_default
15955 /* malloc might have been renamed as rpl_malloc. */
15956 #undef malloc
15958 /* Thanks to Mike Haertel and Jim Avera for this test.
15959    Here is a matrix of mmap possibilities:
15960         mmap private not fixed
15961         mmap private fixed at somewhere currently unmapped
15962         mmap private fixed at somewhere already mapped
15963         mmap shared not fixed
15964         mmap shared fixed at somewhere currently unmapped
15965         mmap shared fixed at somewhere already mapped
15966    For private mappings, we should verify that changes cannot be read()
15967    back from the file, nor mmap's back from the file at a different
15968    address.  (There have been systems where private was not correctly
15969    implemented like the infamous i386 svr4.0, and systems where the
15970    VM page cache was not coherent with the file system buffer cache
15971    like early versions of FreeBSD and possibly contemporary NetBSD.)
15972    For shared mappings, we should conversely verify that changes get
15973    propagated back to all the places they're supposed to be.
15975    Grep wants private fixed already mapped.
15976    The main things grep needs to know about mmap are:
15977    * does it exist and is it safe to write into the mmap'd area
15978    * how to use it (BSD variants)  */
15980 #include <fcntl.h>
15981 #include <sys/mman.h>
15983 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15984 char *malloc ();
15985 #endif
15987 /* This mess was copied from the GNU getpagesize.h.  */
15988 #ifndef HAVE_GETPAGESIZE
15989 /* Assume that all systems that can run configure have sys/param.h.  */
15990 # ifndef HAVE_SYS_PARAM_H
15991 #  define HAVE_SYS_PARAM_H 1
15992 # endif
15994 # ifdef _SC_PAGESIZE
15995 #  define getpagesize() sysconf(_SC_PAGESIZE)
15996 # else /* no _SC_PAGESIZE */
15997 #  ifdef HAVE_SYS_PARAM_H
15998 #   include <sys/param.h>
15999 #   ifdef EXEC_PAGESIZE
16000 #    define getpagesize() EXEC_PAGESIZE
16001 #   else /* no EXEC_PAGESIZE */
16002 #    ifdef NBPG
16003 #     define getpagesize() NBPG * CLSIZE
16004 #     ifndef CLSIZE
16005 #      define CLSIZE 1
16006 #     endif /* no CLSIZE */
16007 #    else /* no NBPG */
16008 #     ifdef NBPC
16009 #      define getpagesize() NBPC
16010 #     else /* no NBPC */
16011 #      ifdef PAGESIZE
16012 #       define getpagesize() PAGESIZE
16013 #      endif /* PAGESIZE */
16014 #     endif /* no NBPC */
16015 #    endif /* no NBPG */
16016 #   endif /* no EXEC_PAGESIZE */
16017 #  else /* no HAVE_SYS_PARAM_H */
16018 #   define getpagesize() 8192   /* punt totally */
16019 #  endif /* no HAVE_SYS_PARAM_H */
16020 # endif /* no _SC_PAGESIZE */
16022 #endif /* no HAVE_GETPAGESIZE */
16024 int
16025 main ()
16027   char *data, *data2, *data3;
16028   int i, pagesize;
16029   int fd;
16031   pagesize = getpagesize ();
16033   /* First, make a file with some known garbage in it. */
16034   data = (char *) malloc (pagesize);
16035   if (!data)
16036     return 1;
16037   for (i = 0; i < pagesize; ++i)
16038     *(data + i) = rand ();
16039   umask (0);
16040   fd = creat ("conftest.mmap", 0600);
16041   if (fd < 0)
16042     return 1;
16043   if (write (fd, data, pagesize) != pagesize)
16044     return 1;
16045   close (fd);
16047   /* Next, try to mmap the file at a fixed address which already has
16048      something else allocated at it.  If we can, also make sure that
16049      we see the same garbage.  */
16050   fd = open ("conftest.mmap", O_RDWR);
16051   if (fd < 0)
16052     return 1;
16053   data2 = (char *) malloc (2 * pagesize);
16054   if (!data2)
16055     return 1;
16056   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16057   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16058                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16059     return 1;
16060   for (i = 0; i < pagesize; ++i)
16061     if (*(data + i) != *(data2 + i))
16062       return 1;
16064   /* Finally, make sure that changes to the mapped area do not
16065      percolate back to the file as seen by read().  (This is a bug on
16066      some variants of i386 svr4.0.)  */
16067   for (i = 0; i < pagesize; ++i)
16068     *(data2 + i) = *(data2 + i) + 1;
16069   data3 = (char *) malloc (pagesize);
16070   if (!data3)
16071     return 1;
16072   if (read (fd, data3, pagesize) != pagesize)
16073     return 1;
16074   for (i = 0; i < pagesize; ++i)
16075     if (*(data + i) != *(data3 + i))
16076       return 1;
16077   close (fd);
16078   return 0;
16080 _ACEOF
16081 rm -f conftest$ac_exeext
16082 if { (ac_try="$ac_link"
16083 case "(($ac_try" in
16084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085   *) ac_try_echo=$ac_try;;
16086 esac
16087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16088 $as_echo "$ac_try_echo") >&5
16089   (eval "$ac_link") 2>&5
16090   ac_status=$?
16091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16093   { (case "(($ac_try" in
16094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095   *) ac_try_echo=$ac_try;;
16096 esac
16097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16098 $as_echo "$ac_try_echo") >&5
16099   (eval "$ac_try") 2>&5
16100   ac_status=$?
16101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; }; then
16103   ac_cv_func_mmap_fixed_mapped=yes
16104 else
16105   $as_echo "$as_me: program exited with status $ac_status" >&5
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ( exit $ac_status )
16110 ac_cv_func_mmap_fixed_mapped=no
16112 rm -rf conftest.dSYM
16113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16118 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16119 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16120 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16122 cat >>confdefs.h <<\_ACEOF
16123 #define HAVE_MMAP 1
16124 _ACEOF
16127 rm -f conftest.mmap
16132 for ac_func in mmap munmap msync
16134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16135 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16136 $as_echo_n "checking for $ac_func... " >&6; }
16137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16138   $as_echo_n "(cached) " >&6
16139 else
16140   cat >conftest.$ac_ext <<_ACEOF
16141 /* confdefs.h.  */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h.  */
16146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16148 #define $ac_func innocuous_$ac_func
16150 /* System header to define __stub macros and hopefully few prototypes,
16151     which can conflict with char $ac_func (); below.
16152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16153     <limits.h> exists even on freestanding compilers.  */
16155 #ifdef __STDC__
16156 # include <limits.h>
16157 #else
16158 # include <assert.h>
16159 #endif
16161 #undef $ac_func
16163 /* Override any GCC internal prototype to avoid an error.
16164    Use char because int might match the return type of a GCC
16165    builtin and then its argument prototype would still apply.  */
16166 #ifdef __cplusplus
16167 extern "C"
16168 #endif
16169 char $ac_func ();
16170 /* The GNU C library defines this for functions which it implements
16171     to always fail with ENOSYS.  Some functions are actually named
16172     something starting with __ and the normal name is an alias.  */
16173 #if defined __stub_$ac_func || defined __stub___$ac_func
16174 choke me
16175 #endif
16177 int
16178 main ()
16180 return $ac_func ();
16181   ;
16182   return 0;
16184 _ACEOF
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193   (eval "$ac_link") 2>conftest.er1
16194   ac_status=$?
16195   grep -v '^ *+' conftest.er1 >conftest.err
16196   rm -f conftest.er1
16197   cat conftest.err >&5
16198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); } && {
16200          test -z "$ac_c_werror_flag" ||
16201          test ! -s conftest.err
16202        } && test -s conftest$ac_exeext && {
16203          test "$cross_compiling" = yes ||
16204          $as_test_x conftest$ac_exeext
16205        }; then
16206   eval "$as_ac_var=yes"
16207 else
16208   $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211         eval "$as_ac_var=no"
16214 rm -rf conftest.dSYM
16215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16216       conftest$ac_exeext conftest.$ac_ext
16218 ac_res=`eval 'as_val=${'$as_ac_var'}
16219                  $as_echo "$as_val"'`
16220                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16221 $as_echo "$ac_res" >&6; }
16222 as_val=`eval 'as_val=${'$as_ac_var'}
16223                  $as_echo "$as_val"'`
16224    if test "x$as_val" = x""yes; then
16225   cat >>confdefs.h <<_ACEOF
16226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16227 _ACEOF
16230 done
16232     { $as_echo "$as_me:$LINENO: checking whether madvise is declared" >&5
16233 $as_echo_n "checking whether madvise is declared... " >&6; }
16234 if test "${ac_cv_have_decl_madvise+set}" = set; then
16235   $as_echo_n "(cached) " >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h.  */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h.  */
16243 #ifdef HAVE_SYS_MMAN_H
16244                                      # include <sys/mman.h>
16245                                      #endif
16247 int
16248 main ()
16250 #ifndef madvise
16251   (void) madvise;
16252 #endif
16254   ;
16255   return 0;
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16265 $as_echo "$ac_try_echo") >&5
16266   (eval "$ac_compile") 2>conftest.er1
16267   ac_status=$?
16268   grep -v '^ *+' conftest.er1 >conftest.err
16269   rm -f conftest.er1
16270   cat conftest.err >&5
16271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); } && {
16273          test -z "$ac_c_werror_flag" ||
16274          test ! -s conftest.err
16275        } && test -s conftest.$ac_objext; then
16276   ac_cv_have_decl_madvise=yes
16277 else
16278   $as_echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281         ac_cv_have_decl_madvise=no
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
16287 $as_echo "$ac_cv_have_decl_madvise" >&6; }
16288 if test "x$ac_cv_have_decl_madvise" = x""yes; then
16290 cat >>confdefs.h <<_ACEOF
16291 #define HAVE_DECL_MADVISE 1
16292 _ACEOF
16295 else
16296   cat >>confdefs.h <<_ACEOF
16297 #define HAVE_DECL_MADVISE 0
16298 _ACEOF
16304     if test "x$ac_cv_have_decl_madvise" = "xyes";
16305     then
16307 for ac_func in madvise
16309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16311 $as_echo_n "checking for $ac_func... " >&6; }
16312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16313   $as_echo_n "(cached) " >&6
16314 else
16315   cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h.  */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h.  */
16321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16323 #define $ac_func innocuous_$ac_func
16325 /* System header to define __stub macros and hopefully few prototypes,
16326     which can conflict with char $ac_func (); below.
16327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16328     <limits.h> exists even on freestanding compilers.  */
16330 #ifdef __STDC__
16331 # include <limits.h>
16332 #else
16333 # include <assert.h>
16334 #endif
16336 #undef $ac_func
16338 /* Override any GCC internal prototype to avoid an error.
16339    Use char because int might match the return type of a GCC
16340    builtin and then its argument prototype would still apply.  */
16341 #ifdef __cplusplus
16342 extern "C"
16343 #endif
16344 char $ac_func ();
16345 /* The GNU C library defines this for functions which it implements
16346     to always fail with ENOSYS.  Some functions are actually named
16347     something starting with __ and the normal name is an alias.  */
16348 #if defined __stub_$ac_func || defined __stub___$ac_func
16349 choke me
16350 #endif
16352 int
16353 main ()
16355 return $ac_func ();
16356   ;
16357   return 0;
16359 _ACEOF
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (ac_try="$ac_link"
16362 case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16367 $as_echo "$ac_try_echo") >&5
16368   (eval "$ac_link") 2>conftest.er1
16369   ac_status=$?
16370   grep -v '^ *+' conftest.er1 >conftest.err
16371   rm -f conftest.er1
16372   cat conftest.err >&5
16373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); } && {
16375          test -z "$ac_c_werror_flag" ||
16376          test ! -s conftest.err
16377        } && test -s conftest$ac_exeext && {
16378          test "$cross_compiling" = yes ||
16379          $as_test_x conftest$ac_exeext
16380        }; then
16381   eval "$as_ac_var=yes"
16382 else
16383   $as_echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386         eval "$as_ac_var=no"
16389 rm -rf conftest.dSYM
16390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16391       conftest$ac_exeext conftest.$ac_ext
16393 ac_res=`eval 'as_val=${'$as_ac_var'}
16394                  $as_echo "$as_val"'`
16395                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16396 $as_echo "$ac_res" >&6; }
16397 as_val=`eval 'as_val=${'$as_ac_var'}
16398                  $as_echo "$as_val"'`
16399    if test "x$as_val" = x""yes; then
16400   cat >>confdefs.h <<_ACEOF
16401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16402 _ACEOF
16405 done
16407     else
16409 for ac_func in posix_madvise
16411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16413 $as_echo_n "checking for $ac_func... " >&6; }
16414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16415   $as_echo_n "(cached) " >&6
16416 else
16417   cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16425 #define $ac_func innocuous_$ac_func
16427 /* System header to define __stub macros and hopefully few prototypes,
16428     which can conflict with char $ac_func (); below.
16429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16430     <limits.h> exists even on freestanding compilers.  */
16432 #ifdef __STDC__
16433 # include <limits.h>
16434 #else
16435 # include <assert.h>
16436 #endif
16438 #undef $ac_func
16440 /* Override any GCC internal prototype to avoid an error.
16441    Use char because int might match the return type of a GCC
16442    builtin and then its argument prototype would still apply.  */
16443 #ifdef __cplusplus
16444 extern "C"
16445 #endif
16446 char $ac_func ();
16447 /* The GNU C library defines this for functions which it implements
16448     to always fail with ENOSYS.  Some functions are actually named
16449     something starting with __ and the normal name is an alias.  */
16450 #if defined __stub_$ac_func || defined __stub___$ac_func
16451 choke me
16452 #endif
16454 int
16455 main ()
16457 return $ac_func ();
16458   ;
16459   return 0;
16461 _ACEOF
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (ac_try="$ac_link"
16464 case "(($ac_try" in
16465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466   *) ac_try_echo=$ac_try;;
16467 esac
16468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16469 $as_echo "$ac_try_echo") >&5
16470   (eval "$ac_link") 2>conftest.er1
16471   ac_status=$?
16472   grep -v '^ *+' conftest.er1 >conftest.err
16473   rm -f conftest.er1
16474   cat conftest.err >&5
16475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); } && {
16477          test -z "$ac_c_werror_flag" ||
16478          test ! -s conftest.err
16479        } && test -s conftest$ac_exeext && {
16480          test "$cross_compiling" = yes ||
16481          $as_test_x conftest$ac_exeext
16482        }; then
16483   eval "$as_ac_var=yes"
16484 else
16485   $as_echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488         eval "$as_ac_var=no"
16491 rm -rf conftest.dSYM
16492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16493       conftest$ac_exeext conftest.$ac_ext
16495 ac_res=`eval 'as_val=${'$as_ac_var'}
16496                  $as_echo "$as_val"'`
16497                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16498 $as_echo "$ac_res" >&6; }
16499 as_val=`eval 'as_val=${'$as_ac_var'}
16500                  $as_echo "$as_val"'`
16501    if test "x$as_val" = x""yes; then
16502   cat >>confdefs.h <<_ACEOF
16503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16504 _ACEOF
16507 done
16509       if test "x$ac_cv_func_posix_madvise" != "xyes"; then
16510         { $as_echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
16511 $as_echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
16512       fi
16513     fi
16514   ;;
16515   esac
16516   if test "x$ac_cv_func_mmap" != "xyes";
16517   then
16518     { { $as_echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
16519 $as_echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
16520    { (exit 1); exit 1; }; }
16521   fi
16524 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16525 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
16526 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16527   $as_echo_n "(cached) " >&6
16528 else
16529   cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535 #define _XOPEN_SOURCE 600
16536 #include <fcntl.h>
16538 int
16539 main ()
16541 #ifndef posix_fadvise
16542   (void) posix_fadvise;
16543 #endif
16545   ;
16546   return 0;
16548 _ACEOF
16549 rm -f conftest.$ac_objext
16550 if { (ac_try="$ac_compile"
16551 case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16556 $as_echo "$ac_try_echo") >&5
16557   (eval "$ac_compile") 2>conftest.er1
16558   ac_status=$?
16559   grep -v '^ *+' conftest.er1 >conftest.err
16560   rm -f conftest.er1
16561   cat conftest.err >&5
16562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } && {
16564          test -z "$ac_c_werror_flag" ||
16565          test ! -s conftest.err
16566        } && test -s conftest.$ac_objext; then
16567   ac_cv_have_decl_posix_fadvise=yes
16568 else
16569   $as_echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572         ac_cv_have_decl_posix_fadvise=no
16575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16578 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
16579 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
16581 cat >>confdefs.h <<_ACEOF
16582 #define HAVE_DECL_POSIX_FADVISE 1
16583 _ACEOF
16586 else
16587   cat >>confdefs.h <<_ACEOF
16588 #define HAVE_DECL_POSIX_FADVISE 0
16589 _ACEOF
16596 for ac_func in posix_fadvise
16598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16600 $as_echo_n "checking for $ac_func... " >&6; }
16601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16602   $as_echo_n "(cached) " >&6
16603 else
16604   cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16612 #define $ac_func innocuous_$ac_func
16614 /* System header to define __stub macros and hopefully few prototypes,
16615     which can conflict with char $ac_func (); below.
16616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16617     <limits.h> exists even on freestanding compilers.  */
16619 #ifdef __STDC__
16620 # include <limits.h>
16621 #else
16622 # include <assert.h>
16623 #endif
16625 #undef $ac_func
16627 /* Override any GCC internal prototype to avoid an error.
16628    Use char because int might match the return type of a GCC
16629    builtin and then its argument prototype would still apply.  */
16630 #ifdef __cplusplus
16631 extern "C"
16632 #endif
16633 char $ac_func ();
16634 /* The GNU C library defines this for functions which it implements
16635     to always fail with ENOSYS.  Some functions are actually named
16636     something starting with __ and the normal name is an alias.  */
16637 #if defined __stub_$ac_func || defined __stub___$ac_func
16638 choke me
16639 #endif
16641 int
16642 main ()
16644 return $ac_func ();
16645   ;
16646   return 0;
16648 _ACEOF
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657   (eval "$ac_link") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } && {
16664          test -z "$ac_c_werror_flag" ||
16665          test ! -s conftest.err
16666        } && test -s conftest$ac_exeext && {
16667          test "$cross_compiling" = yes ||
16668          $as_test_x conftest$ac_exeext
16669        }; then
16670   eval "$as_ac_var=yes"
16671 else
16672   $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675         eval "$as_ac_var=no"
16678 rm -rf conftest.dSYM
16679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16680       conftest$ac_exeext conftest.$ac_ext
16682 ac_res=`eval 'as_val=${'$as_ac_var'}
16683                  $as_echo "$as_val"'`
16684                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16685 $as_echo "$ac_res" >&6; }
16686 as_val=`eval 'as_val=${'$as_ac_var'}
16687                  $as_echo "$as_val"'`
16688    if test "x$as_val" = x""yes; then
16689   cat >>confdefs.h <<_ACEOF
16690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16691 _ACEOF
16694 done
16698 case $TERM in
16699        #   for the most important terminal types we directly know the sequences
16700        xterm|xterm*|vt220|vt220*)
16701                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
16702                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
16703        ;;
16704        vt100|vt100*|cygwin)
16705                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
16706                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
16707        ;;
16708        *)
16709                T_MD=''
16710                T_ME=''
16711        ;;
16712 esac
16713   { $as_echo "$as_me:$LINENO: result: " >&5
16714 $as_echo "" >&6; }
16715   { $as_echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
16716 $as_echo "${T_MD}Libintl Processing${T_ME}" >&6; }
16722         MKINSTALLDIRS=
16723   if test -n "$ac_aux_dir"; then
16724     case "$ac_aux_dir" in
16725       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16726       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16727     esac
16728   fi
16729   if test -z "$MKINSTALLDIRS"; then
16730     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16731   fi
16735   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16736 $as_echo_n "checking whether NLS is requested... " >&6; }
16737     # Check whether --enable-nls was given.
16738 if test "${enable_nls+set}" = set; then
16739   enableval=$enable_nls; USE_NLS=$enableval
16740 else
16741   USE_NLS=yes
16744   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16745 $as_echo "$USE_NLS" >&6; }
16752 # Prepare PATH_SEPARATOR.
16753 # The user is always right.
16754 if test "${PATH_SEPARATOR+set}" != set; then
16755   echo "#! /bin/sh" >conf$$.sh
16756   echo  "exit 0"   >>conf$$.sh
16757   chmod +x conf$$.sh
16758   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16759     PATH_SEPARATOR=';'
16760   else
16761     PATH_SEPARATOR=:
16762   fi
16763   rm -f conf$$.sh
16766 # Find out how to test for executable files. Don't use a zero-byte file,
16767 # as systems may use methods other than mode bits to determine executability.
16768 cat >conf$$.file <<_ASEOF
16769 #! /bin/sh
16770 exit 0
16771 _ASEOF
16772 chmod +x conf$$.file
16773 if test -x conf$$.file >/dev/null 2>&1; then
16774   ac_executable_p="test -x"
16775 else
16776   ac_executable_p="test -f"
16778 rm -f conf$$.file
16780 # Extract the first word of "msgfmt", so it can be a program name with args.
16781 set dummy msgfmt; ac_word=$2
16782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16783 $as_echo_n "checking for $ac_word... " >&6; }
16784 if test "${ac_cv_path_MSGFMT+set}" = set; then
16785   $as_echo_n "(cached) " >&6
16786 else
16787   case "$MSGFMT" in
16788   [\\/]* | ?:[\\/]*)
16789     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16790     ;;
16791   *)
16792     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16793     for ac_dir in $PATH; do
16794       IFS="$ac_save_IFS"
16795       test -z "$ac_dir" && ac_dir=.
16796       for ac_exec_ext in '' $ac_executable_extensions; do
16797         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16798           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16799           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16800      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16801             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16802             break 2
16803           fi
16804         fi
16805       done
16806     done
16807     IFS="$ac_save_IFS"
16808   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16809     ;;
16810 esac
16812 MSGFMT="$ac_cv_path_MSGFMT"
16813 if test "$MSGFMT" != ":"; then
16814   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16815 $as_echo "$MSGFMT" >&6; }
16816 else
16817   { $as_echo "$as_me:$LINENO: result: no" >&5
16818 $as_echo "no" >&6; }
16821   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16822 set dummy gmsgfmt; ac_word=$2
16823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16824 $as_echo_n "checking for $ac_word... " >&6; }
16825 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16826   $as_echo_n "(cached) " >&6
16827 else
16828   case $GMSGFMT in
16829   [\\/]* | ?:[\\/]*)
16830   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16831   ;;
16832   *)
16833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16834 for as_dir in $PATH
16836   IFS=$as_save_IFS
16837   test -z "$as_dir" && as_dir=.
16838   for ac_exec_ext in '' $ac_executable_extensions; do
16839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16840     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16841     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16842     break 2
16843   fi
16844 done
16845 done
16846 IFS=$as_save_IFS
16848   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16849   ;;
16850 esac
16852 GMSGFMT=$ac_cv_path_GMSGFMT
16853 if test -n "$GMSGFMT"; then
16854   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16855 $as_echo "$GMSGFMT" >&6; }
16856 else
16857   { $as_echo "$as_me:$LINENO: result: no" >&5
16858 $as_echo "no" >&6; }
16864 # Prepare PATH_SEPARATOR.
16865 # The user is always right.
16866 if test "${PATH_SEPARATOR+set}" != set; then
16867   echo "#! /bin/sh" >conf$$.sh
16868   echo  "exit 0"   >>conf$$.sh
16869   chmod +x conf$$.sh
16870   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16871     PATH_SEPARATOR=';'
16872   else
16873     PATH_SEPARATOR=:
16874   fi
16875   rm -f conf$$.sh
16878 # Find out how to test for executable files. Don't use a zero-byte file,
16879 # as systems may use methods other than mode bits to determine executability.
16880 cat >conf$$.file <<_ASEOF
16881 #! /bin/sh
16882 exit 0
16883 _ASEOF
16884 chmod +x conf$$.file
16885 if test -x conf$$.file >/dev/null 2>&1; then
16886   ac_executable_p="test -x"
16887 else
16888   ac_executable_p="test -f"
16890 rm -f conf$$.file
16892 # Extract the first word of "xgettext", so it can be a program name with args.
16893 set dummy xgettext; ac_word=$2
16894 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16895 $as_echo_n "checking for $ac_word... " >&6; }
16896 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16897   $as_echo_n "(cached) " >&6
16898 else
16899   case "$XGETTEXT" in
16900   [\\/]* | ?:[\\/]*)
16901     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16902     ;;
16903   *)
16904     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16905     for ac_dir in $PATH; do
16906       IFS="$ac_save_IFS"
16907       test -z "$ac_dir" && ac_dir=.
16908       for ac_exec_ext in '' $ac_executable_extensions; do
16909         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16910           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16911           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16912      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16913             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16914             break 2
16915           fi
16916         fi
16917       done
16918     done
16919     IFS="$ac_save_IFS"
16920   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16921     ;;
16922 esac
16924 XGETTEXT="$ac_cv_path_XGETTEXT"
16925 if test "$XGETTEXT" != ":"; then
16926   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16927 $as_echo "$XGETTEXT" >&6; }
16928 else
16929   { $as_echo "$as_me:$LINENO: result: no" >&5
16930 $as_echo "no" >&6; }
16933     rm -f messages.po
16936 # Prepare PATH_SEPARATOR.
16937 # The user is always right.
16938 if test "${PATH_SEPARATOR+set}" != set; then
16939   echo "#! /bin/sh" >conf$$.sh
16940   echo  "exit 0"   >>conf$$.sh
16941   chmod +x conf$$.sh
16942   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16943     PATH_SEPARATOR=';'
16944   else
16945     PATH_SEPARATOR=:
16946   fi
16947   rm -f conf$$.sh
16950 # Find out how to test for executable files. Don't use a zero-byte file,
16951 # as systems may use methods other than mode bits to determine executability.
16952 cat >conf$$.file <<_ASEOF
16953 #! /bin/sh
16954 exit 0
16955 _ASEOF
16956 chmod +x conf$$.file
16957 if test -x conf$$.file >/dev/null 2>&1; then
16958   ac_executable_p="test -x"
16959 else
16960   ac_executable_p="test -f"
16962 rm -f conf$$.file
16964 # Extract the first word of "msgmerge", so it can be a program name with args.
16965 set dummy msgmerge; ac_word=$2
16966 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16967 $as_echo_n "checking for $ac_word... " >&6; }
16968 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16969   $as_echo_n "(cached) " >&6
16970 else
16971   case "$MSGMERGE" in
16972   [\\/]* | ?:[\\/]*)
16973     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16974     ;;
16975   *)
16976     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16977     for ac_dir in $PATH; do
16978       IFS="$ac_save_IFS"
16979       test -z "$ac_dir" && ac_dir=.
16980       for ac_exec_ext in '' $ac_executable_extensions; do
16981         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16982           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16983           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16984             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16985             break 2
16986           fi
16987         fi
16988       done
16989     done
16990     IFS="$ac_save_IFS"
16991   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16992     ;;
16993 esac
16995 MSGMERGE="$ac_cv_path_MSGMERGE"
16996 if test "$MSGMERGE" != ":"; then
16997   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16998 $as_echo "$MSGMERGE" >&6; }
16999 else
17000   { $as_echo "$as_me:$LINENO: result: no" >&5
17001 $as_echo "no" >&6; }
17005       if test "$GMSGFMT" != ":"; then
17006             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17007        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17008       : ;
17009     else
17010       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17011       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17012 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17013       GMSGFMT=":"
17014     fi
17015   fi
17017       if test "$XGETTEXT" != ":"; then
17018             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17019        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17020       : ;
17021     else
17022       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
17023 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17024       XGETTEXT=":"
17025     fi
17026         rm -f messages.po
17027   fi
17029   ac_config_commands="$ac_config_commands default-1"
17033     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
17034 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17035 if test "${ac_cv_gnu_library_2+set}" = set; then
17036   $as_echo_n "(cached) " >&6
17037 else
17038   cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h.  */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h.  */
17045 #include <features.h>
17046 #ifdef __GNU_LIBRARY__
17047  #if (__GLIBC__ >= 2)
17048   Lucky GNU user
17049  #endif
17050 #endif
17052 _ACEOF
17053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17054   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
17055   ac_cv_gnu_library_2=yes
17056 else
17057   ac_cv_gnu_library_2=no
17059 rm -f conftest*
17064 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
17065 $as_echo "$ac_cv_gnu_library_2" >&6; }
17067     GLIBC2="$ac_cv_gnu_library_2"
17070 if test -n "$ac_tool_prefix"; then
17071   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17074 $as_echo_n "checking for $ac_word... " >&6; }
17075 if test "${ac_cv_prog_RANLIB+set}" = set; then
17076   $as_echo_n "(cached) " >&6
17077 else
17078   if test -n "$RANLIB"; then
17079   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17080 else
17081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17082 for as_dir in $PATH
17084   IFS=$as_save_IFS
17085   test -z "$as_dir" && as_dir=.
17086   for ac_exec_ext in '' $ac_executable_extensions; do
17087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17088     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17089     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17090     break 2
17091   fi
17092 done
17093 done
17094 IFS=$as_save_IFS
17098 RANLIB=$ac_cv_prog_RANLIB
17099 if test -n "$RANLIB"; then
17100   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
17101 $as_echo "$RANLIB" >&6; }
17102 else
17103   { $as_echo "$as_me:$LINENO: result: no" >&5
17104 $as_echo "no" >&6; }
17109 if test -z "$ac_cv_prog_RANLIB"; then
17110   ac_ct_RANLIB=$RANLIB
17111   # Extract the first word of "ranlib", so it can be a program name with args.
17112 set dummy ranlib; ac_word=$2
17113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17114 $as_echo_n "checking for $ac_word... " >&6; }
17115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
17116   $as_echo_n "(cached) " >&6
17117 else
17118   if test -n "$ac_ct_RANLIB"; then
17119   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17120 else
17121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17122 for as_dir in $PATH
17124   IFS=$as_save_IFS
17125   test -z "$as_dir" && as_dir=.
17126   for ac_exec_ext in '' $ac_executable_extensions; do
17127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17128     ac_cv_prog_ac_ct_RANLIB="ranlib"
17129     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17130     break 2
17131   fi
17132 done
17133 done
17134 IFS=$as_save_IFS
17138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17139 if test -n "$ac_ct_RANLIB"; then
17140   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
17141 $as_echo "$ac_ct_RANLIB" >&6; }
17142 else
17143   { $as_echo "$as_me:$LINENO: result: no" >&5
17144 $as_echo "no" >&6; }
17147   if test "x$ac_ct_RANLIB" = x; then
17148     RANLIB=":"
17149   else
17150     case $cross_compiling:$ac_tool_warned in
17151 yes:)
17152 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17154 ac_tool_warned=yes ;;
17155 esac
17156     RANLIB=$ac_ct_RANLIB
17157   fi
17158 else
17159   RANLIB="$ac_cv_prog_RANLIB"
17163         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
17164 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17165 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
17166   $as_echo_n "(cached) " >&6
17167 else
17168   ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-lcposix  $LIBS"
17170 cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17177 /* Override any GCC internal prototype to avoid an error.
17178    Use char because int might match the return type of a GCC
17179    builtin and then its argument prototype would still apply.  */
17180 #ifdef __cplusplus
17181 extern "C"
17182 #endif
17183 char strerror ();
17184 int
17185 main ()
17187 return strerror ();
17188   ;
17189   return 0;
17191 _ACEOF
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (ac_try="$ac_link"
17194 case "(($ac_try" in
17195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196   *) ac_try_echo=$ac_try;;
17197 esac
17198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17199 $as_echo "$ac_try_echo") >&5
17200   (eval "$ac_link") 2>conftest.er1
17201   ac_status=$?
17202   grep -v '^ *+' conftest.er1 >conftest.err
17203   rm -f conftest.er1
17204   cat conftest.err >&5
17205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } && {
17207          test -z "$ac_c_werror_flag" ||
17208          test ! -s conftest.err
17209        } && test -s conftest$ac_exeext && {
17210          test "$cross_compiling" = yes ||
17211          $as_test_x conftest$ac_exeext
17212        }; then
17213   ac_cv_lib_cposix_strerror=yes
17214 else
17215   $as_echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218         ac_cv_lib_cposix_strerror=no
17221 rm -rf conftest.dSYM
17222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17223       conftest$ac_exeext conftest.$ac_ext
17224 LIBS=$ac_check_lib_save_LIBS
17226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
17227 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17228 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
17229   LIBS="$LIBS -lcposix"
17235   { $as_echo "$as_me:$LINENO: checking for signed" >&5
17236 $as_echo_n "checking for signed... " >&6; }
17237 if test "${bh_cv_c_signed+set}" = set; then
17238   $as_echo_n "(cached) " >&6
17239 else
17240   cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17247 int
17248 main ()
17250 signed char x;
17251   ;
17252   return 0;
17254 _ACEOF
17255 rm -f conftest.$ac_objext
17256 if { (ac_try="$ac_compile"
17257 case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17262 $as_echo "$ac_try_echo") >&5
17263   (eval "$ac_compile") 2>conftest.er1
17264   ac_status=$?
17265   grep -v '^ *+' conftest.er1 >conftest.err
17266   rm -f conftest.er1
17267   cat conftest.err >&5
17268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); } && {
17270          test -z "$ac_c_werror_flag" ||
17271          test ! -s conftest.err
17272        } && test -s conftest.$ac_objext; then
17273   bh_cv_c_signed=yes
17274 else
17275   $as_echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278         bh_cv_c_signed=no
17281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
17284 $as_echo "$bh_cv_c_signed" >&6; }
17285   if test $bh_cv_c_signed = no; then
17287 cat >>confdefs.h <<\_ACEOF
17288 #define signed /**/
17289 _ACEOF
17291   fi
17293 { $as_echo "$as_me:$LINENO: checking for inline" >&5
17294 $as_echo_n "checking for inline... " >&6; }
17295 if test "${ac_cv_c_inline+set}" = set; then
17296   $as_echo_n "(cached) " >&6
17297 else
17298   ac_cv_c_inline=no
17299 for ac_kw in inline __inline__ __inline; do
17300   cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h.  */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h.  */
17306 #ifndef __cplusplus
17307 typedef int foo_t;
17308 static $ac_kw foo_t static_foo () {return 0; }
17309 $ac_kw foo_t foo () {return 0; }
17310 #endif
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (ac_try="$ac_compile"
17315 case "(($ac_try" in
17316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317   *) ac_try_echo=$ac_try;;
17318 esac
17319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17320 $as_echo "$ac_try_echo") >&5
17321   (eval "$ac_compile") 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } && {
17328          test -z "$ac_c_werror_flag" ||
17329          test ! -s conftest.err
17330        } && test -s conftest.$ac_objext; then
17331   ac_cv_c_inline=$ac_kw
17332 else
17333   $as_echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340   test "$ac_cv_c_inline" != no && break
17341 done
17344 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17345 $as_echo "$ac_cv_c_inline" >&6; }
17348 case $ac_cv_c_inline in
17349   inline | yes) ;;
17350   *)
17351     case $ac_cv_c_inline in
17352       no) ac_val=;;
17353       *) ac_val=$ac_cv_c_inline;;
17354     esac
17355     cat >>confdefs.h <<_ACEOF
17356 #ifndef __cplusplus
17357 #define inline $ac_val
17358 #endif
17359 _ACEOF
17360     ;;
17361 esac
17363 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
17364 $as_echo_n "checking for off_t... " >&6; }
17365 if test "${ac_cv_type_off_t+set}" = set; then
17366   $as_echo_n "(cached) " >&6
17367 else
17368   ac_cv_type_off_t=no
17369 cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h.  */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h.  */
17375 $ac_includes_default
17376 int
17377 main ()
17379 if (sizeof (off_t))
17380        return 0;
17381   ;
17382   return 0;
17384 _ACEOF
17385 rm -f conftest.$ac_objext
17386 if { (ac_try="$ac_compile"
17387 case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17392 $as_echo "$ac_try_echo") >&5
17393   (eval "$ac_compile") 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } && {
17400          test -z "$ac_c_werror_flag" ||
17401          test ! -s conftest.err
17402        } && test -s conftest.$ac_objext; then
17403   cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409 $ac_includes_default
17410 int
17411 main ()
17413 if (sizeof ((off_t)))
17414           return 0;
17415   ;
17416   return 0;
17418 _ACEOF
17419 rm -f conftest.$ac_objext
17420 if { (ac_try="$ac_compile"
17421 case "(($ac_try" in
17422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423   *) ac_try_echo=$ac_try;;
17424 esac
17425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17426 $as_echo "$ac_try_echo") >&5
17427   (eval "$ac_compile") 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } && {
17434          test -z "$ac_c_werror_flag" ||
17435          test ! -s conftest.err
17436        } && test -s conftest.$ac_objext; then
17437   :
17438 else
17439   $as_echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442         ac_cv_type_off_t=yes
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 else
17447   $as_echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17456 $as_echo "$ac_cv_type_off_t" >&6; }
17457 if test "x$ac_cv_type_off_t" = x""yes; then
17458   :
17459 else
17461 cat >>confdefs.h <<_ACEOF
17462 #define off_t long int
17463 _ACEOF
17467 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17468 $as_echo_n "checking for size_t... " >&6; }
17469 if test "${ac_cv_type_size_t+set}" = set; then
17470   $as_echo_n "(cached) " >&6
17471 else
17472   ac_cv_type_size_t=no
17473 cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h.  */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h.  */
17479 $ac_includes_default
17480 int
17481 main ()
17483 if (sizeof (size_t))
17484        return 0;
17485   ;
17486   return 0;
17488 _ACEOF
17489 rm -f conftest.$ac_objext
17490 if { (ac_try="$ac_compile"
17491 case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17496 $as_echo "$ac_try_echo") >&5
17497   (eval "$ac_compile") 2>conftest.er1
17498   ac_status=$?
17499   grep -v '^ *+' conftest.er1 >conftest.err
17500   rm -f conftest.er1
17501   cat conftest.err >&5
17502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); } && {
17504          test -z "$ac_c_werror_flag" ||
17505          test ! -s conftest.err
17506        } && test -s conftest.$ac_objext; then
17507   cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h.  */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h.  */
17513 $ac_includes_default
17514 int
17515 main ()
17517 if (sizeof ((size_t)))
17518           return 0;
17519   ;
17520   return 0;
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (ac_try="$ac_compile"
17525 case "(($ac_try" in
17526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527   *) ac_try_echo=$ac_try;;
17528 esac
17529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17530 $as_echo "$ac_try_echo") >&5
17531   (eval "$ac_compile") 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } && {
17538          test -z "$ac_c_werror_flag" ||
17539          test ! -s conftest.err
17540        } && test -s conftest.$ac_objext; then
17541   :
17542 else
17543   $as_echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546         ac_cv_type_size_t=yes
17549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17550 else
17551   $as_echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17560 $as_echo "$ac_cv_type_size_t" >&6; }
17561 if test "x$ac_cv_type_size_t" = x""yes; then
17562   :
17563 else
17565 cat >>confdefs.h <<_ACEOF
17566 #define size_t unsigned int
17567 _ACEOF
17572   { $as_echo "$as_me:$LINENO: checking for long long" >&5
17573 $as_echo_n "checking for long long... " >&6; }
17574 if test "${ac_cv_type_long_long+set}" = set; then
17575   $as_echo_n "(cached) " >&6
17576 else
17577   cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583 long long ll = 1LL; int i = 63;
17584 int
17585 main ()
17587 long long llmax = (long long) -1;
17588      return ll << i | ll >> i | llmax / ll | llmax % ll;
17589   ;
17590   return 0;
17592 _ACEOF
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (ac_try="$ac_link"
17595 case "(($ac_try" in
17596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597   *) ac_try_echo=$ac_try;;
17598 esac
17599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17600 $as_echo "$ac_try_echo") >&5
17601   (eval "$ac_link") 2>conftest.er1
17602   ac_status=$?
17603   grep -v '^ *+' conftest.er1 >conftest.err
17604   rm -f conftest.er1
17605   cat conftest.err >&5
17606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } && {
17608          test -z "$ac_c_werror_flag" ||
17609          test ! -s conftest.err
17610        } && test -s conftest$ac_exeext && {
17611          test "$cross_compiling" = yes ||
17612          $as_test_x conftest$ac_exeext
17613        }; then
17614   ac_cv_type_long_long=yes
17615 else
17616   $as_echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619         ac_cv_type_long_long=no
17622 rm -rf conftest.dSYM
17623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17624       conftest$ac_exeext conftest.$ac_ext
17626 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17627 $as_echo "$ac_cv_type_long_long" >&6; }
17628   if test $ac_cv_type_long_long = yes; then
17630 cat >>confdefs.h <<\_ACEOF
17631 #define HAVE_LONG_LONG 1
17632 _ACEOF
17634   fi
17637   { $as_echo "$as_me:$LINENO: checking for long double" >&5
17638 $as_echo_n "checking for long double... " >&6; }
17639 if test "${gt_cv_c_long_double+set}" = set; then
17640   $as_echo_n "(cached) " >&6
17641 else
17642   if test "$GCC" = yes; then
17643        gt_cv_c_long_double=yes
17644      else
17645        cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h.  */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h.  */
17652          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
17653          long double foo = 0.0;
17654          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
17655          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
17657 int
17658 main ()
17661   ;
17662   return 0;
17664 _ACEOF
17665 rm -f conftest.$ac_objext
17666 if { (ac_try="$ac_compile"
17667 case "(($ac_try" in
17668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669   *) ac_try_echo=$ac_try;;
17670 esac
17671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17672 $as_echo "$ac_try_echo") >&5
17673   (eval "$ac_compile") 2>conftest.er1
17674   ac_status=$?
17675   grep -v '^ *+' conftest.er1 >conftest.err
17676   rm -f conftest.er1
17677   cat conftest.err >&5
17678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); } && {
17680          test -z "$ac_c_werror_flag" ||
17681          test ! -s conftest.err
17682        } && test -s conftest.$ac_objext; then
17683   gt_cv_c_long_double=yes
17684 else
17685   $as_echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688         gt_cv_c_long_double=no
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692      fi
17694 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
17695 $as_echo "$gt_cv_c_long_double" >&6; }
17696   if test $gt_cv_c_long_double = yes; then
17698 cat >>confdefs.h <<\_ACEOF
17699 #define HAVE_LONG_DOUBLE 1
17700 _ACEOF
17702   fi
17705   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
17706 $as_echo_n "checking for wchar_t... " >&6; }
17707 if test "${gt_cv_c_wchar_t+set}" = set; then
17708   $as_echo_n "(cached) " >&6
17709 else
17710   cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h.  */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h.  */
17716 #include <stddef.h>
17717        wchar_t foo = (wchar_t)'\0';
17718 int
17719 main ()
17722   ;
17723   return 0;
17725 _ACEOF
17726 rm -f conftest.$ac_objext
17727 if { (ac_try="$ac_compile"
17728 case "(($ac_try" in
17729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730   *) ac_try_echo=$ac_try;;
17731 esac
17732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17733 $as_echo "$ac_try_echo") >&5
17734   (eval "$ac_compile") 2>conftest.er1
17735   ac_status=$?
17736   grep -v '^ *+' conftest.er1 >conftest.err
17737   rm -f conftest.er1
17738   cat conftest.err >&5
17739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); } && {
17741          test -z "$ac_c_werror_flag" ||
17742          test ! -s conftest.err
17743        } && test -s conftest.$ac_objext; then
17744   gt_cv_c_wchar_t=yes
17745 else
17746   $as_echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749         gt_cv_c_wchar_t=no
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
17755 $as_echo "$gt_cv_c_wchar_t" >&6; }
17756   if test $gt_cv_c_wchar_t = yes; then
17758 cat >>confdefs.h <<\_ACEOF
17759 #define HAVE_WCHAR_T 1
17760 _ACEOF
17762   fi
17765   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
17766 $as_echo_n "checking for wint_t... " >&6; }
17767 if test "${gt_cv_c_wint_t+set}" = set; then
17768   $as_echo_n "(cached) " >&6
17769 else
17770   cat >conftest.$ac_ext <<_ACEOF
17771 /* confdefs.h.  */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h.  */
17776 #include <wchar.h>
17777        wint_t foo = (wchar_t)'\0';
17778 int
17779 main ()
17782   ;
17783   return 0;
17785 _ACEOF
17786 rm -f conftest.$ac_objext
17787 if { (ac_try="$ac_compile"
17788 case "(($ac_try" in
17789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790   *) ac_try_echo=$ac_try;;
17791 esac
17792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17793 $as_echo "$ac_try_echo") >&5
17794   (eval "$ac_compile") 2>conftest.er1
17795   ac_status=$?
17796   grep -v '^ *+' conftest.er1 >conftest.err
17797   rm -f conftest.er1
17798   cat conftest.err >&5
17799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); } && {
17801          test -z "$ac_c_werror_flag" ||
17802          test ! -s conftest.err
17803        } && test -s conftest.$ac_objext; then
17804   gt_cv_c_wint_t=yes
17805 else
17806   $as_echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809         gt_cv_c_wint_t=no
17812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17814 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
17815 $as_echo "$gt_cv_c_wint_t" >&6; }
17816   if test $gt_cv_c_wint_t = yes; then
17818 cat >>confdefs.h <<\_ACEOF
17819 #define HAVE_WINT_T 1
17820 _ACEOF
17822   fi
17825   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
17826 $as_echo_n "checking for inttypes.h... " >&6; }
17827 if test "${gl_cv_header_inttypes_h+set}" = set; then
17828   $as_echo_n "(cached) " >&6
17829 else
17830   cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h.  */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h.  */
17836 #include <sys/types.h>
17837 #include <inttypes.h>
17838 int
17839 main ()
17841 uintmax_t i = (uintmax_t) -1;
17842   ;
17843   return 0;
17845 _ACEOF
17846 rm -f conftest.$ac_objext
17847 if { (ac_try="$ac_compile"
17848 case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853 $as_echo "$ac_try_echo") >&5
17854   (eval "$ac_compile") 2>conftest.er1
17855   ac_status=$?
17856   grep -v '^ *+' conftest.er1 >conftest.err
17857   rm -f conftest.er1
17858   cat conftest.err >&5
17859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } && {
17861          test -z "$ac_c_werror_flag" ||
17862          test ! -s conftest.err
17863        } && test -s conftest.$ac_objext; then
17864   gl_cv_header_inttypes_h=yes
17865 else
17866   $as_echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17869         gl_cv_header_inttypes_h=no
17872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
17875 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17876   if test $gl_cv_header_inttypes_h = yes; then
17878 cat >>confdefs.h <<_ACEOF
17879 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17880 _ACEOF
17882   fi
17885   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
17886 $as_echo_n "checking for stdint.h... " >&6; }
17887 if test "${gl_cv_header_stdint_h+set}" = set; then
17888   $as_echo_n "(cached) " >&6
17889 else
17890   cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h.  */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h.  */
17896 #include <sys/types.h>
17897 #include <stdint.h>
17898 int
17899 main ()
17901 uintmax_t i = (uintmax_t) -1;
17902   ;
17903   return 0;
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17913 $as_echo "$ac_try_echo") >&5
17914   (eval "$ac_compile") 2>conftest.er1
17915   ac_status=$?
17916   grep -v '^ *+' conftest.er1 >conftest.err
17917   rm -f conftest.er1
17918   cat conftest.err >&5
17919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); } && {
17921          test -z "$ac_c_werror_flag" ||
17922          test ! -s conftest.err
17923        } && test -s conftest.$ac_objext; then
17924   gl_cv_header_stdint_h=yes
17925 else
17926   $as_echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929         gl_cv_header_stdint_h=no
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17935 $as_echo "$gl_cv_header_stdint_h" >&6; }
17936   if test $gl_cv_header_stdint_h = yes; then
17938 cat >>confdefs.h <<_ACEOF
17939 #define HAVE_STDINT_H_WITH_UINTMAX 1
17940 _ACEOF
17942   fi
17947   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
17948 $as_echo_n "checking for intmax_t... " >&6; }
17949 if test "${gt_cv_c_intmax_t+set}" = set; then
17950   $as_echo_n "(cached) " >&6
17951 else
17952   cat >conftest.$ac_ext <<_ACEOF
17953 /* confdefs.h.  */
17954 _ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h.  */
17959 #include <stddef.h>
17960 #include <stdlib.h>
17961 #if HAVE_STDINT_H_WITH_UINTMAX
17962 #include <stdint.h>
17963 #endif
17964 #if HAVE_INTTYPES_H_WITH_UINTMAX
17965 #include <inttypes.h>
17966 #endif
17968 int
17969 main ()
17971 intmax_t x = -1;
17972   ;
17973   return 0;
17975 _ACEOF
17976 rm -f conftest.$ac_objext
17977 if { (ac_try="$ac_compile"
17978 case "(($ac_try" in
17979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980   *) ac_try_echo=$ac_try;;
17981 esac
17982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17983 $as_echo "$ac_try_echo") >&5
17984   (eval "$ac_compile") 2>conftest.er1
17985   ac_status=$?
17986   grep -v '^ *+' conftest.er1 >conftest.err
17987   rm -f conftest.er1
17988   cat conftest.err >&5
17989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } && {
17991          test -z "$ac_c_werror_flag" ||
17992          test ! -s conftest.err
17993        } && test -s conftest.$ac_objext; then
17994   gt_cv_c_intmax_t=yes
17995 else
17996   $as_echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999         gt_cv_c_intmax_t=no
18002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
18005 $as_echo "$gt_cv_c_intmax_t" >&6; }
18006   if test $gt_cv_c_intmax_t = yes; then
18008 cat >>confdefs.h <<\_ACEOF
18009 #define HAVE_INTMAX_T 1
18010 _ACEOF
18012   fi
18016   { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
18017 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18018 if test "${gt_cv_func_printf_posix+set}" = set; then
18019   $as_echo_n "(cached) " >&6
18020 else
18022       if test "$cross_compiling" = yes; then
18024         cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h.  */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h.  */
18031 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18032   notposix
18033 #endif
18035 _ACEOF
18036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18037   $EGREP "notposix" >/dev/null 2>&1; then
18038   gt_cv_func_printf_posix="guessing no"
18039 else
18040   gt_cv_func_printf_posix="guessing yes"
18042 rm -f conftest*
18045 else
18046   cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h.  */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h.  */
18053 #include <stdio.h>
18054 #include <string.h>
18055 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18056    dollar expansion (possibly an autoconf bug).  */
18057 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18058 static char buf[100];
18059 int main ()
18061   sprintf (buf, format, 33, 55);
18062   return (strcmp (buf, "55 33") != 0);
18064 _ACEOF
18065 rm -f conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18072 $as_echo "$ac_try_echo") >&5
18073   (eval "$ac_link") 2>&5
18074   ac_status=$?
18075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18077   { (case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18082 $as_echo "$ac_try_echo") >&5
18083   (eval "$ac_try") 2>&5
18084   ac_status=$?
18085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); }; }; then
18087   gt_cv_func_printf_posix=yes
18088 else
18089   $as_echo "$as_me: program exited with status $ac_status" >&5
18090 $as_echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18093 ( exit $ac_status )
18094 gt_cv_func_printf_posix=no
18096 rm -rf conftest.dSYM
18097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18103 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
18104 $as_echo "$gt_cv_func_printf_posix" >&6; }
18105   case $gt_cv_func_printf_posix in
18106     *yes)
18108 cat >>confdefs.h <<\_ACEOF
18109 #define HAVE_POSIX_PRINTF 1
18110 _ACEOF
18112       ;;
18113   esac
18115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18116 # for constant arguments.  Useless!
18117 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
18118 $as_echo_n "checking for working alloca.h... " >&6; }
18119 if test "${ac_cv_working_alloca_h+set}" = set; then
18120   $as_echo_n "(cached) " >&6
18121 else
18122   cat >conftest.$ac_ext <<_ACEOF
18123 /* confdefs.h.  */
18124 _ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h.  */
18128 #include <alloca.h>
18129 int
18130 main ()
18132 char *p = (char *) alloca (2 * sizeof (int));
18133                           if (p) return 0;
18134   ;
18135   return 0;
18137 _ACEOF
18138 rm -f conftest.$ac_objext conftest$ac_exeext
18139 if { (ac_try="$ac_link"
18140 case "(($ac_try" in
18141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142   *) ac_try_echo=$ac_try;;
18143 esac
18144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18145 $as_echo "$ac_try_echo") >&5
18146   (eval "$ac_link") 2>conftest.er1
18147   ac_status=$?
18148   grep -v '^ *+' conftest.er1 >conftest.err
18149   rm -f conftest.er1
18150   cat conftest.err >&5
18151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } && {
18153          test -z "$ac_c_werror_flag" ||
18154          test ! -s conftest.err
18155        } && test -s conftest$ac_exeext && {
18156          test "$cross_compiling" = yes ||
18157          $as_test_x conftest$ac_exeext
18158        }; then
18159   ac_cv_working_alloca_h=yes
18160 else
18161   $as_echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164         ac_cv_working_alloca_h=no
18167 rm -rf conftest.dSYM
18168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18169       conftest$ac_exeext conftest.$ac_ext
18171 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18172 $as_echo "$ac_cv_working_alloca_h" >&6; }
18173 if test $ac_cv_working_alloca_h = yes; then
18175 cat >>confdefs.h <<\_ACEOF
18176 #define HAVE_ALLOCA_H 1
18177 _ACEOF
18181 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
18182 $as_echo_n "checking for alloca... " >&6; }
18183 if test "${ac_cv_func_alloca_works+set}" = set; then
18184   $as_echo_n "(cached) " >&6
18185 else
18186   cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h.  */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h.  */
18192 #ifdef __GNUC__
18193 # define alloca __builtin_alloca
18194 #else
18195 # ifdef _MSC_VER
18196 #  include <malloc.h>
18197 #  define alloca _alloca
18198 # else
18199 #  ifdef HAVE_ALLOCA_H
18200 #   include <alloca.h>
18201 #  else
18202 #   ifdef _AIX
18203  #pragma alloca
18204 #   else
18205 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18206 char *alloca ();
18207 #    endif
18208 #   endif
18209 #  endif
18210 # endif
18211 #endif
18213 int
18214 main ()
18216 char *p = (char *) alloca (1);
18217                                     if (p) return 0;
18218   ;
18219   return 0;
18221 _ACEOF
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (ac_try="$ac_link"
18224 case "(($ac_try" in
18225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226   *) ac_try_echo=$ac_try;;
18227 esac
18228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18229 $as_echo "$ac_try_echo") >&5
18230   (eval "$ac_link") 2>conftest.er1
18231   ac_status=$?
18232   grep -v '^ *+' conftest.er1 >conftest.err
18233   rm -f conftest.er1
18234   cat conftest.err >&5
18235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); } && {
18237          test -z "$ac_c_werror_flag" ||
18238          test ! -s conftest.err
18239        } && test -s conftest$ac_exeext && {
18240          test "$cross_compiling" = yes ||
18241          $as_test_x conftest$ac_exeext
18242        }; then
18243   ac_cv_func_alloca_works=yes
18244 else
18245   $as_echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248         ac_cv_func_alloca_works=no
18251 rm -rf conftest.dSYM
18252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18253       conftest$ac_exeext conftest.$ac_ext
18255 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18256 $as_echo "$ac_cv_func_alloca_works" >&6; }
18258 if test $ac_cv_func_alloca_works = yes; then
18260 cat >>confdefs.h <<\_ACEOF
18261 #define HAVE_ALLOCA 1
18262 _ACEOF
18264 else
18265   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18266 # that cause trouble.  Some versions do not even contain alloca or
18267 # contain a buggy version.  If you still want to use their alloca,
18268 # use ar to extract alloca.o from them instead of compiling alloca.c.
18270 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18272 cat >>confdefs.h <<\_ACEOF
18273 #define C_ALLOCA 1
18274 _ACEOF
18277 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18278 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18279 if test "${ac_cv_os_cray+set}" = set; then
18280   $as_echo_n "(cached) " >&6
18281 else
18282   cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288 #if defined CRAY && ! defined CRAY2
18289 webecray
18290 #else
18291 wenotbecray
18292 #endif
18294 _ACEOF
18295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18296   $EGREP "webecray" >/dev/null 2>&1; then
18297   ac_cv_os_cray=yes
18298 else
18299   ac_cv_os_cray=no
18301 rm -f conftest*
18304 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18305 $as_echo "$ac_cv_os_cray" >&6; }
18306 if test $ac_cv_os_cray = yes; then
18307   for ac_func in _getb67 GETB67 getb67; do
18308     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18310 $as_echo_n "checking for $ac_func... " >&6; }
18311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18312   $as_echo_n "(cached) " >&6
18313 else
18314   cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h.  */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h.  */
18320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18322 #define $ac_func innocuous_$ac_func
18324 /* System header to define __stub macros and hopefully few prototypes,
18325     which can conflict with char $ac_func (); below.
18326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18327     <limits.h> exists even on freestanding compilers.  */
18329 #ifdef __STDC__
18330 # include <limits.h>
18331 #else
18332 # include <assert.h>
18333 #endif
18335 #undef $ac_func
18337 /* Override any GCC internal prototype to avoid an error.
18338    Use char because int might match the return type of a GCC
18339    builtin and then its argument prototype would still apply.  */
18340 #ifdef __cplusplus
18341 extern "C"
18342 #endif
18343 char $ac_func ();
18344 /* The GNU C library defines this for functions which it implements
18345     to always fail with ENOSYS.  Some functions are actually named
18346     something starting with __ and the normal name is an alias.  */
18347 #if defined __stub_$ac_func || defined __stub___$ac_func
18348 choke me
18349 #endif
18351 int
18352 main ()
18354 return $ac_func ();
18355   ;
18356   return 0;
18358 _ACEOF
18359 rm -f conftest.$ac_objext conftest$ac_exeext
18360 if { (ac_try="$ac_link"
18361 case "(($ac_try" in
18362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363   *) ac_try_echo=$ac_try;;
18364 esac
18365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18366 $as_echo "$ac_try_echo") >&5
18367   (eval "$ac_link") 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } && {
18374          test -z "$ac_c_werror_flag" ||
18375          test ! -s conftest.err
18376        } && test -s conftest$ac_exeext && {
18377          test "$cross_compiling" = yes ||
18378          $as_test_x conftest$ac_exeext
18379        }; then
18380   eval "$as_ac_var=yes"
18381 else
18382   $as_echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385         eval "$as_ac_var=no"
18388 rm -rf conftest.dSYM
18389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18390       conftest$ac_exeext conftest.$ac_ext
18392 ac_res=`eval 'as_val=${'$as_ac_var'}
18393                  $as_echo "$as_val"'`
18394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18395 $as_echo "$ac_res" >&6; }
18396 as_val=`eval 'as_val=${'$as_ac_var'}
18397                  $as_echo "$as_val"'`
18398    if test "x$as_val" = x""yes; then
18400 cat >>confdefs.h <<_ACEOF
18401 #define CRAY_STACKSEG_END $ac_func
18402 _ACEOF
18404     break
18407   done
18410 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18411 $as_echo_n "checking stack direction for C alloca... " >&6; }
18412 if test "${ac_cv_c_stack_direction+set}" = set; then
18413   $as_echo_n "(cached) " >&6
18414 else
18415   if test "$cross_compiling" = yes; then
18416   ac_cv_c_stack_direction=0
18417 else
18418   cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424 $ac_includes_default
18425 int
18426 find_stack_direction ()
18428   static char *addr = 0;
18429   auto char dummy;
18430   if (addr == 0)
18431     {
18432       addr = &dummy;
18433       return find_stack_direction ();
18434     }
18435   else
18436     return (&dummy > addr) ? 1 : -1;
18439 int
18440 main ()
18442   return find_stack_direction () < 0;
18444 _ACEOF
18445 rm -f conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449   *) ac_try_echo=$ac_try;;
18450 esac
18451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18452 $as_echo "$ac_try_echo") >&5
18453   (eval "$ac_link") 2>&5
18454   ac_status=$?
18455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18457   { (case "(($ac_try" in
18458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459   *) ac_try_echo=$ac_try;;
18460 esac
18461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18462 $as_echo "$ac_try_echo") >&5
18463   (eval "$ac_try") 2>&5
18464   ac_status=$?
18465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; }; then
18467   ac_cv_c_stack_direction=1
18468 else
18469   $as_echo "$as_me: program exited with status $ac_status" >&5
18470 $as_echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ( exit $ac_status )
18474 ac_cv_c_stack_direction=-1
18476 rm -rf conftest.dSYM
18477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18482 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18483 $as_echo "$ac_cv_c_stack_direction" >&6; }
18485 cat >>confdefs.h <<_ACEOF
18486 #define STACK_DIRECTION $ac_cv_c_stack_direction
18487 _ACEOF
18493     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
18494 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18495 if test "${ac_cv_gnu_library_2_1+set}" = set; then
18496   $as_echo_n "(cached) " >&6
18497 else
18498   cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h.  */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h.  */
18505 #include <features.h>
18506 #ifdef __GNU_LIBRARY__
18507  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18508   Lucky GNU user
18509  #endif
18510 #endif
18512 _ACEOF
18513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18514   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18515   ac_cv_gnu_library_2_1=yes
18516 else
18517   ac_cv_gnu_library_2_1=no
18519 rm -f conftest*
18524 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
18525 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18527     GLIBC21="$ac_cv_gnu_library_2_1"
18532   { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
18533 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18534 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
18535   $as_echo_n "(cached) " >&6
18536 else
18538       if test "$cross_compiling" = yes; then
18540           # Guess based on the CPU.
18541           case "$host_cpu" in
18542             alpha* | i3456786 | m68k | s390*)
18543               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18544             *)
18545               gt_cv_int_divbyzero_sigfpe="guessing no";;
18546           esac
18548 else
18549   cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18556 #include <stdlib.h>
18557 #include <signal.h>
18559 static void
18560 #ifdef __cplusplus
18561 sigfpe_handler (int sig)
18562 #else
18563 sigfpe_handler (sig) int sig;
18564 #endif
18566   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18567   exit (sig != SIGFPE);
18570 int x = 1;
18571 int y = 0;
18572 int z;
18573 int nan;
18575 int main ()
18577   signal (SIGFPE, sigfpe_handler);
18578 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18579 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18580   signal (SIGTRAP, sigfpe_handler);
18581 #endif
18582 /* Linux/SPARC yields signal SIGILL.  */
18583 #if defined (__sparc__) && defined (__linux__)
18584   signal (SIGILL, sigfpe_handler);
18585 #endif
18587   z = x / y;
18588   nan = y / y;
18589   exit (1);
18592 _ACEOF
18593 rm -f conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597   *) ac_try_echo=$ac_try;;
18598 esac
18599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18600 $as_echo "$ac_try_echo") >&5
18601   (eval "$ac_link") 2>&5
18602   ac_status=$?
18603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18605   { (case "(($ac_try" in
18606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607   *) ac_try_echo=$ac_try;;
18608 esac
18609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18610 $as_echo "$ac_try_echo") >&5
18611   (eval "$ac_try") 2>&5
18612   ac_status=$?
18613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; }; then
18615   gt_cv_int_divbyzero_sigfpe=yes
18616 else
18617   $as_echo "$as_me: program exited with status $ac_status" >&5
18618 $as_echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ( exit $ac_status )
18622 gt_cv_int_divbyzero_sigfpe=no
18624 rm -rf conftest.dSYM
18625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18631 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
18632 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18633   case "$gt_cv_int_divbyzero_sigfpe" in
18634     *yes) value=1;;
18635     *) value=0;;
18636   esac
18638 cat >>confdefs.h <<_ACEOF
18639 #define INTDIV0_RAISES_SIGFPE $value
18640 _ACEOF
18644   { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
18645 $as_echo_n "checking for unsigned long long... " >&6; }
18646 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
18647   $as_echo_n "(cached) " >&6
18648 else
18649   cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h.  */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h.  */
18655 unsigned long long ull = 1ULL; int i = 63;
18656 int
18657 main ()
18659 unsigned long long ullmax = (unsigned long long) -1;
18660      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18661   ;
18662   return 0;
18664 _ACEOF
18665 rm -f conftest.$ac_objext conftest$ac_exeext
18666 if { (ac_try="$ac_link"
18667 case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18672 $as_echo "$ac_try_echo") >&5
18673   (eval "$ac_link") 2>conftest.er1
18674   ac_status=$?
18675   grep -v '^ *+' conftest.er1 >conftest.err
18676   rm -f conftest.er1
18677   cat conftest.err >&5
18678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); } && {
18680          test -z "$ac_c_werror_flag" ||
18681          test ! -s conftest.err
18682        } && test -s conftest$ac_exeext && {
18683          test "$cross_compiling" = yes ||
18684          $as_test_x conftest$ac_exeext
18685        }; then
18686   ac_cv_type_unsigned_long_long=yes
18687 else
18688   $as_echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691         ac_cv_type_unsigned_long_long=no
18694 rm -rf conftest.dSYM
18695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18696       conftest$ac_exeext conftest.$ac_ext
18698 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
18699 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
18700   if test $ac_cv_type_unsigned_long_long = yes; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_UNSIGNED_LONG_LONG 1
18704 _ACEOF
18706   fi
18711   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
18713     test $ac_cv_type_unsigned_long_long = yes \
18714       && ac_type='unsigned long long' \
18715       || ac_type='unsigned long'
18717 cat >>confdefs.h <<_ACEOF
18718 #define uintmax_t $ac_type
18719 _ACEOF
18721   else
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_UINTMAX_T 1
18725 _ACEOF
18727   fi
18730   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
18731 $as_echo_n "checking for inttypes.h... " >&6; }
18732 if test "${gt_cv_header_inttypes_h+set}" = set; then
18733   $as_echo_n "(cached) " >&6
18734 else
18736     cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742 #include <sys/types.h>
18743 #include <inttypes.h>
18744 int
18745 main ()
18748   ;
18749   return 0;
18751 _ACEOF
18752 rm -f conftest.$ac_objext
18753 if { (ac_try="$ac_compile"
18754 case "(($ac_try" in
18755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756   *) ac_try_echo=$ac_try;;
18757 esac
18758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18759 $as_echo "$ac_try_echo") >&5
18760   (eval "$ac_compile") 2>conftest.er1
18761   ac_status=$?
18762   grep -v '^ *+' conftest.er1 >conftest.err
18763   rm -f conftest.er1
18764   cat conftest.err >&5
18765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); } && {
18767          test -z "$ac_c_werror_flag" ||
18768          test ! -s conftest.err
18769        } && test -s conftest.$ac_objext; then
18770   gt_cv_header_inttypes_h=yes
18771 else
18772   $as_echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18775         gt_cv_header_inttypes_h=no
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18781 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
18782 $as_echo "$gt_cv_header_inttypes_h" >&6; }
18783   if test $gt_cv_header_inttypes_h = yes; then
18785 cat >>confdefs.h <<_ACEOF
18786 #define HAVE_INTTYPES_H 1
18787 _ACEOF
18789   fi
18793   if test $gt_cv_header_inttypes_h = yes; then
18794     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18795 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18796 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18797   $as_echo_n "(cached) " >&6
18798 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.  */
18806 #include <inttypes.h>
18807 #ifdef PRId32
18808 char *p = PRId32;
18809 #endif
18811 int
18812 main ()
18815   ;
18816   return 0;
18818 _ACEOF
18819 rm -f conftest.$ac_objext
18820 if { (ac_try="$ac_compile"
18821 case "(($ac_try" in
18822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823   *) ac_try_echo=$ac_try;;
18824 esac
18825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18826 $as_echo "$ac_try_echo") >&5
18827   (eval "$ac_compile") 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } && {
18834          test -z "$ac_c_werror_flag" ||
18835          test ! -s conftest.err
18836        } && test -s conftest.$ac_objext; then
18837   gt_cv_inttypes_pri_broken=no
18838 else
18839   $as_echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842         gt_cv_inttypes_pri_broken=yes
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18848 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18849 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18850   fi
18851   if test "$gt_cv_inttypes_pri_broken" = yes; then
18853 cat >>confdefs.h <<_ACEOF
18854 #define PRI_MACROS_BROKEN 1
18855 _ACEOF
18857   fi
18861 for ac_header in stdint.h
18863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18865   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18866 $as_echo_n "checking for $ac_header... " >&6; }
18867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18868   $as_echo_n "(cached) " >&6
18870 ac_res=`eval 'as_val=${'$as_ac_Header'}
18871                  $as_echo "$as_val"'`
18872                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18873 $as_echo "$ac_res" >&6; }
18874 else
18875   # Is the header compilable?
18876 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18877 $as_echo_n "checking $ac_header usability... " >&6; }
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h.  */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h.  */
18884 $ac_includes_default
18885 #include <$ac_header>
18886 _ACEOF
18887 rm -f conftest.$ac_objext
18888 if { (ac_try="$ac_compile"
18889 case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18894 $as_echo "$ac_try_echo") >&5
18895   (eval "$ac_compile") 2>conftest.er1
18896   ac_status=$?
18897   grep -v '^ *+' conftest.er1 >conftest.err
18898   rm -f conftest.er1
18899   cat conftest.err >&5
18900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); } && {
18902          test -z "$ac_c_werror_flag" ||
18903          test ! -s conftest.err
18904        } && test -s conftest.$ac_objext; then
18905   ac_header_compiler=yes
18906 else
18907   $as_echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910         ac_header_compiler=no
18913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18915 $as_echo "$ac_header_compiler" >&6; }
18917 # Is the header present?
18918 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18919 $as_echo_n "checking $ac_header presence... " >&6; }
18920 cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926 #include <$ac_header>
18927 _ACEOF
18928 if { (ac_try="$ac_cpp conftest.$ac_ext"
18929 case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18934 $as_echo "$ac_try_echo") >&5
18935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18936   ac_status=$?
18937   grep -v '^ *+' conftest.er1 >conftest.err
18938   rm -f conftest.er1
18939   cat conftest.err >&5
18940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); } >/dev/null && {
18942          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18943          test ! -s conftest.err
18944        }; then
18945   ac_header_preproc=yes
18946 else
18947   $as_echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18950   ac_header_preproc=no
18953 rm -f conftest.err conftest.$ac_ext
18954 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18955 $as_echo "$ac_header_preproc" >&6; }
18957 # So?  What about this header?
18958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18959   yes:no: )
18960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18961 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18963 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18964     ac_header_preproc=yes
18965     ;;
18966   no:yes:* )
18967     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18968 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18969     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18970 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18971     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18972 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18973     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18974 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18975     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18976 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18977     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18978 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18980     ;;
18981 esac
18982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18983 $as_echo_n "checking for $ac_header... " >&6; }
18984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18985   $as_echo_n "(cached) " >&6
18986 else
18987   eval "$as_ac_Header=\$ac_header_preproc"
18989 ac_res=`eval 'as_val=${'$as_ac_Header'}
18990                  $as_echo "$as_val"'`
18991                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18992 $as_echo "$ac_res" >&6; }
18995 as_val=`eval 'as_val=${'$as_ac_Header'}
18996                  $as_echo "$as_val"'`
18997    if test "x$as_val" = x""yes; then
18998   cat >>confdefs.h <<_ACEOF
18999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19000 _ACEOF
19004 done
19006     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
19007 $as_echo_n "checking for SIZE_MAX... " >&6; }
19008   result=
19009   cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h.  */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h.  */
19016 #include <limits.h>
19017 #if HAVE_STDINT_H
19018 #include <stdint.h>
19019 #endif
19020 #ifdef SIZE_MAX
19021 Found it
19022 #endif
19024 _ACEOF
19025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19026   $EGREP "Found it" >/dev/null 2>&1; then
19027   result=yes
19029 rm -f conftest*
19031   if test -z "$result"; then
19032                     if test "$cross_compiling" = yes; then
19033   # Depending upon the size, compute the lo and hi bounds.
19034 cat >conftest.$ac_ext <<_ACEOF
19035 /* confdefs.h.  */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h.  */
19040 #include <stddef.h>
19041 int
19042 main ()
19044 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
19045 test_array [0] = 0
19047   ;
19048   return 0;
19050 _ACEOF
19051 rm -f conftest.$ac_objext
19052 if { (ac_try="$ac_compile"
19053 case "(($ac_try" in
19054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055   *) ac_try_echo=$ac_try;;
19056 esac
19057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19058 $as_echo "$ac_try_echo") >&5
19059   (eval "$ac_compile") 2>conftest.er1
19060   ac_status=$?
19061   grep -v '^ *+' conftest.er1 >conftest.err
19062   rm -f conftest.er1
19063   cat conftest.err >&5
19064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); } && {
19066          test -z "$ac_c_werror_flag" ||
19067          test ! -s conftest.err
19068        } && test -s conftest.$ac_objext; then
19069   ac_lo=0 ac_mid=0
19070   while :; do
19071     cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h.  */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h.  */
19077 #include <stddef.h>
19078 int
19079 main ()
19081 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
19082 test_array [0] = 0
19084   ;
19085   return 0;
19087 _ACEOF
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19095 $as_echo "$ac_try_echo") >&5
19096   (eval "$ac_compile") 2>conftest.er1
19097   ac_status=$?
19098   grep -v '^ *+' conftest.er1 >conftest.err
19099   rm -f conftest.er1
19100   cat conftest.err >&5
19101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } && {
19103          test -z "$ac_c_werror_flag" ||
19104          test ! -s conftest.err
19105        } && test -s conftest.$ac_objext; then
19106   ac_hi=$ac_mid; break
19107 else
19108   $as_echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111         ac_lo=`expr $ac_mid + 1`
19112                         if test $ac_lo -le $ac_mid; then
19113                           ac_lo= ac_hi=
19114                           break
19115                         fi
19116                         ac_mid=`expr 2 '*' $ac_mid + 1`
19119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19120   done
19121 else
19122   $as_echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125         cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h.  */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h.  */
19131 #include <stddef.h>
19132 int
19133 main ()
19135 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
19136 test_array [0] = 0
19138   ;
19139   return 0;
19141 _ACEOF
19142 rm -f conftest.$ac_objext
19143 if { (ac_try="$ac_compile"
19144 case "(($ac_try" in
19145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146   *) ac_try_echo=$ac_try;;
19147 esac
19148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19149 $as_echo "$ac_try_echo") >&5
19150   (eval "$ac_compile") 2>conftest.er1
19151   ac_status=$?
19152   grep -v '^ *+' conftest.er1 >conftest.err
19153   rm -f conftest.er1
19154   cat conftest.err >&5
19155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); } && {
19157          test -z "$ac_c_werror_flag" ||
19158          test ! -s conftest.err
19159        } && test -s conftest.$ac_objext; then
19160   ac_hi=-1 ac_mid=-1
19161   while :; do
19162     cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168 #include <stddef.h>
19169 int
19170 main ()
19172 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
19173 test_array [0] = 0
19175   ;
19176   return 0;
19178 _ACEOF
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19186 $as_echo "$ac_try_echo") >&5
19187   (eval "$ac_compile") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } && {
19194          test -z "$ac_c_werror_flag" ||
19195          test ! -s conftest.err
19196        } && test -s conftest.$ac_objext; then
19197   ac_lo=$ac_mid; break
19198 else
19199   $as_echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202         ac_hi=`expr '(' $ac_mid ')' - 1`
19203                         if test $ac_mid -le $ac_hi; then
19204                           ac_lo= ac_hi=
19205                           break
19206                         fi
19207                         ac_mid=`expr 2 '*' $ac_mid`
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211   done
19212 else
19213   $as_echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216         ac_lo= ac_hi=
19219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223 # Binary search between lo and hi bounds.
19224 while test "x$ac_lo" != "x$ac_hi"; do
19225   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19226   cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h.  */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h.  */
19232 #include <stddef.h>
19233 int
19234 main ()
19236 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
19237 test_array [0] = 0
19239   ;
19240   return 0;
19242 _ACEOF
19243 rm -f conftest.$ac_objext
19244 if { (ac_try="$ac_compile"
19245 case "(($ac_try" in
19246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247   *) ac_try_echo=$ac_try;;
19248 esac
19249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19250 $as_echo "$ac_try_echo") >&5
19251   (eval "$ac_compile") 2>conftest.er1
19252   ac_status=$?
19253   grep -v '^ *+' conftest.er1 >conftest.err
19254   rm -f conftest.er1
19255   cat conftest.err >&5
19256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); } && {
19258          test -z "$ac_c_werror_flag" ||
19259          test ! -s conftest.err
19260        } && test -s conftest.$ac_objext; then
19261   ac_hi=$ac_mid
19262 else
19263   $as_echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266         ac_lo=`expr '(' $ac_mid ')' + 1`
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 done
19271 case $ac_lo in
19272 ?*) res_hi=$ac_lo;;
19273 '') result=? ;;
19274 esac
19275 else
19276   cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282 #include <stddef.h>
19283 static long int longval () { return ~(size_t)0 / 10; }
19284 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
19285 #include <stdio.h>
19286 #include <stdlib.h>
19287 int
19288 main ()
19291   FILE *f = fopen ("conftest.val", "w");
19292   if (! f)
19293     return 1;
19294   if ((~(size_t)0 / 10) < 0)
19295     {
19296       long int i = longval ();
19297       if (i != (~(size_t)0 / 10))
19298         return 1;
19299       fprintf (f, "%ld", i);
19300     }
19301   else
19302     {
19303       unsigned long int i = ulongval ();
19304       if (i != (~(size_t)0 / 10))
19305         return 1;
19306       fprintf (f, "%lu", i);
19307     }
19308   /* Do not output a trailing newline, as this causes \r\n confusion
19309      on some platforms.  */
19310   return ferror (f) || fclose (f) != 0;
19312   ;
19313   return 0;
19315 _ACEOF
19316 rm -f conftest$ac_exeext
19317 if { (ac_try="$ac_link"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19323 $as_echo "$ac_try_echo") >&5
19324   (eval "$ac_link") 2>&5
19325   ac_status=$?
19326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19328   { (case "(($ac_try" in
19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330   *) ac_try_echo=$ac_try;;
19331 esac
19332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19333 $as_echo "$ac_try_echo") >&5
19334   (eval "$ac_try") 2>&5
19335   ac_status=$?
19336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); }; }; then
19338   res_hi=`cat conftest.val`
19339 else
19340   $as_echo "$as_me: program exited with status $ac_status" >&5
19341 $as_echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 ( exit $ac_status )
19345 result=?
19347 rm -rf conftest.dSYM
19348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19350 rm -f conftest.val
19352     if test "$cross_compiling" = yes; then
19353   # Depending upon the size, compute the lo and hi bounds.
19354 cat >conftest.$ac_ext <<_ACEOF
19355 /* confdefs.h.  */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h.  */
19360 #include <stddef.h>
19361 int
19362 main ()
19364 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
19365 test_array [0] = 0
19367   ;
19368   return 0;
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (ac_try="$ac_compile"
19373 case "(($ac_try" in
19374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375   *) ac_try_echo=$ac_try;;
19376 esac
19377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19378 $as_echo "$ac_try_echo") >&5
19379   (eval "$ac_compile") 2>conftest.er1
19380   ac_status=$?
19381   grep -v '^ *+' conftest.er1 >conftest.err
19382   rm -f conftest.er1
19383   cat conftest.err >&5
19384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); } && {
19386          test -z "$ac_c_werror_flag" ||
19387          test ! -s conftest.err
19388        } && test -s conftest.$ac_objext; then
19389   ac_lo=0 ac_mid=0
19390   while :; do
19391     cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h.  */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h.  */
19397 #include <stddef.h>
19398 int
19399 main ()
19401 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
19402 test_array [0] = 0
19404   ;
19405   return 0;
19407 _ACEOF
19408 rm -f conftest.$ac_objext
19409 if { (ac_try="$ac_compile"
19410 case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19415 $as_echo "$ac_try_echo") >&5
19416   (eval "$ac_compile") 2>conftest.er1
19417   ac_status=$?
19418   grep -v '^ *+' conftest.er1 >conftest.err
19419   rm -f conftest.er1
19420   cat conftest.err >&5
19421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } && {
19423          test -z "$ac_c_werror_flag" ||
19424          test ! -s conftest.err
19425        } && test -s conftest.$ac_objext; then
19426   ac_hi=$ac_mid; break
19427 else
19428   $as_echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19431         ac_lo=`expr $ac_mid + 1`
19432                         if test $ac_lo -le $ac_mid; then
19433                           ac_lo= ac_hi=
19434                           break
19435                         fi
19436                         ac_mid=`expr 2 '*' $ac_mid + 1`
19439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19440   done
19441 else
19442   $as_echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445         cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h.  */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h.  */
19451 #include <stddef.h>
19452 int
19453 main ()
19455 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
19456 test_array [0] = 0
19458   ;
19459   return 0;
19461 _ACEOF
19462 rm -f conftest.$ac_objext
19463 if { (ac_try="$ac_compile"
19464 case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19469 $as_echo "$ac_try_echo") >&5
19470   (eval "$ac_compile") 2>conftest.er1
19471   ac_status=$?
19472   grep -v '^ *+' conftest.er1 >conftest.err
19473   rm -f conftest.er1
19474   cat conftest.err >&5
19475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && {
19477          test -z "$ac_c_werror_flag" ||
19478          test ! -s conftest.err
19479        } && test -s conftest.$ac_objext; then
19480   ac_hi=-1 ac_mid=-1
19481   while :; do
19482     cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488 #include <stddef.h>
19489 int
19490 main ()
19492 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
19493 test_array [0] = 0
19495   ;
19496   return 0;
19498 _ACEOF
19499 rm -f conftest.$ac_objext
19500 if { (ac_try="$ac_compile"
19501 case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19506 $as_echo "$ac_try_echo") >&5
19507   (eval "$ac_compile") 2>conftest.er1
19508   ac_status=$?
19509   grep -v '^ *+' conftest.er1 >conftest.err
19510   rm -f conftest.er1
19511   cat conftest.err >&5
19512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); } && {
19514          test -z "$ac_c_werror_flag" ||
19515          test ! -s conftest.err
19516        } && test -s conftest.$ac_objext; then
19517   ac_lo=$ac_mid; break
19518 else
19519   $as_echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522         ac_hi=`expr '(' $ac_mid ')' - 1`
19523                         if test $ac_mid -le $ac_hi; then
19524                           ac_lo= ac_hi=
19525                           break
19526                         fi
19527                         ac_mid=`expr 2 '*' $ac_mid`
19530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19531   done
19532 else
19533   $as_echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536         ac_lo= ac_hi=
19539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19543 # Binary search between lo and hi bounds.
19544 while test "x$ac_lo" != "x$ac_hi"; do
19545   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19546   cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552 #include <stddef.h>
19553 int
19554 main ()
19556 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
19557 test_array [0] = 0
19559   ;
19560   return 0;
19562 _ACEOF
19563 rm -f conftest.$ac_objext
19564 if { (ac_try="$ac_compile"
19565 case "(($ac_try" in
19566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567   *) ac_try_echo=$ac_try;;
19568 esac
19569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19570 $as_echo "$ac_try_echo") >&5
19571   (eval "$ac_compile") 2>conftest.er1
19572   ac_status=$?
19573   grep -v '^ *+' conftest.er1 >conftest.err
19574   rm -f conftest.er1
19575   cat conftest.err >&5
19576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); } && {
19578          test -z "$ac_c_werror_flag" ||
19579          test ! -s conftest.err
19580        } && test -s conftest.$ac_objext; then
19581   ac_hi=$ac_mid
19582 else
19583   $as_echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586         ac_lo=`expr '(' $ac_mid ')' + 1`
19589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19590 done
19591 case $ac_lo in
19592 ?*) res_lo=$ac_lo;;
19593 '') result=? ;;
19594 esac
19595 else
19596   cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h.  */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h.  */
19602 #include <stddef.h>
19603 static long int longval () { return ~(size_t)0 % 10; }
19604 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
19605 #include <stdio.h>
19606 #include <stdlib.h>
19607 int
19608 main ()
19611   FILE *f = fopen ("conftest.val", "w");
19612   if (! f)
19613     return 1;
19614   if ((~(size_t)0 % 10) < 0)
19615     {
19616       long int i = longval ();
19617       if (i != (~(size_t)0 % 10))
19618         return 1;
19619       fprintf (f, "%ld", i);
19620     }
19621   else
19622     {
19623       unsigned long int i = ulongval ();
19624       if (i != (~(size_t)0 % 10))
19625         return 1;
19626       fprintf (f, "%lu", i);
19627     }
19628   /* Do not output a trailing newline, as this causes \r\n confusion
19629      on some platforms.  */
19630   return ferror (f) || fclose (f) != 0;
19632   ;
19633   return 0;
19635 _ACEOF
19636 rm -f conftest$ac_exeext
19637 if { (ac_try="$ac_link"
19638 case "(($ac_try" in
19639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640   *) ac_try_echo=$ac_try;;
19641 esac
19642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19643 $as_echo "$ac_try_echo") >&5
19644   (eval "$ac_link") 2>&5
19645   ac_status=$?
19646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19648   { (case "(($ac_try" in
19649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650   *) ac_try_echo=$ac_try;;
19651 esac
19652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19653 $as_echo "$ac_try_echo") >&5
19654   (eval "$ac_try") 2>&5
19655   ac_status=$?
19656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; }; then
19658   res_lo=`cat conftest.val`
19659 else
19660   $as_echo "$as_me: program exited with status $ac_status" >&5
19661 $as_echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19664 ( exit $ac_status )
19665 result=?
19667 rm -rf conftest.dSYM
19668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19670 rm -f conftest.val
19672     if test "$cross_compiling" = yes; then
19673   # Depending upon the size, compute the lo and hi bounds.
19674 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680 #include <stddef.h>
19681 int
19682 main ()
19684 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
19685 test_array [0] = 0
19687   ;
19688   return 0;
19690 _ACEOF
19691 rm -f conftest.$ac_objext
19692 if { (ac_try="$ac_compile"
19693 case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19698 $as_echo "$ac_try_echo") >&5
19699   (eval "$ac_compile") 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } && {
19706          test -z "$ac_c_werror_flag" ||
19707          test ! -s conftest.err
19708        } && test -s conftest.$ac_objext; then
19709   ac_lo=0 ac_mid=0
19710   while :; do
19711     cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717 #include <stddef.h>
19718 int
19719 main ()
19721 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19722 test_array [0] = 0
19724   ;
19725   return 0;
19727 _ACEOF
19728 rm -f conftest.$ac_objext
19729 if { (ac_try="$ac_compile"
19730 case "(($ac_try" in
19731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732   *) ac_try_echo=$ac_try;;
19733 esac
19734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19735 $as_echo "$ac_try_echo") >&5
19736   (eval "$ac_compile") 2>conftest.er1
19737   ac_status=$?
19738   grep -v '^ *+' conftest.er1 >conftest.err
19739   rm -f conftest.er1
19740   cat conftest.err >&5
19741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); } && {
19743          test -z "$ac_c_werror_flag" ||
19744          test ! -s conftest.err
19745        } && test -s conftest.$ac_objext; then
19746   ac_hi=$ac_mid; break
19747 else
19748   $as_echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751         ac_lo=`expr $ac_mid + 1`
19752                         if test $ac_lo -le $ac_mid; then
19753                           ac_lo= ac_hi=
19754                           break
19755                         fi
19756                         ac_mid=`expr 2 '*' $ac_mid + 1`
19759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19760   done
19761 else
19762   $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765         cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h.  */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h.  */
19771 #include <stddef.h>
19772 int
19773 main ()
19775 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
19776 test_array [0] = 0
19778   ;
19779   return 0;
19781 _ACEOF
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19789 $as_echo "$ac_try_echo") >&5
19790   (eval "$ac_compile") 2>conftest.er1
19791   ac_status=$?
19792   grep -v '^ *+' conftest.er1 >conftest.err
19793   rm -f conftest.er1
19794   cat conftest.err >&5
19795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); } && {
19797          test -z "$ac_c_werror_flag" ||
19798          test ! -s conftest.err
19799        } && test -s conftest.$ac_objext; then
19800   ac_hi=-1 ac_mid=-1
19801   while :; do
19802     cat >conftest.$ac_ext <<_ACEOF
19803 /* confdefs.h.  */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h.  */
19808 #include <stddef.h>
19809 int
19810 main ()
19812 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
19813 test_array [0] = 0
19815   ;
19816   return 0;
19818 _ACEOF
19819 rm -f conftest.$ac_objext
19820 if { (ac_try="$ac_compile"
19821 case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19826 $as_echo "$ac_try_echo") >&5
19827   (eval "$ac_compile") 2>conftest.er1
19828   ac_status=$?
19829   grep -v '^ *+' conftest.er1 >conftest.err
19830   rm -f conftest.er1
19831   cat conftest.err >&5
19832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); } && {
19834          test -z "$ac_c_werror_flag" ||
19835          test ! -s conftest.err
19836        } && test -s conftest.$ac_objext; then
19837   ac_lo=$ac_mid; break
19838 else
19839   $as_echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19842         ac_hi=`expr '(' $ac_mid ')' - 1`
19843                         if test $ac_mid -le $ac_hi; then
19844                           ac_lo= ac_hi=
19845                           break
19846                         fi
19847                         ac_mid=`expr 2 '*' $ac_mid`
19850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851   done
19852 else
19853   $as_echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856         ac_lo= ac_hi=
19859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 # Binary search between lo and hi bounds.
19864 while test "x$ac_lo" != "x$ac_hi"; do
19865   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19866   cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872 #include <stddef.h>
19873 int
19874 main ()
19876 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19877 test_array [0] = 0
19879   ;
19880   return 0;
19882 _ACEOF
19883 rm -f conftest.$ac_objext
19884 if { (ac_try="$ac_compile"
19885 case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19890 $as_echo "$ac_try_echo") >&5
19891   (eval "$ac_compile") 2>conftest.er1
19892   ac_status=$?
19893   grep -v '^ *+' conftest.er1 >conftest.err
19894   rm -f conftest.er1
19895   cat conftest.err >&5
19896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); } && {
19898          test -z "$ac_c_werror_flag" ||
19899          test ! -s conftest.err
19900        } && test -s conftest.$ac_objext; then
19901   ac_hi=$ac_mid
19902 else
19903   $as_echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906         ac_lo=`expr '(' $ac_mid ')' + 1`
19909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19910 done
19911 case $ac_lo in
19912 ?*) fits_in_uint=$ac_lo;;
19913 '') result=? ;;
19914 esac
19915 else
19916   cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 #include <stddef.h>
19923 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
19924 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
19925 #include <stdio.h>
19926 #include <stdlib.h>
19927 int
19928 main ()
19931   FILE *f = fopen ("conftest.val", "w");
19932   if (! f)
19933     return 1;
19934   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
19935     {
19936       long int i = longval ();
19937       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19938         return 1;
19939       fprintf (f, "%ld", i);
19940     }
19941   else
19942     {
19943       unsigned long int i = ulongval ();
19944       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19945         return 1;
19946       fprintf (f, "%lu", i);
19947     }
19948   /* Do not output a trailing newline, as this causes \r\n confusion
19949      on some platforms.  */
19950   return ferror (f) || fclose (f) != 0;
19952   ;
19953   return 0;
19955 _ACEOF
19956 rm -f conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960   *) ac_try_echo=$ac_try;;
19961 esac
19962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19963 $as_echo "$ac_try_echo") >&5
19964   (eval "$ac_link") 2>&5
19965   ac_status=$?
19966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19968   { (case "(($ac_try" in
19969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970   *) ac_try_echo=$ac_try;;
19971 esac
19972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19973 $as_echo "$ac_try_echo") >&5
19974   (eval "$ac_try") 2>&5
19975   ac_status=$?
19976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); }; }; then
19978   fits_in_uint=`cat conftest.val`
19979 else
19980   $as_echo "$as_me: program exited with status $ac_status" >&5
19981 $as_echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ( exit $ac_status )
19985 result=?
19987 rm -rf conftest.dSYM
19988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19990 rm -f conftest.val
19992     if test "$fits_in_uint" = 1; then
19993                   cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999 #include <stddef.h>
20000         extern size_t foo;
20001         extern unsigned long foo;
20003 int
20004 main ()
20007   ;
20008   return 0;
20010 _ACEOF
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20018 $as_echo "$ac_try_echo") >&5
20019   (eval "$ac_compile") 2>conftest.er1
20020   ac_status=$?
20021   grep -v '^ *+' conftest.er1 >conftest.err
20022   rm -f conftest.er1
20023   cat conftest.err >&5
20024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } && {
20026          test -z "$ac_c_werror_flag" ||
20027          test ! -s conftest.err
20028        } && test -s conftest.$ac_objext; then
20029   fits_in_uint=0
20030 else
20031   $as_echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038     fi
20039     if test -z "$result"; then
20040       if test "$fits_in_uint" = 1; then
20041         result="$res_hi$res_lo"U
20042       else
20043         result="$res_hi$res_lo"UL
20044       fi
20045     else
20046             result='~(size_t)0'
20047     fi
20048   fi
20049   { $as_echo "$as_me:$LINENO: result: $result" >&5
20050 $as_echo "$result" >&6; }
20051   if test "$result" != yes; then
20053 cat >>confdefs.h <<_ACEOF
20054 #define SIZE_MAX $result
20055 _ACEOF
20057   fi
20063 for ac_header in stdint.h
20065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20067   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20068 $as_echo_n "checking for $ac_header... " >&6; }
20069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20070   $as_echo_n "(cached) " >&6
20072 ac_res=`eval 'as_val=${'$as_ac_Header'}
20073                  $as_echo "$as_val"'`
20074                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20075 $as_echo "$ac_res" >&6; }
20076 else
20077   # Is the header compilable?
20078 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20079 $as_echo_n "checking $ac_header usability... " >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 $ac_includes_default
20087 #include <$ac_header>
20088 _ACEOF
20089 rm -f conftest.$ac_objext
20090 if { (ac_try="$ac_compile"
20091 case "(($ac_try" in
20092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093   *) ac_try_echo=$ac_try;;
20094 esac
20095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20096 $as_echo "$ac_try_echo") >&5
20097   (eval "$ac_compile") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } && {
20104          test -z "$ac_c_werror_flag" ||
20105          test ! -s conftest.err
20106        } && test -s conftest.$ac_objext; then
20107   ac_header_compiler=yes
20108 else
20109   $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112         ac_header_compiler=no
20115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20116 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20117 $as_echo "$ac_header_compiler" >&6; }
20119 # Is the header present?
20120 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20121 $as_echo_n "checking $ac_header presence... " >&6; }
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 #include <$ac_header>
20129 _ACEOF
20130 if { (ac_try="$ac_cpp conftest.$ac_ext"
20131 case "(($ac_try" in
20132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133   *) ac_try_echo=$ac_try;;
20134 esac
20135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20136 $as_echo "$ac_try_echo") >&5
20137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20138   ac_status=$?
20139   grep -v '^ *+' conftest.er1 >conftest.err
20140   rm -f conftest.er1
20141   cat conftest.err >&5
20142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143   (exit $ac_status); } >/dev/null && {
20144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20145          test ! -s conftest.err
20146        }; then
20147   ac_header_preproc=yes
20148 else
20149   $as_echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152   ac_header_preproc=no
20155 rm -f conftest.err conftest.$ac_ext
20156 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20157 $as_echo "$ac_header_preproc" >&6; }
20159 # So?  What about this header?
20160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20161   yes:no: )
20162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20163 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20165 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20166     ac_header_preproc=yes
20167     ;;
20168   no:yes:* )
20169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20170 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20172 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20174 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20176 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20180 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20182     ;;
20183 esac
20184 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20185 $as_echo_n "checking for $ac_header... " >&6; }
20186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20187   $as_echo_n "(cached) " >&6
20188 else
20189   eval "$as_ac_Header=\$ac_header_preproc"
20191 ac_res=`eval 'as_val=${'$as_ac_Header'}
20192                  $as_echo "$as_val"'`
20193                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20194 $as_echo "$ac_res" >&6; }
20197 as_val=`eval 'as_val=${'$as_ac_Header'}
20198                  $as_echo "$as_val"'`
20199    if test "x$as_val" = x""yes; then
20200   cat >>confdefs.h <<_ACEOF
20201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20202 _ACEOF
20206 done
20210     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
20211 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20212 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
20213   $as_echo_n "(cached) " >&6
20214 else
20215   gt_save_CPPFLAGS="$CPPFLAGS"
20216      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20217      gt_save_LIBS="$LIBS"
20218      LIBS="$LIBS -framework CoreFoundation"
20219      cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h.  */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h.  */
20225 #include <CFPreferences.h>
20226 int
20227 main ()
20229 CFPreferencesCopyAppValue(NULL, NULL)
20230   ;
20231   return 0;
20233 _ACEOF
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20241 $as_echo "$ac_try_echo") >&5
20242   (eval "$ac_link") 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } && {
20249          test -z "$ac_c_werror_flag" ||
20250          test ! -s conftest.err
20251        } && test -s conftest$ac_exeext && {
20252          test "$cross_compiling" = yes ||
20253          $as_test_x conftest$ac_exeext
20254        }; then
20255   gt_cv_func_CFPreferencesCopyAppValue=yes
20256 else
20257   $as_echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20260         gt_cv_func_CFPreferencesCopyAppValue=no
20263 rm -rf conftest.dSYM
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20265       conftest$ac_exeext conftest.$ac_ext
20266      CPPFLAGS="$gt_save_CPPFLAGS"
20267      LIBS="$gt_save_LIBS"
20269 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20270 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20271   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20273 cat >>confdefs.h <<\_ACEOF
20274 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
20275 _ACEOF
20277   fi
20278     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
20279 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20280 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
20281   $as_echo_n "(cached) " >&6
20282 else
20283   gt_save_CPPFLAGS="$CPPFLAGS"
20284      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20285      gt_save_LIBS="$LIBS"
20286      LIBS="$LIBS -framework CoreFoundation"
20287      cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 #include <CFLocale.h>
20294 int
20295 main ()
20297 CFLocaleCopyCurrent();
20298   ;
20299   return 0;
20301 _ACEOF
20302 rm -f conftest.$ac_objext conftest$ac_exeext
20303 if { (ac_try="$ac_link"
20304 case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20309 $as_echo "$ac_try_echo") >&5
20310   (eval "$ac_link") 2>conftest.er1
20311   ac_status=$?
20312   grep -v '^ *+' conftest.er1 >conftest.err
20313   rm -f conftest.er1
20314   cat conftest.err >&5
20315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); } && {
20317          test -z "$ac_c_werror_flag" ||
20318          test ! -s conftest.err
20319        } && test -s conftest$ac_exeext && {
20320          test "$cross_compiling" = yes ||
20321          $as_test_x conftest$ac_exeext
20322        }; then
20323   gt_cv_func_CFLocaleCopyCurrent=yes
20324 else
20325   $as_echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328         gt_cv_func_CFLocaleCopyCurrent=no
20331 rm -rf conftest.dSYM
20332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20333       conftest$ac_exeext conftest.$ac_ext
20334      CPPFLAGS="$gt_save_CPPFLAGS"
20335      LIBS="$gt_save_LIBS"
20337 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20338 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20339   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20341 cat >>confdefs.h <<\_ACEOF
20342 #define HAVE_CFLOCALECOPYCURRENT 1
20343 _ACEOF
20345   fi
20346   INTL_MACOSX_LIBS=
20347   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20348     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20349   fi
20353       if test "X$prefix" = "XNONE"; then
20354     acl_final_prefix="$ac_default_prefix"
20355   else
20356     acl_final_prefix="$prefix"
20357   fi
20358   if test "X$exec_prefix" = "XNONE"; then
20359     acl_final_exec_prefix='${prefix}'
20360   else
20361     acl_final_exec_prefix="$exec_prefix"
20362   fi
20363   acl_save_prefix="$prefix"
20364   prefix="$acl_final_prefix"
20365   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20366   prefix="$acl_save_prefix"
20369 # Check whether --with-gnu-ld was given.
20370 if test "${with_gnu_ld+set}" = set; then
20371   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20372 else
20373   with_gnu_ld=no
20376 # Prepare PATH_SEPARATOR.
20377 # The user is always right.
20378 if test "${PATH_SEPARATOR+set}" != set; then
20379   echo "#! /bin/sh" >conf$$.sh
20380   echo  "exit 0"   >>conf$$.sh
20381   chmod +x conf$$.sh
20382   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20383     PATH_SEPARATOR=';'
20384   else
20385     PATH_SEPARATOR=:
20386   fi
20387   rm -f conf$$.sh
20389 ac_prog=ld
20390 if test "$GCC" = yes; then
20391   # Check if gcc -print-prog-name=ld gives a path.
20392   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20393 $as_echo_n "checking for ld used by GCC... " >&6; }
20394   case $host in
20395   *-*-mingw*)
20396     # gcc leaves a trailing carriage return which upsets mingw
20397     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20398   *)
20399     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20400   esac
20401   case $ac_prog in
20402     # Accept absolute paths.
20403     [\\/]* | [A-Za-z]:[\\/]*)
20404       re_direlt='/[^/][^/]*/\.\./'
20405       # Canonicalize the path of ld
20406       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20407       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20408         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20409       done
20410       test -z "$LD" && LD="$ac_prog"
20411       ;;
20412   "")
20413     # If it fails, then pretend we aren't using GCC.
20414     ac_prog=ld
20415     ;;
20416   *)
20417     # If it is relative, then search for the first ld in PATH.
20418     with_gnu_ld=unknown
20419     ;;
20420   esac
20421 elif test "$with_gnu_ld" = yes; then
20422   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20423 $as_echo_n "checking for GNU ld... " >&6; }
20424 else
20425   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20426 $as_echo_n "checking for non-GNU ld... " >&6; }
20428 if test "${acl_cv_path_LD+set}" = set; then
20429   $as_echo_n "(cached) " >&6
20430 else
20431   if test -z "$LD"; then
20432   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20433   for ac_dir in $PATH; do
20434     test -z "$ac_dir" && ac_dir=.
20435     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20436       acl_cv_path_LD="$ac_dir/$ac_prog"
20437       # Check to see if the program is GNU ld.  I'd rather use --version,
20438       # but apparently some GNU ld's only accept -v.
20439       # Break only if it was the GNU/non-GNU ld that we prefer.
20440       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20441       *GNU* | *'with BFD'*)
20442         test "$with_gnu_ld" != no && break ;;
20443       *)
20444         test "$with_gnu_ld" != yes && break ;;
20445       esac
20446     fi
20447   done
20448   IFS="$ac_save_ifs"
20449 else
20450   acl_cv_path_LD="$LD" # Let the user override the test with a path.
20454 LD="$acl_cv_path_LD"
20455 if test -n "$LD"; then
20456   { $as_echo "$as_me:$LINENO: result: $LD" >&5
20457 $as_echo "$LD" >&6; }
20458 else
20459   { $as_echo "$as_me:$LINENO: result: no" >&5
20460 $as_echo "no" >&6; }
20462 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20463 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20464    { (exit 1); exit 1; }; }
20465 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20467 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20468   $as_echo_n "(cached) " >&6
20469 else
20470   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20471 case `$LD -v 2>&1 </dev/null` in
20472 *GNU* | *'with BFD'*)
20473   acl_cv_prog_gnu_ld=yes ;;
20475   acl_cv_prog_gnu_ld=no ;;
20476 esac
20478 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20479 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20480 with_gnu_ld=$acl_cv_prog_gnu_ld
20485                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20486 $as_echo_n "checking for shared library run path origin... " >&6; }
20487 if test "${acl_cv_rpath+set}" = set; then
20488   $as_echo_n "(cached) " >&6
20489 else
20491     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20492     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20493     . ./conftest.sh
20494     rm -f ./conftest.sh
20495     acl_cv_rpath=done
20498 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20499 $as_echo "$acl_cv_rpath" >&6; }
20500   wl="$acl_cv_wl"
20501   libext="$acl_cv_libext"
20502   shlibext="$acl_cv_shlibext"
20503   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20504   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20505   hardcode_direct="$acl_cv_hardcode_direct"
20506   hardcode_minus_L="$acl_cv_hardcode_minus_L"
20507     # Check whether --enable-rpath was given.
20508 if test "${enable_rpath+set}" = set; then
20509   enableval=$enable_rpath; :
20510 else
20511   enable_rpath=yes
20521     use_additional=yes
20523   acl_save_prefix="$prefix"
20524   prefix="$acl_final_prefix"
20525   acl_save_exec_prefix="$exec_prefix"
20526   exec_prefix="$acl_final_exec_prefix"
20528     eval additional_includedir=\"$includedir\"
20529     eval additional_libdir=\"$libdir\"
20531   exec_prefix="$acl_save_exec_prefix"
20532   prefix="$acl_save_prefix"
20535 # Check whether --with-libiconv-prefix was given.
20536 if test "${with_libiconv_prefix+set}" = set; then
20537   withval=$with_libiconv_prefix;
20538     if test "X$withval" = "Xno"; then
20539       use_additional=no
20540     else
20541       if test "X$withval" = "X"; then
20543   acl_save_prefix="$prefix"
20544   prefix="$acl_final_prefix"
20545   acl_save_exec_prefix="$exec_prefix"
20546   exec_prefix="$acl_final_exec_prefix"
20548           eval additional_includedir=\"$includedir\"
20549           eval additional_libdir=\"$libdir\"
20551   exec_prefix="$acl_save_exec_prefix"
20552   prefix="$acl_save_prefix"
20554       else
20555         additional_includedir="$withval/include"
20556         additional_libdir="$withval/lib"
20557       fi
20558     fi
20562       LIBICONV=
20563   LTLIBICONV=
20564   INCICONV=
20565   rpathdirs=
20566   ltrpathdirs=
20567   names_already_handled=
20568   names_next_round='iconv '
20569   while test -n "$names_next_round"; do
20570     names_this_round="$names_next_round"
20571     names_next_round=
20572     for name in $names_this_round; do
20573       already_handled=
20574       for n in $names_already_handled; do
20575         if test "$n" = "$name"; then
20576           already_handled=yes
20577           break
20578         fi
20579       done
20580       if test -z "$already_handled"; then
20581         names_already_handled="$names_already_handled $name"
20582                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20583         eval value=\"\$HAVE_LIB$uppername\"
20584         if test -n "$value"; then
20585           if test "$value" = yes; then
20586             eval value=\"\$LIB$uppername\"
20587             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20588             eval value=\"\$LTLIB$uppername\"
20589             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20590           else
20591                                     :
20592           fi
20593         else
20594                               found_dir=
20595           found_la=
20596           found_so=
20597           found_a=
20598           if test $use_additional = yes; then
20599             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20600               found_dir="$additional_libdir"
20601               found_so="$additional_libdir/lib$name.$shlibext"
20602               if test -f "$additional_libdir/lib$name.la"; then
20603                 found_la="$additional_libdir/lib$name.la"
20604               fi
20605             else
20606               if test -f "$additional_libdir/lib$name.$libext"; then
20607                 found_dir="$additional_libdir"
20608                 found_a="$additional_libdir/lib$name.$libext"
20609                 if test -f "$additional_libdir/lib$name.la"; then
20610                   found_la="$additional_libdir/lib$name.la"
20611                 fi
20612               fi
20613             fi
20614           fi
20615           if test "X$found_dir" = "X"; then
20616             for x in $LDFLAGS $LTLIBICONV; do
20618   acl_save_prefix="$prefix"
20619   prefix="$acl_final_prefix"
20620   acl_save_exec_prefix="$exec_prefix"
20621   exec_prefix="$acl_final_exec_prefix"
20622   eval x=\"$x\"
20623   exec_prefix="$acl_save_exec_prefix"
20624   prefix="$acl_save_prefix"
20626               case "$x" in
20627                 -L*)
20628                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20629                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20630                     found_dir="$dir"
20631                     found_so="$dir/lib$name.$shlibext"
20632                     if test -f "$dir/lib$name.la"; then
20633                       found_la="$dir/lib$name.la"
20634                     fi
20635                   else
20636                     if test -f "$dir/lib$name.$libext"; then
20637                       found_dir="$dir"
20638                       found_a="$dir/lib$name.$libext"
20639                       if test -f "$dir/lib$name.la"; then
20640                         found_la="$dir/lib$name.la"
20641                       fi
20642                     fi
20643                   fi
20644                   ;;
20645               esac
20646               if test "X$found_dir" != "X"; then
20647                 break
20648               fi
20649             done
20650           fi
20651           if test "X$found_dir" != "X"; then
20652                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20653             if test "X$found_so" != "X"; then
20654                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20655                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20656               else
20657                                                                                 haveit=
20658                 for x in $ltrpathdirs; do
20659                   if test "X$x" = "X$found_dir"; then
20660                     haveit=yes
20661                     break
20662                   fi
20663                 done
20664                 if test -z "$haveit"; then
20665                   ltrpathdirs="$ltrpathdirs $found_dir"
20666                 fi
20667                                 if test "$hardcode_direct" = yes; then
20668                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20669                 else
20670                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20671                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20672                                                             haveit=
20673                     for x in $rpathdirs; do
20674                       if test "X$x" = "X$found_dir"; then
20675                         haveit=yes
20676                         break
20677                       fi
20678                     done
20679                     if test -z "$haveit"; then
20680                       rpathdirs="$rpathdirs $found_dir"
20681                     fi
20682                   else
20683                                                                                 haveit=
20684                     for x in $LDFLAGS $LIBICONV; do
20686   acl_save_prefix="$prefix"
20687   prefix="$acl_final_prefix"
20688   acl_save_exec_prefix="$exec_prefix"
20689   exec_prefix="$acl_final_exec_prefix"
20690   eval x=\"$x\"
20691   exec_prefix="$acl_save_exec_prefix"
20692   prefix="$acl_save_prefix"
20694                       if test "X$x" = "X-L$found_dir"; then
20695                         haveit=yes
20696                         break
20697                       fi
20698                     done
20699                     if test -z "$haveit"; then
20700                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20701                     fi
20702                     if test "$hardcode_minus_L" != no; then
20703                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20704                     else
20705                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20706                     fi
20707                   fi
20708                 fi
20709               fi
20710             else
20711               if test "X$found_a" != "X"; then
20712                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20713               else
20714                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20715               fi
20716             fi
20717                         additional_includedir=
20718             case "$found_dir" in
20719               */lib | */lib/)
20720                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20721                 additional_includedir="$basedir/include"
20722                 ;;
20723             esac
20724             if test "X$additional_includedir" != "X"; then
20725                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20726                 haveit=
20727                 if test "X$additional_includedir" = "X/usr/local/include"; then
20728                   if test -n "$GCC"; then
20729                     case $host_os in
20730                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20731                     esac
20732                   fi
20733                 fi
20734                 if test -z "$haveit"; then
20735                   for x in $CPPFLAGS $INCICONV; do
20737   acl_save_prefix="$prefix"
20738   prefix="$acl_final_prefix"
20739   acl_save_exec_prefix="$exec_prefix"
20740   exec_prefix="$acl_final_exec_prefix"
20741   eval x=\"$x\"
20742   exec_prefix="$acl_save_exec_prefix"
20743   prefix="$acl_save_prefix"
20745                     if test "X$x" = "X-I$additional_includedir"; then
20746                       haveit=yes
20747                       break
20748                     fi
20749                   done
20750                   if test -z "$haveit"; then
20751                     if test -d "$additional_includedir"; then
20752                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20753                     fi
20754                   fi
20755                 fi
20756               fi
20757             fi
20758                         if test -n "$found_la"; then
20759                                                         save_libdir="$libdir"
20760               case "$found_la" in
20761                 */* | *\\*) . "$found_la" ;;
20762                 *) . "./$found_la" ;;
20763               esac
20764               libdir="$save_libdir"
20765                             for dep in $dependency_libs; do
20766                 case "$dep" in
20767                   -L*)
20768                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20769                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20770                       haveit=
20771                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20772                         if test -n "$GCC"; then
20773                           case $host_os in
20774                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20775                           esac
20776                         fi
20777                       fi
20778                       if test -z "$haveit"; then
20779                         haveit=
20780                         for x in $LDFLAGS $LIBICONV; do
20782   acl_save_prefix="$prefix"
20783   prefix="$acl_final_prefix"
20784   acl_save_exec_prefix="$exec_prefix"
20785   exec_prefix="$acl_final_exec_prefix"
20786   eval x=\"$x\"
20787   exec_prefix="$acl_save_exec_prefix"
20788   prefix="$acl_save_prefix"
20790                           if test "X$x" = "X-L$additional_libdir"; then
20791                             haveit=yes
20792                             break
20793                           fi
20794                         done
20795                         if test -z "$haveit"; then
20796                           if test -d "$additional_libdir"; then
20797                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20798                           fi
20799                         fi
20800                         haveit=
20801                         for x in $LDFLAGS $LTLIBICONV; do
20803   acl_save_prefix="$prefix"
20804   prefix="$acl_final_prefix"
20805   acl_save_exec_prefix="$exec_prefix"
20806   exec_prefix="$acl_final_exec_prefix"
20807   eval x=\"$x\"
20808   exec_prefix="$acl_save_exec_prefix"
20809   prefix="$acl_save_prefix"
20811                           if test "X$x" = "X-L$additional_libdir"; then
20812                             haveit=yes
20813                             break
20814                           fi
20815                         done
20816                         if test -z "$haveit"; then
20817                           if test -d "$additional_libdir"; then
20818                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20819                           fi
20820                         fi
20821                       fi
20822                     fi
20823                     ;;
20824                   -R*)
20825                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20826                     if test "$enable_rpath" != no; then
20827                                                                   haveit=
20828                       for x in $rpathdirs; do
20829                         if test "X$x" = "X$dir"; then
20830                           haveit=yes
20831                           break
20832                         fi
20833                       done
20834                       if test -z "$haveit"; then
20835                         rpathdirs="$rpathdirs $dir"
20836                       fi
20837                                                                   haveit=
20838                       for x in $ltrpathdirs; do
20839                         if test "X$x" = "X$dir"; then
20840                           haveit=yes
20841                           break
20842                         fi
20843                       done
20844                       if test -z "$haveit"; then
20845                         ltrpathdirs="$ltrpathdirs $dir"
20846                       fi
20847                     fi
20848                     ;;
20849                   -l*)
20850                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20851                     ;;
20852                   *.la)
20853                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20854                     ;;
20855                   *)
20856                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20857                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20858                     ;;
20859                 esac
20860               done
20861             fi
20862           else
20863                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20864             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20865           fi
20866         fi
20867       fi
20868     done
20869   done
20870   if test "X$rpathdirs" != "X"; then
20871     if test -n "$hardcode_libdir_separator"; then
20872                         alldirs=
20873       for found_dir in $rpathdirs; do
20874         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20875       done
20876             acl_save_libdir="$libdir"
20877       libdir="$alldirs"
20878       eval flag=\"$hardcode_libdir_flag_spec\"
20879       libdir="$acl_save_libdir"
20880       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20881     else
20882             for found_dir in $rpathdirs; do
20883         acl_save_libdir="$libdir"
20884         libdir="$found_dir"
20885         eval flag=\"$hardcode_libdir_flag_spec\"
20886         libdir="$acl_save_libdir"
20887         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20888       done
20889     fi
20890   fi
20891   if test "X$ltrpathdirs" != "X"; then
20892             for found_dir in $ltrpathdirs; do
20893       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20894     done
20895   fi
20904   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
20905 $as_echo_n "checking for ptrdiff_t... " >&6; }
20906 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
20907   $as_echo_n "(cached) " >&6
20908 else
20909   ac_cv_type_ptrdiff_t=no
20910 cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h.  */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h.  */
20916 $ac_includes_default
20917 int
20918 main ()
20920 if (sizeof (ptrdiff_t))
20921        return 0;
20922   ;
20923   return 0;
20925 _ACEOF
20926 rm -f conftest.$ac_objext
20927 if { (ac_try="$ac_compile"
20928 case "(($ac_try" in
20929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930   *) ac_try_echo=$ac_try;;
20931 esac
20932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20933 $as_echo "$ac_try_echo") >&5
20934   (eval "$ac_compile") 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } && {
20941          test -z "$ac_c_werror_flag" ||
20942          test ! -s conftest.err
20943        } && test -s conftest.$ac_objext; then
20944   cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 $ac_includes_default
20951 int
20952 main ()
20954 if (sizeof ((ptrdiff_t)))
20955           return 0;
20956   ;
20957   return 0;
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20967 $as_echo "$ac_try_echo") >&5
20968   (eval "$ac_compile") 2>conftest.er1
20969   ac_status=$?
20970   grep -v '^ *+' conftest.er1 >conftest.err
20971   rm -f conftest.er1
20972   cat conftest.err >&5
20973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } && {
20975          test -z "$ac_c_werror_flag" ||
20976          test ! -s conftest.err
20977        } && test -s conftest.$ac_objext; then
20978   :
20979 else
20980   $as_echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983         ac_cv_type_ptrdiff_t=yes
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987 else
20988   $as_echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
20997 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
20998 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
20999   :
21000 else
21002 cat >>confdefs.h <<\_ACEOF
21003 #define ptrdiff_t long
21004 _ACEOF
21019 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21020 stdlib.h string.h unistd.h sys/param.h
21022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21024   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21025 $as_echo_n "checking for $ac_header... " >&6; }
21026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21027   $as_echo_n "(cached) " >&6
21029 ac_res=`eval 'as_val=${'$as_ac_Header'}
21030                  $as_echo "$as_val"'`
21031                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21032 $as_echo "$ac_res" >&6; }
21033 else
21034   # Is the header compilable?
21035 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21036 $as_echo_n "checking $ac_header usability... " >&6; }
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 $ac_includes_default
21044 #include <$ac_header>
21045 _ACEOF
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21053 $as_echo "$ac_try_echo") >&5
21054   (eval "$ac_compile") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } && {
21061          test -z "$ac_c_werror_flag" ||
21062          test ! -s conftest.err
21063        } && test -s conftest.$ac_objext; then
21064   ac_header_compiler=yes
21065 else
21066   $as_echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069         ac_header_compiler=no
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21074 $as_echo "$ac_header_compiler" >&6; }
21076 # Is the header present?
21077 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21078 $as_echo_n "checking $ac_header presence... " >&6; }
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h.  */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h.  */
21085 #include <$ac_header>
21086 _ACEOF
21087 if { (ac_try="$ac_cpp conftest.$ac_ext"
21088 case "(($ac_try" in
21089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090   *) ac_try_echo=$ac_try;;
21091 esac
21092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21093 $as_echo "$ac_try_echo") >&5
21094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } >/dev/null && {
21101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21102          test ! -s conftest.err
21103        }; then
21104   ac_header_preproc=yes
21105 else
21106   $as_echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109   ac_header_preproc=no
21112 rm -f conftest.err conftest.$ac_ext
21113 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21114 $as_echo "$ac_header_preproc" >&6; }
21116 # So?  What about this header?
21117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21118   yes:no: )
21119     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21120 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21121     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21123     ac_header_preproc=yes
21124     ;;
21125   no:yes:* )
21126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21127 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21128     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21129 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21131 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21133 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21135 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21137 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21139     ;;
21140 esac
21141 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21142 $as_echo_n "checking for $ac_header... " >&6; }
21143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21144   $as_echo_n "(cached) " >&6
21145 else
21146   eval "$as_ac_Header=\$ac_header_preproc"
21148 ac_res=`eval 'as_val=${'$as_ac_Header'}
21149                  $as_echo "$as_val"'`
21150                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21151 $as_echo "$ac_res" >&6; }
21154 as_val=`eval 'as_val=${'$as_ac_Header'}
21155                  $as_echo "$as_val"'`
21156    if test "x$as_val" = x""yes; then
21157   cat >>confdefs.h <<_ACEOF
21158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21159 _ACEOF
21163 done
21188 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
21189 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
21190 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
21191 __fsetlocking
21193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21194 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21195 $as_echo_n "checking for $ac_func... " >&6; }
21196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21197   $as_echo_n "(cached) " >&6
21198 else
21199   cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h.  */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h.  */
21205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21207 #define $ac_func innocuous_$ac_func
21209 /* System header to define __stub macros and hopefully few prototypes,
21210     which can conflict with char $ac_func (); below.
21211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21212     <limits.h> exists even on freestanding compilers.  */
21214 #ifdef __STDC__
21215 # include <limits.h>
21216 #else
21217 # include <assert.h>
21218 #endif
21220 #undef $ac_func
21222 /* Override any GCC internal prototype to avoid an error.
21223    Use char because int might match the return type of a GCC
21224    builtin and then its argument prototype would still apply.  */
21225 #ifdef __cplusplus
21226 extern "C"
21227 #endif
21228 char $ac_func ();
21229 /* The GNU C library defines this for functions which it implements
21230     to always fail with ENOSYS.  Some functions are actually named
21231     something starting with __ and the normal name is an alias.  */
21232 #if defined __stub_$ac_func || defined __stub___$ac_func
21233 choke me
21234 #endif
21236 int
21237 main ()
21239 return $ac_func ();
21240   ;
21241   return 0;
21243 _ACEOF
21244 rm -f conftest.$ac_objext conftest$ac_exeext
21245 if { (ac_try="$ac_link"
21246 case "(($ac_try" in
21247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248   *) ac_try_echo=$ac_try;;
21249 esac
21250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21251 $as_echo "$ac_try_echo") >&5
21252   (eval "$ac_link") 2>conftest.er1
21253   ac_status=$?
21254   grep -v '^ *+' conftest.er1 >conftest.err
21255   rm -f conftest.er1
21256   cat conftest.err >&5
21257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); } && {
21259          test -z "$ac_c_werror_flag" ||
21260          test ! -s conftest.err
21261        } && test -s conftest$ac_exeext && {
21262          test "$cross_compiling" = yes ||
21263          $as_test_x conftest$ac_exeext
21264        }; then
21265   eval "$as_ac_var=yes"
21266 else
21267   $as_echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21270         eval "$as_ac_var=no"
21273 rm -rf conftest.dSYM
21274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21275       conftest$ac_exeext conftest.$ac_ext
21277 ac_res=`eval 'as_val=${'$as_ac_var'}
21278                  $as_echo "$as_val"'`
21279                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21280 $as_echo "$ac_res" >&6; }
21281 as_val=`eval 'as_val=${'$as_ac_var'}
21282                  $as_echo "$as_val"'`
21283    if test "x$as_val" = x""yes; then
21284   cat >>confdefs.h <<_ACEOF
21285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21286 _ACEOF
21289 done
21293   { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
21294 $as_echo_n "checking whether _snprintf is declared... " >&6; }
21295 if test "${ac_cv_have_decl__snprintf+set}" = set; then
21296   $as_echo_n "(cached) " >&6
21297 else
21298   cat >conftest.$ac_ext <<_ACEOF
21299 /* confdefs.h.  */
21300 _ACEOF
21301 cat confdefs.h >>conftest.$ac_ext
21302 cat >>conftest.$ac_ext <<_ACEOF
21303 /* end confdefs.h.  */
21304 #include <stdio.h>
21305 int
21306 main ()
21309 #ifndef _snprintf
21310   char *p = (char *) _snprintf;
21311 #endif
21313   ;
21314   return 0;
21316 _ACEOF
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321   *) ac_try_echo=$ac_try;;
21322 esac
21323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21324 $as_echo "$ac_try_echo") >&5
21325   (eval "$ac_compile") 2>conftest.er1
21326   ac_status=$?
21327   grep -v '^ *+' conftest.er1 >conftest.err
21328   rm -f conftest.er1
21329   cat conftest.err >&5
21330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); } && {
21332          test -z "$ac_c_werror_flag" ||
21333          test ! -s conftest.err
21334        } && test -s conftest.$ac_objext; then
21335   ac_cv_have_decl__snprintf=yes
21336 else
21337   $as_echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340         ac_cv_have_decl__snprintf=no
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
21346 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
21347   if test $ac_cv_have_decl__snprintf = yes; then
21348     gt_value=1
21349   else
21350     gt_value=0
21351   fi
21353 cat >>confdefs.h <<_ACEOF
21354 #define HAVE_DECL__SNPRINTF $gt_value
21355 _ACEOF
21359   { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
21360 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
21361 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
21362   $as_echo_n "(cached) " >&6
21363 else
21364   cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370 #include <stdio.h>
21371 int
21372 main ()
21375 #ifndef _snwprintf
21376   char *p = (char *) _snwprintf;
21377 #endif
21379   ;
21380   return 0;
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387   *) ac_try_echo=$ac_try;;
21388 esac
21389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21390 $as_echo "$ac_try_echo") >&5
21391   (eval "$ac_compile") 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } && {
21398          test -z "$ac_c_werror_flag" ||
21399          test ! -s conftest.err
21400        } && test -s conftest.$ac_objext; then
21401   ac_cv_have_decl__snwprintf=yes
21402 else
21403   $as_echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406         ac_cv_have_decl__snwprintf=no
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
21412 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
21413   if test $ac_cv_have_decl__snwprintf = yes; then
21414     gt_value=1
21415   else
21416     gt_value=0
21417   fi
21419 cat >>confdefs.h <<_ACEOF
21420 #define HAVE_DECL__SNWPRINTF $gt_value
21421 _ACEOF
21426   { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
21427 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
21428 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
21429   $as_echo_n "(cached) " >&6
21430 else
21431   cat >conftest.$ac_ext <<_ACEOF
21432 /* confdefs.h.  */
21433 _ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h.  */
21437 #include <stdio.h>
21438 int
21439 main ()
21442 #ifndef feof_unlocked
21443   char *p = (char *) feof_unlocked;
21444 #endif
21446   ;
21447   return 0;
21449 _ACEOF
21450 rm -f conftest.$ac_objext
21451 if { (ac_try="$ac_compile"
21452 case "(($ac_try" in
21453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454   *) ac_try_echo=$ac_try;;
21455 esac
21456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21457 $as_echo "$ac_try_echo") >&5
21458   (eval "$ac_compile") 2>conftest.er1
21459   ac_status=$?
21460   grep -v '^ *+' conftest.er1 >conftest.err
21461   rm -f conftest.er1
21462   cat conftest.err >&5
21463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); } && {
21465          test -z "$ac_c_werror_flag" ||
21466          test ! -s conftest.err
21467        } && test -s conftest.$ac_objext; then
21468   ac_cv_have_decl_feof_unlocked=yes
21469 else
21470   $as_echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473         ac_cv_have_decl_feof_unlocked=no
21476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21479 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
21480   if test $ac_cv_have_decl_feof_unlocked = yes; then
21481     gt_value=1
21482   else
21483     gt_value=0
21484   fi
21486 cat >>confdefs.h <<_ACEOF
21487 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
21488 _ACEOF
21492   { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
21493 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
21494 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
21495   $as_echo_n "(cached) " >&6
21496 else
21497   cat >conftest.$ac_ext <<_ACEOF
21498 /* confdefs.h.  */
21499 _ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h.  */
21503 #include <stdio.h>
21504 int
21505 main ()
21508 #ifndef fgets_unlocked
21509   char *p = (char *) fgets_unlocked;
21510 #endif
21512   ;
21513   return 0;
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21523 $as_echo "$ac_try_echo") >&5
21524   (eval "$ac_compile") 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } && {
21531          test -z "$ac_c_werror_flag" ||
21532          test ! -s conftest.err
21533        } && test -s conftest.$ac_objext; then
21534   ac_cv_have_decl_fgets_unlocked=yes
21535 else
21536   $as_echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539         ac_cv_have_decl_fgets_unlocked=no
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
21545 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
21546   if test $ac_cv_have_decl_fgets_unlocked = yes; then
21547     gt_value=1
21548   else
21549     gt_value=0
21550   fi
21552 cat >>confdefs.h <<_ACEOF
21553 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
21554 _ACEOF
21558   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
21559 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
21560 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
21561   $as_echo_n "(cached) " >&6
21562 else
21563   cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569 #include <stdio.h>
21570 int
21571 main ()
21574 #ifndef getc_unlocked
21575   char *p = (char *) getc_unlocked;
21576 #endif
21578   ;
21579   return 0;
21581 _ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (ac_try="$ac_compile"
21584 case "(($ac_try" in
21585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586   *) ac_try_echo=$ac_try;;
21587 esac
21588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21589 $as_echo "$ac_try_echo") >&5
21590   (eval "$ac_compile") 2>conftest.er1
21591   ac_status=$?
21592   grep -v '^ *+' conftest.er1 >conftest.err
21593   rm -f conftest.er1
21594   cat conftest.err >&5
21595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } && {
21597          test -z "$ac_c_werror_flag" ||
21598          test ! -s conftest.err
21599        } && test -s conftest.$ac_objext; then
21600   ac_cv_have_decl_getc_unlocked=yes
21601 else
21602   $as_echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605         ac_cv_have_decl_getc_unlocked=no
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
21611 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
21612   if test $ac_cv_have_decl_getc_unlocked = yes; then
21613     gt_value=1
21614   else
21615     gt_value=0
21616   fi
21618 cat >>confdefs.h <<_ACEOF
21619 #define HAVE_DECL_GETC_UNLOCKED $gt_value
21620 _ACEOF
21624   case $gt_cv_func_printf_posix in
21625     *yes) HAVE_POSIX_PRINTF=1 ;;
21626     *) HAVE_POSIX_PRINTF=0 ;;
21627   esac
21629   if test "$ac_cv_func_asprintf" = yes; then
21630     HAVE_ASPRINTF=1
21631   else
21632     HAVE_ASPRINTF=0
21633   fi
21635   if test "$ac_cv_func_snprintf" = yes; then
21636     HAVE_SNPRINTF=1
21637   else
21638     HAVE_SNPRINTF=0
21639   fi
21641   if test "$ac_cv_func_wprintf" = yes; then
21642     HAVE_WPRINTF=1
21643   else
21644     HAVE_WPRINTF=0
21645   fi
21653           am_save_CPPFLAGS="$CPPFLAGS"
21655   for element in $INCICONV; do
21656     haveit=
21657     for x in $CPPFLAGS; do
21659   acl_save_prefix="$prefix"
21660   prefix="$acl_final_prefix"
21661   acl_save_exec_prefix="$exec_prefix"
21662   exec_prefix="$acl_final_exec_prefix"
21663   eval x=\"$x\"
21664   exec_prefix="$acl_save_exec_prefix"
21665   prefix="$acl_save_prefix"
21667       if test "X$x" = "X$element"; then
21668         haveit=yes
21669         break
21670       fi
21671     done
21672     if test -z "$haveit"; then
21673       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21674     fi
21675   done
21678   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
21679 $as_echo_n "checking for iconv... " >&6; }
21680 if test "${am_cv_func_iconv+set}" = set; then
21681   $as_echo_n "(cached) " >&6
21682 else
21684     am_cv_func_iconv="no, consider installing GNU libiconv"
21685     am_cv_lib_iconv=no
21686     cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h.  */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h.  */
21692 #include <stdlib.h>
21693 #include <iconv.h>
21694 int
21695 main ()
21697 iconv_t cd = iconv_open("","");
21698        iconv(cd,NULL,NULL,NULL,NULL);
21699        iconv_close(cd);
21700   ;
21701   return 0;
21703 _ACEOF
21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708   *) ac_try_echo=$ac_try;;
21709 esac
21710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21711 $as_echo "$ac_try_echo") >&5
21712   (eval "$ac_link") 2>conftest.er1
21713   ac_status=$?
21714   grep -v '^ *+' conftest.er1 >conftest.err
21715   rm -f conftest.er1
21716   cat conftest.err >&5
21717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); } && {
21719          test -z "$ac_c_werror_flag" ||
21720          test ! -s conftest.err
21721        } && test -s conftest$ac_exeext && {
21722          test "$cross_compiling" = yes ||
21723          $as_test_x conftest$ac_exeext
21724        }; then
21725   am_cv_func_iconv=yes
21726 else
21727   $as_echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21733 rm -rf conftest.dSYM
21734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21735       conftest$ac_exeext conftest.$ac_ext
21736     if test "$am_cv_func_iconv" != yes; then
21737       am_save_LIBS="$LIBS"
21738       LIBS="$LIBS $LIBICONV"
21739       cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745 #include <stdlib.h>
21746 #include <iconv.h>
21747 int
21748 main ()
21750 iconv_t cd = iconv_open("","");
21751          iconv(cd,NULL,NULL,NULL,NULL);
21752          iconv_close(cd);
21753   ;
21754   return 0;
21756 _ACEOF
21757 rm -f conftest.$ac_objext conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761   *) ac_try_echo=$ac_try;;
21762 esac
21763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21764 $as_echo "$ac_try_echo") >&5
21765   (eval "$ac_link") 2>conftest.er1
21766   ac_status=$?
21767   grep -v '^ *+' conftest.er1 >conftest.err
21768   rm -f conftest.er1
21769   cat conftest.err >&5
21770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); } && {
21772          test -z "$ac_c_werror_flag" ||
21773          test ! -s conftest.err
21774        } && test -s conftest$ac_exeext && {
21775          test "$cross_compiling" = yes ||
21776          $as_test_x conftest$ac_exeext
21777        }; then
21778   am_cv_lib_iconv=yes
21779         am_cv_func_iconv=yes
21780 else
21781   $as_echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21787 rm -rf conftest.dSYM
21788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789       conftest$ac_exeext conftest.$ac_ext
21790       LIBS="$am_save_LIBS"
21791     fi
21794 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21795 $as_echo "$am_cv_func_iconv" >&6; }
21796   if test "$am_cv_func_iconv" = yes; then
21798 cat >>confdefs.h <<\_ACEOF
21799 #define HAVE_ICONV 1
21800 _ACEOF
21802   fi
21803   if test "$am_cv_lib_iconv" = yes; then
21804     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21805 $as_echo_n "checking how to link with libiconv... " >&6; }
21806     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
21807 $as_echo "$LIBICONV" >&6; }
21808   else
21809             CPPFLAGS="$am_save_CPPFLAGS"
21810     LIBICONV=
21811     LTLIBICONV=
21812   fi
21816   if test "$am_cv_func_iconv" = yes; then
21817     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
21818 $as_echo_n "checking for iconv declaration... " >&6; }
21819     if test "${am_cv_proto_iconv+set}" = set; then
21820   $as_echo_n "(cached) " >&6
21821 else
21823       cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h.  */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h.  */
21830 #include <stdlib.h>
21831 #include <iconv.h>
21832 extern
21833 #ifdef __cplusplus
21834 "C"
21835 #endif
21836 #if defined(__STDC__) || defined(__cplusplus)
21837 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21838 #else
21839 size_t iconv();
21840 #endif
21842 int
21843 main ()
21846   ;
21847   return 0;
21849 _ACEOF
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21857 $as_echo "$ac_try_echo") >&5
21858   (eval "$ac_compile") 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } && {
21865          test -z "$ac_c_werror_flag" ||
21866          test ! -s conftest.err
21867        } && test -s conftest.$ac_objext; then
21868   am_cv_proto_iconv_arg1=""
21869 else
21870   $as_echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873         am_cv_proto_iconv_arg1="const"
21876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
21880     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21881     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
21882          }$am_cv_proto_iconv" >&5
21883 $as_echo "${ac_t:-
21884          }$am_cv_proto_iconv" >&6; }
21886 cat >>confdefs.h <<_ACEOF
21887 #define ICONV_CONST $am_cv_proto_iconv_arg1
21888 _ACEOF
21890   fi
21893   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21894 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
21895 if test "${am_cv_langinfo_codeset+set}" = set; then
21896   $as_echo_n "(cached) " >&6
21897 else
21898   cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h.  */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h.  */
21904 #include <langinfo.h>
21905 int
21906 main ()
21908 char* cs = nl_langinfo(CODESET);
21909   ;
21910   return 0;
21912 _ACEOF
21913 rm -f conftest.$ac_objext conftest$ac_exeext
21914 if { (ac_try="$ac_link"
21915 case "(($ac_try" in
21916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917   *) ac_try_echo=$ac_try;;
21918 esac
21919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21920 $as_echo "$ac_try_echo") >&5
21921   (eval "$ac_link") 2>conftest.er1
21922   ac_status=$?
21923   grep -v '^ *+' conftest.er1 >conftest.err
21924   rm -f conftest.er1
21925   cat conftest.err >&5
21926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); } && {
21928          test -z "$ac_c_werror_flag" ||
21929          test ! -s conftest.err
21930        } && test -s conftest$ac_exeext && {
21931          test "$cross_compiling" = yes ||
21932          $as_test_x conftest$ac_exeext
21933        }; then
21934   am_cv_langinfo_codeset=yes
21935 else
21936   $as_echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939         am_cv_langinfo_codeset=no
21942 rm -rf conftest.dSYM
21943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21944       conftest$ac_exeext conftest.$ac_ext
21947 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
21948 $as_echo "$am_cv_langinfo_codeset" >&6; }
21949   if test $am_cv_langinfo_codeset = yes; then
21951 cat >>confdefs.h <<\_ACEOF
21952 #define HAVE_LANGINFO_CODESET 1
21953 _ACEOF
21955   fi
21957   if test $ac_cv_header_locale_h = yes; then
21959   { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
21960 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21961 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
21962   $as_echo_n "(cached) " >&6
21963 else
21964   cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970 #include <locale.h>
21971 int
21972 main ()
21974 return LC_MESSAGES
21975   ;
21976   return 0;
21978 _ACEOF
21979 rm -f conftest.$ac_objext conftest$ac_exeext
21980 if { (ac_try="$ac_link"
21981 case "(($ac_try" in
21982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983   *) ac_try_echo=$ac_try;;
21984 esac
21985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21986 $as_echo "$ac_try_echo") >&5
21987   (eval "$ac_link") 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } && {
21994          test -z "$ac_c_werror_flag" ||
21995          test ! -s conftest.err
21996        } && test -s conftest$ac_exeext && {
21997          test "$cross_compiling" = yes ||
21998          $as_test_x conftest$ac_exeext
21999        }; then
22000   gt_cv_val_LC_MESSAGES=yes
22001 else
22002   $as_echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22005         gt_cv_val_LC_MESSAGES=no
22008 rm -rf conftest.dSYM
22009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22010       conftest$ac_exeext conftest.$ac_ext
22012 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22013 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
22014   if test $gt_cv_val_LC_MESSAGES = yes; then
22016 cat >>confdefs.h <<\_ACEOF
22017 #define HAVE_LC_MESSAGES 1
22018 _ACEOF
22020   fi
22022   fi
22024   if test -n "$INTL_MACOSX_LIBS"; then
22025     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22026   fi
22028                       for ac_prog in bison
22030   # Extract the first word of "$ac_prog", so it can be a program name with args.
22031 set dummy $ac_prog; ac_word=$2
22032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22033 $as_echo_n "checking for $ac_word... " >&6; }
22034 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22035   $as_echo_n "(cached) " >&6
22036 else
22037   if test -n "$INTLBISON"; then
22038   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22039 else
22040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22041 for as_dir in $PATH
22043   IFS=$as_save_IFS
22044   test -z "$as_dir" && as_dir=.
22045   for ac_exec_ext in '' $ac_executable_extensions; do
22046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22047     ac_cv_prog_INTLBISON="$ac_prog"
22048     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22049     break 2
22050   fi
22051 done
22052 done
22053 IFS=$as_save_IFS
22057 INTLBISON=$ac_cv_prog_INTLBISON
22058 if test -n "$INTLBISON"; then
22059   { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
22060 $as_echo "$INTLBISON" >&6; }
22061 else
22062   { $as_echo "$as_me:$LINENO: result: no" >&5
22063 $as_echo "no" >&6; }
22067   test -n "$INTLBISON" && break
22068 done
22070   if test -z "$INTLBISON"; then
22071     ac_verc_fail=yes
22072   else
22073         { $as_echo "$as_me:$LINENO: checking version of bison" >&5
22074 $as_echo_n "checking version of bison... " >&6; }
22075     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22076     case $ac_prog_version in
22077       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22078       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
22079          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22080       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22081     esac
22082     { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
22083 $as_echo "$ac_prog_version" >&6; }
22084   fi
22085   if test $ac_verc_fail = yes; then
22086     INTLBISON=:
22087   fi
22104     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
22105 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
22106 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
22107   $as_echo_n "(cached) " >&6
22108 else
22109   gt_save_CPPFLAGS="$CPPFLAGS"
22110      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22111      gt_save_LIBS="$LIBS"
22112      LIBS="$LIBS -framework CoreFoundation"
22113      cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h.  */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h.  */
22119 #include <CFPreferences.h>
22120 int
22121 main ()
22123 CFPreferencesCopyAppValue(NULL, NULL)
22124   ;
22125   return 0;
22127 _ACEOF
22128 rm -f conftest.$ac_objext conftest$ac_exeext
22129 if { (ac_try="$ac_link"
22130 case "(($ac_try" in
22131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132   *) ac_try_echo=$ac_try;;
22133 esac
22134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22135 $as_echo "$ac_try_echo") >&5
22136   (eval "$ac_link") 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } && {
22143          test -z "$ac_c_werror_flag" ||
22144          test ! -s conftest.err
22145        } && test -s conftest$ac_exeext && {
22146          test "$cross_compiling" = yes ||
22147          $as_test_x conftest$ac_exeext
22148        }; then
22149   gt_cv_func_CFPreferencesCopyAppValue=yes
22150 else
22151   $as_echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154         gt_cv_func_CFPreferencesCopyAppValue=no
22157 rm -rf conftest.dSYM
22158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22159       conftest$ac_exeext conftest.$ac_ext
22160      CPPFLAGS="$gt_save_CPPFLAGS"
22161      LIBS="$gt_save_LIBS"
22163 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22164 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22165   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
22169 _ACEOF
22171   fi
22172     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
22173 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
22174 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
22175   $as_echo_n "(cached) " >&6
22176 else
22177   gt_save_CPPFLAGS="$CPPFLAGS"
22178      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22179      gt_save_LIBS="$LIBS"
22180      LIBS="$LIBS -framework CoreFoundation"
22181      cat >conftest.$ac_ext <<_ACEOF
22182 /* confdefs.h.  */
22183 _ACEOF
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h.  */
22187 #include <CFLocale.h>
22188 int
22189 main ()
22191 CFLocaleCopyCurrent();
22192   ;
22193   return 0;
22195 _ACEOF
22196 rm -f conftest.$ac_objext conftest$ac_exeext
22197 if { (ac_try="$ac_link"
22198 case "(($ac_try" in
22199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200   *) ac_try_echo=$ac_try;;
22201 esac
22202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22203 $as_echo "$ac_try_echo") >&5
22204   (eval "$ac_link") 2>conftest.er1
22205   ac_status=$?
22206   grep -v '^ *+' conftest.er1 >conftest.err
22207   rm -f conftest.er1
22208   cat conftest.err >&5
22209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); } && {
22211          test -z "$ac_c_werror_flag" ||
22212          test ! -s conftest.err
22213        } && test -s conftest$ac_exeext && {
22214          test "$cross_compiling" = yes ||
22215          $as_test_x conftest$ac_exeext
22216        }; then
22217   gt_cv_func_CFLocaleCopyCurrent=yes
22218 else
22219   $as_echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22222         gt_cv_func_CFLocaleCopyCurrent=no
22225 rm -rf conftest.dSYM
22226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22227       conftest$ac_exeext conftest.$ac_ext
22228      CPPFLAGS="$gt_save_CPPFLAGS"
22229      LIBS="$gt_save_LIBS"
22231 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22232 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22233   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22235 cat >>confdefs.h <<\_ACEOF
22236 #define HAVE_CFLOCALECOPYCURRENT 1
22237 _ACEOF
22239   fi
22240   INTL_MACOSX_LIBS=
22241   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22242     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22243   fi
22248   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22249 $as_echo_n "checking whether NLS is requested... " >&6; }
22250     # Check whether --enable-nls was given.
22251 if test "${enable_nls+set}" = set; then
22252   enableval=$enable_nls; USE_NLS=$enableval
22253 else
22254   USE_NLS=yes
22257   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
22258 $as_echo "$USE_NLS" >&6; }
22263     BUILD_INCLUDED_LIBINTL=no
22264     USE_INCLUDED_LIBINTL=no
22266   LIBINTL=
22267   LTLIBINTL=
22268   POSUB=
22270     if test "$USE_NLS" = "yes"; then
22271     gt_use_preinstalled_gnugettext=no
22273       { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
22274 $as_echo_n "checking whether included gettext is requested... " >&6; }
22276 # Check whether --with-included-gettext was given.
22277 if test "${with_included_gettext+set}" = set; then
22278   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
22279 else
22280   nls_cv_force_use_gnu_gettext=no
22283       { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
22284 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
22286       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
22287       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
22294         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22295 $as_echo_n "checking for GNU gettext in libc... " >&6; }
22296 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
22297   $as_echo_n "(cached) " >&6
22298 else
22299   cat >conftest.$ac_ext <<_ACEOF
22300 /* confdefs.h.  */
22301 _ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h.  */
22305 #include <libintl.h>
22306 extern int _nl_msg_cat_cntr;
22307 extern int *_nl_domain_bindings;
22308 int
22309 main ()
22311 bindtextdomain ("", "");
22312 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
22313   ;
22314   return 0;
22316 _ACEOF
22317 rm -f conftest.$ac_objext conftest$ac_exeext
22318 if { (ac_try="$ac_link"
22319 case "(($ac_try" in
22320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321   *) ac_try_echo=$ac_try;;
22322 esac
22323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22324 $as_echo "$ac_try_echo") >&5
22325   (eval "$ac_link") 2>conftest.er1
22326   ac_status=$?
22327   grep -v '^ *+' conftest.er1 >conftest.err
22328   rm -f conftest.er1
22329   cat conftest.err >&5
22330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); } && {
22332          test -z "$ac_c_werror_flag" ||
22333          test ! -s conftest.err
22334        } && test -s conftest$ac_exeext && {
22335          test "$cross_compiling" = yes ||
22336          $as_test_x conftest$ac_exeext
22337        }; then
22338   gt_cv_func_gnugettext1_libc=yes
22339 else
22340   $as_echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343         gt_cv_func_gnugettext1_libc=no
22346 rm -rf conftest.dSYM
22347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22348       conftest$ac_exeext conftest.$ac_ext
22350 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
22351 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
22353         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
22357     use_additional=yes
22359   acl_save_prefix="$prefix"
22360   prefix="$acl_final_prefix"
22361   acl_save_exec_prefix="$exec_prefix"
22362   exec_prefix="$acl_final_exec_prefix"
22364     eval additional_includedir=\"$includedir\"
22365     eval additional_libdir=\"$libdir\"
22367   exec_prefix="$acl_save_exec_prefix"
22368   prefix="$acl_save_prefix"
22371 # Check whether --with-libintl-prefix was given.
22372 if test "${with_libintl_prefix+set}" = set; then
22373   withval=$with_libintl_prefix;
22374     if test "X$withval" = "Xno"; then
22375       use_additional=no
22376     else
22377       if test "X$withval" = "X"; then
22379   acl_save_prefix="$prefix"
22380   prefix="$acl_final_prefix"
22381   acl_save_exec_prefix="$exec_prefix"
22382   exec_prefix="$acl_final_exec_prefix"
22384           eval additional_includedir=\"$includedir\"
22385           eval additional_libdir=\"$libdir\"
22387   exec_prefix="$acl_save_exec_prefix"
22388   prefix="$acl_save_prefix"
22390       else
22391         additional_includedir="$withval/include"
22392         additional_libdir="$withval/lib"
22393       fi
22394     fi
22398       LIBINTL=
22399   LTLIBINTL=
22400   INCINTL=
22401   rpathdirs=
22402   ltrpathdirs=
22403   names_already_handled=
22404   names_next_round='intl '
22405   while test -n "$names_next_round"; do
22406     names_this_round="$names_next_round"
22407     names_next_round=
22408     for name in $names_this_round; do
22409       already_handled=
22410       for n in $names_already_handled; do
22411         if test "$n" = "$name"; then
22412           already_handled=yes
22413           break
22414         fi
22415       done
22416       if test -z "$already_handled"; then
22417         names_already_handled="$names_already_handled $name"
22418                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22419         eval value=\"\$HAVE_LIB$uppername\"
22420         if test -n "$value"; then
22421           if test "$value" = yes; then
22422             eval value=\"\$LIB$uppername\"
22423             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
22424             eval value=\"\$LTLIB$uppername\"
22425             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
22426           else
22427                                     :
22428           fi
22429         else
22430                               found_dir=
22431           found_la=
22432           found_so=
22433           found_a=
22434           if test $use_additional = yes; then
22435             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22436               found_dir="$additional_libdir"
22437               found_so="$additional_libdir/lib$name.$shlibext"
22438               if test -f "$additional_libdir/lib$name.la"; then
22439                 found_la="$additional_libdir/lib$name.la"
22440               fi
22441             else
22442               if test -f "$additional_libdir/lib$name.$libext"; then
22443                 found_dir="$additional_libdir"
22444                 found_a="$additional_libdir/lib$name.$libext"
22445                 if test -f "$additional_libdir/lib$name.la"; then
22446                   found_la="$additional_libdir/lib$name.la"
22447                 fi
22448               fi
22449             fi
22450           fi
22451           if test "X$found_dir" = "X"; then
22452             for x in $LDFLAGS $LTLIBINTL; do
22454   acl_save_prefix="$prefix"
22455   prefix="$acl_final_prefix"
22456   acl_save_exec_prefix="$exec_prefix"
22457   exec_prefix="$acl_final_exec_prefix"
22458   eval x=\"$x\"
22459   exec_prefix="$acl_save_exec_prefix"
22460   prefix="$acl_save_prefix"
22462               case "$x" in
22463                 -L*)
22464                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22465                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22466                     found_dir="$dir"
22467                     found_so="$dir/lib$name.$shlibext"
22468                     if test -f "$dir/lib$name.la"; then
22469                       found_la="$dir/lib$name.la"
22470                     fi
22471                   else
22472                     if test -f "$dir/lib$name.$libext"; then
22473                       found_dir="$dir"
22474                       found_a="$dir/lib$name.$libext"
22475                       if test -f "$dir/lib$name.la"; then
22476                         found_la="$dir/lib$name.la"
22477                       fi
22478                     fi
22479                   fi
22480                   ;;
22481               esac
22482               if test "X$found_dir" != "X"; then
22483                 break
22484               fi
22485             done
22486           fi
22487           if test "X$found_dir" != "X"; then
22488                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
22489             if test "X$found_so" != "X"; then
22490                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22491                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22492               else
22493                                                                                 haveit=
22494                 for x in $ltrpathdirs; do
22495                   if test "X$x" = "X$found_dir"; then
22496                     haveit=yes
22497                     break
22498                   fi
22499                 done
22500                 if test -z "$haveit"; then
22501                   ltrpathdirs="$ltrpathdirs $found_dir"
22502                 fi
22503                                 if test "$hardcode_direct" = yes; then
22504                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22505                 else
22506                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22507                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22508                                                             haveit=
22509                     for x in $rpathdirs; do
22510                       if test "X$x" = "X$found_dir"; then
22511                         haveit=yes
22512                         break
22513                       fi
22514                     done
22515                     if test -z "$haveit"; then
22516                       rpathdirs="$rpathdirs $found_dir"
22517                     fi
22518                   else
22519                                                                                 haveit=
22520                     for x in $LDFLAGS $LIBINTL; do
22522   acl_save_prefix="$prefix"
22523   prefix="$acl_final_prefix"
22524   acl_save_exec_prefix="$exec_prefix"
22525   exec_prefix="$acl_final_exec_prefix"
22526   eval x=\"$x\"
22527   exec_prefix="$acl_save_exec_prefix"
22528   prefix="$acl_save_prefix"
22530                       if test "X$x" = "X-L$found_dir"; then
22531                         haveit=yes
22532                         break
22533                       fi
22534                     done
22535                     if test -z "$haveit"; then
22536                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
22537                     fi
22538                     if test "$hardcode_minus_L" != no; then
22539                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22540                     else
22541                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22542                     fi
22543                   fi
22544                 fi
22545               fi
22546             else
22547               if test "X$found_a" != "X"; then
22548                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
22549               else
22550                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
22551               fi
22552             fi
22553                         additional_includedir=
22554             case "$found_dir" in
22555               */lib | */lib/)
22556                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22557                 additional_includedir="$basedir/include"
22558                 ;;
22559             esac
22560             if test "X$additional_includedir" != "X"; then
22561                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22562                 haveit=
22563                 if test "X$additional_includedir" = "X/usr/local/include"; then
22564                   if test -n "$GCC"; then
22565                     case $host_os in
22566                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22567                     esac
22568                   fi
22569                 fi
22570                 if test -z "$haveit"; then
22571                   for x in $CPPFLAGS $INCINTL; do
22573   acl_save_prefix="$prefix"
22574   prefix="$acl_final_prefix"
22575   acl_save_exec_prefix="$exec_prefix"
22576   exec_prefix="$acl_final_exec_prefix"
22577   eval x=\"$x\"
22578   exec_prefix="$acl_save_exec_prefix"
22579   prefix="$acl_save_prefix"
22581                     if test "X$x" = "X-I$additional_includedir"; then
22582                       haveit=yes
22583                       break
22584                     fi
22585                   done
22586                   if test -z "$haveit"; then
22587                     if test -d "$additional_includedir"; then
22588                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
22589                     fi
22590                   fi
22591                 fi
22592               fi
22593             fi
22594                         if test -n "$found_la"; then
22595                                                         save_libdir="$libdir"
22596               case "$found_la" in
22597                 */* | *\\*) . "$found_la" ;;
22598                 *) . "./$found_la" ;;
22599               esac
22600               libdir="$save_libdir"
22601                             for dep in $dependency_libs; do
22602                 case "$dep" in
22603                   -L*)
22604                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22605                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22606                       haveit=
22607                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22608                         if test -n "$GCC"; then
22609                           case $host_os in
22610                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22611                           esac
22612                         fi
22613                       fi
22614                       if test -z "$haveit"; then
22615                         haveit=
22616                         for x in $LDFLAGS $LIBINTL; do
22618   acl_save_prefix="$prefix"
22619   prefix="$acl_final_prefix"
22620   acl_save_exec_prefix="$exec_prefix"
22621   exec_prefix="$acl_final_exec_prefix"
22622   eval x=\"$x\"
22623   exec_prefix="$acl_save_exec_prefix"
22624   prefix="$acl_save_prefix"
22626                           if test "X$x" = "X-L$additional_libdir"; then
22627                             haveit=yes
22628                             break
22629                           fi
22630                         done
22631                         if test -z "$haveit"; then
22632                           if test -d "$additional_libdir"; then
22633                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22634                           fi
22635                         fi
22636                         haveit=
22637                         for x in $LDFLAGS $LTLIBINTL; do
22639   acl_save_prefix="$prefix"
22640   prefix="$acl_final_prefix"
22641   acl_save_exec_prefix="$exec_prefix"
22642   exec_prefix="$acl_final_exec_prefix"
22643   eval x=\"$x\"
22644   exec_prefix="$acl_save_exec_prefix"
22645   prefix="$acl_save_prefix"
22647                           if test "X$x" = "X-L$additional_libdir"; then
22648                             haveit=yes
22649                             break
22650                           fi
22651                         done
22652                         if test -z "$haveit"; then
22653                           if test -d "$additional_libdir"; then
22654                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22655                           fi
22656                         fi
22657                       fi
22658                     fi
22659                     ;;
22660                   -R*)
22661                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22662                     if test "$enable_rpath" != no; then
22663                                                                   haveit=
22664                       for x in $rpathdirs; do
22665                         if test "X$x" = "X$dir"; then
22666                           haveit=yes
22667                           break
22668                         fi
22669                       done
22670                       if test -z "$haveit"; then
22671                         rpathdirs="$rpathdirs $dir"
22672                       fi
22673                                                                   haveit=
22674                       for x in $ltrpathdirs; do
22675                         if test "X$x" = "X$dir"; then
22676                           haveit=yes
22677                           break
22678                         fi
22679                       done
22680                       if test -z "$haveit"; then
22681                         ltrpathdirs="$ltrpathdirs $dir"
22682                       fi
22683                     fi
22684                     ;;
22685                   -l*)
22686                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22687                     ;;
22688                   *.la)
22689                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22690                     ;;
22691                   *)
22692                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22693                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22694                     ;;
22695                 esac
22696               done
22697             fi
22698           else
22699                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22700             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22701           fi
22702         fi
22703       fi
22704     done
22705   done
22706   if test "X$rpathdirs" != "X"; then
22707     if test -n "$hardcode_libdir_separator"; then
22708                         alldirs=
22709       for found_dir in $rpathdirs; do
22710         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22711       done
22712             acl_save_libdir="$libdir"
22713       libdir="$alldirs"
22714       eval flag=\"$hardcode_libdir_flag_spec\"
22715       libdir="$acl_save_libdir"
22716       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22717     else
22718             for found_dir in $rpathdirs; do
22719         acl_save_libdir="$libdir"
22720         libdir="$found_dir"
22721         eval flag=\"$hardcode_libdir_flag_spec\"
22722         libdir="$acl_save_libdir"
22723         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22724       done
22725     fi
22726   fi
22727   if test "X$ltrpathdirs" != "X"; then
22728             for found_dir in $ltrpathdirs; do
22729       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22730     done
22731   fi
22733           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
22734 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
22735 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
22736   $as_echo_n "(cached) " >&6
22737 else
22738   gt_save_CPPFLAGS="$CPPFLAGS"
22739             CPPFLAGS="$CPPFLAGS $INCINTL"
22740             gt_save_LIBS="$LIBS"
22741             LIBS="$LIBS $LIBINTL"
22742                         cat >conftest.$ac_ext <<_ACEOF
22743 /* confdefs.h.  */
22744 _ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h.  */
22748 #include <libintl.h>
22749 extern int _nl_msg_cat_cntr;
22750 extern
22751 #ifdef __cplusplus
22752 "C"
22753 #endif
22754 const char *_nl_expand_alias (const char *);
22755 int
22756 main ()
22758 bindtextdomain ("", "");
22759 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22760   ;
22761   return 0;
22763 _ACEOF
22764 rm -f conftest.$ac_objext conftest$ac_exeext
22765 if { (ac_try="$ac_link"
22766 case "(($ac_try" in
22767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768   *) ac_try_echo=$ac_try;;
22769 esac
22770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22771 $as_echo "$ac_try_echo") >&5
22772   (eval "$ac_link") 2>conftest.er1
22773   ac_status=$?
22774   grep -v '^ *+' conftest.er1 >conftest.err
22775   rm -f conftest.er1
22776   cat conftest.err >&5
22777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); } && {
22779          test -z "$ac_c_werror_flag" ||
22780          test ! -s conftest.err
22781        } && test -s conftest$ac_exeext && {
22782          test "$cross_compiling" = yes ||
22783          $as_test_x conftest$ac_exeext
22784        }; then
22785   gt_cv_func_gnugettext1_libintl=yes
22786 else
22787   $as_echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22790         gt_cv_func_gnugettext1_libintl=no
22793 rm -rf conftest.dSYM
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795       conftest$ac_exeext conftest.$ac_ext
22796                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
22797               LIBS="$LIBS $LIBICONV"
22798               cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h.  */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h.  */
22804 #include <libintl.h>
22805 extern int _nl_msg_cat_cntr;
22806 extern
22807 #ifdef __cplusplus
22808 "C"
22809 #endif
22810 const char *_nl_expand_alias (const char *);
22811 int
22812 main ()
22814 bindtextdomain ("", "");
22815 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22816   ;
22817   return 0;
22819 _ACEOF
22820 rm -f conftest.$ac_objext conftest$ac_exeext
22821 if { (ac_try="$ac_link"
22822 case "(($ac_try" in
22823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824   *) ac_try_echo=$ac_try;;
22825 esac
22826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828   (eval "$ac_link") 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } && {
22835          test -z "$ac_c_werror_flag" ||
22836          test ! -s conftest.err
22837        } && test -s conftest$ac_exeext && {
22838          test "$cross_compiling" = yes ||
22839          $as_test_x conftest$ac_exeext
22840        }; then
22841   LIBINTL="$LIBINTL $LIBICONV"
22842                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22843                 gt_cv_func_gnugettext1_libintl=yes
22845 else
22846   $as_echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22852 rm -rf conftest.dSYM
22853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22854       conftest$ac_exeext conftest.$ac_ext
22855             fi
22856             CPPFLAGS="$gt_save_CPPFLAGS"
22857             LIBS="$gt_save_LIBS"
22859 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
22860 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
22861         fi
22863                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
22864            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
22865                 && test "$PACKAGE" != gettext-runtime \
22866                 && test "$PACKAGE" != gettext-tools; }; then
22867           gt_use_preinstalled_gnugettext=yes
22868         else
22869                     LIBINTL=
22870           LTLIBINTL=
22871           INCINTL=
22872         fi
22875         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
22876                               nls_cv_use_gnu_gettext=yes
22877         fi
22878       fi
22880       if test "$nls_cv_use_gnu_gettext" = "yes"; then
22881                 BUILD_INCLUDED_LIBINTL=yes
22882         USE_INCLUDED_LIBINTL=yes
22883         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
22884         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
22885         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
22886       fi
22888       CATOBJEXT=
22889       if test "$gt_use_preinstalled_gnugettext" = "yes" \
22890          || test "$nls_cv_use_gnu_gettext" = "yes"; then
22891                 CATOBJEXT=.gmo
22892       fi
22895     if test -n "$INTL_MACOSX_LIBS"; then
22896       if test "$gt_use_preinstalled_gnugettext" = "yes" \
22897          || test "$nls_cv_use_gnu_gettext" = "yes"; then
22898                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
22899         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
22900       fi
22901     fi
22903     if test "$gt_use_preinstalled_gnugettext" = "yes" \
22904        || test "$nls_cv_use_gnu_gettext" = "yes"; then
22906 cat >>confdefs.h <<\_ACEOF
22907 #define ENABLE_NLS 1
22908 _ACEOF
22910     else
22911       USE_NLS=no
22912     fi
22913   fi
22915   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
22916 $as_echo_n "checking whether to use NLS... " >&6; }
22917   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
22918 $as_echo "$USE_NLS" >&6; }
22919   if test "$USE_NLS" = "yes"; then
22920     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22921 $as_echo_n "checking where the gettext function comes from... " >&6; }
22922     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22923       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22924         gt_source="external libintl"
22925       else
22926         gt_source="libc"
22927       fi
22928     else
22929       gt_source="included intl directory"
22930     fi
22931     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
22932 $as_echo "$gt_source" >&6; }
22933   fi
22935   if test "$USE_NLS" = "yes"; then
22937     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22938       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22939         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
22940 $as_echo_n "checking how to link with libintl... " >&6; }
22941         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
22942 $as_echo "$LIBINTL" >&6; }
22944   for element in $INCINTL; do
22945     haveit=
22946     for x in $CPPFLAGS; do
22948   acl_save_prefix="$prefix"
22949   prefix="$acl_final_prefix"
22950   acl_save_exec_prefix="$exec_prefix"
22951   exec_prefix="$acl_final_exec_prefix"
22952   eval x=\"$x\"
22953   exec_prefix="$acl_save_exec_prefix"
22954   prefix="$acl_save_prefix"
22956       if test "X$x" = "X$element"; then
22957         haveit=yes
22958         break
22959       fi
22960     done
22961     if test -z "$haveit"; then
22962       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22963     fi
22964   done
22966       fi
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_GETTEXT 1
22971 _ACEOF
22974 cat >>confdefs.h <<\_ACEOF
22975 #define HAVE_DCGETTEXT 1
22976 _ACEOF
22978     fi
22980         POSUB=po
22981   fi
22984             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
22985       BUILD_INCLUDED_LIBINTL=yes
22986     fi
22992         nls_cv_header_intl=
22993     nls_cv_header_libgt=
22995         DATADIRNAME=share
22998         INSTOBJEXT=.mo
23001         GENCAT=gencat
23004         INTLOBJS=
23005     if test "$USE_INCLUDED_LIBINTL" = yes; then
23006       INTLOBJS="\$(GETTOBJS)"
23007     fi
23010         INTL_LIBTOOL_SUFFIX_PREFIX=
23014     INTLLIBS="$LIBINTL"
23023 case $TERM in
23024        #   for the most important terminal types we directly know the sequences
23025        xterm|xterm*|vt220|vt220*)
23026                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
23027                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
23028        ;;
23029        vt100|vt100*|cygwin)
23030                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
23031                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
23032        ;;
23033        *)
23034                T_MD=''
23035                T_ME=''
23036        ;;
23037 esac
23038   { $as_echo "$as_me:$LINENO: result: " >&5
23039 $as_echo "" >&6; }
23040   { $as_echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
23041 $as_echo "${T_MD}IEEE Math Checks${T_ME}" >&6; }
23046 for ac_func in fpclassify
23048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23049 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23050 $as_echo_n "checking for $ac_func... " >&6; }
23051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23052   $as_echo_n "(cached) " >&6
23053 else
23054   cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h.  */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h.  */
23060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23062 #define $ac_func innocuous_$ac_func
23064 /* System header to define __stub macros and hopefully few prototypes,
23065     which can conflict with char $ac_func (); below.
23066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23067     <limits.h> exists even on freestanding compilers.  */
23069 #ifdef __STDC__
23070 # include <limits.h>
23071 #else
23072 # include <assert.h>
23073 #endif
23075 #undef $ac_func
23077 /* Override any GCC internal prototype to avoid an error.
23078    Use char because int might match the return type of a GCC
23079    builtin and then its argument prototype would still apply.  */
23080 #ifdef __cplusplus
23081 extern "C"
23082 #endif
23083 char $ac_func ();
23084 /* The GNU C library defines this for functions which it implements
23085     to always fail with ENOSYS.  Some functions are actually named
23086     something starting with __ and the normal name is an alias.  */
23087 #if defined __stub_$ac_func || defined __stub___$ac_func
23088 choke me
23089 #endif
23091 int
23092 main ()
23094 return $ac_func ();
23095   ;
23096   return 0;
23098 _ACEOF
23099 rm -f conftest.$ac_objext conftest$ac_exeext
23100 if { (ac_try="$ac_link"
23101 case "(($ac_try" in
23102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103   *) ac_try_echo=$ac_try;;
23104 esac
23105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23106 $as_echo "$ac_try_echo") >&5
23107   (eval "$ac_link") 2>conftest.er1
23108   ac_status=$?
23109   grep -v '^ *+' conftest.er1 >conftest.err
23110   rm -f conftest.er1
23111   cat conftest.err >&5
23112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113   (exit $ac_status); } && {
23114          test -z "$ac_c_werror_flag" ||
23115          test ! -s conftest.err
23116        } && test -s conftest$ac_exeext && {
23117          test "$cross_compiling" = yes ||
23118          $as_test_x conftest$ac_exeext
23119        }; then
23120   eval "$as_ac_var=yes"
23121 else
23122   $as_echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125         eval "$as_ac_var=no"
23128 rm -rf conftest.dSYM
23129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23130       conftest$ac_exeext conftest.$ac_ext
23132 ac_res=`eval 'as_val=${'$as_ac_var'}
23133                  $as_echo "$as_val"'`
23134                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23135 $as_echo "$ac_res" >&6; }
23136 as_val=`eval 'as_val=${'$as_ac_var'}
23137                  $as_echo "$as_val"'`
23138    if test "x$as_val" = x""yes; then
23139   cat >>confdefs.h <<_ACEOF
23140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23141 _ACEOF
23143 else
23144   { $as_echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
23145 $as_echo_n "checking for fpclassify with <math.h>... " >&6; }
23146     cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h.  */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h.  */
23152 #include <math.h>
23153 volatile int x;volatile float f;
23154 int
23155 main ()
23157 x = fpclassify(f)
23158   ;
23159   return 0;
23161 _ACEOF
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (ac_try="$ac_link"
23164 case "(($ac_try" in
23165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23166   *) ac_try_echo=$ac_try;;
23167 esac
23168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23169 $as_echo "$ac_try_echo") >&5
23170   (eval "$ac_link") 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } && {
23177          test -z "$ac_c_werror_flag" ||
23178          test ! -s conftest.err
23179        } && test -s conftest$ac_exeext && {
23180          test "$cross_compiling" = yes ||
23181          $as_test_x conftest$ac_exeext
23182        }; then
23183   { $as_echo "$as_me:$LINENO: result: yes" >&5
23184 $as_echo "yes" >&6; }
23185       cat >>confdefs.h <<\_ACEOF
23186 #define HAVE_FPCLASSIFY 1
23187 _ACEOF
23189 else
23190   $as_echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23193         { $as_echo "$as_me:$LINENO: result: no" >&5
23194 $as_echo "no" >&6; }
23197 rm -rf conftest.dSYM
23198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23199       conftest$ac_exeext conftest.$ac_ext
23201 done
23205 for ac_func in isinf
23207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23208 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23209 $as_echo_n "checking for $ac_func... " >&6; }
23210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23211   $as_echo_n "(cached) " >&6
23212 else
23213   cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23221 #define $ac_func innocuous_$ac_func
23223 /* System header to define __stub macros and hopefully few prototypes,
23224     which can conflict with char $ac_func (); below.
23225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23226     <limits.h> exists even on freestanding compilers.  */
23228 #ifdef __STDC__
23229 # include <limits.h>
23230 #else
23231 # include <assert.h>
23232 #endif
23234 #undef $ac_func
23236 /* Override any GCC internal prototype to avoid an error.
23237    Use char because int might match the return type of a GCC
23238    builtin and then its argument prototype would still apply.  */
23239 #ifdef __cplusplus
23240 extern "C"
23241 #endif
23242 char $ac_func ();
23243 /* The GNU C library defines this for functions which it implements
23244     to always fail with ENOSYS.  Some functions are actually named
23245     something starting with __ and the normal name is an alias.  */
23246 #if defined __stub_$ac_func || defined __stub___$ac_func
23247 choke me
23248 #endif
23250 int
23251 main ()
23253 return $ac_func ();
23254   ;
23255   return 0;
23257 _ACEOF
23258 rm -f conftest.$ac_objext conftest$ac_exeext
23259 if { (ac_try="$ac_link"
23260 case "(($ac_try" in
23261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262   *) ac_try_echo=$ac_try;;
23263 esac
23264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23265 $as_echo "$ac_try_echo") >&5
23266   (eval "$ac_link") 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } && {
23273          test -z "$ac_c_werror_flag" ||
23274          test ! -s conftest.err
23275        } && test -s conftest$ac_exeext && {
23276          test "$cross_compiling" = yes ||
23277          $as_test_x conftest$ac_exeext
23278        }; then
23279   eval "$as_ac_var=yes"
23280 else
23281   $as_echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23284         eval "$as_ac_var=no"
23287 rm -rf conftest.dSYM
23288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23289       conftest$ac_exeext conftest.$ac_ext
23291 ac_res=`eval 'as_val=${'$as_ac_var'}
23292                  $as_echo "$as_val"'`
23293                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23294 $as_echo "$ac_res" >&6; }
23295 as_val=`eval 'as_val=${'$as_ac_var'}
23296                  $as_echo "$as_val"'`
23297    if test "x$as_val" = x""yes; then
23298   cat >>confdefs.h <<_ACEOF
23299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23300 _ACEOF
23302 else
23303   { $as_echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
23304 $as_echo_n "checking for isinf with <math.h>... " >&6; }
23305     cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h.  */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h.  */
23311 #include <math.h>
23312 volatile int x;volatile float f;
23313 int
23314 main ()
23316 x = isinf(f)
23317   ;
23318   return 0;
23320 _ACEOF
23321 rm -f conftest.$ac_objext conftest$ac_exeext
23322 if { (ac_try="$ac_link"
23323 case "(($ac_try" in
23324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325   *) ac_try_echo=$ac_try;;
23326 esac
23327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23328 $as_echo "$ac_try_echo") >&5
23329   (eval "$ac_link") 2>conftest.er1
23330   ac_status=$?
23331   grep -v '^ *+' conftest.er1 >conftest.err
23332   rm -f conftest.er1
23333   cat conftest.err >&5
23334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335   (exit $ac_status); } && {
23336          test -z "$ac_c_werror_flag" ||
23337          test ! -s conftest.err
23338        } && test -s conftest$ac_exeext && {
23339          test "$cross_compiling" = yes ||
23340          $as_test_x conftest$ac_exeext
23341        }; then
23342   { $as_echo "$as_me:$LINENO: result: yes" >&5
23343 $as_echo "yes" >&6; }
23344       cat >>confdefs.h <<\_ACEOF
23345 #define HAVE_ISINF 1
23346 _ACEOF
23348 else
23349   $as_echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23352         { $as_echo "$as_me:$LINENO: result: no" >&5
23353 $as_echo "no" >&6; }
23356 rm -rf conftest.dSYM
23357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23358       conftest$ac_exeext conftest.$ac_ext
23360 done
23363 { $as_echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
23364 $as_echo_n "checking whether isfinite is broken... " >&6; }
23365 if test "${ac_cv_have_broken_isfinite+set}" = set; then
23366   $as_echo_n "(cached) " >&6
23367 else
23369 if test "$cross_compiling" = yes; then
23371 case "${target}" in
23372   hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
23373   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
23374   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
23375   *) ac_cv_have_broken_isfinite=no ;;
23376 esac
23377 else
23378   cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h.  */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h.  */
23385 #ifdef HAVE_MATH_H
23386 #include <math.h>
23387 #endif
23388 #ifdef HAVE_FLOAT_H
23389 #include <float.h>
23390 #endif
23391 int main ()
23393 #ifdef isfinite
23394 #ifdef LDBL_MAX
23395   if (!isfinite(LDBL_MAX)) return 1;
23396 #endif
23397 #ifdef DBL_MAX
23398   if (!isfinite(DBL_MAX)) return 1;
23399 #endif
23400 #endif
23401 return 0;
23403 _ACEOF
23404 rm -f conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408   *) ac_try_echo=$ac_try;;
23409 esac
23410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23411 $as_echo "$ac_try_echo") >&5
23412   (eval "$ac_link") 2>&5
23413   ac_status=$?
23414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23416   { (case "(($ac_try" in
23417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418   *) ac_try_echo=$ac_try;;
23419 esac
23420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23421 $as_echo "$ac_try_echo") >&5
23422   (eval "$ac_try") 2>&5
23423   ac_status=$?
23424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); }; }; then
23426   ac_cv_have_broken_isfinite=no
23427 else
23428   $as_echo "$as_me: program exited with status $ac_status" >&5
23429 $as_echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ( exit $ac_status )
23433 ac_cv_have_broken_isfinite=yes
23435 rm -rf conftest.dSYM
23436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23442 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_broken_isfinite" >&5
23443 $as_echo "$ac_cv_have_broken_isfinite" >&6; }
23445 case "${target}" in
23446   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
23447   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
23448 esac
23450 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
23451   cat >>confdefs.h <<\_ACEOF
23452 #define HAVE_ISFINITE 1
23453 _ACEOF
23455 else
23457 for ac_func in finite
23459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23460 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23461 $as_echo_n "checking for $ac_func... " >&6; }
23462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23463   $as_echo_n "(cached) " >&6
23464 else
23465   cat >conftest.$ac_ext <<_ACEOF
23466 /* confdefs.h.  */
23467 _ACEOF
23468 cat confdefs.h >>conftest.$ac_ext
23469 cat >>conftest.$ac_ext <<_ACEOF
23470 /* end confdefs.h.  */
23471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23473 #define $ac_func innocuous_$ac_func
23475 /* System header to define __stub macros and hopefully few prototypes,
23476     which can conflict with char $ac_func (); below.
23477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23478     <limits.h> exists even on freestanding compilers.  */
23480 #ifdef __STDC__
23481 # include <limits.h>
23482 #else
23483 # include <assert.h>
23484 #endif
23486 #undef $ac_func
23488 /* Override any GCC internal prototype to avoid an error.
23489    Use char because int might match the return type of a GCC
23490    builtin and then its argument prototype would still apply.  */
23491 #ifdef __cplusplus
23492 extern "C"
23493 #endif
23494 char $ac_func ();
23495 /* The GNU C library defines this for functions which it implements
23496     to always fail with ENOSYS.  Some functions are actually named
23497     something starting with __ and the normal name is an alias.  */
23498 #if defined __stub_$ac_func || defined __stub___$ac_func
23499 choke me
23500 #endif
23502 int
23503 main ()
23505 return $ac_func ();
23506   ;
23507   return 0;
23509 _ACEOF
23510 rm -f conftest.$ac_objext conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514   *) ac_try_echo=$ac_try;;
23515 esac
23516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23517 $as_echo "$ac_try_echo") >&5
23518   (eval "$ac_link") 2>conftest.er1
23519   ac_status=$?
23520   grep -v '^ *+' conftest.er1 >conftest.err
23521   rm -f conftest.er1
23522   cat conftest.err >&5
23523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); } && {
23525          test -z "$ac_c_werror_flag" ||
23526          test ! -s conftest.err
23527        } && test -s conftest$ac_exeext && {
23528          test "$cross_compiling" = yes ||
23529          $as_test_x conftest$ac_exeext
23530        }; then
23531   eval "$as_ac_var=yes"
23532 else
23533   $as_echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23536         eval "$as_ac_var=no"
23539 rm -rf conftest.dSYM
23540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23541       conftest$ac_exeext conftest.$ac_ext
23543 ac_res=`eval 'as_val=${'$as_ac_var'}
23544                  $as_echo "$as_val"'`
23545                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23546 $as_echo "$ac_res" >&6; }
23547 as_val=`eval 'as_val=${'$as_ac_var'}
23548                  $as_echo "$as_val"'`
23549    if test "x$as_val" = x""yes; then
23550   cat >>confdefs.h <<_ACEOF
23551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23552 _ACEOF
23554 else
23556 for ac_func in isfinite
23558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23559 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23560 $as_echo_n "checking for $ac_func... " >&6; }
23561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23562   $as_echo_n "(cached) " >&6
23563 else
23564   cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h.  */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h.  */
23570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23572 #define $ac_func innocuous_$ac_func
23574 /* System header to define __stub macros and hopefully few prototypes,
23575     which can conflict with char $ac_func (); below.
23576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23577     <limits.h> exists even on freestanding compilers.  */
23579 #ifdef __STDC__
23580 # include <limits.h>
23581 #else
23582 # include <assert.h>
23583 #endif
23585 #undef $ac_func
23587 /* Override any GCC internal prototype to avoid an error.
23588    Use char because int might match the return type of a GCC
23589    builtin and then its argument prototype would still apply.  */
23590 #ifdef __cplusplus
23591 extern "C"
23592 #endif
23593 char $ac_func ();
23594 /* The GNU C library defines this for functions which it implements
23595     to always fail with ENOSYS.  Some functions are actually named
23596     something starting with __ and the normal name is an alias.  */
23597 #if defined __stub_$ac_func || defined __stub___$ac_func
23598 choke me
23599 #endif
23601 int
23602 main ()
23604 return $ac_func ();
23605   ;
23606   return 0;
23608 _ACEOF
23609 rm -f conftest.$ac_objext conftest$ac_exeext
23610 if { (ac_try="$ac_link"
23611 case "(($ac_try" in
23612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613   *) ac_try_echo=$ac_try;;
23614 esac
23615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23616 $as_echo "$ac_try_echo") >&5
23617   (eval "$ac_link") 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } && {
23624          test -z "$ac_c_werror_flag" ||
23625          test ! -s conftest.err
23626        } && test -s conftest$ac_exeext && {
23627          test "$cross_compiling" = yes ||
23628          $as_test_x conftest$ac_exeext
23629        }; then
23630   eval "$as_ac_var=yes"
23631 else
23632   $as_echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23635         eval "$as_ac_var=no"
23638 rm -rf conftest.dSYM
23639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23640       conftest$ac_exeext conftest.$ac_ext
23642 ac_res=`eval 'as_val=${'$as_ac_var'}
23643                  $as_echo "$as_val"'`
23644                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23645 $as_echo "$ac_res" >&6; }
23646 as_val=`eval 'as_val=${'$as_ac_var'}
23647                  $as_echo "$as_val"'`
23648    if test "x$as_val" = x""yes; then
23649   cat >>confdefs.h <<_ACEOF
23650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23651 _ACEOF
23653 else
23654   { $as_echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
23655 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
23656           cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h.  */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h.  */
23662 #include <math.h>
23663 volatile int x;volatile float f;
23664 int
23665 main ()
23667 x = isfinite(f)
23668   ;
23669   return 0;
23671 _ACEOF
23672 rm -f conftest.$ac_objext conftest$ac_exeext
23673 if { (ac_try="$ac_link"
23674 case "(($ac_try" in
23675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676   *) ac_try_echo=$ac_try;;
23677 esac
23678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23679 $as_echo "$ac_try_echo") >&5
23680   (eval "$ac_link") 2>conftest.er1
23681   ac_status=$?
23682   grep -v '^ *+' conftest.er1 >conftest.err
23683   rm -f conftest.er1
23684   cat conftest.err >&5
23685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); } && {
23687          test -z "$ac_c_werror_flag" ||
23688          test ! -s conftest.err
23689        } && test -s conftest$ac_exeext && {
23690          test "$cross_compiling" = yes ||
23691          $as_test_x conftest$ac_exeext
23692        }; then
23693   { $as_echo "$as_me:$LINENO: result: yes" >&5
23694 $as_echo "yes" >&6; }
23695                 cat >>confdefs.h <<\_ACEOF
23696 #define HAVE_ISFINITE 1
23697 _ACEOF
23699 else
23700   $as_echo "$as_me: failed program was:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23703         { $as_echo "$as_me:$LINENO: result: no" >&5
23704 $as_echo "no" >&6; }
23707 rm -rf conftest.dSYM
23708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23709       conftest$ac_exeext conftest.$ac_ext
23711 done
23714 done
23719 ac_ext=c
23720 ac_cpp='$CPP $CPPFLAGS'
23721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23725 _cflags=${CFLAGS}
23727 { $as_echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
23728 $as_echo_n "checking if IEEE math works out of the box... " >&6; }
23729 if test "${rd_cv_ieee_works+set}" = set; then
23730   $as_echo_n "(cached) " >&6
23731 else
23732   if test "$cross_compiling" = yes; then
23733   :
23734 else
23735   cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h.  */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h.  */
23743 #if HAVE_MATH_H
23744 #  include <math.h>
23745 #endif
23747 #if HAVE_FLOAT_H
23748 #  include <float.h>
23749 #endif
23751 #if HAVE_IEEEFP_H
23752 #  include <ieeefp.h>
23753 #endif
23755 #if HAVE_FP_CLASS_H
23756 #  include <fp_class.h>
23757 #endif
23759 /* Solaris */
23760 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23761 #  define HAVE_ISINF 1
23762 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23763 #endif
23765 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
23766 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23767 #  undef isnan
23768 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23769 #endif
23771 /* Digital UNIX */
23772 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23773 #  define HAVE_ISINF 1
23774 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23775 #endif
23777 /* AIX */
23778 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23779 #  define HAVE_ISINF 1
23780 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23781 #endif
23783 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23784 #  define HAVE_ISINF 1
23785 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23786 #endif
23788 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23789 #  define HAVE_ISINF 1
23790 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
23791 #endif
23793 #include <stdio.h>
23794 int main(void){
23795     double rrdnan,rrdinf,rrdc,rrdzero;
23796     ;
23797     /* some math to see if we get a floating point exception */
23798     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23799     rrdnan=0.0/rrdzero; /* especially here */
23800     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23801                   /* at run time without sig fpe */
23802     rrdc = rrdinf + rrdnan;
23803     rrdc = rrdinf / rrdnan;
23804     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23805     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23806     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23807     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23808     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23809     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23810     return 0;
23811  }
23812 _ACEOF
23813 rm -f conftest$ac_exeext
23814 if { (ac_try="$ac_link"
23815 case "(($ac_try" in
23816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817   *) ac_try_echo=$ac_try;;
23818 esac
23819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23820 $as_echo "$ac_try_echo") >&5
23821   (eval "$ac_link") 2>&5
23822   ac_status=$?
23823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23825   { (case "(($ac_try" in
23826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827   *) ac_try_echo=$ac_try;;
23828 esac
23829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23830 $as_echo "$ac_try_echo") >&5
23831   (eval "$ac_try") 2>&5
23832   ac_status=$?
23833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); }; }; then
23835   rd_cv_ieee_works=yes
23836 else
23837   $as_echo "$as_me: program exited with status $ac_status" >&5
23838 $as_echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 ( exit $ac_status )
23842 rd_cv_ieee_works=no
23844 rm -rf conftest.dSYM
23845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23851 if test x${rd_cv_ieee_works} = "xyes"; then
23852  { $as_echo "$as_me:$LINENO: result: yes" >&5
23853 $as_echo "yes" >&6; }
23855 else
23856  { $as_echo "$as_me:$LINENO: result: no" >&5
23857 $as_echo "no" >&6; }
23858  CFLAGS="$_cflags -ieee"
23860 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
23861 $as_echo_n "checking if IEEE math works with the -ieee switch... " >&6; }
23862 if test "${rd_cv_ieee_switch+set}" = set; then
23863   $as_echo_n "(cached) " >&6
23864 else
23865   if test "$cross_compiling" = yes; then
23866   :
23867 else
23868   cat >conftest.$ac_ext <<_ACEOF
23869 /* confdefs.h.  */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h.  */
23876 #if HAVE_MATH_H
23877 #  include <math.h>
23878 #endif
23880 #if HAVE_FLOAT_H
23881 #  include <float.h>
23882 #endif
23884 #if HAVE_IEEEFP_H
23885 #  include <ieeefp.h>
23886 #endif
23888 #if HAVE_FP_CLASS_H
23889 #  include <fp_class.h>
23890 #endif
23892 /* Solaris */
23893 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23894 #  define HAVE_ISINF 1
23895 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23896 #endif
23898 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
23899 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23900 #  undef isnan
23901 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23902 #endif
23904 /* Digital UNIX */
23905 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23906 #  define HAVE_ISINF 1
23907 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23908 #endif
23910 /* AIX */
23911 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23912 #  define HAVE_ISINF 1
23913 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23914 #endif
23916 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23917 #  define HAVE_ISINF 1
23918 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23919 #endif
23921 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23922 #  define HAVE_ISINF 1
23923 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
23924 #endif
23926 #include <stdio.h>
23927 int main(void){
23928     double rrdnan,rrdinf,rrdc,rrdzero;
23929     ;
23930     /* some math to see if we get a floating point exception */
23931     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23932     rrdnan=0.0/rrdzero; /* especially here */
23933     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23934                   /* at run time without sig fpe */
23935     rrdc = rrdinf + rrdnan;
23936     rrdc = rrdinf / rrdnan;
23937     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23938     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23939     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23940     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23941     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23942     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23943     return 0;
23944  }
23945 _ACEOF
23946 rm -f conftest$ac_exeext
23947 if { (ac_try="$ac_link"
23948 case "(($ac_try" in
23949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23950   *) ac_try_echo=$ac_try;;
23951 esac
23952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23953 $as_echo "$ac_try_echo") >&5
23954   (eval "$ac_link") 2>&5
23955   ac_status=$?
23956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23958   { (case "(($ac_try" in
23959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960   *) ac_try_echo=$ac_try;;
23961 esac
23962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23963 $as_echo "$ac_try_echo") >&5
23964   (eval "$ac_try") 2>&5
23965   ac_status=$?
23966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); }; }; then
23968   rd_cv_ieee_switch=yes
23969 else
23970   $as_echo "$as_me: program exited with status $ac_status" >&5
23971 $as_echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23974 ( exit $ac_status )
23975 rd_cv_ieee_switch=no
23977 rm -rf conftest.dSYM
23978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23984 if test x${rd_cv_ieee_switch} = "xyes"; then
23985  { $as_echo "$as_me:$LINENO: result: yes" >&5
23986 $as_echo "yes" >&6; }
23988 else
23989  { $as_echo "$as_me:$LINENO: result: no" >&5
23990 $as_echo "no" >&6; }
23991  CFLAGS="$_cflags -qfloat=nofold"
23993 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
23994 $as_echo_n "checking if IEEE math works with the -qfloat=nofold switch... " >&6; }
23995 if test "${rd_cv_ieee_nofold+set}" = set; then
23996   $as_echo_n "(cached) " >&6
23997 else
23998   if test "$cross_compiling" = yes; then
23999   :
24000 else
24001   cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h.  */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h.  */
24009 #if HAVE_MATH_H
24010 #  include <math.h>
24011 #endif
24013 #if HAVE_FLOAT_H
24014 #  include <float.h>
24015 #endif
24017 #if HAVE_IEEEFP_H
24018 #  include <ieeefp.h>
24019 #endif
24021 #if HAVE_FP_CLASS_H
24022 #  include <fp_class.h>
24023 #endif
24025 /* Solaris */
24026 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24027 #  define HAVE_ISINF 1
24028 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24029 #endif
24031 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24032 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24033 #  undef isnan
24034 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24035 #endif
24037 /* Digital UNIX */
24038 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24039 #  define HAVE_ISINF 1
24040 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24041 #endif
24043 /* AIX */
24044 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24045 #  define HAVE_ISINF 1
24046 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24047 #endif
24049 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24050 #  define HAVE_ISINF 1
24051 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24052 #endif
24054 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24055 #  define HAVE_ISINF 1
24056 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24057 #endif
24059 #include <stdio.h>
24060 int main(void){
24061     double rrdnan,rrdinf,rrdc,rrdzero;
24062     ;
24063     /* some math to see if we get a floating point exception */
24064     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24065     rrdnan=0.0/rrdzero; /* especially here */
24066     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24067                   /* at run time without sig fpe */
24068     rrdc = rrdinf + rrdnan;
24069     rrdc = rrdinf / rrdnan;
24070     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24071     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24072     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24073     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24074     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24075     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24076     return 0;
24077  }
24078 _ACEOF
24079 rm -f conftest$ac_exeext
24080 if { (ac_try="$ac_link"
24081 case "(($ac_try" in
24082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083   *) ac_try_echo=$ac_try;;
24084 esac
24085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24086 $as_echo "$ac_try_echo") >&5
24087   (eval "$ac_link") 2>&5
24088   ac_status=$?
24089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24091   { (case "(($ac_try" in
24092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093   *) ac_try_echo=$ac_try;;
24094 esac
24095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24096 $as_echo "$ac_try_echo") >&5
24097   (eval "$ac_try") 2>&5
24098   ac_status=$?
24099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100   (exit $ac_status); }; }; then
24101   rd_cv_ieee_nofold=yes
24102 else
24103   $as_echo "$as_me: program exited with status $ac_status" >&5
24104 $as_echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24107 ( exit $ac_status )
24108 rd_cv_ieee_nofold=no
24110 rm -rf conftest.dSYM
24111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24117 if test x${rd_cv_ieee_nofold} = "xyes"; then
24118  { $as_echo "$as_me:$LINENO: result: yes" >&5
24119 $as_echo "yes" >&6; }
24121 else
24122  { $as_echo "$as_me:$LINENO: result: no" >&5
24123 $as_echo "no" >&6; }
24124  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
24126 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
24127 $as_echo_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... " >&6; }
24128 if test "${rd_cv_ieee_flttrap+set}" = set; then
24129   $as_echo_n "(cached) " >&6
24130 else
24131   if test "$cross_compiling" = yes; then
24132   :
24133 else
24134   cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h.  */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h.  */
24142 #if HAVE_MATH_H
24143 #  include <math.h>
24144 #endif
24146 #if HAVE_FLOAT_H
24147 #  include <float.h>
24148 #endif
24150 #if HAVE_IEEEFP_H
24151 #  include <ieeefp.h>
24152 #endif
24154 #if HAVE_FP_CLASS_H
24155 #  include <fp_class.h>
24156 #endif
24158 /* Solaris */
24159 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24160 #  define HAVE_ISINF 1
24161 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24162 #endif
24164 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24165 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24166 #  undef isnan
24167 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24168 #endif
24170 /* Digital UNIX */
24171 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24172 #  define HAVE_ISINF 1
24173 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24174 #endif
24176 /* AIX */
24177 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24178 #  define HAVE_ISINF 1
24179 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24180 #endif
24182 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24183 #  define HAVE_ISINF 1
24184 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24185 #endif
24187 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24188 #  define HAVE_ISINF 1
24189 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24190 #endif
24192 #include <stdio.h>
24193 int main(void){
24194     double rrdnan,rrdinf,rrdc,rrdzero;
24195     ;
24196     /* some math to see if we get a floating point exception */
24197     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24198     rrdnan=0.0/rrdzero; /* especially here */
24199     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24200                   /* at run time without sig fpe */
24201     rrdc = rrdinf + rrdnan;
24202     rrdc = rrdinf / rrdnan;
24203     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24204     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24205     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24206     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24207     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24208     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24209     return 0;
24210  }
24211 _ACEOF
24212 rm -f conftest$ac_exeext
24213 if { (ac_try="$ac_link"
24214 case "(($ac_try" in
24215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216   *) ac_try_echo=$ac_try;;
24217 esac
24218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24219 $as_echo "$ac_try_echo") >&5
24220   (eval "$ac_link") 2>&5
24221   ac_status=$?
24222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24224   { (case "(($ac_try" in
24225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226   *) ac_try_echo=$ac_try;;
24227 esac
24228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24229 $as_echo "$ac_try_echo") >&5
24230   (eval "$ac_try") 2>&5
24231   ac_status=$?
24232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233   (exit $ac_status); }; }; then
24234   rd_cv_ieee_flttrap=yes
24235 else
24236   $as_echo "$as_me: program exited with status $ac_status" >&5
24237 $as_echo "$as_me: failed program was:" >&5
24238 sed 's/^/| /' conftest.$ac_ext >&5
24240 ( exit $ac_status )
24241 rd_cv_ieee_flttrap=no
24243 rm -rf conftest.dSYM
24244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24250 if test x${rd_cv_ieee_flttrap} = "xyes"; then
24251  { $as_echo "$as_me:$LINENO: result: yes" >&5
24252 $as_echo "yes" >&6; }
24254 else
24255  { $as_echo "$as_me:$LINENO: result: no" >&5
24256 $as_echo "no" >&6; }
24257  CFLAGS="$_cflags -mieee"
24259 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
24260 $as_echo_n "checking if IEEE math works with the -mieee switch... " >&6; }
24261 if test "${rd_cv_ieee_mswitch+set}" = set; then
24262   $as_echo_n "(cached) " >&6
24263 else
24264   if test "$cross_compiling" = yes; then
24265   :
24266 else
24267   cat >conftest.$ac_ext <<_ACEOF
24268 /* confdefs.h.  */
24269 _ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h.  */
24275 #if HAVE_MATH_H
24276 #  include <math.h>
24277 #endif
24279 #if HAVE_FLOAT_H
24280 #  include <float.h>
24281 #endif
24283 #if HAVE_IEEEFP_H
24284 #  include <ieeefp.h>
24285 #endif
24287 #if HAVE_FP_CLASS_H
24288 #  include <fp_class.h>
24289 #endif
24291 /* Solaris */
24292 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24293 #  define HAVE_ISINF 1
24294 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24295 #endif
24297 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24298 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24299 #  undef isnan
24300 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24301 #endif
24303 /* Digital UNIX */
24304 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24305 #  define HAVE_ISINF 1
24306 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24307 #endif
24309 /* AIX */
24310 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24311 #  define HAVE_ISINF 1
24312 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24313 #endif
24315 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24316 #  define HAVE_ISINF 1
24317 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24318 #endif
24320 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24321 #  define HAVE_ISINF 1
24322 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24323 #endif
24325 #include <stdio.h>
24326 int main(void){
24327     double rrdnan,rrdinf,rrdc,rrdzero;
24328     ;
24329     /* some math to see if we get a floating point exception */
24330     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24331     rrdnan=0.0/rrdzero; /* especially here */
24332     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24333                   /* at run time without sig fpe */
24334     rrdc = rrdinf + rrdnan;
24335     rrdc = rrdinf / rrdnan;
24336     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24337     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24338     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24339     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24340     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24341     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24342     return 0;
24343  }
24344 _ACEOF
24345 rm -f conftest$ac_exeext
24346 if { (ac_try="$ac_link"
24347 case "(($ac_try" in
24348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349   *) ac_try_echo=$ac_try;;
24350 esac
24351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24352 $as_echo "$ac_try_echo") >&5
24353   (eval "$ac_link") 2>&5
24354   ac_status=$?
24355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24357   { (case "(($ac_try" in
24358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359   *) ac_try_echo=$ac_try;;
24360 esac
24361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24362 $as_echo "$ac_try_echo") >&5
24363   (eval "$ac_try") 2>&5
24364   ac_status=$?
24365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366   (exit $ac_status); }; }; then
24367   rd_cv_ieee_mswitch=yes
24368 else
24369   $as_echo "$as_me: program exited with status $ac_status" >&5
24370 $as_echo "$as_me: failed program was:" >&5
24371 sed 's/^/| /' conftest.$ac_ext >&5
24373 ( exit $ac_status )
24374 rd_cv_ieee_mswitch=no
24376 rm -rf conftest.dSYM
24377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24383 if test x${rd_cv_ieee_mswitch} = "xyes"; then
24384  { $as_echo "$as_me:$LINENO: result: yes" >&5
24385 $as_echo "yes" >&6; }
24387 else
24388  { $as_echo "$as_me:$LINENO: result: no" >&5
24389 $as_echo "no" >&6; }
24390  CFLAGS="$_cflags -q float=rndsngl"
24392 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
24393 $as_echo_n "checking if IEEE math works with the -q float=rndsngl switch... " >&6; }
24394 if test "${rd_cv_ieee_qswitch+set}" = set; then
24395   $as_echo_n "(cached) " >&6
24396 else
24397   if test "$cross_compiling" = yes; then
24398   :
24399 else
24400   cat >conftest.$ac_ext <<_ACEOF
24401 /* confdefs.h.  */
24402 _ACEOF
24403 cat confdefs.h >>conftest.$ac_ext
24404 cat >>conftest.$ac_ext <<_ACEOF
24405 /* end confdefs.h.  */
24408 #if HAVE_MATH_H
24409 #  include <math.h>
24410 #endif
24412 #if HAVE_FLOAT_H
24413 #  include <float.h>
24414 #endif
24416 #if HAVE_IEEEFP_H
24417 #  include <ieeefp.h>
24418 #endif
24420 #if HAVE_FP_CLASS_H
24421 #  include <fp_class.h>
24422 #endif
24424 /* Solaris */
24425 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24426 #  define HAVE_ISINF 1
24427 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24428 #endif
24430 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24431 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24432 #  undef isnan
24433 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24434 #endif
24436 /* Digital UNIX */
24437 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24438 #  define HAVE_ISINF 1
24439 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24440 #endif
24442 /* AIX */
24443 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24444 #  define HAVE_ISINF 1
24445 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24446 #endif
24448 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24449 #  define HAVE_ISINF 1
24450 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24451 #endif
24453 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24454 #  define HAVE_ISINF 1
24455 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24456 #endif
24458 #include <stdio.h>
24459 int main(void){
24460     double rrdnan,rrdinf,rrdc,rrdzero;
24461     ;
24462     /* some math to see if we get a floating point exception */
24463     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24464     rrdnan=0.0/rrdzero; /* especially here */
24465     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24466                   /* at run time without sig fpe */
24467     rrdc = rrdinf + rrdnan;
24468     rrdc = rrdinf / rrdnan;
24469     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24470     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24471     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24472     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24473     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24474     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24475     return 0;
24476  }
24477 _ACEOF
24478 rm -f conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482   *) ac_try_echo=$ac_try;;
24483 esac
24484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24485 $as_echo "$ac_try_echo") >&5
24486   (eval "$ac_link") 2>&5
24487   ac_status=$?
24488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24490   { (case "(($ac_try" in
24491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492   *) ac_try_echo=$ac_try;;
24493 esac
24494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24495 $as_echo "$ac_try_echo") >&5
24496   (eval "$ac_try") 2>&5
24497   ac_status=$?
24498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); }; }; then
24500   rd_cv_ieee_qswitch=yes
24501 else
24502   $as_echo "$as_me: program exited with status $ac_status" >&5
24503 $as_echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24506 ( exit $ac_status )
24507 rd_cv_ieee_qswitch=no
24509 rm -rf conftest.dSYM
24510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24516 if test x${rd_cv_ieee_qswitch} = "xyes"; then
24517  { $as_echo "$as_me:$LINENO: result: yes" >&5
24518 $as_echo "yes" >&6; }
24520 else
24521  { $as_echo "$as_me:$LINENO: result: no" >&5
24522 $as_echo "no" >&6; }
24523  CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
24525 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
24526 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... " >&6; }
24527 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
24528   $as_echo_n "(cached) " >&6
24529 else
24530   if test "$cross_compiling" = yes; then
24531   :
24532 else
24533   cat >conftest.$ac_ext <<_ACEOF
24534 /* confdefs.h.  */
24535 _ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h.  */
24541 #if HAVE_MATH_H
24542 #  include <math.h>
24543 #endif
24545 #if HAVE_FLOAT_H
24546 #  include <float.h>
24547 #endif
24549 #if HAVE_IEEEFP_H
24550 #  include <ieeefp.h>
24551 #endif
24553 #if HAVE_FP_CLASS_H
24554 #  include <fp_class.h>
24555 #endif
24557 /* Solaris */
24558 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24559 #  define HAVE_ISINF 1
24560 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24561 #endif
24563 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24564 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24565 #  undef isnan
24566 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24567 #endif
24569 /* Digital UNIX */
24570 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24571 #  define HAVE_ISINF 1
24572 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24573 #endif
24575 /* AIX */
24576 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24577 #  define HAVE_ISINF 1
24578 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24579 #endif
24581 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24582 #  define HAVE_ISINF 1
24583 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24584 #endif
24586 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24587 #  define HAVE_ISINF 1
24588 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24589 #endif
24591 #include <stdio.h>
24592 int main(void){
24593     double rrdnan,rrdinf,rrdc,rrdzero;
24594     ;
24595     /* some math to see if we get a floating point exception */
24596     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24597     rrdnan=0.0/rrdzero; /* especially here */
24598     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24599                   /* at run time without sig fpe */
24600     rrdc = rrdinf + rrdnan;
24601     rrdc = rrdinf / rrdnan;
24602     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24603     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24604     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24605     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24606     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24607     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24608     return 0;
24609  }
24610 _ACEOF
24611 rm -f conftest$ac_exeext
24612 if { (ac_try="$ac_link"
24613 case "(($ac_try" in
24614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615   *) ac_try_echo=$ac_try;;
24616 esac
24617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24618 $as_echo "$ac_try_echo") >&5
24619   (eval "$ac_link") 2>&5
24620   ac_status=$?
24621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24623   { (case "(($ac_try" in
24624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625   *) ac_try_echo=$ac_try;;
24626 esac
24627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24628 $as_echo "$ac_try_echo") >&5
24629   (eval "$ac_try") 2>&5
24630   ac_status=$?
24631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632   (exit $ac_status); }; }; then
24633   rd_cv_ieee_ieeenaninfswitch=yes
24634 else
24635   $as_echo "$as_me: program exited with status $ac_status" >&5
24636 $as_echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24639 ( exit $ac_status )
24640 rd_cv_ieee_ieeenaninfswitch=no
24642 rm -rf conftest.dSYM
24643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24649 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
24650  { $as_echo "$as_me:$LINENO: result: yes" >&5
24651 $as_echo "yes" >&6; }
24653 else
24654  { $as_echo "$as_me:$LINENO: result: no" >&5
24655 $as_echo "no" >&6; }
24656  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
24658 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
24659 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... " >&6; }
24660 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
24661   $as_echo_n "(cached) " >&6
24662 else
24663   if test "$cross_compiling" = yes; then
24664   :
24665 else
24666   cat >conftest.$ac_ext <<_ACEOF
24667 /* confdefs.h.  */
24668 _ACEOF
24669 cat confdefs.h >>conftest.$ac_ext
24670 cat >>conftest.$ac_ext <<_ACEOF
24671 /* end confdefs.h.  */
24674 #if HAVE_MATH_H
24675 #  include <math.h>
24676 #endif
24678 #if HAVE_FLOAT_H
24679 #  include <float.h>
24680 #endif
24682 #if HAVE_IEEEFP_H
24683 #  include <ieeefp.h>
24684 #endif
24686 #if HAVE_FP_CLASS_H
24687 #  include <fp_class.h>
24688 #endif
24690 /* Solaris */
24691 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24692 #  define HAVE_ISINF 1
24693 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24694 #endif
24696 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24697 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24698 #  undef isnan
24699 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24700 #endif
24702 /* Digital UNIX */
24703 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24704 #  define HAVE_ISINF 1
24705 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24706 #endif
24708 /* AIX */
24709 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24710 #  define HAVE_ISINF 1
24711 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24712 #endif
24714 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24715 #  define HAVE_ISINF 1
24716 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24717 #endif
24719 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24720 #  define HAVE_ISINF 1
24721 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24722 #endif
24724 #include <stdio.h>
24725 int main(void){
24726     double rrdnan,rrdinf,rrdc,rrdzero;
24727     ;
24728     /* some math to see if we get a floating point exception */
24729     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24730     rrdnan=0.0/rrdzero; /* especially here */
24731     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24732                   /* at run time without sig fpe */
24733     rrdc = rrdinf + rrdnan;
24734     rrdc = rrdinf / rrdnan;
24735     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24736     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24737     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24738     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24739     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24740     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24741     return 0;
24742  }
24743 _ACEOF
24744 rm -f conftest$ac_exeext
24745 if { (ac_try="$ac_link"
24746 case "(($ac_try" in
24747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748   *) ac_try_echo=$ac_try;;
24749 esac
24750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24751 $as_echo "$ac_try_echo") >&5
24752   (eval "$ac_link") 2>&5
24753   ac_status=$?
24754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24756   { (case "(($ac_try" in
24757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24758   *) ac_try_echo=$ac_try;;
24759 esac
24760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24761 $as_echo "$ac_try_echo") >&5
24762   (eval "$ac_try") 2>&5
24763   ac_status=$?
24764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); }; }; then
24766   rd_cv_ieee_ieeecmpswitch=yes
24767 else
24768   $as_echo "$as_me: program exited with status $ac_status" >&5
24769 $as_echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24772 ( exit $ac_status )
24773 rd_cv_ieee_ieeecmpswitch=no
24775 rm -rf conftest.dSYM
24776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24782 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
24783  { $as_echo "$as_me:$LINENO: result: yes" >&5
24784 $as_echo "yes" >&6; }
24786 else
24787  { $as_echo "$as_me:$LINENO: result: no" >&5
24788 $as_echo "no" >&6; }
24789  CFLAGS=$_cflags
24791 { $as_echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
24792 $as_echo_n "checking if IEEE math works with fpsetmask(0)... " >&6; }
24793 if test "${rd_cv_ieee_mask+set}" = set; then
24794   $as_echo_n "(cached) " >&6
24795 else
24796   if test "$cross_compiling" = yes; then
24797   :
24798 else
24799   cat >conftest.$ac_ext <<_ACEOF
24800 /* confdefs.h.  */
24801 _ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h.  */
24805 #include <floatingpoint.h>
24807 #if HAVE_MATH_H
24808 #  include <math.h>
24809 #endif
24811 #if HAVE_FLOAT_H
24812 #  include <float.h>
24813 #endif
24815 #if HAVE_IEEEFP_H
24816 #  include <ieeefp.h>
24817 #endif
24819 #if HAVE_FP_CLASS_H
24820 #  include <fp_class.h>
24821 #endif
24823 /* Solaris */
24824 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24825 #  define HAVE_ISINF 1
24826 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24827 #endif
24829 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24830 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24831 #  undef isnan
24832 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24833 #endif
24835 /* Digital UNIX */
24836 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24837 #  define HAVE_ISINF 1
24838 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24839 #endif
24841 /* AIX */
24842 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24843 #  define HAVE_ISINF 1
24844 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24845 #endif
24847 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24848 #  define HAVE_ISINF 1
24849 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24850 #endif
24852 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24853 #  define HAVE_ISINF 1
24854 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24855 #endif
24857 #include <stdio.h>
24858 int main(void){
24859     double rrdnan,rrdinf,rrdc,rrdzero;
24860     fpsetmask(0);
24861     /* some math to see if we get a floating point exception */
24862     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24863     rrdnan=0.0/rrdzero; /* especially here */
24864     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24865                   /* at run time without sig fpe */
24866     rrdc = rrdinf + rrdnan;
24867     rrdc = rrdinf / rrdnan;
24868     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24869     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24870     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24871     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24872     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24873     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24874     return 0;
24875  }
24876 _ACEOF
24877 rm -f conftest$ac_exeext
24878 if { (ac_try="$ac_link"
24879 case "(($ac_try" in
24880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24881   *) ac_try_echo=$ac_try;;
24882 esac
24883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24884 $as_echo "$ac_try_echo") >&5
24885   (eval "$ac_link") 2>&5
24886   ac_status=$?
24887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24889   { (case "(($ac_try" in
24890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891   *) ac_try_echo=$ac_try;;
24892 esac
24893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24894 $as_echo "$ac_try_echo") >&5
24895   (eval "$ac_try") 2>&5
24896   ac_status=$?
24897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898   (exit $ac_status); }; }; then
24899   rd_cv_ieee_mask=yes
24900 else
24901   $as_echo "$as_me: program exited with status $ac_status" >&5
24902 $as_echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24905 ( exit $ac_status )
24906 rd_cv_ieee_mask=no
24908 rm -rf conftest.dSYM
24909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24915 if test x${rd_cv_ieee_mask} = "xyes"; then
24916  { $as_echo "$as_me:$LINENO: result: yes" >&5
24917 $as_echo "yes" >&6; }
24918  cat >>confdefs.h <<\_ACEOF
24919 #define MUST_DISABLE_FPMASK 1
24920 _ACEOF
24922                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
24923 else
24924  { $as_echo "$as_me:$LINENO: result: no" >&5
24925 $as_echo "no" >&6; }
24927 { $as_echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
24928 $as_echo_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... " >&6; }
24929 if test "${rd_cv_ieee_sigfpe+set}" = set; then
24930   $as_echo_n "(cached) " >&6
24931 else
24932   if test "$cross_compiling" = yes; then
24933   :
24934 else
24935   cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941 #include <signal.h>
24943 #if HAVE_MATH_H
24944 #  include <math.h>
24945 #endif
24947 #if HAVE_FLOAT_H
24948 #  include <float.h>
24949 #endif
24951 #if HAVE_IEEEFP_H
24952 #  include <ieeefp.h>
24953 #endif
24955 #if HAVE_FP_CLASS_H
24956 #  include <fp_class.h>
24957 #endif
24959 /* Solaris */
24960 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24961 #  define HAVE_ISINF 1
24962 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24963 #endif
24965 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24966 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24967 #  undef isnan
24968 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24969 #endif
24971 /* Digital UNIX */
24972 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24973 #  define HAVE_ISINF 1
24974 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24975 #endif
24977 /* AIX */
24978 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24979 #  define HAVE_ISINF 1
24980 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24981 #endif
24983 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24984 #  define HAVE_ISINF 1
24985 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24986 #endif
24988 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24989 #  define HAVE_ISINF 1
24990 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24991 #endif
24993 #include <stdio.h>
24994 int main(void){
24995     double rrdnan,rrdinf,rrdc,rrdzero;
24996     signal(SIGFPE,SIG_IGN);
24997     /* some math to see if we get a floating point exception */
24998     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24999     rrdnan=0.0/rrdzero; /* especially here */
25000     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25001                   /* at run time without sig fpe */
25002     rrdc = rrdinf + rrdnan;
25003     rrdc = rrdinf / rrdnan;
25004     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25005     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25006     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25007     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25008     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25009     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25010     return 0;
25011  }
25012 _ACEOF
25013 rm -f conftest$ac_exeext
25014 if { (ac_try="$ac_link"
25015 case "(($ac_try" in
25016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017   *) ac_try_echo=$ac_try;;
25018 esac
25019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25020 $as_echo "$ac_try_echo") >&5
25021   (eval "$ac_link") 2>&5
25022   ac_status=$?
25023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25025   { (case "(($ac_try" in
25026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027   *) ac_try_echo=$ac_try;;
25028 esac
25029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25030 $as_echo "$ac_try_echo") >&5
25031   (eval "$ac_try") 2>&5
25032   ac_status=$?
25033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); }; }; then
25035   rd_cv_ieee_sigfpe=yes
25036 else
25037   $as_echo "$as_me: program exited with status $ac_status" >&5
25038 $as_echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25041 ( exit $ac_status )
25042 rd_cv_ieee_sigfpe=no
25044 rm -rf conftest.dSYM
25045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25051 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
25052  { $as_echo "$as_me:$LINENO: result: yes" >&5
25053 $as_echo "yes" >&6; }
25054  cat >>confdefs.h <<\_ACEOF
25055 #define MUST_DISABLE_SIGFPE 1
25056 _ACEOF
25058                    PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
25059 else
25060  { $as_echo "$as_me:$LINENO: result: no" >&5
25061 $as_echo "no" >&6; }
25062  { { $as_echo "$as_me:$LINENO: error:
25063 Your Compiler does not do propper IEEE math ... Please find out how to
25064 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
25065 Check config.log to see what went wrong ...
25066 " >&5
25067 $as_echo "$as_me: error:
25068 Your Compiler does not do propper IEEE math ... Please find out how to
25069 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
25070 Check config.log to see what went wrong ...
25071 " >&2;}
25072    { (exit 1); exit 1; }; }
25104 ac_ext=c
25105 ac_cpp='$CPP $CPPFLAGS'
25106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25114 case $TERM in
25115        #   for the most important terminal types we directly know the sequences
25116        xterm|xterm*|vt220|vt220*)
25117                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25118                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25119        ;;
25120        vt100|vt100*|cygwin)
25121                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25122                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25123        ;;
25124        *)
25125                T_MD=''
25126                T_ME=''
25127        ;;
25128 esac
25129   { $as_echo "$as_me:$LINENO: result: " >&5
25130 $as_echo "" >&6; }
25131   { $as_echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
25132 $as_echo "${T_MD}Resolve Portability Issues${T_ME}" >&6; }
25136 { $as_echo "$as_me:$LINENO: checking if msync with MS_ASYNC updates the files mtime" >&5
25137 $as_echo_n "checking if msync with MS_ASYNC updates the files mtime... " >&6; }
25138 if test "${rd_cv_ms_async+set}" = set; then
25139   $as_echo_n "(cached) " >&6
25140 else
25141   if test "$cross_compiling" = yes; then
25142   :
25143 else
25144   cat >conftest.$ac_ext <<_ACEOF
25145 /* confdefs.h.  */
25146 _ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h.  */
25151 #include <fcntl.h>
25152 #include <sys/types.h>
25153 #include <sys/stat.h>
25154 #include <unistd.h>
25155 #include <stdio.h>
25156 #include <sys/mman.h>
25157 #include <stdlib.h>
25158 #include <utime.h>
25159 int main(void){
25160         int fd;
25161         struct stat stbuf;
25162         char *addr;
25163         int res;
25164         char temp[] = "mmaptestXXXXXX";
25165         struct utimbuf newtime;
25167         time_t create_ts;
25168         fd = mkstemp(temp);
25169         if (fd == -1){
25170             perror(temp);
25171             return 1;
25172         }
25173         write(fd,"12345\n", 6);
25174         stat(temp, &stbuf);
25175         create_ts = stbuf.st_mtime;
25176         newtime.actime = 0;
25177         newtime.modtime = 0;
25178         utime(temp,&newtime);
25179         addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
25180         if (addr == MAP_FAILED) {
25181             perror("mmap");
25182             goto bad_exit;
25183         }
25184         addr[0]='x';
25185         res = msync(addr, 4, MS_ASYNC);
25186         if (res == -1) {
25187            perror("msync");
25188            goto bad_exit;
25189         }
25190         res = close(fd);
25191         if (res == -1) {
25192            perror("close");
25193            goto bad_exit;
25194         }
25195         /* The ASYNC means that we schedule the msync and return immediately.
25196            Since we want to see if the modification time is updated upon
25197            msync(), we have to make sure that our asynchronous request
25198            completes before we stat below. In a real application, the
25199            request would be completed at a random time in the future
25200            but for this test we do not want to wait an arbitrary amount of
25201            time, so force a commit now.  */
25202         sync();
25203         stat(temp, &stbuf);
25204         if (create_ts > stbuf.st_mtime){
25205            goto bad_exit;
25206         }
25207         unlink(temp);
25208         return 0;
25209      bad_exit:
25210         unlink(temp);
25211         return 1;
25214 _ACEOF
25215 rm -f conftest$ac_exeext
25216 if { (ac_try="$ac_link"
25217 case "(($ac_try" in
25218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219   *) ac_try_echo=$ac_try;;
25220 esac
25221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25222 $as_echo "$ac_try_echo") >&5
25223   (eval "$ac_link") 2>&5
25224   ac_status=$?
25225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25227   { (case "(($ac_try" in
25228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229   *) ac_try_echo=$ac_try;;
25230 esac
25231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25232 $as_echo "$ac_try_echo") >&5
25233   (eval "$ac_try") 2>&5
25234   ac_status=$?
25235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); }; }; then
25237   rd_cv_ms_async=ok
25238 else
25239   $as_echo "$as_me: program exited with status $ac_status" >&5
25240 $as_echo "$as_me: failed program was:" >&5
25241 sed 's/^/| /' conftest.$ac_ext >&5
25243 ( exit $ac_status )
25244 rd_cv_ms_async=broken
25246 rm -rf conftest.dSYM
25247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25255 if test "${rd_cv_ms_async}" = "ok"; then
25256  { $as_echo "$as_me:$LINENO: result: yes" >&5
25257 $as_echo "yes" >&6; }
25258 else
25260 cat >>confdefs.h <<_ACEOF
25261 #define HAVE_BROKEN_MS_ASYNC 1
25262 _ACEOF
25264  { $as_echo "$as_me:$LINENO: result: no" >&5
25265 $as_echo "no" >&6; }
25266  { $as_echo "$as_me:$LINENO: WARNING: With mmap access, your platform fails to update the files" >&5
25267 $as_echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
25268  { $as_echo "$as_me:$LINENO: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
25269 $as_echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
25270  { $as_echo "$as_me:$LINENO: WARNING: file it opens for rw access." >&5
25271 $as_echo "$as_me: WARNING: file it opens for rw access." >&2;}
25272  sleep 2
25279 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
25280 $as_echo_n "checking for opterr... " >&6; }
25281 if test "${rd_cv_var_int_opterr+set}" = set; then
25282   $as_echo_n "(cached) " >&6
25283 else
25284   cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h.  */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h.  */
25290 #include <unistd.h>
25291 int
25292 main ()
25294 extern int opterr; opterr = 1;
25295   ;
25296   return 0;
25298 _ACEOF
25299 rm -f conftest.$ac_objext conftest$ac_exeext
25300 if { (ac_try="$ac_link"
25301 case "(($ac_try" in
25302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303   *) ac_try_echo=$ac_try;;
25304 esac
25305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25306 $as_echo "$ac_try_echo") >&5
25307   (eval "$ac_link") 2>conftest.er1
25308   ac_status=$?
25309   grep -v '^ *+' conftest.er1 >conftest.err
25310   rm -f conftest.er1
25311   cat conftest.err >&5
25312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313   (exit $ac_status); } && {
25314          test -z "$ac_c_werror_flag" ||
25315          test ! -s conftest.err
25316        } && test -s conftest$ac_exeext && {
25317          test "$cross_compiling" = yes ||
25318          $as_test_x conftest$ac_exeext
25319        }; then
25320   rd_cv_var_int_opterr=yes
25321 else
25322   $as_echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25325         rd_cv_var_int_opterr=no
25328 rm -rf conftest.dSYM
25329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25330       conftest$ac_exeext conftest.$ac_ext
25332 { $as_echo "$as_me:$LINENO: result: $rd_cv_var_int_opterr" >&5
25333 $as_echo "$rd_cv_var_int_opterr" >&6; }
25334 if test x"$rd_cv_var_int_opterr" = x"yes"; then
25336 cat >>confdefs.h <<\_ACEOF
25337 #define HAVE_INT_OPTERR 1
25338 _ACEOF
25342 build_getopt=no
25343 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
25344 { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
25345 $as_echo_n "checking for getopt_long... " >&6; }
25346 if test "${ac_cv_func_getopt_long+set}" = set; then
25347   $as_echo_n "(cached) " >&6
25348 else
25349   cat >conftest.$ac_ext <<_ACEOF
25350 /* confdefs.h.  */
25351 _ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h.  */
25355 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
25356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25357 #define getopt_long innocuous_getopt_long
25359 /* System header to define __stub macros and hopefully few prototypes,
25360     which can conflict with char getopt_long (); below.
25361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25362     <limits.h> exists even on freestanding compilers.  */
25364 #ifdef __STDC__
25365 # include <limits.h>
25366 #else
25367 # include <assert.h>
25368 #endif
25370 #undef getopt_long
25372 /* Override any GCC internal prototype to avoid an error.
25373    Use char because int might match the return type of a GCC
25374    builtin and then its argument prototype would still apply.  */
25375 #ifdef __cplusplus
25376 extern "C"
25377 #endif
25378 char getopt_long ();
25379 /* The GNU C library defines this for functions which it implements
25380     to always fail with ENOSYS.  Some functions are actually named
25381     something starting with __ and the normal name is an alias.  */
25382 #if defined __stub_getopt_long || defined __stub___getopt_long
25383 choke me
25384 #endif
25386 int
25387 main ()
25389 return getopt_long ();
25390   ;
25391   return 0;
25393 _ACEOF
25394 rm -f conftest.$ac_objext conftest$ac_exeext
25395 if { (ac_try="$ac_link"
25396 case "(($ac_try" in
25397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398   *) ac_try_echo=$ac_try;;
25399 esac
25400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25401 $as_echo "$ac_try_echo") >&5
25402   (eval "$ac_link") 2>conftest.er1
25403   ac_status=$?
25404   grep -v '^ *+' conftest.er1 >conftest.err
25405   rm -f conftest.er1
25406   cat conftest.err >&5
25407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); } && {
25409          test -z "$ac_c_werror_flag" ||
25410          test ! -s conftest.err
25411        } && test -s conftest$ac_exeext && {
25412          test "$cross_compiling" = yes ||
25413          $as_test_x conftest$ac_exeext
25414        }; then
25415   ac_cv_func_getopt_long=yes
25416 else
25417   $as_echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420         ac_cv_func_getopt_long=no
25423 rm -rf conftest.dSYM
25424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25425       conftest$ac_exeext conftest.$ac_ext
25427 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
25428 $as_echo "$ac_cv_func_getopt_long" >&6; }
25429 if test "x$ac_cv_func_getopt_long" = x""yes; then
25430   :
25431 else
25433 RRD_GETOPT_LONG="getopt_long"
25434 build_getopt=yes
25439  if test $build_getopt = yes; then
25440   BUILD_GETOPT_TRUE=
25441   BUILD_GETOPT_FALSE='#'
25442 else
25443   BUILD_GETOPT_TRUE='#'
25444   BUILD_GETOPT_FALSE=
25449 { $as_echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
25450 $as_echo_n "checking if realloc can deal with NULL... " >&6; }
25451 if test "${rd_cv_null_realloc+set}" = set; then
25452   $as_echo_n "(cached) " >&6
25453 else
25454   if test "$cross_compiling" = yes; then
25455   :
25456 else
25457   cat >conftest.$ac_ext <<_ACEOF
25458 /* confdefs.h.  */
25459 _ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h.  */
25463 #include <stdlib.h>
25464               int main(void){
25465               char *x = NULL;
25466               x = realloc (x,10);
25467               if (x==NULL) return 1;
25468               return 0;
25469              }
25470 _ACEOF
25471 rm -f conftest$ac_exeext
25472 if { (ac_try="$ac_link"
25473 case "(($ac_try" in
25474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25475   *) ac_try_echo=$ac_try;;
25476 esac
25477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25478 $as_echo "$ac_try_echo") >&5
25479   (eval "$ac_link") 2>&5
25480   ac_status=$?
25481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25483   { (case "(($ac_try" in
25484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485   *) ac_try_echo=$ac_try;;
25486 esac
25487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25488 $as_echo "$ac_try_echo") >&5
25489   (eval "$ac_try") 2>&5
25490   ac_status=$?
25491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); }; }; then
25493   rd_cv_null_realloc=yes
25494 else
25495   $as_echo "$as_me: program exited with status $ac_status" >&5
25496 $as_echo "$as_me: failed program was:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25499 ( exit $ac_status )
25500 rd_cv_null_realloc=nope
25502 rm -rf conftest.dSYM
25503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25508 { $as_echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
25509 $as_echo "$rd_cv_null_realloc" >&6; }
25511 if test x"$rd_cv_null_realloc" = xnope; then
25512 cat >>confdefs.h <<\_ACEOF
25513 #define NO_NULL_REALLOC 1
25514 _ACEOF
25518 ac_ext=c
25519 ac_cpp='$CPP $CPPFLAGS'
25520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25524 { $as_echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
25525 $as_echo_n "checking if ctime_r need special care to act posixly correct... " >&6; }
25526 cat >conftest.$ac_ext <<_ACEOF
25527 /* confdefs.h.  */
25528 _ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h.  */
25532 #include <time.h>
25533 int
25534 main ()
25536 ctime_r(NULL,NULL,0)
25538   ;
25539   return 0;
25541 _ACEOF
25542 rm -f conftest.$ac_objext conftest$ac_exeext
25543 if { (ac_try="$ac_link"
25544 case "(($ac_try" in
25545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546   *) ac_try_echo=$ac_try;;
25547 esac
25548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25549 $as_echo "$ac_try_echo") >&5
25550   (eval "$ac_link") 2>conftest.er1
25551   ac_status=$?
25552   grep -v '^ *+' conftest.er1 >conftest.err
25553   rm -f conftest.er1
25554   cat conftest.err >&5
25555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556   (exit $ac_status); } && {
25557          test -z "$ac_c_werror_flag" ||
25558          test ! -s conftest.err
25559        } && test -s conftest$ac_exeext && {
25560          test "$cross_compiling" = yes ||
25561          $as_test_x conftest$ac_exeext
25562        }; then
25563    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
25564       cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h.  */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h.  */
25570 #include <time.h>
25571 int
25572 main ()
25574 ctime_r(NULL,NULL)
25576   ;
25577   return 0;
25579 _ACEOF
25580 rm -f conftest.$ac_objext conftest$ac_exeext
25581 if { (ac_try="$ac_link"
25582 case "(($ac_try" in
25583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584   *) ac_try_echo=$ac_try;;
25585 esac
25586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25587 $as_echo "$ac_try_echo") >&5
25588   (eval "$ac_link") 2>conftest.er1
25589   ac_status=$?
25590   grep -v '^ *+' conftest.er1 >conftest.err
25591   rm -f conftest.er1
25592   cat conftest.err >&5
25593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); } && {
25595          test -z "$ac_c_werror_flag" ||
25596          test ! -s conftest.err
25597        } && test -s conftest$ac_exeext && {
25598          test "$cross_compiling" = yes ||
25599          $as_test_x conftest$ac_exeext
25600        }; then
25601   { $as_echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
25602 $as_echo "yes, this seems to be solaris style" >&6; }
25603 else
25604   $as_echo "$as_me: failed program was:" >&5
25605 sed 's/^/| /' conftest.$ac_ext >&5
25607         { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
25608 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
25609    { (exit 1); exit 1; }; }
25613 rm -rf conftest.dSYM
25614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25615       conftest$ac_exeext conftest.$ac_ext
25617 else
25618   $as_echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25621          cat >conftest.$ac_ext <<_ACEOF
25622 /* confdefs.h.  */
25623 _ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h.  */
25627 #include <time.h>
25628 int
25629 main ()
25631 ctime_r(NULL,NULL)
25633   ;
25634   return 0;
25636 _ACEOF
25637 rm -f conftest.$ac_objext conftest$ac_exeext
25638 if { (ac_try="$ac_link"
25639 case "(($ac_try" in
25640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641   *) ac_try_echo=$ac_try;;
25642 esac
25643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644 $as_echo "$ac_try_echo") >&5
25645   (eval "$ac_link") 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } && {
25652          test -z "$ac_c_werror_flag" ||
25653          test ! -s conftest.err
25654        } && test -s conftest$ac_exeext && {
25655          test "$cross_compiling" = yes ||
25656          $as_test_x conftest$ac_exeext
25657        }; then
25658   { $as_echo "$as_me:$LINENO: result: no" >&5
25659 $as_echo "no" >&6; }
25660 else
25661   $as_echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25664         { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
25665 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
25666    { (exit 1); exit 1; }; }
25670 rm -rf conftest.dSYM
25671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25672       conftest$ac_exeext conftest.$ac_ext
25677 rm -rf conftest.dSYM
25678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25679       conftest$ac_exeext conftest.$ac_ext
25680 ac_ext=c
25681 ac_cpp='$CPP $CPPFLAGS'
25682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25691 if test $enable_pthread != no; then
25694 ac_ext=c
25695 ac_cpp='$CPP $CPPFLAGS'
25696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25700 acx_pthread_ok=no
25702 # We used to check for pthread.h first, but this fails if pthread.h
25703 # requires special compiler flags (e.g. on True64 or Sequent).
25704 # It gets checked for in the link test anyway.
25706 # First of all, check if the user has set any of the PTHREAD_LIBS,
25707 # etcetera environment variables, and if threads linking works using
25708 # them:
25709 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
25710         save_CFLAGS="$CFLAGS"
25711         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25712         save_LIBS="$LIBS"
25713         LIBS="$PTHREAD_LIBS $LIBS"
25714         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
25715 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
25716         cat >conftest.$ac_ext <<_ACEOF
25717 /* confdefs.h.  */
25718 _ACEOF
25719 cat confdefs.h >>conftest.$ac_ext
25720 cat >>conftest.$ac_ext <<_ACEOF
25721 /* end confdefs.h.  */
25723 /* Override any GCC internal prototype to avoid an error.
25724    Use char because int might match the return type of a GCC
25725    builtin and then its argument prototype would still apply.  */
25726 #ifdef __cplusplus
25727 extern "C"
25728 #endif
25729 char pthread_join ();
25730 int
25731 main ()
25733 return pthread_join ();
25734   ;
25735   return 0;
25737 _ACEOF
25738 rm -f conftest.$ac_objext conftest$ac_exeext
25739 if { (ac_try="$ac_link"
25740 case "(($ac_try" in
25741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742   *) ac_try_echo=$ac_try;;
25743 esac
25744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25745 $as_echo "$ac_try_echo") >&5
25746   (eval "$ac_link") 2>conftest.er1
25747   ac_status=$?
25748   grep -v '^ *+' conftest.er1 >conftest.err
25749   rm -f conftest.er1
25750   cat conftest.err >&5
25751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752   (exit $ac_status); } && {
25753          test -z "$ac_c_werror_flag" ||
25754          test ! -s conftest.err
25755        } && test -s conftest$ac_exeext && {
25756          test "$cross_compiling" = yes ||
25757          $as_test_x conftest$ac_exeext
25758        }; then
25759   acx_pthread_ok=yes
25760 else
25761   $as_echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25767 rm -rf conftest.dSYM
25768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25769       conftest$ac_exeext conftest.$ac_ext
25770         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
25771 $as_echo "$acx_pthread_ok" >&6; }
25772         if test x"$acx_pthread_ok" = xno; then
25773                 PTHREAD_LIBS=""
25774                 PTHREAD_CFLAGS=""
25775         fi
25776         LIBS="$save_LIBS"
25777         CFLAGS="$save_CFLAGS"
25780 # We must check for the threads library under a number of different
25781 # names; the ordering is very important because some systems
25782 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25783 # libraries is broken (non-POSIX).
25785 # Create a list of thread flags to try.  Items starting with a "-" are
25786 # C compiler flags, and other items are library names, except for "none"
25787 # which indicates that we try without any flags at all, and "pthread-config"
25788 # which is a program returning the flags for the Pth emulation library.
25790 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25792 # The ordering *is* (sometimes) important.  Some notes on the
25793 # individual items follow:
25795 # pthreads: AIX (must check this before -lpthread)
25796 # none: in case threads are in libc; should be tried before -Kthread and
25797 #       other compiler flags to prevent continual compiler warnings
25798 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25799 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25800 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25801 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
25802 # -pthreads: Solaris/gcc
25803 # -mthreads: Mingw32/gcc, Lynx/gcc
25804 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25805 #      doesn't hurt to check since this sometimes defines pthreads too;
25806 #      also defines -D_REENTRANT)
25807 # pthread: Linux, etcetera
25808 # --thread-safe: KAI C++
25809 # pthread-config: use pthread-config program (for GNU Pth library)
25811 case "${host_cpu}-${host_os}" in
25812         *solaris*)
25814         # On Solaris (at least, for some versions), libc contains stubbed
25815         # (non-functional) versions of the pthreads routines, so link-based
25816         # tests will erroneously succeed.  (We need to link with -pthread or
25817         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
25818         # a function called by this macro, so we could check for that, but
25819         # who knows whether they'll stub that too in a future libc.)  So,
25820         # we'll just look for -pthreads and -lpthread first:
25822         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
25823         ;;
25824 esac
25826 if test x"$acx_pthread_ok" = xno; then
25827 for flag in $acx_pthread_flags; do
25829         case $flag in
25830                 none)
25831                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
25832 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
25833                 ;;
25835                 -*)
25836                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
25837 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
25838                 PTHREAD_CFLAGS="$flag"
25839                 ;;
25841                 pthread-config)
25842                 # Extract the first word of "pthread-config", so it can be a program name with args.
25843 set dummy pthread-config; ac_word=$2
25844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25845 $as_echo_n "checking for $ac_word... " >&6; }
25846 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
25847   $as_echo_n "(cached) " >&6
25848 else
25849   if test -n "$acx_pthread_config"; then
25850   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
25851 else
25852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25853 for as_dir in $PATH
25855   IFS=$as_save_IFS
25856   test -z "$as_dir" && as_dir=.
25857   for ac_exec_ext in '' $ac_executable_extensions; do
25858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25859     ac_cv_prog_acx_pthread_config="yes"
25860     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25861     break 2
25862   fi
25863 done
25864 done
25865 IFS=$as_save_IFS
25867   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
25870 acx_pthread_config=$ac_cv_prog_acx_pthread_config
25871 if test -n "$acx_pthread_config"; then
25872   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
25873 $as_echo "$acx_pthread_config" >&6; }
25874 else
25875   { $as_echo "$as_me:$LINENO: result: no" >&5
25876 $as_echo "no" >&6; }
25880                 if test x"$acx_pthread_config" = xno; then continue; fi
25881                 PTHREAD_CFLAGS="`pthread-config --cflags`"
25882                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25883                 ;;
25885                 *)
25886                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
25887 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
25888                 PTHREAD_LIBS="-l$flag"
25889                 ;;
25890         esac
25892         save_LIBS="$LIBS"
25893         save_CFLAGS="$CFLAGS"
25894         LIBS="$PTHREAD_LIBS $LIBS"
25895         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25897         # Check for various functions.  We must include pthread.h,
25898         # since some functions may be macros.  (On the Sequent, we
25899         # need a special flag -Kthread to make this header compile.)
25900         # We check for pthread_join because it is in -lpthread on IRIX
25901         # while pthread_create is in libc.  We check for pthread_attr_init
25902         # due to DEC craziness with -lpthreads.  We check for
25903         # pthread_cleanup_push because it is one of the few pthread
25904         # functions on Solaris that doesn't have a non-functional libc stub.
25905         # We try pthread_create on general principles.
25906         cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 #include <pthread.h>
25913 int
25914 main ()
25916 pthread_t th; pthread_join(th, 0);
25917                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
25918                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
25919   ;
25920   return 0;
25922 _ACEOF
25923 rm -f conftest.$ac_objext conftest$ac_exeext
25924 if { (ac_try="$ac_link"
25925 case "(($ac_try" in
25926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927   *) ac_try_echo=$ac_try;;
25928 esac
25929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25930 $as_echo "$ac_try_echo") >&5
25931   (eval "$ac_link") 2>conftest.er1
25932   ac_status=$?
25933   grep -v '^ *+' conftest.er1 >conftest.err
25934   rm -f conftest.er1
25935   cat conftest.err >&5
25936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } && {
25938          test -z "$ac_c_werror_flag" ||
25939          test ! -s conftest.err
25940        } && test -s conftest$ac_exeext && {
25941          test "$cross_compiling" = yes ||
25942          $as_test_x conftest$ac_exeext
25943        }; then
25944   acx_pthread_ok=yes
25945 else
25946   $as_echo "$as_me: failed program was:" >&5
25947 sed 's/^/| /' conftest.$ac_ext >&5
25952 rm -rf conftest.dSYM
25953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25954       conftest$ac_exeext conftest.$ac_ext
25956         LIBS="$save_LIBS"
25957         CFLAGS="$save_CFLAGS"
25959         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
25960 $as_echo "$acx_pthread_ok" >&6; }
25961         if test "x$acx_pthread_ok" = xyes; then
25962                 break;
25963         fi
25965         PTHREAD_LIBS=""
25966         PTHREAD_CFLAGS=""
25967 done
25970 # Various other checks:
25971 if test "x$acx_pthread_ok" = xyes; then
25972         save_LIBS="$LIBS"
25973         LIBS="$PTHREAD_LIBS $LIBS"
25974         save_CFLAGS="$CFLAGS"
25975         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25977         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25978         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
25979 $as_echo_n "checking for joinable pthread attribute... " >&6; }
25980         attr_name=unknown
25981         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25982             cat >conftest.$ac_ext <<_ACEOF
25983 /* confdefs.h.  */
25984 _ACEOF
25985 cat confdefs.h >>conftest.$ac_ext
25986 cat >>conftest.$ac_ext <<_ACEOF
25987 /* end confdefs.h.  */
25988 #include <pthread.h>
25989 int
25990 main ()
25992 int attr=$attr;
25993   ;
25994   return 0;
25996 _ACEOF
25997 rm -f conftest.$ac_objext conftest$ac_exeext
25998 if { (ac_try="$ac_link"
25999 case "(($ac_try" in
26000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001   *) ac_try_echo=$ac_try;;
26002 esac
26003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26004 $as_echo "$ac_try_echo") >&5
26005   (eval "$ac_link") 2>conftest.er1
26006   ac_status=$?
26007   grep -v '^ *+' conftest.er1 >conftest.err
26008   rm -f conftest.er1
26009   cat conftest.err >&5
26010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); } && {
26012          test -z "$ac_c_werror_flag" ||
26013          test ! -s conftest.err
26014        } && test -s conftest$ac_exeext && {
26015          test "$cross_compiling" = yes ||
26016          $as_test_x conftest$ac_exeext
26017        }; then
26018   attr_name=$attr; break
26019 else
26020   $as_echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26026 rm -rf conftest.dSYM
26027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26028       conftest$ac_exeext conftest.$ac_ext
26029         done
26030         { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
26031 $as_echo "$attr_name" >&6; }
26032         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
26034 cat >>confdefs.h <<_ACEOF
26035 #define PTHREAD_CREATE_JOINABLE $attr_name
26036 _ACEOF
26038         fi
26040         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
26041 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
26042         x_rflag=no
26043         case "${host_cpu}-${host_os}" in
26044             *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
26045             *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
26046             *-linux* | *-k*bsd*-gnu*)
26047             if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
26048                 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
26049                 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
26050                 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
26051             fi;;
26052         esac
26053         { $as_echo "$as_me:$LINENO: result: ${x_rflag}" >&5
26054 $as_echo "${x_rflag}" >&6; }
26055         if test "x$x_rflag" != xno; then
26056             PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
26057         fi
26059         LIBS="$save_LIBS"
26060         CFLAGS="$save_CFLAGS"
26062         # More AIX lossage: must compile with cc_r
26063         # Extract the first word of "cc_r", so it can be a program name with args.
26064 set dummy cc_r; ac_word=$2
26065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26066 $as_echo_n "checking for $ac_word... " >&6; }
26067 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
26068   $as_echo_n "(cached) " >&6
26069 else
26070   if test -n "$PTHREAD_CC"; then
26071   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
26072 else
26073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26074 for as_dir in $PATH
26076   IFS=$as_save_IFS
26077   test -z "$as_dir" && as_dir=.
26078   for ac_exec_ext in '' $ac_executable_extensions; do
26079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26080     ac_cv_prog_PTHREAD_CC="cc_r"
26081     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26082     break 2
26083   fi
26084 done
26085 done
26086 IFS=$as_save_IFS
26088   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
26091 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
26092 if test -n "$PTHREAD_CC"; then
26093   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
26094 $as_echo "$PTHREAD_CC" >&6; }
26095 else
26096   { $as_echo "$as_me:$LINENO: result: no" >&5
26097 $as_echo "no" >&6; }
26101 else
26102         PTHREAD_CC="$CC"
26109 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26110 if test x"$acx_pthread_ok" = xyes; then
26112     MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
26113     MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
26115         :
26116 else
26117         acx_pthread_ok=no
26120 ac_ext=c
26121 ac_cpp='$CPP $CPPFLAGS'
26122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26130 if test  "x$x_rflag" != "xno"; then
26131    CPPFLAGS="$CPPFLAGS $x_rflag"
26134  if test $enable_pthread != no; then
26135   BUILD_MULTITHREAD_TRUE=
26136   BUILD_MULTITHREAD_FALSE='#'
26137 else
26138   BUILD_MULTITHREAD_TRUE='#'
26139   BUILD_MULTITHREAD_FALSE=
26143 ac_ext=c
26144 ac_cpp='$CPP $CPPFLAGS'
26145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26149 { $as_echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
26150 $as_echo_n "checking do we need malloc/malloc.h... " >&6; }
26151 cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157 #include <stdlib.h>
26158 int
26159 main ()
26161 malloc(1)
26163   ;
26164   return 0;
26166 _ACEOF
26167 rm -f conftest.$ac_objext conftest$ac_exeext
26168 if { (ac_try="$ac_link"
26169 case "(($ac_try" in
26170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26171   *) ac_try_echo=$ac_try;;
26172 esac
26173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26174 $as_echo "$ac_try_echo") >&5
26175   (eval "$ac_link") 2>conftest.er1
26176   ac_status=$?
26177   grep -v '^ *+' conftest.er1 >conftest.err
26178   rm -f conftest.er1
26179   cat conftest.err >&5
26180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); } && {
26182          test -z "$ac_c_werror_flag" ||
26183          test ! -s conftest.err
26184        } && test -s conftest$ac_exeext && {
26185          test "$cross_compiling" = yes ||
26186          $as_test_x conftest$ac_exeext
26187        }; then
26188    { $as_echo "$as_me:$LINENO: result: nope, works out of the box" >&5
26189 $as_echo "nope, works out of the box" >&6; }
26190 else
26191   $as_echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194          cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h.  */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h.  */
26200 #include <stdlib.h>
26201                   #include <malloc/malloc.h>
26202 int
26203 main ()
26205 malloc(1)
26207   ;
26208   return 0;
26210 _ACEOF
26211 rm -f conftest.$ac_objext conftest$ac_exeext
26212 if { (ac_try="$ac_link"
26213 case "(($ac_try" in
26214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26215   *) ac_try_echo=$ac_try;;
26216 esac
26217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26218 $as_echo "$ac_try_echo") >&5
26219   (eval "$ac_link") 2>conftest.er1
26220   ac_status=$?
26221   grep -v '^ *+' conftest.er1 >conftest.err
26222   rm -f conftest.er1
26223   cat conftest.err >&5
26224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); } && {
26226          test -z "$ac_c_werror_flag" ||
26227          test ! -s conftest.err
26228        } && test -s conftest$ac_exeext && {
26229          test "$cross_compiling" = yes ||
26230          $as_test_x conftest$ac_exeext
26231        }; then
26233            cat >>confdefs.h <<\_ACEOF
26234 #define MUST_HAVE_MALLOC_MALLOC_H 1
26235 _ACEOF
26237            { $as_echo "$as_me:$LINENO: result: yes we do" >&5
26238 $as_echo "yes we do" >&6; }
26239 else
26240   $as_echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26243         { { $as_echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
26244 $as_echo "$as_me: error: Can not figure how to compile malloc" >&2;}
26245    { (exit 1); exit 1; }; }
26249 rm -rf conftest.dSYM
26250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26251       conftest$ac_exeext conftest.$ac_ext
26256 rm -rf conftest.dSYM
26257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26258       conftest$ac_exeext conftest.$ac_ext
26259 ac_ext=c
26260 ac_cpp='$CPP $CPPFLAGS'
26261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26267 case $TERM in
26268        #   for the most important terminal types we directly know the sequences
26269        xterm|xterm*|vt220|vt220*)
26270                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
26271                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
26272        ;;
26273        vt100|vt100*|cygwin)
26274                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
26275                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
26276        ;;
26277        *)
26278                T_MD=''
26279                T_ME=''
26280        ;;
26281 esac
26282   { $as_echo "$as_me:$LINENO: result: " >&5
26283 $as_echo "" >&6; }
26284   { $as_echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
26285 $as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
26288 # Check whether --enable-libdbi was given.
26289 if test "${enable_libdbi+set}" = set; then
26290   enableval=$enable_libdbi; have_libdbi=no
26291 else
26293   XXX=$LIBS
26294   LIBS="$LIBS -ldbi -ldl"
26295   { $as_echo "$as_me:$LINENO: checking for libdbi" >&5
26296 $as_echo_n "checking for libdbi... " >&6; }
26297   cat >conftest.$ac_ext <<_ACEOF
26298 /* confdefs.h.  */
26299 _ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h.  */
26303 #include <dbi/dbi.h>
26304 int
26305 main ()
26307 dbi_initialize(NULL)
26309   ;
26310   return 0;
26313 _ACEOF
26314 rm -f conftest.$ac_objext conftest$ac_exeext
26315 if { (ac_try="$ac_link"
26316 case "(($ac_try" in
26317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318   *) ac_try_echo=$ac_try;;
26319 esac
26320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26321 $as_echo "$ac_try_echo") >&5
26322   (eval "$ac_link") 2>conftest.er1
26323   ac_status=$?
26324   grep -v '^ *+' conftest.er1 >conftest.err
26325   rm -f conftest.er1
26326   cat conftest.err >&5
26327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); } && {
26329          test -z "$ac_c_werror_flag" ||
26330          test ! -s conftest.err
26331        } && test -s conftest$ac_exeext && {
26332          test "$cross_compiling" = yes ||
26333          $as_test_x conftest$ac_exeext
26334        }; then
26336 cat >>confdefs.h <<\_ACEOF
26337 #define HAVE_LIBDBI 1
26338 _ACEOF
26340        { $as_echo "$as_me:$LINENO: result: yes" >&5
26341 $as_echo "yes" >&6; }
26342        have_libdbi=yes
26344 else
26345   $as_echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26348         LIBS=$XXX
26349        { $as_echo "$as_me:$LINENO: result: no" >&5
26350 $as_echo "no" >&6; }
26351        have_libdbi=no
26356 rm -rf conftest.dSYM
26357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26358       conftest$ac_exeext conftest.$ac_ext
26362  if test $have_libdbi != no; then
26363   BUILD_LIBDBI_TRUE=
26364   BUILD_LIBDBI_FALSE='#'
26365 else
26366   BUILD_LIBDBI_TRUE='#'
26367   BUILD_LIBDBI_FALSE=
26371  if test $enable_rrdcgi != no; then
26372   BUILD_RRDCGI_TRUE=
26373   BUILD_RRDCGI_FALSE='#'
26374 else
26375   BUILD_RRDCGI_TRUE='#'
26376   BUILD_RRDCGI_FALSE=
26381 CORE_LIBS="$LIBS"
26384  ac_ext=c
26385 ac_cpp='$CPP $CPPFLAGS'
26386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26390  EX_CHECK_STATE=NO
26391  ex_check_save_LIBS=${LIBS}
26392  ex_check_save_CPPFLAGS=${CPPFLAGS}
26393  ex_check_save_LDFLAGS=${LDFLAGS}
26394  if test "x""" != "x"; then
26395    CPPFLAGS="$CPPFLAGS -I"""
26396  fi
26397   { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
26398 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
26399 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
26400   $as_echo_n "(cached) " >&6
26401 else
26402   ac_check_lib_save_LIBS=$LIBS
26403 LIBS="-lcairo  $LIBS"
26404 cat >conftest.$ac_ext <<_ACEOF
26405 /* confdefs.h.  */
26406 _ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h.  */
26411 /* Override any GCC internal prototype to avoid an error.
26412    Use char because int might match the return type of a GCC
26413    builtin and then its argument prototype would still apply.  */
26414 #ifdef __cplusplus
26415 extern "C"
26416 #endif
26417 char cairo_font_options_create ();
26418 int
26419 main ()
26421 return cairo_font_options_create ();
26422   ;
26423   return 0;
26425 _ACEOF
26426 rm -f conftest.$ac_objext conftest$ac_exeext
26427 if { (ac_try="$ac_link"
26428 case "(($ac_try" in
26429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26430   *) ac_try_echo=$ac_try;;
26431 esac
26432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26433 $as_echo "$ac_try_echo") >&5
26434   (eval "$ac_link") 2>conftest.er1
26435   ac_status=$?
26436   grep -v '^ *+' conftest.er1 >conftest.err
26437   rm -f conftest.er1
26438   cat conftest.err >&5
26439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); } && {
26441          test -z "$ac_c_werror_flag" ||
26442          test ! -s conftest.err
26443        } && test -s conftest$ac_exeext && {
26444          test "$cross_compiling" = yes ||
26445          $as_test_x conftest$ac_exeext
26446        }; then
26447   ac_cv_lib_cairo_cairo_font_options_create=yes
26448 else
26449   $as_echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26452         ac_cv_lib_cairo_cairo_font_options_create=no
26455 rm -rf conftest.dSYM
26456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26457       conftest$ac_exeext conftest.$ac_ext
26458 LIBS=$ac_check_lib_save_LIBS
26460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
26461 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
26462 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
26464     if test "${ac_cv_header_cairo_h+set}" = set; then
26465   { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
26466 $as_echo_n "checking for cairo.h... " >&6; }
26467 if test "${ac_cv_header_cairo_h+set}" = set; then
26468   $as_echo_n "(cached) " >&6
26470 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
26471 $as_echo "$ac_cv_header_cairo_h" >&6; }
26472 else
26473   # Is the header compilable?
26474 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
26475 $as_echo_n "checking cairo.h usability... " >&6; }
26476 cat >conftest.$ac_ext <<_ACEOF
26477 /* confdefs.h.  */
26478 _ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h.  */
26482 $ac_includes_default
26483 #include <cairo.h>
26484 _ACEOF
26485 rm -f conftest.$ac_objext
26486 if { (ac_try="$ac_compile"
26487 case "(($ac_try" in
26488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26489   *) ac_try_echo=$ac_try;;
26490 esac
26491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26492 $as_echo "$ac_try_echo") >&5
26493   (eval "$ac_compile") 2>conftest.er1
26494   ac_status=$?
26495   grep -v '^ *+' conftest.er1 >conftest.err
26496   rm -f conftest.er1
26497   cat conftest.err >&5
26498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499   (exit $ac_status); } && {
26500          test -z "$ac_c_werror_flag" ||
26501          test ! -s conftest.err
26502        } && test -s conftest.$ac_objext; then
26503   ac_header_compiler=yes
26504 else
26505   $as_echo "$as_me: failed program was:" >&5
26506 sed 's/^/| /' conftest.$ac_ext >&5
26508         ac_header_compiler=no
26511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26513 $as_echo "$ac_header_compiler" >&6; }
26515 # Is the header present?
26516 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
26517 $as_echo_n "checking cairo.h presence... " >&6; }
26518 cat >conftest.$ac_ext <<_ACEOF
26519 /* confdefs.h.  */
26520 _ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h.  */
26524 #include <cairo.h>
26525 _ACEOF
26526 if { (ac_try="$ac_cpp conftest.$ac_ext"
26527 case "(($ac_try" in
26528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26529   *) ac_try_echo=$ac_try;;
26530 esac
26531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26532 $as_echo "$ac_try_echo") >&5
26533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26534   ac_status=$?
26535   grep -v '^ *+' conftest.er1 >conftest.err
26536   rm -f conftest.er1
26537   cat conftest.err >&5
26538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); } >/dev/null && {
26540          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26541          test ! -s conftest.err
26542        }; then
26543   ac_header_preproc=yes
26544 else
26545   $as_echo "$as_me: failed program was:" >&5
26546 sed 's/^/| /' conftest.$ac_ext >&5
26548   ac_header_preproc=no
26551 rm -f conftest.err conftest.$ac_ext
26552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26553 $as_echo "$ac_header_preproc" >&6; }
26555 # So?  What about this header?
26556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26557   yes:no: )
26558     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
26559 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26560     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
26561 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
26562     ac_header_preproc=yes
26563     ;;
26564   no:yes:* )
26565     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
26566 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
26567     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
26568 $as_echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
26569     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
26570 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
26571     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
26572 $as_echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26573     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
26574 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
26575     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
26576 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
26578     ;;
26579 esac
26580 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
26581 $as_echo_n "checking for cairo.h... " >&6; }
26582 if test "${ac_cv_header_cairo_h+set}" = set; then
26583   $as_echo_n "(cached) " >&6
26584 else
26585   ac_cv_header_cairo_h=$ac_header_preproc
26587 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
26588 $as_echo "$ac_cv_header_cairo_h" >&6; }
26591 if test "x$ac_cv_header_cairo_h" = x""yes; then
26592   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
26598  if test $EX_CHECK_STATE = NO; then
26599         for ac_prog in pkg-config
26601   # Extract the first word of "$ac_prog", so it can be a program name with args.
26602 set dummy $ac_prog; ac_word=$2
26603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26604 $as_echo_n "checking for $ac_word... " >&6; }
26605 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
26606   $as_echo_n "(cached) " >&6
26607 else
26608   if test -n "$PKGCONFIG"; then
26609   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
26610 else
26611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26612 for as_dir in $PATH
26614   IFS=$as_save_IFS
26615   test -z "$as_dir" && as_dir=.
26616   for ac_exec_ext in '' $ac_executable_extensions; do
26617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26618     ac_cv_prog_PKGCONFIG="$ac_prog"
26619     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26620     break 2
26621   fi
26622 done
26623 done
26624 IFS=$as_save_IFS
26628 PKGCONFIG=$ac_cv_prog_PKGCONFIG
26629 if test -n "$PKGCONFIG"; then
26630   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
26631 $as_echo "$PKGCONFIG" >&6; }
26632 else
26633   { $as_echo "$as_me:$LINENO: result: no" >&5
26634 $as_echo "no" >&6; }
26638   test -n "$PKGCONFIG" && break
26639 done
26640 test -n "$PKGCONFIG" || PKGCONFIG="no"
26642     if test "$PKGCONFIG" != "no"; then
26643           if $PKGCONFIG --exists cairo-png; then
26644              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
26645              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
26646              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
26647              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
26648                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
26649              { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
26650 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
26651 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
26652   $as_echo_n "(cached) " >&6
26653 else
26654   ac_check_lib_save_LIBS=$LIBS
26655 LIBS="-lcairo  $LIBS"
26656 cat >conftest.$ac_ext <<_ACEOF
26657 /* confdefs.h.  */
26658 _ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h.  */
26663 /* Override any GCC internal prototype to avoid an error.
26664    Use char because int might match the return type of a GCC
26665    builtin and then its argument prototype would still apply.  */
26666 #ifdef __cplusplus
26667 extern "C"
26668 #endif
26669 char cairo_font_options_create ();
26670 int
26671 main ()
26673 return cairo_font_options_create ();
26674   ;
26675   return 0;
26677 _ACEOF
26678 rm -f conftest.$ac_objext conftest$ac_exeext
26679 if { (ac_try="$ac_link"
26680 case "(($ac_try" in
26681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682   *) ac_try_echo=$ac_try;;
26683 esac
26684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26685 $as_echo "$ac_try_echo") >&5
26686   (eval "$ac_link") 2>conftest.er1
26687   ac_status=$?
26688   grep -v '^ *+' conftest.er1 >conftest.err
26689   rm -f conftest.er1
26690   cat conftest.err >&5
26691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); } && {
26693          test -z "$ac_c_werror_flag" ||
26694          test ! -s conftest.err
26695        } && test -s conftest$ac_exeext && {
26696          test "$cross_compiling" = yes ||
26697          $as_test_x conftest$ac_exeext
26698        }; then
26699   ac_cv_lib_cairo_cairo_font_options_create=yes
26700 else
26701   $as_echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26704         ac_cv_lib_cairo_cairo_font_options_create=no
26707 rm -rf conftest.dSYM
26708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26709       conftest$ac_exeext conftest.$ac_ext
26710 LIBS=$ac_check_lib_save_LIBS
26712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
26713 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
26714 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
26716                  unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
26717                  if test "${ac_cv_header_cairo_h+set}" = set; then
26718   { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
26719 $as_echo_n "checking for cairo.h... " >&6; }
26720 if test "${ac_cv_header_cairo_h+set}" = set; then
26721   $as_echo_n "(cached) " >&6
26723 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
26724 $as_echo "$ac_cv_header_cairo_h" >&6; }
26725 else
26726   # Is the header compilable?
26727 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
26728 $as_echo_n "checking cairo.h usability... " >&6; }
26729 cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h.  */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h.  */
26735 $ac_includes_default
26736 #include <cairo.h>
26737 _ACEOF
26738 rm -f conftest.$ac_objext
26739 if { (ac_try="$ac_compile"
26740 case "(($ac_try" in
26741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742   *) ac_try_echo=$ac_try;;
26743 esac
26744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26745 $as_echo "$ac_try_echo") >&5
26746   (eval "$ac_compile") 2>conftest.er1
26747   ac_status=$?
26748   grep -v '^ *+' conftest.er1 >conftest.err
26749   rm -f conftest.er1
26750   cat conftest.err >&5
26751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); } && {
26753          test -z "$ac_c_werror_flag" ||
26754          test ! -s conftest.err
26755        } && test -s conftest.$ac_objext; then
26756   ac_header_compiler=yes
26757 else
26758   $as_echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26761         ac_header_compiler=no
26764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26765 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26766 $as_echo "$ac_header_compiler" >&6; }
26768 # Is the header present?
26769 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
26770 $as_echo_n "checking cairo.h presence... " >&6; }
26771 cat >conftest.$ac_ext <<_ACEOF
26772 /* confdefs.h.  */
26773 _ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h.  */
26777 #include <cairo.h>
26778 _ACEOF
26779 if { (ac_try="$ac_cpp conftest.$ac_ext"
26780 case "(($ac_try" in
26781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782   *) ac_try_echo=$ac_try;;
26783 esac
26784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26785 $as_echo "$ac_try_echo") >&5
26786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26787   ac_status=$?
26788   grep -v '^ *+' conftest.er1 >conftest.err
26789   rm -f conftest.er1
26790   cat conftest.err >&5
26791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); } >/dev/null && {
26793          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26794          test ! -s conftest.err
26795        }; then
26796   ac_header_preproc=yes
26797 else
26798   $as_echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26801   ac_header_preproc=no
26804 rm -f conftest.err conftest.$ac_ext
26805 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26806 $as_echo "$ac_header_preproc" >&6; }
26808 # So?  What about this header?
26809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26810   yes:no: )
26811     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
26812 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26813     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
26814 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
26815     ac_header_preproc=yes
26816     ;;
26817   no:yes:* )
26818     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
26819 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
26820     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
26821 $as_echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
26822     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
26823 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
26824     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
26825 $as_echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26826     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
26827 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
26828     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
26829 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
26831     ;;
26832 esac
26833 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
26834 $as_echo_n "checking for cairo.h... " >&6; }
26835 if test "${ac_cv_header_cairo_h+set}" = set; then
26836   $as_echo_n "(cached) " >&6
26837 else
26838   ac_cv_header_cairo_h=$ac_header_preproc
26840 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
26841 $as_echo "$ac_cv_header_cairo_h" >&6; }
26844 if test "x$ac_cv_header_cairo_h" = x""yes; then
26845   EX_CHECK_STATE=YES
26852           else
26853              { $as_echo "$as_me:$LINENO: WARNING:
26854 ----------------------------------------------------------------------------
26855 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
26856   You may want to set the PKG_CONFIG_PATH variable to point to its
26857   location.
26858 ----------------------------------------------------------------------------
26859                         " >&5
26860 $as_echo "$as_me: WARNING:
26861 ----------------------------------------------------------------------------
26862 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
26863   You may want to set the PKG_CONFIG_PATH variable to point to its
26864   location.
26865 ----------------------------------------------------------------------------
26866                         " >&2;}
26867            fi
26868      fi
26869   fi
26871   if test ${EX_CHECK_STATE} = NO; then
26872      { $as_echo "$as_me:$LINENO: WARNING:
26873 ----------------------------------------------------------------------------
26874 * I could not find a working copy of cairo-png. Check config.log for hints on why
26875   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26876   so that compiler and the linker can find libcairo and its header files. If
26877   you have not installed cairo-png, you can get it either from its original home on
26879      http://cairographics.org/releases/
26881   You can find also find an archive copy on
26883      http://oss.oetiker.ch/rrdtool/pub/libs
26885   The last tested version of cairo-png is 1.4.6.
26887        LIBS=$LIBS
26888    LDFLAGS=$LDFLAGS
26889   CPPFLAGS=$CPPFLAGS
26891 ----------------------------------------------------------------------------
26892                 " >&5
26893 $as_echo "$as_me: WARNING:
26894 ----------------------------------------------------------------------------
26895 * I could not find a working copy of cairo-png. Check config.log for hints on why
26896   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26897   so that compiler and the linker can find libcairo and its header files. If
26898   you have not installed cairo-png, you can get it either from its original home on
26900      http://cairographics.org/releases/
26902   You can find also find an archive copy on
26904      http://oss.oetiker.ch/rrdtool/pub/libs
26906   The last tested version of cairo-png is 1.4.6.
26908        LIBS=$LIBS
26909    LDFLAGS=$LDFLAGS
26910   CPPFLAGS=$CPPFLAGS
26912 ----------------------------------------------------------------------------
26913                 " >&2;}
26914        EX_CHECK_ALL_ERR=YES
26915        LIBS="${ex_check_save_LIBS}"
26916        CPPFLAGS="${ex_check_save_CPPFLAGS}"
26917        LDFLAGS="${ex_check_save_LDFLAGS}"
26918     fi
26919     ac_ext=c
26920 ac_cpp='$CPP $CPPFLAGS'
26921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26928  ac_ext=c
26929 ac_cpp='$CPP $CPPFLAGS'
26930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26934  EX_CHECK_STATE=NO
26935  ex_check_save_LIBS=${LIBS}
26936  ex_check_save_CPPFLAGS=${CPPFLAGS}
26937  ex_check_save_LDFLAGS=${LDFLAGS}
26938  if test "x""" != "x"; then
26939    CPPFLAGS="$CPPFLAGS -I"""
26940  fi
26941   { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
26942 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
26943 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
26944   $as_echo_n "(cached) " >&6
26945 else
26946   ac_check_lib_save_LIBS=$LIBS
26947 LIBS="-lcairo  $LIBS"
26948 cat >conftest.$ac_ext <<_ACEOF
26949 /* confdefs.h.  */
26950 _ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h.  */
26955 /* Override any GCC internal prototype to avoid an error.
26956    Use char because int might match the return type of a GCC
26957    builtin and then its argument prototype would still apply.  */
26958 #ifdef __cplusplus
26959 extern "C"
26960 #endif
26961 char cairo_svg_surface_create ();
26962 int
26963 main ()
26965 return cairo_svg_surface_create ();
26966   ;
26967   return 0;
26969 _ACEOF
26970 rm -f conftest.$ac_objext conftest$ac_exeext
26971 if { (ac_try="$ac_link"
26972 case "(($ac_try" in
26973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26974   *) ac_try_echo=$ac_try;;
26975 esac
26976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26977 $as_echo "$ac_try_echo") >&5
26978   (eval "$ac_link") 2>conftest.er1
26979   ac_status=$?
26980   grep -v '^ *+' conftest.er1 >conftest.err
26981   rm -f conftest.er1
26982   cat conftest.err >&5
26983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); } && {
26985          test -z "$ac_c_werror_flag" ||
26986          test ! -s conftest.err
26987        } && test -s conftest$ac_exeext && {
26988          test "$cross_compiling" = yes ||
26989          $as_test_x conftest$ac_exeext
26990        }; then
26991   ac_cv_lib_cairo_cairo_svg_surface_create=yes
26992 else
26993   $as_echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26996         ac_cv_lib_cairo_cairo_svg_surface_create=no
26999 rm -rf conftest.dSYM
27000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27001       conftest$ac_exeext conftest.$ac_ext
27002 LIBS=$ac_check_lib_save_LIBS
27004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
27005 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
27006 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
27008     if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27009   { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
27010 $as_echo_n "checking for cairo-svg.h... " >&6; }
27011 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27012   $as_echo_n "(cached) " >&6
27014 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
27015 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
27016 else
27017   # Is the header compilable?
27018 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
27019 $as_echo_n "checking cairo-svg.h usability... " >&6; }
27020 cat >conftest.$ac_ext <<_ACEOF
27021 /* confdefs.h.  */
27022 _ACEOF
27023 cat confdefs.h >>conftest.$ac_ext
27024 cat >>conftest.$ac_ext <<_ACEOF
27025 /* end confdefs.h.  */
27026 $ac_includes_default
27027 #include <cairo-svg.h>
27028 _ACEOF
27029 rm -f conftest.$ac_objext
27030 if { (ac_try="$ac_compile"
27031 case "(($ac_try" in
27032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033   *) ac_try_echo=$ac_try;;
27034 esac
27035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27036 $as_echo "$ac_try_echo") >&5
27037   (eval "$ac_compile") 2>conftest.er1
27038   ac_status=$?
27039   grep -v '^ *+' conftest.er1 >conftest.err
27040   rm -f conftest.er1
27041   cat conftest.err >&5
27042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); } && {
27044          test -z "$ac_c_werror_flag" ||
27045          test ! -s conftest.err
27046        } && test -s conftest.$ac_objext; then
27047   ac_header_compiler=yes
27048 else
27049   $as_echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27052         ac_header_compiler=no
27055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27056 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27057 $as_echo "$ac_header_compiler" >&6; }
27059 # Is the header present?
27060 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
27061 $as_echo_n "checking cairo-svg.h presence... " >&6; }
27062 cat >conftest.$ac_ext <<_ACEOF
27063 /* confdefs.h.  */
27064 _ACEOF
27065 cat confdefs.h >>conftest.$ac_ext
27066 cat >>conftest.$ac_ext <<_ACEOF
27067 /* end confdefs.h.  */
27068 #include <cairo-svg.h>
27069 _ACEOF
27070 if { (ac_try="$ac_cpp conftest.$ac_ext"
27071 case "(($ac_try" in
27072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27073   *) ac_try_echo=$ac_try;;
27074 esac
27075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27076 $as_echo "$ac_try_echo") >&5
27077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27078   ac_status=$?
27079   grep -v '^ *+' conftest.er1 >conftest.err
27080   rm -f conftest.er1
27081   cat conftest.err >&5
27082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); } >/dev/null && {
27084          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27085          test ! -s conftest.err
27086        }; then
27087   ac_header_preproc=yes
27088 else
27089   $as_echo "$as_me: failed program was:" >&5
27090 sed 's/^/| /' conftest.$ac_ext >&5
27092   ac_header_preproc=no
27095 rm -f conftest.err conftest.$ac_ext
27096 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27097 $as_echo "$ac_header_preproc" >&6; }
27099 # So?  What about this header?
27100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27101   yes:no: )
27102     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
27103 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27104     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
27105 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
27106     ac_header_preproc=yes
27107     ;;
27108   no:yes:* )
27109     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
27110 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
27111     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
27112 $as_echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
27113     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
27114 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
27115     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
27116 $as_echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27117     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
27118 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
27119     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
27120 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
27122     ;;
27123 esac
27124 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
27125 $as_echo_n "checking for cairo-svg.h... " >&6; }
27126 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27127   $as_echo_n "(cached) " >&6
27128 else
27129   ac_cv_header_cairo_svg_h=$ac_header_preproc
27131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
27132 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
27135 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
27136   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
27142  if test $EX_CHECK_STATE = NO; then
27143         for ac_prog in pkg-config
27145   # Extract the first word of "$ac_prog", so it can be a program name with args.
27146 set dummy $ac_prog; ac_word=$2
27147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27148 $as_echo_n "checking for $ac_word... " >&6; }
27149 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
27150   $as_echo_n "(cached) " >&6
27151 else
27152   if test -n "$PKGCONFIG"; then
27153   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
27154 else
27155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27156 for as_dir in $PATH
27158   IFS=$as_save_IFS
27159   test -z "$as_dir" && as_dir=.
27160   for ac_exec_ext in '' $ac_executable_extensions; do
27161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27162     ac_cv_prog_PKGCONFIG="$ac_prog"
27163     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27164     break 2
27165   fi
27166 done
27167 done
27168 IFS=$as_save_IFS
27172 PKGCONFIG=$ac_cv_prog_PKGCONFIG
27173 if test -n "$PKGCONFIG"; then
27174   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
27175 $as_echo "$PKGCONFIG" >&6; }
27176 else
27177   { $as_echo "$as_me:$LINENO: result: no" >&5
27178 $as_echo "no" >&6; }
27182   test -n "$PKGCONFIG" && break
27183 done
27184 test -n "$PKGCONFIG" || PKGCONFIG="no"
27186     if test "$PKGCONFIG" != "no"; then
27187           if $PKGCONFIG --exists cairo-svg; then
27188              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
27189              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
27190              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
27191              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
27192                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
27193              { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
27194 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
27195 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
27196   $as_echo_n "(cached) " >&6
27197 else
27198   ac_check_lib_save_LIBS=$LIBS
27199 LIBS="-lcairo  $LIBS"
27200 cat >conftest.$ac_ext <<_ACEOF
27201 /* confdefs.h.  */
27202 _ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h.  */
27207 /* Override any GCC internal prototype to avoid an error.
27208    Use char because int might match the return type of a GCC
27209    builtin and then its argument prototype would still apply.  */
27210 #ifdef __cplusplus
27211 extern "C"
27212 #endif
27213 char cairo_svg_surface_create ();
27214 int
27215 main ()
27217 return cairo_svg_surface_create ();
27218   ;
27219   return 0;
27221 _ACEOF
27222 rm -f conftest.$ac_objext conftest$ac_exeext
27223 if { (ac_try="$ac_link"
27224 case "(($ac_try" in
27225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226   *) ac_try_echo=$ac_try;;
27227 esac
27228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27229 $as_echo "$ac_try_echo") >&5
27230   (eval "$ac_link") 2>conftest.er1
27231   ac_status=$?
27232   grep -v '^ *+' conftest.er1 >conftest.err
27233   rm -f conftest.er1
27234   cat conftest.err >&5
27235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); } && {
27237          test -z "$ac_c_werror_flag" ||
27238          test ! -s conftest.err
27239        } && test -s conftest$ac_exeext && {
27240          test "$cross_compiling" = yes ||
27241          $as_test_x conftest$ac_exeext
27242        }; then
27243   ac_cv_lib_cairo_cairo_svg_surface_create=yes
27244 else
27245   $as_echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.$ac_ext >&5
27248         ac_cv_lib_cairo_cairo_svg_surface_create=no
27251 rm -rf conftest.dSYM
27252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27253       conftest$ac_exeext conftest.$ac_ext
27254 LIBS=$ac_check_lib_save_LIBS
27256 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
27257 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
27258 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
27260                  unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
27261                  if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27262   { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
27263 $as_echo_n "checking for cairo-svg.h... " >&6; }
27264 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27265   $as_echo_n "(cached) " >&6
27267 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
27268 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
27269 else
27270   # Is the header compilable?
27271 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
27272 $as_echo_n "checking cairo-svg.h usability... " >&6; }
27273 cat >conftest.$ac_ext <<_ACEOF
27274 /* confdefs.h.  */
27275 _ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h.  */
27279 $ac_includes_default
27280 #include <cairo-svg.h>
27281 _ACEOF
27282 rm -f conftest.$ac_objext
27283 if { (ac_try="$ac_compile"
27284 case "(($ac_try" in
27285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286   *) ac_try_echo=$ac_try;;
27287 esac
27288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27289 $as_echo "$ac_try_echo") >&5
27290   (eval "$ac_compile") 2>conftest.er1
27291   ac_status=$?
27292   grep -v '^ *+' conftest.er1 >conftest.err
27293   rm -f conftest.er1
27294   cat conftest.err >&5
27295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296   (exit $ac_status); } && {
27297          test -z "$ac_c_werror_flag" ||
27298          test ! -s conftest.err
27299        } && test -s conftest.$ac_objext; then
27300   ac_header_compiler=yes
27301 else
27302   $as_echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27305         ac_header_compiler=no
27308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27309 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27310 $as_echo "$ac_header_compiler" >&6; }
27312 # Is the header present?
27313 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
27314 $as_echo_n "checking cairo-svg.h presence... " >&6; }
27315 cat >conftest.$ac_ext <<_ACEOF
27316 /* confdefs.h.  */
27317 _ACEOF
27318 cat confdefs.h >>conftest.$ac_ext
27319 cat >>conftest.$ac_ext <<_ACEOF
27320 /* end confdefs.h.  */
27321 #include <cairo-svg.h>
27322 _ACEOF
27323 if { (ac_try="$ac_cpp conftest.$ac_ext"
27324 case "(($ac_try" in
27325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326   *) ac_try_echo=$ac_try;;
27327 esac
27328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27329 $as_echo "$ac_try_echo") >&5
27330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27331   ac_status=$?
27332   grep -v '^ *+' conftest.er1 >conftest.err
27333   rm -f conftest.er1
27334   cat conftest.err >&5
27335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); } >/dev/null && {
27337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27338          test ! -s conftest.err
27339        }; then
27340   ac_header_preproc=yes
27341 else
27342   $as_echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27345   ac_header_preproc=no
27348 rm -f conftest.err conftest.$ac_ext
27349 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27350 $as_echo "$ac_header_preproc" >&6; }
27352 # So?  What about this header?
27353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27354   yes:no: )
27355     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
27356 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27357     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
27358 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
27359     ac_header_preproc=yes
27360     ;;
27361   no:yes:* )
27362     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
27363 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
27364     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
27365 $as_echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
27366     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
27367 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
27368     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
27369 $as_echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27370     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
27371 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
27372     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
27373 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
27375     ;;
27376 esac
27377 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
27378 $as_echo_n "checking for cairo-svg.h... " >&6; }
27379 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27380   $as_echo_n "(cached) " >&6
27381 else
27382   ac_cv_header_cairo_svg_h=$ac_header_preproc
27384 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
27385 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
27388 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
27389   EX_CHECK_STATE=YES
27396           else
27397              { $as_echo "$as_me:$LINENO: WARNING:
27398 ----------------------------------------------------------------------------
27399 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
27400   You may want to set the PKG_CONFIG_PATH variable to point to its
27401   location.
27402 ----------------------------------------------------------------------------
27403                         " >&5
27404 $as_echo "$as_me: WARNING:
27405 ----------------------------------------------------------------------------
27406 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
27407   You may want to set the PKG_CONFIG_PATH variable to point to its
27408   location.
27409 ----------------------------------------------------------------------------
27410                         " >&2;}
27411            fi
27412      fi
27413   fi
27415   if test ${EX_CHECK_STATE} = NO; then
27416      { $as_echo "$as_me:$LINENO: WARNING:
27417 ----------------------------------------------------------------------------
27418 * I could not find a working copy of cairo-svg. Check config.log for hints on why
27419   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27420   so that compiler and the linker can find libcairo and its header files. If
27421   you have not installed cairo-svg, you can get it either from its original home on
27423      http://cairographics.org/releases/
27425   You can find also find an archive copy on
27427      http://oss.oetiker.ch/rrdtool/pub/libs
27429   The last tested version of cairo-svg is 1.4.6.
27431        LIBS=$LIBS
27432    LDFLAGS=$LDFLAGS
27433   CPPFLAGS=$CPPFLAGS
27435 ----------------------------------------------------------------------------
27436                 " >&5
27437 $as_echo "$as_me: WARNING:
27438 ----------------------------------------------------------------------------
27439 * I could not find a working copy of cairo-svg. Check config.log for hints on why
27440   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27441   so that compiler and the linker can find libcairo and its header files. If
27442   you have not installed cairo-svg, you can get it either from its original home on
27444      http://cairographics.org/releases/
27446   You can find also find an archive copy on
27448      http://oss.oetiker.ch/rrdtool/pub/libs
27450   The last tested version of cairo-svg is 1.4.6.
27452        LIBS=$LIBS
27453    LDFLAGS=$LDFLAGS
27454   CPPFLAGS=$CPPFLAGS
27456 ----------------------------------------------------------------------------
27457                 " >&2;}
27458        EX_CHECK_ALL_ERR=YES
27459        LIBS="${ex_check_save_LIBS}"
27460        CPPFLAGS="${ex_check_save_CPPFLAGS}"
27461        LDFLAGS="${ex_check_save_LDFLAGS}"
27462     fi
27463     ac_ext=c
27464 ac_cpp='$CPP $CPPFLAGS'
27465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27472  ac_ext=c
27473 ac_cpp='$CPP $CPPFLAGS'
27474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27478  EX_CHECK_STATE=NO
27479  ex_check_save_LIBS=${LIBS}
27480  ex_check_save_CPPFLAGS=${CPPFLAGS}
27481  ex_check_save_LDFLAGS=${LDFLAGS}
27482  if test "x""" != "x"; then
27483    CPPFLAGS="$CPPFLAGS -I"""
27484  fi
27485   { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
27486 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
27487 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
27488   $as_echo_n "(cached) " >&6
27489 else
27490   ac_check_lib_save_LIBS=$LIBS
27491 LIBS="-lcairo  $LIBS"
27492 cat >conftest.$ac_ext <<_ACEOF
27493 /* confdefs.h.  */
27494 _ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h.  */
27499 /* Override any GCC internal prototype to avoid an error.
27500    Use char because int might match the return type of a GCC
27501    builtin and then its argument prototype would still apply.  */
27502 #ifdef __cplusplus
27503 extern "C"
27504 #endif
27505 char cairo_pdf_surface_create ();
27506 int
27507 main ()
27509 return cairo_pdf_surface_create ();
27510   ;
27511   return 0;
27513 _ACEOF
27514 rm -f conftest.$ac_objext conftest$ac_exeext
27515 if { (ac_try="$ac_link"
27516 case "(($ac_try" in
27517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518   *) ac_try_echo=$ac_try;;
27519 esac
27520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27521 $as_echo "$ac_try_echo") >&5
27522   (eval "$ac_link") 2>conftest.er1
27523   ac_status=$?
27524   grep -v '^ *+' conftest.er1 >conftest.err
27525   rm -f conftest.er1
27526   cat conftest.err >&5
27527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); } && {
27529          test -z "$ac_c_werror_flag" ||
27530          test ! -s conftest.err
27531        } && test -s conftest$ac_exeext && {
27532          test "$cross_compiling" = yes ||
27533          $as_test_x conftest$ac_exeext
27534        }; then
27535   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
27536 else
27537   $as_echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27540         ac_cv_lib_cairo_cairo_pdf_surface_create=no
27543 rm -rf conftest.dSYM
27544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27545       conftest$ac_exeext conftest.$ac_ext
27546 LIBS=$ac_check_lib_save_LIBS
27548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
27549 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
27550 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
27552     if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
27553   { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
27554 $as_echo_n "checking for cairo-pdf.h... " >&6; }
27555 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
27556   $as_echo_n "(cached) " >&6
27558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
27559 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
27560 else
27561   # Is the header compilable?
27562 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
27563 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
27564 cat >conftest.$ac_ext <<_ACEOF
27565 /* confdefs.h.  */
27566 _ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h.  */
27570 $ac_includes_default
27571 #include <cairo-pdf.h>
27572 _ACEOF
27573 rm -f conftest.$ac_objext
27574 if { (ac_try="$ac_compile"
27575 case "(($ac_try" in
27576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577   *) ac_try_echo=$ac_try;;
27578 esac
27579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27580 $as_echo "$ac_try_echo") >&5
27581   (eval "$ac_compile") 2>conftest.er1
27582   ac_status=$?
27583   grep -v '^ *+' conftest.er1 >conftest.err
27584   rm -f conftest.er1
27585   cat conftest.err >&5
27586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); } && {
27588          test -z "$ac_c_werror_flag" ||
27589          test ! -s conftest.err
27590        } && test -s conftest.$ac_objext; then
27591   ac_header_compiler=yes
27592 else
27593   $as_echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27596         ac_header_compiler=no
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27601 $as_echo "$ac_header_compiler" >&6; }
27603 # Is the header present?
27604 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
27605 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
27606 cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612 #include <cairo-pdf.h>
27613 _ACEOF
27614 if { (ac_try="$ac_cpp conftest.$ac_ext"
27615 case "(($ac_try" in
27616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617   *) ac_try_echo=$ac_try;;
27618 esac
27619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27620 $as_echo "$ac_try_echo") >&5
27621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27622   ac_status=$?
27623   grep -v '^ *+' conftest.er1 >conftest.err
27624   rm -f conftest.er1
27625   cat conftest.err >&5
27626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); } >/dev/null && {
27628          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27629          test ! -s conftest.err
27630        }; then
27631   ac_header_preproc=yes
27632 else
27633   $as_echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27636   ac_header_preproc=no
27639 rm -f conftest.err conftest.$ac_ext
27640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27641 $as_echo "$ac_header_preproc" >&6; }
27643 # So?  What about this header?
27644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27645   yes:no: )
27646     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
27647 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27648     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
27649 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
27650     ac_header_preproc=yes
27651     ;;
27652   no:yes:* )
27653     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
27654 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
27655     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
27656 $as_echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
27657     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
27658 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
27659     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
27660 $as_echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27661     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
27662 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
27663     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
27664 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
27666     ;;
27667 esac
27668 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
27669 $as_echo_n "checking for cairo-pdf.h... " >&6; }
27670 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
27671   $as_echo_n "(cached) " >&6
27672 else
27673   ac_cv_header_cairo_pdf_h=$ac_header_preproc
27675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
27676 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
27679 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
27680   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
27686  if test $EX_CHECK_STATE = NO; then
27687         for ac_prog in pkg-config
27689   # Extract the first word of "$ac_prog", so it can be a program name with args.
27690 set dummy $ac_prog; ac_word=$2
27691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27692 $as_echo_n "checking for $ac_word... " >&6; }
27693 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
27694   $as_echo_n "(cached) " >&6
27695 else
27696   if test -n "$PKGCONFIG"; then
27697   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
27698 else
27699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27700 for as_dir in $PATH
27702   IFS=$as_save_IFS
27703   test -z "$as_dir" && as_dir=.
27704   for ac_exec_ext in '' $ac_executable_extensions; do
27705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27706     ac_cv_prog_PKGCONFIG="$ac_prog"
27707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27708     break 2
27709   fi
27710 done
27711 done
27712 IFS=$as_save_IFS
27716 PKGCONFIG=$ac_cv_prog_PKGCONFIG
27717 if test -n "$PKGCONFIG"; then
27718   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
27719 $as_echo "$PKGCONFIG" >&6; }
27720 else
27721   { $as_echo "$as_me:$LINENO: result: no" >&5
27722 $as_echo "no" >&6; }
27726   test -n "$PKGCONFIG" && break
27727 done
27728 test -n "$PKGCONFIG" || PKGCONFIG="no"
27730     if test "$PKGCONFIG" != "no"; then
27731           if $PKGCONFIG --exists cairo-pdf; then
27732              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
27733              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
27734              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
27735              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
27736                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
27737              { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
27738 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
27739 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
27740   $as_echo_n "(cached) " >&6
27741 else
27742   ac_check_lib_save_LIBS=$LIBS
27743 LIBS="-lcairo  $LIBS"
27744 cat >conftest.$ac_ext <<_ACEOF
27745 /* confdefs.h.  */
27746 _ACEOF
27747 cat confdefs.h >>conftest.$ac_ext
27748 cat >>conftest.$ac_ext <<_ACEOF
27749 /* end confdefs.h.  */
27751 /* Override any GCC internal prototype to avoid an error.
27752    Use char because int might match the return type of a GCC
27753    builtin and then its argument prototype would still apply.  */
27754 #ifdef __cplusplus
27755 extern "C"
27756 #endif
27757 char cairo_pdf_surface_create ();
27758 int
27759 main ()
27761 return cairo_pdf_surface_create ();
27762   ;
27763   return 0;
27765 _ACEOF
27766 rm -f conftest.$ac_objext conftest$ac_exeext
27767 if { (ac_try="$ac_link"
27768 case "(($ac_try" in
27769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770   *) ac_try_echo=$ac_try;;
27771 esac
27772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27773 $as_echo "$ac_try_echo") >&5
27774   (eval "$ac_link") 2>conftest.er1
27775   ac_status=$?
27776   grep -v '^ *+' conftest.er1 >conftest.err
27777   rm -f conftest.er1
27778   cat conftest.err >&5
27779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780   (exit $ac_status); } && {
27781          test -z "$ac_c_werror_flag" ||
27782          test ! -s conftest.err
27783        } && test -s conftest$ac_exeext && {
27784          test "$cross_compiling" = yes ||
27785          $as_test_x conftest$ac_exeext
27786        }; then
27787   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
27788 else
27789   $as_echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27792         ac_cv_lib_cairo_cairo_pdf_surface_create=no
27795 rm -rf conftest.dSYM
27796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27797       conftest$ac_exeext conftest.$ac_ext
27798 LIBS=$ac_check_lib_save_LIBS
27800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
27801 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
27802 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
27804                  unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
27805                  if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
27806   { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
27807 $as_echo_n "checking for cairo-pdf.h... " >&6; }
27808 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
27809   $as_echo_n "(cached) " >&6
27811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
27812 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
27813 else
27814   # Is the header compilable?
27815 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
27816 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
27817 cat >conftest.$ac_ext <<_ACEOF
27818 /* confdefs.h.  */
27819 _ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h.  */
27823 $ac_includes_default
27824 #include <cairo-pdf.h>
27825 _ACEOF
27826 rm -f conftest.$ac_objext
27827 if { (ac_try="$ac_compile"
27828 case "(($ac_try" in
27829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830   *) ac_try_echo=$ac_try;;
27831 esac
27832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27833 $as_echo "$ac_try_echo") >&5
27834   (eval "$ac_compile") 2>conftest.er1
27835   ac_status=$?
27836   grep -v '^ *+' conftest.er1 >conftest.err
27837   rm -f conftest.er1
27838   cat conftest.err >&5
27839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); } && {
27841          test -z "$ac_c_werror_flag" ||
27842          test ! -s conftest.err
27843        } && test -s conftest.$ac_objext; then
27844   ac_header_compiler=yes
27845 else
27846   $as_echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27849         ac_header_compiler=no
27852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27854 $as_echo "$ac_header_compiler" >&6; }
27856 # Is the header present?
27857 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
27858 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
27859 cat >conftest.$ac_ext <<_ACEOF
27860 /* confdefs.h.  */
27861 _ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h.  */
27865 #include <cairo-pdf.h>
27866 _ACEOF
27867 if { (ac_try="$ac_cpp conftest.$ac_ext"
27868 case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27873 $as_echo "$ac_try_echo") >&5
27874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27875   ac_status=$?
27876   grep -v '^ *+' conftest.er1 >conftest.err
27877   rm -f conftest.er1
27878   cat conftest.err >&5
27879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880   (exit $ac_status); } >/dev/null && {
27881          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27882          test ! -s conftest.err
27883        }; then
27884   ac_header_preproc=yes
27885 else
27886   $as_echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27889   ac_header_preproc=no
27892 rm -f conftest.err conftest.$ac_ext
27893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27894 $as_echo "$ac_header_preproc" >&6; }
27896 # So?  What about this header?
27897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27898   yes:no: )
27899     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
27900 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27901     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
27902 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
27903     ac_header_preproc=yes
27904     ;;
27905   no:yes:* )
27906     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
27907 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
27908     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
27909 $as_echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
27910     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
27911 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
27912     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
27913 $as_echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27914     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
27915 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
27916     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
27917 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
27919     ;;
27920 esac
27921 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
27922 $as_echo_n "checking for cairo-pdf.h... " >&6; }
27923 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
27924   $as_echo_n "(cached) " >&6
27925 else
27926   ac_cv_header_cairo_pdf_h=$ac_header_preproc
27928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
27929 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
27932 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
27933   EX_CHECK_STATE=YES
27940           else
27941              { $as_echo "$as_me:$LINENO: WARNING:
27942 ----------------------------------------------------------------------------
27943 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
27944   You may want to set the PKG_CONFIG_PATH variable to point to its
27945   location.
27946 ----------------------------------------------------------------------------
27947                         " >&5
27948 $as_echo "$as_me: WARNING:
27949 ----------------------------------------------------------------------------
27950 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
27951   You may want to set the PKG_CONFIG_PATH variable to point to its
27952   location.
27953 ----------------------------------------------------------------------------
27954                         " >&2;}
27955            fi
27956      fi
27957   fi
27959   if test ${EX_CHECK_STATE} = NO; then
27960      { $as_echo "$as_me:$LINENO: WARNING:
27961 ----------------------------------------------------------------------------
27962 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
27963   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27964   so that compiler and the linker can find libcairo and its header files. If
27965   you have not installed cairo-pdf, you can get it either from its original home on
27967      http://cairographics.org/releases/
27969   You can find also find an archive copy on
27971      http://oss.oetiker.ch/rrdtool/pub/libs
27973   The last tested version of cairo-pdf is 1.4.6.
27975        LIBS=$LIBS
27976    LDFLAGS=$LDFLAGS
27977   CPPFLAGS=$CPPFLAGS
27979 ----------------------------------------------------------------------------
27980                 " >&5
27981 $as_echo "$as_me: WARNING:
27982 ----------------------------------------------------------------------------
27983 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
27984   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27985   so that compiler and the linker can find libcairo and its header files. If
27986   you have not installed cairo-pdf, you can get it either from its original home on
27988      http://cairographics.org/releases/
27990   You can find also find an archive copy on
27992      http://oss.oetiker.ch/rrdtool/pub/libs
27994   The last tested version of cairo-pdf is 1.4.6.
27996        LIBS=$LIBS
27997    LDFLAGS=$LDFLAGS
27998   CPPFLAGS=$CPPFLAGS
28000 ----------------------------------------------------------------------------
28001                 " >&2;}
28002        EX_CHECK_ALL_ERR=YES
28003        LIBS="${ex_check_save_LIBS}"
28004        CPPFLAGS="${ex_check_save_CPPFLAGS}"
28005        LDFLAGS="${ex_check_save_LDFLAGS}"
28006     fi
28007     ac_ext=c
28008 ac_cpp='$CPP $CPPFLAGS'
28009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28016  ac_ext=c
28017 ac_cpp='$CPP $CPPFLAGS'
28018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28022  EX_CHECK_STATE=NO
28023  ex_check_save_LIBS=${LIBS}
28024  ex_check_save_CPPFLAGS=${CPPFLAGS}
28025  ex_check_save_LDFLAGS=${LDFLAGS}
28026  if test "x""" != "x"; then
28027    CPPFLAGS="$CPPFLAGS -I"""
28028  fi
28029   { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
28030 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
28031 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
28032   $as_echo_n "(cached) " >&6
28033 else
28034   ac_check_lib_save_LIBS=$LIBS
28035 LIBS="-lcairo  $LIBS"
28036 cat >conftest.$ac_ext <<_ACEOF
28037 /* confdefs.h.  */
28038 _ACEOF
28039 cat confdefs.h >>conftest.$ac_ext
28040 cat >>conftest.$ac_ext <<_ACEOF
28041 /* end confdefs.h.  */
28043 /* Override any GCC internal prototype to avoid an error.
28044    Use char because int might match the return type of a GCC
28045    builtin and then its argument prototype would still apply.  */
28046 #ifdef __cplusplus
28047 extern "C"
28048 #endif
28049 char cairo_ps_surface_create ();
28050 int
28051 main ()
28053 return cairo_ps_surface_create ();
28054   ;
28055   return 0;
28057 _ACEOF
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (ac_try="$ac_link"
28060 case "(($ac_try" in
28061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062   *) ac_try_echo=$ac_try;;
28063 esac
28064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28065 $as_echo "$ac_try_echo") >&5
28066   (eval "$ac_link") 2>conftest.er1
28067   ac_status=$?
28068   grep -v '^ *+' conftest.er1 >conftest.err
28069   rm -f conftest.er1
28070   cat conftest.err >&5
28071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); } && {
28073          test -z "$ac_c_werror_flag" ||
28074          test ! -s conftest.err
28075        } && test -s conftest$ac_exeext && {
28076          test "$cross_compiling" = yes ||
28077          $as_test_x conftest$ac_exeext
28078        }; then
28079   ac_cv_lib_cairo_cairo_ps_surface_create=yes
28080 else
28081   $as_echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28084         ac_cv_lib_cairo_cairo_ps_surface_create=no
28087 rm -rf conftest.dSYM
28088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28089       conftest$ac_exeext conftest.$ac_ext
28090 LIBS=$ac_check_lib_save_LIBS
28092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
28093 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
28094 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
28096     if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28097   { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
28098 $as_echo_n "checking for cairo-ps.h... " >&6; }
28099 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28100   $as_echo_n "(cached) " >&6
28102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
28103 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
28104 else
28105   # Is the header compilable?
28106 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
28107 $as_echo_n "checking cairo-ps.h usability... " >&6; }
28108 cat >conftest.$ac_ext <<_ACEOF
28109 /* confdefs.h.  */
28110 _ACEOF
28111 cat confdefs.h >>conftest.$ac_ext
28112 cat >>conftest.$ac_ext <<_ACEOF
28113 /* end confdefs.h.  */
28114 $ac_includes_default
28115 #include <cairo-ps.h>
28116 _ACEOF
28117 rm -f conftest.$ac_objext
28118 if { (ac_try="$ac_compile"
28119 case "(($ac_try" in
28120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121   *) ac_try_echo=$ac_try;;
28122 esac
28123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28124 $as_echo "$ac_try_echo") >&5
28125   (eval "$ac_compile") 2>conftest.er1
28126   ac_status=$?
28127   grep -v '^ *+' conftest.er1 >conftest.err
28128   rm -f conftest.er1
28129   cat conftest.err >&5
28130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131   (exit $ac_status); } && {
28132          test -z "$ac_c_werror_flag" ||
28133          test ! -s conftest.err
28134        } && test -s conftest.$ac_objext; then
28135   ac_header_compiler=yes
28136 else
28137   $as_echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28140         ac_header_compiler=no
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28144 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28145 $as_echo "$ac_header_compiler" >&6; }
28147 # Is the header present?
28148 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
28149 $as_echo_n "checking cairo-ps.h presence... " >&6; }
28150 cat >conftest.$ac_ext <<_ACEOF
28151 /* confdefs.h.  */
28152 _ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h.  */
28156 #include <cairo-ps.h>
28157 _ACEOF
28158 if { (ac_try="$ac_cpp conftest.$ac_ext"
28159 case "(($ac_try" in
28160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161   *) ac_try_echo=$ac_try;;
28162 esac
28163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28164 $as_echo "$ac_try_echo") >&5
28165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28166   ac_status=$?
28167   grep -v '^ *+' conftest.er1 >conftest.err
28168   rm -f conftest.er1
28169   cat conftest.err >&5
28170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171   (exit $ac_status); } >/dev/null && {
28172          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28173          test ! -s conftest.err
28174        }; then
28175   ac_header_preproc=yes
28176 else
28177   $as_echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28180   ac_header_preproc=no
28183 rm -f conftest.err conftest.$ac_ext
28184 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28185 $as_echo "$ac_header_preproc" >&6; }
28187 # So?  What about this header?
28188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28189   yes:no: )
28190     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
28191 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28192     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
28193 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
28194     ac_header_preproc=yes
28195     ;;
28196   no:yes:* )
28197     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
28198 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
28199     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
28200 $as_echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
28201     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
28202 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
28203     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
28204 $as_echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28205     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
28206 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
28207     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
28208 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
28210     ;;
28211 esac
28212 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
28213 $as_echo_n "checking for cairo-ps.h... " >&6; }
28214 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28215   $as_echo_n "(cached) " >&6
28216 else
28217   ac_cv_header_cairo_ps_h=$ac_header_preproc
28219 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
28220 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
28223 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
28224   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
28230  if test $EX_CHECK_STATE = NO; then
28231         for ac_prog in pkg-config
28233   # Extract the first word of "$ac_prog", so it can be a program name with args.
28234 set dummy $ac_prog; ac_word=$2
28235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28236 $as_echo_n "checking for $ac_word... " >&6; }
28237 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28238   $as_echo_n "(cached) " >&6
28239 else
28240   if test -n "$PKGCONFIG"; then
28241   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28242 else
28243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28244 for as_dir in $PATH
28246   IFS=$as_save_IFS
28247   test -z "$as_dir" && as_dir=.
28248   for ac_exec_ext in '' $ac_executable_extensions; do
28249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28250     ac_cv_prog_PKGCONFIG="$ac_prog"
28251     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28252     break 2
28253   fi
28254 done
28255 done
28256 IFS=$as_save_IFS
28260 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28261 if test -n "$PKGCONFIG"; then
28262   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28263 $as_echo "$PKGCONFIG" >&6; }
28264 else
28265   { $as_echo "$as_me:$LINENO: result: no" >&5
28266 $as_echo "no" >&6; }
28270   test -n "$PKGCONFIG" && break
28271 done
28272 test -n "$PKGCONFIG" || PKGCONFIG="no"
28274     if test "$PKGCONFIG" != "no"; then
28275           if $PKGCONFIG --exists cairo-ps; then
28276              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
28277              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
28278              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
28279              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
28280                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
28281              { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
28282 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
28283 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
28284   $as_echo_n "(cached) " >&6
28285 else
28286   ac_check_lib_save_LIBS=$LIBS
28287 LIBS="-lcairo  $LIBS"
28288 cat >conftest.$ac_ext <<_ACEOF
28289 /* confdefs.h.  */
28290 _ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h.  */
28295 /* Override any GCC internal prototype to avoid an error.
28296    Use char because int might match the return type of a GCC
28297    builtin and then its argument prototype would still apply.  */
28298 #ifdef __cplusplus
28299 extern "C"
28300 #endif
28301 char cairo_ps_surface_create ();
28302 int
28303 main ()
28305 return cairo_ps_surface_create ();
28306   ;
28307   return 0;
28309 _ACEOF
28310 rm -f conftest.$ac_objext conftest$ac_exeext
28311 if { (ac_try="$ac_link"
28312 case "(($ac_try" in
28313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314   *) ac_try_echo=$ac_try;;
28315 esac
28316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28317 $as_echo "$ac_try_echo") >&5
28318   (eval "$ac_link") 2>conftest.er1
28319   ac_status=$?
28320   grep -v '^ *+' conftest.er1 >conftest.err
28321   rm -f conftest.er1
28322   cat conftest.err >&5
28323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324   (exit $ac_status); } && {
28325          test -z "$ac_c_werror_flag" ||
28326          test ! -s conftest.err
28327        } && test -s conftest$ac_exeext && {
28328          test "$cross_compiling" = yes ||
28329          $as_test_x conftest$ac_exeext
28330        }; then
28331   ac_cv_lib_cairo_cairo_ps_surface_create=yes
28332 else
28333   $as_echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.$ac_ext >&5
28336         ac_cv_lib_cairo_cairo_ps_surface_create=no
28339 rm -rf conftest.dSYM
28340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28341       conftest$ac_exeext conftest.$ac_ext
28342 LIBS=$ac_check_lib_save_LIBS
28344 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
28345 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
28346 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
28348                  unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
28349                  if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28350   { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
28351 $as_echo_n "checking for cairo-ps.h... " >&6; }
28352 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28353   $as_echo_n "(cached) " >&6
28355 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
28356 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
28357 else
28358   # Is the header compilable?
28359 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
28360 $as_echo_n "checking cairo-ps.h usability... " >&6; }
28361 cat >conftest.$ac_ext <<_ACEOF
28362 /* confdefs.h.  */
28363 _ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h.  */
28367 $ac_includes_default
28368 #include <cairo-ps.h>
28369 _ACEOF
28370 rm -f conftest.$ac_objext
28371 if { (ac_try="$ac_compile"
28372 case "(($ac_try" in
28373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374   *) ac_try_echo=$ac_try;;
28375 esac
28376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28377 $as_echo "$ac_try_echo") >&5
28378   (eval "$ac_compile") 2>conftest.er1
28379   ac_status=$?
28380   grep -v '^ *+' conftest.er1 >conftest.err
28381   rm -f conftest.er1
28382   cat conftest.err >&5
28383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384   (exit $ac_status); } && {
28385          test -z "$ac_c_werror_flag" ||
28386          test ! -s conftest.err
28387        } && test -s conftest.$ac_objext; then
28388   ac_header_compiler=yes
28389 else
28390   $as_echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28393         ac_header_compiler=no
28396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28397 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28398 $as_echo "$ac_header_compiler" >&6; }
28400 # Is the header present?
28401 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
28402 $as_echo_n "checking cairo-ps.h presence... " >&6; }
28403 cat >conftest.$ac_ext <<_ACEOF
28404 /* confdefs.h.  */
28405 _ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h.  */
28409 #include <cairo-ps.h>
28410 _ACEOF
28411 if { (ac_try="$ac_cpp conftest.$ac_ext"
28412 case "(($ac_try" in
28413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28414   *) ac_try_echo=$ac_try;;
28415 esac
28416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28417 $as_echo "$ac_try_echo") >&5
28418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28419   ac_status=$?
28420   grep -v '^ *+' conftest.er1 >conftest.err
28421   rm -f conftest.er1
28422   cat conftest.err >&5
28423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); } >/dev/null && {
28425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28426          test ! -s conftest.err
28427        }; then
28428   ac_header_preproc=yes
28429 else
28430   $as_echo "$as_me: failed program was:" >&5
28431 sed 's/^/| /' conftest.$ac_ext >&5
28433   ac_header_preproc=no
28436 rm -f conftest.err conftest.$ac_ext
28437 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28438 $as_echo "$ac_header_preproc" >&6; }
28440 # So?  What about this header?
28441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28442   yes:no: )
28443     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
28444 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28445     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
28446 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
28447     ac_header_preproc=yes
28448     ;;
28449   no:yes:* )
28450     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
28451 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
28452     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
28453 $as_echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
28454     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
28455 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
28456     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
28457 $as_echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28458     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
28459 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
28460     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
28461 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
28463     ;;
28464 esac
28465 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
28466 $as_echo_n "checking for cairo-ps.h... " >&6; }
28467 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28468   $as_echo_n "(cached) " >&6
28469 else
28470   ac_cv_header_cairo_ps_h=$ac_header_preproc
28472 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
28473 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
28476 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
28477   EX_CHECK_STATE=YES
28484           else
28485              { $as_echo "$as_me:$LINENO: WARNING:
28486 ----------------------------------------------------------------------------
28487 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
28488   You may want to set the PKG_CONFIG_PATH variable to point to its
28489   location.
28490 ----------------------------------------------------------------------------
28491                         " >&5
28492 $as_echo "$as_me: WARNING:
28493 ----------------------------------------------------------------------------
28494 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
28495   You may want to set the PKG_CONFIG_PATH variable to point to its
28496   location.
28497 ----------------------------------------------------------------------------
28498                         " >&2;}
28499            fi
28500      fi
28501   fi
28503   if test ${EX_CHECK_STATE} = NO; then
28504      { $as_echo "$as_me:$LINENO: WARNING:
28505 ----------------------------------------------------------------------------
28506 * I could not find a working copy of cairo-ps. Check config.log for hints on why
28507   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28508   so that compiler and the linker can find libcairo and its header files. If
28509   you have not installed cairo-ps, you can get it either from its original home on
28511      http://cairographics.org/releases/
28513   You can find also find an archive copy on
28515      http://oss.oetiker.ch/rrdtool/pub/libs
28517   The last tested version of cairo-ps is 1.4.6.
28519        LIBS=$LIBS
28520    LDFLAGS=$LDFLAGS
28521   CPPFLAGS=$CPPFLAGS
28523 ----------------------------------------------------------------------------
28524                 " >&5
28525 $as_echo "$as_me: WARNING:
28526 ----------------------------------------------------------------------------
28527 * I could not find a working copy of cairo-ps. Check config.log for hints on why
28528   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28529   so that compiler and the linker can find libcairo and its header files. If
28530   you have not installed cairo-ps, you can get it either from its original home on
28532      http://cairographics.org/releases/
28534   You can find also find an archive copy on
28536      http://oss.oetiker.ch/rrdtool/pub/libs
28538   The last tested version of cairo-ps is 1.4.6.
28540        LIBS=$LIBS
28541    LDFLAGS=$LDFLAGS
28542   CPPFLAGS=$CPPFLAGS
28544 ----------------------------------------------------------------------------
28545                 " >&2;}
28546        EX_CHECK_ALL_ERR=YES
28547        LIBS="${ex_check_save_LIBS}"
28548        CPPFLAGS="${ex_check_save_CPPFLAGS}"
28549        LDFLAGS="${ex_check_save_LDFLAGS}"
28550     fi
28551     ac_ext=c
28552 ac_cpp='$CPP $CPPFLAGS'
28553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28560  ac_ext=c
28561 ac_cpp='$CPP $CPPFLAGS'
28562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28566  EX_CHECK_STATE=NO
28567  ex_check_save_LIBS=${LIBS}
28568  ex_check_save_CPPFLAGS=${CPPFLAGS}
28569  ex_check_save_LDFLAGS=${LDFLAGS}
28570  if test "x""" != "x"; then
28571    CPPFLAGS="$CPPFLAGS -I"""
28572  fi
28573   { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
28574 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
28575 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
28576   $as_echo_n "(cached) " >&6
28577 else
28578   ac_check_lib_save_LIBS=$LIBS
28579 LIBS="-lglib-2.0  $LIBS"
28580 cat >conftest.$ac_ext <<_ACEOF
28581 /* confdefs.h.  */
28582 _ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h.  */
28587 /* Override any GCC internal prototype to avoid an error.
28588    Use char because int might match the return type of a GCC
28589    builtin and then its argument prototype would still apply.  */
28590 #ifdef __cplusplus
28591 extern "C"
28592 #endif
28593 char glib_check_version ();
28594 int
28595 main ()
28597 return glib_check_version ();
28598   ;
28599   return 0;
28601 _ACEOF
28602 rm -f conftest.$ac_objext conftest$ac_exeext
28603 if { (ac_try="$ac_link"
28604 case "(($ac_try" in
28605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606   *) ac_try_echo=$ac_try;;
28607 esac
28608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28609 $as_echo "$ac_try_echo") >&5
28610   (eval "$ac_link") 2>conftest.er1
28611   ac_status=$?
28612   grep -v '^ *+' conftest.er1 >conftest.err
28613   rm -f conftest.er1
28614   cat conftest.err >&5
28615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616   (exit $ac_status); } && {
28617          test -z "$ac_c_werror_flag" ||
28618          test ! -s conftest.err
28619        } && test -s conftest$ac_exeext && {
28620          test "$cross_compiling" = yes ||
28621          $as_test_x conftest$ac_exeext
28622        }; then
28623   ac_cv_lib_glib_2_0_glib_check_version=yes
28624 else
28625   $as_echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628         ac_cv_lib_glib_2_0_glib_check_version=no
28631 rm -rf conftest.dSYM
28632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28633       conftest$ac_exeext conftest.$ac_ext
28634 LIBS=$ac_check_lib_save_LIBS
28636 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
28637 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
28638 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
28640     if test "${ac_cv_header_glib_h+set}" = set; then
28641   { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
28642 $as_echo_n "checking for glib.h... " >&6; }
28643 if test "${ac_cv_header_glib_h+set}" = set; then
28644   $as_echo_n "(cached) " >&6
28646 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
28647 $as_echo "$ac_cv_header_glib_h" >&6; }
28648 else
28649   # Is the header compilable?
28650 { $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
28651 $as_echo_n "checking glib.h usability... " >&6; }
28652 cat >conftest.$ac_ext <<_ACEOF
28653 /* confdefs.h.  */
28654 _ACEOF
28655 cat confdefs.h >>conftest.$ac_ext
28656 cat >>conftest.$ac_ext <<_ACEOF
28657 /* end confdefs.h.  */
28658 $ac_includes_default
28659 #include <glib.h>
28660 _ACEOF
28661 rm -f conftest.$ac_objext
28662 if { (ac_try="$ac_compile"
28663 case "(($ac_try" in
28664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665   *) ac_try_echo=$ac_try;;
28666 esac
28667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28668 $as_echo "$ac_try_echo") >&5
28669   (eval "$ac_compile") 2>conftest.er1
28670   ac_status=$?
28671   grep -v '^ *+' conftest.er1 >conftest.err
28672   rm -f conftest.er1
28673   cat conftest.err >&5
28674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); } && {
28676          test -z "$ac_c_werror_flag" ||
28677          test ! -s conftest.err
28678        } && test -s conftest.$ac_objext; then
28679   ac_header_compiler=yes
28680 else
28681   $as_echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28684         ac_header_compiler=no
28687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28688 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28689 $as_echo "$ac_header_compiler" >&6; }
28691 # Is the header present?
28692 { $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
28693 $as_echo_n "checking glib.h presence... " >&6; }
28694 cat >conftest.$ac_ext <<_ACEOF
28695 /* confdefs.h.  */
28696 _ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h.  */
28700 #include <glib.h>
28701 _ACEOF
28702 if { (ac_try="$ac_cpp conftest.$ac_ext"
28703 case "(($ac_try" in
28704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705   *) ac_try_echo=$ac_try;;
28706 esac
28707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28708 $as_echo "$ac_try_echo") >&5
28709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28710   ac_status=$?
28711   grep -v '^ *+' conftest.er1 >conftest.err
28712   rm -f conftest.er1
28713   cat conftest.err >&5
28714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715   (exit $ac_status); } >/dev/null && {
28716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28717          test ! -s conftest.err
28718        }; then
28719   ac_header_preproc=yes
28720 else
28721   $as_echo "$as_me: failed program was:" >&5
28722 sed 's/^/| /' conftest.$ac_ext >&5
28724   ac_header_preproc=no
28727 rm -f conftest.err conftest.$ac_ext
28728 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28729 $as_echo "$ac_header_preproc" >&6; }
28731 # So?  What about this header?
28732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28733   yes:no: )
28734     { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28735 $as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28736     { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
28737 $as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
28738     ac_header_preproc=yes
28739     ;;
28740   no:yes:* )
28741     { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
28742 $as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
28743     { $as_echo "$as_me:$LINENO: WARNING: glib.h:     check for missing prerequisite headers?" >&5
28744 $as_echo "$as_me: WARNING: glib.h:     check for missing prerequisite headers?" >&2;}
28745     { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
28746 $as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
28747     { $as_echo "$as_me:$LINENO: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&5
28748 $as_echo "$as_me: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28749     { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
28750 $as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
28751     { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
28752 $as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
28754     ;;
28755 esac
28756 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
28757 $as_echo_n "checking for glib.h... " >&6; }
28758 if test "${ac_cv_header_glib_h+set}" = set; then
28759   $as_echo_n "(cached) " >&6
28760 else
28761   ac_cv_header_glib_h=$ac_header_preproc
28763 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
28764 $as_echo "$ac_cv_header_glib_h" >&6; }
28767 if test "x$ac_cv_header_glib_h" = x""yes; then
28768   LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES
28774  if test $EX_CHECK_STATE = NO; then
28775         for ac_prog in pkg-config
28777   # Extract the first word of "$ac_prog", so it can be a program name with args.
28778 set dummy $ac_prog; ac_word=$2
28779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28780 $as_echo_n "checking for $ac_word... " >&6; }
28781 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28782   $as_echo_n "(cached) " >&6
28783 else
28784   if test -n "$PKGCONFIG"; then
28785   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28786 else
28787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28788 for as_dir in $PATH
28790   IFS=$as_save_IFS
28791   test -z "$as_dir" && as_dir=.
28792   for ac_exec_ext in '' $ac_executable_extensions; do
28793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28794     ac_cv_prog_PKGCONFIG="$ac_prog"
28795     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28796     break 2
28797   fi
28798 done
28799 done
28800 IFS=$as_save_IFS
28804 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28805 if test -n "$PKGCONFIG"; then
28806   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28807 $as_echo "$PKGCONFIG" >&6; }
28808 else
28809   { $as_echo "$as_me:$LINENO: result: no" >&5
28810 $as_echo "no" >&6; }
28814   test -n "$PKGCONFIG" && break
28815 done
28816 test -n "$PKGCONFIG" || PKGCONFIG="no"
28818     if test "$PKGCONFIG" != "no"; then
28819           if $PKGCONFIG --exists glib-2.0; then
28820              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags glib-2.0`
28821              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L glib-2.0`
28822              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other glib-2.0`
28823              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l glib-2.0`
28824                              unset ac_cv_lib_`echo glib-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_glib_check_version
28825              { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
28826 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
28827 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
28828   $as_echo_n "(cached) " >&6
28829 else
28830   ac_check_lib_save_LIBS=$LIBS
28831 LIBS="-lglib-2.0  $LIBS"
28832 cat >conftest.$ac_ext <<_ACEOF
28833 /* confdefs.h.  */
28834 _ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h.  */
28839 /* Override any GCC internal prototype to avoid an error.
28840    Use char because int might match the return type of a GCC
28841    builtin and then its argument prototype would still apply.  */
28842 #ifdef __cplusplus
28843 extern "C"
28844 #endif
28845 char glib_check_version ();
28846 int
28847 main ()
28849 return glib_check_version ();
28850   ;
28851   return 0;
28853 _ACEOF
28854 rm -f conftest.$ac_objext conftest$ac_exeext
28855 if { (ac_try="$ac_link"
28856 case "(($ac_try" in
28857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858   *) ac_try_echo=$ac_try;;
28859 esac
28860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28861 $as_echo "$ac_try_echo") >&5
28862   (eval "$ac_link") 2>conftest.er1
28863   ac_status=$?
28864   grep -v '^ *+' conftest.er1 >conftest.err
28865   rm -f conftest.er1
28866   cat conftest.err >&5
28867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); } && {
28869          test -z "$ac_c_werror_flag" ||
28870          test ! -s conftest.err
28871        } && test -s conftest$ac_exeext && {
28872          test "$cross_compiling" = yes ||
28873          $as_test_x conftest$ac_exeext
28874        }; then
28875   ac_cv_lib_glib_2_0_glib_check_version=yes
28876 else
28877   $as_echo "$as_me: failed program was:" >&5
28878 sed 's/^/| /' conftest.$ac_ext >&5
28880         ac_cv_lib_glib_2_0_glib_check_version=no
28883 rm -rf conftest.dSYM
28884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28885       conftest$ac_exeext conftest.$ac_ext
28886 LIBS=$ac_check_lib_save_LIBS
28888 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
28889 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
28890 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
28892                  unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
28893                  if test "${ac_cv_header_glib_h+set}" = set; then
28894   { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
28895 $as_echo_n "checking for glib.h... " >&6; }
28896 if test "${ac_cv_header_glib_h+set}" = set; then
28897   $as_echo_n "(cached) " >&6
28899 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
28900 $as_echo "$ac_cv_header_glib_h" >&6; }
28901 else
28902   # Is the header compilable?
28903 { $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
28904 $as_echo_n "checking glib.h usability... " >&6; }
28905 cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911 $ac_includes_default
28912 #include <glib.h>
28913 _ACEOF
28914 rm -f conftest.$ac_objext
28915 if { (ac_try="$ac_compile"
28916 case "(($ac_try" in
28917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918   *) ac_try_echo=$ac_try;;
28919 esac
28920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28921 $as_echo "$ac_try_echo") >&5
28922   (eval "$ac_compile") 2>conftest.er1
28923   ac_status=$?
28924   grep -v '^ *+' conftest.er1 >conftest.err
28925   rm -f conftest.er1
28926   cat conftest.err >&5
28927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928   (exit $ac_status); } && {
28929          test -z "$ac_c_werror_flag" ||
28930          test ! -s conftest.err
28931        } && test -s conftest.$ac_objext; then
28932   ac_header_compiler=yes
28933 else
28934   $as_echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28937         ac_header_compiler=no
28940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28942 $as_echo "$ac_header_compiler" >&6; }
28944 # Is the header present?
28945 { $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
28946 $as_echo_n "checking glib.h presence... " >&6; }
28947 cat >conftest.$ac_ext <<_ACEOF
28948 /* confdefs.h.  */
28949 _ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h.  */
28953 #include <glib.h>
28954 _ACEOF
28955 if { (ac_try="$ac_cpp conftest.$ac_ext"
28956 case "(($ac_try" in
28957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958   *) ac_try_echo=$ac_try;;
28959 esac
28960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28961 $as_echo "$ac_try_echo") >&5
28962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28963   ac_status=$?
28964   grep -v '^ *+' conftest.er1 >conftest.err
28965   rm -f conftest.er1
28966   cat conftest.err >&5
28967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); } >/dev/null && {
28969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28970          test ! -s conftest.err
28971        }; then
28972   ac_header_preproc=yes
28973 else
28974   $as_echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977   ac_header_preproc=no
28980 rm -f conftest.err conftest.$ac_ext
28981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28982 $as_echo "$ac_header_preproc" >&6; }
28984 # So?  What about this header?
28985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28986   yes:no: )
28987     { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28988 $as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28989     { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
28990 $as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
28991     ac_header_preproc=yes
28992     ;;
28993   no:yes:* )
28994     { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
28995 $as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
28996     { $as_echo "$as_me:$LINENO: WARNING: glib.h:     check for missing prerequisite headers?" >&5
28997 $as_echo "$as_me: WARNING: glib.h:     check for missing prerequisite headers?" >&2;}
28998     { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
28999 $as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
29000     { $as_echo "$as_me:$LINENO: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&5
29001 $as_echo "$as_me: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29002     { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
29003 $as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
29004     { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
29005 $as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
29007     ;;
29008 esac
29009 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
29010 $as_echo_n "checking for glib.h... " >&6; }
29011 if test "${ac_cv_header_glib_h+set}" = set; then
29012   $as_echo_n "(cached) " >&6
29013 else
29014   ac_cv_header_glib_h=$ac_header_preproc
29016 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
29017 $as_echo "$ac_cv_header_glib_h" >&6; }
29020 if test "x$ac_cv_header_glib_h" = x""yes; then
29021   EX_CHECK_STATE=YES
29028           else
29029              { $as_echo "$as_me:$LINENO: WARNING:
29030 ----------------------------------------------------------------------------
29031 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
29032   You may want to set the PKG_CONFIG_PATH variable to point to its
29033   location.
29034 ----------------------------------------------------------------------------
29035                         " >&5
29036 $as_echo "$as_me: WARNING:
29037 ----------------------------------------------------------------------------
29038 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
29039   You may want to set the PKG_CONFIG_PATH variable to point to its
29040   location.
29041 ----------------------------------------------------------------------------
29042                         " >&2;}
29043            fi
29044      fi
29045   fi
29047   if test ${EX_CHECK_STATE} = NO; then
29048      { $as_echo "$as_me:$LINENO: WARNING:
29049 ----------------------------------------------------------------------------
29050 * I could not find a working copy of glib-2.0. Check config.log for hints on why
29051   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29052   so that compiler and the linker can find libglib-2.0 and its header files. If
29053   you have not installed glib-2.0, you can get it either from its original home on
29055      ftp://ftp.gtk.org/pub/glib/2.12/
29057   You can find also find an archive copy on
29059      http://oss.oetiker.ch/rrdtool/pub/libs
29061   The last tested version of glib-2.0 is 2.12.12.
29063        LIBS=$LIBS
29064    LDFLAGS=$LDFLAGS
29065   CPPFLAGS=$CPPFLAGS
29067 ----------------------------------------------------------------------------
29068                 " >&5
29069 $as_echo "$as_me: WARNING:
29070 ----------------------------------------------------------------------------
29071 * I could not find a working copy of glib-2.0. Check config.log for hints on why
29072   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29073   so that compiler and the linker can find libglib-2.0 and its header files. If
29074   you have not installed glib-2.0, you can get it either from its original home on
29076      ftp://ftp.gtk.org/pub/glib/2.12/
29078   You can find also find an archive copy on
29080      http://oss.oetiker.ch/rrdtool/pub/libs
29082   The last tested version of glib-2.0 is 2.12.12.
29084        LIBS=$LIBS
29085    LDFLAGS=$LDFLAGS
29086   CPPFLAGS=$CPPFLAGS
29088 ----------------------------------------------------------------------------
29089                 " >&2;}
29090        EX_CHECK_ALL_ERR=YES
29091        LIBS="${ex_check_save_LIBS}"
29092        CPPFLAGS="${ex_check_save_CPPFLAGS}"
29093        LDFLAGS="${ex_check_save_LDFLAGS}"
29094     fi
29095     ac_ext=c
29096 ac_cpp='$CPP $CPPFLAGS'
29097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29104  ac_ext=c
29105 ac_cpp='$CPP $CPPFLAGS'
29106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29110  EX_CHECK_STATE=NO
29111  ex_check_save_LIBS=${LIBS}
29112  ex_check_save_CPPFLAGS=${CPPFLAGS}
29113  ex_check_save_LDFLAGS=${LDFLAGS}
29114  if test "x""" != "x"; then
29115    CPPFLAGS="$CPPFLAGS -I"""
29116  fi
29117   { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
29118 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
29119 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
29120   $as_echo_n "(cached) " >&6
29121 else
29122   ac_check_lib_save_LIBS=$LIBS
29123 LIBS="-lpango-1.0  $LIBS"
29124 cat >conftest.$ac_ext <<_ACEOF
29125 /* confdefs.h.  */
29126 _ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h.  */
29131 /* Override any GCC internal prototype to avoid an error.
29132    Use char because int might match the return type of a GCC
29133    builtin and then its argument prototype would still apply.  */
29134 #ifdef __cplusplus
29135 extern "C"
29136 #endif
29137 char pango_cairo_context_set_font_options ();
29138 int
29139 main ()
29141 return pango_cairo_context_set_font_options ();
29142   ;
29143   return 0;
29145 _ACEOF
29146 rm -f conftest.$ac_objext conftest$ac_exeext
29147 if { (ac_try="$ac_link"
29148 case "(($ac_try" in
29149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29150   *) ac_try_echo=$ac_try;;
29151 esac
29152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29153 $as_echo "$ac_try_echo") >&5
29154   (eval "$ac_link") 2>conftest.er1
29155   ac_status=$?
29156   grep -v '^ *+' conftest.er1 >conftest.err
29157   rm -f conftest.er1
29158   cat conftest.err >&5
29159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160   (exit $ac_status); } && {
29161          test -z "$ac_c_werror_flag" ||
29162          test ! -s conftest.err
29163        } && test -s conftest$ac_exeext && {
29164          test "$cross_compiling" = yes ||
29165          $as_test_x conftest$ac_exeext
29166        }; then
29167   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
29168 else
29169   $as_echo "$as_me: failed program was:" >&5
29170 sed 's/^/| /' conftest.$ac_ext >&5
29172         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
29175 rm -rf conftest.dSYM
29176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29177       conftest$ac_exeext conftest.$ac_ext
29178 LIBS=$ac_check_lib_save_LIBS
29180 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
29181 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
29182 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then
29184     if test "${ac_cv_header_pango_pango_h+set}" = set; then
29185   { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
29186 $as_echo_n "checking for pango/pango.h... " >&6; }
29187 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29188   $as_echo_n "(cached) " >&6
29190 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
29191 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
29192 else
29193   # Is the header compilable?
29194 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
29195 $as_echo_n "checking pango/pango.h usability... " >&6; }
29196 cat >conftest.$ac_ext <<_ACEOF
29197 /* confdefs.h.  */
29198 _ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h.  */
29202 $ac_includes_default
29203 #include <pango/pango.h>
29204 _ACEOF
29205 rm -f conftest.$ac_objext
29206 if { (ac_try="$ac_compile"
29207 case "(($ac_try" in
29208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209   *) ac_try_echo=$ac_try;;
29210 esac
29211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29212 $as_echo "$ac_try_echo") >&5
29213   (eval "$ac_compile") 2>conftest.er1
29214   ac_status=$?
29215   grep -v '^ *+' conftest.er1 >conftest.err
29216   rm -f conftest.er1
29217   cat conftest.err >&5
29218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219   (exit $ac_status); } && {
29220          test -z "$ac_c_werror_flag" ||
29221          test ! -s conftest.err
29222        } && test -s conftest.$ac_objext; then
29223   ac_header_compiler=yes
29224 else
29225   $as_echo "$as_me: failed program was:" >&5
29226 sed 's/^/| /' conftest.$ac_ext >&5
29228         ac_header_compiler=no
29231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29232 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29233 $as_echo "$ac_header_compiler" >&6; }
29235 # Is the header present?
29236 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
29237 $as_echo_n "checking pango/pango.h presence... " >&6; }
29238 cat >conftest.$ac_ext <<_ACEOF
29239 /* confdefs.h.  */
29240 _ACEOF
29241 cat confdefs.h >>conftest.$ac_ext
29242 cat >>conftest.$ac_ext <<_ACEOF
29243 /* end confdefs.h.  */
29244 #include <pango/pango.h>
29245 _ACEOF
29246 if { (ac_try="$ac_cpp conftest.$ac_ext"
29247 case "(($ac_try" in
29248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249   *) ac_try_echo=$ac_try;;
29250 esac
29251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29252 $as_echo "$ac_try_echo") >&5
29253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29254   ac_status=$?
29255   grep -v '^ *+' conftest.er1 >conftest.err
29256   rm -f conftest.er1
29257   cat conftest.err >&5
29258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259   (exit $ac_status); } >/dev/null && {
29260          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29261          test ! -s conftest.err
29262        }; then
29263   ac_header_preproc=yes
29264 else
29265   $as_echo "$as_me: failed program was:" >&5
29266 sed 's/^/| /' conftest.$ac_ext >&5
29268   ac_header_preproc=no
29271 rm -f conftest.err conftest.$ac_ext
29272 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29273 $as_echo "$ac_header_preproc" >&6; }
29275 # So?  What about this header?
29276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29277   yes:no: )
29278     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
29279 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29280     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
29281 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
29282     ac_header_preproc=yes
29283     ;;
29284   no:yes:* )
29285     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
29286 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
29287     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
29288 $as_echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
29289     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
29290 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
29291     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
29292 $as_echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29293     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
29294 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
29295     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
29296 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
29298     ;;
29299 esac
29300 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
29301 $as_echo_n "checking for pango/pango.h... " >&6; }
29302 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29303   $as_echo_n "(cached) " >&6
29304 else
29305   ac_cv_header_pango_pango_h=$ac_header_preproc
29307 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
29308 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
29311 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
29312   LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
29318  if test $EX_CHECK_STATE = NO; then
29319         for ac_prog in pkg-config
29321   # Extract the first word of "$ac_prog", so it can be a program name with args.
29322 set dummy $ac_prog; ac_word=$2
29323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29324 $as_echo_n "checking for $ac_word... " >&6; }
29325 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29326   $as_echo_n "(cached) " >&6
29327 else
29328   if test -n "$PKGCONFIG"; then
29329   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29330 else
29331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29332 for as_dir in $PATH
29334   IFS=$as_save_IFS
29335   test -z "$as_dir" && as_dir=.
29336   for ac_exec_ext in '' $ac_executable_extensions; do
29337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29338     ac_cv_prog_PKGCONFIG="$ac_prog"
29339     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29340     break 2
29341   fi
29342 done
29343 done
29344 IFS=$as_save_IFS
29348 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29349 if test -n "$PKGCONFIG"; then
29350   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29351 $as_echo "$PKGCONFIG" >&6; }
29352 else
29353   { $as_echo "$as_me:$LINENO: result: no" >&5
29354 $as_echo "no" >&6; }
29358   test -n "$PKGCONFIG" && break
29359 done
29360 test -n "$PKGCONFIG" || PKGCONFIG="no"
29362     if test "$PKGCONFIG" != "no"; then
29363           if $PKGCONFIG --exists pangocairo; then
29364              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
29365              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
29366              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
29367              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
29368                              unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
29369              { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
29370 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
29371 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
29372   $as_echo_n "(cached) " >&6
29373 else
29374   ac_check_lib_save_LIBS=$LIBS
29375 LIBS="-lpango-1.0  $LIBS"
29376 cat >conftest.$ac_ext <<_ACEOF
29377 /* confdefs.h.  */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h.  */
29383 /* Override any GCC internal prototype to avoid an error.
29384    Use char because int might match the return type of a GCC
29385    builtin and then its argument prototype would still apply.  */
29386 #ifdef __cplusplus
29387 extern "C"
29388 #endif
29389 char pango_cairo_context_set_font_options ();
29390 int
29391 main ()
29393 return pango_cairo_context_set_font_options ();
29394   ;
29395   return 0;
29397 _ACEOF
29398 rm -f conftest.$ac_objext conftest$ac_exeext
29399 if { (ac_try="$ac_link"
29400 case "(($ac_try" in
29401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402   *) ac_try_echo=$ac_try;;
29403 esac
29404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29405 $as_echo "$ac_try_echo") >&5
29406   (eval "$ac_link") 2>conftest.er1
29407   ac_status=$?
29408   grep -v '^ *+' conftest.er1 >conftest.err
29409   rm -f conftest.er1
29410   cat conftest.err >&5
29411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); } && {
29413          test -z "$ac_c_werror_flag" ||
29414          test ! -s conftest.err
29415        } && test -s conftest$ac_exeext && {
29416          test "$cross_compiling" = yes ||
29417          $as_test_x conftest$ac_exeext
29418        }; then
29419   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
29420 else
29421   $as_echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29424         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
29427 rm -rf conftest.dSYM
29428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29429       conftest$ac_exeext conftest.$ac_ext
29430 LIBS=$ac_check_lib_save_LIBS
29432 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
29433 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
29434 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then
29436                  unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29437                  if test "${ac_cv_header_pango_pango_h+set}" = set; then
29438   { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
29439 $as_echo_n "checking for pango/pango.h... " >&6; }
29440 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29441   $as_echo_n "(cached) " >&6
29443 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
29444 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
29445 else
29446   # Is the header compilable?
29447 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
29448 $as_echo_n "checking pango/pango.h usability... " >&6; }
29449 cat >conftest.$ac_ext <<_ACEOF
29450 /* confdefs.h.  */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h.  */
29455 $ac_includes_default
29456 #include <pango/pango.h>
29457 _ACEOF
29458 rm -f conftest.$ac_objext
29459 if { (ac_try="$ac_compile"
29460 case "(($ac_try" in
29461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462   *) ac_try_echo=$ac_try;;
29463 esac
29464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29465 $as_echo "$ac_try_echo") >&5
29466   (eval "$ac_compile") 2>conftest.er1
29467   ac_status=$?
29468   grep -v '^ *+' conftest.er1 >conftest.err
29469   rm -f conftest.er1
29470   cat conftest.err >&5
29471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472   (exit $ac_status); } && {
29473          test -z "$ac_c_werror_flag" ||
29474          test ! -s conftest.err
29475        } && test -s conftest.$ac_objext; then
29476   ac_header_compiler=yes
29477 else
29478   $as_echo "$as_me: failed program was:" >&5
29479 sed 's/^/| /' conftest.$ac_ext >&5
29481         ac_header_compiler=no
29484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29486 $as_echo "$ac_header_compiler" >&6; }
29488 # Is the header present?
29489 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
29490 $as_echo_n "checking pango/pango.h presence... " >&6; }
29491 cat >conftest.$ac_ext <<_ACEOF
29492 /* confdefs.h.  */
29493 _ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h.  */
29497 #include <pango/pango.h>
29498 _ACEOF
29499 if { (ac_try="$ac_cpp conftest.$ac_ext"
29500 case "(($ac_try" in
29501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502   *) ac_try_echo=$ac_try;;
29503 esac
29504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29505 $as_echo "$ac_try_echo") >&5
29506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29507   ac_status=$?
29508   grep -v '^ *+' conftest.er1 >conftest.err
29509   rm -f conftest.er1
29510   cat conftest.err >&5
29511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); } >/dev/null && {
29513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29514          test ! -s conftest.err
29515        }; then
29516   ac_header_preproc=yes
29517 else
29518   $as_echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29521   ac_header_preproc=no
29524 rm -f conftest.err conftest.$ac_ext
29525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29526 $as_echo "$ac_header_preproc" >&6; }
29528 # So?  What about this header?
29529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29530   yes:no: )
29531     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
29532 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29533     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
29534 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
29535     ac_header_preproc=yes
29536     ;;
29537   no:yes:* )
29538     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
29539 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
29540     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
29541 $as_echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
29542     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
29543 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
29544     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
29545 $as_echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29546     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
29547 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
29548     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
29549 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
29551     ;;
29552 esac
29553 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
29554 $as_echo_n "checking for pango/pango.h... " >&6; }
29555 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29556   $as_echo_n "(cached) " >&6
29557 else
29558   ac_cv_header_pango_pango_h=$ac_header_preproc
29560 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
29561 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
29564 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
29565   EX_CHECK_STATE=YES
29572           else
29573              { $as_echo "$as_me:$LINENO: WARNING:
29574 ----------------------------------------------------------------------------
29575 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
29576   You may want to set the PKG_CONFIG_PATH variable to point to its
29577   location.
29578 ----------------------------------------------------------------------------
29579                         " >&5
29580 $as_echo "$as_me: WARNING:
29581 ----------------------------------------------------------------------------
29582 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
29583   You may want to set the PKG_CONFIG_PATH variable to point to its
29584   location.
29585 ----------------------------------------------------------------------------
29586                         " >&2;}
29587            fi
29588      fi
29589   fi
29591   if test ${EX_CHECK_STATE} = NO; then
29592      { $as_echo "$as_me:$LINENO: WARNING:
29593 ----------------------------------------------------------------------------
29594 * I could not find a working copy of pangocairo. Check config.log for hints on why
29595   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29596   so that compiler and the linker can find libpango-1.0 and its header files. If
29597   you have not installed pangocairo, you can get it either from its original home on
29599      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
29601   You can find also find an archive copy on
29603      http://oss.oetiker.ch/rrdtool/pub/libs
29605   The last tested version of pangocairo is 1.17.
29607        LIBS=$LIBS
29608    LDFLAGS=$LDFLAGS
29609   CPPFLAGS=$CPPFLAGS
29611 ----------------------------------------------------------------------------
29612                 " >&5
29613 $as_echo "$as_me: WARNING:
29614 ----------------------------------------------------------------------------
29615 * I could not find a working copy of pangocairo. Check config.log for hints on why
29616   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29617   so that compiler and the linker can find libpango-1.0 and its header files. If
29618   you have not installed pangocairo, you can get it either from its original home on
29620      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
29622   You can find also find an archive copy on
29624      http://oss.oetiker.ch/rrdtool/pub/libs
29626   The last tested version of pangocairo is 1.17.
29628        LIBS=$LIBS
29629    LDFLAGS=$LDFLAGS
29630   CPPFLAGS=$CPPFLAGS
29632 ----------------------------------------------------------------------------
29633                 " >&2;}
29634        EX_CHECK_ALL_ERR=YES
29635        LIBS="${ex_check_save_LIBS}"
29636        CPPFLAGS="${ex_check_save_CPPFLAGS}"
29637        LDFLAGS="${ex_check_save_LDFLAGS}"
29638     fi
29639     ac_ext=c
29640 ac_cpp='$CPP $CPPFLAGS'
29641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29648  ac_ext=c
29649 ac_cpp='$CPP $CPPFLAGS'
29650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29654  EX_CHECK_STATE=NO
29655  ex_check_save_LIBS=${LIBS}
29656  ex_check_save_CPPFLAGS=${CPPFLAGS}
29657  ex_check_save_LDFLAGS=${LDFLAGS}
29658  if test "x/usr/include/libxml2" != "x"; then
29659    CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
29660  fi
29661   { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
29662 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
29663 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
29664   $as_echo_n "(cached) " >&6
29665 else
29666   ac_check_lib_save_LIBS=$LIBS
29667 LIBS="-lxml2  $LIBS"
29668 cat >conftest.$ac_ext <<_ACEOF
29669 /* confdefs.h.  */
29670 _ACEOF
29671 cat confdefs.h >>conftest.$ac_ext
29672 cat >>conftest.$ac_ext <<_ACEOF
29673 /* end confdefs.h.  */
29675 /* Override any GCC internal prototype to avoid an error.
29676    Use char because int might match the return type of a GCC
29677    builtin and then its argument prototype would still apply.  */
29678 #ifdef __cplusplus
29679 extern "C"
29680 #endif
29681 char xmlParseFile ();
29682 int
29683 main ()
29685 return xmlParseFile ();
29686   ;
29687   return 0;
29689 _ACEOF
29690 rm -f conftest.$ac_objext conftest$ac_exeext
29691 if { (ac_try="$ac_link"
29692 case "(($ac_try" in
29693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694   *) ac_try_echo=$ac_try;;
29695 esac
29696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29697 $as_echo "$ac_try_echo") >&5
29698   (eval "$ac_link") 2>conftest.er1
29699   ac_status=$?
29700   grep -v '^ *+' conftest.er1 >conftest.err
29701   rm -f conftest.er1
29702   cat conftest.err >&5
29703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); } && {
29705          test -z "$ac_c_werror_flag" ||
29706          test ! -s conftest.err
29707        } && test -s conftest$ac_exeext && {
29708          test "$cross_compiling" = yes ||
29709          $as_test_x conftest$ac_exeext
29710        }; then
29711   ac_cv_lib_xml2_xmlParseFile=yes
29712 else
29713   $as_echo "$as_me: failed program was:" >&5
29714 sed 's/^/| /' conftest.$ac_ext >&5
29716         ac_cv_lib_xml2_xmlParseFile=no
29719 rm -rf conftest.dSYM
29720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29721       conftest$ac_exeext conftest.$ac_ext
29722 LIBS=$ac_check_lib_save_LIBS
29724 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
29725 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
29726 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
29728     if test "${ac_cv_header_libxml_parser_h+set}" = set; then
29729   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
29730 $as_echo_n "checking for libxml/parser.h... " >&6; }
29731 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
29732   $as_echo_n "(cached) " >&6
29734 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
29735 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
29736 else
29737   # Is the header compilable?
29738 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
29739 $as_echo_n "checking libxml/parser.h usability... " >&6; }
29740 cat >conftest.$ac_ext <<_ACEOF
29741 /* confdefs.h.  */
29742 _ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h.  */
29746 $ac_includes_default
29747 #include <libxml/parser.h>
29748 _ACEOF
29749 rm -f conftest.$ac_objext
29750 if { (ac_try="$ac_compile"
29751 case "(($ac_try" in
29752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753   *) ac_try_echo=$ac_try;;
29754 esac
29755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29756 $as_echo "$ac_try_echo") >&5
29757   (eval "$ac_compile") 2>conftest.er1
29758   ac_status=$?
29759   grep -v '^ *+' conftest.er1 >conftest.err
29760   rm -f conftest.er1
29761   cat conftest.err >&5
29762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); } && {
29764          test -z "$ac_c_werror_flag" ||
29765          test ! -s conftest.err
29766        } && test -s conftest.$ac_objext; then
29767   ac_header_compiler=yes
29768 else
29769   $as_echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29772         ac_header_compiler=no
29775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29777 $as_echo "$ac_header_compiler" >&6; }
29779 # Is the header present?
29780 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
29781 $as_echo_n "checking libxml/parser.h presence... " >&6; }
29782 cat >conftest.$ac_ext <<_ACEOF
29783 /* confdefs.h.  */
29784 _ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h.  */
29788 #include <libxml/parser.h>
29789 _ACEOF
29790 if { (ac_try="$ac_cpp conftest.$ac_ext"
29791 case "(($ac_try" in
29792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793   *) ac_try_echo=$ac_try;;
29794 esac
29795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29796 $as_echo "$ac_try_echo") >&5
29797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29798   ac_status=$?
29799   grep -v '^ *+' conftest.er1 >conftest.err
29800   rm -f conftest.er1
29801   cat conftest.err >&5
29802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803   (exit $ac_status); } >/dev/null && {
29804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29805          test ! -s conftest.err
29806        }; then
29807   ac_header_preproc=yes
29808 else
29809   $as_echo "$as_me: failed program was:" >&5
29810 sed 's/^/| /' conftest.$ac_ext >&5
29812   ac_header_preproc=no
29815 rm -f conftest.err conftest.$ac_ext
29816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29817 $as_echo "$ac_header_preproc" >&6; }
29819 # So?  What about this header?
29820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29821   yes:no: )
29822     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
29823 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29824     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
29825 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
29826     ac_header_preproc=yes
29827     ;;
29828   no:yes:* )
29829     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
29830 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
29831     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
29832 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
29833     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
29834 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
29835     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
29836 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29837     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
29838 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
29839     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
29840 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
29842     ;;
29843 esac
29844 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
29845 $as_echo_n "checking for libxml/parser.h... " >&6; }
29846 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
29847   $as_echo_n "(cached) " >&6
29848 else
29849   ac_cv_header_libxml_parser_h=$ac_header_preproc
29851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
29852 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
29855 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
29856   LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
29862  if test $EX_CHECK_STATE = NO; then
29863         for ac_prog in pkg-config
29865   # Extract the first word of "$ac_prog", so it can be a program name with args.
29866 set dummy $ac_prog; ac_word=$2
29867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29868 $as_echo_n "checking for $ac_word... " >&6; }
29869 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29870   $as_echo_n "(cached) " >&6
29871 else
29872   if test -n "$PKGCONFIG"; then
29873   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29874 else
29875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29876 for as_dir in $PATH
29878   IFS=$as_save_IFS
29879   test -z "$as_dir" && as_dir=.
29880   for ac_exec_ext in '' $ac_executable_extensions; do
29881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29882     ac_cv_prog_PKGCONFIG="$ac_prog"
29883     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29884     break 2
29885   fi
29886 done
29887 done
29888 IFS=$as_save_IFS
29892 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29893 if test -n "$PKGCONFIG"; then
29894   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29895 $as_echo "$PKGCONFIG" >&6; }
29896 else
29897   { $as_echo "$as_me:$LINENO: result: no" >&5
29898 $as_echo "no" >&6; }
29902   test -n "$PKGCONFIG" && break
29903 done
29904 test -n "$PKGCONFIG" || PKGCONFIG="no"
29906     if test "$PKGCONFIG" != "no"; then
29907           if $PKGCONFIG --exists libxml-2.0; then
29908              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
29909              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
29910              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
29911              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
29912                              unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
29913              { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
29914 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
29915 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
29916   $as_echo_n "(cached) " >&6
29917 else
29918   ac_check_lib_save_LIBS=$LIBS
29919 LIBS="-lxml2  $LIBS"
29920 cat >conftest.$ac_ext <<_ACEOF
29921 /* confdefs.h.  */
29922 _ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h.  */
29927 /* Override any GCC internal prototype to avoid an error.
29928    Use char because int might match the return type of a GCC
29929    builtin and then its argument prototype would still apply.  */
29930 #ifdef __cplusplus
29931 extern "C"
29932 #endif
29933 char xmlParseFile ();
29934 int
29935 main ()
29937 return xmlParseFile ();
29938   ;
29939   return 0;
29941 _ACEOF
29942 rm -f conftest.$ac_objext conftest$ac_exeext
29943 if { (ac_try="$ac_link"
29944 case "(($ac_try" in
29945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946   *) ac_try_echo=$ac_try;;
29947 esac
29948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29949 $as_echo "$ac_try_echo") >&5
29950   (eval "$ac_link") 2>conftest.er1
29951   ac_status=$?
29952   grep -v '^ *+' conftest.er1 >conftest.err
29953   rm -f conftest.er1
29954   cat conftest.err >&5
29955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); } && {
29957          test -z "$ac_c_werror_flag" ||
29958          test ! -s conftest.err
29959        } && test -s conftest$ac_exeext && {
29960          test "$cross_compiling" = yes ||
29961          $as_test_x conftest$ac_exeext
29962        }; then
29963   ac_cv_lib_xml2_xmlParseFile=yes
29964 else
29965   $as_echo "$as_me: failed program was:" >&5
29966 sed 's/^/| /' conftest.$ac_ext >&5
29968         ac_cv_lib_xml2_xmlParseFile=no
29971 rm -rf conftest.dSYM
29972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29973       conftest$ac_exeext conftest.$ac_ext
29974 LIBS=$ac_check_lib_save_LIBS
29976 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
29977 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
29978 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
29980                  unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29981                  if test "${ac_cv_header_libxml_parser_h+set}" = set; then
29982   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
29983 $as_echo_n "checking for libxml/parser.h... " >&6; }
29984 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
29985   $as_echo_n "(cached) " >&6
29987 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
29988 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
29989 else
29990   # Is the header compilable?
29991 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
29992 $as_echo_n "checking libxml/parser.h usability... " >&6; }
29993 cat >conftest.$ac_ext <<_ACEOF
29994 /* confdefs.h.  */
29995 _ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h.  */
29999 $ac_includes_default
30000 #include <libxml/parser.h>
30001 _ACEOF
30002 rm -f conftest.$ac_objext
30003 if { (ac_try="$ac_compile"
30004 case "(($ac_try" in
30005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006   *) ac_try_echo=$ac_try;;
30007 esac
30008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30009 $as_echo "$ac_try_echo") >&5
30010   (eval "$ac_compile") 2>conftest.er1
30011   ac_status=$?
30012   grep -v '^ *+' conftest.er1 >conftest.err
30013   rm -f conftest.er1
30014   cat conftest.err >&5
30015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); } && {
30017          test -z "$ac_c_werror_flag" ||
30018          test ! -s conftest.err
30019        } && test -s conftest.$ac_objext; then
30020   ac_header_compiler=yes
30021 else
30022   $as_echo "$as_me: failed program was:" >&5
30023 sed 's/^/| /' conftest.$ac_ext >&5
30025         ac_header_compiler=no
30028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30029 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30030 $as_echo "$ac_header_compiler" >&6; }
30032 # Is the header present?
30033 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
30034 $as_echo_n "checking libxml/parser.h presence... " >&6; }
30035 cat >conftest.$ac_ext <<_ACEOF
30036 /* confdefs.h.  */
30037 _ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h.  */
30041 #include <libxml/parser.h>
30042 _ACEOF
30043 if { (ac_try="$ac_cpp conftest.$ac_ext"
30044 case "(($ac_try" in
30045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046   *) ac_try_echo=$ac_try;;
30047 esac
30048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30049 $as_echo "$ac_try_echo") >&5
30050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30051   ac_status=$?
30052   grep -v '^ *+' conftest.er1 >conftest.err
30053   rm -f conftest.er1
30054   cat conftest.err >&5
30055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); } >/dev/null && {
30057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30058          test ! -s conftest.err
30059        }; then
30060   ac_header_preproc=yes
30061 else
30062   $as_echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30065   ac_header_preproc=no
30068 rm -f conftest.err conftest.$ac_ext
30069 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30070 $as_echo "$ac_header_preproc" >&6; }
30072 # So?  What about this header?
30073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30074   yes:no: )
30075     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
30076 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30077     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
30078 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
30079     ac_header_preproc=yes
30080     ;;
30081   no:yes:* )
30082     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
30083 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
30084     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
30085 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
30086     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
30087 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
30088     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
30089 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30090     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
30091 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
30092     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
30093 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
30095     ;;
30096 esac
30097 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30098 $as_echo_n "checking for libxml/parser.h... " >&6; }
30099 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30100   $as_echo_n "(cached) " >&6
30101 else
30102   ac_cv_header_libxml_parser_h=$ac_header_preproc
30104 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30105 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
30108 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
30109   EX_CHECK_STATE=YES
30116           else
30117              { $as_echo "$as_me:$LINENO: WARNING:
30118 ----------------------------------------------------------------------------
30119 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
30120   You may want to set the PKG_CONFIG_PATH variable to point to its
30121   location.
30122 ----------------------------------------------------------------------------
30123                         " >&5
30124 $as_echo "$as_me: WARNING:
30125 ----------------------------------------------------------------------------
30126 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
30127   You may want to set the PKG_CONFIG_PATH variable to point to its
30128   location.
30129 ----------------------------------------------------------------------------
30130                         " >&2;}
30131            fi
30132      fi
30133   fi
30135   if test ${EX_CHECK_STATE} = NO; then
30136      { $as_echo "$as_me:$LINENO: WARNING:
30137 ----------------------------------------------------------------------------
30138 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
30139   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30140   so that compiler and the linker can find libxml2 and its header files. If
30141   you have not installed libxml-2.0, you can get it either from its original home on
30143      http://xmlsoft.org/downloads.html
30145   You can find also find an archive copy on
30147      http://oss.oetiker.ch/rrdtool/pub/libs
30149   The last tested version of libxml-2.0 is 2.6.31.
30151        LIBS=$LIBS
30152    LDFLAGS=$LDFLAGS
30153   CPPFLAGS=$CPPFLAGS
30155 ----------------------------------------------------------------------------
30156                 " >&5
30157 $as_echo "$as_me: WARNING:
30158 ----------------------------------------------------------------------------
30159 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
30160   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30161   so that compiler and the linker can find libxml2 and its header files. If
30162   you have not installed libxml-2.0, you can get it either from its original home on
30164      http://xmlsoft.org/downloads.html
30166   You can find also find an archive copy on
30168      http://oss.oetiker.ch/rrdtool/pub/libs
30170   The last tested version of libxml-2.0 is 2.6.31.
30172        LIBS=$LIBS
30173    LDFLAGS=$LDFLAGS
30174   CPPFLAGS=$CPPFLAGS
30176 ----------------------------------------------------------------------------
30177                 " >&2;}
30178        EX_CHECK_ALL_ERR=YES
30179        LIBS="${ex_check_save_LIBS}"
30180        CPPFLAGS="${ex_check_save_CPPFLAGS}"
30181        LDFLAGS="${ex_check_save_LDFLAGS}"
30182     fi
30183     ac_ext=c
30184 ac_cpp='$CPP $CPPFLAGS'
30185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30192 if test "$EX_CHECK_ALL_ERR" = "YES"; then
30193   { { $as_echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
30194 $as_echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
30195    { (exit 1); exit 1; }; }
30198 ALL_LIBS="$LIBS"
30199 LIBS=
30205 case $TERM in
30206        #   for the most important terminal types we directly know the sequences
30207        xterm|xterm*|vt220|vt220*)
30208                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
30209                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
30210        ;;
30211        vt100|vt100*|cygwin)
30212                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
30213                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
30214        ;;
30215        *)
30216                T_MD=''
30217                T_ME=''
30218        ;;
30219 esac
30220   { $as_echo "$as_me:$LINENO: result: " >&5
30221 $as_echo "" >&6; }
30222   { $as_echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
30223 $as_echo "${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
30226 PATH=$PATH:/usr/perl5/bin
30227 export PATH
30228 # Extract the first word of "perl", so it can be a program name with args.
30229 set dummy perl; ac_word=$2
30230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30231 $as_echo_n "checking for $ac_word... " >&6; }
30232 if test "${ac_cv_path_PERL+set}" = set; then
30233   $as_echo_n "(cached) " >&6
30234 else
30235   case $PERL in
30236   [\\/]* | ?:[\\/]*)
30237   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30238   ;;
30239   *)
30240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30241 for as_dir in $PATH
30243   IFS=$as_save_IFS
30244   test -z "$as_dir" && as_dir=.
30245   for ac_exec_ext in '' $ac_executable_extensions; do
30246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30247     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30248     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30249     break 2
30250   fi
30251 done
30252 done
30253 IFS=$as_save_IFS
30255   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
30256   ;;
30257 esac
30259 PERL=$ac_cv_path_PERL
30260 if test -n "$PERL"; then
30261   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
30262 $as_echo "$PERL" >&6; }
30263 else
30264   { $as_echo "$as_me:$LINENO: result: no" >&5
30265 $as_echo "no" >&6; }
30269 # Extract the first word of "pod2man", so it can be a program name with args.
30270 set dummy pod2man; ac_word=$2
30271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30272 $as_echo_n "checking for $ac_word... " >&6; }
30273 if test "${ac_cv_path_POD2MAN+set}" = set; then
30274   $as_echo_n "(cached) " >&6
30275 else
30276   case $POD2MAN in
30277   [\\/]* | ?:[\\/]*)
30278   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
30279   ;;
30280   *)
30281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30282 for as_dir in $PATH
30284   IFS=$as_save_IFS
30285   test -z "$as_dir" && as_dir=.
30286   for ac_exec_ext in '' $ac_executable_extensions; do
30287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30288     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
30289     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30290     break 2
30291   fi
30292 done
30293 done
30294 IFS=$as_save_IFS
30296   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
30297   ;;
30298 esac
30300 POD2MAN=$ac_cv_path_POD2MAN
30301 if test -n "$POD2MAN"; then
30302   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
30303 $as_echo "$POD2MAN" >&6; }
30304 else
30305   { $as_echo "$as_me:$LINENO: result: no" >&5
30306 $as_echo "no" >&6; }
30310 # Extract the first word of "pod2html", so it can be a program name with args.
30311 set dummy pod2html; ac_word=$2
30312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30313 $as_echo_n "checking for $ac_word... " >&6; }
30314 if test "${ac_cv_path_POD2HTML+set}" = set; then
30315   $as_echo_n "(cached) " >&6
30316 else
30317   case $POD2HTML in
30318   [\\/]* | ?:[\\/]*)
30319   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
30320   ;;
30321   *)
30322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30323 for as_dir in $PATH
30325   IFS=$as_save_IFS
30326   test -z "$as_dir" && as_dir=.
30327   for ac_exec_ext in '' $ac_executable_extensions; do
30328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30329     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
30330     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30331     break 2
30332   fi
30333 done
30334 done
30335 IFS=$as_save_IFS
30337   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
30338   ;;
30339 esac
30341 POD2HTML=$ac_cv_path_POD2HTML
30342 if test -n "$POD2HTML"; then
30343   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
30344 $as_echo "$POD2HTML" >&6; }
30345 else
30346   { $as_echo "$as_me:$LINENO: result: no" >&5
30347 $as_echo "no" >&6; }
30353 # Check whether --enable-perl was given.
30354 if test "${enable_perl+set}" = set; then
30355   enableval=$enable_perl;
30356 else
30357   enable_perl=yes
30367 if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
30368         COMP_PERL=
30369 else
30370         COMP_PERL="perl_piped perl_shared"
30371         { $as_echo "$as_me:$LINENO: checking for the perl version you are running" >&5
30372 $as_echo_n "checking for the perl version you are running... " >&6; }
30373         PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
30374         { $as_echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
30375 $as_echo "$PERL_VERSION" >&6; }
30376         if test -z "$PERLCC"; then
30377             { $as_echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
30378 $as_echo_n "checking for the C compiler perl wants to use to build its modules... " >&6; }
30379             perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
30380             { $as_echo "$as_me:$LINENO: result: $perlcc" >&5
30381 $as_echo "$perlcc" >&6; }
30382             if test ! -x "$perlcc"; then
30383                 # Extract the first word of "${perlcc}", so it can be a program name with args.
30384 set dummy ${perlcc}; ac_word=$2
30385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30386 $as_echo_n "checking for $ac_word... " >&6; }
30387 if test "${ac_cv_path_PERL_CC+set}" = set; then
30388   $as_echo_n "(cached) " >&6
30389 else
30390   case $PERL_CC in
30391   [\\/]* | ?:[\\/]*)
30392   ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
30393   ;;
30394   *)
30395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30396 for as_dir in $PATH
30398   IFS=$as_save_IFS
30399   test -z "$as_dir" && as_dir=.
30400   for ac_exec_ext in '' $ac_executable_extensions; do
30401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30402     ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
30403     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30404     break 2
30405   fi
30406 done
30407 done
30408 IFS=$as_save_IFS
30410   test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
30411   ;;
30412 esac
30414 PERL_CC=$ac_cv_path_PERL_CC
30415 if test -n "$PERL_CC"; then
30416   { $as_echo "$as_me:$LINENO: result: $PERL_CC" >&5
30417 $as_echo "$PERL_CC" >&6; }
30418 else
30419   { $as_echo "$as_me:$LINENO: result: no" >&5
30420 $as_echo "no" >&6; }
30424                 if test "$PERL_CC" = "no"; then
30425                     { $as_echo "$as_me:$LINENO: WARNING:
30426 I would not find the Compiler ($perlcc) that was originally used to compile
30427 your perl binary. You should either make sure that this compiler is
30428 available on your system, pick an other compiler and set PERLCC
30429 appropriately, or use a different perl setup that was compiled locally.
30431 I will disable the compilation of the RRDs perl module for now.
30432 " >&5
30433 $as_echo "$as_me: WARNING:
30434 I would not find the Compiler ($perlcc) that was originally used to compile
30435 your perl binary. You should either make sure that this compiler is
30436 available on your system, pick an other compiler and set PERLCC
30437 appropriately, or use a different perl setup that was compiled locally.
30439 I will disable the compilation of the RRDs perl module for now.
30440 " >&2;}
30441                     COMP_PERL="perl_piped"
30442                 fi
30443             fi
30444         fi
30447 { $as_echo "$as_me:$LINENO: checking Perl Modules to build" >&5
30448 $as_echo_n "checking Perl Modules to build... " >&6; }
30449 { $as_echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
30450 $as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
30452 # Options to pass when configuring perl module
30453 langpref=$prefix
30454 test "$langpref" = '$(DESTDIR)NONE' && langpref='$(DESTDIR)'$ac_default_prefix
30455 test "$langpref" = "NONE" && langpref=$ac_default_prefix
30457 PERL_MAKE_OPTIONS="PREFIX=$langpref LIB=$langpref/lib/perl/$PERL_VERSION"
30459 # Check whether --enable-perl-site-install was given.
30460 if test "${enable_perl_site_install+set}" = set; then
30461   enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
30465 if test ! -z "$PERLCC"; then
30466    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
30468    if test ! -z "$PERLCCFLAGS"; then
30469        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
30470    fi
30472    if test -z "$PERLLD"; then
30473        PERLLD=$PERLCC
30474    fi
30475    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
30477    if test ! -z "$PERLLDFLAGS"; then
30478        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
30479    fi
30483 # Check whether --with-perl-options was given.
30484 if test "${with_perl_options+set}" = set; then
30485   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
30494 # Extract the first word of "ruby", so it can be a program name with args.
30495 set dummy ruby; ac_word=$2
30496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30497 $as_echo_n "checking for $ac_word... " >&6; }
30498 if test "${ac_cv_path_RUBY+set}" = set; then
30499   $as_echo_n "(cached) " >&6
30500 else
30501   case $RUBY in
30502   [\\/]* | ?:[\\/]*)
30503   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
30504   ;;
30505   *)
30506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30507 for as_dir in $PATH
30509   IFS=$as_save_IFS
30510   test -z "$as_dir" && as_dir=.
30511   for ac_exec_ext in '' $ac_executable_extensions; do
30512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30513     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
30514     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30515     break 2
30516   fi
30517 done
30518 done
30519 IFS=$as_save_IFS
30521   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
30522   ;;
30523 esac
30525 RUBY=$ac_cv_path_RUBY
30526 if test -n "$RUBY"; then
30527   { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
30528 $as_echo "$RUBY" >&6; }
30529 else
30530   { $as_echo "$as_me:$LINENO: result: no" >&5
30531 $as_echo "no" >&6; }
30536 # Check whether --enable-ruby was given.
30537 if test "${enable_ruby+set}" = set; then
30538   enableval=$enable_ruby;
30539 else
30540   enable_ruby=yes
30544 { $as_echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
30545 $as_echo_n "checking if ruby modules can be built... " >&6; }
30547 if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
30548         COMP_RUBY=
30549         { $as_echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
30550 $as_echo "No .. Ruby not found or disabled" >&6; }
30551 else
30552         if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
30553                 COMP_RUBY="ruby"
30554                 { $as_echo "$as_me:$LINENO: result: YES" >&5
30555 $as_echo "YES" >&6; }
30556         else
30557                 COMP_RUBY=
30558                 { $as_echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
30559 $as_echo "Ruby found but mkmf is missing! Install the -dev package" >&6; }
30560         fi
30563 # Check whether --enable-ruby-site-install was given.
30564 if test "${enable_ruby_site_install+set}" = set; then
30565   enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
30566 else
30567   RUBY_MAKE_OPTIONS="sitedir=$langpref/lib/ruby"
30573 # Check whether --with-ruby-options was given.
30574 if test "${with_ruby_options+set}" = set; then
30575   withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
30583 # Extract the first word of "lua", so it can be a program name with args.
30584 set dummy lua; ac_word=$2
30585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30586 $as_echo_n "checking for $ac_word... " >&6; }
30587 if test "${ac_cv_path_LUA+set}" = set; then
30588   $as_echo_n "(cached) " >&6
30589 else
30590   case $LUA in
30591   [\\/]* | ?:[\\/]*)
30592   ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
30593   ;;
30594   *)
30595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30596 for as_dir in $PATH
30598   IFS=$as_save_IFS
30599   test -z "$as_dir" && as_dir=.
30600   for ac_exec_ext in '' $ac_executable_extensions; do
30601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30602     ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
30603     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30604     break 2
30605   fi
30606 done
30607 done
30608 IFS=$as_save_IFS
30610   test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
30611   ;;
30612 esac
30614 LUA=$ac_cv_path_LUA
30615 if test -n "$LUA"; then
30616   { $as_echo "$as_me:$LINENO: result: $LUA" >&5
30617 $as_echo "$LUA" >&6; }
30618 else
30619   { $as_echo "$as_me:$LINENO: result: no" >&5
30620 $as_echo "no" >&6; }
30625 # Check whether --enable-lua was given.
30626 if test "${enable_lua+set}" = set; then
30627   enableval=$enable_lua;
30628 else
30629   enable_lua=yes
30633 COMP_LUA=
30634 if test "$LUA" = "no" -o "$enable_lua" = "no"; then
30635   enable_lua=no
30636 else
30637   { $as_echo "$as_me:$LINENO: checking for lua >= 5.0" >&5
30638 $as_echo_n "checking for lua >= 5.0... " >&6; }
30639   read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
30640     $($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
30641 LUA_EOF
30642   if test 0$LUA_MAJOR -lt 5; then
30643     { $as_echo "$as_me:$LINENO: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
30644 $as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
30645   else
30646     { $as_echo "$as_me:$LINENO: result: $LUA_MAJOR.$LUA_MINOR found" >&5
30647 $as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
30648     lua_vdot=$LUA_MAJOR.$LUA_MINOR
30649     lua_vndot=$LUA_MAJOR$LUA_MINOR
30650     lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
30652 for ac_header in lua$lua_vndot/lua.h
30654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30656   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30657 $as_echo_n "checking for $ac_header... " >&6; }
30658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30659   $as_echo_n "(cached) " >&6
30661 ac_res=`eval 'as_val=${'$as_ac_Header'}
30662                  $as_echo "$as_val"'`
30663                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30664 $as_echo "$ac_res" >&6; }
30665 else
30666   # Is the header compilable?
30667 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30668 $as_echo_n "checking $ac_header usability... " >&6; }
30669 cat >conftest.$ac_ext <<_ACEOF
30670 /* confdefs.h.  */
30671 _ACEOF
30672 cat confdefs.h >>conftest.$ac_ext
30673 cat >>conftest.$ac_ext <<_ACEOF
30674 /* end confdefs.h.  */
30675 $ac_includes_default
30676 #include <$ac_header>
30677 _ACEOF
30678 rm -f conftest.$ac_objext
30679 if { (ac_try="$ac_compile"
30680 case "(($ac_try" in
30681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682   *) ac_try_echo=$ac_try;;
30683 esac
30684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30685 $as_echo "$ac_try_echo") >&5
30686   (eval "$ac_compile") 2>conftest.er1
30687   ac_status=$?
30688   grep -v '^ *+' conftest.er1 >conftest.err
30689   rm -f conftest.er1
30690   cat conftest.err >&5
30691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692   (exit $ac_status); } && {
30693          test -z "$ac_c_werror_flag" ||
30694          test ! -s conftest.err
30695        } && test -s conftest.$ac_objext; then
30696   ac_header_compiler=yes
30697 else
30698   $as_echo "$as_me: failed program was:" >&5
30699 sed 's/^/| /' conftest.$ac_ext >&5
30701         ac_header_compiler=no
30704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30705 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30706 $as_echo "$ac_header_compiler" >&6; }
30708 # Is the header present?
30709 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30710 $as_echo_n "checking $ac_header presence... " >&6; }
30711 cat >conftest.$ac_ext <<_ACEOF
30712 /* confdefs.h.  */
30713 _ACEOF
30714 cat confdefs.h >>conftest.$ac_ext
30715 cat >>conftest.$ac_ext <<_ACEOF
30716 /* end confdefs.h.  */
30717 #include <$ac_header>
30718 _ACEOF
30719 if { (ac_try="$ac_cpp conftest.$ac_ext"
30720 case "(($ac_try" in
30721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30722   *) ac_try_echo=$ac_try;;
30723 esac
30724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30725 $as_echo "$ac_try_echo") >&5
30726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30727   ac_status=$?
30728   grep -v '^ *+' conftest.er1 >conftest.err
30729   rm -f conftest.er1
30730   cat conftest.err >&5
30731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732   (exit $ac_status); } >/dev/null && {
30733          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30734          test ! -s conftest.err
30735        }; then
30736   ac_header_preproc=yes
30737 else
30738   $as_echo "$as_me: failed program was:" >&5
30739 sed 's/^/| /' conftest.$ac_ext >&5
30741   ac_header_preproc=no
30744 rm -f conftest.err conftest.$ac_ext
30745 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30746 $as_echo "$ac_header_preproc" >&6; }
30748 # So?  What about this header?
30749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30750   yes:no: )
30751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30752 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30755     ac_header_preproc=yes
30756     ;;
30757   no:yes:* )
30758     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30759 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30760     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30761 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30762     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30763 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30765 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30767 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30768     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30769 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30771     ;;
30772 esac
30773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30774 $as_echo_n "checking for $ac_header... " >&6; }
30775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30776   $as_echo_n "(cached) " >&6
30777 else
30778   eval "$as_ac_Header=\$ac_header_preproc"
30780 ac_res=`eval 'as_val=${'$as_ac_Header'}
30781                  $as_echo "$as_val"'`
30782                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30783 $as_echo "$ac_res" >&6; }
30786 as_val=`eval 'as_val=${'$as_ac_Header'}
30787                  $as_echo "$as_val"'`
30788    if test "x$as_val" = x""yes; then
30789   cat >>confdefs.h <<_ACEOF
30790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30791 _ACEOF
30793 for ac_header in lua$lua_vndot/lualib.h
30795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30797   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30798 $as_echo_n "checking for $ac_header... " >&6; }
30799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30800   $as_echo_n "(cached) " >&6
30802 ac_res=`eval 'as_val=${'$as_ac_Header'}
30803                  $as_echo "$as_val"'`
30804                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30805 $as_echo "$ac_res" >&6; }
30806 else
30807   # Is the header compilable?
30808 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30809 $as_echo_n "checking $ac_header usability... " >&6; }
30810 cat >conftest.$ac_ext <<_ACEOF
30811 /* confdefs.h.  */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h.  */
30816 $ac_includes_default
30817 #include <$ac_header>
30818 _ACEOF
30819 rm -f conftest.$ac_objext
30820 if { (ac_try="$ac_compile"
30821 case "(($ac_try" in
30822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30823   *) ac_try_echo=$ac_try;;
30824 esac
30825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30826 $as_echo "$ac_try_echo") >&5
30827   (eval "$ac_compile") 2>conftest.er1
30828   ac_status=$?
30829   grep -v '^ *+' conftest.er1 >conftest.err
30830   rm -f conftest.er1
30831   cat conftest.err >&5
30832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); } && {
30834          test -z "$ac_c_werror_flag" ||
30835          test ! -s conftest.err
30836        } && test -s conftest.$ac_objext; then
30837   ac_header_compiler=yes
30838 else
30839   $as_echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30842         ac_header_compiler=no
30845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30847 $as_echo "$ac_header_compiler" >&6; }
30849 # Is the header present?
30850 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30851 $as_echo_n "checking $ac_header presence... " >&6; }
30852 cat >conftest.$ac_ext <<_ACEOF
30853 /* confdefs.h.  */
30854 _ACEOF
30855 cat confdefs.h >>conftest.$ac_ext
30856 cat >>conftest.$ac_ext <<_ACEOF
30857 /* end confdefs.h.  */
30858 #include <$ac_header>
30859 _ACEOF
30860 if { (ac_try="$ac_cpp conftest.$ac_ext"
30861 case "(($ac_try" in
30862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863   *) ac_try_echo=$ac_try;;
30864 esac
30865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30866 $as_echo "$ac_try_echo") >&5
30867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30868   ac_status=$?
30869   grep -v '^ *+' conftest.er1 >conftest.err
30870   rm -f conftest.er1
30871   cat conftest.err >&5
30872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873   (exit $ac_status); } >/dev/null && {
30874          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30875          test ! -s conftest.err
30876        }; then
30877   ac_header_preproc=yes
30878 else
30879   $as_echo "$as_me: failed program was:" >&5
30880 sed 's/^/| /' conftest.$ac_ext >&5
30882   ac_header_preproc=no
30885 rm -f conftest.err conftest.$ac_ext
30886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30887 $as_echo "$ac_header_preproc" >&6; }
30889 # So?  What about this header?
30890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30891   yes:no: )
30892     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30893 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30894     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30896     ac_header_preproc=yes
30897     ;;
30898   no:yes:* )
30899     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30900 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30901     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30902 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30903     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30904 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30905     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30906 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30907     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30908 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30910 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30912     ;;
30913 esac
30914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30915 $as_echo_n "checking for $ac_header... " >&6; }
30916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30917   $as_echo_n "(cached) " >&6
30918 else
30919   eval "$as_ac_Header=\$ac_header_preproc"
30921 ac_res=`eval 'as_val=${'$as_ac_Header'}
30922                  $as_echo "$as_val"'`
30923                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30924 $as_echo "$ac_res" >&6; }
30927 as_val=`eval 'as_val=${'$as_ac_Header'}
30928                  $as_echo "$as_val"'`
30929    if test "x$as_val" = x""yes; then
30930   cat >>confdefs.h <<_ACEOF
30931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30932 _ACEOF
30933  as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
30934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30935   { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
30936 $as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
30937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30938   $as_echo_n "(cached) " >&6
30940 ac_res=`eval 'as_val=${'$as_ac_Header'}
30941                  $as_echo "$as_val"'`
30942                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30943 $as_echo "$ac_res" >&6; }
30944 else
30945   # Is the header compilable?
30946 { $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h usability" >&5
30947 $as_echo_n "checking lua$lua_vndot/lauxlib.h usability... " >&6; }
30948 cat >conftest.$ac_ext <<_ACEOF
30949 /* confdefs.h.  */
30950 _ACEOF
30951 cat confdefs.h >>conftest.$ac_ext
30952 cat >>conftest.$ac_ext <<_ACEOF
30953 /* end confdefs.h.  */
30954 $ac_includes_default
30955 #include <lua$lua_vndot/lauxlib.h>
30956 _ACEOF
30957 rm -f conftest.$ac_objext
30958 if { (ac_try="$ac_compile"
30959 case "(($ac_try" in
30960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961   *) ac_try_echo=$ac_try;;
30962 esac
30963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30964 $as_echo "$ac_try_echo") >&5
30965   (eval "$ac_compile") 2>conftest.er1
30966   ac_status=$?
30967   grep -v '^ *+' conftest.er1 >conftest.err
30968   rm -f conftest.er1
30969   cat conftest.err >&5
30970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971   (exit $ac_status); } && {
30972          test -z "$ac_c_werror_flag" ||
30973          test ! -s conftest.err
30974        } && test -s conftest.$ac_objext; then
30975   ac_header_compiler=yes
30976 else
30977   $as_echo "$as_me: failed program was:" >&5
30978 sed 's/^/| /' conftest.$ac_ext >&5
30980         ac_header_compiler=no
30983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30984 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30985 $as_echo "$ac_header_compiler" >&6; }
30987 # Is the header present?
30988 { $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h presence" >&5
30989 $as_echo_n "checking lua$lua_vndot/lauxlib.h presence... " >&6; }
30990 cat >conftest.$ac_ext <<_ACEOF
30991 /* confdefs.h.  */
30992 _ACEOF
30993 cat confdefs.h >>conftest.$ac_ext
30994 cat >>conftest.$ac_ext <<_ACEOF
30995 /* end confdefs.h.  */
30996 #include <lua$lua_vndot/lauxlib.h>
30997 _ACEOF
30998 if { (ac_try="$ac_cpp conftest.$ac_ext"
30999 case "(($ac_try" in
31000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31001   *) ac_try_echo=$ac_try;;
31002 esac
31003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31004 $as_echo "$ac_try_echo") >&5
31005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31006   ac_status=$?
31007   grep -v '^ *+' conftest.er1 >conftest.err
31008   rm -f conftest.er1
31009   cat conftest.err >&5
31010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); } >/dev/null && {
31012          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31013          test ! -s conftest.err
31014        }; then
31015   ac_header_preproc=yes
31016 else
31017   $as_echo "$as_me: failed program was:" >&5
31018 sed 's/^/| /' conftest.$ac_ext >&5
31020   ac_header_preproc=no
31023 rm -f conftest.err conftest.$ac_ext
31024 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31025 $as_echo "$ac_header_preproc" >&6; }
31027 # So?  What about this header?
31028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31029   yes:no: )
31030     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31031 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31032     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&5
31033 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&2;}
31034     ac_header_preproc=yes
31035     ;;
31036   no:yes:* )
31037     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&5
31038 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&2;}
31039     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h:     check for missing prerequisite headers?" >&5
31040 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h:     check for missing prerequisite headers?" >&2;}
31041     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&5
31042 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&2;}
31043     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
31044 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31045     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&5
31046 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
31047     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&5
31048 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
31050     ;;
31051 esac
31052 { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
31053 $as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
31054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31055   $as_echo_n "(cached) " >&6
31056 else
31057   eval "$as_ac_Header=\$ac_header_preproc"
31059 ac_res=`eval 'as_val=${'$as_ac_Header'}
31060                  $as_echo "$as_val"'`
31061                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31062 $as_echo "$ac_res" >&6; }
31065 as_val=`eval 'as_val=${'$as_ac_Header'}
31066                  $as_echo "$as_val"'`
31067    if test "x$as_val" = x""yes; then
31068   lua_headerdir=lua$lua_vndot
31074 done
31076 else
31078 for ac_header in lua$lua_vdot/lua.h
31080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31082   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31083 $as_echo_n "checking for $ac_header... " >&6; }
31084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31085   $as_echo_n "(cached) " >&6
31087 ac_res=`eval 'as_val=${'$as_ac_Header'}
31088                  $as_echo "$as_val"'`
31089                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31090 $as_echo "$ac_res" >&6; }
31091 else
31092   # Is the header compilable?
31093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31094 $as_echo_n "checking $ac_header usability... " >&6; }
31095 cat >conftest.$ac_ext <<_ACEOF
31096 /* confdefs.h.  */
31097 _ACEOF
31098 cat confdefs.h >>conftest.$ac_ext
31099 cat >>conftest.$ac_ext <<_ACEOF
31100 /* end confdefs.h.  */
31101 $ac_includes_default
31102 #include <$ac_header>
31103 _ACEOF
31104 rm -f conftest.$ac_objext
31105 if { (ac_try="$ac_compile"
31106 case "(($ac_try" in
31107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31108   *) ac_try_echo=$ac_try;;
31109 esac
31110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31111 $as_echo "$ac_try_echo") >&5
31112   (eval "$ac_compile") 2>conftest.er1
31113   ac_status=$?
31114   grep -v '^ *+' conftest.er1 >conftest.err
31115   rm -f conftest.er1
31116   cat conftest.err >&5
31117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118   (exit $ac_status); } && {
31119          test -z "$ac_c_werror_flag" ||
31120          test ! -s conftest.err
31121        } && test -s conftest.$ac_objext; then
31122   ac_header_compiler=yes
31123 else
31124   $as_echo "$as_me: failed program was:" >&5
31125 sed 's/^/| /' conftest.$ac_ext >&5
31127         ac_header_compiler=no
31130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31132 $as_echo "$ac_header_compiler" >&6; }
31134 # Is the header present?
31135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31136 $as_echo_n "checking $ac_header presence... " >&6; }
31137 cat >conftest.$ac_ext <<_ACEOF
31138 /* confdefs.h.  */
31139 _ACEOF
31140 cat confdefs.h >>conftest.$ac_ext
31141 cat >>conftest.$ac_ext <<_ACEOF
31142 /* end confdefs.h.  */
31143 #include <$ac_header>
31144 _ACEOF
31145 if { (ac_try="$ac_cpp conftest.$ac_ext"
31146 case "(($ac_try" in
31147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31148   *) ac_try_echo=$ac_try;;
31149 esac
31150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31151 $as_echo "$ac_try_echo") >&5
31152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31153   ac_status=$?
31154   grep -v '^ *+' conftest.er1 >conftest.err
31155   rm -f conftest.er1
31156   cat conftest.err >&5
31157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); } >/dev/null && {
31159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31160          test ! -s conftest.err
31161        }; then
31162   ac_header_preproc=yes
31163 else
31164   $as_echo "$as_me: failed program was:" >&5
31165 sed 's/^/| /' conftest.$ac_ext >&5
31167   ac_header_preproc=no
31170 rm -f conftest.err conftest.$ac_ext
31171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31172 $as_echo "$ac_header_preproc" >&6; }
31174 # So?  What about this header?
31175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31176   yes:no: )
31177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31181     ac_header_preproc=yes
31182     ;;
31183   no:yes:* )
31184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31187 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31191 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31192     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31194     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31197     ;;
31198 esac
31199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31200 $as_echo_n "checking for $ac_header... " >&6; }
31201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31202   $as_echo_n "(cached) " >&6
31203 else
31204   eval "$as_ac_Header=\$ac_header_preproc"
31206 ac_res=`eval 'as_val=${'$as_ac_Header'}
31207                  $as_echo "$as_val"'`
31208                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31209 $as_echo "$ac_res" >&6; }
31212 as_val=`eval 'as_val=${'$as_ac_Header'}
31213                  $as_echo "$as_val"'`
31214    if test "x$as_val" = x""yes; then
31215   cat >>confdefs.h <<_ACEOF
31216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31217 _ACEOF
31219 for ac_header in lua$lua_vdot/lualib.h
31221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31223   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31224 $as_echo_n "checking for $ac_header... " >&6; }
31225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31226   $as_echo_n "(cached) " >&6
31228 ac_res=`eval 'as_val=${'$as_ac_Header'}
31229                  $as_echo "$as_val"'`
31230                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31231 $as_echo "$ac_res" >&6; }
31232 else
31233   # Is the header compilable?
31234 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31235 $as_echo_n "checking $ac_header usability... " >&6; }
31236 cat >conftest.$ac_ext <<_ACEOF
31237 /* confdefs.h.  */
31238 _ACEOF
31239 cat confdefs.h >>conftest.$ac_ext
31240 cat >>conftest.$ac_ext <<_ACEOF
31241 /* end confdefs.h.  */
31242 $ac_includes_default
31243 #include <$ac_header>
31244 _ACEOF
31245 rm -f conftest.$ac_objext
31246 if { (ac_try="$ac_compile"
31247 case "(($ac_try" in
31248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249   *) ac_try_echo=$ac_try;;
31250 esac
31251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31252 $as_echo "$ac_try_echo") >&5
31253   (eval "$ac_compile") 2>conftest.er1
31254   ac_status=$?
31255   grep -v '^ *+' conftest.er1 >conftest.err
31256   rm -f conftest.er1
31257   cat conftest.err >&5
31258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); } && {
31260          test -z "$ac_c_werror_flag" ||
31261          test ! -s conftest.err
31262        } && test -s conftest.$ac_objext; then
31263   ac_header_compiler=yes
31264 else
31265   $as_echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268         ac_header_compiler=no
31271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31272 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31273 $as_echo "$ac_header_compiler" >&6; }
31275 # Is the header present?
31276 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31277 $as_echo_n "checking $ac_header presence... " >&6; }
31278 cat >conftest.$ac_ext <<_ACEOF
31279 /* confdefs.h.  */
31280 _ACEOF
31281 cat confdefs.h >>conftest.$ac_ext
31282 cat >>conftest.$ac_ext <<_ACEOF
31283 /* end confdefs.h.  */
31284 #include <$ac_header>
31285 _ACEOF
31286 if { (ac_try="$ac_cpp conftest.$ac_ext"
31287 case "(($ac_try" in
31288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289   *) ac_try_echo=$ac_try;;
31290 esac
31291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31292 $as_echo "$ac_try_echo") >&5
31293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31294   ac_status=$?
31295   grep -v '^ *+' conftest.er1 >conftest.err
31296   rm -f conftest.er1
31297   cat conftest.err >&5
31298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); } >/dev/null && {
31300          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31301          test ! -s conftest.err
31302        }; then
31303   ac_header_preproc=yes
31304 else
31305   $as_echo "$as_me: failed program was:" >&5
31306 sed 's/^/| /' conftest.$ac_ext >&5
31308   ac_header_preproc=no
31311 rm -f conftest.err conftest.$ac_ext
31312 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31313 $as_echo "$ac_header_preproc" >&6; }
31315 # So?  What about this header?
31316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31317   yes:no: )
31318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31319 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31322     ac_header_preproc=yes
31323     ;;
31324   no:yes:* )
31325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31326 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31328 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31330 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31332 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31336 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31338     ;;
31339 esac
31340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31341 $as_echo_n "checking for $ac_header... " >&6; }
31342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31343   $as_echo_n "(cached) " >&6
31344 else
31345   eval "$as_ac_Header=\$ac_header_preproc"
31347 ac_res=`eval 'as_val=${'$as_ac_Header'}
31348                  $as_echo "$as_val"'`
31349                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31350 $as_echo "$ac_res" >&6; }
31353 as_val=`eval 'as_val=${'$as_ac_Header'}
31354                  $as_echo "$as_val"'`
31355    if test "x$as_val" = x""yes; then
31356   cat >>confdefs.h <<_ACEOF
31357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31358 _ACEOF
31359  as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
31360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31361   { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
31362 $as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
31363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31364   $as_echo_n "(cached) " >&6
31366 ac_res=`eval 'as_val=${'$as_ac_Header'}
31367                  $as_echo "$as_val"'`
31368                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31369 $as_echo "$ac_res" >&6; }
31370 else
31371   # Is the header compilable?
31372 { $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h usability" >&5
31373 $as_echo_n "checking lua$lua_vdot/lauxlib.h usability... " >&6; }
31374 cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380 $ac_includes_default
31381 #include <lua$lua_vdot/lauxlib.h>
31382 _ACEOF
31383 rm -f conftest.$ac_objext
31384 if { (ac_try="$ac_compile"
31385 case "(($ac_try" in
31386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31387   *) ac_try_echo=$ac_try;;
31388 esac
31389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31390 $as_echo "$ac_try_echo") >&5
31391   (eval "$ac_compile") 2>conftest.er1
31392   ac_status=$?
31393   grep -v '^ *+' conftest.er1 >conftest.err
31394   rm -f conftest.er1
31395   cat conftest.err >&5
31396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397   (exit $ac_status); } && {
31398          test -z "$ac_c_werror_flag" ||
31399          test ! -s conftest.err
31400        } && test -s conftest.$ac_objext; then
31401   ac_header_compiler=yes
31402 else
31403   $as_echo "$as_me: failed program was:" >&5
31404 sed 's/^/| /' conftest.$ac_ext >&5
31406         ac_header_compiler=no
31409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31410 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31411 $as_echo "$ac_header_compiler" >&6; }
31413 # Is the header present?
31414 { $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h presence" >&5
31415 $as_echo_n "checking lua$lua_vdot/lauxlib.h presence... " >&6; }
31416 cat >conftest.$ac_ext <<_ACEOF
31417 /* confdefs.h.  */
31418 _ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h.  */
31422 #include <lua$lua_vdot/lauxlib.h>
31423 _ACEOF
31424 if { (ac_try="$ac_cpp conftest.$ac_ext"
31425 case "(($ac_try" in
31426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427   *) ac_try_echo=$ac_try;;
31428 esac
31429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31430 $as_echo "$ac_try_echo") >&5
31431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31432   ac_status=$?
31433   grep -v '^ *+' conftest.er1 >conftest.err
31434   rm -f conftest.er1
31435   cat conftest.err >&5
31436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); } >/dev/null && {
31438          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31439          test ! -s conftest.err
31440        }; then
31441   ac_header_preproc=yes
31442 else
31443   $as_echo "$as_me: failed program was:" >&5
31444 sed 's/^/| /' conftest.$ac_ext >&5
31446   ac_header_preproc=no
31449 rm -f conftest.err conftest.$ac_ext
31450 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31451 $as_echo "$ac_header_preproc" >&6; }
31453 # So?  What about this header?
31454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31455   yes:no: )
31456     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31457 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31458     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&5
31459 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&2;}
31460     ac_header_preproc=yes
31461     ;;
31462   no:yes:* )
31463     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&5
31464 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&2;}
31465     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h:     check for missing prerequisite headers?" >&5
31466 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h:     check for missing prerequisite headers?" >&2;}
31467     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&5
31468 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&2;}
31469     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
31470 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31471     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&5
31472 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
31473     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&5
31474 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
31476     ;;
31477 esac
31478 { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
31479 $as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
31480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31481   $as_echo_n "(cached) " >&6
31482 else
31483   eval "$as_ac_Header=\$ac_header_preproc"
31485 ac_res=`eval 'as_val=${'$as_ac_Header'}
31486                  $as_echo "$as_val"'`
31487                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31488 $as_echo "$ac_res" >&6; }
31491 as_val=`eval 'as_val=${'$as_ac_Header'}
31492                  $as_echo "$as_val"'`
31493    if test "x$as_val" = x""yes; then
31494   lua_headerdir=lua$lua_vdot
31500 done
31502 else
31504 for ac_header in lua.h
31506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31508   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31509 $as_echo_n "checking for $ac_header... " >&6; }
31510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31511   $as_echo_n "(cached) " >&6
31513 ac_res=`eval 'as_val=${'$as_ac_Header'}
31514                  $as_echo "$as_val"'`
31515                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31516 $as_echo "$ac_res" >&6; }
31517 else
31518   # Is the header compilable?
31519 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31520 $as_echo_n "checking $ac_header usability... " >&6; }
31521 cat >conftest.$ac_ext <<_ACEOF
31522 /* confdefs.h.  */
31523 _ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h.  */
31527 $ac_includes_default
31528 #include <$ac_header>
31529 _ACEOF
31530 rm -f conftest.$ac_objext
31531 if { (ac_try="$ac_compile"
31532 case "(($ac_try" in
31533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534   *) ac_try_echo=$ac_try;;
31535 esac
31536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31537 $as_echo "$ac_try_echo") >&5
31538   (eval "$ac_compile") 2>conftest.er1
31539   ac_status=$?
31540   grep -v '^ *+' conftest.er1 >conftest.err
31541   rm -f conftest.er1
31542   cat conftest.err >&5
31543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544   (exit $ac_status); } && {
31545          test -z "$ac_c_werror_flag" ||
31546          test ! -s conftest.err
31547        } && test -s conftest.$ac_objext; then
31548   ac_header_compiler=yes
31549 else
31550   $as_echo "$as_me: failed program was:" >&5
31551 sed 's/^/| /' conftest.$ac_ext >&5
31553         ac_header_compiler=no
31556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31557 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31558 $as_echo "$ac_header_compiler" >&6; }
31560 # Is the header present?
31561 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31562 $as_echo_n "checking $ac_header presence... " >&6; }
31563 cat >conftest.$ac_ext <<_ACEOF
31564 /* confdefs.h.  */
31565 _ACEOF
31566 cat confdefs.h >>conftest.$ac_ext
31567 cat >>conftest.$ac_ext <<_ACEOF
31568 /* end confdefs.h.  */
31569 #include <$ac_header>
31570 _ACEOF
31571 if { (ac_try="$ac_cpp conftest.$ac_ext"
31572 case "(($ac_try" in
31573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31574   *) ac_try_echo=$ac_try;;
31575 esac
31576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31577 $as_echo "$ac_try_echo") >&5
31578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31579   ac_status=$?
31580   grep -v '^ *+' conftest.er1 >conftest.err
31581   rm -f conftest.er1
31582   cat conftest.err >&5
31583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31584   (exit $ac_status); } >/dev/null && {
31585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31586          test ! -s conftest.err
31587        }; then
31588   ac_header_preproc=yes
31589 else
31590   $as_echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31593   ac_header_preproc=no
31596 rm -f conftest.err conftest.$ac_ext
31597 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31598 $as_echo "$ac_header_preproc" >&6; }
31600 # So?  What about this header?
31601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31602   yes:no: )
31603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31604 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31607     ac_header_preproc=yes
31608     ;;
31609   no:yes:* )
31610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31611 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31613 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31615 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31617 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31621 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31623     ;;
31624 esac
31625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31626 $as_echo_n "checking for $ac_header... " >&6; }
31627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31628   $as_echo_n "(cached) " >&6
31629 else
31630   eval "$as_ac_Header=\$ac_header_preproc"
31632 ac_res=`eval 'as_val=${'$as_ac_Header'}
31633                  $as_echo "$as_val"'`
31634                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31635 $as_echo "$ac_res" >&6; }
31638 as_val=`eval 'as_val=${'$as_ac_Header'}
31639                  $as_echo "$as_val"'`
31640    if test "x$as_val" = x""yes; then
31641   cat >>confdefs.h <<_ACEOF
31642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31643 _ACEOF
31645 for ac_header in lualib.h
31647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31649   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31650 $as_echo_n "checking for $ac_header... " >&6; }
31651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31652   $as_echo_n "(cached) " >&6
31654 ac_res=`eval 'as_val=${'$as_ac_Header'}
31655                  $as_echo "$as_val"'`
31656                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31657 $as_echo "$ac_res" >&6; }
31658 else
31659   # Is the header compilable?
31660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31661 $as_echo_n "checking $ac_header usability... " >&6; }
31662 cat >conftest.$ac_ext <<_ACEOF
31663 /* confdefs.h.  */
31664 _ACEOF
31665 cat confdefs.h >>conftest.$ac_ext
31666 cat >>conftest.$ac_ext <<_ACEOF
31667 /* end confdefs.h.  */
31668 $ac_includes_default
31669 #include <$ac_header>
31670 _ACEOF
31671 rm -f conftest.$ac_objext
31672 if { (ac_try="$ac_compile"
31673 case "(($ac_try" in
31674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31675   *) ac_try_echo=$ac_try;;
31676 esac
31677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31678 $as_echo "$ac_try_echo") >&5
31679   (eval "$ac_compile") 2>conftest.er1
31680   ac_status=$?
31681   grep -v '^ *+' conftest.er1 >conftest.err
31682   rm -f conftest.er1
31683   cat conftest.err >&5
31684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685   (exit $ac_status); } && {
31686          test -z "$ac_c_werror_flag" ||
31687          test ! -s conftest.err
31688        } && test -s conftest.$ac_objext; then
31689   ac_header_compiler=yes
31690 else
31691   $as_echo "$as_me: failed program was:" >&5
31692 sed 's/^/| /' conftest.$ac_ext >&5
31694         ac_header_compiler=no
31697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31699 $as_echo "$ac_header_compiler" >&6; }
31701 # Is the header present?
31702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31703 $as_echo_n "checking $ac_header presence... " >&6; }
31704 cat >conftest.$ac_ext <<_ACEOF
31705 /* confdefs.h.  */
31706 _ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h.  */
31710 #include <$ac_header>
31711 _ACEOF
31712 if { (ac_try="$ac_cpp conftest.$ac_ext"
31713 case "(($ac_try" in
31714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715   *) ac_try_echo=$ac_try;;
31716 esac
31717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31718 $as_echo "$ac_try_echo") >&5
31719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31720   ac_status=$?
31721   grep -v '^ *+' conftest.er1 >conftest.err
31722   rm -f conftest.er1
31723   cat conftest.err >&5
31724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725   (exit $ac_status); } >/dev/null && {
31726          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31727          test ! -s conftest.err
31728        }; then
31729   ac_header_preproc=yes
31730 else
31731   $as_echo "$as_me: failed program was:" >&5
31732 sed 's/^/| /' conftest.$ac_ext >&5
31734   ac_header_preproc=no
31737 rm -f conftest.err conftest.$ac_ext
31738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31739 $as_echo "$ac_header_preproc" >&6; }
31741 # So?  What about this header?
31742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31743   yes:no: )
31744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31748     ac_header_preproc=yes
31749     ;;
31750   no:yes:* )
31751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31754 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31758 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31764     ;;
31765 esac
31766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31767 $as_echo_n "checking for $ac_header... " >&6; }
31768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31769   $as_echo_n "(cached) " >&6
31770 else
31771   eval "$as_ac_Header=\$ac_header_preproc"
31773 ac_res=`eval 'as_val=${'$as_ac_Header'}
31774                  $as_echo "$as_val"'`
31775                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31776 $as_echo "$ac_res" >&6; }
31779 as_val=`eval 'as_val=${'$as_ac_Header'}
31780                  $as_echo "$as_val"'`
31781    if test "x$as_val" = x""yes; then
31782   cat >>confdefs.h <<_ACEOF
31783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31784 _ACEOF
31785  if test "${ac_cv_header_lauxlib_h+set}" = set; then
31786   { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
31787 $as_echo_n "checking for lauxlib.h... " >&6; }
31788 if test "${ac_cv_header_lauxlib_h+set}" = set; then
31789   $as_echo_n "(cached) " >&6
31791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
31792 $as_echo "$ac_cv_header_lauxlib_h" >&6; }
31793 else
31794   # Is the header compilable?
31795 { $as_echo "$as_me:$LINENO: checking lauxlib.h usability" >&5
31796 $as_echo_n "checking lauxlib.h usability... " >&6; }
31797 cat >conftest.$ac_ext <<_ACEOF
31798 /* confdefs.h.  */
31799 _ACEOF
31800 cat confdefs.h >>conftest.$ac_ext
31801 cat >>conftest.$ac_ext <<_ACEOF
31802 /* end confdefs.h.  */
31803 $ac_includes_default
31804 #include <lauxlib.h>
31805 _ACEOF
31806 rm -f conftest.$ac_objext
31807 if { (ac_try="$ac_compile"
31808 case "(($ac_try" in
31809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31810   *) ac_try_echo=$ac_try;;
31811 esac
31812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31813 $as_echo "$ac_try_echo") >&5
31814   (eval "$ac_compile") 2>conftest.er1
31815   ac_status=$?
31816   grep -v '^ *+' conftest.er1 >conftest.err
31817   rm -f conftest.er1
31818   cat conftest.err >&5
31819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); } && {
31821          test -z "$ac_c_werror_flag" ||
31822          test ! -s conftest.err
31823        } && test -s conftest.$ac_objext; then
31824   ac_header_compiler=yes
31825 else
31826   $as_echo "$as_me: failed program was:" >&5
31827 sed 's/^/| /' conftest.$ac_ext >&5
31829         ac_header_compiler=no
31832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31833 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31834 $as_echo "$ac_header_compiler" >&6; }
31836 # Is the header present?
31837 { $as_echo "$as_me:$LINENO: checking lauxlib.h presence" >&5
31838 $as_echo_n "checking lauxlib.h presence... " >&6; }
31839 cat >conftest.$ac_ext <<_ACEOF
31840 /* confdefs.h.  */
31841 _ACEOF
31842 cat confdefs.h >>conftest.$ac_ext
31843 cat >>conftest.$ac_ext <<_ACEOF
31844 /* end confdefs.h.  */
31845 #include <lauxlib.h>
31846 _ACEOF
31847 if { (ac_try="$ac_cpp conftest.$ac_ext"
31848 case "(($ac_try" in
31849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850   *) ac_try_echo=$ac_try;;
31851 esac
31852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31853 $as_echo "$ac_try_echo") >&5
31854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31855   ac_status=$?
31856   grep -v '^ *+' conftest.er1 >conftest.err
31857   rm -f conftest.er1
31858   cat conftest.err >&5
31859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860   (exit $ac_status); } >/dev/null && {
31861          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31862          test ! -s conftest.err
31863        }; then
31864   ac_header_preproc=yes
31865 else
31866   $as_echo "$as_me: failed program was:" >&5
31867 sed 's/^/| /' conftest.$ac_ext >&5
31869   ac_header_preproc=no
31872 rm -f conftest.err conftest.$ac_ext
31873 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31874 $as_echo "$ac_header_preproc" >&6; }
31876 # So?  What about this header?
31877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31878   yes:no: )
31879     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31880 $as_echo "$as_me: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31881     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the compiler's result" >&5
31882 $as_echo "$as_me: WARNING: lauxlib.h: proceeding with the compiler's result" >&2;}
31883     ac_header_preproc=yes
31884     ;;
31885   no:yes:* )
31886     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: present but cannot be compiled" >&5
31887 $as_echo "$as_me: WARNING: lauxlib.h: present but cannot be compiled" >&2;}
31888     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h:     check for missing prerequisite headers?" >&5
31889 $as_echo "$as_me: WARNING: lauxlib.h:     check for missing prerequisite headers?" >&2;}
31890     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: see the Autoconf documentation" >&5
31891 $as_echo "$as_me: WARNING: lauxlib.h: see the Autoconf documentation" >&2;}
31892     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
31893 $as_echo "$as_me: WARNING: lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31894     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&5
31895 $as_echo "$as_me: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&2;}
31896     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&5
31897 $as_echo "$as_me: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&2;}
31899     ;;
31900 esac
31901 { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
31902 $as_echo_n "checking for lauxlib.h... " >&6; }
31903 if test "${ac_cv_header_lauxlib_h+set}" = set; then
31904   $as_echo_n "(cached) " >&6
31905 else
31906   ac_cv_header_lauxlib_h=$ac_header_preproc
31908 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
31909 $as_echo "$ac_cv_header_lauxlib_h" >&6; }
31912 if test "x$ac_cv_header_lauxlib_h" = x""yes; then
31913   lua_headerdir=""
31914 else
31915   lua_headerdir="no"
31921 done
31925 done
31929 done
31933 done
31936     if test "$lua_headerdir" = "no"; then
31937       enable_lua=no
31938     else
31939       COMP_LUA=lua
31940     fi
31942     if test "$COMP_LUA" != "lua"; then
31943       enable_lua=no
31944       { $as_echo "$as_me:$LINENO: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&5
31945 $as_echo "$as_me: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&2;}
31946     else
31947       # OK, headers found, let's check the libraries (LIBS is not used)
31948       LIBS=
31949       lua_havelib=no
31950       LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
31951       { $as_echo "$as_me:$LINENO: checking for library containing lua_call" >&5
31952 $as_echo_n "checking for library containing lua_call... " >&6; }
31953 if test "${ac_cv_search_lua_call+set}" = set; then
31954   $as_echo_n "(cached) " >&6
31955 else
31956   ac_func_search_save_LIBS=$LIBS
31957 cat >conftest.$ac_ext <<_ACEOF
31958 /* confdefs.h.  */
31959 _ACEOF
31960 cat confdefs.h >>conftest.$ac_ext
31961 cat >>conftest.$ac_ext <<_ACEOF
31962 /* end confdefs.h.  */
31964 /* Override any GCC internal prototype to avoid an error.
31965    Use char because int might match the return type of a GCC
31966    builtin and then its argument prototype would still apply.  */
31967 #ifdef __cplusplus
31968 extern "C"
31969 #endif
31970 char lua_call ();
31971 int
31972 main ()
31974 return lua_call ();
31975   ;
31976   return 0;
31978 _ACEOF
31979 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
31980   if test -z "$ac_lib"; then
31981     ac_res="none required"
31982   else
31983     ac_res=-l$ac_lib
31984     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
31985   fi
31986   rm -f conftest.$ac_objext conftest$ac_exeext
31987 if { (ac_try="$ac_link"
31988 case "(($ac_try" in
31989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31990   *) ac_try_echo=$ac_try;;
31991 esac
31992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31993 $as_echo "$ac_try_echo") >&5
31994   (eval "$ac_link") 2>conftest.er1
31995   ac_status=$?
31996   grep -v '^ *+' conftest.er1 >conftest.err
31997   rm -f conftest.er1
31998   cat conftest.err >&5
31999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000   (exit $ac_status); } && {
32001          test -z "$ac_c_werror_flag" ||
32002          test ! -s conftest.err
32003        } && test -s conftest$ac_exeext && {
32004          test "$cross_compiling" = yes ||
32005          $as_test_x conftest$ac_exeext
32006        }; then
32007   ac_cv_search_lua_call=$ac_res
32008 else
32009   $as_echo "$as_me: failed program was:" >&5
32010 sed 's/^/| /' conftest.$ac_ext >&5
32015 rm -rf conftest.dSYM
32016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32017       conftest$ac_exeext
32018   if test "${ac_cv_search_lua_call+set}" = set; then
32019   break
32021 done
32022 if test "${ac_cv_search_lua_call+set}" = set; then
32023   :
32024 else
32025   ac_cv_search_lua_call=no
32027 rm conftest.$ac_ext
32028 LIBS=$ac_func_search_save_LIBS
32030 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_lua_call" >&5
32031 $as_echo "$ac_cv_search_lua_call" >&6; }
32032 ac_res=$ac_cv_search_lua_call
32033 if test "$ac_res" != no; then
32034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32035   { $as_echo "$as_me:$LINENO: checking for library containing luaL_register" >&5
32036 $as_echo_n "checking for library containing luaL_register... " >&6; }
32037 if test "${ac_cv_search_luaL_register+set}" = set; then
32038   $as_echo_n "(cached) " >&6
32039 else
32040   ac_func_search_save_LIBS=$LIBS
32041 cat >conftest.$ac_ext <<_ACEOF
32042 /* confdefs.h.  */
32043 _ACEOF
32044 cat confdefs.h >>conftest.$ac_ext
32045 cat >>conftest.$ac_ext <<_ACEOF
32046 /* end confdefs.h.  */
32048 /* Override any GCC internal prototype to avoid an error.
32049    Use char because int might match the return type of a GCC
32050    builtin and then its argument prototype would still apply.  */
32051 #ifdef __cplusplus
32052 extern "C"
32053 #endif
32054 char luaL_register ();
32055 int
32056 main ()
32058 return luaL_register ();
32059   ;
32060   return 0;
32062 _ACEOF
32063 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
32064   if test -z "$ac_lib"; then
32065     ac_res="none required"
32066   else
32067     ac_res=-l$ac_lib
32068     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
32069   fi
32070   rm -f conftest.$ac_objext conftest$ac_exeext
32071 if { (ac_try="$ac_link"
32072 case "(($ac_try" in
32073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074   *) ac_try_echo=$ac_try;;
32075 esac
32076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32077 $as_echo "$ac_try_echo") >&5
32078   (eval "$ac_link") 2>conftest.er1
32079   ac_status=$?
32080   grep -v '^ *+' conftest.er1 >conftest.err
32081   rm -f conftest.er1
32082   cat conftest.err >&5
32083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084   (exit $ac_status); } && {
32085          test -z "$ac_c_werror_flag" ||
32086          test ! -s conftest.err
32087        } && test -s conftest$ac_exeext && {
32088          test "$cross_compiling" = yes ||
32089          $as_test_x conftest$ac_exeext
32090        }; then
32091   ac_cv_search_luaL_register=$ac_res
32092 else
32093   $as_echo "$as_me: failed program was:" >&5
32094 sed 's/^/| /' conftest.$ac_ext >&5
32099 rm -rf conftest.dSYM
32100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32101       conftest$ac_exeext
32102   if test "${ac_cv_search_luaL_register+set}" = set; then
32103   break
32105 done
32106 if test "${ac_cv_search_luaL_register+set}" = set; then
32107   :
32108 else
32109   ac_cv_search_luaL_register=no
32111 rm conftest.$ac_ext
32112 LIBS=$ac_func_search_save_LIBS
32114 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_register" >&5
32115 $as_echo "$ac_cv_search_luaL_register" >&6; }
32116 ac_res=$ac_cv_search_luaL_register
32117 if test "$ac_res" != no; then
32118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32119   lua_havelib=LUA$lua_vndot
32120 else
32121   { $as_echo "$as_me:$LINENO: checking for library containing luaL_module" >&5
32122 $as_echo_n "checking for library containing luaL_module... " >&6; }
32123 if test "${ac_cv_search_luaL_module+set}" = set; then
32124   $as_echo_n "(cached) " >&6
32125 else
32126   ac_func_search_save_LIBS=$LIBS
32127 cat >conftest.$ac_ext <<_ACEOF
32128 /* confdefs.h.  */
32129 _ACEOF
32130 cat confdefs.h >>conftest.$ac_ext
32131 cat >>conftest.$ac_ext <<_ACEOF
32132 /* end confdefs.h.  */
32134 /* Override any GCC internal prototype to avoid an error.
32135    Use char because int might match the return type of a GCC
32136    builtin and then its argument prototype would still apply.  */
32137 #ifdef __cplusplus
32138 extern "C"
32139 #endif
32140 char luaL_module ();
32141 int
32142 main ()
32144 return luaL_module ();
32145   ;
32146   return 0;
32148 _ACEOF
32149 for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
32150   if test -z "$ac_lib"; then
32151     ac_res="none required"
32152   else
32153     ac_res=-l$ac_lib
32154     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
32155   fi
32156   rm -f conftest.$ac_objext conftest$ac_exeext
32157 if { (ac_try="$ac_link"
32158 case "(($ac_try" in
32159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160   *) ac_try_echo=$ac_try;;
32161 esac
32162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32163 $as_echo "$ac_try_echo") >&5
32164   (eval "$ac_link") 2>conftest.er1
32165   ac_status=$?
32166   grep -v '^ *+' conftest.er1 >conftest.err
32167   rm -f conftest.er1
32168   cat conftest.err >&5
32169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); } && {
32171          test -z "$ac_c_werror_flag" ||
32172          test ! -s conftest.err
32173        } && test -s conftest$ac_exeext && {
32174          test "$cross_compiling" = yes ||
32175          $as_test_x conftest$ac_exeext
32176        }; then
32177   ac_cv_search_luaL_module=$ac_res
32178 else
32179   $as_echo "$as_me: failed program was:" >&5
32180 sed 's/^/| /' conftest.$ac_ext >&5
32185 rm -rf conftest.dSYM
32186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32187       conftest$ac_exeext
32188   if test "${ac_cv_search_luaL_module+set}" = set; then
32189   break
32191 done
32192 if test "${ac_cv_search_luaL_module+set}" = set; then
32193   :
32194 else
32195   ac_cv_search_luaL_module=no
32197 rm conftest.$ac_ext
32198 LIBS=$ac_func_search_save_LIBS
32200 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_module" >&5
32201 $as_echo "$ac_cv_search_luaL_module" >&6; }
32202 ac_res=$ac_cv_search_luaL_module
32203 if test "$ac_res" != no; then
32204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32205   lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
32206              test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
32207 else
32208   { $as_echo "$as_me:$LINENO: checking for library containing luaL_openlib" >&5
32209 $as_echo_n "checking for library containing luaL_openlib... " >&6; }
32210 if test "${ac_cv_search_luaL_openlib+set}" = set; then
32211   $as_echo_n "(cached) " >&6
32212 else
32213   ac_func_search_save_LIBS=$LIBS
32214 cat >conftest.$ac_ext <<_ACEOF
32215 /* confdefs.h.  */
32216 _ACEOF
32217 cat confdefs.h >>conftest.$ac_ext
32218 cat >>conftest.$ac_ext <<_ACEOF
32219 /* end confdefs.h.  */
32221 /* Override any GCC internal prototype to avoid an error.
32222    Use char because int might match the return type of a GCC
32223    builtin and then its argument prototype would still apply.  */
32224 #ifdef __cplusplus
32225 extern "C"
32226 #endif
32227 char luaL_openlib ();
32228 int
32229 main ()
32231 return luaL_openlib ();
32232   ;
32233   return 0;
32235 _ACEOF
32236 for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
32237   if test -z "$ac_lib"; then
32238     ac_res="none required"
32239   else
32240     ac_res=-l$ac_lib
32241     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
32242   fi
32243   rm -f conftest.$ac_objext conftest$ac_exeext
32244 if { (ac_try="$ac_link"
32245 case "(($ac_try" in
32246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32247   *) ac_try_echo=$ac_try;;
32248 esac
32249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32250 $as_echo "$ac_try_echo") >&5
32251   (eval "$ac_link") 2>conftest.er1
32252   ac_status=$?
32253   grep -v '^ *+' conftest.er1 >conftest.err
32254   rm -f conftest.er1
32255   cat conftest.err >&5
32256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257   (exit $ac_status); } && {
32258          test -z "$ac_c_werror_flag" ||
32259          test ! -s conftest.err
32260        } && test -s conftest$ac_exeext && {
32261          test "$cross_compiling" = yes ||
32262          $as_test_x conftest$ac_exeext
32263        }; then
32264   ac_cv_search_luaL_openlib=$ac_res
32265 else
32266   $as_echo "$as_me: failed program was:" >&5
32267 sed 's/^/| /' conftest.$ac_ext >&5
32272 rm -rf conftest.dSYM
32273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32274       conftest$ac_exeext
32275   if test "${ac_cv_search_luaL_openlib+set}" = set; then
32276   break
32278 done
32279 if test "${ac_cv_search_luaL_openlib+set}" = set; then
32280   :
32281 else
32282   ac_cv_search_luaL_openlib=no
32284 rm conftest.$ac_ext
32285 LIBS=$ac_func_search_save_LIBS
32287 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_openlib" >&5
32288 $as_echo "$ac_cv_search_luaL_openlib" >&6; }
32289 ac_res=$ac_cv_search_luaL_openlib
32290 if test "$ac_res" != no; then
32291   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32292   lua_havelib=$lua_vndot
32293 else
32294   COMP_LUA=
32301 else
32302   COMP_LUA=
32305       lua_libs=$LIBS
32306       LIBS=
32308       # Options to pass when configuring Lua module
32309       if test  "$lua_havelib" != "no"; then
32310         # OK, headers and libs found. Try to set lua flags
32311         # and modules installation dirs with pkg-config
32312         if test "$PKGCONFIG" != "no"; then
32313           if test "$lua_vndot" = "50"; then
32314             lua_pkg_prefix=lualib
32315           else
32316             lua_pkg_prefix=lua
32317           fi
32318           # try with dot, without dot and finally without version
32319           for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
32320             lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
32321             # same binaries?
32322             if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
32323                 # OK, found CFLAGS. Get Lua LFLAGS and modules install dir
32324                 LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
32325                 LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
32326                 LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
32327                 LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
32328                 break
32329             fi
32330           done
32331         fi
32333         LUA_RRD_LIBDIR="$langpref/lib/lua/$lua_vdot"
32334         # if lua 5.0 can't find compat-5.1, force installation of
32335         # compat-5.1.lua together with RRDtool.
32336         if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
32337           lua_need_compat51=1
32338           LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
32339         fi
32341         # if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
32342         if test "$LUA_CFLAGS" = ""; then
32343           { $as_echo "$as_me:$LINENO: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
32344 $as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
32345           LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
32346           LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
32347           LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
32348         fi
32350                                 # Check whether --enable-lua-site-install was given.
32351 if test "${enable_lua_site_install+set}" = set; then
32352   enableval=$enable_lua_site_install;
32353 else
32354   LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
32358         LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
32366       else
32367         enable_lua=no
32368         { $as_echo "$as_me:$LINENO: result: Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&5
32369 $as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
32370       fi
32371     fi
32372   fi
32374  if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
32375   LUA_NEED_OUR_COMPAT51_TRUE=
32376   LUA_NEED_OUR_COMPAT51_FALSE='#'
32377 else
32378   LUA_NEED_OUR_COMPAT51_TRUE='#'
32379   LUA_NEED_OUR_COMPAT51_FALSE=
32382  if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
32383   LUA_SITE_CINSTALL_TRUE=
32384   LUA_SITE_CINSTALL_FALSE='#'
32385 else
32386   LUA_SITE_CINSTALL_TRUE='#'
32387   LUA_SITE_CINSTALL_FALSE=
32390  if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
32391   LUA_SITE_LINSTALL_TRUE=
32392   LUA_SITE_LINSTALL_FALSE='#'
32393 else
32394   LUA_SITE_LINSTALL_TRUE='#'
32395   LUA_SITE_LINSTALL_FALSE=
32398  if test "$lua_vndot" = "50"; then
32399   LUA50_TRUE=
32400   LUA50_FALSE='#'
32401 else
32402   LUA50_TRUE='#'
32403   LUA50_FALSE=
32406  if test "$enable_lua" = "yes"; then
32407   BUILD_LUA_TRUE=
32408   BUILD_LUA_FALSE='#'
32409 else
32410   BUILD_LUA_TRUE='#'
32411   BUILD_LUA_FALSE=
32415 enable_tcl_site=no
32417 # Check whether --enable-tcl was given.
32418 if test "${enable_tcl+set}" = set; then
32419   enableval=$enable_tcl;
32420 else
32421   enable_tcl=yes
32425 if test  "$enable_tcl" = "yes"; then
32426     withval=""
32428 # Check whether --with-tcllib was given.
32429 if test "${with_tcllib+set}" = set; then
32430   withval=$with_tcllib;
32433   enable_tcl=no
32434   for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
32435     { $as_echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
32436 $as_echo_n "checking for tclConfig.sh in $dir... " >&6; }
32437     if test -f "$dir/tclConfig.sh" ; then
32438         tcl_config=$dir/tclConfig.sh
32439         enable_tcl=yes
32440         { $as_echo "$as_me:$LINENO: result: yes" >&5
32441 $as_echo "yes" >&6; }
32442         break
32443     else
32444         { $as_echo "$as_me:$LINENO: result: no" >&5
32445 $as_echo "no" >&6; }
32446     fi
32447   done
32449   if test "$enable_tcl" = "no"; then
32450         { $as_echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
32451 $as_echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
32452   else
32453         . $tcl_config
32454         TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
32455         if test -n "$TCL_INC_DIR"; then
32456           TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
32457         fi
32458   fi
32459   # Check whether --enable-tcl was given.
32460 if test "${enable_tcl+set}" = set; then
32461   enableval=$enable_tcl;
32462 else
32463   enable_tcl_site=yes
32469  if test "$enable_tcl" = "yes" ; then
32470   BUILD_TCL_TRUE=
32471   BUILD_TCL_FALSE='#'
32472 else
32473   BUILD_TCL_TRUE='#'
32474   BUILD_TCL_FALSE=
32477  if test "$enable_tcl_site" = "yes" ; then
32478   BUILD_TCL_SITE_TRUE=
32479   BUILD_TCL_SITE_FALSE='#'
32480 else
32481   BUILD_TCL_SITE_TRUE='#'
32482   BUILD_TCL_SITE_FALSE=
32498 # Check whether --enable-python was given.
32499 if test "${enable_python+set}" = set; then
32500   enableval=$enable_python;
32501 else
32502   enable_python=yes
32506 if test  "$enable_python" = "yes"; then
32511         if test -n "$PYTHON"; then
32512       # If the user set $PYTHON, use it and don't search something else.
32513       { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
32514 $as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
32515       prog="import sys
32516 # split strings by '.' and convert to numeric.  Append some zeros
32517 # because we need at least 4 digits for the hex conversion.
32518 # map returns an iterator in Python 3.0 and a list in 2.x
32519 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
32520 minverhex = 0
32521 # xrange is not present in Python 3.0 and range returns an iterator
32522 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
32523 sys.exit(sys.hexversion < minverhex)"
32524   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
32525    ($PYTHON -c "$prog") >&5 2>&5
32526    ac_status=$?
32527    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528    (exit $ac_status); }; then
32529   { $as_echo "$as_me:$LINENO: result: yes" >&5
32530 $as_echo "yes" >&6; }
32531 else
32532   { { $as_echo "$as_me:$LINENO: error: too old" >&5
32533 $as_echo "$as_me: error: too old" >&2;}
32534    { (exit 1); exit 1; }; }
32537       am_display_PYTHON=$PYTHON
32538     else
32539       # Otherwise, try each interpreter until we find one that satisfies
32540       # VERSION.
32541       { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
32542 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
32543 if test "${am_cv_pathless_PYTHON+set}" = set; then
32544   $as_echo_n "(cached) " >&6
32545 else
32547         for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
32548           test "$am_cv_pathless_PYTHON" = none && break
32549           prog="import sys
32550 # split strings by '.' and convert to numeric.  Append some zeros
32551 # because we need at least 4 digits for the hex conversion.
32552 # map returns an iterator in Python 3.0 and a list in 2.x
32553 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
32554 minverhex = 0
32555 # xrange is not present in Python 3.0 and range returns an iterator
32556 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
32557 sys.exit(sys.hexversion < minverhex)"
32558   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
32559    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
32560    ac_status=$?
32561    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562    (exit $ac_status); }; then
32563   break
32566         done
32568 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
32569 $as_echo "$am_cv_pathless_PYTHON" >&6; }
32570       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
32571       if test "$am_cv_pathless_PYTHON" = none; then
32572         PYTHON=:
32573       else
32574         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
32575 set dummy $am_cv_pathless_PYTHON; ac_word=$2
32576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32577 $as_echo_n "checking for $ac_word... " >&6; }
32578 if test "${ac_cv_path_PYTHON+set}" = set; then
32579   $as_echo_n "(cached) " >&6
32580 else
32581   case $PYTHON in
32582   [\\/]* | ?:[\\/]*)
32583   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
32584   ;;
32585   *)
32586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32587 for as_dir in $PATH
32589   IFS=$as_save_IFS
32590   test -z "$as_dir" && as_dir=.
32591   for ac_exec_ext in '' $ac_executable_extensions; do
32592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32593     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
32594     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32595     break 2
32596   fi
32597 done
32598 done
32599 IFS=$as_save_IFS
32601   ;;
32602 esac
32604 PYTHON=$ac_cv_path_PYTHON
32605 if test -n "$PYTHON"; then
32606   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
32607 $as_echo "$PYTHON" >&6; }
32608 else
32609   { $as_echo "$as_me:$LINENO: result: no" >&5
32610 $as_echo "no" >&6; }
32614       fi
32615       am_display_PYTHON=$am_cv_pathless_PYTHON
32616     fi
32619   if test "$PYTHON" = :; then
32620       enable_python=no
32621   else
32624   { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
32625 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
32626 if test "${am_cv_python_version+set}" = set; then
32627   $as_echo_n "(cached) " >&6
32628 else
32629   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
32631 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
32632 $as_echo "$am_cv_python_version" >&6; }
32633   PYTHON_VERSION=$am_cv_python_version
32637   PYTHON_PREFIX='${prefix}'
32639   PYTHON_EXEC_PREFIX='${exec_prefix}'
32643   { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
32644 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
32645 if test "${am_cv_python_platform+set}" = set; then
32646   $as_echo_n "(cached) " >&6
32647 else
32648   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
32650 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
32651 $as_echo "$am_cv_python_platform" >&6; }
32652   PYTHON_PLATFORM=$am_cv_python_platform
32657                 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
32658 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
32659 if test "${am_cv_python_pythondir+set}" = set; then
32660   $as_echo_n "(cached) " >&6
32661 else
32662   if test "x$prefix" = xNONE
32663      then
32664        am_py_prefix=$ac_default_prefix
32665      else
32666        am_py_prefix=$prefix
32667      fi
32668      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
32669      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
32670      case $am_cv_python_pythondir in
32671      $am_py_prefix*)
32672        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
32673        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
32674        ;;
32675      esac
32678 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
32679 $as_echo "$am_cv_python_pythondir" >&6; }
32680   pythondir=$am_cv_python_pythondir
32684   pkgpythondir=\${pythondir}/$PACKAGE
32687             { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
32688 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
32689 if test "${am_cv_python_pyexecdir+set}" = set; then
32690   $as_echo_n "(cached) " >&6
32691 else
32692   if test "x$exec_prefix" = xNONE
32693      then
32694        am_py_exec_prefix=$am_py_prefix
32695      else
32696        am_py_exec_prefix=$exec_prefix
32697      fi
32698      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
32699      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
32700      case $am_cv_python_pyexecdir in
32701      $am_py_exec_prefix*)
32702        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
32703        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
32704        ;;
32705      esac
32708 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
32709 $as_echo "$am_cv_python_pyexecdir" >&6; }
32710   pyexecdir=$am_cv_python_pyexecdir
32714   pkgpyexecdir=\${pyexecdir}/$PACKAGE
32718   fi
32722 { $as_echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
32723 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
32724 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
32725 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
32726 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
32727 if test "$py_prefix" != "$py_exec_prefix"; then
32728   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
32731 save_CPPFLAGS="$CPPFLAGS"
32732 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
32733 cat >conftest.$ac_ext <<_ACEOF
32734 /* confdefs.h.  */
32735 _ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h.  */
32739 #include <Python.h>
32740 _ACEOF
32741 if { (ac_try="$ac_cpp conftest.$ac_ext"
32742 case "(($ac_try" in
32743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32744   *) ac_try_echo=$ac_try;;
32745 esac
32746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32747 $as_echo "$ac_try_echo") >&5
32748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32749   ac_status=$?
32750   grep -v '^ *+' conftest.er1 >conftest.err
32751   rm -f conftest.er1
32752   cat conftest.err >&5
32753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); } >/dev/null && {
32755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32756          test ! -s conftest.err
32757        }; then
32758   { $as_echo "$as_me:$LINENO: result: found" >&5
32759 $as_echo "found" >&6; }
32761 else
32762   $as_echo "$as_me: failed program was:" >&5
32763 sed 's/^/| /' conftest.$ac_ext >&5
32765   { $as_echo "$as_me:$LINENO: result: not found" >&5
32766 $as_echo "not found" >&6; }
32767 enable_python=no;{ $as_echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
32768 $as_echo "$as_me: WARNING: could not find Python headers" >&2;}
32771 rm -f conftest.err conftest.$ac_ext
32772 CPPFLAGS="$save_CPPFLAGS"
32776 if test  x$enable_python = xno; then
32777         COMP_PYTHON=
32778 else
32779         COMP_PYTHON="python"
32784 for ac_prog in gnroff nroff
32786   # Extract the first word of "$ac_prog", so it can be a program name with args.
32787 set dummy $ac_prog; ac_word=$2
32788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32789 $as_echo_n "checking for $ac_word... " >&6; }
32790 if test "${ac_cv_path_NROFF+set}" = set; then
32791   $as_echo_n "(cached) " >&6
32792 else
32793   case $NROFF in
32794   [\\/]* | ?:[\\/]*)
32795   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
32796   ;;
32797   *)
32798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32799 for as_dir in $PATH
32801   IFS=$as_save_IFS
32802   test -z "$as_dir" && as_dir=.
32803   for ac_exec_ext in '' $ac_executable_extensions; do
32804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32805     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
32806     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32807     break 2
32808   fi
32809 done
32810 done
32811 IFS=$as_save_IFS
32813   ;;
32814 esac
32816 NROFF=$ac_cv_path_NROFF
32817 if test -n "$NROFF"; then
32818   { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
32819 $as_echo "$NROFF" >&6; }
32820 else
32821   { $as_echo "$as_me:$LINENO: result: no" >&5
32822 $as_echo "no" >&6; }
32826   test -n "$NROFF" && break
32827 done
32829 for ac_prog in groff troff
32831   # Extract the first word of "$ac_prog", so it can be a program name with args.
32832 set dummy $ac_prog; ac_word=$2
32833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32834 $as_echo_n "checking for $ac_word... " >&6; }
32835 if test "${ac_cv_path_TROFF+set}" = set; then
32836   $as_echo_n "(cached) " >&6
32837 else
32838   case $TROFF in
32839   [\\/]* | ?:[\\/]*)
32840   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
32841   ;;
32842   *)
32843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32844 for as_dir in $PATH
32846   IFS=$as_save_IFS
32847   test -z "$as_dir" && as_dir=.
32848   for ac_exec_ext in '' $ac_executable_extensions; do
32849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32850     ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
32851     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32852     break 2
32853   fi
32854 done
32855 done
32856 IFS=$as_save_IFS
32858   ;;
32859 esac
32861 TROFF=$ac_cv_path_TROFF
32862 if test -n "$TROFF"; then
32863   { $as_echo "$as_me:$LINENO: result: $TROFF" >&5
32864 $as_echo "$TROFF" >&6; }
32865 else
32866   { $as_echo "$as_me:$LINENO: result: no" >&5
32867 $as_echo "no" >&6; }
32871   test -n "$TROFF" && break
32872 done
32876 if test -z "$RRDDOCDIR"; then
32877    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
32881 case $TERM in
32882        #   for the most important terminal types we directly know the sequences
32883        xterm|xterm*|vt220|vt220*)
32884                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
32885                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
32886        ;;
32887        vt100|vt100*|cygwin)
32888                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
32889                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
32890        ;;
32891        *)
32892                T_MD=''
32893                T_ME=''
32894        ;;
32895 esac
32896   { $as_echo "$as_me:$LINENO: result: " >&5
32897 $as_echo "" >&6; }
32898   { $as_echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
32899 $as_echo "${T_MD}Apply Configuration Information${T_ME}" >&6; }
32902 ac_config_files="$ac_config_files examples/shared-demo.pl"
32904 ac_config_files="$ac_config_files examples/piped-demo.pl"
32906 ac_config_files="$ac_config_files examples/stripes.pl"
32908 ac_config_files="$ac_config_files examples/bigtops.pl"
32910 ac_config_files="$ac_config_files examples/minmax.pl"
32912 ac_config_files="$ac_config_files examples/4charts.pl"
32914 ac_config_files="$ac_config_files examples/perftest.pl"
32916 ac_config_files="$ac_config_files examples/Makefile"
32918 ac_config_files="$ac_config_files examples/rrdcached/Makefile"
32920 ac_config_files="$ac_config_files doc/Makefile"
32922 ac_config_files="$ac_config_files po/Makefile.in"
32924 ac_config_files="$ac_config_files intl/Makefile"
32926 ac_config_files="$ac_config_files src/Makefile"
32928 ac_config_files="$ac_config_files src/librrd.sym.in"
32930 ac_config_files="$ac_config_files src/librrd.pc"
32932 ac_config_files="$ac_config_files bindings/Makefile"
32934 ac_config_files="$ac_config_files bindings/tcl/Makefile"
32936 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
32938 ac_config_files="$ac_config_files Makefile"
32940 ac_config_files="$ac_config_files bindings/lua/Makefile"
32943 ac_config_commands="$ac_config_commands default"
32948 cat >confcache <<\_ACEOF
32949 # This file is a shell script that caches the results of configure
32950 # tests run on this system so they can be shared between configure
32951 # scripts and configure runs, see configure's option --config-cache.
32952 # It is not useful on other systems.  If it contains results you don't
32953 # want to keep, you may remove or edit it.
32955 # config.status only pays attention to the cache file if you give it
32956 # the --recheck option to rerun configure.
32958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32960 # following values.
32962 _ACEOF
32964 # The following way of writing the cache mishandles newlines in values,
32965 # but we know of no workaround that is simple, portable, and efficient.
32966 # So, we kill variables containing newlines.
32967 # Ultrix sh set writes to stderr and can't be redirected directly,
32968 # and sets the high bit in the cache file unless we assign to the vars.
32970   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32971     eval ac_val=\$$ac_var
32972     case $ac_val in #(
32973     *${as_nl}*)
32974       case $ac_var in #(
32975       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
32976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32977       esac
32978       case $ac_var in #(
32979       _ | IFS | as_nl) ;; #(
32980       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32981       *) $as_unset $ac_var ;;
32982       esac ;;
32983     esac
32984   done
32986   (set) 2>&1 |
32987     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32988     *${as_nl}ac_space=\ *)
32989       # `set' does not quote correctly, so add quotes (double-quote
32990       # substitution turns \\\\ into \\, and sed turns \\ into \).
32991       sed -n \
32992         "s/'/'\\\\''/g;
32993           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32994       ;; #(
32995     *)
32996       # `set' quotes correctly as required by POSIX, so do not add quotes.
32997       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32998       ;;
32999     esac |
33000     sort
33001 ) |
33002   sed '
33003      /^ac_cv_env_/b end
33004      t clear
33005      :clear
33006      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33007      t end
33008      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33009      :end' >>confcache
33010 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33011   if test -w "$cache_file"; then
33012     test "x$cache_file" != "x/dev/null" &&
33013       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
33014 $as_echo "$as_me: updating cache $cache_file" >&6;}
33015     cat confcache >$cache_file
33016   else
33017     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33018 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33019   fi
33021 rm -f confcache
33023 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33024 # Let make expand exec_prefix.
33025 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33027 DEFS=-DHAVE_CONFIG_H
33029 ac_libobjs=
33030 ac_ltlibobjs=
33031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33032   # 1. Remove the extension, and $U if already installed.
33033   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33034   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33035   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33036   #    will be set to the directory where LIBOBJS objects are built.
33037   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33038   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33039 done
33040 LIBOBJS=$ac_libobjs
33042 LTLIBOBJS=$ac_ltlibobjs
33045 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33046   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
33047 Usually this means the macro was only invoked conditionally." >&5
33048 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
33049 Usually this means the macro was only invoked conditionally." >&2;}
33050    { (exit 1); exit 1; }; }
33052 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33053   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
33054 Usually this means the macro was only invoked conditionally." >&5
33055 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
33056 Usually this means the macro was only invoked conditionally." >&2;}
33057    { (exit 1); exit 1; }; }
33059  if test -n "$EXEEXT"; then
33060   am__EXEEXT_TRUE=
33061   am__EXEEXT_FALSE='#'
33062 else
33063   am__EXEEXT_TRUE='#'
33064   am__EXEEXT_FALSE=
33067 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33068   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
33069 Usually this means the macro was only invoked conditionally." >&5
33070 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
33071 Usually this means the macro was only invoked conditionally." >&2;}
33072    { (exit 1); exit 1; }; }
33074 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
33075   { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
33076 Usually this means the macro was only invoked conditionally." >&5
33077 $as_echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
33078 Usually this means the macro was only invoked conditionally." >&2;}
33079    { (exit 1); exit 1; }; }
33082 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
33083   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
33084 Usually this means the macro was only invoked conditionally." >&5
33085 $as_echo "$as_me: error: conditional \"BUILD_GETOPT\" was never defined.
33086 Usually this means the macro was only invoked conditionally." >&2;}
33087    { (exit 1); exit 1; }; }
33089 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
33090   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
33091 Usually this means the macro was only invoked conditionally." >&5
33092 $as_echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
33093 Usually this means the macro was only invoked conditionally." >&2;}
33094    { (exit 1); exit 1; }; }
33096 if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
33097   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBDBI\" was never defined.
33098 Usually this means the macro was only invoked conditionally." >&5
33099 $as_echo "$as_me: error: conditional \"BUILD_LIBDBI\" was never defined.
33100 Usually this means the macro was only invoked conditionally." >&2;}
33101    { (exit 1); exit 1; }; }
33103 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
33104   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
33105 Usually this means the macro was only invoked conditionally." >&5
33106 $as_echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
33107 Usually this means the macro was only invoked conditionally." >&2;}
33108    { (exit 1); exit 1; }; }
33110 if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
33111   { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
33112 Usually this means the macro was only invoked conditionally." >&5
33113 $as_echo "$as_me: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
33114 Usually this means the macro was only invoked conditionally." >&2;}
33115    { (exit 1); exit 1; }; }
33117 if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
33118   { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
33119 Usually this means the macro was only invoked conditionally." >&5
33120 $as_echo "$as_me: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
33121 Usually this means the macro was only invoked conditionally." >&2;}
33122    { (exit 1); exit 1; }; }
33124 if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
33125   { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
33126 Usually this means the macro was only invoked conditionally." >&5
33127 $as_echo "$as_me: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
33128 Usually this means the macro was only invoked conditionally." >&2;}
33129    { (exit 1); exit 1; }; }
33131 if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
33132   { { $as_echo "$as_me:$LINENO: error: conditional \"LUA50\" was never defined.
33133 Usually this means the macro was only invoked conditionally." >&5
33134 $as_echo "$as_me: error: conditional \"LUA50\" was never defined.
33135 Usually this means the macro was only invoked conditionally." >&2;}
33136    { (exit 1); exit 1; }; }
33138 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
33139   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LUA\" was never defined.
33140 Usually this means the macro was only invoked conditionally." >&5
33141 $as_echo "$as_me: error: conditional \"BUILD_LUA\" was never defined.
33142 Usually this means the macro was only invoked conditionally." >&2;}
33143    { (exit 1); exit 1; }; }
33145 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
33146   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
33147 Usually this means the macro was only invoked conditionally." >&5
33148 $as_echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
33149 Usually this means the macro was only invoked conditionally." >&2;}
33150    { (exit 1); exit 1; }; }
33152 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
33153   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
33154 Usually this means the macro was only invoked conditionally." >&5
33155 $as_echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
33156 Usually this means the macro was only invoked conditionally." >&2;}
33157    { (exit 1); exit 1; }; }
33160 : ${CONFIG_STATUS=./config.status}
33161 ac_write_fail=0
33162 ac_clean_files_save=$ac_clean_files
33163 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33164 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33165 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33166 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33167 #! $SHELL
33168 # Generated by $as_me.
33169 # Run this file to recreate the current configuration.
33170 # Compiler output produced by configure, useful for debugging
33171 # configure, is in config.log if it exists.
33173 debug=false
33174 ac_cs_recheck=false
33175 ac_cs_silent=false
33176 SHELL=\${CONFIG_SHELL-$SHELL}
33177 _ACEOF
33179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33180 ## --------------------- ##
33181 ## M4sh Initialization.  ##
33182 ## --------------------- ##
33184 # Be more Bourne compatible
33185 DUALCASE=1; export DUALCASE # for MKS sh
33186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33187   emulate sh
33188   NULLCMD=:
33189   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33190   # is contrary to our usage.  Disable this feature.
33191   alias -g '${1+"$@"}'='"$@"'
33192   setopt NO_GLOB_SUBST
33193 else
33194   case `(set -o) 2>/dev/null` in
33195   *posix*) set -o posix ;;
33196 esac
33203 # PATH needs CR
33204 # Avoid depending upon Character Ranges.
33205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33208 as_cr_digits='0123456789'
33209 as_cr_alnum=$as_cr_Letters$as_cr_digits
33211 as_nl='
33213 export as_nl
33214 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33215 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33216 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33218 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33219   as_echo='printf %s\n'
33220   as_echo_n='printf %s'
33221 else
33222   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33223     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33224     as_echo_n='/usr/ucb/echo -n'
33225   else
33226     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33227     as_echo_n_body='eval
33228       arg=$1;
33229       case $arg in
33230       *"$as_nl"*)
33231         expr "X$arg" : "X\\(.*\\)$as_nl";
33232         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33233       esac;
33234       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33235     '
33236     export as_echo_n_body
33237     as_echo_n='sh -c $as_echo_n_body as_echo'
33238   fi
33239   export as_echo_body
33240   as_echo='sh -c $as_echo_body as_echo'
33243 # The user is always right.
33244 if test "${PATH_SEPARATOR+set}" != set; then
33245   PATH_SEPARATOR=:
33246   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33247     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33248       PATH_SEPARATOR=';'
33249   }
33252 # Support unset when possible.
33253 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33254   as_unset=unset
33255 else
33256   as_unset=false
33260 # IFS
33261 # We need space, tab and new line, in precisely that order.  Quoting is
33262 # there to prevent editors from complaining about space-tab.
33263 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33264 # splitting by setting IFS to empty value.)
33265 IFS=" ""        $as_nl"
33267 # Find who we are.  Look in the path if we contain no directory separator.
33268 case $0 in
33269   *[\\/]* ) as_myself=$0 ;;
33270   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33271 for as_dir in $PATH
33273   IFS=$as_save_IFS
33274   test -z "$as_dir" && as_dir=.
33275   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33276 done
33277 IFS=$as_save_IFS
33279      ;;
33280 esac
33281 # We did not find ourselves, most probably we were run as `sh COMMAND'
33282 # in which case we are not to be found in the path.
33283 if test "x$as_myself" = x; then
33284   as_myself=$0
33286 if test ! -f "$as_myself"; then
33287   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33288   { (exit 1); exit 1; }
33291 # Work around bugs in pre-3.0 UWIN ksh.
33292 for as_var in ENV MAIL MAILPATH
33293 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33294 done
33295 PS1='$ '
33296 PS2='> '
33297 PS4='+ '
33299 # NLS nuisances.
33300 LC_ALL=C
33301 export LC_ALL
33302 LANGUAGE=C
33303 export LANGUAGE
33305 # Required to use basename.
33306 if expr a : '\(a\)' >/dev/null 2>&1 &&
33307    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33308   as_expr=expr
33309 else
33310   as_expr=false
33313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33314   as_basename=basename
33315 else
33316   as_basename=false
33320 # Name of the executable.
33321 as_me=`$as_basename -- "$0" ||
33322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33323          X"$0" : 'X\(//\)$' \| \
33324          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33325 $as_echo X/"$0" |
33326     sed '/^.*\/\([^/][^/]*\)\/*$/{
33327             s//\1/
33328             q
33329           }
33330           /^X\/\(\/\/\)$/{
33331             s//\1/
33332             q
33333           }
33334           /^X\/\(\/\).*/{
33335             s//\1/
33336             q
33337           }
33338           s/.*/./; q'`
33340 # CDPATH.
33341 $as_unset CDPATH
33345   as_lineno_1=$LINENO
33346   as_lineno_2=$LINENO
33347   test "x$as_lineno_1" != "x$as_lineno_2" &&
33348   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33350   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33351   # uniformly replaced by the line number.  The first 'sed' inserts a
33352   # line-number line after each line using $LINENO; the second 'sed'
33353   # does the real work.  The second script uses 'N' to pair each
33354   # line-number line with the line containing $LINENO, and appends
33355   # trailing '-' during substitution so that $LINENO is not a special
33356   # case at line end.
33357   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33358   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33359   # E. McMahon (1931-1989) for sed's syntax.  :-)
33360   sed -n '
33361     p
33362     /[$]LINENO/=
33363   ' <$as_myself |
33364     sed '
33365       s/[$]LINENO.*/&-/
33366       t lineno
33367       b
33368       :lineno
33369       N
33370       :loop
33371       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33372       t loop
33373       s/-\n.*//
33374     ' >$as_me.lineno &&
33375   chmod +x "$as_me.lineno" ||
33376     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33377    { (exit 1); exit 1; }; }
33379   # Don't try to exec as it changes $[0], causing all sort of problems
33380   # (the dirname of $[0] is not the place where we might find the
33381   # original and so on.  Autoconf is especially sensitive to this).
33382   . "./$as_me.lineno"
33383   # Exit status is that of the last command.
33384   exit
33388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33389   as_dirname=dirname
33390 else
33391   as_dirname=false
33394 ECHO_C= ECHO_N= ECHO_T=
33395 case `echo -n x` in
33396 -n*)
33397   case `echo 'x\c'` in
33398   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33399   *)   ECHO_C='\c';;
33400   esac;;
33402   ECHO_N='-n';;
33403 esac
33404 if expr a : '\(a\)' >/dev/null 2>&1 &&
33405    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33406   as_expr=expr
33407 else
33408   as_expr=false
33411 rm -f conf$$ conf$$.exe conf$$.file
33412 if test -d conf$$.dir; then
33413   rm -f conf$$.dir/conf$$.file
33414 else
33415   rm -f conf$$.dir
33416   mkdir conf$$.dir 2>/dev/null
33418 if (echo >conf$$.file) 2>/dev/null; then
33419   if ln -s conf$$.file conf$$ 2>/dev/null; then
33420     as_ln_s='ln -s'
33421     # ... but there are two gotchas:
33422     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33423     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33424     # In both cases, we have to default to `cp -p'.
33425     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33426       as_ln_s='cp -p'
33427   elif ln conf$$.file conf$$ 2>/dev/null; then
33428     as_ln_s=ln
33429   else
33430     as_ln_s='cp -p'
33431   fi
33432 else
33433   as_ln_s='cp -p'
33435 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33436 rmdir conf$$.dir 2>/dev/null
33438 if mkdir -p . 2>/dev/null; then
33439   as_mkdir_p=:
33440 else
33441   test -d ./-p && rmdir ./-p
33442   as_mkdir_p=false
33445 if test -x / >/dev/null 2>&1; then
33446   as_test_x='test -x'
33447 else
33448   if ls -dL / >/dev/null 2>&1; then
33449     as_ls_L_option=L
33450   else
33451     as_ls_L_option=
33452   fi
33453   as_test_x='
33454     eval sh -c '\''
33455       if test -d "$1"; then
33456         test -d "$1/.";
33457       else
33458         case $1 in
33459         -*)set "./$1";;
33460         esac;
33461         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33462         ???[sx]*):;;*)false;;esac;fi
33463     '\'' sh
33464   '
33466 as_executable_p=$as_test_x
33468 # Sed expression to map a string onto a valid CPP name.
33469 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33471 # Sed expression to map a string onto a valid variable name.
33472 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33475 exec 6>&1
33477 # Save the log message, to keep $[0] and so on meaningful, and to
33478 # report actual input values of CONFIG_FILES etc. instead of their
33479 # values after options handling.
33480 ac_log="
33481 This file was extended by rrdtool $as_me 1.3.99909060808, which was
33482 generated by GNU Autoconf 2.63.  Invocation command line was
33484   CONFIG_FILES    = $CONFIG_FILES
33485   CONFIG_HEADERS  = $CONFIG_HEADERS
33486   CONFIG_LINKS    = $CONFIG_LINKS
33487   CONFIG_COMMANDS = $CONFIG_COMMANDS
33488   $ $0 $@
33490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33493 _ACEOF
33495 case $ac_config_files in *"
33496 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33497 esac
33499 case $ac_config_headers in *"
33500 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33501 esac
33504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33505 # Files that config.status was made for.
33506 config_files="$ac_config_files"
33507 config_headers="$ac_config_headers"
33508 config_commands="$ac_config_commands"
33510 _ACEOF
33512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33513 ac_cs_usage="\
33514 \`$as_me' instantiates files from templates according to the
33515 current configuration.
33517 Usage: $0 [OPTION]... [FILE]...
33519   -h, --help       print this help, then exit
33520   -V, --version    print version number and configuration settings, then exit
33521   -q, --quiet, --silent
33522                    do not print progress messages
33523   -d, --debug      don't remove temporary files
33524       --recheck    update $as_me by reconfiguring in the same conditions
33525       --file=FILE[:TEMPLATE]
33526                    instantiate the configuration file FILE
33527       --header=FILE[:TEMPLATE]
33528                    instantiate the configuration header FILE
33530 Configuration files:
33531 $config_files
33533 Configuration headers:
33534 $config_headers
33536 Configuration commands:
33537 $config_commands
33539 Report bugs to <bug-autoconf@gnu.org>."
33541 _ACEOF
33542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33543 ac_cs_version="\\
33544 rrdtool config.status 1.3.99909060808
33545 configured by $0, generated by GNU Autoconf 2.63,
33546   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33548 Copyright (C) 2008 Free Software Foundation, Inc.
33549 This config.status script is free software; the Free Software Foundation
33550 gives unlimited permission to copy, distribute and modify it."
33552 ac_pwd='$ac_pwd'
33553 srcdir='$srcdir'
33554 INSTALL='$INSTALL'
33555 MKDIR_P='$MKDIR_P'
33556 AWK='$AWK'
33557 test -n "\$AWK" || AWK=awk
33558 _ACEOF
33560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33561 # The default lists apply if the user does not specify any file.
33562 ac_need_defaults=:
33563 while test $# != 0
33565   case $1 in
33566   --*=*)
33567     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33568     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33569     ac_shift=:
33570     ;;
33571   *)
33572     ac_option=$1
33573     ac_optarg=$2
33574     ac_shift=shift
33575     ;;
33576   esac
33578   case $ac_option in
33579   # Handling of the options.
33580   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33581     ac_cs_recheck=: ;;
33582   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33583     $as_echo "$ac_cs_version"; exit ;;
33584   --debug | --debu | --deb | --de | --d | -d )
33585     debug=: ;;
33586   --file | --fil | --fi | --f )
33587     $ac_shift
33588     case $ac_optarg in
33589     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33590     esac
33591     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
33592     ac_need_defaults=false;;
33593   --header | --heade | --head | --hea )
33594     $ac_shift
33595     case $ac_optarg in
33596     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33597     esac
33598     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
33599     ac_need_defaults=false;;
33600   --he | --h)
33601     # Conflict between --help and --header
33602     { $as_echo "$as_me: error: ambiguous option: $1
33603 Try \`$0 --help' for more information." >&2
33604    { (exit 1); exit 1; }; };;
33605   --help | --hel | -h )
33606     $as_echo "$ac_cs_usage"; exit ;;
33607   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33608   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33609     ac_cs_silent=: ;;
33611   # This is an error.
33612   -*) { $as_echo "$as_me: error: unrecognized option: $1
33613 Try \`$0 --help' for more information." >&2
33614    { (exit 1); exit 1; }; } ;;
33616   *) ac_config_targets="$ac_config_targets $1"
33617      ac_need_defaults=false ;;
33619   esac
33620   shift
33621 done
33623 ac_configure_extra_args=
33625 if $ac_cs_silent; then
33626   exec 6>/dev/null
33627   ac_configure_extra_args="$ac_configure_extra_args --silent"
33630 _ACEOF
33631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33632 if \$ac_cs_recheck; then
33633   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33634   shift
33635   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33636   CONFIG_SHELL='$SHELL'
33637   export CONFIG_SHELL
33638   exec "\$@"
33641 _ACEOF
33642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33643 exec 5>>config.log
33645   echo
33646   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33647 ## Running $as_me. ##
33648 _ASBOX
33649   $as_echo "$ac_log"
33650 } >&5
33652 _ACEOF
33653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33655 # INIT-COMMANDS
33657 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33660 # The HP-UX ksh and POSIX shell print the target directory to stdout
33661 # if CDPATH is set.
33662 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33664 sed_quote_subst='$sed_quote_subst'
33665 double_quote_subst='$double_quote_subst'
33666 delay_variable_subst='$delay_variable_subst'
33667 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33668 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33669 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33670 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33671 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33672 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33673 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33674 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33675 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33676 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33677 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33678 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33679 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33680 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33681 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33682 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33683 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33684 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33685 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33686 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33687 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33688 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33689 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33690 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33691 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33692 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33693 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33694 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33695 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33696 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33697 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33698 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33699 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33700 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33701 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33702 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33703 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33704 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33705 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33706 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33707 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33708 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33709 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33711 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"`'
33712 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"`'
33713 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33714 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33715 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33716 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33717 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33718 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33719 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33720 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33721 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33722 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33723 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33724 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33725 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33726 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33727 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33728 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33729 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33730 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33731 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33732 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33733 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33734 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33735 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33736 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33737 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33738 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33739 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33740 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33741 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33742 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33743 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33744 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33745 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33746 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33747 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33748 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33749 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33750 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33751 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33752 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33753 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33754 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33755 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33756 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33757 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33758 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33759 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33760 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33761 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33762 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33763 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33764 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33765 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33766 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33767 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33768 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33769 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33770 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33771 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33772 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33773 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33774 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33775 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33776 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33777 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33778 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33779 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33780 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33781 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33782 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33783 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33784 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33786 LTCC='$LTCC'
33787 LTCFLAGS='$LTCFLAGS'
33788 compiler='$compiler_DEFAULT'
33790 # Quote evaled strings.
33791 for var in SED \
33792 GREP \
33793 EGREP \
33794 FGREP \
33795 LD \
33796 NM \
33797 LN_S \
33798 lt_SP2NL \
33799 lt_NL2SP \
33800 reload_flag \
33801 OBJDUMP \
33802 deplibs_check_method \
33803 file_magic_cmd \
33804 AR \
33805 AR_FLAGS \
33806 STRIP \
33807 RANLIB \
33808 CC \
33809 CFLAGS \
33810 compiler \
33811 lt_cv_sys_global_symbol_pipe \
33812 lt_cv_sys_global_symbol_to_cdecl \
33813 lt_cv_sys_global_symbol_to_c_name_address \
33814 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33815 SHELL \
33816 ECHO \
33817 lt_prog_compiler_no_builtin_flag \
33818 lt_prog_compiler_wl \
33819 lt_prog_compiler_pic \
33820 lt_prog_compiler_static \
33821 lt_cv_prog_compiler_c_o \
33822 need_locks \
33823 DSYMUTIL \
33824 NMEDIT \
33825 LIPO \
33826 OTOOL \
33827 OTOOL64 \
33828 shrext_cmds \
33829 export_dynamic_flag_spec \
33830 whole_archive_flag_spec \
33831 compiler_needs_object \
33832 with_gnu_ld \
33833 allow_undefined_flag \
33834 no_undefined_flag \
33835 hardcode_libdir_flag_spec \
33836 hardcode_libdir_flag_spec_ld \
33837 hardcode_libdir_separator \
33838 fix_srcfile_path \
33839 exclude_expsyms \
33840 include_expsyms \
33841 file_list_spec \
33842 variables_saved_for_relink \
33843 libname_spec \
33844 library_names_spec \
33845 soname_spec \
33846 finish_eval \
33847 old_striplib \
33848 striplib; do
33849     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33850     *[\\\\\\\`\\"\\\$]*)
33851       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33852       ;;
33853     *)
33854       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33855       ;;
33856     esac
33857 done
33859 # Double-quote double-evaled strings.
33860 for var in reload_cmds \
33861 old_postinstall_cmds \
33862 old_postuninstall_cmds \
33863 old_archive_cmds \
33864 extract_expsyms_cmds \
33865 old_archive_from_new_cmds \
33866 old_archive_from_expsyms_cmds \
33867 archive_cmds \
33868 archive_expsym_cmds \
33869 module_cmds \
33870 module_expsym_cmds \
33871 export_symbols_cmds \
33872 prelink_cmds \
33873 postinstall_cmds \
33874 postuninstall_cmds \
33875 finish_cmds \
33876 sys_lib_search_path_spec \
33877 sys_lib_dlsearch_path_spec; do
33878     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33879     *[\\\\\\\`\\"\\\$]*)
33880       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33881       ;;
33882     *)
33883       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33884       ;;
33885     esac
33886 done
33888 # Fix-up fallback echo if it was mangled by the above quoting rules.
33889 case \$lt_ECHO in
33890 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33891   ;;
33892 esac
33894 ac_aux_dir='$ac_aux_dir'
33895 xsi_shell='$xsi_shell'
33896 lt_shell_append='$lt_shell_append'
33898 # See if we are running on zsh, and set the options which allow our
33899 # commands through without removal of \ escapes INIT.
33900 if test -n "\${ZSH_VERSION+set}" ; then
33901    setopt NO_GLOB_SUBST
33905     PACKAGE='$PACKAGE'
33906     VERSION='$VERSION'
33907     TIMESTAMP='$TIMESTAMP'
33908     RM='$RM'
33909     ofile='$ofile'
33913 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33914     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33915     # from automake.
33916     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33917     # Capture the value of LINGUAS because we need it to compute CATALOGS.
33918     LINGUAS="${LINGUAS-%UNSET%}"
33922 _ACEOF
33924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33926 # Handling of arguments.
33927 for ac_config_target in $ac_config_targets
33929   case $ac_config_target in
33930     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33931     "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
33932     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33933     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33934     "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
33935     "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
33936     "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
33937     "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
33938     "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
33939     "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
33940     "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
33941     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
33942     "examples/rrdcached/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rrdcached/Makefile" ;;
33943     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33944     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33945     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
33946     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33947     "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
33948     "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
33949     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
33950     "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
33951     "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
33952     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33953     "bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/lua/Makefile" ;;
33954     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33956   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33957 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33958    { (exit 1); exit 1; }; };;
33959   esac
33960 done
33963 # If the user did not use the arguments to specify the items to instantiate,
33964 # then the envvar interface is used.  Set only those that are not.
33965 # We use the long form for the default assignment because of an extremely
33966 # bizarre bug on SunOS 4.1.3.
33967 if $ac_need_defaults; then
33968   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33969   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33970   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33973 # Have a temporary directory for convenience.  Make it in the build tree
33974 # simply because there is no reason against having it here, and in addition,
33975 # creating and moving files from /tmp can sometimes cause problems.
33976 # Hook for its removal unless debugging.
33977 # Note that there is a small window in which the directory will not be cleaned:
33978 # after its creation but before its name has been assigned to `$tmp'.
33979 $debug ||
33981   tmp=
33982   trap 'exit_status=$?
33983   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33984 ' 0
33985   trap '{ (exit 1); exit 1; }' 1 2 13 15
33987 # Create a (secure) tmp directory for tmp files.
33990   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33991   test -n "$tmp" && test -d "$tmp"
33992 }  ||
33994   tmp=./conf$$-$RANDOM
33995   (umask 077 && mkdir "$tmp")
33996 } ||
33998    $as_echo "$as_me: cannot create a temporary directory in ." >&2
33999    { (exit 1); exit 1; }
34002 # Set up the scripts for CONFIG_FILES section.
34003 # No need to generate them if there are no CONFIG_FILES.
34004 # This happens for instance with `./config.status config.h'.
34005 if test -n "$CONFIG_FILES"; then
34008 ac_cr='\r'
34009 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34010 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34011   ac_cs_awk_cr='\\r'
34012 else
34013   ac_cs_awk_cr=$ac_cr
34016 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34017 _ACEOF
34021   echo "cat >conf$$subs.awk <<_ACEOF" &&
34022   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34023   echo "_ACEOF"
34024 } >conf$$subs.sh ||
34025   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34026 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34027    { (exit 1); exit 1; }; }
34028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34029 ac_delim='%!_!# '
34030 for ac_last_try in false false false false false :; do
34031   . ./conf$$subs.sh ||
34032     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34033 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34034    { (exit 1); exit 1; }; }
34036   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34037   if test $ac_delim_n = $ac_delim_num; then
34038     break
34039   elif $ac_last_try; then
34040     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34041 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34042    { (exit 1); exit 1; }; }
34043   else
34044     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34045   fi
34046 done
34047 rm -f conf$$subs.sh
34049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34050 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34051 _ACEOF
34052 sed -n '
34054 s/^/S["/; s/!.*/"]=/
34057 s/^[^!]*!//
34058 :repl
34059 t repl
34060 s/'"$ac_delim"'$//
34061 t delim
34062 :nl
34064 s/\(.\{148\}\).*/\1/
34065 t more1
34066 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34069 b repl
34070 :more1
34071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34074 s/.\{148\}//
34075 t nl
34076 :delim
34078 s/\(.\{148\}\).*/\1/
34079 t more2
34080 s/["\\]/\\&/g; s/^/"/; s/$/"/
34083 :more2
34084 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34087 s/.\{148\}//
34088 t delim
34089 ' <conf$$subs.awk | sed '
34090 /^[^""]/{
34091   N
34092   s/\n//
34094 ' >>$CONFIG_STATUS || ac_write_fail=1
34095 rm -f conf$$subs.awk
34096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34097 _ACAWK
34098 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34099   for (key in S) S_is_set[key] = 1
34100   FS = "\a"
34104   line = $ 0
34105   nfields = split(line, field, "@")
34106   substed = 0
34107   len = length(field[1])
34108   for (i = 2; i < nfields; i++) {
34109     key = field[i]
34110     keylen = length(key)
34111     if (S_is_set[key]) {
34112       value = S[key]
34113       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34114       len += length(value) + length(field[++i])
34115       substed = 1
34116     } else
34117       len += 1 + keylen
34118   }
34120   print line
34123 _ACAWK
34124 _ACEOF
34125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34126 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34127   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34128 else
34129   cat
34130 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34131   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
34132 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
34133    { (exit 1); exit 1; }; }
34134 _ACEOF
34136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34138 # trailing colons and then remove the whole line if VPATH becomes empty
34139 # (actually we leave an empty line to preserve line numbers).
34140 if test "x$srcdir" = x.; then
34141   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34142 s/:*\$(srcdir):*/:/
34143 s/:*\${srcdir}:*/:/
34144 s/:*@srcdir@:*/:/
34145 s/^\([^=]*=[     ]*\):*/\1/
34146 s/:*$//
34147 s/^[^=]*=[       ]*$//
34151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34152 fi # test -n "$CONFIG_FILES"
34154 # Set up the scripts for CONFIG_HEADERS section.
34155 # No need to generate them if there are no CONFIG_HEADERS.
34156 # This happens for instance with `./config.status Makefile'.
34157 if test -n "$CONFIG_HEADERS"; then
34158 cat >"$tmp/defines.awk" <<\_ACAWK ||
34159 BEGIN {
34160 _ACEOF
34162 # Transform confdefs.h into an awk script `defines.awk', embedded as
34163 # here-document in config.status, that substitutes the proper values into
34164 # config.h.in to produce config.h.
34166 # Create a delimiter string that does not exist in confdefs.h, to ease
34167 # handling of long lines.
34168 ac_delim='%!_!# '
34169 for ac_last_try in false false :; do
34170   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34171   if test -z "$ac_t"; then
34172     break
34173   elif $ac_last_try; then
34174     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
34175 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
34176    { (exit 1); exit 1; }; }
34177   else
34178     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34179   fi
34180 done
34182 # For the awk script, D is an array of macro values keyed by name,
34183 # likewise P contains macro parameters if any.  Preserve backslash
34184 # newline sequences.
34186 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34187 sed -n '
34188 s/.\{148\}/&'"$ac_delim"'/g
34189 t rset
34190 :rset
34191 s/^[     ]*#[    ]*define[       ][      ]*/ /
34192 t def
34194 :def
34195 s/\\$//
34196 t bsnl
34197 s/["\\]/\\&/g
34198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34199 D["\1"]=" \3"/p
34200 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
34202 :bsnl
34203 s/["\\]/\\&/g
34204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34205 D["\1"]=" \3\\\\\\n"\\/p
34206 t cont
34207 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34208 t cont
34210 :cont
34212 s/.\{148\}/&'"$ac_delim"'/g
34213 t clear
34214 :clear
34215 s/\\$//
34216 t bsnlc
34217 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34219 :bsnlc
34220 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34221 b cont
34222 ' <confdefs.h | sed '
34223 s/'"$ac_delim"'/"\\\
34224 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34227   for (key in D) D_is_set[key] = 1
34228   FS = "\a"
34230 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34231   line = \$ 0
34232   split(line, arg, " ")
34233   if (arg[1] == "#") {
34234     defundef = arg[2]
34235     mac1 = arg[3]
34236   } else {
34237     defundef = substr(arg[1], 2)
34238     mac1 = arg[2]
34239   }
34240   split(mac1, mac2, "(") #)
34241   macro = mac2[1]
34242   prefix = substr(line, 1, index(line, defundef) - 1)
34243   if (D_is_set[macro]) {
34244     # Preserve the white space surrounding the "#".
34245     print prefix "define", macro P[macro] D[macro]
34246     next
34247   } else {
34248     # Replace #undef with comments.  This is necessary, for example,
34249     # in the case of _POSIX_SOURCE, which is predefined and required
34250     # on some systems where configure will not decide to define it.
34251     if (defundef == "undef") {
34252       print "/*", prefix defundef, macro, "*/"
34253       next
34254     }
34255   }
34257 { print }
34258 _ACAWK
34259 _ACEOF
34260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34261   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
34262 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
34263    { (exit 1); exit 1; }; }
34264 fi # test -n "$CONFIG_HEADERS"
34267 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34268 shift
34269 for ac_tag
34271   case $ac_tag in
34272   :[FHLC]) ac_mode=$ac_tag; continue;;
34273   esac
34274   case $ac_mode$ac_tag in
34275   :[FHL]*:*);;
34276   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
34277 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
34278    { (exit 1); exit 1; }; };;
34279   :[FH]-) ac_tag=-:-;;
34280   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34281   esac
34282   ac_save_IFS=$IFS
34283   IFS=:
34284   set x $ac_tag
34285   IFS=$ac_save_IFS
34286   shift
34287   ac_file=$1
34288   shift
34290   case $ac_mode in
34291   :L) ac_source=$1;;
34292   :[FH])
34293     ac_file_inputs=
34294     for ac_f
34295     do
34296       case $ac_f in
34297       -) ac_f="$tmp/stdin";;
34298       *) # Look for the file first in the build tree, then in the source tree
34299          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34300          # because $ac_f cannot contain `:'.
34301          test -f "$ac_f" ||
34302            case $ac_f in
34303            [\\/$]*) false;;
34304            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34305            esac ||
34306            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34307 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34308    { (exit 1); exit 1; }; };;
34309       esac
34310       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34311       ac_file_inputs="$ac_file_inputs '$ac_f'"
34312     done
34314     # Let's still pretend it is `configure' which instantiates (i.e., don't
34315     # use $as_me), people would be surprised to read:
34316     #    /* config.h.  Generated by config.status.  */
34317     configure_input='Generated from '`
34318           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34319         `' by configure.'
34320     if test x"$ac_file" != x-; then
34321       configure_input="$ac_file.  $configure_input"
34322       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
34323 $as_echo "$as_me: creating $ac_file" >&6;}
34324     fi
34325     # Neutralize special characters interpreted by sed in replacement strings.
34326     case $configure_input in #(
34327     *\&* | *\|* | *\\* )
34328        ac_sed_conf_input=`$as_echo "$configure_input" |
34329        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34330     *) ac_sed_conf_input=$configure_input;;
34331     esac
34333     case $ac_tag in
34334     *:-:* | *:-) cat >"$tmp/stdin" \
34335       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34336 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34337    { (exit 1); exit 1; }; } ;;
34338     esac
34339     ;;
34340   esac
34342   ac_dir=`$as_dirname -- "$ac_file" ||
34343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34344          X"$ac_file" : 'X\(//\)[^/]' \| \
34345          X"$ac_file" : 'X\(//\)$' \| \
34346          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34347 $as_echo X"$ac_file" |
34348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34349             s//\1/
34350             q
34351           }
34352           /^X\(\/\/\)[^/].*/{
34353             s//\1/
34354             q
34355           }
34356           /^X\(\/\/\)$/{
34357             s//\1/
34358             q
34359           }
34360           /^X\(\/\).*/{
34361             s//\1/
34362             q
34363           }
34364           s/.*/./; q'`
34365   { as_dir="$ac_dir"
34366   case $as_dir in #(
34367   -*) as_dir=./$as_dir;;
34368   esac
34369   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34370     as_dirs=
34371     while :; do
34372       case $as_dir in #(
34373       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34374       *) as_qdir=$as_dir;;
34375       esac
34376       as_dirs="'$as_qdir' $as_dirs"
34377       as_dir=`$as_dirname -- "$as_dir" ||
34378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34379          X"$as_dir" : 'X\(//\)[^/]' \| \
34380          X"$as_dir" : 'X\(//\)$' \| \
34381          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34382 $as_echo X"$as_dir" |
34383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34384             s//\1/
34385             q
34386           }
34387           /^X\(\/\/\)[^/].*/{
34388             s//\1/
34389             q
34390           }
34391           /^X\(\/\/\)$/{
34392             s//\1/
34393             q
34394           }
34395           /^X\(\/\).*/{
34396             s//\1/
34397             q
34398           }
34399           s/.*/./; q'`
34400       test -d "$as_dir" && break
34401     done
34402     test -z "$as_dirs" || eval "mkdir $as_dirs"
34403   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34404 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34405    { (exit 1); exit 1; }; }; }
34406   ac_builddir=.
34408 case "$ac_dir" in
34409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34411   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34412   # A ".." for each directory in $ac_dir_suffix.
34413   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34414   case $ac_top_builddir_sub in
34415   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34416   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34417   esac ;;
34418 esac
34419 ac_abs_top_builddir=$ac_pwd
34420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34421 # for backward compatibility:
34422 ac_top_builddir=$ac_top_build_prefix
34424 case $srcdir in
34425   .)  # We are building in place.
34426     ac_srcdir=.
34427     ac_top_srcdir=$ac_top_builddir_sub
34428     ac_abs_top_srcdir=$ac_pwd ;;
34429   [\\/]* | ?:[\\/]* )  # Absolute name.
34430     ac_srcdir=$srcdir$ac_dir_suffix;
34431     ac_top_srcdir=$srcdir
34432     ac_abs_top_srcdir=$srcdir ;;
34433   *) # Relative name.
34434     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34435     ac_top_srcdir=$ac_top_build_prefix$srcdir
34436     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34437 esac
34438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34441   case $ac_mode in
34442   :F)
34443   #
34444   # CONFIG_FILE
34445   #
34447   case $INSTALL in
34448   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34449   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34450   esac
34451   ac_MKDIR_P=$MKDIR_P
34452   case $MKDIR_P in
34453   [\\/$]* | ?:[\\/]* ) ;;
34454   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34455   esac
34456 _ACEOF
34458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34459 # If the template does not know about datarootdir, expand it.
34460 # FIXME: This hack should be removed a few years after 2.60.
34461 ac_datarootdir_hack=; ac_datarootdir_seen=
34463 ac_sed_dataroot='
34464 /datarootdir/ {
34465   p
34466   q
34468 /@datadir@/p
34469 /@docdir@/p
34470 /@infodir@/p
34471 /@localedir@/p
34472 /@mandir@/p
34474 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34475 *datarootdir*) ac_datarootdir_seen=yes;;
34476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34477   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34478 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34479 _ACEOF
34480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34481   ac_datarootdir_hack='
34482   s&@datadir@&$datadir&g
34483   s&@docdir@&$docdir&g
34484   s&@infodir@&$infodir&g
34485   s&@localedir@&$localedir&g
34486   s&@mandir@&$mandir&g
34487     s&\\\${datarootdir}&$datarootdir&g' ;;
34488 esac
34489 _ACEOF
34491 # Neutralize VPATH when `$srcdir' = `.'.
34492 # Shell code in configure.ac might set extrasub.
34493 # FIXME: do we really want to maintain this feature?
34494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34495 ac_sed_extra="$ac_vpsub
34496 $extrasub
34497 _ACEOF
34498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34501 s|@configure_input@|$ac_sed_conf_input|;t t
34502 s&@top_builddir@&$ac_top_builddir_sub&;t t
34503 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34504 s&@srcdir@&$ac_srcdir&;t t
34505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34506 s&@top_srcdir@&$ac_top_srcdir&;t t
34507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34508 s&@builddir@&$ac_builddir&;t t
34509 s&@abs_builddir@&$ac_abs_builddir&;t t
34510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34511 s&@INSTALL@&$ac_INSTALL&;t t
34512 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34513 $ac_datarootdir_hack
34515 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34516   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34517 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34518    { (exit 1); exit 1; }; }
34520 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34521   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34522   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34523   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34524 which seems to be undefined.  Please make sure it is defined." >&5
34525 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34526 which seems to be undefined.  Please make sure it is defined." >&2;}
34528   rm -f "$tmp/stdin"
34529   case $ac_file in
34530   -) cat "$tmp/out" && rm -f "$tmp/out";;
34531   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34532   esac \
34533   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34534 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34535    { (exit 1); exit 1; }; }
34536  ;;
34537   :H)
34538   #
34539   # CONFIG_HEADER
34540   #
34541   if test x"$ac_file" != x-; then
34542     {
34543       $as_echo "/* $configure_input  */" \
34544       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34545     } >"$tmp/config.h" \
34546       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34547 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34548    { (exit 1); exit 1; }; }
34549     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34550       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34551 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34552     else
34553       rm -f "$ac_file"
34554       mv "$tmp/config.h" "$ac_file" \
34555         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34556 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34557    { (exit 1); exit 1; }; }
34558     fi
34559   else
34560     $as_echo "/* $configure_input  */" \
34561       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34562       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
34563 $as_echo "$as_me: error: could not create -" >&2;}
34564    { (exit 1); exit 1; }; }
34565   fi
34566 # Compute "$ac_file"'s index in $config_headers.
34567 _am_arg="$ac_file"
34568 _am_stamp_count=1
34569 for _am_header in $config_headers :; do
34570   case $_am_header in
34571     $_am_arg | $_am_arg:* )
34572       break ;;
34573     * )
34574       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34575   esac
34576 done
34577 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34578 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34579          X"$_am_arg" : 'X\(//\)[^/]' \| \
34580          X"$_am_arg" : 'X\(//\)$' \| \
34581          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34582 $as_echo X"$_am_arg" |
34583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34584             s//\1/
34585             q
34586           }
34587           /^X\(\/\/\)[^/].*/{
34588             s//\1/
34589             q
34590           }
34591           /^X\(\/\/\)$/{
34592             s//\1/
34593             q
34594           }
34595           /^X\(\/\).*/{
34596             s//\1/
34597             q
34598           }
34599           s/.*/./; q'`/stamp-h$_am_stamp_count
34600  ;;
34602   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
34603 $as_echo "$as_me: executing $ac_file commands" >&6;}
34604  ;;
34605   esac
34608   case $ac_file$ac_mode in
34609     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34610   # Autoconf 2.62 quotes --file arguments for eval, but not when files
34611   # are listed without --file.  Let's play safe and only enable the eval
34612   # if we detect the quoting.
34613   case $CONFIG_FILES in
34614   *\'*) eval set x "$CONFIG_FILES" ;;
34615   *)   set x $CONFIG_FILES ;;
34616   esac
34617   shift
34618   for mf
34619   do
34620     # Strip MF so we end up with the name of the file.
34621     mf=`echo "$mf" | sed -e 's/:.*$//'`
34622     # Check whether this is an Automake generated Makefile or not.
34623     # We used to match only the files named `Makefile.in', but
34624     # some people rename them; so instead we look at the file content.
34625     # Grep'ing the first line is not enough: some people post-process
34626     # each Makefile.in and add a new line on top of each file to say so.
34627     # Grep'ing the whole file is not good either: AIX grep has a line
34628     # limit of 2048, but all sed's we know have understand at least 4000.
34629     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34630       dirpart=`$as_dirname -- "$mf" ||
34631 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34632          X"$mf" : 'X\(//\)[^/]' \| \
34633          X"$mf" : 'X\(//\)$' \| \
34634          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34635 $as_echo X"$mf" |
34636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34637             s//\1/
34638             q
34639           }
34640           /^X\(\/\/\)[^/].*/{
34641             s//\1/
34642             q
34643           }
34644           /^X\(\/\/\)$/{
34645             s//\1/
34646             q
34647           }
34648           /^X\(\/\).*/{
34649             s//\1/
34650             q
34651           }
34652           s/.*/./; q'`
34653     else
34654       continue
34655     fi
34656     # Extract the definition of DEPDIR, am__include, and am__quote
34657     # from the Makefile without running `make'.
34658     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34659     test -z "$DEPDIR" && continue
34660     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34661     test -z "am__include" && continue
34662     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34663     # When using ansi2knr, U may be empty or an underscore; expand it
34664     U=`sed -n 's/^U = //p' < "$mf"`
34665     # Find all dependency output files, they are included files with
34666     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34667     # simplest approach to changing $(DEPDIR) to its actual value in the
34668     # expansion.
34669     for file in `sed -n "
34670       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34671          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34672       # Make sure the directory exists.
34673       test -f "$dirpart/$file" && continue
34674       fdir=`$as_dirname -- "$file" ||
34675 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34676          X"$file" : 'X\(//\)[^/]' \| \
34677          X"$file" : 'X\(//\)$' \| \
34678          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34679 $as_echo X"$file" |
34680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34681             s//\1/
34682             q
34683           }
34684           /^X\(\/\/\)[^/].*/{
34685             s//\1/
34686             q
34687           }
34688           /^X\(\/\/\)$/{
34689             s//\1/
34690             q
34691           }
34692           /^X\(\/\).*/{
34693             s//\1/
34694             q
34695           }
34696           s/.*/./; q'`
34697       { as_dir=$dirpart/$fdir
34698   case $as_dir in #(
34699   -*) as_dir=./$as_dir;;
34700   esac
34701   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34702     as_dirs=
34703     while :; do
34704       case $as_dir in #(
34705       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34706       *) as_qdir=$as_dir;;
34707       esac
34708       as_dirs="'$as_qdir' $as_dirs"
34709       as_dir=`$as_dirname -- "$as_dir" ||
34710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34711          X"$as_dir" : 'X\(//\)[^/]' \| \
34712          X"$as_dir" : 'X\(//\)$' \| \
34713          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34714 $as_echo X"$as_dir" |
34715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34716             s//\1/
34717             q
34718           }
34719           /^X\(\/\/\)[^/].*/{
34720             s//\1/
34721             q
34722           }
34723           /^X\(\/\/\)$/{
34724             s//\1/
34725             q
34726           }
34727           /^X\(\/\).*/{
34728             s//\1/
34729             q
34730           }
34731           s/.*/./; q'`
34732       test -d "$as_dir" && break
34733     done
34734     test -z "$as_dirs" || eval "mkdir $as_dirs"
34735   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34736 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34737    { (exit 1); exit 1; }; }; }
34738       # echo "creating $dirpart/$file"
34739       echo '# dummy' > "$dirpart/$file"
34740     done
34741   done
34743  ;;
34744     "libtool":C)
34746     # See if we are running on zsh, and set the options which allow our
34747     # commands through without removal of \ escapes.
34748     if test -n "${ZSH_VERSION+set}" ; then
34749       setopt NO_GLOB_SUBST
34750     fi
34752     cfgfile="${ofile}T"
34753     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34754     $RM "$cfgfile"
34756     cat <<_LT_EOF >> "$cfgfile"
34757 #! $SHELL
34759 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34760 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34762 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34764 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34765 #                 2006, 2007, 2008 Free Software Foundation, Inc.
34766 #   Written by Gordon Matzigkeit, 1996
34768 #   This file is part of GNU Libtool.
34770 # GNU Libtool is free software; you can redistribute it and/or
34771 # modify it under the terms of the GNU General Public License as
34772 # published by the Free Software Foundation; either version 2 of
34773 # the License, or (at your option) any later version.
34775 # As a special exception to the GNU General Public License,
34776 # if you distribute this file as part of a program or library that
34777 # is built using GNU Libtool, you may include this file under the
34778 # same distribution terms that you use for the rest of that program.
34780 # GNU Libtool is distributed in the hope that it will be useful,
34781 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34782 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34783 # GNU General Public License for more details.
34785 # You should have received a copy of the GNU General Public License
34786 # along with GNU Libtool; see the file COPYING.  If not, a copy
34787 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34788 # obtained by writing to the Free Software Foundation, Inc.,
34789 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34792 # The names of the tagged configurations supported by this script.
34793 available_tags=""
34795 # ### BEGIN LIBTOOL CONFIG
34797 # Which release of libtool.m4 was used?
34798 macro_version=$macro_version
34799 macro_revision=$macro_revision
34801 # Whether or not to build shared libraries.
34802 build_libtool_libs=$enable_shared
34804 # Whether or not to build static libraries.
34805 build_old_libs=$enable_static
34807 # What type of objects to build.
34808 pic_mode=$pic_mode
34810 # Whether or not to optimize for fast installation.
34811 fast_install=$enable_fast_install
34813 # The host system.
34814 host_alias=$host_alias
34815 host=$host
34816 host_os=$host_os
34818 # The build system.
34819 build_alias=$build_alias
34820 build=$build
34821 build_os=$build_os
34823 # A sed program that does not truncate output.
34824 SED=$lt_SED
34826 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34827 Xsed="\$SED -e 1s/^X//"
34829 # A grep program that handles long lines.
34830 GREP=$lt_GREP
34832 # An ERE matcher.
34833 EGREP=$lt_EGREP
34835 # A literal string matcher.
34836 FGREP=$lt_FGREP
34838 # A BSD- or MS-compatible name lister.
34839 NM=$lt_NM
34841 # Whether we need soft or hard links.
34842 LN_S=$lt_LN_S
34844 # What is the maximum length of a command?
34845 max_cmd_len=$max_cmd_len
34847 # Object file suffix (normally "o").
34848 objext=$ac_objext
34850 # Executable file suffix (normally "").
34851 exeext=$exeext
34853 # whether the shell understands "unset".
34854 lt_unset=$lt_unset
34856 # turn spaces into newlines.
34857 SP2NL=$lt_lt_SP2NL
34859 # turn newlines into spaces.
34860 NL2SP=$lt_lt_NL2SP
34862 # How to create reloadable object files.
34863 reload_flag=$lt_reload_flag
34864 reload_cmds=$lt_reload_cmds
34866 # An object symbol dumper.
34867 OBJDUMP=$lt_OBJDUMP
34869 # Method to check whether dependent libraries are shared objects.
34870 deplibs_check_method=$lt_deplibs_check_method
34872 # Command to use when deplibs_check_method == "file_magic".
34873 file_magic_cmd=$lt_file_magic_cmd
34875 # The archiver.
34876 AR=$lt_AR
34877 AR_FLAGS=$lt_AR_FLAGS
34879 # A symbol stripping program.
34880 STRIP=$lt_STRIP
34882 # Commands used to install an old-style archive.
34883 RANLIB=$lt_RANLIB
34884 old_postinstall_cmds=$lt_old_postinstall_cmds
34885 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34887 # A C compiler.
34888 LTCC=$lt_CC
34890 # LTCC compiler flags.
34891 LTCFLAGS=$lt_CFLAGS
34893 # Take the output of nm and produce a listing of raw symbols and C names.
34894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34896 # Transform the output of nm in a proper C declaration.
34897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34899 # Transform the output of nm in a C name address pair.
34900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34902 # Transform the output of nm in a C name address pair when lib prefix is needed.
34903 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34905 # The name of the directory that contains temporary libtool files.
34906 objdir=$objdir
34908 # Shell to use when invoking shell scripts.
34909 SHELL=$lt_SHELL
34911 # An echo program that does not interpret backslashes.
34912 ECHO=$lt_ECHO
34914 # Used to examine libraries when file_magic_cmd begins with "file".
34915 MAGIC_CMD=$MAGIC_CMD
34917 # Must we lock files when doing compilation?
34918 need_locks=$lt_need_locks
34920 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34921 DSYMUTIL=$lt_DSYMUTIL
34923 # Tool to change global to local symbols on Mac OS X.
34924 NMEDIT=$lt_NMEDIT
34926 # Tool to manipulate fat objects and archives on Mac OS X.
34927 LIPO=$lt_LIPO
34929 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34930 OTOOL=$lt_OTOOL
34932 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34933 OTOOL64=$lt_OTOOL64
34935 # Old archive suffix (normally "a").
34936 libext=$libext
34938 # Shared library suffix (normally ".so").
34939 shrext_cmds=$lt_shrext_cmds
34941 # The commands to extract the exported symbol list from a shared archive.
34942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34944 # Variables whose values should be saved in libtool wrapper scripts and
34945 # restored at link time.
34946 variables_saved_for_relink=$lt_variables_saved_for_relink
34948 # Do we need the "lib" prefix for modules?
34949 need_lib_prefix=$need_lib_prefix
34951 # Do we need a version for libraries?
34952 need_version=$need_version
34954 # Library versioning type.
34955 version_type=$version_type
34957 # Shared library runtime path variable.
34958 runpath_var=$runpath_var
34960 # Shared library path variable.
34961 shlibpath_var=$shlibpath_var
34963 # Is shlibpath searched before the hard-coded library search path?
34964 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34966 # Format of library name prefix.
34967 libname_spec=$lt_libname_spec
34969 # List of archive names.  First name is the real one, the rest are links.
34970 # The last name is the one that the linker finds with -lNAME
34971 library_names_spec=$lt_library_names_spec
34973 # The coded name of the library, if different from the real name.
34974 soname_spec=$lt_soname_spec
34976 # Command to use after installation of a shared archive.
34977 postinstall_cmds=$lt_postinstall_cmds
34979 # Command to use after uninstallation of a shared archive.
34980 postuninstall_cmds=$lt_postuninstall_cmds
34982 # Commands used to finish a libtool library installation in a directory.
34983 finish_cmds=$lt_finish_cmds
34985 # As "finish_cmds", except a single script fragment to be evaled but
34986 # not shown.
34987 finish_eval=$lt_finish_eval
34989 # Whether we should hardcode library paths into libraries.
34990 hardcode_into_libs=$hardcode_into_libs
34992 # Compile-time system search path for libraries.
34993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34995 # Run-time system search path for libraries.
34996 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34998 # Whether dlopen is supported.
34999 dlopen_support=$enable_dlopen
35001 # Whether dlopen of programs is supported.
35002 dlopen_self=$enable_dlopen_self
35004 # Whether dlopen of statically linked programs is supported.
35005 dlopen_self_static=$enable_dlopen_self_static
35007 # Commands to strip libraries.
35008 old_striplib=$lt_old_striplib
35009 striplib=$lt_striplib
35012 # The linker used to build libraries.
35013 LD=$lt_LD
35015 # Commands used to build an old-style archive.
35016 old_archive_cmds=$lt_old_archive_cmds
35018 # A language specific compiler.
35019 CC=$lt_compiler
35021 # Is the compiler the GNU compiler?
35022 with_gcc=$GCC
35024 # Compiler flag to turn off builtin functions.
35025 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35027 # How to pass a linker flag through the compiler.
35028 wl=$lt_lt_prog_compiler_wl
35030 # Additional compiler flags for building library objects.
35031 pic_flag=$lt_lt_prog_compiler_pic
35033 # Compiler flag to prevent dynamic linking.
35034 link_static_flag=$lt_lt_prog_compiler_static
35036 # Does compiler simultaneously support -c and -o options?
35037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35039 # Whether or not to add -lc for building shared libraries.
35040 build_libtool_need_lc=$archive_cmds_need_lc
35042 # Whether or not to disallow shared libs when runtime libs are static.
35043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35045 # Compiler flag to allow reflexive dlopens.
35046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35048 # Compiler flag to generate shared objects directly from archives.
35049 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35051 # Whether the compiler copes with passing no objects directly.
35052 compiler_needs_object=$lt_compiler_needs_object
35054 # Create an old-style archive from a shared archive.
35055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35057 # Create a temporary old-style archive to link instead of a shared archive.
35058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35060 # Commands used to build a shared archive.
35061 archive_cmds=$lt_archive_cmds
35062 archive_expsym_cmds=$lt_archive_expsym_cmds
35064 # Commands used to build a loadable module if different from building
35065 # a shared archive.
35066 module_cmds=$lt_module_cmds
35067 module_expsym_cmds=$lt_module_expsym_cmds
35069 # Whether we are building with GNU ld or not.
35070 with_gnu_ld=$lt_with_gnu_ld
35072 # Flag that allows shared libraries with undefined symbols to be built.
35073 allow_undefined_flag=$lt_allow_undefined_flag
35075 # Flag that enforces no undefined symbols.
35076 no_undefined_flag=$lt_no_undefined_flag
35078 # Flag to hardcode \$libdir into a binary during linking.
35079 # This must work even if \$libdir does not exist
35080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35082 # If ld is used when linking, flag to hardcode \$libdir into a binary
35083 # during linking.  This must work even if \$libdir does not exist.
35084 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35086 # Whether we need a single "-rpath" flag with a separated argument.
35087 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35090 # DIR into the resulting binary.
35091 hardcode_direct=$hardcode_direct
35093 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35094 # DIR into the resulting binary and the resulting library dependency is
35095 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35096 # library is relocated.
35097 hardcode_direct_absolute=$hardcode_direct_absolute
35099 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35100 # into the resulting binary.
35101 hardcode_minus_L=$hardcode_minus_L
35103 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35104 # into the resulting binary.
35105 hardcode_shlibpath_var=$hardcode_shlibpath_var
35107 # Set to "yes" if building a shared library automatically hardcodes DIR
35108 # into the library and all subsequent libraries and executables linked
35109 # against it.
35110 hardcode_automatic=$hardcode_automatic
35112 # Set to yes if linker adds runtime paths of dependent libraries
35113 # to runtime path list.
35114 inherit_rpath=$inherit_rpath
35116 # Whether libtool must link a program against all its dependency libraries.
35117 link_all_deplibs=$link_all_deplibs
35119 # Fix the shell variable \$srcfile for the compiler.
35120 fix_srcfile_path=$lt_fix_srcfile_path
35122 # Set to "yes" if exported symbols are required.
35123 always_export_symbols=$always_export_symbols
35125 # The commands to list exported symbols.
35126 export_symbols_cmds=$lt_export_symbols_cmds
35128 # Symbols that should not be listed in the preloaded symbols.
35129 exclude_expsyms=$lt_exclude_expsyms
35131 # Symbols that must always be exported.
35132 include_expsyms=$lt_include_expsyms
35134 # Commands necessary for linking programs (against libraries) with templates.
35135 prelink_cmds=$lt_prelink_cmds
35137 # Specify filename containing input files.
35138 file_list_spec=$lt_file_list_spec
35140 # How to hardcode a shared library path into an executable.
35141 hardcode_action=$hardcode_action
35143 # ### END LIBTOOL CONFIG
35145 _LT_EOF
35147   case $host_os in
35148   aix3*)
35149     cat <<\_LT_EOF >> "$cfgfile"
35150 # AIX sometimes has problems with the GCC collect2 program.  For some
35151 # reason, if we set the COLLECT_NAMES environment variable, the problems
35152 # vanish in a puff of smoke.
35153 if test "X${COLLECT_NAMES+set}" != Xset; then
35154   COLLECT_NAMES=
35155   export COLLECT_NAMES
35157 _LT_EOF
35158     ;;
35159   esac
35162 ltmain="$ac_aux_dir/ltmain.sh"
35165   # We use sed instead of cat because bash on DJGPP gets confused if
35166   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35167   # text mode, it properly converts lines to CR/LF.  This bash problem
35168   # is reportedly fixed, but why not run on old versions too?
35169   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35170     || (rm -f "$cfgfile"; exit 1)
35172   case $xsi_shell in
35173   yes)
35174     cat << \_LT_EOF >> "$cfgfile"
35176 # func_dirname file append nondir_replacement
35177 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35178 # otherwise set result to NONDIR_REPLACEMENT.
35179 func_dirname ()
35181   case ${1} in
35182     */*) func_dirname_result="${1%/*}${2}" ;;
35183     *  ) func_dirname_result="${3}" ;;
35184   esac
35187 # func_basename file
35188 func_basename ()
35190   func_basename_result="${1##*/}"
35193 # func_dirname_and_basename file append nondir_replacement
35194 # perform func_basename and func_dirname in a single function
35195 # call:
35196 #   dirname:  Compute the dirname of FILE.  If nonempty,
35197 #             add APPEND to the result, otherwise set result
35198 #             to NONDIR_REPLACEMENT.
35199 #             value returned in "$func_dirname_result"
35200 #   basename: Compute filename of FILE.
35201 #             value retuned in "$func_basename_result"
35202 # Implementation must be kept synchronized with func_dirname
35203 # and func_basename. For efficiency, we do not delegate to
35204 # those functions but instead duplicate the functionality here.
35205 func_dirname_and_basename ()
35207   case ${1} in
35208     */*) func_dirname_result="${1%/*}${2}" ;;
35209     *  ) func_dirname_result="${3}" ;;
35210   esac
35211   func_basename_result="${1##*/}"
35214 # func_stripname prefix suffix name
35215 # strip PREFIX and SUFFIX off of NAME.
35216 # PREFIX and SUFFIX must not contain globbing or regex special
35217 # characters, hashes, percent signs, but SUFFIX may contain a leading
35218 # dot (in which case that matches only a dot).
35219 func_stripname ()
35221   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35222   # positional parameters, so assign one to ordinary parameter first.
35223   func_stripname_result=${3}
35224   func_stripname_result=${func_stripname_result#"${1}"}
35225   func_stripname_result=${func_stripname_result%"${2}"}
35228 # func_opt_split
35229 func_opt_split ()
35231   func_opt_split_opt=${1%%=*}
35232   func_opt_split_arg=${1#*=}
35235 # func_lo2o object
35236 func_lo2o ()
35238   case ${1} in
35239     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35240     *)    func_lo2o_result=${1} ;;
35241   esac
35244 # func_xform libobj-or-source
35245 func_xform ()
35247   func_xform_result=${1%.*}.lo
35250 # func_arith arithmetic-term...
35251 func_arith ()
35253   func_arith_result=$(( $* ))
35256 # func_len string
35257 # STRING may not start with a hyphen.
35258 func_len ()
35260   func_len_result=${#1}
35263 _LT_EOF
35264     ;;
35265   *) # Bourne compatible functions.
35266     cat << \_LT_EOF >> "$cfgfile"
35268 # func_dirname file append nondir_replacement
35269 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35270 # otherwise set result to NONDIR_REPLACEMENT.
35271 func_dirname ()
35273   # Extract subdirectory from the argument.
35274   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35275   if test "X$func_dirname_result" = "X${1}"; then
35276     func_dirname_result="${3}"
35277   else
35278     func_dirname_result="$func_dirname_result${2}"
35279   fi
35282 # func_basename file
35283 func_basename ()
35285   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35289 # func_stripname prefix suffix name
35290 # strip PREFIX and SUFFIX off of NAME.
35291 # PREFIX and SUFFIX must not contain globbing or regex special
35292 # characters, hashes, percent signs, but SUFFIX may contain a leading
35293 # dot (in which case that matches only a dot).
35294 # func_strip_suffix prefix name
35295 func_stripname ()
35297   case ${2} in
35298     .*) func_stripname_result=`$ECHO "X${3}" \
35299            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35300     *)  func_stripname_result=`$ECHO "X${3}" \
35301            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35302   esac
35305 # sed scripts:
35306 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35307 my_sed_long_arg='1s/^-[^=]*=//'
35309 # func_opt_split
35310 func_opt_split ()
35312   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35313   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35316 # func_lo2o object
35317 func_lo2o ()
35319   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35322 # func_xform libobj-or-source
35323 func_xform ()
35325   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35328 # func_arith arithmetic-term...
35329 func_arith ()
35331   func_arith_result=`expr "$@"`
35334 # func_len string
35335 # STRING may not start with a hyphen.
35336 func_len ()
35338   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35341 _LT_EOF
35342 esac
35344 case $lt_shell_append in
35345   yes)
35346     cat << \_LT_EOF >> "$cfgfile"
35348 # func_append var value
35349 # Append VALUE to the end of shell variable VAR.
35350 func_append ()
35352   eval "$1+=\$2"
35354 _LT_EOF
35355     ;;
35356   *)
35357     cat << \_LT_EOF >> "$cfgfile"
35359 # func_append var value
35360 # Append VALUE to the end of shell variable VAR.
35361 func_append ()
35363   eval "$1=\$$1\$2"
35366 _LT_EOF
35367     ;;
35368   esac
35371   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35372     || (rm -f "$cfgfile"; exit 1)
35374   mv -f "$cfgfile" "$ofile" ||
35375     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35376   chmod +x "$ofile"
35378  ;;
35379     "default-1":C)
35380     for ac_file in $CONFIG_FILES; do
35381       # Support "outfile[:infile[:infile...]]"
35382       case "$ac_file" in
35383         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35384       esac
35385       # PO directories have a Makefile.in generated from Makefile.in.in.
35386       case "$ac_file" in */Makefile.in)
35387         # Adjust a relative srcdir.
35388         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35389         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35390         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35391         # In autoconf-2.13 it is called $ac_given_srcdir.
35392         # In autoconf-2.50 it is called $srcdir.
35393         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35394         case "$ac_given_srcdir" in
35395           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35396           /*) top_srcdir="$ac_given_srcdir" ;;
35397           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35398         esac
35399         # Treat a directory as a PO directory if and only if it has a
35400         # POTFILES.in file. This allows packages to have multiple PO
35401         # directories under different names or in different locations.
35402         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35403           rm -f "$ac_dir/POTFILES"
35404           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35405           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35406           POMAKEFILEDEPS="POTFILES.in"
35407           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35408           # on $ac_dir but don't depend on user-specified configuration
35409           # parameters.
35410           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35411             # The LINGUAS file contains the set of available languages.
35412             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35413               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35414             fi
35415             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35416             # Hide the ALL_LINGUAS assigment from automake.
35417             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35418             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35419           else
35420             # The set of available languages was given in configure.in.
35421             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35422           fi
35423           # Compute POFILES
35424           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35425           # Compute UPDATEPOFILES
35426           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35427           # Compute DUMMYPOFILES
35428           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35429           # Compute GMOFILES
35430           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35431           case "$ac_given_srcdir" in
35432             .) srcdirpre= ;;
35433             *) srcdirpre='$(srcdir)/' ;;
35434           esac
35435           POFILES=
35436           UPDATEPOFILES=
35437           DUMMYPOFILES=
35438           GMOFILES=
35439           for lang in $ALL_LINGUAS; do
35440             POFILES="$POFILES $srcdirpre$lang.po"
35441             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35442             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35443             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35444           done
35445           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35446           # environment variable.
35447           INST_LINGUAS=
35448           if test -n "$ALL_LINGUAS"; then
35449             for presentlang in $ALL_LINGUAS; do
35450               useit=no
35451               if test "%UNSET%" != "$LINGUAS"; then
35452                 desiredlanguages="$LINGUAS"
35453               else
35454                 desiredlanguages="$ALL_LINGUAS"
35455               fi
35456               for desiredlang in $desiredlanguages; do
35457                 # Use the presentlang catalog if desiredlang is
35458                 #   a. equal to presentlang, or
35459                 #   b. a variant of presentlang (because in this case,
35460                 #      presentlang can be used as a fallback for messages
35461                 #      which are not translated in the desiredlang catalog).
35462                 case "$desiredlang" in
35463                   "$presentlang"*) useit=yes;;
35464                 esac
35465               done
35466               if test $useit = yes; then
35467                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35468               fi
35469             done
35470           fi
35471           CATALOGS=
35472           if test -n "$INST_LINGUAS"; then
35473             for lang in $INST_LINGUAS; do
35474               CATALOGS="$CATALOGS $lang.gmo"
35475             done
35476           fi
35477           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35478           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
35479           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35480             if test -f "$f"; then
35481               case "$f" in
35482                 *.orig | *.bak | *~) ;;
35483                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35484               esac
35485             fi
35486           done
35487         fi
35488         ;;
35489       esac
35490     done ;;
35491     "default":C)  chmod +x examples/*.pl ;;
35493   esac
35494 done # for ac_tag
35497 { (exit 0); exit 0; }
35498 _ACEOF
35499 chmod +x $CONFIG_STATUS
35500 ac_clean_files=$ac_clean_files_save
35502 test $ac_write_fail = 0 ||
35503   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
35504 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
35505    { (exit 1); exit 1; }; }
35507  test -f config.h || ln -s rrd_config.h config.h
35509 # configure is writing to config.log, and then calls config.status.
35510 # config.status does its own redirection, appending to config.log.
35511 # Unfortunately, on DOS this fails, as config.log is still kept open
35512 # by configure, so config.status won't be able to write to it; its
35513 # output is simply discarded.  So we exec the FD to /dev/null,
35514 # effectively closing config.log, so it can be properly (re)opened and
35515 # appended to by config.status.  When coming back to configure, we
35516 # need to make the FD available again.
35517 if test "$no_create" != yes; then
35518   ac_cs_success=:
35519   ac_config_status_args=
35520   test "$silent" = yes &&
35521     ac_config_status_args="$ac_config_status_args --quiet"
35522   exec 5>/dev/null
35523   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35524   exec 5>>config.log
35525   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35526   # would make configure fail if this is the last instruction.
35527   $ac_cs_success || { (exit 1); exit 1; }
35529 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35530   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35531 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35535 { $as_echo "$as_me:$LINENO: checking in" >&5
35536 $as_echo_n "checking in... " >&6; }
35537 { $as_echo "$as_me:$LINENO: result: and out again" >&5
35538 $as_echo "and out again" >&6; }
35540 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
35541 sleep 1
35542 echo $ECHO_N ".$ECHO_C" 1>&6
35543 sleep 1
35544 echo $ECHO_N ".$ECHO_C" 1>&6
35545 sleep 1
35546 echo $ECHO_N ".$ECHO_C" 1>&6
35547 sleep 1
35548 echo $ECHO_N ".$ECHO_C" 1>&6
35549 sleep 1
35550 { $as_echo "$as_me:$LINENO: result:  just kidding ;-)" >&5
35551 $as_echo " just kidding ;-)" >&6; }
35552 echo
35553 echo "----------------------------------------------------------------"
35554 echo "Config is DONE!"
35555 echo
35556 echo "          With MMAP IO: $enable_mmap"
35557 echo "      Build rrd_getopt: $build_getopt"
35558 echo "       Static programs: $staticprogs"
35559 echo "          Perl Modules: $COMP_PERL"
35560 echo "           Perl Binary: $PERL"
35561 echo "          Perl Version: $PERL_VERSION"
35562 echo "          Perl Options: $PERL_MAKE_OPTIONS"
35563 echo "          Ruby Modules: $COMP_RUBY"
35564 echo "           Ruby Binary: $RUBY"
35565 echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
35566 echo "    Build Lua Bindings: $enable_lua"
35567 if test "$enable_lua" = "yes"; then
35568 echo "            Lua Binary: $LUA"
35569 echo "           Lua Version: $lua_version"
35570 echo "     Lua C-modules dir: $LUA_INSTALL_CMOD"
35571 if test "$lua_need_compat51" = "1"; then
35572 echo "   Lua Lua-modules dir: $LUA_INSTALL_LMOD"
35575 echo "    Build Tcl Bindings: $enable_tcl"
35576 echo " Build Python Bindings: $enable_python"
35577 echo "          Build rrdcgi: $enable_rrdcgi"
35578 echo "       Build librrd MT: $enable_pthread"
35579 echo "           Use gettext: $USE_NLS"
35580 echo "           With libDBI: $have_libdbi"
35581 echo
35582 echo "             Libraries: $ALL_LIBS"
35583 echo
35584 echo "Type 'make' to compile the software and use 'make install' to "
35585 echo "install everything to: $prefix."
35586 echo
35587 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
35588 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
35589 echo "place an order."
35590 echo
35591 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
35592 echo "----------------------------------------------------------------"