1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for rrdtool 1.4.7.
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)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
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; }
231 (
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
274 :
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
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
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; }
346 (
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)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
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.
439 }
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
483 }
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`
730 #
731 # Initializations.
732 #
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.4.7'
747 PACKAGE_STRING='rrdtool 1.4.7'
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=/opt/rrdtool-$PACKAGE_VERSION
787 gt_needs=
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 RRDDOCDIR
793 TROFF
794 NROFF
795 COMP_PYTHON
796 PYTHON_INCLUDES
797 pkgpyexecdir
798 pyexecdir
799 pkgpythondir
800 pythondir
801 PYTHON_PLATFORM
802 PYTHON_EXEC_PREFIX
803 PYTHON_PREFIX
804 PYTHON_VERSION
805 PYTHON
806 TCL_INCLUDE_SPEC
807 TCL_PACKAGE_DIR
808 TCL_VERSION
809 TCL_STUB_LIB_SPEC
810 TCL_LD_SEARCH_FLAGS
811 TCL_PACKAGE_PATH
812 TCL_SHLIB_SUFFIX
813 TCL_SHLIB_LD
814 TCL_SHLIB_CFLAGS
815 TCL_PREFIX
816 BUILD_TCL_SITE_FALSE
817 BUILD_TCL_SITE_TRUE
818 BUILD_TCL_FALSE
819 BUILD_TCL_TRUE
820 BUILD_LUA_FALSE
821 BUILD_LUA_TRUE
822 LUA50_FALSE
823 LUA50_TRUE
824 LUA_SITE_LINSTALL_FALSE
825 LUA_SITE_LINSTALL_TRUE
826 LUA_SITE_CINSTALL_FALSE
827 LUA_SITE_CINSTALL_TRUE
828 LUA_NEED_OUR_COMPAT51_FALSE
829 LUA_NEED_OUR_COMPAT51_TRUE
830 LUA_DEFINES
831 LUA_LFLAGS
832 LUA_CFLAGS
833 LUA_INSTALL_LMOD
834 LUA_INSTALL_CMOD
835 COMP_LUA
836 LUA
837 COMP_RUBY
838 RUBY_MAKE_OPTIONS
839 RUBY
840 PERL_VERSION
841 COMP_PERL
842 PERL_MAKE_OPTIONS
843 PERL_CC
844 PERLLDFLAGS
845 PERLLD
846 PERLCCFLAGS
847 PERLCC
848 POD2HTML
849 POD2MAN
850 PERL
851 ALL_LIBS
852 CORE_LIBS
853 PKGCONFIG
854 BUILD_RRDGRAPH_FALSE
855 BUILD_RRDGRAPH_TRUE
856 BUILD_LIBWRAP_FALSE
857 BUILD_LIBWRAP_TRUE
858 BUILD_LIBDBI_FALSE
859 BUILD_LIBDBI_TRUE
860 BUILD_MULTITHREAD_FALSE
861 BUILD_MULTITHREAD_TRUE
862 PTHREAD_CFLAGS
863 PTHREAD_LIBS
864 PTHREAD_CC
865 acx_pthread_config
866 MULTITHREAD_LDFLAGS
867 MULTITHREAD_CFLAGS
868 BUILD_GETOPT_FALSE
869 BUILD_GETOPT_TRUE
870 RRD_GETOPT_LONG
871 POSUB
872 LTLIBINTL
873 LIBINTL
874 INTLLIBS
875 LTLIBICONV
876 LIBICONV
877 INTL_MACOSX_LIBS
878 XGETTEXT_EXTRA_OPTIONS
879 MSGMERGE
880 XGETTEXT_015
881 XGETTEXT
882 GMSGFMT_015
883 MSGFMT_015
884 GMSGFMT
885 MSGFMT
886 GETTEXT_MACRO_VERSION
887 USE_NLS
888 RRD_DEFAULT_FONT
889 WERROR
890 OTOOL64
891 OTOOL
892 LIPO
893 NMEDIT
894 DSYMUTIL
895 lt_ECHO
896 RANLIB
897 AR
898 OBJDUMP
899 LN_S
900 NM
901 ac_ct_DUMPBIN
902 DUMPBIN
903 LD
904 FGREP
905 SED
906 LIBTOOL
907 STATIC_PROGRAMS_FALSE
908 STATIC_PROGRAMS_TRUE
909 BUILD_RRDCGI_FALSE
910 BUILD_RRDCGI_TRUE
911 RRDGRAPH_YLEGEND_ANGLE
912 AM_BACKSLASH
913 AM_DEFAULT_VERBOSITY
914 MAINT
915 MAINTAINER_MODE_FALSE
916 MAINTAINER_MODE_TRUE
917 am__fastdepCC_FALSE
918 am__fastdepCC_TRUE
919 CCDEPMODE
920 AMDEPBACKSLASH
921 AMDEP_FALSE
922 AMDEP_TRUE
923 am__quote
924 am__include
925 DEPDIR
926 am__untar
927 am__tar
928 AMTAR
929 am__leading_dot
930 SET_MAKE
931 AWK
932 mkdir_p
933 MKDIR_P
934 INSTALL_STRIP_PROGRAM
935 STRIP
936 install_sh
937 MAKEINFO
938 AUTOHEADER
939 AUTOMAKE
940 AUTOCONF
941 ACLOCAL
942 VERSION
943 PACKAGE
944 CYGPATH_W
945 am__isrc
946 INSTALL_DATA
947 INSTALL_SCRIPT
948 INSTALL_PROGRAM
949 EGREP
950 GREP
951 CPP
952 OBJEXT
953 EXEEXT
954 ac_ct_CC
955 CPPFLAGS
956 LDFLAGS
957 CFLAGS
958 CC
959 target_os
960 target_vendor
961 target_cpu
962 target
963 host_os
964 host_vendor
965 host_cpu
966 host
967 build_os
968 build_vendor
969 build_cpu
970 build
971 LIBVERS
972 NUMVERS
973 target_alias
974 host_alias
975 build_alias
976 LIBS
977 ECHO_T
978 ECHO_N
979 ECHO_C
980 DEFS
981 mandir
982 localedir
983 libdir
984 psdir
985 pdfdir
986 dvidir
987 htmldir
988 infodir
989 docdir
990 oldincludedir
991 includedir
992 localstatedir
993 sharedstatedir
994 sysconfdir
995 datadir
996 datarootdir
997 libexecdir
998 sbindir
999 bindir
1000 program_transform_name
1001 prefix
1002 exec_prefix
1003 PACKAGE_BUGREPORT
1004 PACKAGE_STRING
1005 PACKAGE_VERSION
1006 PACKAGE_TARNAME
1007 PACKAGE_NAME
1008 PATH_SEPARATOR
1009 SHELL
1010 PERLFLAGS'
1011 ac_subst_files=''
1012 ac_user_opts='
1013 enable_option_checking
1014 enable_dependency_tracking
1015 enable_maintainer_mode
1016 enable_silent_rules
1017 enable_rrdcgi
1018 enable_rrd_graph
1019 with_rrd_default_font
1020 enable_mmap
1021 enable_pthread
1022 enable_static_programs
1023 enable_shared
1024 enable_static
1025 with_pic
1026 enable_fast_install
1027 with_gnu_ld
1028 enable_libtool_lock
1029 enable_nls
1030 enable_rpath
1031 with_libiconv_prefix
1032 with_libintl_prefix
1033 enable_libdbi
1034 enable_libwrap
1035 enable_perl
1036 enable_perl_site_install
1037 with_perl_options
1038 enable_ruby
1039 enable_ruby_site_install
1040 with_ruby_options
1041 enable_lua
1042 enable_lua_site_install
1043 enable_tcl
1044 with_tcllib
1045 enable_tcl_site
1046 enable_python
1047 '
1048 ac_precious_vars='build_alias
1049 host_alias
1050 target_alias
1051 CC
1052 CFLAGS
1053 LDFLAGS
1054 LIBS
1055 CPPFLAGS
1056 CPP
1057 RRDGRAPH_YLEGEND_ANGLE
1058 PERLCC
1059 PERLCCFLAGS
1060 PERLLD
1061 PERLLDFLAGS
1062 NROFF
1063 TROFF
1064 RRDDOCDIR'
1067 # Initialize some variables set by options.
1068 ac_init_help=
1069 ac_init_version=false
1070 ac_unrecognized_opts=
1071 ac_unrecognized_sep=
1072 # The variables have the same names as the options, with
1073 # dashes changed to underlines.
1074 cache_file=/dev/null
1075 exec_prefix=NONE
1076 no_create=
1077 no_recursion=
1078 prefix=NONE
1079 program_prefix=NONE
1080 program_suffix=NONE
1081 program_transform_name=s,x,x,
1082 silent=
1083 site=
1084 srcdir=
1085 verbose=
1086 x_includes=NONE
1087 x_libraries=NONE
1089 # Installation directory options.
1090 # These are left unexpanded so users can "make install exec_prefix=/foo"
1091 # and all the variables that are supposed to be based on exec_prefix
1092 # by default will actually change.
1093 # Use braces instead of parens because sh, perl, etc. also accept them.
1094 # (The list follows the same order as the GNU Coding Standards.)
1095 bindir='${exec_prefix}/bin'
1096 sbindir='${exec_prefix}/sbin'
1097 libexecdir='${exec_prefix}/libexec'
1098 datarootdir='${prefix}/share'
1099 datadir='${datarootdir}'
1100 sysconfdir='${prefix}/etc'
1101 sharedstatedir='${prefix}/com'
1102 localstatedir='${prefix}/var'
1103 includedir='${prefix}/include'
1104 oldincludedir='/usr/include'
1105 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1106 infodir='${datarootdir}/info'
1107 htmldir='${docdir}'
1108 dvidir='${docdir}'
1109 pdfdir='${docdir}'
1110 psdir='${docdir}'
1111 libdir='${exec_prefix}/lib'
1112 localedir='${datarootdir}/locale'
1113 mandir='${datarootdir}/man'
1115 ac_prev=
1116 ac_dashdash=
1117 for ac_option
1118 do
1119 # If the previous option needs an argument, assign it.
1120 if test -n "$ac_prev"; then
1121 eval $ac_prev=\$ac_option
1122 ac_prev=
1123 continue
1124 fi
1126 case $ac_option in
1127 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1128 *) ac_optarg=yes ;;
1129 esac
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1133 case $ac_dashdash$ac_option in
1134 --)
1135 ac_dashdash=yes ;;
1137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138 ac_prev=bindir ;;
1139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140 bindir=$ac_optarg ;;
1142 -build | --build | --buil | --bui | --bu)
1143 ac_prev=build_alias ;;
1144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145 build_alias=$ac_optarg ;;
1147 -cache-file | --cache-file | --cache-fil | --cache-fi \
1148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1149 ac_prev=cache_file ;;
1150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1152 cache_file=$ac_optarg ;;
1154 --config-cache | -C)
1155 cache_file=config.cache ;;
1157 -datadir | --datadir | --datadi | --datad)
1158 ac_prev=datadir ;;
1159 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160 datadir=$ac_optarg ;;
1162 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1163 | --dataroo | --dataro | --datar)
1164 ac_prev=datarootdir ;;
1165 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1166 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1167 datarootdir=$ac_optarg ;;
1169 -disable-* | --disable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1174 { (exit 1); exit 1; }; }
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "enable_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval enable_$ac_useropt=no ;;
1186 -docdir | --docdir | --docdi | --doc | --do)
1187 ac_prev=docdir ;;
1188 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1189 docdir=$ac_optarg ;;
1191 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1192 ac_prev=dvidir ;;
1193 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1194 dvidir=$ac_optarg ;;
1196 -enable-* | --enable-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "enable_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval enable_$ac_useropt=\$ac_optarg ;;
1213 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1214 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1215 | --exec | --exe | --ex)
1216 ac_prev=exec_prefix ;;
1217 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1218 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1219 | --exec=* | --exe=* | --ex=*)
1220 exec_prefix=$ac_optarg ;;
1222 -gas | --gas | --ga | --g)
1223 # Obsolete; use --with-gas.
1224 with_gas=yes ;;
1226 -help | --help | --hel | --he | -h)
1227 ac_init_help=long ;;
1228 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1229 ac_init_help=recursive ;;
1230 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1231 ac_init_help=short ;;
1233 -host | --host | --hos | --ho)
1234 ac_prev=host_alias ;;
1235 -host=* | --host=* | --hos=* | --ho=*)
1236 host_alias=$ac_optarg ;;
1238 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1239 ac_prev=htmldir ;;
1240 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1241 | --ht=*)
1242 htmldir=$ac_optarg ;;
1244 -includedir | --includedir | --includedi | --included | --include \
1245 | --includ | --inclu | --incl | --inc)
1246 ac_prev=includedir ;;
1247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1248 | --includ=* | --inclu=* | --incl=* | --inc=*)
1249 includedir=$ac_optarg ;;
1251 -infodir | --infodir | --infodi | --infod | --info | --inf)
1252 ac_prev=infodir ;;
1253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1254 infodir=$ac_optarg ;;
1256 -libdir | --libdir | --libdi | --libd)
1257 ac_prev=libdir ;;
1258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1259 libdir=$ac_optarg ;;
1261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1262 | --libexe | --libex | --libe)
1263 ac_prev=libexecdir ;;
1264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1265 | --libexe=* | --libex=* | --libe=*)
1266 libexecdir=$ac_optarg ;;
1268 -localedir | --localedir | --localedi | --localed | --locale)
1269 ac_prev=localedir ;;
1270 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1271 localedir=$ac_optarg ;;
1273 -localstatedir | --localstatedir | --localstatedi | --localstated \
1274 | --localstate | --localstat | --localsta | --localst | --locals)
1275 ac_prev=localstatedir ;;
1276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1277 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1278 localstatedir=$ac_optarg ;;
1280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1281 ac_prev=mandir ;;
1282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1283 mandir=$ac_optarg ;;
1285 -nfp | --nfp | --nf)
1286 # Obsolete; use --without-fp.
1287 with_fp=no ;;
1289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1290 | --no-cr | --no-c | -n)
1291 no_create=yes ;;
1293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1295 no_recursion=yes ;;
1297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1299 | --oldin | --oldi | --old | --ol | --o)
1300 ac_prev=oldincludedir ;;
1301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1304 oldincludedir=$ac_optarg ;;
1306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1307 ac_prev=prefix ;;
1308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1309 prefix=$ac_optarg ;;
1311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1312 | --program-pre | --program-pr | --program-p)
1313 ac_prev=program_prefix ;;
1314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1316 program_prefix=$ac_optarg ;;
1318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1319 | --program-suf | --program-su | --program-s)
1320 ac_prev=program_suffix ;;
1321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1323 program_suffix=$ac_optarg ;;
1325 -program-transform-name | --program-transform-name \
1326 | --program-transform-nam | --program-transform-na \
1327 | --program-transform-n | --program-transform- \
1328 | --program-transform | --program-transfor \
1329 | --program-transfo | --program-transf \
1330 | --program-trans | --program-tran \
1331 | --progr-tra | --program-tr | --program-t)
1332 ac_prev=program_transform_name ;;
1333 -program-transform-name=* | --program-transform-name=* \
1334 | --program-transform-nam=* | --program-transform-na=* \
1335 | --program-transform-n=* | --program-transform-=* \
1336 | --program-transform=* | --program-transfor=* \
1337 | --program-transfo=* | --program-transf=* \
1338 | --program-trans=* | --program-tran=* \
1339 | --progr-tra=* | --program-tr=* | --program-t=*)
1340 program_transform_name=$ac_optarg ;;
1342 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1343 ac_prev=pdfdir ;;
1344 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1345 pdfdir=$ac_optarg ;;
1347 -psdir | --psdir | --psdi | --psd | --ps)
1348 ac_prev=psdir ;;
1349 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1350 psdir=$ac_optarg ;;
1352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1353 | -silent | --silent | --silen | --sile | --sil)
1354 silent=yes ;;
1356 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1357 ac_prev=sbindir ;;
1358 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1359 | --sbi=* | --sb=*)
1360 sbindir=$ac_optarg ;;
1362 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1363 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1364 | --sharedst | --shareds | --shared | --share | --shar \
1365 | --sha | --sh)
1366 ac_prev=sharedstatedir ;;
1367 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1368 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1369 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1370 | --sha=* | --sh=*)
1371 sharedstatedir=$ac_optarg ;;
1373 -site | --site | --sit)
1374 ac_prev=site ;;
1375 -site=* | --site=* | --sit=*)
1376 site=$ac_optarg ;;
1378 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1379 ac_prev=srcdir ;;
1380 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1381 srcdir=$ac_optarg ;;
1383 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1384 | --syscon | --sysco | --sysc | --sys | --sy)
1385 ac_prev=sysconfdir ;;
1386 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1387 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1388 sysconfdir=$ac_optarg ;;
1390 -target | --target | --targe | --targ | --tar | --ta | --t)
1391 ac_prev=target_alias ;;
1392 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1393 target_alias=$ac_optarg ;;
1395 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1396 verbose=yes ;;
1398 -version | --version | --versio | --versi | --vers | -V)
1399 ac_init_version=: ;;
1401 -with-* | --with-*)
1402 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1405 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1406 { (exit 1); exit 1; }; }
1407 ac_useropt_orig=$ac_useropt
1408 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1409 case $ac_user_opts in
1410 *"
1411 "with_$ac_useropt"
1412 "*) ;;
1413 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1414 ac_unrecognized_sep=', ';;
1415 esac
1416 eval with_$ac_useropt=\$ac_optarg ;;
1418 -without-* | --without-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1423 { (exit 1); exit 1; }; }
1424 ac_useropt_orig=$ac_useropt
1425 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1427 *"
1428 "with_$ac_useropt"
1429 "*) ;;
1430 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1431 ac_unrecognized_sep=', ';;
1432 esac
1433 eval with_$ac_useropt=no ;;
1435 --x)
1436 # Obsolete; use --with-x.
1437 with_x=yes ;;
1439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1440 | --x-incl | --x-inc | --x-in | --x-i)
1441 ac_prev=x_includes ;;
1442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1444 x_includes=$ac_optarg ;;
1446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1448 ac_prev=x_libraries ;;
1449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1451 x_libraries=$ac_optarg ;;
1453 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1454 Try \`$0 --help' for more information." >&2
1455 { (exit 1); exit 1; }; }
1456 ;;
1458 *=*)
1459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1460 # Reject names that are not valid shell variable names.
1461 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1462 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1463 { (exit 1); exit 1; }; }
1464 eval $ac_envvar=\$ac_optarg
1465 export $ac_envvar ;;
1467 *)
1468 # FIXME: should be removed in autoconf 3.0.
1469 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1470 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1471 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1472 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1473 ;;
1475 esac
1476 done
1478 if test -n "$ac_prev"; then
1479 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1480 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1481 { (exit 1); exit 1; }; }
1482 fi
1484 if test -n "$ac_unrecognized_opts"; then
1485 case $enable_option_checking in
1486 no) ;;
1487 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1488 { (exit 1); exit 1; }; } ;;
1489 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1490 esac
1491 fi
1493 # Check all directory arguments for consistency.
1494 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1495 datadir sysconfdir sharedstatedir localstatedir includedir \
1496 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1497 libdir localedir mandir
1498 do
1499 eval ac_val=\$$ac_var
1500 # Remove trailing slashes.
1501 case $ac_val in
1502 */ )
1503 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1504 eval $ac_var=\$ac_val;;
1505 esac
1506 # Be sure to have absolute directory names.
1507 case $ac_val in
1508 [\\/$]* | ?:[\\/]* ) continue;;
1509 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1510 esac
1511 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1512 { (exit 1); exit 1; }; }
1513 done
1515 # There might be people who depend on the old broken behavior: `$host'
1516 # used to hold the argument of --host etc.
1517 # FIXME: To remove some day.
1518 build=$build_alias
1519 host=$host_alias
1520 target=$target_alias
1522 # FIXME: To remove some day.
1523 if test "x$host_alias" != x; then
1524 if test "x$build_alias" = x; then
1525 cross_compiling=maybe
1526 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1527 If a cross compiler is detected then cross compile mode will be used." >&2
1528 elif test "x$build_alias" != "x$host_alias"; then
1529 cross_compiling=yes
1530 fi
1531 fi
1533 ac_tool_prefix=
1534 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1536 test "$silent" = yes && exec 6>/dev/null
1539 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1540 ac_ls_di=`ls -di .` &&
1541 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1542 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1543 { (exit 1); exit 1; }; }
1544 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1545 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1546 { (exit 1); exit 1; }; }
1549 # Find the source files, if location was not specified.
1550 if test -z "$srcdir"; then
1551 ac_srcdir_defaulted=yes
1552 # Try the directory containing this script, then the parent directory.
1553 ac_confdir=`$as_dirname -- "$as_myself" ||
1554 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1555 X"$as_myself" : 'X\(//\)[^/]' \| \
1556 X"$as_myself" : 'X\(//\)$' \| \
1557 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1558 $as_echo X"$as_myself" |
1559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1560 s//\1/
1561 q
1562 }
1563 /^X\(\/\/\)[^/].*/{
1564 s//\1/
1565 q
1566 }
1567 /^X\(\/\/\)$/{
1568 s//\1/
1569 q
1570 }
1571 /^X\(\/\).*/{
1572 s//\1/
1573 q
1574 }
1575 s/.*/./; q'`
1576 srcdir=$ac_confdir
1577 if test ! -r "$srcdir/$ac_unique_file"; then
1578 srcdir=..
1579 fi
1580 else
1581 ac_srcdir_defaulted=no
1582 fi
1583 if test ! -r "$srcdir/$ac_unique_file"; then
1584 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1585 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1586 { (exit 1); exit 1; }; }
1587 fi
1588 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1589 ac_abs_confdir=`(
1590 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1591 { (exit 1); exit 1; }; }
1592 pwd)`
1593 # When building in place, set srcdir=.
1594 if test "$ac_abs_confdir" = "$ac_pwd"; then
1595 srcdir=.
1596 fi
1597 # Remove unnecessary trailing slashes from srcdir.
1598 # Double slashes in file names in object file debugging info
1599 # mess up M-x gdb in Emacs.
1600 case $srcdir in
1601 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1602 esac
1603 for ac_var in $ac_precious_vars; do
1604 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1605 eval ac_env_${ac_var}_value=\$${ac_var}
1606 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1607 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1608 done
1610 #
1611 # Report the --help message.
1612 #
1613 if test "$ac_init_help" = "long"; then
1614 # Omit some internal or obsolete options to make the list less imposing.
1615 # This message is too long to be a string in the A/UX 3.1 sh.
1616 cat <<_ACEOF
1617 \`configure' configures rrdtool 1.4.7 to adapt to many kinds of systems.
1619 Usage: $0 [OPTION]... [VAR=VALUE]...
1621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1622 VAR=VALUE. See below for descriptions of some of the useful variables.
1624 Defaults for the options are specified in brackets.
1626 Configuration:
1627 -h, --help display this help and exit
1628 --help=short display options specific to this package
1629 --help=recursive display the short help of all the included packages
1630 -V, --version display version information and exit
1631 -q, --quiet, --silent do not print \`checking...' messages
1632 --cache-file=FILE cache test results in FILE [disabled]
1633 -C, --config-cache alias for \`--cache-file=config.cache'
1634 -n, --no-create do not create output files
1635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1637 Installation directories:
1638 --prefix=PREFIX install architecture-independent files in PREFIX
1639 [$ac_default_prefix]
1640 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1641 [PREFIX]
1643 By default, \`make install' will install all the files in
1644 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1645 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1646 for instance \`--prefix=\$HOME'.
1648 For better control, use the options below.
1650 Fine tuning of the installation directories:
1651 --bindir=DIR user executables [EPREFIX/bin]
1652 --sbindir=DIR system admin executables [EPREFIX/sbin]
1653 --libexecdir=DIR program executables [EPREFIX/libexec]
1654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1656 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1657 --libdir=DIR object code libraries [EPREFIX/lib]
1658 --includedir=DIR C header files [PREFIX/include]
1659 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1660 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1661 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1662 --infodir=DIR info documentation [DATAROOTDIR/info]
1663 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1664 --mandir=DIR man documentation [DATAROOTDIR/man]
1665 --docdir=DIR documentation root [DATAROOTDIR/doc/rrdtool]
1666 --htmldir=DIR html documentation [DOCDIR]
1667 --dvidir=DIR dvi documentation [DOCDIR]
1668 --pdfdir=DIR pdf documentation [DOCDIR]
1669 --psdir=DIR ps documentation [DOCDIR]
1670 _ACEOF
1672 cat <<\_ACEOF
1674 Program names:
1675 --program-prefix=PREFIX prepend PREFIX to installed program names
1676 --program-suffix=SUFFIX append SUFFIX to installed program names
1677 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1679 System types:
1680 --build=BUILD configure for building on BUILD [guessed]
1681 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1682 --target=TARGET configure for building compilers for TARGET [HOST]
1683 _ACEOF
1684 fi
1686 if test -n "$ac_init_help"; then
1687 case $ac_init_help in
1688 short | recursive ) echo "Configuration of rrdtool 1.4.7:";;
1689 esac
1690 cat <<\_ACEOF
1692 Optional Features:
1693 --disable-option-checking ignore unrecognized --enable/--with options
1694 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1695 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1696 --disable-dependency-tracking speeds up one-time build
1697 --enable-dependency-tracking do not reject slow dependency extractors
1698 --enable-maintainer-mode enable make rules and dependencies not useful
1699 (and sometimes confusing) to the casual installer
1700 --enable-silent-rules less verbose build output (undo: `make V=1')
1701 --disable-silent-rules verbose build output (undo: `make V=0')
1702 --disable-rrdcgi disable building of rrdcgi
1703 --disable-rrd_graph disable all rrd_graph functions
1704 --disable-mmap disable mmap in rrd_update, use seek+write instead
1705 --disable-pthread disable multithread support
1706 --enable-static-programs
1707 Build static programs
1708 --enable-shared[=PKGS] build shared libraries [default=yes]
1709 --enable-static[=PKGS] build static libraries [default=yes]
1710 --enable-fast-install[=PKGS]
1711 optimize for fast installation [default=yes]
1712 --disable-libtool-lock avoid locking (might break parallel builds)
1713 --disable-nls do not use Native Language Support
1714 --disable-rpath do not hardcode runtime library paths
1715 --disable-libdbi do not build in support for libdbi
1716 --disable-libwrap do not build in support for libwrap (tcp wrapper)
1717 --disable-perl do not build the perl modules
1718 --enable-perl-site-install
1719 by default the rrdtool perl modules are installed
1720 together with rrdtool in $prefix/lib/perl. You have
1721 to put a 'use lib qw($prefix/lib/perl)' into your
1722 scripts when you want to use them. When you set this
1723 option the perl modules will get installed wherever
1724 your perl setup thinks it is best.
1725 --disable-ruby do not build the ruby modules
1726 --enable-ruby-site-install
1727 by default the rrdtool ruby modules are installed
1728 together with rrdtool in $prefix/lib/ruby. You have
1729 to add $prefix/lib/ruby/$ruby_version/$sitearch to
1730 your $: variable for ruby to find the RRD.so file.
1731 --disable-lua do not build the lua modules
1732 --enable-lua-site-install
1733 by default the lua module is installed together with
1734 rrdtool in $prefix/lib/lua/$lua_version. You have to
1735 add $prefix/lib/lua/$lua_version/?.so to
1736 package.cpath for lua to find 'rrd.so'. For lua 5.0
1737 you may also need to change LUA_PATH to the same
1738 dir, to require 'compat-5.1'. When you set this
1739 option the lua modules will get installed wherever
1740 your Lua setup thinks it is best. WARNING: if you
1741 set this option, system lua modules compat-5.1.lua
1742 and rrd.so, if any, may be overwritten.
1743 --disable-tcl do not build the tcl modules
1744 --enable-tcl-site install the tcl extension in the tcl tree
1745 --disable-python do not build the python modules
1747 Optional Packages:
1748 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1749 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1750 --with-rrd-default-font=OPTIONS set the full path to your default font.
1751 --with-pic try to use only PIC/non-PIC objects [default=use
1752 both]
1753 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1754 --with-gnu-ld assume the C compiler uses GNU ld default=no
1755 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1756 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1757 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1758 --without-libintl-prefix don't search for libintl in includedir and libdir
1759 --with-perl-options=OPTIONS options to pass on command-line when
1760 generating Makefile from Makefile.PL. If you set this
1761 option, interesting things may happen unless you know
1762 what you are doing!
1763 --with-ruby-options=OPTIONS options to pass on command-line when
1764 generating Makefile from extconf.rb. If you set this
1765 option, interesting things may happen unless you know
1766 what you are doing!
1767 --with-tcllib=DIR location of the tclConfig.sh
1769 Some influential environment variables:
1770 CC C compiler command
1771 CFLAGS C compiler flags
1772 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1773 nonstandard directory <lib dir>
1774 LIBS libraries to pass to the linker, e.g. -l<library>
1775 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1776 you have headers in a nonstandard directory <include dir>
1777 CPP C preprocessor
1778 RRDGRAPH_YLEGEND_ANGLE
1779 Vertical label angle: -90.0 (default) or 90.0
1780 PERLCC C compiler for Perl modules
1781 PERLCCFLAGS CC flags for Perl modules
1782 PERLLD Linker for Perl modules
1783 PERLLDFLAGS LD flags for Perl modules
1784 NROFF path to the local nroff version
1785 TROFF path to the local troff version
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.4.7
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.4.7, which was
1868 generated by GNU Autoconf 2.63. Invocation command line was
1870 $ $0 $@
1872 _ACEOF
1873 exec 5>>config.log
1874 {
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,
1985 (
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
2013 )
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 gt_needs="$gt_needs "
2145 # Check that the precious variables saved in the cache have kept the same
2146 # value.
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150 eval ac_new_set=\$ac_env_${ac_var}_set
2151 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152 eval ac_new_val=\$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2154 set,)
2155 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,set)
2159 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2162 ,);;
2163 *)
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w=`echo x $ac_old_val`
2167 ac_new_val_w=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted=:
2172 else
2173 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\$ac_old_val
2176 fi
2177 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2181 fi;;
2182 esac
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2185 case $ac_new_val in
2186 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg=$ac_var=$ac_new_val ;;
2188 esac
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2192 esac
2193 fi
2194 done
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2201 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2202 { (exit 1); exit 1; }; }
2203 fi
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237 NUMVERS=1.4007
2240 LIBVERS=6:0:2
2243 ac_aux_dir=
2244 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 if test -f "$ac_dir/install-sh"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/install-sh -c"
2248 break
2249 elif test -f "$ac_dir/install.sh"; then
2250 ac_aux_dir=$ac_dir
2251 ac_install_sh="$ac_aux_dir/install.sh -c"
2252 break
2253 elif test -f "$ac_dir/shtool"; then
2254 ac_aux_dir=$ac_dir
2255 ac_install_sh="$ac_aux_dir/shtool install -c"
2256 break
2257 fi
2258 done
2259 if test -z "$ac_aux_dir"; then
2260 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2261 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2265 # These three variables are undocumented and unsupported,
2266 # and are intended to be withdrawn in a future Autoconf release.
2267 # They can cause serious problems if a builder's source tree is in a directory
2268 # whose full name contains unusual characters.
2269 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2270 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2271 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2274 # Make sure we can run config.sub.
2275 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2276 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2277 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2278 { (exit 1); exit 1; }; }
2280 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2281 $as_echo_n "checking build system type... " >&6; }
2282 if test "${ac_cv_build+set}" = set; then
2283 $as_echo_n "(cached) " >&6
2284 else
2285 ac_build_alias=$build_alias
2286 test "x$ac_build_alias" = x &&
2287 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2288 test "x$ac_build_alias" = x &&
2289 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2290 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2291 { (exit 1); exit 1; }; }
2292 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2293 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2294 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2295 { (exit 1); exit 1; }; }
2297 fi
2298 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2299 $as_echo "$ac_cv_build" >&6; }
2300 case $ac_cv_build in
2301 *-*-*) ;;
2302 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2303 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2304 { (exit 1); exit 1; }; };;
2305 esac
2306 build=$ac_cv_build
2307 ac_save_IFS=$IFS; IFS='-'
2308 set x $ac_cv_build
2309 shift
2310 build_cpu=$1
2311 build_vendor=$2
2312 shift; shift
2313 # Remember, the first character of IFS is used to create $*,
2314 # except with old shells:
2315 build_os=$*
2316 IFS=$ac_save_IFS
2317 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2320 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2321 $as_echo_n "checking host system type... " >&6; }
2322 if test "${ac_cv_host+set}" = set; then
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test "x$host_alias" = x; then
2326 ac_cv_host=$ac_cv_build
2327 else
2328 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2329 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2330 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2331 { (exit 1); exit 1; }; }
2332 fi
2334 fi
2335 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2336 $as_echo "$ac_cv_host" >&6; }
2337 case $ac_cv_host in
2338 *-*-*) ;;
2339 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2340 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2341 { (exit 1); exit 1; }; };;
2342 esac
2343 host=$ac_cv_host
2344 ac_save_IFS=$IFS; IFS='-'
2345 set x $ac_cv_host
2346 shift
2347 host_cpu=$1
2348 host_vendor=$2
2349 shift; shift
2350 # Remember, the first character of IFS is used to create $*,
2351 # except with old shells:
2352 host_os=$*
2353 IFS=$ac_save_IFS
2354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2357 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2358 $as_echo_n "checking target system type... " >&6; }
2359 if test "${ac_cv_target+set}" = set; then
2360 $as_echo_n "(cached) " >&6
2361 else
2362 if test "x$target_alias" = x; then
2363 ac_cv_target=$ac_cv_host
2364 else
2365 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2366 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2367 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2368 { (exit 1); exit 1; }; }
2369 fi
2371 fi
2372 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2373 $as_echo "$ac_cv_target" >&6; }
2374 case $ac_cv_target in
2375 *-*-*) ;;
2376 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2377 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2378 { (exit 1); exit 1; }; };;
2379 esac
2380 target=$ac_cv_target
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_target
2383 shift
2384 target_cpu=$1
2385 target_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 target_os=$*
2390 IFS=$ac_save_IFS
2391 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2394 # The aliases save the names the user supplied, while $host etc.
2395 # will get canonicalized.
2396 test -n "$target_alias" &&
2397 test "$program_prefix$program_suffix$program_transform_name" = \
2398 NONENONEs,x,x, &&
2399 program_prefix=${target_alias}-
2400 ac_ext=c
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if test "${ac_cv_prog_CC+set}" = set; then
2411 $as_echo_n "(cached) " >&6
2412 else
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427 done
2428 done
2429 IFS=$as_save_IFS
2431 fi
2432 fi
2433 CC=$ac_cv_prog_CC
2434 if test -n "$CC"; then
2435 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2436 $as_echo "$CC" >&6; }
2437 else
2438 { $as_echo "$as_me:$LINENO: result: no" >&5
2439 $as_echo "no" >&6; }
2440 fi
2443 fi
2444 if test -z "$ac_cv_prog_CC"; then
2445 ac_ct_CC=$CC
2446 # Extract the first word of "gcc", so it can be a program name with args.
2447 set dummy gcc; ac_word=$2
2448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451 $as_echo_n "(cached) " >&6
2452 else
2453 if test -n "$ac_ct_CC"; then
2454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_ac_ct_CC="gcc"
2464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467 done
2468 done
2469 IFS=$as_save_IFS
2471 fi
2472 fi
2473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2474 if test -n "$ac_ct_CC"; then
2475 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2476 $as_echo "$ac_ct_CC" >&6; }
2477 else
2478 { $as_echo "$as_me:$LINENO: result: no" >&5
2479 $as_echo "no" >&6; }
2480 fi
2482 if test "x$ac_ct_CC" = x; then
2483 CC=""
2484 else
2485 case $cross_compiling:$ac_tool_warned in
2486 yes:)
2487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2489 ac_tool_warned=yes ;;
2490 esac
2491 CC=$ac_ct_CC
2492 fi
2493 else
2494 CC="$ac_cv_prog_CC"
2495 fi
2497 if test -z "$CC"; then
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}cc; ac_word=$2
2501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_CC="${ac_tool_prefix}cc"
2517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2529 $as_echo "$CC" >&6; }
2530 else
2531 { $as_echo "$as_me:$LINENO: result: no" >&5
2532 $as_echo "no" >&6; }
2533 fi
2536 fi
2537 fi
2538 if test -z "$CC"; then
2539 # Extract the first word of "cc", so it can be a program name with args.
2540 set dummy cc; ac_word=$2
2541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544 $as_echo_n "(cached) " >&6
2545 else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 ac_prog_rejected=no
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2558 ac_prog_rejected=yes
2559 continue
2560 fi
2561 ac_cv_prog_CC="cc"
2562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2569 if test $ac_prog_rejected = yes; then
2570 # We found a bogon in the path, so make sure we never use it.
2571 set dummy $ac_cv_prog_CC
2572 shift
2573 if test $# != 0; then
2574 # We chose a different compiler from the bogus one.
2575 # However, it has the same basename, so the bogon will be chosen
2576 # first if we set CC to just the basename; use the full file name.
2577 shift
2578 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579 fi
2580 fi
2581 fi
2582 fi
2583 CC=$ac_cv_prog_CC
2584 if test -n "$CC"; then
2585 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2586 $as_echo "$CC" >&6; }
2587 else
2588 { $as_echo "$as_me:$LINENO: result: no" >&5
2589 $as_echo "no" >&6; }
2590 fi
2593 fi
2594 if test -z "$CC"; then
2595 if test -n "$ac_tool_prefix"; then
2596 for ac_prog in cl.exe
2597 do
2598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603 $as_echo_n "(cached) " >&6
2604 else
2605 if test -n "$CC"; then
2606 ac_cv_prog_CC="$CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2623 fi
2624 fi
2625 CC=$ac_cv_prog_CC
2626 if test -n "$CC"; then
2627 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2628 $as_echo "$CC" >&6; }
2629 else
2630 { $as_echo "$as_me:$LINENO: result: no" >&5
2631 $as_echo "no" >&6; }
2632 fi
2635 test -n "$CC" && break
2636 done
2637 fi
2638 if test -z "$CC"; then
2639 ac_ct_CC=$CC
2640 for ac_prog in cl.exe
2641 do
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test -n "$ac_ct_CC"; then
2650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_ac_ct_CC="$ac_prog"
2660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2667 fi
2668 fi
2669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670 if test -n "$ac_ct_CC"; then
2671 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2672 $as_echo "$ac_ct_CC" >&6; }
2673 else
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2679 test -n "$ac_ct_CC" && break
2680 done
2682 if test "x$ac_ct_CC" = x; then
2683 CC=""
2684 else
2685 case $cross_compiling:$ac_tool_warned in
2686 yes:)
2687 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691 CC=$ac_ct_CC
2692 fi
2693 fi
2695 fi
2698 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&5
2702 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2703 See \`config.log' for more details." >&2;}
2704 { (exit 1); exit 1; }; }; }
2706 # Provide some information about the compiler.
2707 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2708 set X $ac_compile
2709 ac_compiler=$2
2710 { (ac_try="$ac_compiler --version >&5"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2716 $as_echo "$ac_try_echo") >&5
2717 (eval "$ac_compiler --version >&5") 2>&5
2718 ac_status=$?
2719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -v >&5"
2722 case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725 esac
2726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2727 $as_echo "$ac_try_echo") >&5
2728 (eval "$ac_compiler -v >&5") 2>&5
2729 ac_status=$?
2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732 { (ac_try="$ac_compiler -V >&5"
2733 case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736 esac
2737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2738 $as_echo "$ac_try_echo") >&5
2739 (eval "$ac_compiler -V >&5") 2>&5
2740 ac_status=$?
2741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2751 int
2752 main ()
2753 {
2755 ;
2756 return 0;
2757 }
2758 _ACEOF
2759 ac_clean_files_save=$ac_clean_files
2760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2761 # Try to create an executable without -o first, disregard a.out.
2762 # It will help us diagnose broken compilers, and finding out an intuition
2763 # of exeext.
2764 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765 $as_echo_n "checking for C compiler default output file name... " >&6; }
2766 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2768 # The possible output files:
2769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2771 ac_rmfiles=
2772 for ac_file in $ac_files
2773 do
2774 case $ac_file in
2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2777 esac
2778 done
2779 rm -f $ac_rmfiles
2781 if { (ac_try="$ac_link_default"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2787 $as_echo "$ac_try_echo") >&5
2788 (eval "$ac_link_default") 2>&5
2789 ac_status=$?
2790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2793 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2794 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2795 # so that the user can short-circuit this test for compilers unknown to
2796 # Autoconf.
2797 for ac_file in $ac_files ''
2798 do
2799 test -f "$ac_file" || continue
2800 case $ac_file in
2801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2802 ;;
2803 [ab].out )
2804 # We found the default executable, but exeext='' is most
2805 # certainly right.
2806 break;;
2807 *.* )
2808 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2809 then :; else
2810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2811 fi
2812 # We set ac_cv_exeext here because the later test for it is not
2813 # safe: cross compilers may not add the suffix if given an `-o'
2814 # argument, so we may need to know it at that point already.
2815 # Even if this section looks crufty: it has the advantage of
2816 # actually working.
2817 break;;
2818 * )
2819 break;;
2820 esac
2821 done
2822 test "$ac_cv_exeext" = no && ac_cv_exeext=
2824 else
2825 ac_file=''
2826 fi
2828 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2829 $as_echo "$ac_file" >&6; }
2830 if test -z "$ac_file"; then
2831 $as_echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2834 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2837 See \`config.log' for more details." >&5
2838 $as_echo "$as_me: error: C compiler cannot create executables
2839 See \`config.log' for more details." >&2;}
2840 { (exit 77); exit 77; }; }; }
2841 fi
2843 ac_exeext=$ac_cv_exeext
2845 # Check that the compiler produces executables we can run. If not, either
2846 # the compiler is broken, or we cross compile.
2847 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2848 $as_echo_n "checking whether the C compiler works... " >&6; }
2849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2850 # If not cross compiling, check that we can run a simple program.
2851 if test "$cross_compiling" != yes; then
2852 if { ac_try='./$ac_file'
2853 { (case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856 esac
2857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2858 $as_echo "$ac_try_echo") >&5
2859 (eval "$ac_try") 2>&5
2860 ac_status=$?
2861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 cross_compiling=no
2864 else
2865 if test "$cross_compiling" = maybe; then
2866 cross_compiling=yes
2867 else
2868 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&5
2873 $as_echo "$as_me: error: cannot run C compiled programs.
2874 If you meant to cross compile, use \`--host'.
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }; }
2877 fi
2878 fi
2879 fi
2880 { $as_echo "$as_me:$LINENO: result: yes" >&5
2881 $as_echo "yes" >&6; }
2883 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2884 ac_clean_files=$ac_clean_files_save
2885 # Check that the compiler produces executables we can run. If not, either
2886 # the compiler is broken, or we cross compile.
2887 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888 $as_echo_n "checking whether we are cross compiling... " >&6; }
2889 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890 $as_echo "$cross_compiling" >&6; }
2892 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893 $as_echo_n "checking for suffix of executables... " >&6; }
2894 if { (ac_try="$ac_link"
2895 case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2900 $as_echo "$ac_try_echo") >&5
2901 (eval "$ac_link") 2>&5
2902 ac_status=$?
2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; then
2905 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2906 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2907 # work properly (i.e., refer to `conftest.exe'), while it won't with
2908 # `rm'.
2909 for ac_file in conftest.exe conftest conftest.*; do
2910 test -f "$ac_file" || continue
2911 case $ac_file in
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2914 break;;
2915 * ) break;;
2916 esac
2917 done
2918 else
2919 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2922 See \`config.log' for more details." >&5
2923 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2924 See \`config.log' for more details." >&2;}
2925 { (exit 1); exit 1; }; }; }
2926 fi
2928 rm -f conftest$ac_cv_exeext
2929 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2930 $as_echo "$ac_cv_exeext" >&6; }
2932 rm -f conftest.$ac_ext
2933 EXEEXT=$ac_cv_exeext
2934 ac_exeext=$EXEEXT
2935 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2936 $as_echo_n "checking for suffix of object files... " >&6; }
2937 if test "${ac_cv_objext+set}" = set; then
2938 $as_echo_n "(cached) " >&6
2939 else
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2947 int
2948 main ()
2949 {
2951 ;
2952 return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.o conftest.obj
2956 if { (ac_try="$ac_compile"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2962 $as_echo "$ac_try_echo") >&5
2963 (eval "$ac_compile") 2>&5
2964 ac_status=$?
2965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; then
2967 for ac_file in conftest.o conftest.obj conftest.*; do
2968 test -f "$ac_file" || continue;
2969 case $ac_file in
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972 break;;
2973 esac
2974 done
2975 else
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2982 See \`config.log' for more details." >&5
2983 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }; }
2986 fi
2988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2989 fi
2990 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2991 $as_echo "$ac_cv_objext" >&6; }
2992 OBJEXT=$ac_cv_objext
2993 ac_objext=$OBJEXT
2994 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2995 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2997 $as_echo_n "(cached) " >&6
2998 else
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3006 int
3007 main ()
3008 {
3009 #ifndef __GNUC__
3010 choke me
3011 #endif
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3024 $as_echo "$ac_try_echo") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest.$ac_objext; then
3035 ac_compiler_gnu=yes
3036 else
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 ac_compiler_gnu=no
3041 fi
3043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046 fi
3047 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3049 if test $ac_compiler_gnu = yes; then
3050 GCC=yes
3051 else
3052 GCC=
3053 fi
3054 ac_test_CFLAGS=${CFLAGS+set}
3055 ac_save_CFLAGS=$CFLAGS
3056 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3058 if test "${ac_cv_prog_cc_g+set}" = set; then
3059 $as_echo_n "(cached) " >&6
3060 else
3061 ac_save_c_werror_flag=$ac_c_werror_flag
3062 ac_c_werror_flag=yes
3063 ac_cv_prog_cc_g=no
3064 CFLAGS="-g"
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3072 int
3073 main ()
3074 {
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3087 $as_echo "$ac_try_echo") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_prog_cc_g=yes
3099 else
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 CFLAGS=""
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3111 int
3112 main ()
3113 {
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3126 $as_echo "$ac_try_echo") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
3137 :
3138 else
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 ac_c_werror_flag=$ac_save_c_werror_flag
3143 CFLAGS="-g"
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3151 int
3152 main ()
3153 {
3155 ;
3156 return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3166 $as_echo "$ac_try_echo") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } && {
3174 test -z "$ac_c_werror_flag" ||
3175 test ! -s conftest.err
3176 } && test -s conftest.$ac_objext; then
3177 ac_cv_prog_cc_g=yes
3178 else
3179 $as_echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3183 fi
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 fi
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 fi
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_c_werror_flag=$ac_save_c_werror_flag
3193 fi
3194 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3195 $as_echo "$ac_cv_prog_cc_g" >&6; }
3196 if test "$ac_test_CFLAGS" = set; then
3197 CFLAGS=$ac_save_CFLAGS
3198 elif test $ac_cv_prog_cc_g = yes; then
3199 if test "$GCC" = yes; then
3200 CFLAGS="-g -O2"
3201 else
3202 CFLAGS="-g"
3203 fi
3204 else
3205 if test "$GCC" = yes; then
3206 CFLAGS="-O2"
3207 else
3208 CFLAGS=
3209 fi
3210 fi
3211 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3212 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3213 if test "${ac_cv_prog_cc_c89+set}" = set; then
3214 $as_echo_n "(cached) " >&6
3215 else
3216 ac_cv_prog_cc_c89=no
3217 ac_save_CC=$CC
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 #include <stdarg.h>
3225 #include <stdio.h>
3226 #include <sys/types.h>
3227 #include <sys/stat.h>
3228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3229 struct buf { int x; };
3230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3231 static char *e (p, i)
3232 char **p;
3233 int i;
3234 {
3235 return p[i];
3236 }
3237 static char *f (char * (*g) (char **, int), char **p, ...)
3238 {
3239 char *s;
3240 va_list v;
3241 va_start (v,p);
3242 s = g (p, va_arg (v,int));
3243 va_end (v);
3244 return s;
3245 }
3247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3248 function prototypes and stuff, but not '\xHH' hex character constants.
3249 These don't provoke an error unfortunately, instead are silently treated
3250 as 'x'. The following induces an error, until -std is added to get
3251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3252 array size at least. It's necessary to write '\x00'==0 to get something
3253 that's true only with -std. */
3254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3257 inside strings and character constants. */
3258 #define FOO(x) 'x'
3259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3261 int test (int i, double x);
3262 struct s1 {int (*f) (int a);};
3263 struct s2 {int (*f) (double a);};
3264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 int argc;
3266 char **argv;
3267 int
3268 main ()
3269 {
3270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3277 do
3278 CC="$ac_save_CC $ac_arg"
3279 rm -f conftest.$ac_objext
3280 if { (ac_try="$ac_compile"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3286 $as_echo "$ac_try_echo") >&5
3287 (eval "$ac_compile") 2>conftest.er1
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } && {
3294 test -z "$ac_c_werror_flag" ||
3295 test ! -s conftest.err
3296 } && test -s conftest.$ac_objext; then
3297 ac_cv_prog_cc_c89=$ac_arg
3298 else
3299 $as_echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3303 fi
3305 rm -f core conftest.err conftest.$ac_objext
3306 test "x$ac_cv_prog_cc_c89" != "xno" && break
3307 done
3308 rm -f conftest.$ac_ext
3309 CC=$ac_save_CC
3311 fi
3312 # AC_CACHE_VAL
3313 case "x$ac_cv_prog_cc_c89" in
3314 x)
3315 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3316 $as_echo "none needed" >&6; } ;;
3317 xno)
3318 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3319 $as_echo "unsupported" >&6; } ;;
3320 *)
3321 CC="$CC $ac_cv_prog_cc_c89"
3322 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3323 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3324 esac
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 ac_ext=c
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3340 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3341 # On Suns, sometimes $CPP names a directory.
3342 if test -n "$CPP" && test -d "$CPP"; then
3343 CPP=
3344 fi
3345 if test -z "$CPP"; then
3346 if test "${ac_cv_prog_CPP+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3348 else
3349 # Double quotes because CPP needs to be expanded
3350 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3351 do
3352 ac_preproc_ok=false
3353 for ac_c_preproc_warn_flag in '' yes
3354 do
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 #ifdef __STDC__
3368 # include <limits.h>
3369 #else
3370 # include <assert.h>
3371 #endif
3372 Syntax error
3373 _ACEOF
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380 $as_echo "$ac_try_echo") >&5
3381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev/null && {
3388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 }; then
3391 :
3392 else
3393 $as_echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 # Broken: fails on valid input.
3397 continue
3398 fi
3400 rm -f conftest.err conftest.$ac_ext
3402 # OK, works on sane cases. Now check whether nonexistent headers
3403 # can be detected and how.
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <ac_nonexistent.h>
3411 _ACEOF
3412 if { (ac_try="$ac_cpp conftest.$ac_ext"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3418 $as_echo "$ac_try_echo") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null && {
3426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3427 test ! -s conftest.err
3428 }; then
3429 # Broken: success on invalid input.
3430 continue
3431 else
3432 $as_echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Passes both tests.
3436 ac_preproc_ok=:
3437 break
3438 fi
3440 rm -f conftest.err conftest.$ac_ext
3442 done
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then
3446 break
3447 fi
3449 done
3450 ac_cv_prog_CPP=$CPP
3452 fi
3453 CPP=$ac_cv_prog_CPP
3454 else
3455 ac_cv_prog_CPP=$CPP
3456 fi
3457 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3458 $as_echo "$CPP" >&6; }
3459 ac_preproc_ok=false
3460 for ac_c_preproc_warn_flag in '' yes
3461 do
3462 # Use a header file that comes with gcc, so configuring glibc
3463 # with a fresh cross-compiler works.
3464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465 # <limits.h> exists even on freestanding compilers.
3466 # On the NeXT, cc -E runs the code through the compiler's parser,
3467 # not just through cpp. "Syntax error" is here to catch this case.
3468 cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h. */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #ifdef __STDC__
3475 # include <limits.h>
3476 #else
3477 # include <assert.h>
3478 #endif
3479 Syntax error
3480 _ACEOF
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3487 $as_echo "$ac_try_echo") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 }; then
3498 :
3499 else
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Broken: fails on valid input.
3504 continue
3505 fi
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h. */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null && {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 }; then
3536 # Broken: success on invalid input.
3537 continue
3538 else
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 # Passes both tests.
3543 ac_preproc_ok=:
3544 break
3545 fi
3547 rm -f conftest.err conftest.$ac_ext
3549 done
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.$ac_ext
3552 if $ac_preproc_ok; then
3553 :
3554 else
3555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&5
3559 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&2;}
3561 { (exit 1); exit 1; }; }; }
3562 fi
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3572 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3573 if test "${ac_cv_path_GREP+set}" = set; then
3574 $as_echo_n "(cached) " >&6
3575 else
3576 if test -z "$GREP"; then
3577 ac_path_GREP_found=false
3578 # Loop through the user's path and test for each of PROGNAME-LIST
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3581 do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_prog in grep ggrep; do
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3587 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3588 # Check for GNU ac_path_GREP and select it if it is found.
3589 # Check for GNU $ac_path_GREP
3590 case `"$ac_path_GREP" --version 2>&1` in
3591 *GNU*)
3592 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3593 *)
3594 ac_count=0
3595 $as_echo_n 0123456789 >"conftest.in"
3596 while :
3597 do
3598 cat "conftest.in" "conftest.in" >"conftest.tmp"
3599 mv "conftest.tmp" "conftest.in"
3600 cp "conftest.in" "conftest.nl"
3601 $as_echo 'GREP' >> "conftest.nl"
3602 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3604 ac_count=`expr $ac_count + 1`
3605 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3606 # Best one so far, save it but keep looking for a better one
3607 ac_cv_path_GREP="$ac_path_GREP"
3608 ac_path_GREP_max=$ac_count
3609 fi
3610 # 10*(2^10) chars as input seems more than enough
3611 test $ac_count -gt 10 && break
3612 done
3613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3614 esac
3616 $ac_path_GREP_found && break 3
3617 done
3618 done
3619 done
3620 IFS=$as_save_IFS
3621 if test -z "$ac_cv_path_GREP"; then
3622 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3623 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3624 { (exit 1); exit 1; }; }
3625 fi
3626 else
3627 ac_cv_path_GREP=$GREP
3628 fi
3630 fi
3631 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3632 $as_echo "$ac_cv_path_GREP" >&6; }
3633 GREP="$ac_cv_path_GREP"
3636 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3637 $as_echo_n "checking for egrep... " >&6; }
3638 if test "${ac_cv_path_EGREP+set}" = set; then
3639 $as_echo_n "(cached) " >&6
3640 else
3641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3642 then ac_cv_path_EGREP="$GREP -E"
3643 else
3644 if test -z "$EGREP"; then
3645 ac_path_EGREP_found=false
3646 # Loop through the user's path and test for each of PROGNAME-LIST
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_prog in egrep; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3655 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3656 # Check for GNU ac_path_EGREP and select it if it is found.
3657 # Check for GNU $ac_path_EGREP
3658 case `"$ac_path_EGREP" --version 2>&1` in
3659 *GNU*)
3660 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3661 *)
3662 ac_count=0
3663 $as_echo_n 0123456789 >"conftest.in"
3664 while :
3665 do
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
3669 $as_echo 'EGREP' >> "conftest.nl"
3670 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672 ac_count=`expr $ac_count + 1`
3673 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_EGREP="$ac_path_EGREP"
3676 ac_path_EGREP_max=$ac_count
3677 fi
3678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3680 done
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682 esac
3684 $ac_path_EGREP_found && break 3
3685 done
3686 done
3687 done
3688 IFS=$as_save_IFS
3689 if test -z "$ac_cv_path_EGREP"; then
3690 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3691 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3692 { (exit 1); exit 1; }; }
3693 fi
3694 else
3695 ac_cv_path_EGREP=$EGREP
3696 fi
3698 fi
3699 fi
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3701 $as_echo "$ac_cv_path_EGREP" >&6; }
3702 EGREP="$ac_cv_path_EGREP"
3705 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3706 $as_echo_n "checking for ANSI C header files... " >&6; }
3707 if test "${ac_cv_header_stdc+set}" = set; then
3708 $as_echo_n "(cached) " >&6
3709 else
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 #include <stdlib.h>
3717 #include <stdarg.h>
3718 #include <string.h>
3719 #include <float.h>
3721 int
3722 main ()
3723 {
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3736 $as_echo "$ac_try_echo") >&5
3737 (eval "$ac_compile") 2>conftest.er1
3738 ac_status=$?
3739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
3742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } && {
3744 test -z "$ac_c_werror_flag" ||
3745 test ! -s conftest.err
3746 } && test -s conftest.$ac_objext; then
3747 ac_cv_header_stdc=yes
3748 else
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 ac_cv_header_stdc=no
3753 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <string.h>
3767 _ACEOF
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "memchr" >/dev/null 2>&1; then
3770 :
3771 else
3772 ac_cv_header_stdc=no
3773 fi
3774 rm -f conftest*
3776 fi
3778 if test $ac_cv_header_stdc = yes; then
3779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786 #include <stdlib.h>
3788 _ACEOF
3789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790 $EGREP "free" >/dev/null 2>&1; then
3791 :
3792 else
3793 ac_cv_header_stdc=no
3794 fi
3795 rm -f conftest*
3797 fi
3799 if test $ac_cv_header_stdc = yes; then
3800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3801 if test "$cross_compiling" = yes; then
3802 :
3803 else
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #include <ctype.h>
3811 #include <stdlib.h>
3812 #if ((' ' & 0x0FF) == 0x020)
3813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3815 #else
3816 # define ISLOWER(c) \
3817 (('a' <= (c) && (c) <= 'i') \
3818 || ('j' <= (c) && (c) <= 'r') \
3819 || ('s' <= (c) && (c) <= 'z'))
3820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3821 #endif
3823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3824 int
3825 main ()
3826 {
3827 int i;
3828 for (i = 0; i < 256; i++)
3829 if (XOR (islower (i), ISLOWER (i))
3830 || toupper (i) != TOUPPER (i))
3831 return 2;
3832 return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest$ac_exeext
3836 if { (ac_try="$ac_link"
3837 case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842 $as_echo "$ac_try_echo") >&5
3843 (eval "$ac_link") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3852 $as_echo "$ac_try_echo") >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 :
3858 else
3859 $as_echo "$as_me: program exited with status $ac_status" >&5
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 ( exit $ac_status )
3864 ac_cv_header_stdc=no
3865 fi
3866 rm -rf conftest.dSYM
3867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3868 fi
3871 fi
3872 fi
3873 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3874 $as_echo "$ac_cv_header_stdc" >&6; }
3875 if test $ac_cv_header_stdc = yes; then
3877 cat >>confdefs.h <<\_ACEOF
3878 #define STDC_HEADERS 1
3879 _ACEOF
3881 fi
3883 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3893 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3894 inttypes.h stdint.h unistd.h
3895 do
3896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3897 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 $as_echo_n "checking for $ac_header... " >&6; }
3899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3900 $as_echo_n "(cached) " >&6
3901 else
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 $ac_includes_default
3910 #include <$ac_header>
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3919 $as_echo "$ac_try_echo") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3930 eval "$as_ac_Header=yes"
3931 else
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 eval "$as_ac_Header=no"
3936 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 fi
3940 ac_res=`eval 'as_val=${'$as_ac_Header'}
3941 $as_echo "$as_val"'`
3942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3943 $as_echo "$ac_res" >&6; }
3944 as_val=`eval 'as_val=${'$as_ac_Header'}
3945 $as_echo "$as_val"'`
3946 if test "x$as_val" = x""yes; then
3947 cat >>confdefs.h <<_ACEOF
3948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3949 _ACEOF
3951 fi
3953 done
3957 if test "${ac_cv_header_minix_config_h+set}" = set; then
3958 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3959 $as_echo_n "checking for minix/config.h... " >&6; }
3960 if test "${ac_cv_header_minix_config_h+set}" = set; then
3961 $as_echo_n "(cached) " >&6
3962 fi
3963 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3964 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3965 else
3966 # Is the header compilable?
3967 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3968 $as_echo_n "checking minix/config.h usability... " >&6; }
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 $ac_includes_default
3976 #include <minix/config.h>
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (ac_try="$ac_compile"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3985 $as_echo "$ac_try_echo") >&5
3986 (eval "$ac_compile") 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } && {
3993 test -z "$ac_c_werror_flag" ||
3994 test ! -s conftest.err
3995 } && test -s conftest.$ac_objext; then
3996 ac_header_compiler=yes
3997 else
3998 $as_echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_header_compiler=no
4002 fi
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4006 $as_echo "$ac_header_compiler" >&6; }
4008 # Is the header present?
4009 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4010 $as_echo_n "checking minix/config.h presence... " >&6; }
4011 cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h. */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 #include <minix/config.h>
4018 _ACEOF
4019 if { (ac_try="$ac_cpp conftest.$ac_ext"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4025 $as_echo "$ac_try_echo") >&5
4026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } >/dev/null && {
4033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4034 test ! -s conftest.err
4035 }; then
4036 ac_header_preproc=yes
4037 else
4038 $as_echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 ac_header_preproc=no
4042 fi
4044 rm -f conftest.err conftest.$ac_ext
4045 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4046 $as_echo "$ac_header_preproc" >&6; }
4048 # So? What about this header?
4049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4050 yes:no: )
4051 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4052 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4053 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4054 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4055 ac_header_preproc=yes
4056 ;;
4057 no:yes:* )
4058 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4059 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4060 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4061 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4062 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4063 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4064 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4065 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4066 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4067 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4068 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4069 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4071 ;;
4072 esac
4073 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4074 $as_echo_n "checking for minix/config.h... " >&6; }
4075 if test "${ac_cv_header_minix_config_h+set}" = set; then
4076 $as_echo_n "(cached) " >&6
4077 else
4078 ac_cv_header_minix_config_h=$ac_header_preproc
4079 fi
4080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4081 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4083 fi
4084 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4085 MINIX=yes
4086 else
4087 MINIX=
4088 fi
4091 if test "$MINIX" = yes; then
4093 cat >>confdefs.h <<\_ACEOF
4094 #define _POSIX_SOURCE 1
4095 _ACEOF
4098 cat >>confdefs.h <<\_ACEOF
4099 #define _POSIX_1_SOURCE 2
4100 _ACEOF
4103 cat >>confdefs.h <<\_ACEOF
4104 #define _MINIX 1
4105 _ACEOF
4107 fi
4111 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4112 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4113 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4114 $as_echo_n "(cached) " >&6
4115 else
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4123 # define __EXTENSIONS__ 1
4124 $ac_includes_default
4125 int
4126 main ()
4127 {
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4151 ac_cv_safe_to_define___extensions__=yes
4152 else
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4156 ac_cv_safe_to_define___extensions__=no
4157 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 fi
4161 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4162 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4163 test $ac_cv_safe_to_define___extensions__ = yes &&
4164 cat >>confdefs.h <<\_ACEOF
4165 #define __EXTENSIONS__ 1
4166 _ACEOF
4168 cat >>confdefs.h <<\_ACEOF
4169 #define _ALL_SOURCE 1
4170 _ACEOF
4172 cat >>confdefs.h <<\_ACEOF
4173 #define _GNU_SOURCE 1
4174 _ACEOF
4176 cat >>confdefs.h <<\_ACEOF
4177 #define _POSIX_PTHREAD_SEMANTICS 1
4178 _ACEOF
4180 cat >>confdefs.h <<\_ACEOF
4181 #define _TANDEM_SOURCE 1
4182 _ACEOF
4185 am__api_version='1.11'
4187 # Find a good install program. We prefer a C program (faster),
4188 # so one script is as good as another. But avoid the broken or
4189 # incompatible versions:
4190 # SysV /etc/install, /usr/sbin/install
4191 # SunOS /usr/etc/install
4192 # IRIX /sbin/install
4193 # AIX /bin/install
4194 # AmigaOS /C/install, which installs bootblocks on floppy discs
4195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4198 # OS/2's system install, which has a completely different semantic
4199 # ./install, which can be erroneously created by make from ./install.sh.
4200 # Reject install programs that cannot install multiple files.
4201 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4202 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4203 if test -z "$INSTALL"; then
4204 if test "${ac_cv_path_install+set}" = set; then
4205 $as_echo_n "(cached) " >&6
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 # Account for people who put trailing slashes in PATH elements.
4213 case $as_dir/ in
4214 ./ | .// | /cC/* | \
4215 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4216 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4217 /usr/ucb/* ) ;;
4218 *)
4219 # OSF1 and SCO ODT 3.0 have their own names for install.
4220 # Don't use installbsd from OSF since it installs stuff as root
4221 # by default.
4222 for ac_prog in ginstall scoinst install; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4225 if test $ac_prog = install &&
4226 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4227 # AIX install. It has an incompatible calling convention.
4228 :
4229 elif test $ac_prog = install &&
4230 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4231 # program-specific install script used by HP pwplus--don't use.
4232 :
4233 else
4234 rm -rf conftest.one conftest.two conftest.dir
4235 echo one > conftest.one
4236 echo two > conftest.two
4237 mkdir conftest.dir
4238 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4239 test -s conftest.one && test -s conftest.two &&
4240 test -s conftest.dir/conftest.one &&
4241 test -s conftest.dir/conftest.two
4242 then
4243 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4244 break 3
4245 fi
4246 fi
4247 fi
4248 done
4249 done
4250 ;;
4251 esac
4253 done
4254 IFS=$as_save_IFS
4256 rm -rf conftest.one conftest.two conftest.dir
4258 fi
4259 if test "${ac_cv_path_install+set}" = set; then
4260 INSTALL=$ac_cv_path_install
4261 else
4262 # As a last resort, use the slow shell script. Don't cache a
4263 # value for INSTALL within a source directory, because that will
4264 # break other packages using the cache if that directory is
4265 # removed, or if the value is a relative name.
4266 INSTALL=$ac_install_sh
4267 fi
4268 fi
4269 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4270 $as_echo "$INSTALL" >&6; }
4272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4273 # It thinks the first close brace ends the variable substitution.
4274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4276 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4280 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4281 $as_echo_n "checking whether build environment is sane... " >&6; }
4282 # Just in case
4283 sleep 1
4284 echo timestamp > conftest.file
4285 # Reject unsafe characters in $srcdir or the absolute working directory
4286 # name. Accept space and tab only in the latter.
4287 am_lf='
4288 '
4289 case `pwd` in
4290 *[\\\"\#\$\&\'\`$am_lf]*)
4291 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
4292 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
4293 { (exit 1); exit 1; }; };;
4294 esac
4295 case $srcdir in
4296 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4297 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
4298 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
4299 { (exit 1); exit 1; }; };;
4300 esac
4302 # Do `set' in a subshell so we don't clobber the current shell's
4303 # arguments. Must try -L first in case configure is actually a
4304 # symlink; some systems play weird games with the mod time of symlinks
4305 # (eg FreeBSD returns the mod time of the symlink's containing
4306 # directory).
4307 if (
4308 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4309 if test "$*" = "X"; then
4310 # -L didn't work.
4311 set X `ls -t "$srcdir/configure" conftest.file`
4312 fi
4313 rm -f conftest.file
4314 if test "$*" != "X $srcdir/configure conftest.file" \
4315 && test "$*" != "X conftest.file $srcdir/configure"; then
4317 # If neither matched, then we have a broken ls. This can happen
4318 # if, for instance, CONFIG_SHELL is bash and it inherits a
4319 # broken ls alias from the environment. This has actually
4320 # happened. Such a system could not be considered "sane".
4321 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4322 alias in your environment" >&5
4323 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4324 alias in your environment" >&2;}
4325 { (exit 1); exit 1; }; }
4326 fi
4328 test "$2" = conftest.file
4329 )
4330 then
4331 # Ok.
4332 :
4333 else
4334 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4335 Check your system clock" >&5
4336 $as_echo "$as_me: error: newly created file is older than distributed files!
4337 Check your system clock" >&2;}
4338 { (exit 1); exit 1; }; }
4339 fi
4340 { $as_echo "$as_me:$LINENO: result: yes" >&5
4341 $as_echo "yes" >&6; }
4342 test "$program_prefix" != NONE &&
4343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4344 # Use a double $ so make ignores it.
4345 test "$program_suffix" != NONE &&
4346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4347 # Double any \ or $.
4348 # By default was `s,x,x', remove it if useless.
4349 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4350 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4352 # expand $ac_aux_dir to an absolute path
4353 am_aux_dir=`cd $ac_aux_dir && pwd`
4355 if test x"${MISSING+set}" != xset; then
4356 case $am_aux_dir in
4357 *\ * | *\ *)
4358 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4359 *)
4360 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4361 esac
4362 fi
4363 # Use eval to expand $SHELL
4364 if eval "$MISSING --run true"; then
4365 am_missing_run="$MISSING --run "
4366 else
4367 am_missing_run=
4368 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4369 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4370 fi
4372 if test x"${install_sh}" != xset; then
4373 case $am_aux_dir in
4374 *\ * | *\ *)
4375 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4376 *)
4377 install_sh="\${SHELL} $am_aux_dir/install-sh"
4378 esac
4379 fi
4381 # Installed binaries are usually stripped using `strip' when the user
4382 # run `make install-strip'. However `strip' might not be the right
4383 # tool to use in cross-compilation environments, therefore Automake
4384 # will honor the `STRIP' environment variable to overrule this program.
4385 if test "$cross_compiling" != no; then
4386 if test -n "$ac_tool_prefix"; then
4387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4388 set dummy ${ac_tool_prefix}strip; ac_word=$2
4389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if test "${ac_cv_prog_STRIP+set}" = set; then
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -n "$STRIP"; then
4395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4412 fi
4413 fi
4414 STRIP=$ac_cv_prog_STRIP
4415 if test -n "$STRIP"; then
4416 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4417 $as_echo "$STRIP" >&6; }
4418 else
4419 { $as_echo "$as_me:$LINENO: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4424 fi
4425 if test -z "$ac_cv_prog_STRIP"; then
4426 ac_ct_STRIP=$STRIP
4427 # Extract the first word of "strip", so it can be a program name with args.
4428 set dummy strip; ac_word=$2
4429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test -n "$ac_ct_STRIP"; then
4435 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_ac_ct_STRIP="strip"
4445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4452 fi
4453 fi
4454 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4455 if test -n "$ac_ct_STRIP"; then
4456 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4457 $as_echo "$ac_ct_STRIP" >&6; }
4458 else
4459 { $as_echo "$as_me:$LINENO: result: no" >&5
4460 $as_echo "no" >&6; }
4461 fi
4463 if test "x$ac_ct_STRIP" = x; then
4464 STRIP=":"
4465 else
4466 case $cross_compiling:$ac_tool_warned in
4467 yes:)
4468 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4470 ac_tool_warned=yes ;;
4471 esac
4472 STRIP=$ac_ct_STRIP
4473 fi
4474 else
4475 STRIP="$ac_cv_prog_STRIP"
4476 fi
4478 fi
4479 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4481 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4482 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4483 if test -z "$MKDIR_P"; then
4484 if test "${ac_cv_path_mkdir+set}" = set; then
4485 $as_echo_n "(cached) " >&6
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4489 do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_prog in mkdir gmkdir; do
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4495 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4496 'mkdir (GNU coreutils) '* | \
4497 'mkdir (coreutils) '* | \
4498 'mkdir (fileutils) '4.1*)
4499 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4500 break 3;;
4501 esac
4502 done
4503 done
4504 done
4505 IFS=$as_save_IFS
4507 fi
4509 if test "${ac_cv_path_mkdir+set}" = set; then
4510 MKDIR_P="$ac_cv_path_mkdir -p"
4511 else
4512 # As a last resort, use the slow shell script. Don't cache a
4513 # value for MKDIR_P within a source directory, because that will
4514 # break other packages using the cache if that directory is
4515 # removed, or if the value is a relative name.
4516 test -d ./--version && rmdir ./--version
4517 MKDIR_P="$ac_install_sh -d"
4518 fi
4519 fi
4520 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4521 $as_echo "$MKDIR_P" >&6; }
4523 mkdir_p="$MKDIR_P"
4524 case $mkdir_p in
4525 [\\/$]* | ?:[\\/]*) ;;
4526 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4527 esac
4529 for ac_prog in gawk mawk nawk awk
4530 do
4531 # Extract the first word of "$ac_prog", so it can be a program name with args.
4532 set dummy $ac_prog; ac_word=$2
4533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if test "${ac_cv_prog_AWK+set}" = set; then
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$AWK"; then
4539 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_prog_AWK="$ac_prog"
4549 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4556 fi
4557 fi
4558 AWK=$ac_cv_prog_AWK
4559 if test -n "$AWK"; then
4560 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4561 $as_echo "$AWK" >&6; }
4562 else
4563 { $as_echo "$as_me:$LINENO: result: no" >&5
4564 $as_echo "no" >&6; }
4565 fi
4568 test -n "$AWK" && break
4569 done
4571 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4573 set x ${MAKE-make}
4574 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4575 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4576 $as_echo_n "(cached) " >&6
4577 else
4578 cat >conftest.make <<\_ACEOF
4579 SHELL = /bin/sh
4580 all:
4581 @echo '@@@%%%=$(MAKE)=@@@%%%'
4582 _ACEOF
4583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4585 *@@@%%%=?*=@@@%%%*)
4586 eval ac_cv_prog_make_${ac_make}_set=yes;;
4587 *)
4588 eval ac_cv_prog_make_${ac_make}_set=no;;
4589 esac
4590 rm -f conftest.make
4591 fi
4592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4593 { $as_echo "$as_me:$LINENO: result: yes" >&5
4594 $as_echo "yes" >&6; }
4595 SET_MAKE=
4596 else
4597 { $as_echo "$as_me:$LINENO: result: no" >&5
4598 $as_echo "no" >&6; }
4599 SET_MAKE="MAKE=${MAKE-make}"
4600 fi
4602 rm -rf .tst 2>/dev/null
4603 mkdir .tst 2>/dev/null
4604 if test -d .tst; then
4605 am__leading_dot=.
4606 else
4607 am__leading_dot=_
4608 fi
4609 rmdir .tst 2>/dev/null
4611 DEPDIR="${am__leading_dot}deps"
4613 ac_config_commands="$ac_config_commands depfiles"
4616 am_make=${MAKE-make}
4617 cat > confinc << 'END'
4618 am__doit:
4619 @echo this is the am__doit target
4620 .PHONY: am__doit
4621 END
4622 # If we don't find an include directive, just comment out the code.
4623 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4624 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4625 am__include="#"
4626 am__quote=
4627 _am_result=none
4628 # First try GNU make style include.
4629 echo "include confinc" > confmf
4630 # Ignore all kinds of additional output from `make'.
4631 case `$am_make -s -f confmf 2> /dev/null` in #(
4632 *the\ am__doit\ target*)
4633 am__include=include
4634 am__quote=
4635 _am_result=GNU
4636 ;;
4637 esac
4638 # Now try BSD make style include.
4639 if test "$am__include" = "#"; then
4640 echo '.include "confinc"' > confmf
4641 case `$am_make -s -f confmf 2> /dev/null` in #(
4642 *the\ am__doit\ target*)
4643 am__include=.include
4644 am__quote="\""
4645 _am_result=BSD
4646 ;;
4647 esac
4648 fi
4651 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4652 $as_echo "$_am_result" >&6; }
4653 rm -f confinc confmf
4655 # Check whether --enable-dependency-tracking was given.
4656 if test "${enable_dependency_tracking+set}" = set; then
4657 enableval=$enable_dependency_tracking;
4658 fi
4660 if test "x$enable_dependency_tracking" != xno; then
4661 am_depcomp="$ac_aux_dir/depcomp"
4662 AMDEPBACKSLASH='\'
4663 fi
4664 if test "x$enable_dependency_tracking" != xno; then
4665 AMDEP_TRUE=
4666 AMDEP_FALSE='#'
4667 else
4668 AMDEP_TRUE='#'
4669 AMDEP_FALSE=
4670 fi
4673 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4674 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4675 # is not polluted with repeated "-I."
4676 am__isrc=' -I$(srcdir)'
4677 # test to see if srcdir already configured
4678 if test -f $srcdir/config.status; then
4679 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4680 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4681 { (exit 1); exit 1; }; }
4682 fi
4683 fi
4685 # test whether we have cygpath
4686 if test -z "$CYGPATH_W"; then
4687 if (cygpath --version) >/dev/null 2>/dev/null; then
4688 CYGPATH_W='cygpath -w'
4689 else
4690 CYGPATH_W=echo
4691 fi
4692 fi
4695 # Define the identity of the package.
4696 PACKAGE='rrdtool'
4697 VERSION='1.4.7'
4700 cat >>confdefs.h <<_ACEOF
4701 #define PACKAGE "$PACKAGE"
4702 _ACEOF
4705 cat >>confdefs.h <<_ACEOF
4706 #define VERSION "$VERSION"
4707 _ACEOF
4709 # Some tools Automake needs.
4711 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4714 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4717 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4720 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4723 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4725 # We need awk for the "check" target. The system "awk" is bad on
4726 # some platforms.
4727 # Always define AMTAR for backward compatibility.
4729 AMTAR=${AMTAR-"${am_missing_run}tar"}
4731 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4736 depcc="$CC" am_compiler_list=
4738 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4739 $as_echo_n "checking dependency style of $depcc... " >&6; }
4740 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4744 # We make a subdir and do the tests there. Otherwise we can end up
4745 # making bogus files that we don't know about and never remove. For
4746 # instance it was reported that on HP-UX the gcc test will end up
4747 # making a dummy file named `D' -- because `-MD' means `put the output
4748 # in D'.
4749 mkdir conftest.dir
4750 # Copy depcomp to subdir because otherwise we won't find it if we're
4751 # using a relative directory.
4752 cp "$am_depcomp" conftest.dir
4753 cd conftest.dir
4754 # We will build objects and dependencies in a subdirectory because
4755 # it helps to detect inapplicable dependency modes. For instance
4756 # both Tru64's cc and ICC support -MD to output dependencies as a
4757 # side effect of compilation, but ICC will put the dependencies in
4758 # the current directory while Tru64 will put them in the object
4759 # directory.
4760 mkdir sub
4762 am_cv_CC_dependencies_compiler_type=none
4763 if test "$am_compiler_list" = ""; then
4764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4765 fi
4766 am__universal=false
4767 case " $depcc " in #(
4768 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4769 esac
4771 for depmode in $am_compiler_list; do
4772 # Setup a source with many dependencies, because some compilers
4773 # like to wrap large dependency lists on column 80 (with \), and
4774 # we should not choose a depcomp mode which is confused by this.
4775 #
4776 # We need to recreate these files for each test, as the compiler may
4777 # overwrite some of them when testing with obscure command lines.
4778 # This happens at least with the AIX C compiler.
4779 : > sub/conftest.c
4780 for i in 1 2 3 4 5 6; do
4781 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4782 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4783 # Solaris 8's {/usr,}/bin/sh.
4784 touch sub/conftst$i.h
4785 done
4786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4788 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4789 # mode. It turns out that the SunPro C++ compiler does not properly
4790 # handle `-M -o', and we need to detect this. Also, some Intel
4791 # versions had trouble with output in subdirs
4792 am__obj=sub/conftest.${OBJEXT-o}
4793 am__minus_obj="-o $am__obj"
4794 case $depmode in
4795 gcc)
4796 # This depmode causes a compiler race in universal mode.
4797 test "$am__universal" = false || continue
4798 ;;
4799 nosideeffect)
4800 # after this tag, mechanisms are not by side-effect, so they'll
4801 # only be used when explicitly requested
4802 if test "x$enable_dependency_tracking" = xyes; then
4803 continue
4804 else
4805 break
4806 fi
4807 ;;
4808 msvisualcpp | msvcmsys)
4809 # This compiler won't grok `-c -o', but also, the minuso test has
4810 # not run yet. These depmodes are late enough in the game, and
4811 # so weak that their functioning should not be impacted.
4812 am__obj=conftest.${OBJEXT-o}
4813 am__minus_obj=
4814 ;;
4815 none) break ;;
4816 esac
4817 if depmode=$depmode \
4818 source=sub/conftest.c object=$am__obj \
4819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4820 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4821 >/dev/null 2>conftest.err &&
4822 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4824 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4826 # icc doesn't choke on unknown options, it will just issue warnings
4827 # or remarks (even with -Werror). So we grep stderr for any message
4828 # that says an option was ignored or not supported.
4829 # When given -MP, icc 7.0 and 7.1 complain thusly:
4830 # icc: Command line warning: ignoring option '-M'; no argument required
4831 # The diagnosis changed in icc 8.0:
4832 # icc: Command line remark: option '-MP' not supported
4833 if (grep 'ignoring option' conftest.err ||
4834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4835 am_cv_CC_dependencies_compiler_type=$depmode
4836 break
4837 fi
4838 fi
4839 done
4841 cd ..
4842 rm -rf conftest.dir
4843 else
4844 am_cv_CC_dependencies_compiler_type=none
4845 fi
4847 fi
4848 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4849 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4850 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4852 if
4853 test "x$enable_dependency_tracking" != xno \
4854 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4855 am__fastdepCC_TRUE=
4856 am__fastdepCC_FALSE='#'
4857 else
4858 am__fastdepCC_TRUE='#'
4859 am__fastdepCC_FALSE=
4860 fi
4865 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4866 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4867 # Check whether --enable-maintainer-mode was given.
4868 if test "${enable_maintainer_mode+set}" = set; then
4869 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4870 else
4871 USE_MAINTAINER_MODE=no
4872 fi
4874 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4875 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4876 if test $USE_MAINTAINER_MODE = yes; then
4877 MAINTAINER_MODE_TRUE=
4878 MAINTAINER_MODE_FALSE='#'
4879 else
4880 MAINTAINER_MODE_TRUE='#'
4881 MAINTAINER_MODE_FALSE=
4882 fi
4884 MAINT=$MAINTAINER_MODE_TRUE
4887 # Enable silent build rules by default, requires at least
4888 # Automake-1.11. Disable by either passing --disable-silent-rules to
4889 # configure or passing V=1 to make
4890 # Check whether --enable-silent-rules was given.
4891 if test "${enable_silent_rules+set}" = set; then
4892 enableval=$enable_silent_rules;
4893 fi
4895 case $enable_silent_rules in
4896 yes) AM_DEFAULT_VERBOSITY=0;;
4897 no) AM_DEFAULT_VERBOSITY=1;;
4898 *) AM_DEFAULT_VERBOSITY=0;;
4899 esac
4900 AM_BACKSLASH='\'
4902 ac_config_headers="$ac_config_headers rrd_config.h"
4923 cat >>confdefs.h <<_ACEOF
4924 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
4925 _ACEOF
4928 # Check whether --enable-rrdcgi was given.
4929 if test "${enable_rrdcgi+set}" = set; then
4930 enableval=$enable_rrdcgi;
4931 else
4932 enable_rrdcgi=yes
4933 fi
4936 if test $enable_rrdcgi != no; then
4937 BUILD_RRDCGI_TRUE=
4938 BUILD_RRDCGI_FALSE='#'
4939 else
4940 BUILD_RRDCGI_TRUE='#'
4941 BUILD_RRDCGI_FALSE=
4942 fi
4945 # Check whether --enable-rrd_graph was given.
4946 if test "${enable_rrd_graph+set}" = set; then
4947 enableval=$enable_rrd_graph; enable_rrdcgi=no
4948 else
4949 enable_rrd_graph=yes
4950 fi
4953 if test $enable_rrd_graph != no; then
4955 cat >>confdefs.h <<\_ACEOF
4956 #define HAVE_RRD_GRAPH /**/
4957 _ACEOF
4959 fi
4962 # Check whether --with-rrd-default-font was given.
4963 if test "${with_rrd_default_font+set}" = set; then
4964 withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
4965 else
4967 if test -d ${WINDIR:-nodir}/cour.ttf ; then
4968 RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
4969 else
4970 RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
4971 fi
4973 fi
4976 # Check whether --enable-mmap was given.
4977 if test "${enable_mmap+set}" = set; then
4978 enableval=$enable_mmap;
4979 else
4980 enable_mmap=yes
4981 fi
4984 # Check whether --enable-pthread was given.
4985 if test "${enable_pthread+set}" = set; then
4986 enableval=$enable_pthread;
4987 else
4988 enable_pthread=yes
4989 fi
4992 # Check whether --enable-static-programs was given.
4993 if test "${enable_static_programs+set}" = set; then
4994 enableval=$enable_static_programs; case "${enableval}" in
4995 yes) staticprogs=yes ;;
4996 no) staticprogs=no ;;
4997 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
4998 $as_echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000 esac
5001 else
5002 staticprogs=no
5003 fi
5005 if test "x$staticprogs" = "xyes"; then
5006 STATIC_PROGRAMS_TRUE=
5007 STATIC_PROGRAMS_FALSE='#'
5008 else
5009 STATIC_PROGRAMS_TRUE='#'
5010 STATIC_PROGRAMS_FALSE=
5011 fi
5016 case $TERM in
5017 # for the most important terminal types we directly know the sequences
5018 xterm|xterm*|vt220|vt220*)
5019 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
5020 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
5021 ;;
5022 vt100|vt100*|cygwin)
5023 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
5024 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
5025 ;;
5026 *)
5027 T_MD=''
5028 T_ME=''
5029 ;;
5030 esac
5031 { $as_echo "$as_me:$LINENO: result: " >&5
5032 $as_echo "" >&6; }
5033 { $as_echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
5034 $as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5045 # On Suns, sometimes $CPP names a directory.
5046 if test -n "$CPP" && test -d "$CPP"; then
5047 CPP=
5048 fi
5049 if test -z "$CPP"; then
5050 if test "${ac_cv_prog_CPP+set}" = set; then
5051 $as_echo_n "(cached) " >&6
5052 else
5053 # Double quotes because CPP needs to be expanded
5054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5055 do
5056 ac_preproc_ok=false
5057 for ac_c_preproc_warn_flag in '' yes
5058 do
5059 # Use a header file that comes with gcc, so configuring glibc
5060 # with a fresh cross-compiler works.
5061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062 # <limits.h> exists even on freestanding compilers.
5063 # On the NeXT, cc -E runs the code through the compiler's parser,
5064 # not just through cpp. "Syntax error" is here to catch this case.
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #ifdef __STDC__
5072 # include <limits.h>
5073 #else
5074 # include <assert.h>
5075 #endif
5076 Syntax error
5077 _ACEOF
5078 if { (ac_try="$ac_cpp conftest.$ac_ext"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5084 $as_echo "$ac_try_echo") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null && {
5092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 }; then
5095 :
5096 else
5097 $as_echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 # Broken: fails on valid input.
5101 continue
5102 fi
5104 rm -f conftest.err conftest.$ac_ext
5106 # OK, works on sane cases. Now check whether nonexistent headers
5107 # can be detected and how.
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <ac_nonexistent.h>
5115 _ACEOF
5116 if { (ac_try="$ac_cpp conftest.$ac_ext"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5122 $as_echo "$ac_try_echo") >&5
5123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null && {
5130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 }; then
5133 # Broken: success on invalid input.
5134 continue
5135 else
5136 $as_echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 # Passes both tests.
5140 ac_preproc_ok=:
5141 break
5142 fi
5144 rm -f conftest.err conftest.$ac_ext
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then
5150 break
5151 fi
5153 done
5154 ac_cv_prog_CPP=$CPP
5156 fi
5157 CPP=$ac_cv_prog_CPP
5158 else
5159 ac_cv_prog_CPP=$CPP
5160 fi
5161 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5162 $as_echo "$CPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_c_preproc_warn_flag in '' yes
5165 do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #ifdef __STDC__
5179 # include <limits.h>
5180 #else
5181 # include <assert.h>
5182 #endif
5183 Syntax error
5184 _ACEOF
5185 if { (ac_try="$ac_cpp conftest.$ac_ext"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5191 $as_echo "$ac_try_echo") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 }; then
5202 :
5203 else
5204 $as_echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 # Broken: fails on valid input.
5208 continue
5209 fi
5211 rm -f conftest.err conftest.$ac_ext
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5222 _ACEOF
5223 if { (ac_try="$ac_cpp conftest.$ac_ext"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229 $as_echo "$ac_try_echo") >&5
5230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev/null && {
5237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 }; then
5240 # Broken: success on invalid input.
5241 continue
5242 else
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 # Passes both tests.
5247 ac_preproc_ok=:
5248 break
5249 fi
5251 rm -f conftest.err conftest.$ac_ext
5253 done
5254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5255 rm -f conftest.err conftest.$ac_ext
5256 if $ac_preproc_ok; then
5257 :
5258 else
5259 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5261 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5262 See \`config.log' for more details." >&5
5263 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5264 See \`config.log' for more details." >&2;}
5265 { (exit 1); exit 1; }; }; }
5266 fi
5268 ac_ext=c
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5274 ac_ext=c
5275 ac_cpp='$CPP $CPPFLAGS'
5276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279 if test -n "$ac_tool_prefix"; then
5280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_CC+set}" = set; then
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$CC"; then
5288 ac_cv_prog_CC="$CC" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5305 fi
5306 fi
5307 CC=$ac_cv_prog_CC
5308 if test -n "$CC"; then
5309 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5310 $as_echo "$CC" >&6; }
5311 else
5312 { $as_echo "$as_me:$LINENO: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5317 fi
5318 if test -z "$ac_cv_prog_CC"; then
5319 ac_ct_CC=$CC
5320 # Extract the first word of "gcc", so it can be a program name with args.
5321 set dummy gcc; ac_word=$2
5322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$ac_ct_CC"; then
5328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_prog_ac_ct_CC="gcc"
5338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5345 fi
5346 fi
5347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5348 if test -n "$ac_ct_CC"; then
5349 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5350 $as_echo "$ac_ct_CC" >&6; }
5351 else
5352 { $as_echo "$as_me:$LINENO: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5356 if test "x$ac_ct_CC" = x; then
5357 CC=""
5358 else
5359 case $cross_compiling:$ac_tool_warned in
5360 yes:)
5361 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5363 ac_tool_warned=yes ;;
5364 esac
5365 CC=$ac_ct_CC
5366 fi
5367 else
5368 CC="$ac_cv_prog_CC"
5369 fi
5371 if test -z "$CC"; then
5372 if test -n "$ac_tool_prefix"; then
5373 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5374 set dummy ${ac_tool_prefix}cc; ac_word=$2
5375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if test "${ac_cv_prog_CC+set}" = set; then
5378 $as_echo_n "(cached) " >&6
5379 else
5380 if test -n "$CC"; then
5381 ac_cv_prog_CC="$CC" # Let the user override the test.
5382 else
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390 ac_cv_prog_CC="${ac_tool_prefix}cc"
5391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 break 2
5393 fi
5394 done
5395 done
5396 IFS=$as_save_IFS
5398 fi
5399 fi
5400 CC=$ac_cv_prog_CC
5401 if test -n "$CC"; then
5402 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5403 $as_echo "$CC" >&6; }
5404 else
5405 { $as_echo "$as_me:$LINENO: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5410 fi
5411 fi
5412 if test -z "$CC"; then
5413 # Extract the first word of "cc", so it can be a program name with args.
5414 set dummy cc; ac_word=$2
5415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if test "${ac_cv_prog_CC+set}" = set; then
5418 $as_echo_n "(cached) " >&6
5419 else
5420 if test -n "$CC"; then
5421 ac_cv_prog_CC="$CC" # Let the user override the test.
5422 else
5423 ac_prog_rejected=no
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5432 ac_prog_rejected=yes
5433 continue
5434 fi
5435 ac_cv_prog_CC="cc"
5436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439 done
5440 done
5441 IFS=$as_save_IFS
5443 if test $ac_prog_rejected = yes; then
5444 # We found a bogon in the path, so make sure we never use it.
5445 set dummy $ac_cv_prog_CC
5446 shift
5447 if test $# != 0; then
5448 # We chose a different compiler from the bogus one.
5449 # However, it has the same basename, so the bogon will be chosen
5450 # first if we set CC to just the basename; use the full file name.
5451 shift
5452 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5453 fi
5454 fi
5455 fi
5456 fi
5457 CC=$ac_cv_prog_CC
5458 if test -n "$CC"; then
5459 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5460 $as_echo "$CC" >&6; }
5461 else
5462 { $as_echo "$as_me:$LINENO: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5467 fi
5468 if test -z "$CC"; then
5469 if test -n "$ac_tool_prefix"; then
5470 for ac_prog in cl.exe
5471 do
5472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if test "${ac_cv_prog_CC+set}" = set; then
5477 $as_echo_n "(cached) " >&6
5478 else
5479 if test -n "$CC"; then
5480 ac_cv_prog_CC="$CC" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493 done
5494 done
5495 IFS=$as_save_IFS
5497 fi
5498 fi
5499 CC=$ac_cv_prog_CC
5500 if test -n "$CC"; then
5501 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5502 $as_echo "$CC" >&6; }
5503 else
5504 { $as_echo "$as_me:$LINENO: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5509 test -n "$CC" && break
5510 done
5511 fi
5512 if test -z "$CC"; then
5513 ac_ct_CC=$CC
5514 for ac_prog in cl.exe
5515 do
5516 # Extract the first word of "$ac_prog", so it can be a program name with args.
5517 set dummy $ac_prog; ac_word=$2
5518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$ac_ct_CC"; then
5524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_ac_ct_CC="$ac_prog"
5534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537 done
5538 done
5539 IFS=$as_save_IFS
5541 fi
5542 fi
5543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5544 if test -n "$ac_ct_CC"; then
5545 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5546 $as_echo "$ac_ct_CC" >&6; }
5547 else
5548 { $as_echo "$as_me:$LINENO: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5553 test -n "$ac_ct_CC" && break
5554 done
5556 if test "x$ac_ct_CC" = x; then
5557 CC=""
5558 else
5559 case $cross_compiling:$ac_tool_warned in
5560 yes:)
5561 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5563 ac_tool_warned=yes ;;
5564 esac
5565 CC=$ac_ct_CC
5566 fi
5567 fi
5569 fi
5572 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5574 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5575 See \`config.log' for more details." >&5
5576 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5577 See \`config.log' for more details." >&2;}
5578 { (exit 1); exit 1; }; }; }
5580 # Provide some information about the compiler.
5581 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5582 set X $ac_compile
5583 ac_compiler=$2
5584 { (ac_try="$ac_compiler --version >&5"
5585 case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5590 $as_echo "$ac_try_echo") >&5
5591 (eval "$ac_compiler --version >&5") 2>&5
5592 ac_status=$?
5593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }
5595 { (ac_try="$ac_compiler -v >&5"
5596 case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599 esac
5600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5601 $as_echo "$ac_try_echo") >&5
5602 (eval "$ac_compiler -v >&5") 2>&5
5603 ac_status=$?
5604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }
5606 { (ac_try="$ac_compiler -V >&5"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612 $as_echo "$ac_try_echo") >&5
5613 (eval "$ac_compiler -V >&5") 2>&5
5614 ac_status=$?
5615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }
5618 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5621 $as_echo_n "(cached) " >&6
5622 else
5623 cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h. */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5630 int
5631 main ()
5632 {
5633 #ifndef __GNUC__
5634 choke me
5635 #endif
5637 ;
5638 return 0;
5639 }
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (ac_try="$ac_compile"
5643 case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646 esac
5647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5648 $as_echo "$ac_try_echo") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && {
5656 test -z "$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5658 } && test -s conftest.$ac_objext; then
5659 ac_compiler_gnu=yes
5660 else
5661 $as_echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5664 ac_compiler_gnu=no
5665 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5670 fi
5671 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5673 if test $ac_compiler_gnu = yes; then
5674 GCC=yes
5675 else
5676 GCC=
5677 fi
5678 ac_test_CFLAGS=${CFLAGS+set}
5679 ac_save_CFLAGS=$CFLAGS
5680 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5682 if test "${ac_cv_prog_cc_g+set}" = set; then
5683 $as_echo_n "(cached) " >&6
5684 else
5685 ac_save_c_werror_flag=$ac_c_werror_flag
5686 ac_c_werror_flag=yes
5687 ac_cv_prog_cc_g=no
5688 CFLAGS="-g"
5689 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h. */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5696 int
5697 main ()
5698 {
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (ac_try="$ac_compile"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5711 $as_echo "$ac_try_echo") >&5
5712 (eval "$ac_compile") 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && {
5719 test -z "$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5721 } && test -s conftest.$ac_objext; then
5722 ac_cv_prog_cc_g=yes
5723 else
5724 $as_echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5727 CFLAGS=""
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5735 int
5736 main ()
5737 {
5739 ;
5740 return 0;
5741 }
5742 _ACEOF
5743 rm -f conftest.$ac_objext
5744 if { (ac_try="$ac_compile"
5745 case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748 esac
5749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5750 $as_echo "$ac_try_echo") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.$ac_objext; then
5761 :
5762 else
5763 $as_echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5766 ac_c_werror_flag=$ac_save_c_werror_flag
5767 CFLAGS="-g"
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5775 int
5776 main ()
5777 {
5779 ;
5780 return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5790 $as_echo "$ac_try_echo") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest.$ac_objext; then
5801 ac_cv_prog_cc_g=yes
5802 else
5803 $as_echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5807 fi
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 fi
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 ac_c_werror_flag=$ac_save_c_werror_flag
5817 fi
5818 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5819 $as_echo "$ac_cv_prog_cc_g" >&6; }
5820 if test "$ac_test_CFLAGS" = set; then
5821 CFLAGS=$ac_save_CFLAGS
5822 elif test $ac_cv_prog_cc_g = yes; then
5823 if test "$GCC" = yes; then
5824 CFLAGS="-g -O2"
5825 else
5826 CFLAGS="-g"
5827 fi
5828 else
5829 if test "$GCC" = yes; then
5830 CFLAGS="-O2"
5831 else
5832 CFLAGS=
5833 fi
5834 fi
5835 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5836 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5837 if test "${ac_cv_prog_cc_c89+set}" = set; then
5838 $as_echo_n "(cached) " >&6
5839 else
5840 ac_cv_prog_cc_c89=no
5841 ac_save_CC=$CC
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <stdarg.h>
5849 #include <stdio.h>
5850 #include <sys/types.h>
5851 #include <sys/stat.h>
5852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5853 struct buf { int x; };
5854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5855 static char *e (p, i)
5856 char **p;
5857 int i;
5858 {
5859 return p[i];
5860 }
5861 static char *f (char * (*g) (char **, int), char **p, ...)
5862 {
5863 char *s;
5864 va_list v;
5865 va_start (v,p);
5866 s = g (p, va_arg (v,int));
5867 va_end (v);
5868 return s;
5869 }
5871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5872 function prototypes and stuff, but not '\xHH' hex character constants.
5873 These don't provoke an error unfortunately, instead are silently treated
5874 as 'x'. The following induces an error, until -std is added to get
5875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5876 array size at least. It's necessary to write '\x00'==0 to get something
5877 that's true only with -std. */
5878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5881 inside strings and character constants. */
5882 #define FOO(x) 'x'
5883 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5885 int test (int i, double x);
5886 struct s1 {int (*f) (int a);};
5887 struct s2 {int (*f) (double a);};
5888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5889 int argc;
5890 char **argv;
5891 int
5892 main ()
5893 {
5894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5901 do
5902 CC="$ac_save_CC $ac_arg"
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5910 $as_echo "$ac_try_echo") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && {
5918 test -z "$ac_c_werror_flag" ||
5919 test ! -s conftest.err
5920 } && test -s conftest.$ac_objext; then
5921 ac_cv_prog_cc_c89=$ac_arg
5922 else
5923 $as_echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5927 fi
5929 rm -f core conftest.err conftest.$ac_objext
5930 test "x$ac_cv_prog_cc_c89" != "xno" && break
5931 done
5932 rm -f conftest.$ac_ext
5933 CC=$ac_save_CC
5935 fi
5936 # AC_CACHE_VAL
5937 case "x$ac_cv_prog_cc_c89" in
5938 x)
5939 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5940 $as_echo "none needed" >&6; } ;;
5941 xno)
5942 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5943 $as_echo "unsupported" >&6; } ;;
5944 *)
5945 CC="$CC $ac_cv_prog_cc_c89"
5946 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5948 esac
5951 ac_ext=c
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5957 if test "x$CC" != xcc; then
5958 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5959 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5960 else
5961 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5962 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5963 fi
5964 set dummy $CC; ac_cc=`$as_echo "$2" |
5965 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5966 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5967 $as_echo_n "(cached) " >&6
5968 else
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5976 int
5977 main ()
5978 {
5980 ;
5981 return 0;
5982 }
5983 _ACEOF
5984 # Make sure it works both with $CC and with simple cc.
5985 # We do the test twice because some compilers refuse to overwrite an
5986 # existing .o file with -o, though they will create one.
5987 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5988 rm -f conftest2.*
5989 if { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5994 $as_echo "$ac_try_echo") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 test -f conftest2.$ac_objext && { (case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002 esac
6003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6004 $as_echo "$ac_try_echo") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); };
6009 then
6010 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6011 if test "x$CC" != xcc; then
6012 # Test first that cc exists at all.
6013 if { ac_try='cc -c conftest.$ac_ext >&5'
6014 { (case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019 $as_echo "$ac_try_echo") >&5
6020 (eval "$ac_try") 2>&5
6021 ac_status=$?
6022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6025 rm -f conftest2.*
6026 if { (case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6031 $as_echo "$ac_try_echo") >&5
6032 (eval "$ac_try") 2>&5
6033 ac_status=$?
6034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 test -f conftest2.$ac_objext && { (case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039 esac
6040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6041 $as_echo "$ac_try_echo") >&5
6042 (eval "$ac_try") 2>&5
6043 ac_status=$?
6044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); };
6046 then
6047 # cc works too.
6048 :
6049 else
6050 # cc exists but doesn't like -o.
6051 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6052 fi
6053 fi
6054 fi
6055 else
6056 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6057 fi
6058 rm -f core conftest*
6060 fi
6061 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6062 { $as_echo "$as_me:$LINENO: result: yes" >&5
6063 $as_echo "yes" >&6; }
6064 else
6065 { $as_echo "$as_me:$LINENO: result: no" >&5
6066 $as_echo "no" >&6; }
6068 cat >>confdefs.h <<\_ACEOF
6069 #define NO_MINUS_C_MINUS_O 1
6070 _ACEOF
6072 fi
6074 # FIXME: we rely on the cache variable name because
6075 # there is no other way.
6076 set dummy $CC
6077 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6078 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6079 if test "$am_t" != yes; then
6080 # Losing compiler, so override with the script.
6081 # FIXME: It is wrong to rewrite CC.
6082 # But if we don't then we get into trouble of one sort or another.
6083 # A longer-term fix would be to have automake use am__CC in this case,
6084 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6085 CC="$am_aux_dir/compile $CC"
6086 fi
6089 case `pwd` in
6090 *\ * | *\ *)
6091 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6092 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6093 esac
6097 macro_version='2.2.6'
6098 macro_revision='1.3012'
6112 ltmain="$ac_aux_dir/ltmain.sh"
6114 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6115 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6116 if test "${ac_cv_path_SED+set}" = set; then
6117 $as_echo_n "(cached) " >&6
6118 else
6119 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6120 for ac_i in 1 2 3 4 5 6 7; do
6121 ac_script="$ac_script$as_nl$ac_script"
6122 done
6123 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6124 $as_unset ac_script || ac_script=
6125 if test -z "$SED"; then
6126 ac_path_SED_found=false
6127 # Loop through the user's path and test for each of PROGNAME-LIST
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_prog in sed gsed; do
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6136 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6137 # Check for GNU ac_path_SED and select it if it is found.
6138 # Check for GNU $ac_path_SED
6139 case `"$ac_path_SED" --version 2>&1` in
6140 *GNU*)
6141 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6142 *)
6143 ac_count=0
6144 $as_echo_n 0123456789 >"conftest.in"
6145 while :
6146 do
6147 cat "conftest.in" "conftest.in" >"conftest.tmp"
6148 mv "conftest.tmp" "conftest.in"
6149 cp "conftest.in" "conftest.nl"
6150 $as_echo '' >> "conftest.nl"
6151 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153 ac_count=`expr $ac_count + 1`
6154 if test $ac_count -gt ${ac_path_SED_max-0}; then
6155 # Best one so far, save it but keep looking for a better one
6156 ac_cv_path_SED="$ac_path_SED"
6157 ac_path_SED_max=$ac_count
6158 fi
6159 # 10*(2^10) chars as input seems more than enough
6160 test $ac_count -gt 10 && break
6161 done
6162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6163 esac
6165 $ac_path_SED_found && break 3
6166 done
6167 done
6168 done
6169 IFS=$as_save_IFS
6170 if test -z "$ac_cv_path_SED"; then
6171 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6172 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6173 { (exit 1); exit 1; }; }
6174 fi
6175 else
6176 ac_cv_path_SED=$SED
6177 fi
6179 fi
6180 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6181 $as_echo "$ac_cv_path_SED" >&6; }
6182 SED="$ac_cv_path_SED"
6183 rm -f conftest.sed
6185 test -z "$SED" && SED=sed
6186 Xsed="$SED -e 1s/^X//"
6198 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6199 $as_echo_n "checking for fgrep... " >&6; }
6200 if test "${ac_cv_path_FGREP+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6204 then ac_cv_path_FGREP="$GREP -F"
6205 else
6206 if test -z "$FGREP"; then
6207 ac_path_FGREP_found=false
6208 # Loop through the user's path and test for each of PROGNAME-LIST
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6211 do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_prog in fgrep; do
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6217 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6218 # Check for GNU ac_path_FGREP and select it if it is found.
6219 # Check for GNU $ac_path_FGREP
6220 case `"$ac_path_FGREP" --version 2>&1` in
6221 *GNU*)
6222 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6223 *)
6224 ac_count=0
6225 $as_echo_n 0123456789 >"conftest.in"
6226 while :
6227 do
6228 cat "conftest.in" "conftest.in" >"conftest.tmp"
6229 mv "conftest.tmp" "conftest.in"
6230 cp "conftest.in" "conftest.nl"
6231 $as_echo 'FGREP' >> "conftest.nl"
6232 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6234 ac_count=`expr $ac_count + 1`
6235 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6236 # Best one so far, save it but keep looking for a better one
6237 ac_cv_path_FGREP="$ac_path_FGREP"
6238 ac_path_FGREP_max=$ac_count
6239 fi
6240 # 10*(2^10) chars as input seems more than enough
6241 test $ac_count -gt 10 && break
6242 done
6243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6244 esac
6246 $ac_path_FGREP_found && break 3
6247 done
6248 done
6249 done
6250 IFS=$as_save_IFS
6251 if test -z "$ac_cv_path_FGREP"; then
6252 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6253 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6254 { (exit 1); exit 1; }; }
6255 fi
6256 else
6257 ac_cv_path_FGREP=$FGREP
6258 fi
6260 fi
6261 fi
6262 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6263 $as_echo "$ac_cv_path_FGREP" >&6; }
6264 FGREP="$ac_cv_path_FGREP"
6267 test -z "$GREP" && GREP=grep
6287 # Check whether --with-gnu-ld was given.
6288 if test "${with_gnu_ld+set}" = set; then
6289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6290 else
6291 with_gnu_ld=no
6292 fi
6294 ac_prog=ld
6295 if test "$GCC" = yes; then
6296 # Check if gcc -print-prog-name=ld gives a path.
6297 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6298 $as_echo_n "checking for ld used by $CC... " >&6; }
6299 case $host in
6300 *-*-mingw*)
6301 # gcc leaves a trailing carriage return which upsets mingw
6302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6303 *)
6304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6305 esac
6306 case $ac_prog in
6307 # Accept absolute paths.
6308 [\\/]* | ?:[\\/]*)
6309 re_direlt='/[^/][^/]*/\.\./'
6310 # Canonicalize the pathname of ld
6311 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6312 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6313 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6314 done
6315 test -z "$LD" && LD="$ac_prog"
6316 ;;
6317 "")
6318 # If it fails, then pretend we aren't using GCC.
6319 ac_prog=ld
6320 ;;
6321 *)
6322 # If it is relative, then search for the first ld in PATH.
6323 with_gnu_ld=unknown
6324 ;;
6325 esac
6326 elif test "$with_gnu_ld" = yes; then
6327 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6328 $as_echo_n "checking for GNU ld... " >&6; }
6329 else
6330 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6331 $as_echo_n "checking for non-GNU ld... " >&6; }
6332 fi
6333 if test "${lt_cv_path_LD+set}" = set; then
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -z "$LD"; then
6337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6338 for ac_dir in $PATH; do
6339 IFS="$lt_save_ifs"
6340 test -z "$ac_dir" && ac_dir=.
6341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6342 lt_cv_path_LD="$ac_dir/$ac_prog"
6343 # Check to see if the program is GNU ld. I'd rather use --version,
6344 # but apparently some variants of GNU ld only accept -v.
6345 # Break only if it was the GNU/non-GNU ld that we prefer.
6346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6347 *GNU* | *'with BFD'*)
6348 test "$with_gnu_ld" != no && break
6349 ;;
6350 *)
6351 test "$with_gnu_ld" != yes && break
6352 ;;
6353 esac
6354 fi
6355 done
6356 IFS="$lt_save_ifs"
6357 else
6358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6359 fi
6360 fi
6362 LD="$lt_cv_path_LD"
6363 if test -n "$LD"; then
6364 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6365 $as_echo "$LD" >&6; }
6366 else
6367 { $as_echo "$as_me:$LINENO: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6371 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6372 { (exit 1); exit 1; }; }
6373 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6376 $as_echo_n "(cached) " >&6
6377 else
6378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6379 case `$LD -v 2>&1 </dev/null` in
6380 *GNU* | *'with BFD'*)
6381 lt_cv_prog_gnu_ld=yes
6382 ;;
6383 *)
6384 lt_cv_prog_gnu_ld=no
6385 ;;
6386 esac
6387 fi
6388 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6390 with_gnu_ld=$lt_cv_prog_gnu_ld
6400 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6401 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6402 if test "${lt_cv_path_NM+set}" = set; then
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$NM"; then
6406 # Let the user override the test.
6407 lt_cv_path_NM="$NM"
6408 else
6409 lt_nm_to_check="${ac_tool_prefix}nm"
6410 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6411 lt_nm_to_check="$lt_nm_to_check nm"
6412 fi
6413 for lt_tmp_nm in $lt_nm_to_check; do
6414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6415 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6416 IFS="$lt_save_ifs"
6417 test -z "$ac_dir" && ac_dir=.
6418 tmp_nm="$ac_dir/$lt_tmp_nm"
6419 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6420 # Check to see if the nm accepts a BSD-compat flag.
6421 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6422 # nm: unknown option "B" ignored
6423 # Tru64's nm complains that /dev/null is an invalid object file
6424 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6425 */dev/null* | *'Invalid file or object type'*)
6426 lt_cv_path_NM="$tmp_nm -B"
6427 break
6428 ;;
6429 *)
6430 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6431 */dev/null*)
6432 lt_cv_path_NM="$tmp_nm -p"
6433 break
6434 ;;
6435 *)
6436 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6437 continue # so that we can try to find one that supports BSD flags
6438 ;;
6439 esac
6440 ;;
6441 esac
6442 fi
6443 done
6444 IFS="$lt_save_ifs"
6445 done
6446 : ${lt_cv_path_NM=no}
6447 fi
6448 fi
6449 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6450 $as_echo "$lt_cv_path_NM" >&6; }
6451 if test "$lt_cv_path_NM" != "no"; then
6452 NM="$lt_cv_path_NM"
6453 else
6454 # Didn't find any BSD compatible name lister, look for dumpbin.
6455 if test -n "$ac_tool_prefix"; then
6456 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6457 do
6458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6463 $as_echo_n "(cached) " >&6
6464 else
6465 if test -n "$DUMPBIN"; then
6466 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6483 fi
6484 fi
6485 DUMPBIN=$ac_cv_prog_DUMPBIN
6486 if test -n "$DUMPBIN"; then
6487 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6488 $as_echo "$DUMPBIN" >&6; }
6489 else
6490 { $as_echo "$as_me:$LINENO: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6495 test -n "$DUMPBIN" && break
6496 done
6497 fi
6498 if test -z "$DUMPBIN"; then
6499 ac_ct_DUMPBIN=$DUMPBIN
6500 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6501 do
6502 # Extract the first word of "$ac_prog", so it can be a program name with args.
6503 set dummy $ac_prog; ac_word=$2
6504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6507 $as_echo_n "(cached) " >&6
6508 else
6509 if test -n "$ac_ct_DUMPBIN"; then
6510 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6522 fi
6523 done
6524 done
6525 IFS=$as_save_IFS
6527 fi
6528 fi
6529 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6530 if test -n "$ac_ct_DUMPBIN"; then
6531 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6532 $as_echo "$ac_ct_DUMPBIN" >&6; }
6533 else
6534 { $as_echo "$as_me:$LINENO: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6539 test -n "$ac_ct_DUMPBIN" && break
6540 done
6542 if test "x$ac_ct_DUMPBIN" = x; then
6543 DUMPBIN=":"
6544 else
6545 case $cross_compiling:$ac_tool_warned in
6546 yes:)
6547 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6549 ac_tool_warned=yes ;;
6550 esac
6551 DUMPBIN=$ac_ct_DUMPBIN
6552 fi
6553 fi
6556 if test "$DUMPBIN" != ":"; then
6557 NM="$DUMPBIN"
6558 fi
6559 fi
6560 test -z "$NM" && NM=nm
6567 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6568 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6569 if test "${lt_cv_nm_interface+set}" = set; then
6570 $as_echo_n "(cached) " >&6
6571 else
6572 lt_cv_nm_interface="BSD nm"
6573 echo "int some_variable = 0;" > conftest.$ac_ext
6574 (eval echo "\"\$as_me:6574: $ac_compile\"" >&5)
6575 (eval "$ac_compile" 2>conftest.err)
6576 cat conftest.err >&5
6577 (eval echo "\"\$as_me:6577: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6578 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6579 cat conftest.err >&5
6580 (eval echo "\"\$as_me:6580: output\"" >&5)
6581 cat conftest.out >&5
6582 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6583 lt_cv_nm_interface="MS dumpbin"
6584 fi
6585 rm -f conftest*
6586 fi
6587 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6588 $as_echo "$lt_cv_nm_interface" >&6; }
6590 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6591 $as_echo_n "checking whether ln -s works... " >&6; }
6592 LN_S=$as_ln_s
6593 if test "$LN_S" = "ln -s"; then
6594 { $as_echo "$as_me:$LINENO: result: yes" >&5
6595 $as_echo "yes" >&6; }
6596 else
6597 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6598 $as_echo "no, using $LN_S" >&6; }
6599 fi
6601 # find the maximum length of command line arguments
6602 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6603 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6604 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6605 $as_echo_n "(cached) " >&6
6606 else
6607 i=0
6608 teststring="ABCD"
6610 case $build_os in
6611 msdosdjgpp*)
6612 # On DJGPP, this test can blow up pretty badly due to problems in libc
6613 # (any single argument exceeding 2000 bytes causes a buffer overrun
6614 # during glob expansion). Even if it were fixed, the result of this
6615 # check would be larger than it should be.
6616 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6617 ;;
6619 gnu*)
6620 # Under GNU Hurd, this test is not required because there is
6621 # no limit to the length of command line arguments.
6622 # Libtool will interpret -1 as no limit whatsoever
6623 lt_cv_sys_max_cmd_len=-1;
6624 ;;
6626 cygwin* | mingw* | cegcc*)
6627 # On Win9x/ME, this test blows up -- it succeeds, but takes
6628 # about 5 minutes as the teststring grows exponentially.
6629 # Worse, since 9x/ME are not pre-emptively multitasking,
6630 # you end up with a "frozen" computer, even though with patience
6631 # the test eventually succeeds (with a max line length of 256k).
6632 # Instead, let's just punt: use the minimum linelength reported by
6633 # all of the supported platforms: 8192 (on NT/2K/XP).
6634 lt_cv_sys_max_cmd_len=8192;
6635 ;;
6637 amigaos*)
6638 # On AmigaOS with pdksh, this test takes hours, literally.
6639 # So we just punt and use a minimum line length of 8192.
6640 lt_cv_sys_max_cmd_len=8192;
6641 ;;
6643 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6644 # This has been around since 386BSD, at least. Likely further.
6645 if test -x /sbin/sysctl; then
6646 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6647 elif test -x /usr/sbin/sysctl; then
6648 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6649 else
6650 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6651 fi
6652 # And add a safety zone
6653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6655 ;;
6657 interix*)
6658 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6659 lt_cv_sys_max_cmd_len=196608
6660 ;;
6662 osf*)
6663 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6664 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6665 # nice to cause kernel panics so lets avoid the loop below.
6666 # First set a reasonable default.
6667 lt_cv_sys_max_cmd_len=16384
6668 #
6669 if test -x /sbin/sysconfig; then
6670 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6671 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6672 esac
6673 fi
6674 ;;
6675 sco3.2v5*)
6676 lt_cv_sys_max_cmd_len=102400
6677 ;;
6678 sysv5* | sco5v6* | sysv4.2uw2*)
6679 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6680 if test -n "$kargmax"; then
6681 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6682 else
6683 lt_cv_sys_max_cmd_len=32768
6684 fi
6685 ;;
6686 *)
6687 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6688 if test -n "$lt_cv_sys_max_cmd_len"; then
6689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6691 else
6692 # Make teststring a little bigger before we do anything with it.
6693 # a 1K string should be a reasonable start.
6694 for i in 1 2 3 4 5 6 7 8 ; do
6695 teststring=$teststring$teststring
6696 done
6697 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6698 # If test is not a shell built-in, we'll probably end up computing a
6699 # maximum length that is only half of the actual maximum length, but
6700 # we can't tell.
6701 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6702 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6703 test $i != 17 # 1/2 MB should be enough
6704 do
6705 i=`expr $i + 1`
6706 teststring=$teststring$teststring
6707 done
6708 # Only check the string length outside the loop.
6709 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6710 teststring=
6711 # Add a significant safety factor because C++ compilers can tack on
6712 # massive amounts of additional arguments before passing them to the
6713 # linker. It appears as though 1/2 is a usable value.
6714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6715 fi
6716 ;;
6717 esac
6719 fi
6721 if test -n $lt_cv_sys_max_cmd_len ; then
6722 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6723 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6724 else
6725 { $as_echo "$as_me:$LINENO: result: none" >&5
6726 $as_echo "none" >&6; }
6727 fi
6728 max_cmd_len=$lt_cv_sys_max_cmd_len
6735 : ${CP="cp -f"}
6736 : ${MV="mv -f"}
6737 : ${RM="rm -f"}
6739 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6740 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6741 # Try some XSI features
6742 xsi_shell=no
6743 ( _lt_dummy="a/b/c"
6744 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6745 = c,a/b,, \
6746 && eval 'test $(( 1 + 1 )) -eq 2 \
6747 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6748 && xsi_shell=yes
6749 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6750 $as_echo "$xsi_shell" >&6; }
6753 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6754 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6755 lt_shell_append=no
6756 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6757 >/dev/null 2>&1 \
6758 && lt_shell_append=yes
6759 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6760 $as_echo "$lt_shell_append" >&6; }
6763 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6764 lt_unset=unset
6765 else
6766 lt_unset=false
6767 fi
6773 # test EBCDIC or ASCII
6774 case `echo X|tr X '\101'` in
6775 A) # ASCII based system
6776 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6777 lt_SP2NL='tr \040 \012'
6778 lt_NL2SP='tr \015\012 \040\040'
6779 ;;
6780 *) # EBCDIC based system
6781 lt_SP2NL='tr \100 \n'
6782 lt_NL2SP='tr \r\n \100\100'
6783 ;;
6784 esac
6794 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6795 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6796 if test "${lt_cv_ld_reload_flag+set}" = set; then
6797 $as_echo_n "(cached) " >&6
6798 else
6799 lt_cv_ld_reload_flag='-r'
6800 fi
6801 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6802 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6803 reload_flag=$lt_cv_ld_reload_flag
6804 case $reload_flag in
6805 "" | " "*) ;;
6806 *) reload_flag=" $reload_flag" ;;
6807 esac
6808 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6809 case $host_os in
6810 darwin*)
6811 if test "$GCC" = yes; then
6812 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6813 else
6814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6815 fi
6816 ;;
6817 esac
6827 if test -n "$ac_tool_prefix"; then
6828 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6829 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$OBJDUMP"; then
6836 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6853 fi
6854 fi
6855 OBJDUMP=$ac_cv_prog_OBJDUMP
6856 if test -n "$OBJDUMP"; then
6857 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6858 $as_echo "$OBJDUMP" >&6; }
6859 else
6860 { $as_echo "$as_me:$LINENO: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6865 fi
6866 if test -z "$ac_cv_prog_OBJDUMP"; then
6867 ac_ct_OBJDUMP=$OBJDUMP
6868 # Extract the first word of "objdump", so it can be a program name with args.
6869 set dummy objdump; ac_word=$2
6870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6873 $as_echo_n "(cached) " >&6
6874 else
6875 if test -n "$ac_ct_OBJDUMP"; then
6876 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6893 fi
6894 fi
6895 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6896 if test -n "$ac_ct_OBJDUMP"; then
6897 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6898 $as_echo "$ac_ct_OBJDUMP" >&6; }
6899 else
6900 { $as_echo "$as_me:$LINENO: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6904 if test "x$ac_ct_OBJDUMP" = x; then
6905 OBJDUMP="false"
6906 else
6907 case $cross_compiling:$ac_tool_warned in
6908 yes:)
6909 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911 ac_tool_warned=yes ;;
6912 esac
6913 OBJDUMP=$ac_ct_OBJDUMP
6914 fi
6915 else
6916 OBJDUMP="$ac_cv_prog_OBJDUMP"
6917 fi
6919 test -z "$OBJDUMP" && OBJDUMP=objdump
6929 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6930 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6931 if test "${lt_cv_deplibs_check_method+set}" = set; then
6932 $as_echo_n "(cached) " >&6
6933 else
6934 lt_cv_file_magic_cmd='$MAGIC_CMD'
6935 lt_cv_file_magic_test_file=
6936 lt_cv_deplibs_check_method='unknown'
6937 # Need to set the preceding variable on all platforms that support
6938 # interlibrary dependencies.
6939 # 'none' -- dependencies not supported.
6940 # `unknown' -- same as none, but documents that we really don't know.
6941 # 'pass_all' -- all dependencies passed with no checks.
6942 # 'test_compile' -- check by making test program.
6943 # 'file_magic [[regex]]' -- check by looking for files in library path
6944 # which responds to the $file_magic_cmd with a given extended regex.
6945 # If you have `file' or equivalent on your system and you're not sure
6946 # whether `pass_all' will *always* work, you probably want this one.
6948 case $host_os in
6949 aix[4-9]*)
6950 lt_cv_deplibs_check_method=pass_all
6951 ;;
6953 beos*)
6954 lt_cv_deplibs_check_method=pass_all
6955 ;;
6957 bsdi[45]*)
6958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6959 lt_cv_file_magic_cmd='/usr/bin/file -L'
6960 lt_cv_file_magic_test_file=/shlib/libc.so
6961 ;;
6963 cygwin*)
6964 # func_win32_libid is a shell function defined in ltmain.sh
6965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6966 lt_cv_file_magic_cmd='func_win32_libid'
6967 ;;
6969 mingw* | pw32*)
6970 # Base MSYS/MinGW do not provide the 'file' command needed by
6971 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6972 # unless we find 'file', for example because we are cross-compiling.
6973 if ( file / ) >/dev/null 2>&1; then
6974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6975 lt_cv_file_magic_cmd='func_win32_libid'
6976 else
6977 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6978 lt_cv_file_magic_cmd='$OBJDUMP -f'
6979 fi
6980 ;;
6982 cegcc)
6983 # use the weaker test based on 'objdump'. See mingw*.
6984 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6985 lt_cv_file_magic_cmd='$OBJDUMP -f'
6986 ;;
6988 darwin* | rhapsody*)
6989 lt_cv_deplibs_check_method=pass_all
6990 ;;
6992 freebsd* | dragonfly*)
6993 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6994 case $host_cpu in
6995 i*86 )
6996 # Not sure whether the presence of OpenBSD here was a mistake.
6997 # Let's accept both of them until this is cleared up.
6998 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6999 lt_cv_file_magic_cmd=/usr/bin/file
7000 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7001 ;;
7002 esac
7003 else
7004 lt_cv_deplibs_check_method=pass_all
7005 fi
7006 ;;
7008 gnu*)
7009 lt_cv_deplibs_check_method=pass_all
7010 ;;
7012 hpux10.20* | hpux11*)
7013 lt_cv_file_magic_cmd=/usr/bin/file
7014 case $host_cpu in
7015 ia64*)
7016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7018 ;;
7019 hppa*64*)
7020 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]'
7021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7022 ;;
7023 *)
7024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7026 ;;
7027 esac
7028 ;;
7030 interix[3-9]*)
7031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7033 ;;
7035 irix5* | irix6* | nonstopux*)
7036 case $LD in
7037 *-32|*"-32 ") libmagic=32-bit;;
7038 *-n32|*"-n32 ") libmagic=N32;;
7039 *-64|*"-64 ") libmagic=64-bit;;
7040 *) libmagic=never-match;;
7041 esac
7042 lt_cv_deplibs_check_method=pass_all
7043 ;;
7045 # This must be Linux ELF.
7046 linux* | k*bsd*-gnu)
7047 lt_cv_deplibs_check_method=pass_all
7048 ;;
7050 netbsd*)
7051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7053 else
7054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7055 fi
7056 ;;
7058 newos6*)
7059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7060 lt_cv_file_magic_cmd=/usr/bin/file
7061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7062 ;;
7064 *nto* | *qnx*)
7065 lt_cv_deplibs_check_method=pass_all
7066 ;;
7068 openbsd*)
7069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7071 else
7072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7073 fi
7074 ;;
7076 osf3* | osf4* | osf5*)
7077 lt_cv_deplibs_check_method=pass_all
7078 ;;
7080 rdos*)
7081 lt_cv_deplibs_check_method=pass_all
7082 ;;
7084 solaris*)
7085 lt_cv_deplibs_check_method=pass_all
7086 ;;
7088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7089 lt_cv_deplibs_check_method=pass_all
7090 ;;
7092 sysv4 | sysv4.3*)
7093 case $host_vendor in
7094 motorola)
7095 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]'
7096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7097 ;;
7098 ncr)
7099 lt_cv_deplibs_check_method=pass_all
7100 ;;
7101 sequent)
7102 lt_cv_file_magic_cmd='/bin/file'
7103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7104 ;;
7105 sni)
7106 lt_cv_file_magic_cmd='/bin/file'
7107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7108 lt_cv_file_magic_test_file=/lib/libc.so
7109 ;;
7110 siemens)
7111 lt_cv_deplibs_check_method=pass_all
7112 ;;
7113 pc)
7114 lt_cv_deplibs_check_method=pass_all
7115 ;;
7116 esac
7117 ;;
7119 tpf*)
7120 lt_cv_deplibs_check_method=pass_all
7121 ;;
7122 esac
7124 fi
7125 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7126 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7127 file_magic_cmd=$lt_cv_file_magic_cmd
7128 deplibs_check_method=$lt_cv_deplibs_check_method
7129 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7144 set dummy ${ac_tool_prefix}ar; ac_word=$2
7145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if test "${ac_cv_prog_AR+set}" = set; then
7148 $as_echo_n "(cached) " >&6
7149 else
7150 if test -n "$AR"; then
7151 ac_cv_prog_AR="$AR" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_AR="${ac_tool_prefix}ar"
7161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164 done
7165 done
7166 IFS=$as_save_IFS
7168 fi
7169 fi
7170 AR=$ac_cv_prog_AR
7171 if test -n "$AR"; then
7172 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7173 $as_echo "$AR" >&6; }
7174 else
7175 { $as_echo "$as_me:$LINENO: result: no" >&5
7176 $as_echo "no" >&6; }
7177 fi
7180 fi
7181 if test -z "$ac_cv_prog_AR"; then
7182 ac_ct_AR=$AR
7183 # Extract the first word of "ar", so it can be a program name with args.
7184 set dummy ar; ac_word=$2
7185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7188 $as_echo_n "(cached) " >&6
7189 else
7190 if test -n "$ac_ct_AR"; then
7191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_prog_ac_ct_AR="ar"
7201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7208 fi
7209 fi
7210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7211 if test -n "$ac_ct_AR"; then
7212 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7213 $as_echo "$ac_ct_AR" >&6; }
7214 else
7215 { $as_echo "$as_me:$LINENO: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7219 if test "x$ac_ct_AR" = x; then
7220 AR="false"
7221 else
7222 case $cross_compiling:$ac_tool_warned in
7223 yes:)
7224 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226 ac_tool_warned=yes ;;
7227 esac
7228 AR=$ac_ct_AR
7229 fi
7230 else
7231 AR="$ac_cv_prog_AR"
7232 fi
7234 test -z "$AR" && AR=ar
7235 test -z "$AR_FLAGS" && AR_FLAGS=cru
7247 if test -n "$ac_tool_prefix"; then
7248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}strip; ac_word=$2
7250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if test "${ac_cv_prog_STRIP+set}" = set; then
7253 $as_echo_n "(cached) " >&6
7254 else
7255 if test -n "$STRIP"; then
7256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7273 fi
7274 fi
7275 STRIP=$ac_cv_prog_STRIP
7276 if test -n "$STRIP"; then
7277 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7278 $as_echo "$STRIP" >&6; }
7279 else
7280 { $as_echo "$as_me:$LINENO: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7285 fi
7286 if test -z "$ac_cv_prog_STRIP"; then
7287 ac_ct_STRIP=$STRIP
7288 # Extract the first word of "strip", so it can be a program name with args.
7289 set dummy strip; ac_word=$2
7290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7293 $as_echo_n "(cached) " >&6
7294 else
7295 if test -n "$ac_ct_STRIP"; then
7296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_prog_ac_ct_STRIP="strip"
7306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 break 2
7308 fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7313 fi
7314 fi
7315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7316 if test -n "$ac_ct_STRIP"; then
7317 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7318 $as_echo "$ac_ct_STRIP" >&6; }
7319 else
7320 { $as_echo "$as_me:$LINENO: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7324 if test "x$ac_ct_STRIP" = x; then
7325 STRIP=":"
7326 else
7327 case $cross_compiling:$ac_tool_warned in
7328 yes:)
7329 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7332 esac
7333 STRIP=$ac_ct_STRIP
7334 fi
7335 else
7336 STRIP="$ac_cv_prog_STRIP"
7337 fi
7339 test -z "$STRIP" && STRIP=:
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_RANLIB+set}" = set; then
7352 $as_echo_n "(cached) " >&6
7353 else
7354 if test -n "$RANLIB"; then
7355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368 done
7369 done
7370 IFS=$as_save_IFS
7372 fi
7373 fi
7374 RANLIB=$ac_cv_prog_RANLIB
7375 if test -n "$RANLIB"; then
7376 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7377 $as_echo "$RANLIB" >&6; }
7378 else
7379 { $as_echo "$as_me:$LINENO: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7384 fi
7385 if test -z "$ac_cv_prog_RANLIB"; then
7386 ac_ct_RANLIB=$RANLIB
7387 # Extract the first word of "ranlib", so it can be a program name with args.
7388 set dummy ranlib; ac_word=$2
7389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7393 else
7394 if test -n "$ac_ct_RANLIB"; then
7395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_prog_ac_ct_RANLIB="ranlib"
7405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7412 fi
7413 fi
7414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415 if test -n "$ac_ct_RANLIB"; then
7416 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7417 $as_echo "$ac_ct_RANLIB" >&6; }
7418 else
7419 { $as_echo "$as_me:$LINENO: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7423 if test "x$ac_ct_RANLIB" = x; then
7424 RANLIB=":"
7425 else
7426 case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432 RANLIB=$ac_ct_RANLIB
7433 fi
7434 else
7435 RANLIB="$ac_cv_prog_RANLIB"
7436 fi
7438 test -z "$RANLIB" && RANLIB=:
7445 # Determine commands to create old-style static archives.
7446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7447 old_postinstall_cmds='chmod 644 $oldlib'
7448 old_postuninstall_cmds=
7450 if test -n "$RANLIB"; then
7451 case $host_os in
7452 openbsd*)
7453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7454 ;;
7455 *)
7456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7457 ;;
7458 esac
7459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7460 fi
7495 # If no C compiler was specified, use CC.
7496 LTCC=${LTCC-"$CC"}
7498 # If no C compiler flags were specified, use CFLAGS.
7499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7501 # Allow CC to be a program name with arguments.
7502 compiler=$CC
7505 # Check for command to grab the raw symbol name followed by C symbol from nm.
7506 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7507 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7509 $as_echo_n "(cached) " >&6
7510 else
7512 # These are sane defaults that work on at least a few old systems.
7513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7515 # Character class describing NM global symbol codes.
7516 symcode='[BCDEGRST]'
7518 # Regexp to match symbols that can be accessed directly from C.
7519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7521 # Define system-specific variables.
7522 case $host_os in
7523 aix*)
7524 symcode='[BCDT]'
7525 ;;
7526 cygwin* | mingw* | pw32* | cegcc*)
7527 symcode='[ABCDGISTW]'
7528 ;;
7529 hpux*)
7530 if test "$host_cpu" = ia64; then
7531 symcode='[ABCDEGRST]'
7532 fi
7533 ;;
7534 irix* | nonstopux*)
7535 symcode='[BCDEGRST]'
7536 ;;
7537 osf*)
7538 symcode='[BCDEGQRST]'
7539 ;;
7540 solaris*)
7541 symcode='[BDRT]'
7542 ;;
7543 sco3.2v5*)
7544 symcode='[DT]'
7545 ;;
7546 sysv4.2uw2*)
7547 symcode='[DT]'
7548 ;;
7549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7550 symcode='[ABDT]'
7551 ;;
7552 sysv4)
7553 symcode='[DFNSTU]'
7554 ;;
7555 esac
7557 # If we're using GNU nm, then use its standard symbol codes.
7558 case `$NM -V 2>&1` in
7559 *GNU* | *'with BFD'*)
7560 symcode='[ABCDGIRSTW]' ;;
7561 esac
7563 # Transform an extracted symbol line into a proper C declaration.
7564 # Some systems (esp. on ia64) link data and code symbols differently,
7565 # so use this general approach.
7566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7568 # Transform an extracted symbol line into symbol name and symbol address
7569 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7570 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'"
7572 # Handle CRLF in mingw tool chain
7573 opt_cr=
7574 case $build_os in
7575 mingw*)
7576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7577 ;;
7578 esac
7580 # Try without a prefix underscore, then with it.
7581 for ac_symprfx in "" "_"; do
7583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7584 symxfrm="\\1 $ac_symprfx\\2 \\2"
7586 # Write the raw and C identifiers.
7587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7588 # Fake it for dumpbin and say T for any non-static function
7589 # and D for any global variable.
7590 # Also find C++ and __fastcall symbols from MSVC++,
7591 # which start with @ or ?.
7592 lt_cv_sys_global_symbol_pipe="$AWK '"\
7593 " {last_section=section; section=\$ 3};"\
7594 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7595 " \$ 0!~/External *\|/{next};"\
7596 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7597 " {if(hide[section]) next};"\
7598 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7599 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7600 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7601 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7602 " ' prfx=^$ac_symprfx"
7603 else
7604 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7605 fi
7607 # Check to see that the pipe works correctly.
7608 pipe_works=no
7610 rm -f conftest*
7611 cat > conftest.$ac_ext <<_LT_EOF
7612 #ifdef __cplusplus
7613 extern "C" {
7614 #endif
7615 char nm_test_var;
7616 void nm_test_func(void);
7617 void nm_test_func(void){}
7618 #ifdef __cplusplus
7619 }
7620 #endif
7621 int main(){nm_test_var='a';nm_test_func();return(0);}
7622 _LT_EOF
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625 (eval $ac_compile) 2>&5
7626 ac_status=$?
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; then
7629 # Now try to grab the symbols.
7630 nlist=conftest.nm
7631 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7632 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7633 ac_status=$?
7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && test -s "$nlist"; then
7636 # Try sorting and uniquifying the output.
7637 if sort "$nlist" | uniq > "$nlist"T; then
7638 mv -f "$nlist"T "$nlist"
7639 else
7640 rm -f "$nlist"T
7641 fi
7643 # Make sure that we snagged all the symbols we need.
7644 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7645 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7646 cat <<_LT_EOF > conftest.$ac_ext
7647 #ifdef __cplusplus
7648 extern "C" {
7649 #endif
7651 _LT_EOF
7652 # Now generate the symbol file.
7653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7655 cat <<_LT_EOF >> conftest.$ac_ext
7657 /* The mapping between symbol names and symbols. */
7658 const struct {
7659 const char *name;
7660 void *address;
7661 }
7662 lt__PROGRAM__LTX_preloaded_symbols[] =
7663 {
7664 { "@PROGRAM@", (void *) 0 },
7665 _LT_EOF
7666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7667 cat <<\_LT_EOF >> conftest.$ac_ext
7668 {0, (void *) 0}
7669 };
7671 /* This works around a problem in FreeBSD linker */
7672 #ifdef FREEBSD_WORKAROUND
7673 static const void *lt_preloaded_setup() {
7674 return lt__PROGRAM__LTX_preloaded_symbols;
7675 }
7676 #endif
7678 #ifdef __cplusplus
7679 }
7680 #endif
7681 _LT_EOF
7682 # Now try linking the two files.
7683 mv conftest.$ac_objext conftstm.$ac_objext
7684 lt_save_LIBS="$LIBS"
7685 lt_save_CFLAGS="$CFLAGS"
7686 LIBS="conftstm.$ac_objext"
7687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>&5
7690 ac_status=$?
7691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7693 pipe_works=yes
7694 fi
7695 LIBS="$lt_save_LIBS"
7696 CFLAGS="$lt_save_CFLAGS"
7697 else
7698 echo "cannot find nm_test_func in $nlist" >&5
7699 fi
7700 else
7701 echo "cannot find nm_test_var in $nlist" >&5
7702 fi
7703 else
7704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7705 fi
7706 else
7707 echo "$progname: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7709 fi
7710 rm -rf conftest* conftst*
7712 # Do not use the global_symbol_pipe unless it works.
7713 if test "$pipe_works" = yes; then
7714 break
7715 else
7716 lt_cv_sys_global_symbol_pipe=
7717 fi
7718 done
7720 fi
7722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7723 lt_cv_sys_global_symbol_to_cdecl=
7724 fi
7725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7726 { $as_echo "$as_me:$LINENO: result: failed" >&5
7727 $as_echo "failed" >&6; }
7728 else
7729 { $as_echo "$as_me:$LINENO: result: ok" >&5
7730 $as_echo "ok" >&6; }
7731 fi
7754 # Check whether --enable-libtool-lock was given.
7755 if test "${enable_libtool_lock+set}" = set; then
7756 enableval=$enable_libtool_lock;
7757 fi
7759 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7761 # Some flags need to be propagated to the compiler or linker for good
7762 # libtool support.
7763 case $host in
7764 ia64-*-hpux*)
7765 # Find out which ABI we are using.
7766 echo 'int i;' > conftest.$ac_ext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768 (eval $ac_compile) 2>&5
7769 ac_status=$?
7770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; then
7772 case `/usr/bin/file conftest.$ac_objext` in
7773 *ELF-32*)
7774 HPUX_IA64_MODE="32"
7775 ;;
7776 *ELF-64*)
7777 HPUX_IA64_MODE="64"
7778 ;;
7779 esac
7780 fi
7781 rm -rf conftest*
7782 ;;
7783 *-*-irix6*)
7784 # Find out which ABI we are using.
7785 echo '#line 7785 "configure"' > conftest.$ac_ext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787 (eval $ac_compile) 2>&5
7788 ac_status=$?
7789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; then
7791 if test "$lt_cv_prog_gnu_ld" = yes; then
7792 case `/usr/bin/file conftest.$ac_objext` in
7793 *32-bit*)
7794 LD="${LD-ld} -melf32bsmip"
7795 ;;
7796 *N32*)
7797 LD="${LD-ld} -melf32bmipn32"
7798 ;;
7799 *64-bit*)
7800 LD="${LD-ld} -melf64bmip"
7801 ;;
7802 esac
7803 else
7804 case `/usr/bin/file conftest.$ac_objext` in
7805 *32-bit*)
7806 LD="${LD-ld} -32"
7807 ;;
7808 *N32*)
7809 LD="${LD-ld} -n32"
7810 ;;
7811 *64-bit*)
7812 LD="${LD-ld} -64"
7813 ;;
7814 esac
7815 fi
7816 fi
7817 rm -rf conftest*
7818 ;;
7820 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7821 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7822 # Find out which ABI we are using.
7823 echo 'int i;' > conftest.$ac_ext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>&5
7826 ac_status=$?
7827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; then
7829 case `/usr/bin/file conftest.o` in
7830 *32-bit*)
7831 case $host in
7832 x86_64-*kfreebsd*-gnu)
7833 LD="${LD-ld} -m elf_i386_fbsd"
7834 ;;
7835 x86_64-*linux*)
7836 LD="${LD-ld} -m elf_i386"
7837 ;;
7838 ppc64-*linux*|powerpc64-*linux*)
7839 LD="${LD-ld} -m elf32ppclinux"
7840 ;;
7841 s390x-*linux*)
7842 LD="${LD-ld} -m elf_s390"
7843 ;;
7844 sparc64-*linux*)
7845 LD="${LD-ld} -m elf32_sparc"
7846 ;;
7847 esac
7848 ;;
7849 *64-bit*)
7850 case $host in
7851 x86_64-*kfreebsd*-gnu)
7852 LD="${LD-ld} -m elf_x86_64_fbsd"
7853 ;;
7854 x86_64-*linux*)
7855 LD="${LD-ld} -m elf_x86_64"
7856 ;;
7857 ppc*-*linux*|powerpc*-*linux*)
7858 LD="${LD-ld} -m elf64ppc"
7859 ;;
7860 s390*-*linux*|s390*-*tpf*)
7861 LD="${LD-ld} -m elf64_s390"
7862 ;;
7863 sparc*-*linux*)
7864 LD="${LD-ld} -m elf64_sparc"
7865 ;;
7866 esac
7867 ;;
7868 esac
7869 fi
7870 rm -rf conftest*
7871 ;;
7873 *-*-sco3.2v5*)
7874 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7875 SAVE_CFLAGS="$CFLAGS"
7876 CFLAGS="$CFLAGS -belf"
7877 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7878 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7879 if test "${lt_cv_cc_needs_belf+set}" = set; then
7880 $as_echo_n "(cached) " >&6
7881 else
7882 ac_ext=c
7883 ac_cpp='$CPP $CPPFLAGS'
7884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h. */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7895 int
7896 main ()
7897 {
7899 ;
7900 return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (ac_try="$ac_link"
7905 case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908 esac
7909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7910 $as_echo "$ac_try_echo") >&5
7911 (eval "$ac_link") 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest$ac_exeext && {
7921 test "$cross_compiling" = yes ||
7922 $as_test_x conftest$ac_exeext
7923 }; then
7924 lt_cv_cc_needs_belf=yes
7925 else
7926 $as_echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 lt_cv_cc_needs_belf=no
7930 fi
7932 rm -rf conftest.dSYM
7933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7934 conftest$ac_exeext conftest.$ac_ext
7935 ac_ext=c
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941 fi
7942 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7943 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7944 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7945 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7946 CFLAGS="$SAVE_CFLAGS"
7947 fi
7948 ;;
7949 sparc*-*solaris*)
7950 # Find out which ABI we are using.
7951 echo 'int i;' > conftest.$ac_ext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>&5
7954 ac_status=$?
7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; then
7957 case `/usr/bin/file conftest.o` in
7958 *64-bit*)
7959 case $lt_cv_prog_gnu_ld in
7960 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7961 *)
7962 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7963 LD="${LD-ld} -64"
7964 fi
7965 ;;
7966 esac
7967 ;;
7968 esac
7969 fi
7970 rm -rf conftest*
7971 ;;
7972 esac
7974 need_locks="$enable_libtool_lock"
7977 case $host_os in
7978 rhapsody* | darwin*)
7979 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if test -n "$DSYMUTIL"; then
7988 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003 IFS=$as_save_IFS
8005 fi
8006 fi
8007 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8008 if test -n "$DSYMUTIL"; then
8009 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8010 $as_echo "$DSYMUTIL" >&6; }
8011 else
8012 { $as_echo "$as_me:$LINENO: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8017 fi
8018 if test -z "$ac_cv_prog_DSYMUTIL"; then
8019 ac_ct_DSYMUTIL=$DSYMUTIL
8020 # Extract the first word of "dsymutil", so it can be a program name with args.
8021 set dummy dsymutil; ac_word=$2
8022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8025 $as_echo_n "(cached) " >&6
8026 else
8027 if test -n "$ac_ct_DSYMUTIL"; then
8028 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8045 fi
8046 fi
8047 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8048 if test -n "$ac_ct_DSYMUTIL"; then
8049 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8050 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8051 else
8052 { $as_echo "$as_me:$LINENO: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8056 if test "x$ac_ct_DSYMUTIL" = x; then
8057 DSYMUTIL=":"
8058 else
8059 case $cross_compiling:$ac_tool_warned in
8060 yes:)
8061 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8064 esac
8065 DSYMUTIL=$ac_ct_DSYMUTIL
8066 fi
8067 else
8068 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8069 fi
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8077 $as_echo_n "(cached) " >&6
8078 else
8079 if test -n "$NMEDIT"; then
8080 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093 done
8094 done
8095 IFS=$as_save_IFS
8097 fi
8098 fi
8099 NMEDIT=$ac_cv_prog_NMEDIT
8100 if test -n "$NMEDIT"; then
8101 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8102 $as_echo "$NMEDIT" >&6; }
8103 else
8104 { $as_echo "$as_me:$LINENO: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8109 fi
8110 if test -z "$ac_cv_prog_NMEDIT"; then
8111 ac_ct_NMEDIT=$NMEDIT
8112 # Extract the first word of "nmedit", so it can be a program name with args.
8113 set dummy nmedit; ac_word=$2
8114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8117 $as_echo_n "(cached) " >&6
8118 else
8119 if test -n "$ac_ct_NMEDIT"; then
8120 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8137 fi
8138 fi
8139 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8140 if test -n "$ac_ct_NMEDIT"; then
8141 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8142 $as_echo "$ac_ct_NMEDIT" >&6; }
8143 else
8144 { $as_echo "$as_me:$LINENO: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8148 if test "x$ac_ct_NMEDIT" = x; then
8149 NMEDIT=":"
8150 else
8151 case $cross_compiling:$ac_tool_warned in
8152 yes:)
8153 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8156 esac
8157 NMEDIT=$ac_ct_NMEDIT
8158 fi
8159 else
8160 NMEDIT="$ac_cv_prog_NMEDIT"
8161 fi
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_LIPO+set}" = set; then
8169 $as_echo_n "(cached) " >&6
8170 else
8171 if test -n "$LIPO"; then
8172 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177 IFS=$as_save_IFS
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 break 2
8184 fi
8185 done
8186 done
8187 IFS=$as_save_IFS
8189 fi
8190 fi
8191 LIPO=$ac_cv_prog_LIPO
8192 if test -n "$LIPO"; then
8193 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8194 $as_echo "$LIPO" >&6; }
8195 else
8196 { $as_echo "$as_me:$LINENO: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8201 fi
8202 if test -z "$ac_cv_prog_LIPO"; then
8203 ac_ct_LIPO=$LIPO
8204 # Extract the first word of "lipo", so it can be a program name with args.
8205 set dummy lipo; ac_word=$2
8206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8209 $as_echo_n "(cached) " >&6
8210 else
8211 if test -n "$ac_ct_LIPO"; then
8212 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_ac_ct_LIPO="lipo"
8222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225 done
8226 done
8227 IFS=$as_save_IFS
8229 fi
8230 fi
8231 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8232 if test -n "$ac_ct_LIPO"; then
8233 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8234 $as_echo "$ac_ct_LIPO" >&6; }
8235 else
8236 { $as_echo "$as_me:$LINENO: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8240 if test "x$ac_ct_LIPO" = x; then
8241 LIPO=":"
8242 else
8243 case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8248 esac
8249 LIPO=$ac_ct_LIPO
8250 fi
8251 else
8252 LIPO="$ac_cv_prog_LIPO"
8253 fi
8255 if test -n "$ac_tool_prefix"; then
8256 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}otool; ac_word=$2
8258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_OTOOL+set}" = set; then
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$OTOOL"; then
8264 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8276 fi
8277 done
8278 done
8279 IFS=$as_save_IFS
8281 fi
8282 fi
8283 OTOOL=$ac_cv_prog_OTOOL
8284 if test -n "$OTOOL"; then
8285 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8286 $as_echo "$OTOOL" >&6; }
8287 else
8288 { $as_echo "$as_me:$LINENO: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8293 fi
8294 if test -z "$ac_cv_prog_OTOOL"; then
8295 ac_ct_OTOOL=$OTOOL
8296 # Extract the first word of "otool", so it can be a program name with args.
8297 set dummy otool; ac_word=$2
8298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8301 $as_echo_n "(cached) " >&6
8302 else
8303 if test -n "$ac_ct_OTOOL"; then
8304 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_prog_ac_ct_OTOOL="otool"
8314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8321 fi
8322 fi
8323 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8324 if test -n "$ac_ct_OTOOL"; then
8325 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8326 $as_echo "$ac_ct_OTOOL" >&6; }
8327 else
8328 { $as_echo "$as_me:$LINENO: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8332 if test "x$ac_ct_OTOOL" = x; then
8333 OTOOL=":"
8334 else
8335 case $cross_compiling:$ac_tool_warned in
8336 yes:)
8337 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8339 ac_tool_warned=yes ;;
8340 esac
8341 OTOOL=$ac_ct_OTOOL
8342 fi
8343 else
8344 OTOOL="$ac_cv_prog_OTOOL"
8345 fi
8347 if test -n "$ac_tool_prefix"; then
8348 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8349 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$OTOOL64"; then
8356 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8368 fi
8369 done
8370 done
8371 IFS=$as_save_IFS
8373 fi
8374 fi
8375 OTOOL64=$ac_cv_prog_OTOOL64
8376 if test -n "$OTOOL64"; then
8377 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8378 $as_echo "$OTOOL64" >&6; }
8379 else
8380 { $as_echo "$as_me:$LINENO: result: no" >&5
8381 $as_echo "no" >&6; }
8382 fi
8385 fi
8386 if test -z "$ac_cv_prog_OTOOL64"; then
8387 ac_ct_OTOOL64=$OTOOL64
8388 # Extract the first word of "otool64", so it can be a program name with args.
8389 set dummy otool64; ac_word=$2
8390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8393 $as_echo_n "(cached) " >&6
8394 else
8395 if test -n "$ac_ct_OTOOL64"; then
8396 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8400 do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_ac_ct_OTOOL64="otool64"
8406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8408 fi
8409 done
8410 done
8411 IFS=$as_save_IFS
8413 fi
8414 fi
8415 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8416 if test -n "$ac_ct_OTOOL64"; then
8417 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8418 $as_echo "$ac_ct_OTOOL64" >&6; }
8419 else
8420 { $as_echo "$as_me:$LINENO: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8424 if test "x$ac_ct_OTOOL64" = x; then
8425 OTOOL64=":"
8426 else
8427 case $cross_compiling:$ac_tool_warned in
8428 yes:)
8429 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8431 ac_tool_warned=yes ;;
8432 esac
8433 OTOOL64=$ac_ct_OTOOL64
8434 fi
8435 else
8436 OTOOL64="$ac_cv_prog_OTOOL64"
8437 fi
8465 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8466 $as_echo_n "checking for -single_module linker flag... " >&6; }
8467 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8468 $as_echo_n "(cached) " >&6
8469 else
8470 lt_cv_apple_cc_single_mod=no
8471 if test -z "${LT_MULTI_MODULE}"; then
8472 # By default we will add the -single_module flag. You can override
8473 # by either setting the environment variable LT_MULTI_MODULE
8474 # non-empty at configure time, or by adding -multi_module to the
8475 # link flags.
8476 rm -rf libconftest.dylib*
8477 echo "int foo(void){return 1;}" > conftest.c
8478 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8479 -dynamiclib -Wl,-single_module conftest.c" >&5
8480 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8481 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8482 _lt_result=$?
8483 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8484 lt_cv_apple_cc_single_mod=yes
8485 else
8486 cat conftest.err >&5
8487 fi
8488 rm -rf libconftest.dylib*
8489 rm -f conftest.*
8490 fi
8491 fi
8492 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8493 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8494 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8495 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8496 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8498 else
8499 lt_cv_ld_exported_symbols_list=no
8500 save_LDFLAGS=$LDFLAGS
8501 echo "_main" > conftest.sym
8502 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8510 int
8511 main ()
8512 {
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (ac_try="$ac_link"
8520 case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523 esac
8524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8525 $as_echo "$ac_try_echo") >&5
8526 (eval "$ac_link") 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest$ac_exeext && {
8536 test "$cross_compiling" = yes ||
8537 $as_test_x conftest$ac_exeext
8538 }; then
8539 lt_cv_ld_exported_symbols_list=yes
8540 else
8541 $as_echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 lt_cv_ld_exported_symbols_list=no
8545 fi
8547 rm -rf conftest.dSYM
8548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8549 conftest$ac_exeext conftest.$ac_ext
8550 LDFLAGS="$save_LDFLAGS"
8552 fi
8553 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8554 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8555 case $host_os in
8556 rhapsody* | darwin1.[012])
8557 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8558 darwin1.*)
8559 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8560 darwin*) # darwin 5.x on
8561 # if running on 10.5 or later, the deployment target defaults
8562 # to the OS version, if on x86, and 10.4, the deployment
8563 # target defaults to 10.4. Don't you love it?
8564 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8565 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8566 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8567 10.[012]*)
8568 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8569 10.*)
8570 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8571 esac
8572 ;;
8573 esac
8574 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8575 _lt_dar_single_mod='$single_module'
8576 fi
8577 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8578 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8579 else
8580 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8581 fi
8582 if test "$DSYMUTIL" != ":"; then
8583 _lt_dsymutil='~$DSYMUTIL $lib || :'
8584 else
8585 _lt_dsymutil=
8586 fi
8587 ;;
8588 esac
8591 for ac_header in dlfcn.h
8592 do
8593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8595 $as_echo_n "checking for $ac_header... " >&6; }
8596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8597 $as_echo_n "(cached) " >&6
8598 else
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8607 #include <$ac_header>
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614 esac
8615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8616 $as_echo "$ac_try_echo") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
8627 eval "$as_ac_Header=yes"
8628 else
8629 $as_echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 eval "$as_ac_Header=no"
8633 fi
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637 ac_res=`eval 'as_val=${'$as_ac_Header'}
8638 $as_echo "$as_val"'`
8639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8640 $as_echo "$ac_res" >&6; }
8641 as_val=`eval 'as_val=${'$as_ac_Header'}
8642 $as_echo "$as_val"'`
8643 if test "x$as_val" = x""yes; then
8644 cat >>confdefs.h <<_ACEOF
8645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8646 _ACEOF
8648 fi
8650 done
8654 # Set options
8658 enable_dlopen=no
8661 enable_win32_dll=no
8664 # Check whether --enable-shared was given.
8665 if test "${enable_shared+set}" = set; then
8666 enableval=$enable_shared; p=${PACKAGE-default}
8667 case $enableval in
8668 yes) enable_shared=yes ;;
8669 no) enable_shared=no ;;
8670 *)
8671 enable_shared=no
8672 # Look at the argument we got. We use all the common list separators.
8673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8674 for pkg in $enableval; do
8675 IFS="$lt_save_ifs"
8676 if test "X$pkg" = "X$p"; then
8677 enable_shared=yes
8678 fi
8679 done
8680 IFS="$lt_save_ifs"
8681 ;;
8682 esac
8683 else
8684 enable_shared=yes
8685 fi
8695 # Check whether --enable-static was given.
8696 if test "${enable_static+set}" = set; then
8697 enableval=$enable_static; p=${PACKAGE-default}
8698 case $enableval in
8699 yes) enable_static=yes ;;
8700 no) enable_static=no ;;
8701 *)
8702 enable_static=no
8703 # Look at the argument we got. We use all the common list separators.
8704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8705 for pkg in $enableval; do
8706 IFS="$lt_save_ifs"
8707 if test "X$pkg" = "X$p"; then
8708 enable_static=yes
8709 fi
8710 done
8711 IFS="$lt_save_ifs"
8712 ;;
8713 esac
8714 else
8715 enable_static=yes
8716 fi
8727 # Check whether --with-pic was given.
8728 if test "${with_pic+set}" = set; then
8729 withval=$with_pic; pic_mode="$withval"
8730 else
8731 pic_mode=default
8732 fi
8735 test -z "$pic_mode" && pic_mode=default
8743 # Check whether --enable-fast-install was given.
8744 if test "${enable_fast_install+set}" = set; then
8745 enableval=$enable_fast_install; p=${PACKAGE-default}
8746 case $enableval in
8747 yes) enable_fast_install=yes ;;
8748 no) enable_fast_install=no ;;
8749 *)
8750 enable_fast_install=no
8751 # Look at the argument we got. We use all the common list separators.
8752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8753 for pkg in $enableval; do
8754 IFS="$lt_save_ifs"
8755 if test "X$pkg" = "X$p"; then
8756 enable_fast_install=yes
8757 fi
8758 done
8759 IFS="$lt_save_ifs"
8760 ;;
8761 esac
8762 else
8763 enable_fast_install=yes
8764 fi
8776 # This can be used to rebuild libtool when needed
8777 LIBTOOL_DEPS="$ltmain"
8779 # Always use our own libtool.
8780 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8806 test -z "$LN_S" && LN_S="ln -s"
8821 if test -n "${ZSH_VERSION+set}" ; then
8822 setopt NO_GLOB_SUBST
8823 fi
8825 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8826 $as_echo_n "checking for objdir... " >&6; }
8827 if test "${lt_cv_objdir+set}" = set; then
8828 $as_echo_n "(cached) " >&6
8829 else
8830 rm -f .libs 2>/dev/null
8831 mkdir .libs 2>/dev/null
8832 if test -d .libs; then
8833 lt_cv_objdir=.libs
8834 else
8835 # MS-DOS does not allow filenames that begin with a dot.
8836 lt_cv_objdir=_libs
8837 fi
8838 rmdir .libs 2>/dev/null
8839 fi
8840 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8841 $as_echo "$lt_cv_objdir" >&6; }
8842 objdir=$lt_cv_objdir
8848 cat >>confdefs.h <<_ACEOF
8849 #define LT_OBJDIR "$lt_cv_objdir/"
8850 _ACEOF
8868 case $host_os in
8869 aix3*)
8870 # AIX sometimes has problems with the GCC collect2 program. For some
8871 # reason, if we set the COLLECT_NAMES environment variable, the problems
8872 # vanish in a puff of smoke.
8873 if test "X${COLLECT_NAMES+set}" != Xset; then
8874 COLLECT_NAMES=
8875 export COLLECT_NAMES
8876 fi
8877 ;;
8878 esac
8880 # Sed substitution that helps us do robust quoting. It backslashifies
8881 # metacharacters that are still active within double-quoted strings.
8882 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8884 # Same as above, but do not quote variable references.
8885 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8887 # Sed substitution to delay expansion of an escaped shell variable in a
8888 # double_quote_subst'ed string.
8889 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8891 # Sed substitution to delay expansion of an escaped single quote.
8892 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8894 # Sed substitution to avoid accidental globbing in evaled expressions
8895 no_glob_subst='s/\*/\\\*/g'
8897 # Global variables:
8898 ofile=libtool
8899 can_build_shared=yes
8901 # All known linkers require a `.a' archive for static linking (except MSVC,
8902 # which needs '.lib').
8903 libext=a
8905 with_gnu_ld="$lt_cv_prog_gnu_ld"
8907 old_CC="$CC"
8908 old_CFLAGS="$CFLAGS"
8910 # Set sane defaults for various variables
8911 test -z "$CC" && CC=cc
8912 test -z "$LTCC" && LTCC=$CC
8913 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8914 test -z "$LD" && LD=ld
8915 test -z "$ac_objext" && ac_objext=o
8917 for cc_temp in $compiler""; do
8918 case $cc_temp in
8919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8921 \-*) ;;
8922 *) break;;
8923 esac
8924 done
8925 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8928 # Only perform the check for file, if the check method requires it
8929 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8930 case $deplibs_check_method in
8931 file_magic*)
8932 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8933 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8934 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8935 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8936 $as_echo_n "(cached) " >&6
8937 else
8938 case $MAGIC_CMD in
8939 [\\/*] | ?:[\\/]*)
8940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8941 ;;
8942 *)
8943 lt_save_MAGIC_CMD="$MAGIC_CMD"
8944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8946 for ac_dir in $ac_dummy; do
8947 IFS="$lt_save_ifs"
8948 test -z "$ac_dir" && ac_dir=.
8949 if test -f $ac_dir/${ac_tool_prefix}file; then
8950 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8951 if test -n "$file_magic_test_file"; then
8952 case $deplibs_check_method in
8953 "file_magic "*)
8954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8957 $EGREP "$file_magic_regex" > /dev/null; then
8958 :
8959 else
8960 cat <<_LT_EOF 1>&2
8962 *** Warning: the command libtool uses to detect shared libraries,
8963 *** $file_magic_cmd, produces output that libtool cannot recognize.
8964 *** The result is that libtool may fail to recognize shared libraries
8965 *** as such. This will affect the creation of libtool libraries that
8966 *** depend on shared libraries, but programs linked with such libtool
8967 *** libraries will work regardless of this problem. Nevertheless, you
8968 *** may want to report the problem to your system manager and/or to
8969 *** bug-libtool@gnu.org
8971 _LT_EOF
8972 fi ;;
8973 esac
8974 fi
8975 break
8976 fi
8977 done
8978 IFS="$lt_save_ifs"
8979 MAGIC_CMD="$lt_save_MAGIC_CMD"
8980 ;;
8981 esac
8982 fi
8984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8985 if test -n "$MAGIC_CMD"; then
8986 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8987 $as_echo "$MAGIC_CMD" >&6; }
8988 else
8989 { $as_echo "$as_me:$LINENO: result: no" >&5
8990 $as_echo "no" >&6; }
8991 fi
8997 if test -z "$lt_cv_path_MAGIC_CMD"; then
8998 if test -n "$ac_tool_prefix"; then
8999 { $as_echo "$as_me:$LINENO: checking for file" >&5
9000 $as_echo_n "checking for file... " >&6; }
9001 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9002 $as_echo_n "(cached) " >&6
9003 else
9004 case $MAGIC_CMD in
9005 [\\/*] | ?:[\\/]*)
9006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9007 ;;
9008 *)
9009 lt_save_MAGIC_CMD="$MAGIC_CMD"
9010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9011 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9012 for ac_dir in $ac_dummy; do
9013 IFS="$lt_save_ifs"
9014 test -z "$ac_dir" && ac_dir=.
9015 if test -f $ac_dir/file; then
9016 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9017 if test -n "$file_magic_test_file"; then
9018 case $deplibs_check_method in
9019 "file_magic "*)
9020 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9022 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9023 $EGREP "$file_magic_regex" > /dev/null; then
9024 :
9025 else
9026 cat <<_LT_EOF 1>&2
9028 *** Warning: the command libtool uses to detect shared libraries,
9029 *** $file_magic_cmd, produces output that libtool cannot recognize.
9030 *** The result is that libtool may fail to recognize shared libraries
9031 *** as such. This will affect the creation of libtool libraries that
9032 *** depend on shared libraries, but programs linked with such libtool
9033 *** libraries will work regardless of this problem. Nevertheless, you
9034 *** may want to report the problem to your system manager and/or to
9035 *** bug-libtool@gnu.org
9037 _LT_EOF
9038 fi ;;
9039 esac
9040 fi
9041 break
9042 fi
9043 done
9044 IFS="$lt_save_ifs"
9045 MAGIC_CMD="$lt_save_MAGIC_CMD"
9046 ;;
9047 esac
9048 fi
9050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9051 if test -n "$MAGIC_CMD"; then
9052 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9053 $as_echo "$MAGIC_CMD" >&6; }
9054 else
9055 { $as_echo "$as_me:$LINENO: result: no" >&5
9056 $as_echo "no" >&6; }
9057 fi
9060 else
9061 MAGIC_CMD=:
9062 fi
9063 fi
9065 fi
9066 ;;
9067 esac
9069 # Use C for the default configuration in the libtool script
9071 lt_save_CC="$CC"
9072 ac_ext=c
9073 ac_cpp='$CPP $CPPFLAGS'
9074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9079 # Source file extension for C test sources.
9080 ac_ext=c
9082 # Object file extension for compiled C test sources.
9083 objext=o
9084 objext=$objext
9086 # Code to be used in simple compile tests
9087 lt_simple_compile_test_code="int some_variable = 0;"
9089 # Code to be used in simple link tests
9090 lt_simple_link_test_code='int main(){return(0);}'
9098 # If no C compiler was specified, use CC.
9099 LTCC=${LTCC-"$CC"}
9101 # If no C compiler flags were specified, use CFLAGS.
9102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9104 # Allow CC to be a program name with arguments.
9105 compiler=$CC
9107 # Save the default compiler, since it gets overwritten when the other
9108 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9109 compiler_DEFAULT=$CC
9111 # save warnings/boilerplate of simple test code
9112 ac_outfile=conftest.$ac_objext
9113 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9115 _lt_compiler_boilerplate=`cat conftest.err`
9116 $RM conftest*
9118 ac_outfile=conftest.$ac_objext
9119 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9121 _lt_linker_boilerplate=`cat conftest.err`
9122 $RM -r conftest*
9125 ## CAVEAT EMPTOR:
9126 ## There is no encapsulation within the following macros, do not change
9127 ## the running order or otherwise move them around unless you know exactly
9128 ## what you are doing...
9129 if test -n "$compiler"; then
9131 lt_prog_compiler_no_builtin_flag=
9133 if test "$GCC" = yes; then
9134 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9136 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9137 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9138 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9139 $as_echo_n "(cached) " >&6
9140 else
9141 lt_cv_prog_compiler_rtti_exceptions=no
9142 ac_outfile=conftest.$ac_objext
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144 lt_compiler_flag="-fno-rtti -fno-exceptions"
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 # The option is referenced via a variable to avoid confusing sed.
9150 lt_compile=`echo "$ac_compile" | $SED \
9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153 -e 's:$: $lt_compiler_flag:'`
9154 (eval echo "\"\$as_me:9154: $lt_compile\"" >&5)
9155 (eval "$lt_compile" 2>conftest.err)
9156 ac_status=$?
9157 cat conftest.err >&5
9158 echo "$as_me:9158: \$? = $ac_status" >&5
9159 if (exit $ac_status) && test -s "$ac_outfile"; then
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings other than the usual output.
9162 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9164 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_rtti_exceptions=yes
9166 fi
9167 fi
9168 $RM conftest*
9170 fi
9171 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9172 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9174 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9175 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9176 else
9177 :
9178 fi
9180 fi
9187 lt_prog_compiler_wl=
9188 lt_prog_compiler_pic=
9189 lt_prog_compiler_static=
9191 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9192 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9194 if test "$GCC" = yes; then
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_static='-static'
9198 case $host_os in
9199 aix*)
9200 # All AIX code is PIC.
9201 if test "$host_cpu" = ia64; then
9202 # AIX 5 now supports IA64 processor
9203 lt_prog_compiler_static='-Bstatic'
9204 fi
9205 ;;
9207 amigaos*)
9208 case $host_cpu in
9209 powerpc)
9210 # see comment about AmigaOS4 .so support
9211 lt_prog_compiler_pic='-fPIC'
9212 ;;
9213 m68k)
9214 # FIXME: we need at least 68020 code to build shared libraries, but
9215 # adding the `-m68020' flag to GCC prevents building anything better,
9216 # like `-m68040'.
9217 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9218 ;;
9219 esac
9220 ;;
9222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9223 # PIC is the default for these OSes.
9224 ;;
9226 mingw* | cygwin* | pw32* | os2* | cegcc*)
9227 # This hack is so that the source file can tell whether it is being
9228 # built for inclusion in a dll (and should export symbols for example).
9229 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9230 # (--disable-auto-import) libraries
9231 lt_prog_compiler_pic='-DDLL_EXPORT'
9232 ;;
9234 darwin* | rhapsody*)
9235 # PIC is the default on this platform
9236 # Common symbols not allowed in MH_DYLIB files
9237 lt_prog_compiler_pic='-fno-common'
9238 ;;
9240 hpux*)
9241 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9242 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9243 # sets the default TLS model and affects inlining.
9244 case $host_cpu in
9245 hppa*64*)
9246 # +Z the default
9247 ;;
9248 *)
9249 lt_prog_compiler_pic='-fPIC'
9250 ;;
9251 esac
9252 ;;
9254 interix[3-9]*)
9255 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9256 # Instead, we relocate shared libraries at runtime.
9257 ;;
9259 msdosdjgpp*)
9260 # Just because we use GCC doesn't mean we suddenly get shared libraries
9261 # on systems that don't support them.
9262 lt_prog_compiler_can_build_shared=no
9263 enable_shared=no
9264 ;;
9266 *nto* | *qnx*)
9267 # QNX uses GNU C++, but need to define -shared option too, otherwise
9268 # it will coredump.
9269 lt_prog_compiler_pic='-fPIC -shared'
9270 ;;
9272 sysv4*MP*)
9273 if test -d /usr/nec; then
9274 lt_prog_compiler_pic=-Kconform_pic
9275 fi
9276 ;;
9278 *)
9279 lt_prog_compiler_pic='-fPIC'
9280 ;;
9281 esac
9282 else
9283 # PORTME Check for flag to pass linker flags through the system compiler.
9284 case $host_os in
9285 aix*)
9286 lt_prog_compiler_wl='-Wl,'
9287 if test "$host_cpu" = ia64; then
9288 # AIX 5 now supports IA64 processor
9289 lt_prog_compiler_static='-Bstatic'
9290 else
9291 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9292 fi
9293 ;;
9295 mingw* | cygwin* | pw32* | os2* | cegcc*)
9296 # This hack is so that the source file can tell whether it is being
9297 # built for inclusion in a dll (and should export symbols for example).
9298 lt_prog_compiler_pic='-DDLL_EXPORT'
9299 ;;
9301 hpux9* | hpux10* | hpux11*)
9302 lt_prog_compiler_wl='-Wl,'
9303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9304 # not for PA HP-UX.
9305 case $host_cpu in
9306 hppa*64*|ia64*)
9307 # +Z the default
9308 ;;
9309 *)
9310 lt_prog_compiler_pic='+Z'
9311 ;;
9312 esac
9313 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9314 lt_prog_compiler_static='${wl}-a ${wl}archive'
9315 ;;
9317 irix5* | irix6* | nonstopux*)
9318 lt_prog_compiler_wl='-Wl,'
9319 # PIC (with -KPIC) is the default.
9320 lt_prog_compiler_static='-non_shared'
9321 ;;
9323 linux* | k*bsd*-gnu)
9324 case $cc_basename in
9325 # old Intel for x86_64 which still supported -KPIC.
9326 ecc*)
9327 lt_prog_compiler_wl='-Wl,'
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-static'
9330 ;;
9331 # icc used to be incompatible with GCC.
9332 # ICC 10 doesn't accept -KPIC any more.
9333 icc* | ifort*)
9334 lt_prog_compiler_wl='-Wl,'
9335 lt_prog_compiler_pic='-fPIC'
9336 lt_prog_compiler_static='-static'
9337 ;;
9338 # Lahey Fortran 8.1.
9339 lf95*)
9340 lt_prog_compiler_wl='-Wl,'
9341 lt_prog_compiler_pic='--shared'
9342 lt_prog_compiler_static='--static'
9343 ;;
9344 pgcc* | pgf77* | pgf90* | pgf95*)
9345 # Portland Group compilers (*not* the Pentium gcc compiler,
9346 # which looks to be a dead project)
9347 lt_prog_compiler_wl='-Wl,'
9348 lt_prog_compiler_pic='-fpic'
9349 lt_prog_compiler_static='-Bstatic'
9350 ;;
9351 ccc*)
9352 lt_prog_compiler_wl='-Wl,'
9353 # All Alpha code is PIC.
9354 lt_prog_compiler_static='-non_shared'
9355 ;;
9356 xl*)
9357 # IBM XL C 8.0/Fortran 10.1 on PPC
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-qpic'
9360 lt_prog_compiler_static='-qstaticlink'
9361 ;;
9362 *)
9363 case `$CC -V 2>&1 | sed 5q` in
9364 *Sun\ C*)
9365 # Sun C 5.9
9366 lt_prog_compiler_pic='-KPIC'
9367 lt_prog_compiler_static='-Bstatic'
9368 lt_prog_compiler_wl='-Wl,'
9369 ;;
9370 *Sun\ F*)
9371 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 lt_prog_compiler_wl=''
9375 ;;
9376 esac
9377 ;;
9378 esac
9379 ;;
9381 newsos6)
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 ;;
9386 *nto* | *qnx*)
9387 # QNX uses GNU C++, but need to define -shared option too, otherwise
9388 # it will coredump.
9389 lt_prog_compiler_pic='-fPIC -shared'
9390 ;;
9392 osf3* | osf4* | osf5*)
9393 lt_prog_compiler_wl='-Wl,'
9394 # All OSF/1 code is PIC.
9395 lt_prog_compiler_static='-non_shared'
9396 ;;
9398 rdos*)
9399 lt_prog_compiler_static='-non_shared'
9400 ;;
9402 solaris*)
9403 lt_prog_compiler_pic='-KPIC'
9404 lt_prog_compiler_static='-Bstatic'
9405 case $cc_basename in
9406 f77* | f90* | f95*)
9407 lt_prog_compiler_wl='-Qoption ld ';;
9408 *)
9409 lt_prog_compiler_wl='-Wl,';;
9410 esac
9411 ;;
9413 sunos4*)
9414 lt_prog_compiler_wl='-Qoption ld '
9415 lt_prog_compiler_pic='-PIC'
9416 lt_prog_compiler_static='-Bstatic'
9417 ;;
9419 sysv4 | sysv4.2uw2* | sysv4.3*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='-KPIC'
9422 lt_prog_compiler_static='-Bstatic'
9423 ;;
9425 sysv4*MP*)
9426 if test -d /usr/nec ;then
9427 lt_prog_compiler_pic='-Kconform_pic'
9428 lt_prog_compiler_static='-Bstatic'
9429 fi
9430 ;;
9432 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='-KPIC'
9435 lt_prog_compiler_static='-Bstatic'
9436 ;;
9438 unicos*)
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_can_build_shared=no
9441 ;;
9443 uts4*)
9444 lt_prog_compiler_pic='-pic'
9445 lt_prog_compiler_static='-Bstatic'
9446 ;;
9448 *)
9449 lt_prog_compiler_can_build_shared=no
9450 ;;
9451 esac
9452 fi
9454 case $host_os in
9455 # For platforms which do not support PIC, -DPIC is meaningless:
9456 *djgpp*)
9457 lt_prog_compiler_pic=
9458 ;;
9459 *)
9460 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9461 ;;
9462 esac
9463 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9464 $as_echo "$lt_prog_compiler_pic" >&6; }
9471 #
9472 # Check to make sure the PIC flag actually works.
9473 #
9474 if test -n "$lt_prog_compiler_pic"; then
9475 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9476 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9477 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9478 $as_echo_n "(cached) " >&6
9479 else
9480 lt_cv_prog_compiler_pic_works=no
9481 ac_outfile=conftest.$ac_objext
9482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9483 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9484 # Insert the option either (1) after the last *FLAGS variable, or
9485 # (2) before a word containing "conftest.", or (3) at the end.
9486 # Note that $ac_compile itself does not contain backslashes and begins
9487 # with a dollar sign (not a hyphen), so the echo should work correctly.
9488 # The option is referenced via a variable to avoid confusing sed.
9489 lt_compile=`echo "$ac_compile" | $SED \
9490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9492 -e 's:$: $lt_compiler_flag:'`
9493 (eval echo "\"\$as_me:9493: $lt_compile\"" >&5)
9494 (eval "$lt_compile" 2>conftest.err)
9495 ac_status=$?
9496 cat conftest.err >&5
9497 echo "$as_me:9497: \$? = $ac_status" >&5
9498 if (exit $ac_status) && test -s "$ac_outfile"; then
9499 # The compiler can only warn and ignore the option if not recognized
9500 # So say no if there are warnings other than the usual output.
9501 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9504 lt_cv_prog_compiler_pic_works=yes
9505 fi
9506 fi
9507 $RM conftest*
9509 fi
9510 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9511 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9513 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9514 case $lt_prog_compiler_pic in
9515 "" | " "*) ;;
9516 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9517 esac
9518 else
9519 lt_prog_compiler_pic=
9520 lt_prog_compiler_can_build_shared=no
9521 fi
9523 fi
9530 #
9531 # Check to make sure the static flag actually works.
9532 #
9533 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9534 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9535 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9536 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9537 $as_echo_n "(cached) " >&6
9538 else
9539 lt_cv_prog_compiler_static_works=no
9540 save_LDFLAGS="$LDFLAGS"
9541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9544 # The linker can only warn and ignore the option if not recognized
9545 # So say no if there are warnings
9546 if test -s conftest.err; then
9547 # Append any errors to the config.log.
9548 cat conftest.err 1>&5
9549 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551 if diff conftest.exp conftest.er2 >/dev/null; then
9552 lt_cv_prog_compiler_static_works=yes
9553 fi
9554 else
9555 lt_cv_prog_compiler_static_works=yes
9556 fi
9557 fi
9558 $RM -r conftest*
9559 LDFLAGS="$save_LDFLAGS"
9561 fi
9562 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9563 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9565 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9566 :
9567 else
9568 lt_prog_compiler_static=
9569 fi
9577 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9579 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9580 $as_echo_n "(cached) " >&6
9581 else
9582 lt_cv_prog_compiler_c_o=no
9583 $RM -r conftest 2>/dev/null
9584 mkdir conftest
9585 cd conftest
9586 mkdir out
9587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589 lt_compiler_flag="-o out/conftest2.$ac_objext"
9590 # Insert the option either (1) after the last *FLAGS variable, or
9591 # (2) before a word containing "conftest.", or (3) at the end.
9592 # Note that $ac_compile itself does not contain backslashes and begins
9593 # with a dollar sign (not a hyphen), so the echo should work correctly.
9594 lt_compile=`echo "$ac_compile" | $SED \
9595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9597 -e 's:$: $lt_compiler_flag:'`
9598 (eval echo "\"\$as_me:9598: $lt_compile\"" >&5)
9599 (eval "$lt_compile" 2>out/conftest.err)
9600 ac_status=$?
9601 cat out/conftest.err >&5
9602 echo "$as_me:9602: \$? = $ac_status" >&5
9603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9604 then
9605 # The compiler can only warn and ignore the option if not recognized
9606 # So say no if there are warnings
9607 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9610 lt_cv_prog_compiler_c_o=yes
9611 fi
9612 fi
9613 chmod u+w . 2>&5
9614 $RM conftest*
9615 # SGI C++ compiler will create directory out/ii_files/ for
9616 # template instantiation
9617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9618 $RM out/* && rmdir out
9619 cd ..
9620 $RM -r conftest
9621 $RM conftest*
9623 fi
9624 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9625 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9632 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9634 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9635 $as_echo_n "(cached) " >&6
9636 else
9637 lt_cv_prog_compiler_c_o=no
9638 $RM -r conftest 2>/dev/null
9639 mkdir conftest
9640 cd conftest
9641 mkdir out
9642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9644 lt_compiler_flag="-o out/conftest2.$ac_objext"
9645 # Insert the option either (1) after the last *FLAGS variable, or
9646 # (2) before a word containing "conftest.", or (3) at the end.
9647 # Note that $ac_compile itself does not contain backslashes and begins
9648 # with a dollar sign (not a hyphen), so the echo should work correctly.
9649 lt_compile=`echo "$ac_compile" | $SED \
9650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9652 -e 's:$: $lt_compiler_flag:'`
9653 (eval echo "\"\$as_me:9653: $lt_compile\"" >&5)
9654 (eval "$lt_compile" 2>out/conftest.err)
9655 ac_status=$?
9656 cat out/conftest.err >&5
9657 echo "$as_me:9657: \$? = $ac_status" >&5
9658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9659 then
9660 # The compiler can only warn and ignore the option if not recognized
9661 # So say no if there are warnings
9662 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9665 lt_cv_prog_compiler_c_o=yes
9666 fi
9667 fi
9668 chmod u+w . 2>&5
9669 $RM conftest*
9670 # SGI C++ compiler will create directory out/ii_files/ for
9671 # template instantiation
9672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9673 $RM out/* && rmdir out
9674 cd ..
9675 $RM -r conftest
9676 $RM conftest*
9678 fi
9679 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9680 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9685 hard_links="nottested"
9686 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9687 # do not overwrite the value of need_locks provided by the user
9688 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9689 $as_echo_n "checking if we can lock with hard links... " >&6; }
9690 hard_links=yes
9691 $RM conftest*
9692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9693 touch conftest.a
9694 ln conftest.a conftest.b 2>&5 || hard_links=no
9695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9696 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9697 $as_echo "$hard_links" >&6; }
9698 if test "$hard_links" = no; then
9699 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9700 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9701 need_locks=warn
9702 fi
9703 else
9704 need_locks=no
9705 fi
9712 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9713 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9715 runpath_var=
9716 allow_undefined_flag=
9717 always_export_symbols=no
9718 archive_cmds=
9719 archive_expsym_cmds=
9720 compiler_needs_object=no
9721 enable_shared_with_static_runtimes=no
9722 export_dynamic_flag_spec=
9723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9724 hardcode_automatic=no
9725 hardcode_direct=no
9726 hardcode_direct_absolute=no
9727 hardcode_libdir_flag_spec=
9728 hardcode_libdir_flag_spec_ld=
9729 hardcode_libdir_separator=
9730 hardcode_minus_L=no
9731 hardcode_shlibpath_var=unsupported
9732 inherit_rpath=no
9733 link_all_deplibs=unknown
9734 module_cmds=
9735 module_expsym_cmds=
9736 old_archive_from_new_cmds=
9737 old_archive_from_expsyms_cmds=
9738 thread_safe_flag_spec=
9739 whole_archive_flag_spec=
9740 # include_expsyms should be a list of space-separated symbols to be *always*
9741 # included in the symbol list
9742 include_expsyms=
9743 # exclude_expsyms can be an extended regexp of symbols to exclude
9744 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9745 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9746 # as well as any symbol that contains `d'.
9747 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9748 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9749 # platforms (ab)use it in PIC code, but their linkers get confused if
9750 # the symbol is explicitly referenced. Since portable code cannot
9751 # rely on this symbol name, it's probably fine to never include it in
9752 # preloaded symbol tables.
9753 # Exclude shared library initialization/finalization symbols.
9754 extract_expsyms_cmds=
9756 case $host_os in
9757 cygwin* | mingw* | pw32* | cegcc*)
9758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9759 # When not using gcc, we currently assume that we are using
9760 # Microsoft Visual C++.
9761 if test "$GCC" != yes; then
9762 with_gnu_ld=no
9763 fi
9764 ;;
9765 interix*)
9766 # we just hope/assume this is gcc and not c89 (= MSVC++)
9767 with_gnu_ld=yes
9768 ;;
9769 openbsd*)
9770 with_gnu_ld=no
9771 ;;
9772 esac
9774 ld_shlibs=yes
9775 if test "$with_gnu_ld" = yes; then
9776 # If archive_cmds runs LD, not CC, wlarc should be empty
9777 wlarc='${wl}'
9779 # Set some defaults for GNU ld with shared library support. These
9780 # are reset later if shared libraries are not supported. Putting them
9781 # here allows them to be overridden if necessary.
9782 runpath_var=LD_RUN_PATH
9783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9784 export_dynamic_flag_spec='${wl}--export-dynamic'
9785 # ancient GNU ld didn't support --whole-archive et. al.
9786 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9787 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9788 else
9789 whole_archive_flag_spec=
9790 fi
9791 supports_anon_versioning=no
9792 case `$LD -v 2>&1` in
9793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9796 *\ 2.11.*) ;; # other 2.11 versions
9797 *) supports_anon_versioning=yes ;;
9798 esac
9800 # See if GNU ld supports shared libraries.
9801 case $host_os in
9802 aix[3-9]*)
9803 # On AIX/PPC, the GNU linker is very broken
9804 if test "$host_cpu" != ia64; then
9805 ld_shlibs=no
9806 cat <<_LT_EOF 1>&2
9808 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9809 *** to be unable to reliably create shared libraries on AIX.
9810 *** Therefore, libtool is disabling shared libraries support. If you
9811 *** really care for shared libraries, you may want to modify your PATH
9812 *** so that a non-GNU linker is found, and then restart.
9814 _LT_EOF
9815 fi
9816 ;;
9818 amigaos*)
9819 case $host_cpu in
9820 powerpc)
9821 # see comment about AmigaOS4 .so support
9822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823 archive_expsym_cmds=''
9824 ;;
9825 m68k)
9826 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)'
9827 hardcode_libdir_flag_spec='-L$libdir'
9828 hardcode_minus_L=yes
9829 ;;
9830 esac
9831 ;;
9833 beos*)
9834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9835 allow_undefined_flag=unsupported
9836 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9837 # support --undefined. This deserves some investigation. FIXME
9838 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9839 else
9840 ld_shlibs=no
9841 fi
9842 ;;
9844 cygwin* | mingw* | pw32* | cegcc*)
9845 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9846 # as there is no search path for DLLs.
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 allow_undefined_flag=unsupported
9849 always_export_symbols=no
9850 enable_shared_with_static_runtimes=yes
9851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9855 # If the export-symbols file already is a .def file (1st line
9856 # is EXPORTS), use it as is; otherwise, prepend...
9857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9858 cp $export_symbols $output_objdir/$soname.def;
9859 else
9860 echo EXPORTS > $output_objdir/$soname.def;
9861 cat $export_symbols >> $output_objdir/$soname.def;
9862 fi~
9863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9864 else
9865 ld_shlibs=no
9866 fi
9867 ;;
9869 interix[3-9]*)
9870 hardcode_direct=no
9871 hardcode_shlibpath_var=no
9872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9873 export_dynamic_flag_spec='${wl}-E'
9874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9875 # Instead, shared libraries are loaded at an image base (0x10000000 by
9876 # default) and relocated if they conflict, which is a slow very memory
9877 # consuming and fragmenting process. To avoid this, we pick a random,
9878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9881 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'
9882 ;;
9884 gnu* | linux* | tpf* | k*bsd*-gnu)
9885 tmp_diet=no
9886 if test "$host_os" = linux-dietlibc; then
9887 case $cc_basename in
9888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9889 esac
9890 fi
9891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9892 && test "$tmp_diet" = no
9893 then
9894 tmp_addflag=
9895 tmp_sharedflag='-shared'
9896 case $cc_basename,$host_cpu in
9897 pgcc*) # Portland Group C compiler
9898 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'
9899 tmp_addflag=' $pic_flag'
9900 ;;
9901 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9902 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'
9903 tmp_addflag=' $pic_flag -Mnomain' ;;
9904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9905 tmp_addflag=' -i_dynamic' ;;
9906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9907 tmp_addflag=' -i_dynamic -nofor_main' ;;
9908 ifc* | ifort*) # Intel Fortran compiler
9909 tmp_addflag=' -nofor_main' ;;
9910 lf95*) # Lahey Fortran 8.1
9911 whole_archive_flag_spec=
9912 tmp_sharedflag='--shared' ;;
9913 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9914 tmp_sharedflag='-qmkshrobj'
9915 tmp_addflag= ;;
9916 esac
9917 case `$CC -V 2>&1 | sed 5q` in
9918 *Sun\ C*) # Sun C 5.9
9919 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'
9920 compiler_needs_object=yes
9921 tmp_sharedflag='-G' ;;
9922 *Sun\ F*) # Sun Fortran 8.3
9923 tmp_sharedflag='-G' ;;
9924 esac
9925 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9927 if test "x$supports_anon_versioning" = xyes; then
9928 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9929 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9930 echo "local: *; };" >> $output_objdir/$libname.ver~
9931 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9932 fi
9934 case $cc_basename in
9935 xlf*)
9936 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9937 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9938 hardcode_libdir_flag_spec=
9939 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9940 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9941 if test "x$supports_anon_versioning" = xyes; then
9942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9944 echo "local: *; };" >> $output_objdir/$libname.ver~
9945 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9946 fi
9947 ;;
9948 esac
9949 else
9950 ld_shlibs=no
9951 fi
9952 ;;
9954 netbsd*)
9955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9956 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9957 wlarc=
9958 else
9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9961 fi
9962 ;;
9964 solaris*)
9965 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9966 ld_shlibs=no
9967 cat <<_LT_EOF 1>&2
9969 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9970 *** create shared libraries on Solaris systems. Therefore, libtool
9971 *** is disabling shared libraries support. We urge you to upgrade GNU
9972 *** binutils to release 2.9.1 or newer. Another option is to modify
9973 *** your PATH or compiler configuration so that the native linker is
9974 *** used, and then restart.
9976 _LT_EOF
9977 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9980 else
9981 ld_shlibs=no
9982 fi
9983 ;;
9985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9986 case `$LD -v 2>&1` in
9987 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9988 ld_shlibs=no
9989 cat <<_LT_EOF 1>&2
9991 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9992 *** reliably create shared libraries on SCO systems. Therefore, libtool
9993 *** is disabling shared libraries support. We urge you to upgrade GNU
9994 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9995 *** your PATH or compiler configuration so that the native linker is
9996 *** used, and then restart.
9998 _LT_EOF
9999 ;;
10000 *)
10001 # For security reasons, it is highly recommended that you always
10002 # use absolute paths for naming shared libraries, and exclude the
10003 # DT_RUNPATH tag from executables and libraries. But doing so
10004 # requires that you compile everything twice, which is a pain.
10005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10009 else
10010 ld_shlibs=no
10011 fi
10012 ;;
10013 esac
10014 ;;
10016 sunos4*)
10017 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10018 wlarc=
10019 hardcode_direct=yes
10020 hardcode_shlibpath_var=no
10021 ;;
10023 *)
10024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10027 else
10028 ld_shlibs=no
10029 fi
10030 ;;
10031 esac
10033 if test "$ld_shlibs" = no; then
10034 runpath_var=
10035 hardcode_libdir_flag_spec=
10036 export_dynamic_flag_spec=
10037 whole_archive_flag_spec=
10038 fi
10039 else
10040 # PORTME fill in a description of your system's linker (not GNU ld)
10041 case $host_os in
10042 aix3*)
10043 allow_undefined_flag=unsupported
10044 always_export_symbols=yes
10045 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'
10046 # Note: this linker hardcodes the directories in LIBPATH if there
10047 # are no directories specified by -L.
10048 hardcode_minus_L=yes
10049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10050 # Neither direct hardcoding nor static linking is supported with a
10051 # broken collect2.
10052 hardcode_direct=unsupported
10053 fi
10054 ;;
10056 aix[4-9]*)
10057 if test "$host_cpu" = ia64; then
10058 # On IA64, the linker does run time linking by default, so we don't
10059 # have to do anything special.
10060 aix_use_runtimelinking=no
10061 exp_sym_flag='-Bexport'
10062 no_entry_flag=""
10063 else
10064 # If we're using GNU nm, then we don't want the "-C" option.
10065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10066 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10067 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'
10068 else
10069 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'
10070 fi
10071 aix_use_runtimelinking=no
10073 # Test if we are trying to use run time linking or normal
10074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10075 # need to do runtime linking.
10076 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10077 for ld_flag in $LDFLAGS; do
10078 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10079 aix_use_runtimelinking=yes
10080 break
10081 fi
10082 done
10083 ;;
10084 esac
10086 exp_sym_flag='-bexport'
10087 no_entry_flag='-bnoentry'
10088 fi
10090 # When large executables or shared objects are built, AIX ld can
10091 # have problems creating the table of contents. If linking a library
10092 # or program results in "error TOC overflow" add -mminimal-toc to
10093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10096 archive_cmds=''
10097 hardcode_direct=yes
10098 hardcode_direct_absolute=yes
10099 hardcode_libdir_separator=':'
10100 link_all_deplibs=yes
10101 file_list_spec='${wl}-f,'
10103 if test "$GCC" = yes; then
10104 case $host_os in aix4.[012]|aix4.[012].*)
10105 # We only want to do this on AIX 4.2 and lower, the check
10106 # below for broken collect2 doesn't work under 4.3+
10107 collect2name=`${CC} -print-prog-name=collect2`
10108 if test -f "$collect2name" &&
10109 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10110 then
10111 # We have reworked collect2
10112 :
10113 else
10114 # We have old collect2
10115 hardcode_direct=unsupported
10116 # It fails to find uninstalled libraries when the uninstalled
10117 # path is not listed in the libpath. Setting hardcode_minus_L
10118 # to unsupported forces relinking
10119 hardcode_minus_L=yes
10120 hardcode_libdir_flag_spec='-L$libdir'
10121 hardcode_libdir_separator=
10122 fi
10123 ;;
10124 esac
10125 shared_flag='-shared'
10126 if test "$aix_use_runtimelinking" = yes; then
10127 shared_flag="$shared_flag "'${wl}-G'
10128 fi
10129 else
10130 # not using gcc
10131 if test "$host_cpu" = ia64; then
10132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10133 # chokes on -Wl,-G. The following line is correct:
10134 shared_flag='-G'
10135 else
10136 if test "$aix_use_runtimelinking" = yes; then
10137 shared_flag='${wl}-G'
10138 else
10139 shared_flag='${wl}-bM:SRE'
10140 fi
10141 fi
10142 fi
10144 export_dynamic_flag_spec='${wl}-bexpall'
10145 # It seems that -bexpall does not export symbols beginning with
10146 # underscore (_), so it is better to generate a list of symbols to export.
10147 always_export_symbols=yes
10148 if test "$aix_use_runtimelinking" = yes; then
10149 # Warning - without using the other runtime loading flags (-brtl),
10150 # -berok will link without error, but may produce a broken library.
10151 allow_undefined_flag='-berok'
10152 # Determine the default libpath from the value encoded in an
10153 # empty executable.
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h. */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10161 int
10162 main ()
10163 {
10165 ;
10166 return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176 $as_echo "$ac_try_echo") >&5
10177 (eval "$ac_link") 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest$ac_exeext && {
10187 test "$cross_compiling" = yes ||
10188 $as_test_x conftest$ac_exeext
10189 }; then
10191 lt_aix_libpath_sed='
10192 /Import File Strings/,/^$/ {
10193 /^0/ {
10194 s/^0 *\(.*\)$/\1/
10195 p
10196 }
10197 }'
10198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10199 # Check for a 64-bit object if we didn't find anything.
10200 if test -z "$aix_libpath"; then
10201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10202 fi
10203 else
10204 $as_echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10208 fi
10210 rm -rf conftest.dSYM
10211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212 conftest$ac_exeext conftest.$ac_ext
10213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10216 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"
10217 else
10218 if test "$host_cpu" = ia64; then
10219 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10220 allow_undefined_flag="-z nodefs"
10221 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"
10222 else
10223 # Determine the default libpath from the value encoded in an
10224 # empty executable.
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h. */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10232 int
10233 main ()
10234 {
10236 ;
10237 return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245 esac
10246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10247 $as_echo "$ac_try_echo") >&5
10248 (eval "$ac_link") 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest$ac_exeext && {
10258 test "$cross_compiling" = yes ||
10259 $as_test_x conftest$ac_exeext
10260 }; then
10262 lt_aix_libpath_sed='
10263 /Import File Strings/,/^$/ {
10264 /^0/ {
10265 s/^0 *\(.*\)$/\1/
10266 p
10267 }
10268 }'
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10270 # Check for a 64-bit object if we didn't find anything.
10271 if test -z "$aix_libpath"; then
10272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10273 fi
10274 else
10275 $as_echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10279 fi
10281 rm -rf conftest.dSYM
10282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10283 conftest$ac_exeext conftest.$ac_ext
10284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10286 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10287 # Warning - without using the other run time loading flags,
10288 # -berok will link without error, but may produce a broken library.
10289 no_undefined_flag=' ${wl}-bernotok'
10290 allow_undefined_flag=' ${wl}-berok'
10291 # Exported symbols can be pulled into shared objects from archives
10292 whole_archive_flag_spec='$convenience'
10293 archive_cmds_need_lc=yes
10294 # This is similar to how AIX traditionally builds its shared libraries.
10295 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'
10296 fi
10297 fi
10298 ;;
10300 amigaos*)
10301 case $host_cpu in
10302 powerpc)
10303 # see comment about AmigaOS4 .so support
10304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305 archive_expsym_cmds=''
10306 ;;
10307 m68k)
10308 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)'
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 hardcode_minus_L=yes
10311 ;;
10312 esac
10313 ;;
10315 bsdi[45]*)
10316 export_dynamic_flag_spec=-rdynamic
10317 ;;
10319 cygwin* | mingw* | pw32* | cegcc*)
10320 # When not using gcc, we currently assume that we are using
10321 # Microsoft Visual C++.
10322 # hardcode_libdir_flag_spec is actually meaningless, as there is
10323 # no search path for DLLs.
10324 hardcode_libdir_flag_spec=' '
10325 allow_undefined_flag=unsupported
10326 # Tell ltmain to make .lib files, not .a files.
10327 libext=lib
10328 # Tell ltmain to make .dll files, not .so files.
10329 shrext_cmds=".dll"
10330 # FIXME: Setting linknames here is a bad hack.
10331 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10332 # The linker will automatically build a .lib file if we build a DLL.
10333 old_archive_from_new_cmds='true'
10334 # FIXME: Should let the user specify the lib program.
10335 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10336 fix_srcfile_path='`cygpath -w "$srcfile"`'
10337 enable_shared_with_static_runtimes=yes
10338 ;;
10340 darwin* | rhapsody*)
10343 archive_cmds_need_lc=no
10344 hardcode_direct=no
10345 hardcode_automatic=yes
10346 hardcode_shlibpath_var=unsupported
10347 whole_archive_flag_spec=''
10348 link_all_deplibs=yes
10349 allow_undefined_flag="$_lt_dar_allow_undefined"
10350 case $cc_basename in
10351 ifort*) _lt_dar_can_shared=yes ;;
10352 *) _lt_dar_can_shared=$GCC ;;
10353 esac
10354 if test "$_lt_dar_can_shared" = "yes"; then
10355 output_verbose_link_cmd=echo
10356 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10357 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10358 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}"
10359 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}"
10361 else
10362 ld_shlibs=no
10363 fi
10365 ;;
10367 dgux*)
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_libdir_flag_spec='-L$libdir'
10370 hardcode_shlibpath_var=no
10371 ;;
10373 freebsd1*)
10374 ld_shlibs=no
10375 ;;
10377 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10378 # support. Future versions do this automatically, but an explicit c++rt0.o
10379 # does not break anything, and helps significantly (at the cost of a little
10380 # extra space).
10381 freebsd2.2*)
10382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10383 hardcode_libdir_flag_spec='-R$libdir'
10384 hardcode_direct=yes
10385 hardcode_shlibpath_var=no
10386 ;;
10388 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10389 freebsd2*)
10390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10391 hardcode_direct=yes
10392 hardcode_minus_L=yes
10393 hardcode_shlibpath_var=no
10394 ;;
10396 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10397 freebsd* | dragonfly*)
10398 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10399 hardcode_libdir_flag_spec='-R$libdir'
10400 hardcode_direct=yes
10401 hardcode_shlibpath_var=no
10402 ;;
10404 hpux9*)
10405 if test "$GCC" = yes; then
10406 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'
10407 else
10408 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'
10409 fi
10410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10411 hardcode_libdir_separator=:
10412 hardcode_direct=yes
10414 # hardcode_minus_L: Not really in the search PATH,
10415 # but as the default location of the library.
10416 hardcode_minus_L=yes
10417 export_dynamic_flag_spec='${wl}-E'
10418 ;;
10420 hpux10*)
10421 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10422 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10423 else
10424 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10425 fi
10426 if test "$with_gnu_ld" = no; then
10427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10428 hardcode_libdir_flag_spec_ld='+b $libdir'
10429 hardcode_libdir_separator=:
10430 hardcode_direct=yes
10431 hardcode_direct_absolute=yes
10432 export_dynamic_flag_spec='${wl}-E'
10433 # hardcode_minus_L: Not really in the search PATH,
10434 # but as the default location of the library.
10435 hardcode_minus_L=yes
10436 fi
10437 ;;
10439 hpux11*)
10440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10441 case $host_cpu in
10442 hppa*64*)
10443 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10444 ;;
10445 ia64*)
10446 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10447 ;;
10448 *)
10449 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10450 ;;
10451 esac
10452 else
10453 case $host_cpu in
10454 hppa*64*)
10455 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10456 ;;
10457 ia64*)
10458 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10459 ;;
10460 *)
10461 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10462 ;;
10463 esac
10464 fi
10465 if test "$with_gnu_ld" = no; then
10466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10467 hardcode_libdir_separator=:
10469 case $host_cpu in
10470 hppa*64*|ia64*)
10471 hardcode_direct=no
10472 hardcode_shlibpath_var=no
10473 ;;
10474 *)
10475 hardcode_direct=yes
10476 hardcode_direct_absolute=yes
10477 export_dynamic_flag_spec='${wl}-E'
10479 # hardcode_minus_L: Not really in the search PATH,
10480 # but as the default location of the library.
10481 hardcode_minus_L=yes
10482 ;;
10483 esac
10484 fi
10485 ;;
10487 irix5* | irix6* | nonstopux*)
10488 if test "$GCC" = yes; then
10489 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'
10490 # Try to use the -exported_symbol ld option, if it does not
10491 # work, assume that -exports_file does not work either and
10492 # implicitly export all symbols.
10493 save_LDFLAGS="$LDFLAGS"
10494 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10495 cat >conftest.$ac_ext <<_ACEOF
10496 int foo(void) {}
10497 _ACEOF
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (ac_try="$ac_link"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_link") 2>conftest.er1
10507 ac_status=$?
10508 grep -v '^ *+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest$ac_exeext && {
10516 test "$cross_compiling" = yes ||
10517 $as_test_x conftest$ac_exeext
10518 }; then
10519 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'
10521 else
10522 $as_echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10526 fi
10528 rm -rf conftest.dSYM
10529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LDFLAGS="$save_LDFLAGS"
10532 else
10533 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'
10534 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'
10535 fi
10536 archive_cmds_need_lc='no'
10537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538 hardcode_libdir_separator=:
10539 inherit_rpath=yes
10540 link_all_deplibs=yes
10541 ;;
10543 netbsd*)
10544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10546 else
10547 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10548 fi
10549 hardcode_libdir_flag_spec='-R$libdir'
10550 hardcode_direct=yes
10551 hardcode_shlibpath_var=no
10552 ;;
10554 newsos6)
10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_direct=yes
10557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558 hardcode_libdir_separator=:
10559 hardcode_shlibpath_var=no
10560 ;;
10562 *nto* | *qnx*)
10563 ;;
10565 openbsd*)
10566 if test -f /usr/libexec/ld.so; then
10567 hardcode_direct=yes
10568 hardcode_shlibpath_var=no
10569 hardcode_direct_absolute=yes
10570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10572 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10574 export_dynamic_flag_spec='${wl}-E'
10575 else
10576 case $host_os in
10577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579 hardcode_libdir_flag_spec='-R$libdir'
10580 ;;
10581 *)
10582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10584 ;;
10585 esac
10586 fi
10587 else
10588 ld_shlibs=no
10589 fi
10590 ;;
10592 os2*)
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_minus_L=yes
10595 allow_undefined_flag=unsupported
10596 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'
10597 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10598 ;;
10600 osf3*)
10601 if test "$GCC" = yes; then
10602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10603 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'
10604 else
10605 allow_undefined_flag=' -expect_unresolved \*'
10606 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'
10607 fi
10608 archive_cmds_need_lc='no'
10609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10610 hardcode_libdir_separator=:
10611 ;;
10613 osf4* | osf5*) # as osf3* with the addition of -msym flag
10614 if test "$GCC" = yes; then
10615 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10616 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'
10617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10618 else
10619 allow_undefined_flag=' -expect_unresolved \*'
10620 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'
10621 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~
10622 $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'
10624 # Both c and cxx compiler support -rpath directly
10625 hardcode_libdir_flag_spec='-rpath $libdir'
10626 fi
10627 archive_cmds_need_lc='no'
10628 hardcode_libdir_separator=:
10629 ;;
10631 solaris*)
10632 no_undefined_flag=' -z defs'
10633 if test "$GCC" = yes; then
10634 wlarc='${wl}'
10635 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10637 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10638 else
10639 case `$CC -V 2>&1` in
10640 *"Compilers 5.0"*)
10641 wlarc=''
10642 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10645 ;;
10646 *)
10647 wlarc='${wl}'
10648 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10650 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10651 ;;
10652 esac
10653 fi
10654 hardcode_libdir_flag_spec='-R$libdir'
10655 hardcode_shlibpath_var=no
10656 case $host_os in
10657 solaris2.[0-5] | solaris2.[0-5].*) ;;
10658 *)
10659 # The compiler driver will combine and reorder linker options,
10660 # but understands `-z linker_flag'. GCC discards it without `$wl',
10661 # but is careful enough not to reorder.
10662 # Supported since Solaris 2.6 (maybe 2.5.1?)
10663 if test "$GCC" = yes; then
10664 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10665 else
10666 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10667 fi
10668 ;;
10669 esac
10670 link_all_deplibs=yes
10671 ;;
10673 sunos4*)
10674 if test "x$host_vendor" = xsequent; then
10675 # Use $CC to link under sequent, because it throws in some extra .o
10676 # files that make .init and .fini sections work.
10677 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678 else
10679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10680 fi
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_direct=yes
10683 hardcode_minus_L=yes
10684 hardcode_shlibpath_var=no
10685 ;;
10687 sysv4)
10688 case $host_vendor in
10689 sni)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_direct=yes # is this really true???
10692 ;;
10693 siemens)
10694 ## LD is ld it makes a PLAMLIB
10695 ## CC just makes a GrossModule.
10696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10697 reload_cmds='$CC -r -o $output$reload_objs'
10698 hardcode_direct=no
10699 ;;
10700 motorola)
10701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10703 ;;
10704 esac
10705 runpath_var='LD_RUN_PATH'
10706 hardcode_shlibpath_var=no
10707 ;;
10709 sysv4.3*)
10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_shlibpath_var=no
10712 export_dynamic_flag_spec='-Bexport'
10713 ;;
10715 sysv4*MP*)
10716 if test -d /usr/nec; then
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_shlibpath_var=no
10719 runpath_var=LD_RUN_PATH
10720 hardcode_runpath_var=yes
10721 ld_shlibs=yes
10722 fi
10723 ;;
10725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10726 no_undefined_flag='${wl}-z,text'
10727 archive_cmds_need_lc=no
10728 hardcode_shlibpath_var=no
10729 runpath_var='LD_RUN_PATH'
10731 if test "$GCC" = yes; then
10732 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 else
10735 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 fi
10738 ;;
10740 sysv5* | sco3.2v5* | sco5v6*)
10741 # Note: We can NOT use -z defs as we might desire, because we do not
10742 # link with -lc, and that would cause any symbols used from libc to
10743 # always be unresolved, which means just about no library would
10744 # ever link correctly. If we're not using GNU ld we use -z text
10745 # though, which does catch some bad symbols but isn't as heavy-handed
10746 # as -z defs.
10747 no_undefined_flag='${wl}-z,text'
10748 allow_undefined_flag='${wl}-z,nodefs'
10749 archive_cmds_need_lc=no
10750 hardcode_shlibpath_var=no
10751 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10752 hardcode_libdir_separator=':'
10753 link_all_deplibs=yes
10754 export_dynamic_flag_spec='${wl}-Bexport'
10755 runpath_var='LD_RUN_PATH'
10757 if test "$GCC" = yes; then
10758 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 else
10761 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 fi
10764 ;;
10766 uts4*)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_libdir_flag_spec='-L$libdir'
10769 hardcode_shlibpath_var=no
10770 ;;
10772 *)
10773 ld_shlibs=no
10774 ;;
10775 esac
10777 if test x$host_vendor = xsni; then
10778 case $host in
10779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10780 export_dynamic_flag_spec='${wl}-Blargedynsym'
10781 ;;
10782 esac
10783 fi
10784 fi
10786 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10787 $as_echo "$ld_shlibs" >&6; }
10788 test "$ld_shlibs" = no && can_build_shared=no
10790 with_gnu_ld=$with_gnu_ld
10806 #
10807 # Do we need to explicitly link libc?
10808 #
10809 case "x$archive_cmds_need_lc" in
10810 x|xyes)
10811 # Assume -lc should be added
10812 archive_cmds_need_lc=yes
10814 if test "$enable_shared" = yes && test "$GCC" = yes; then
10815 case $archive_cmds in
10816 *'~'*)
10817 # FIXME: we may have to deal with multi-command sequences.
10818 ;;
10819 '$CC '*)
10820 # Test whether the compiler implicitly links with -lc since on some
10821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10822 # to ld, don't add -lc before -lgcc.
10823 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10824 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10825 $RM conftest*
10826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829 (eval $ac_compile) 2>&5
10830 ac_status=$?
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } 2>conftest.err; then
10833 soname=conftest
10834 lib=conftest
10835 libobjs=conftest.$ac_objext
10836 deplibs=
10837 wl=$lt_prog_compiler_wl
10838 pic_flag=$lt_prog_compiler_pic
10839 compiler_flags=-v
10840 linker_flags=-v
10841 verstring=
10842 output_objdir=.
10843 libname=conftest
10844 lt_save_allow_undefined_flag=$allow_undefined_flag
10845 allow_undefined_flag=
10846 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10847 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10848 ac_status=$?
10849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }
10851 then
10852 archive_cmds_need_lc=no
10853 else
10854 archive_cmds_need_lc=yes
10855 fi
10856 allow_undefined_flag=$lt_save_allow_undefined_flag
10857 else
10858 cat conftest.err 1>&5
10859 fi
10860 $RM conftest*
10861 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10862 $as_echo "$archive_cmds_need_lc" >&6; }
10863 ;;
10864 esac
10865 fi
10866 ;;
10867 esac
11025 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11028 if test "$GCC" = yes; then
11029 case $host_os in
11030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11031 *) lt_awk_arg="/^libraries:/" ;;
11032 esac
11033 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11034 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11035 # if the path contains ";" then we assume it to be the separator
11036 # otherwise default to the standard path separator (i.e. ":") - it is
11037 # assumed that no part of a normal pathname contains ";" but that should
11038 # okay in the real world where ";" in dirpaths is itself problematic.
11039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11040 else
11041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11042 fi
11043 # Ok, now we have the path, separated by spaces, we can step through it
11044 # and add multilib dir if necessary.
11045 lt_tmp_lt_search_path_spec=
11046 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11047 for lt_sys_path in $lt_search_path_spec; do
11048 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11049 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11050 else
11051 test -d "$lt_sys_path" && \
11052 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11053 fi
11054 done
11055 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11056 BEGIN {RS=" "; FS="/|\n";} {
11057 lt_foo="";
11058 lt_count=0;
11059 for (lt_i = NF; lt_i > 0; lt_i--) {
11060 if ($lt_i != "" && $lt_i != ".") {
11061 if ($lt_i == "..") {
11062 lt_count++;
11063 } else {
11064 if (lt_count == 0) {
11065 lt_foo="/" $lt_i lt_foo;
11066 } else {
11067 lt_count--;
11068 }
11069 }
11070 }
11071 }
11072 if (lt_foo != "") { lt_freq[lt_foo]++; }
11073 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11074 }'`
11075 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11076 else
11077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11078 fi
11079 library_names_spec=
11080 libname_spec='lib$name'
11081 soname_spec=
11082 shrext_cmds=".so"
11083 postinstall_cmds=
11084 postuninstall_cmds=
11085 finish_cmds=
11086 finish_eval=
11087 shlibpath_var=
11088 shlibpath_overrides_runpath=unknown
11089 version_type=none
11090 dynamic_linker="$host_os ld.so"
11091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11092 need_lib_prefix=unknown
11093 hardcode_into_libs=no
11095 # when you set need_version to no, make sure it does not cause -set_version
11096 # flags to be left without arguments
11097 need_version=unknown
11099 case $host_os in
11100 aix3*)
11101 version_type=linux
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11103 shlibpath_var=LIBPATH
11105 # AIX 3 has no versioning support, so we append a major version to the name.
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 ;;
11109 aix[4-9]*)
11110 version_type=linux
11111 need_lib_prefix=no
11112 need_version=no
11113 hardcode_into_libs=yes
11114 if test "$host_cpu" = ia64; then
11115 # AIX 5 supports IA64
11116 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 else
11119 # With GCC up to 2.95.x, collect2 would create an import file
11120 # for dependence libraries. The import file would start with
11121 # the line `#! .'. This would cause the generated library to
11122 # depend on `.', always an invalid library. This was fixed in
11123 # development snapshots of GCC prior to 3.0.
11124 case $host_os in
11125 aix4 | aix4.[01] | aix4.[01].*)
11126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11127 echo ' yes '
11128 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11129 :
11130 else
11131 can_build_shared=no
11132 fi
11133 ;;
11134 esac
11135 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11136 # soname into executable. Probably we can add versioning support to
11137 # collect2, so additional links can be useful in future.
11138 if test "$aix_use_runtimelinking" = yes; then
11139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11140 # instead of lib<name>.a to let people know that these are not
11141 # typical AIX shared libraries.
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 else
11144 # We preserve .a as extension for shared libraries through AIX4.2
11145 # and later when we are not doing run time linking.
11146 library_names_spec='${libname}${release}.a $libname.a'
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 fi
11149 shlibpath_var=LIBPATH
11150 fi
11151 ;;
11153 amigaos*)
11154 case $host_cpu in
11155 powerpc)
11156 # Since July 2007 AmigaOS4 officially supports .so libraries.
11157 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159 ;;
11160 m68k)
11161 library_names_spec='$libname.ixlibrary $libname.a'
11162 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11163 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'
11164 ;;
11165 esac
11166 ;;
11168 beos*)
11169 library_names_spec='${libname}${shared_ext}'
11170 dynamic_linker="$host_os ld.so"
11171 shlibpath_var=LIBRARY_PATH
11172 ;;
11174 bsdi[45]*)
11175 version_type=linux
11176 need_version=no
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11183 # the default ld.so.conf also contains /usr/contrib/lib and
11184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11185 # libtool to hard-code these into programs
11186 ;;
11188 cygwin* | mingw* | pw32* | cegcc*)
11189 version_type=windows
11190 shrext_cmds=".dll"
11191 need_version=no
11192 need_lib_prefix=no
11194 case $GCC,$host_os in
11195 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11196 library_names_spec='$libname.dll.a'
11197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11198 postinstall_cmds='base_file=`basename \${file}`~
11199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11200 dldir=$destdir/`dirname \$dlpath`~
11201 test -d \$dldir || mkdir -p \$dldir~
11202 $install_prog $dir/$dlname \$dldir/$dlname~
11203 chmod a+x \$dldir/$dlname~
11204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11205 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11206 fi'
11207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11208 dlpath=$dir/\$dldll~
11209 $RM \$dlpath'
11210 shlibpath_overrides_runpath=yes
11212 case $host_os in
11213 cygwin*)
11214 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11216 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11217 ;;
11218 mingw* | cegcc*)
11219 # MinGW DLLs use traditional 'lib' prefix
11220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11221 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11222 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11223 # It is most probably a Windows format PATH printed by
11224 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11225 # path with ; separators, and with drive letters. We can handle the
11226 # drive letters (cygwin fileutils understands them), so leave them,
11227 # especially as we might pass files found there to a mingw objdump,
11228 # which wouldn't understand a cygwinified path. Ahh.
11229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11230 else
11231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11232 fi
11233 ;;
11234 pw32*)
11235 # pw32 DLLs use 'pw' prefix rather than 'lib'
11236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11237 ;;
11238 esac
11239 ;;
11241 *)
11242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11243 ;;
11244 esac
11245 dynamic_linker='Win32 ld.exe'
11246 # FIXME: first we should search . and the directory the executable is in
11247 shlibpath_var=PATH
11248 ;;
11250 darwin* | rhapsody*)
11251 dynamic_linker="$host_os dyld"
11252 version_type=darwin
11253 need_lib_prefix=no
11254 need_version=no
11255 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11256 soname_spec='${libname}${release}${major}$shared_ext'
11257 shlibpath_overrides_runpath=yes
11258 shlibpath_var=DYLD_LIBRARY_PATH
11259 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11261 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11263 ;;
11265 dgux*)
11266 version_type=linux
11267 need_lib_prefix=no
11268 need_version=no
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 ;;
11274 freebsd1*)
11275 dynamic_linker=no
11276 ;;
11278 freebsd* | dragonfly*)
11279 # DragonFly does not have aout. When/if they implement a new
11280 # versioning mechanism, adjust this.
11281 if test -x /usr/bin/objformat; then
11282 objformat=`/usr/bin/objformat`
11283 else
11284 case $host_os in
11285 freebsd[123]*) objformat=aout ;;
11286 *) objformat=elf ;;
11287 esac
11288 fi
11289 version_type=freebsd-$objformat
11290 case $version_type in
11291 freebsd-elf*)
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11293 need_version=no
11294 need_lib_prefix=no
11295 ;;
11296 freebsd-*)
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11298 need_version=yes
11299 ;;
11300 esac
11301 shlibpath_var=LD_LIBRARY_PATH
11302 case $host_os in
11303 freebsd2*)
11304 shlibpath_overrides_runpath=yes
11305 ;;
11306 freebsd3.[01]* | freebsdelf3.[01]*)
11307 shlibpath_overrides_runpath=yes
11308 hardcode_into_libs=yes
11309 ;;
11310 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11311 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11312 shlibpath_overrides_runpath=no
11313 hardcode_into_libs=yes
11314 ;;
11315 *) # from 4.6 on, and DragonFly
11316 shlibpath_overrides_runpath=yes
11317 hardcode_into_libs=yes
11318 ;;
11319 esac
11320 ;;
11322 gnu*)
11323 version_type=linux
11324 need_lib_prefix=no
11325 need_version=no
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 hardcode_into_libs=yes
11330 ;;
11332 hpux9* | hpux10* | hpux11*)
11333 # Give a soname corresponding to the major version so that dld.sl refuses to
11334 # link against other versions.
11335 version_type=sunos
11336 need_lib_prefix=no
11337 need_version=no
11338 case $host_cpu in
11339 ia64*)
11340 shrext_cmds='.so'
11341 hardcode_into_libs=yes
11342 dynamic_linker="$host_os dld.so"
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 if test "X$HPUX_IA64_MODE" = X32; then
11348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11349 else
11350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11351 fi
11352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11353 ;;
11354 hppa*64*)
11355 shrext_cmds='.sl'
11356 hardcode_into_libs=yes
11357 dynamic_linker="$host_os dld.sl"
11358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364 ;;
11365 *)
11366 shrext_cmds='.sl'
11367 dynamic_linker="$host_os dld.sl"
11368 shlibpath_var=SHLIB_PATH
11369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 ;;
11373 esac
11374 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11375 postinstall_cmds='chmod 555 $lib'
11376 ;;
11378 interix[3-9]*)
11379 version_type=linux
11380 need_lib_prefix=no
11381 need_version=no
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
11387 hardcode_into_libs=yes
11388 ;;
11390 irix5* | irix6* | nonstopux*)
11391 case $host_os in
11392 nonstopux*) version_type=nonstopux ;;
11393 *)
11394 if test "$lt_cv_prog_gnu_ld" = yes; then
11395 version_type=linux
11396 else
11397 version_type=irix
11398 fi ;;
11399 esac
11400 need_lib_prefix=no
11401 need_version=no
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11404 case $host_os in
11405 irix5* | nonstopux*)
11406 libsuff= shlibsuff=
11407 ;;
11408 *)
11409 case $LD in # libtool.m4 will add one of these switches to LD
11410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11411 libsuff= shlibsuff= libmagic=32-bit;;
11412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11413 libsuff=32 shlibsuff=N32 libmagic=N32;;
11414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11415 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11416 *) libsuff= shlibsuff= libmagic=never-match;;
11417 esac
11418 ;;
11419 esac
11420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11421 shlibpath_overrides_runpath=no
11422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11424 hardcode_into_libs=yes
11425 ;;
11427 # No shared lib support for Linux oldld, aout, or coff.
11428 linux*oldld* | linux*aout* | linux*coff*)
11429 dynamic_linker=no
11430 ;;
11432 # This must be Linux ELF.
11433 linux* | k*bsd*-gnu)
11434 version_type=linux
11435 need_lib_prefix=no
11436 need_version=no
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438 soname_spec='${libname}${release}${shared_ext}$major'
11439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=no
11442 # Some binutils ld are patched to set DT_RUNPATH
11443 save_LDFLAGS=$LDFLAGS
11444 save_libdir=$libdir
11445 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11446 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11454 int
11455 main ()
11456 {
11458 ;
11459 return 0;
11460 }
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (ac_try="$ac_link"
11464 case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467 esac
11468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11469 $as_echo "$ac_try_echo") >&5
11470 (eval "$ac_link") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext && {
11480 test "$cross_compiling" = yes ||
11481 $as_test_x conftest$ac_exeext
11482 }; then
11483 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11484 shlibpath_overrides_runpath=yes
11485 fi
11487 else
11488 $as_echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11492 fi
11494 rm -rf conftest.dSYM
11495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LDFLAGS=$save_LDFLAGS
11498 libdir=$save_libdir
11500 # This implies no fast_install, which is unacceptable.
11501 # Some rework will be needed to allow for fast_install
11502 # before this can be enabled.
11503 hardcode_into_libs=yes
11505 # Append ld.so.conf contents to the search path
11506 if test -f /etc/ld.so.conf; then
11507 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' ' '`
11508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11509 fi
11511 # We used to test for /lib/ld.so.1 and disable shared libraries on
11512 # powerpc, because MkLinux only supported shared libraries with the
11513 # GNU dynamic linker. Since this was broken with cross compilers,
11514 # most powerpc-linux boxes support dynamic linking these days and
11515 # people can always --disable-shared, the test was removed, and we
11516 # assume the GNU/Linux dynamic linker is in use.
11517 dynamic_linker='GNU/Linux ld.so'
11518 ;;
11520 netbsd*)
11521 version_type=sunos
11522 need_lib_prefix=no
11523 need_version=no
11524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527 dynamic_linker='NetBSD (a.out) ld.so'
11528 else
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 dynamic_linker='NetBSD ld.elf_so'
11532 fi
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes
11535 hardcode_into_libs=yes
11536 ;;
11538 newsos6)
11539 version_type=linux
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes
11543 ;;
11545 *nto* | *qnx*)
11546 version_type=qnx
11547 need_lib_prefix=no
11548 need_version=no
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=no
11553 hardcode_into_libs=yes
11554 dynamic_linker='ldqnx.so'
11555 ;;
11557 openbsd*)
11558 version_type=sunos
11559 sys_lib_dlsearch_path_spec="/usr/lib"
11560 need_lib_prefix=no
11561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11562 case $host_os in
11563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11564 *) need_version=no ;;
11565 esac
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11570 case $host_os in
11571 openbsd2.[89] | openbsd2.[89].*)
11572 shlibpath_overrides_runpath=no
11573 ;;
11574 *)
11575 shlibpath_overrides_runpath=yes
11576 ;;
11577 esac
11578 else
11579 shlibpath_overrides_runpath=yes
11580 fi
11581 ;;
11583 os2*)
11584 libname_spec='$name'
11585 shrext_cmds=".dll"
11586 need_lib_prefix=no
11587 library_names_spec='$libname${shared_ext} $libname.a'
11588 dynamic_linker='OS/2 ld.exe'
11589 shlibpath_var=LIBPATH
11590 ;;
11592 osf3* | osf4* | osf5*)
11593 version_type=osf
11594 need_lib_prefix=no
11595 need_version=no
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11601 ;;
11603 rdos*)
11604 dynamic_linker=no
11605 ;;
11607 solaris*)
11608 version_type=linux
11609 need_lib_prefix=no
11610 need_version=no
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes
11615 hardcode_into_libs=yes
11616 # ldd complains unless libraries are executable
11617 postinstall_cmds='chmod +x $lib'
11618 ;;
11620 sunos4*)
11621 version_type=sunos
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=yes
11626 if test "$with_gnu_ld" = yes; then
11627 need_lib_prefix=no
11628 fi
11629 need_version=yes
11630 ;;
11632 sysv4 | sysv4.3*)
11633 version_type=linux
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 case $host_vendor in
11638 sni)
11639 shlibpath_overrides_runpath=no
11640 need_lib_prefix=no
11641 runpath_var=LD_RUN_PATH
11642 ;;
11643 siemens)
11644 need_lib_prefix=no
11645 ;;
11646 motorola)
11647 need_lib_prefix=no
11648 need_version=no
11649 shlibpath_overrides_runpath=no
11650 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11651 ;;
11652 esac
11653 ;;
11655 sysv4*MP*)
11656 if test -d /usr/nec ;then
11657 version_type=linux
11658 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11659 soname_spec='$libname${shared_ext}.$major'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 fi
11662 ;;
11664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11665 version_type=freebsd-elf
11666 need_lib_prefix=no
11667 need_version=no
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 shlibpath_overrides_runpath=yes
11672 hardcode_into_libs=yes
11673 if test "$with_gnu_ld" = yes; then
11674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11675 else
11676 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11677 case $host_os in
11678 sco3.2v5*)
11679 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11680 ;;
11681 esac
11682 fi
11683 sys_lib_dlsearch_path_spec='/usr/lib'
11684 ;;
11686 tpf*)
11687 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11688 version_type=linux
11689 need_lib_prefix=no
11690 need_version=no
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692 shlibpath_var=LD_LIBRARY_PATH
11693 shlibpath_overrides_runpath=no
11694 hardcode_into_libs=yes
11695 ;;
11697 uts4*)
11698 version_type=linux
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 ;;
11704 *)
11705 dynamic_linker=no
11706 ;;
11707 esac
11708 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11709 $as_echo "$dynamic_linker" >&6; }
11710 test "$dynamic_linker" = no && can_build_shared=no
11712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11713 if test "$GCC" = yes; then
11714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11715 fi
11717 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11718 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11719 fi
11720 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11721 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11722 fi
11810 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11811 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11812 hardcode_action=
11813 if test -n "$hardcode_libdir_flag_spec" ||
11814 test -n "$runpath_var" ||
11815 test "X$hardcode_automatic" = "Xyes" ; then
11817 # We can hardcode non-existent directories.
11818 if test "$hardcode_direct" != no &&
11819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11820 # have to relink, otherwise we might link with an installed library
11821 # when we should be linking with a yet-to-be-installed one
11822 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11823 test "$hardcode_minus_L" != no; then
11824 # Linking always hardcodes the temporary library directory.
11825 hardcode_action=relink
11826 else
11827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11828 hardcode_action=immediate
11829 fi
11830 else
11831 # We cannot hardcode anything, or else we can only hardcode existing
11832 # directories.
11833 hardcode_action=unsupported
11834 fi
11835 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11836 $as_echo "$hardcode_action" >&6; }
11838 if test "$hardcode_action" = relink ||
11839 test "$inherit_rpath" = yes; then
11840 # Fast installation is not supported
11841 enable_fast_install=no
11842 elif test "$shlibpath_overrides_runpath" = yes ||
11843 test "$enable_shared" = no; then
11844 # Fast installation is not necessary
11845 enable_fast_install=needless
11846 fi
11853 if test "x$enable_dlopen" != xyes; then
11854 enable_dlopen=unknown
11855 enable_dlopen_self=unknown
11856 enable_dlopen_self_static=unknown
11857 else
11858 lt_cv_dlopen=no
11859 lt_cv_dlopen_libs=
11861 case $host_os in
11862 beos*)
11863 lt_cv_dlopen="load_add_on"
11864 lt_cv_dlopen_libs=
11865 lt_cv_dlopen_self=yes
11866 ;;
11868 mingw* | pw32* | cegcc*)
11869 lt_cv_dlopen="LoadLibrary"
11870 lt_cv_dlopen_libs=
11871 ;;
11873 cygwin*)
11874 lt_cv_dlopen="dlopen"
11875 lt_cv_dlopen_libs=
11876 ;;
11878 darwin*)
11879 # if libdl is installed we need to link against it
11880 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11883 $as_echo_n "(cached) " >&6
11884 else
11885 ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-ldl $LIBS"
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h. */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 char dlopen ();
11901 int
11902 main ()
11903 {
11904 return dlopen ();
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (ac_try="$ac_link"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914 esac
11915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11916 $as_echo "$ac_try_echo") >&5
11917 (eval "$ac_link") 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest$ac_exeext && {
11927 test "$cross_compiling" = yes ||
11928 $as_test_x conftest$ac_exeext
11929 }; then
11930 ac_cv_lib_dl_dlopen=yes
11931 else
11932 $as_echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_cv_lib_dl_dlopen=no
11936 fi
11938 rm -rf conftest.dSYM
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11942 fi
11943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11944 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11945 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11947 else
11949 lt_cv_dlopen="dyld"
11950 lt_cv_dlopen_libs=
11951 lt_cv_dlopen_self=yes
11953 fi
11955 ;;
11957 *)
11958 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11959 $as_echo_n "checking for shl_load... " >&6; }
11960 if test "${ac_cv_func_shl_load+set}" = set; then
11961 $as_echo_n "(cached) " >&6
11962 else
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h. */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11971 #define shl_load innocuous_shl_load
11973 /* System header to define __stub macros and hopefully few prototypes,
11974 which can conflict with char shl_load (); below.
11975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11976 <limits.h> exists even on freestanding compilers. */
11978 #ifdef __STDC__
11979 # include <limits.h>
11980 #else
11981 # include <assert.h>
11982 #endif
11984 #undef shl_load
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 char shl_load ();
11993 /* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996 #if defined __stub_shl_load || defined __stub___shl_load
11997 choke me
11998 #endif
12000 int
12001 main ()
12002 {
12003 return shl_load ();
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015 $as_echo "$ac_try_echo") >&5
12016 (eval "$ac_link") 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && {
12023 test -z "$ac_c_werror_flag" ||
12024 test ! -s conftest.err
12025 } && test -s conftest$ac_exeext && {
12026 test "$cross_compiling" = yes ||
12027 $as_test_x conftest$ac_exeext
12028 }; then
12029 ac_cv_func_shl_load=yes
12030 else
12031 $as_echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 ac_cv_func_shl_load=no
12035 fi
12037 rm -rf conftest.dSYM
12038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12039 conftest$ac_exeext conftest.$ac_ext
12040 fi
12041 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12042 $as_echo "$ac_cv_func_shl_load" >&6; }
12043 if test "x$ac_cv_func_shl_load" = x""yes; then
12044 lt_cv_dlopen="shl_load"
12045 else
12046 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12047 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12048 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12049 $as_echo_n "(cached) " >&6
12050 else
12051 ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-ldld $LIBS"
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 char shl_load ();
12067 int
12068 main ()
12069 {
12070 return shl_load ();
12071 ;
12072 return 0;
12073 }
12074 _ACEOF
12075 rm -f conftest.$ac_objext conftest$ac_exeext
12076 if { (ac_try="$ac_link"
12077 case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080 esac
12081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12082 $as_echo "$ac_try_echo") >&5
12083 (eval "$ac_link") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } && {
12090 test -z "$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 } && test -s conftest$ac_exeext && {
12093 test "$cross_compiling" = yes ||
12094 $as_test_x conftest$ac_exeext
12095 }; then
12096 ac_cv_lib_dld_shl_load=yes
12097 else
12098 $as_echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ac_cv_lib_dld_shl_load=no
12102 fi
12104 rm -rf conftest.dSYM
12105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12106 conftest$ac_exeext conftest.$ac_ext
12107 LIBS=$ac_check_lib_save_LIBS
12108 fi
12109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12110 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12111 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12112 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12113 else
12114 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12115 $as_echo_n "checking for dlopen... " >&6; }
12116 if test "${ac_cv_func_dlopen+set}" = set; then
12117 $as_echo_n "(cached) " >&6
12118 else
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12127 #define dlopen innocuous_dlopen
12129 /* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char dlopen (); below.
12131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132 <limits.h> exists even on freestanding compilers. */
12134 #ifdef __STDC__
12135 # include <limits.h>
12136 #else
12137 # include <assert.h>
12138 #endif
12140 #undef dlopen
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char dlopen ();
12149 /* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
12152 #if defined __stub_dlopen || defined __stub___dlopen
12153 choke me
12154 #endif
12156 int
12157 main ()
12158 {
12159 return dlopen ();
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171 $as_echo "$ac_try_echo") >&5
12172 (eval "$ac_link") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest$ac_exeext && {
12182 test "$cross_compiling" = yes ||
12183 $as_test_x conftest$ac_exeext
12184 }; then
12185 ac_cv_func_dlopen=yes
12186 else
12187 $as_echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_cv_func_dlopen=no
12191 fi
12193 rm -rf conftest.dSYM
12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195 conftest$ac_exeext conftest.$ac_ext
12196 fi
12197 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12198 $as_echo "$ac_cv_func_dlopen" >&6; }
12199 if test "x$ac_cv_func_dlopen" = x""yes; then
12200 lt_cv_dlopen="dlopen"
12201 else
12202 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12203 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12204 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12205 $as_echo_n "(cached) " >&6
12206 else
12207 ac_check_lib_save_LIBS=$LIBS
12208 LIBS="-ldl $LIBS"
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h. */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12216 /* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219 #ifdef __cplusplus
12220 extern "C"
12221 #endif
12222 char dlopen ();
12223 int
12224 main ()
12225 {
12226 return dlopen ();
12227 ;
12228 return 0;
12229 }
12230 _ACEOF
12231 rm -f conftest.$ac_objext conftest$ac_exeext
12232 if { (ac_try="$ac_link"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12238 $as_echo "$ac_try_echo") >&5
12239 (eval "$ac_link") 2>conftest.er1
12240 ac_status=$?
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
12244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } && {
12246 test -z "$ac_c_werror_flag" ||
12247 test ! -s conftest.err
12248 } && test -s conftest$ac_exeext && {
12249 test "$cross_compiling" = yes ||
12250 $as_test_x conftest$ac_exeext
12251 }; then
12252 ac_cv_lib_dl_dlopen=yes
12253 else
12254 $as_echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ac_cv_lib_dl_dlopen=no
12258 fi
12260 rm -rf conftest.dSYM
12261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12262 conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12264 fi
12265 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12267 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12269 else
12270 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12272 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-lsvld $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h. */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287 #ifdef __cplusplus
12288 extern "C"
12289 #endif
12290 char dlopen ();
12291 int
12292 main ()
12293 {
12294 return dlopen ();
12295 ;
12296 return 0;
12297 }
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (ac_try="$ac_link"
12301 case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12304 esac
12305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12306 $as_echo "$ac_try_echo") >&5
12307 (eval "$ac_link") 2>conftest.er1
12308 ac_status=$?
12309 grep -v '^ *+' conftest.er1 >conftest.err
12310 rm -f conftest.er1
12311 cat conftest.err >&5
12312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } && {
12314 test -z "$ac_c_werror_flag" ||
12315 test ! -s conftest.err
12316 } && test -s conftest$ac_exeext && {
12317 test "$cross_compiling" = yes ||
12318 $as_test_x conftest$ac_exeext
12319 }; then
12320 ac_cv_lib_svld_dlopen=yes
12321 else
12322 $as_echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_lib_svld_dlopen=no
12326 fi
12328 rm -rf conftest.dSYM
12329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12332 fi
12333 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12334 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12335 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12337 else
12338 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12339 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12340 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12341 $as_echo_n "(cached) " >&6
12342 else
12343 ac_check_lib_save_LIBS=$LIBS
12344 LIBS="-ldld $LIBS"
12345 cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h. */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12352 /* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 char dld_link ();
12359 int
12360 main ()
12361 {
12362 return dld_link ();
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372 esac
12373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12374 $as_echo "$ac_try_echo") >&5
12375 (eval "$ac_link") 2>conftest.er1
12376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
12380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } && {
12382 test -z "$ac_c_werror_flag" ||
12383 test ! -s conftest.err
12384 } && test -s conftest$ac_exeext && {
12385 test "$cross_compiling" = yes ||
12386 $as_test_x conftest$ac_exeext
12387 }; then
12388 ac_cv_lib_dld_dld_link=yes
12389 else
12390 $as_echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_cv_lib_dld_dld_link=no
12394 fi
12396 rm -rf conftest.dSYM
12397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12398 conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12400 fi
12401 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12402 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12403 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12404 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12405 fi
12408 fi
12411 fi
12414 fi
12417 fi
12420 fi
12422 ;;
12423 esac
12425 if test "x$lt_cv_dlopen" != xno; then
12426 enable_dlopen=yes
12427 else
12428 enable_dlopen=no
12429 fi
12431 case $lt_cv_dlopen in
12432 dlopen)
12433 save_CPPFLAGS="$CPPFLAGS"
12434 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12436 save_LDFLAGS="$LDFLAGS"
12437 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12439 save_LIBS="$LIBS"
12440 LIBS="$lt_cv_dlopen_libs $LIBS"
12442 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12443 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12444 if test "${lt_cv_dlopen_self+set}" = set; then
12445 $as_echo_n "(cached) " >&6
12446 else
12447 if test "$cross_compiling" = yes; then :
12448 lt_cv_dlopen_self=cross
12449 else
12450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12451 lt_status=$lt_dlunknown
12452 cat > conftest.$ac_ext <<_LT_EOF
12453 #line 12453 "configure"
12454 #include "confdefs.h"
12456 #if HAVE_DLFCN_H
12457 #include <dlfcn.h>
12458 #endif
12460 #include <stdio.h>
12462 #ifdef RTLD_GLOBAL
12463 # define LT_DLGLOBAL RTLD_GLOBAL
12464 #else
12465 # ifdef DL_GLOBAL
12466 # define LT_DLGLOBAL DL_GLOBAL
12467 # else
12468 # define LT_DLGLOBAL 0
12469 # endif
12470 #endif
12472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12473 find out it does not work in some platform. */
12474 #ifndef LT_DLLAZY_OR_NOW
12475 # ifdef RTLD_LAZY
12476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12477 # else
12478 # ifdef DL_LAZY
12479 # define LT_DLLAZY_OR_NOW DL_LAZY
12480 # else
12481 # ifdef RTLD_NOW
12482 # define LT_DLLAZY_OR_NOW RTLD_NOW
12483 # else
12484 # ifdef DL_NOW
12485 # define LT_DLLAZY_OR_NOW DL_NOW
12486 # else
12487 # define LT_DLLAZY_OR_NOW 0
12488 # endif
12489 # endif
12490 # endif
12491 # endif
12492 #endif
12494 void fnord() { int i=42;}
12495 int main ()
12496 {
12497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12498 int status = $lt_dlunknown;
12500 if (self)
12501 {
12502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12504 /* dlclose (self); */
12505 }
12506 else
12507 puts (dlerror ());
12509 return status;
12510 }
12511 _LT_EOF
12512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12513 (eval $ac_link) 2>&5
12514 ac_status=$?
12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12517 (./conftest; exit; ) >&5 2>/dev/null
12518 lt_status=$?
12519 case x$lt_status in
12520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12523 esac
12524 else :
12525 # compilation failed
12526 lt_cv_dlopen_self=no
12527 fi
12528 fi
12529 rm -fr conftest*
12532 fi
12533 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12534 $as_echo "$lt_cv_dlopen_self" >&6; }
12536 if test "x$lt_cv_dlopen_self" = xyes; then
12537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12538 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12539 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12540 if test "${lt_cv_dlopen_self_static+set}" = set; then
12541 $as_echo_n "(cached) " >&6
12542 else
12543 if test "$cross_compiling" = yes; then :
12544 lt_cv_dlopen_self_static=cross
12545 else
12546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12547 lt_status=$lt_dlunknown
12548 cat > conftest.$ac_ext <<_LT_EOF
12549 #line 12549 "configure"
12550 #include "confdefs.h"
12552 #if HAVE_DLFCN_H
12553 #include <dlfcn.h>
12554 #endif
12556 #include <stdio.h>
12558 #ifdef RTLD_GLOBAL
12559 # define LT_DLGLOBAL RTLD_GLOBAL
12560 #else
12561 # ifdef DL_GLOBAL
12562 # define LT_DLGLOBAL DL_GLOBAL
12563 # else
12564 # define LT_DLGLOBAL 0
12565 # endif
12566 #endif
12568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12569 find out it does not work in some platform. */
12570 #ifndef LT_DLLAZY_OR_NOW
12571 # ifdef RTLD_LAZY
12572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12573 # else
12574 # ifdef DL_LAZY
12575 # define LT_DLLAZY_OR_NOW DL_LAZY
12576 # else
12577 # ifdef RTLD_NOW
12578 # define LT_DLLAZY_OR_NOW RTLD_NOW
12579 # else
12580 # ifdef DL_NOW
12581 # define LT_DLLAZY_OR_NOW DL_NOW
12582 # else
12583 # define LT_DLLAZY_OR_NOW 0
12584 # endif
12585 # endif
12586 # endif
12587 # endif
12588 #endif
12590 void fnord() { int i=42;}
12591 int main ()
12592 {
12593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12594 int status = $lt_dlunknown;
12596 if (self)
12597 {
12598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12599 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12600 /* dlclose (self); */
12601 }
12602 else
12603 puts (dlerror ());
12605 return status;
12606 }
12607 _LT_EOF
12608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609 (eval $ac_link) 2>&5
12610 ac_status=$?
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12613 (./conftest; exit; ) >&5 2>/dev/null
12614 lt_status=$?
12615 case x$lt_status in
12616 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12617 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12618 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12619 esac
12620 else :
12621 # compilation failed
12622 lt_cv_dlopen_self_static=no
12623 fi
12624 fi
12625 rm -fr conftest*
12628 fi
12629 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12630 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12631 fi
12633 CPPFLAGS="$save_CPPFLAGS"
12634 LDFLAGS="$save_LDFLAGS"
12635 LIBS="$save_LIBS"
12636 ;;
12637 esac
12639 case $lt_cv_dlopen_self in
12640 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12641 *) enable_dlopen_self=unknown ;;
12642 esac
12644 case $lt_cv_dlopen_self_static in
12645 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12646 *) enable_dlopen_self_static=unknown ;;
12647 esac
12648 fi
12666 striplib=
12667 old_striplib=
12668 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12669 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12670 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12673 { $as_echo "$as_me:$LINENO: result: yes" >&5
12674 $as_echo "yes" >&6; }
12675 else
12676 # FIXME - insert some real tests, host_os isn't really good enough
12677 case $host_os in
12678 darwin*)
12679 if test -n "$STRIP" ; then
12680 striplib="$STRIP -x"
12681 old_striplib="$STRIP -S"
12682 { $as_echo "$as_me:$LINENO: result: yes" >&5
12683 $as_echo "yes" >&6; }
12684 else
12685 { $as_echo "$as_me:$LINENO: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688 ;;
12689 *)
12690 { $as_echo "$as_me:$LINENO: result: no" >&5
12691 $as_echo "no" >&6; }
12692 ;;
12693 esac
12694 fi
12707 # Report which library types will actually be built
12708 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12709 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12710 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12711 $as_echo "$can_build_shared" >&6; }
12713 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12714 $as_echo_n "checking whether to build shared libraries... " >&6; }
12715 test "$can_build_shared" = "no" && enable_shared=no
12717 # On AIX, shared libraries and static libraries use the same namespace, and
12718 # are all built from PIC.
12719 case $host_os in
12720 aix3*)
12721 test "$enable_shared" = yes && enable_static=no
12722 if test -n "$RANLIB"; then
12723 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12724 postinstall_cmds='$RANLIB $lib'
12725 fi
12726 ;;
12728 aix[4-9]*)
12729 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12730 test "$enable_shared" = yes && enable_static=no
12731 fi
12732 ;;
12733 esac
12734 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12735 $as_echo "$enable_shared" >&6; }
12737 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12738 $as_echo_n "checking whether to build static libraries... " >&6; }
12739 # Make sure either enable_shared or enable_static is yes.
12740 test "$enable_shared" = yes || enable_static=yes
12741 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12742 $as_echo "$enable_static" >&6; }
12747 fi
12748 ac_ext=c
12749 ac_cpp='$CPP $CPPFLAGS'
12750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12754 CC="$lt_save_CC"
12768 ac_config_commands="$ac_config_commands libtool"
12773 # Only expand once:
12777 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12779 { $as_echo "$as_me:$LINENO: checking if gcc likes the -Werror flag" >&5
12780 $as_echo_n "checking if gcc likes the -Werror flag... " >&6; }
12781 if test "${rd_cv_gcc_flag__Werror+set}" = set; then
12782 $as_echo_n "(cached) " >&6
12783 else
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h. */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 int
12792 main ()
12793 {
12794 return 0
12795 ;
12796 return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (ac_try="$ac_compile"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804 esac
12805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12806 $as_echo "$ac_try_echo") >&5
12807 (eval "$ac_compile") 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } && {
12814 test -z "$ac_c_werror_flag" ||
12815 test ! -s conftest.err
12816 } && test -s conftest.$ac_objext; then
12817 rd_cv_gcc_flag__Werror="yes"
12818 else
12819 $as_echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 rd_cv_gcc_flag__Werror="no"
12823 fi
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 fi
12827 { $as_echo "$as_me:$LINENO: result: $rd_cv_gcc_flag__Werror" >&5
12828 $as_echo "$rd_cv_gcc_flag__Werror" >&6; }
12829 if test "x$rd_cv_gcc_flag__Werror" = "xyes"; then
12830 WERROR="-Werror"
12831 else
12832 WERROR=""
12833 fi
12836 if test "x$GCC" = "xyes"; then
12837 for flag in -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W; do
12838 oCFLAGS="$CFLAGS"
12839 CFLAGS="$CFLAGS $flag"
12840 cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
12841 { $as_echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
12842 $as_echo_n "checking if gcc likes the $flag flag... " >&6; }
12843 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
12844 $as_echo_n "(cached) " >&6
12845 else
12846 cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h. */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12853 int
12854 main ()
12855 {
12856 return 0
12857 ;
12858 return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (ac_try="$ac_compile"
12863 case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866 esac
12867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12868 $as_echo "$ac_try_echo") >&5
12869 (eval "$ac_compile") 2>conftest.er1
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && {
12876 test -z "$ac_c_werror_flag" ||
12877 test ! -s conftest.err
12878 } && test -s conftest.$ac_objext; then
12879 eval $cachename=yes
12880 else
12881 $as_echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12884 eval $cachename=no
12885 fi
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 fi
12889 ac_res=`eval 'as_val=${'$cachename'}
12890 $as_echo "$as_val"'`
12891 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12892 $as_echo "$ac_res" >&6; }
12893 if eval test \$$cachename = no; then
12894 CFLAGS="$oCFLAGS"
12895 fi
12896 done
12897 fi
12904 case $TERM in
12905 # for the most important terminal types we directly know the sequences
12906 xterm|xterm*|vt220|vt220*)
12907 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12908 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12909 ;;
12910 vt100|vt100*|cygwin)
12911 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12912 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12913 ;;
12914 *)
12915 T_MD=''
12916 T_ME=''
12917 ;;
12918 esac
12919 { $as_echo "$as_me:$LINENO: result: " >&5
12920 $as_echo "" >&6; }
12921 { $as_echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
12922 $as_echo "${T_MD}Checking for Header Files${T_ME}" >&6; }
12925 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12926 $as_echo_n "checking for ANSI C header files... " >&6; }
12927 if test "${ac_cv_header_stdc+set}" = set; then
12928 $as_echo_n "(cached) " >&6
12929 else
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h. */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <stdlib.h>
12937 #include <stdarg.h>
12938 #include <string.h>
12939 #include <float.h>
12941 int
12942 main ()
12943 {
12945 ;
12946 return 0;
12947 }
12948 _ACEOF
12949 rm -f conftest.$ac_objext
12950 if { (ac_try="$ac_compile"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954 esac
12955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12956 $as_echo "$ac_try_echo") >&5
12957 (eval "$ac_compile") 2>conftest.er1
12958 ac_status=$?
12959 grep -v '^ *+' conftest.er1 >conftest.err
12960 rm -f conftest.er1
12961 cat conftest.err >&5
12962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } && {
12964 test -z "$ac_c_werror_flag" ||
12965 test ! -s conftest.err
12966 } && test -s conftest.$ac_objext; then
12967 ac_cv_header_stdc=yes
12968 else
12969 $as_echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 ac_cv_header_stdc=no
12973 fi
12975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977 if test $ac_cv_header_stdc = yes; then
12978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 #include <string.h>
12987 _ACEOF
12988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12989 $EGREP "memchr" >/dev/null 2>&1; then
12990 :
12991 else
12992 ac_cv_header_stdc=no
12993 fi
12994 rm -f conftest*
12996 fi
12998 if test $ac_cv_header_stdc = yes; then
12999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <stdlib.h>
13008 _ACEOF
13009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13010 $EGREP "free" >/dev/null 2>&1; then
13011 :
13012 else
13013 ac_cv_header_stdc=no
13014 fi
13015 rm -f conftest*
13017 fi
13019 if test $ac_cv_header_stdc = yes; then
13020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13021 if test "$cross_compiling" = yes; then
13022 :
13023 else
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h. */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 #include <ctype.h>
13031 #include <stdlib.h>
13032 #if ((' ' & 0x0FF) == 0x020)
13033 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13034 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13035 #else
13036 # define ISLOWER(c) \
13037 (('a' <= (c) && (c) <= 'i') \
13038 || ('j' <= (c) && (c) <= 'r') \
13039 || ('s' <= (c) && (c) <= 'z'))
13040 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13041 #endif
13043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13044 int
13045 main ()
13046 {
13047 int i;
13048 for (i = 0; i < 256; i++)
13049 if (XOR (islower (i), ISLOWER (i))
13050 || toupper (i) != TOUPPER (i))
13051 return 2;
13052 return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063 (eval "$ac_link") 2>&5
13064 ac_status=$?
13065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13067 { (case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13072 $as_echo "$ac_try_echo") >&5
13073 (eval "$ac_try") 2>&5
13074 ac_status=$?
13075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 :
13078 else
13079 $as_echo "$as_me: program exited with status $ac_status" >&5
13080 $as_echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 ( exit $ac_status )
13084 ac_cv_header_stdc=no
13085 fi
13086 rm -rf conftest.dSYM
13087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13088 fi
13091 fi
13092 fi
13093 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13094 $as_echo "$ac_cv_header_stdc" >&6; }
13095 if test $ac_cv_header_stdc = yes; then
13097 cat >>confdefs.h <<\_ACEOF
13098 #define STDC_HEADERS 1
13099 _ACEOF
13101 fi
13108 ac_header_dirent=no
13109 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13110 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13111 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13112 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13114 $as_echo_n "(cached) " >&6
13115 else
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h. */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 #include <sys/types.h>
13123 #include <$ac_hdr>
13125 int
13126 main ()
13127 {
13128 if ((DIR *) 0)
13129 return 0;
13130 ;
13131 return 0;
13132 }
13133 _ACEOF
13134 rm -f conftest.$ac_objext
13135 if { (ac_try="$ac_compile"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139 esac
13140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13141 $as_echo "$ac_try_echo") >&5
13142 (eval "$ac_compile") 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } && {
13149 test -z "$ac_c_werror_flag" ||
13150 test ! -s conftest.err
13151 } && test -s conftest.$ac_objext; then
13152 eval "$as_ac_Header=yes"
13153 else
13154 $as_echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 eval "$as_ac_Header=no"
13158 fi
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 fi
13162 ac_res=`eval 'as_val=${'$as_ac_Header'}
13163 $as_echo "$as_val"'`
13164 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13165 $as_echo "$ac_res" >&6; }
13166 as_val=`eval 'as_val=${'$as_ac_Header'}
13167 $as_echo "$as_val"'`
13168 if test "x$as_val" = x""yes; then
13169 cat >>confdefs.h <<_ACEOF
13170 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13171 _ACEOF
13173 ac_header_dirent=$ac_hdr; break
13174 fi
13176 done
13177 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13178 if test $ac_header_dirent = dirent.h; then
13179 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13180 $as_echo_n "checking for library containing opendir... " >&6; }
13181 if test "${ac_cv_search_opendir+set}" = set; then
13182 $as_echo_n "(cached) " >&6
13183 else
13184 ac_func_search_save_LIBS=$LIBS
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char opendir ();
13199 int
13200 main ()
13201 {
13202 return opendir ();
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 for ac_lib in '' dir; do
13208 if test -z "$ac_lib"; then
13209 ac_res="none required"
13210 else
13211 ac_res=-l$ac_lib
13212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13213 fi
13214 rm -f conftest.$ac_objext conftest$ac_exeext
13215 if { (ac_try="$ac_link"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219 esac
13220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222 (eval "$ac_link") 2>conftest.er1
13223 ac_status=$?
13224 grep -v '^ *+' conftest.er1 >conftest.err
13225 rm -f conftest.er1
13226 cat conftest.err >&5
13227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } && {
13229 test -z "$ac_c_werror_flag" ||
13230 test ! -s conftest.err
13231 } && test -s conftest$ac_exeext && {
13232 test "$cross_compiling" = yes ||
13233 $as_test_x conftest$ac_exeext
13234 }; then
13235 ac_cv_search_opendir=$ac_res
13236 else
13237 $as_echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13241 fi
13243 rm -rf conftest.dSYM
13244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13245 conftest$ac_exeext
13246 if test "${ac_cv_search_opendir+set}" = set; then
13247 break
13248 fi
13249 done
13250 if test "${ac_cv_search_opendir+set}" = set; then
13251 :
13252 else
13253 ac_cv_search_opendir=no
13254 fi
13255 rm conftest.$ac_ext
13256 LIBS=$ac_func_search_save_LIBS
13257 fi
13258 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13259 $as_echo "$ac_cv_search_opendir" >&6; }
13260 ac_res=$ac_cv_search_opendir
13261 if test "$ac_res" != no; then
13262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13264 fi
13266 else
13267 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13268 $as_echo_n "checking for library containing opendir... " >&6; }
13269 if test "${ac_cv_search_opendir+set}" = set; then
13270 $as_echo_n "(cached) " >&6
13271 else
13272 ac_func_search_save_LIBS=$LIBS
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char opendir ();
13287 int
13288 main ()
13289 {
13290 return opendir ();
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 for ac_lib in '' x; do
13296 if test -z "$ac_lib"; then
13297 ac_res="none required"
13298 else
13299 ac_res=-l$ac_lib
13300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13301 fi
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307 esac
13308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13309 $as_echo "$ac_try_echo") >&5
13310 (eval "$ac_link") 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && {
13317 test -z "$ac_c_werror_flag" ||
13318 test ! -s conftest.err
13319 } && test -s conftest$ac_exeext && {
13320 test "$cross_compiling" = yes ||
13321 $as_test_x conftest$ac_exeext
13322 }; then
13323 ac_cv_search_opendir=$ac_res
13324 else
13325 $as_echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13329 fi
13331 rm -rf conftest.dSYM
13332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13333 conftest$ac_exeext
13334 if test "${ac_cv_search_opendir+set}" = set; then
13335 break
13336 fi
13337 done
13338 if test "${ac_cv_search_opendir+set}" = set; then
13339 :
13340 else
13341 ac_cv_search_opendir=no
13342 fi
13343 rm conftest.$ac_ext
13344 LIBS=$ac_func_search_save_LIBS
13345 fi
13346 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13347 $as_echo "$ac_cv_search_opendir" >&6; }
13348 ac_res=$ac_cv_search_opendir
13349 if test "$ac_res" != no; then
13350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13352 fi
13354 fi
13379 for ac_header in langinfo.h stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.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
13380 do
13381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13384 $as_echo_n "checking for $ac_header... " >&6; }
13385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13386 $as_echo_n "(cached) " >&6
13387 fi
13388 ac_res=`eval 'as_val=${'$as_ac_Header'}
13389 $as_echo "$as_val"'`
13390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13391 $as_echo "$ac_res" >&6; }
13392 else
13393 # Is the header compilable?
13394 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13395 $as_echo_n "checking $ac_header usability... " >&6; }
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 $ac_includes_default
13403 #include <$ac_header>
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410 esac
13411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13412 $as_echo "$ac_try_echo") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && {
13420 test -z "$ac_c_werror_flag" ||
13421 test ! -s conftest.err
13422 } && test -s conftest.$ac_objext; then
13423 ac_header_compiler=yes
13424 else
13425 $as_echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 ac_header_compiler=no
13429 fi
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13433 $as_echo "$ac_header_compiler" >&6; }
13435 # Is the header present?
13436 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13437 $as_echo_n "checking $ac_header presence... " >&6; }
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h. */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 #include <$ac_header>
13445 _ACEOF
13446 if { (ac_try="$ac_cpp conftest.$ac_ext"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450 esac
13451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13452 $as_echo "$ac_try_echo") >&5
13453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13454 ac_status=$?
13455 grep -v '^ *+' conftest.er1 >conftest.err
13456 rm -f conftest.er1
13457 cat conftest.err >&5
13458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } >/dev/null && {
13460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13461 test ! -s conftest.err
13462 }; then
13463 ac_header_preproc=yes
13464 else
13465 $as_echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ac_header_preproc=no
13469 fi
13471 rm -f conftest.err conftest.$ac_ext
13472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13473 $as_echo "$ac_header_preproc" >&6; }
13475 # So? What about this header?
13476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13477 yes:no: )
13478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13479 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13482 ac_header_preproc=yes
13483 ;;
13484 no:yes:* )
13485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13486 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13488 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13490 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13492 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13494 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13496 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13498 ;;
13499 esac
13500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 $as_echo_n "checking for $ac_header... " >&6; }
13502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13503 $as_echo_n "(cached) " >&6
13504 else
13505 eval "$as_ac_Header=\$ac_header_preproc"
13506 fi
13507 ac_res=`eval 'as_val=${'$as_ac_Header'}
13508 $as_echo "$as_val"'`
13509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13510 $as_echo "$ac_res" >&6; }
13512 fi
13513 as_val=`eval 'as_val=${'$as_ac_Header'}
13514 $as_echo "$as_val"'`
13515 if test "x$as_val" = x""yes; then
13516 cat >>confdefs.h <<_ACEOF
13517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13518 _ACEOF
13520 fi
13522 done
13525 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13526 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13527 if test "${ac_cv_c_const+set}" = set; then
13528 $as_echo_n "(cached) " >&6
13529 else
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h. */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13537 int
13538 main ()
13539 {
13540 /* FIXME: Include the comments suggested by Paul. */
13541 #ifndef __cplusplus
13542 /* Ultrix mips cc rejects this. */
13543 typedef int charset[2];
13544 const charset cs;
13545 /* SunOS 4.1.1 cc rejects this. */
13546 char const *const *pcpcc;
13547 char **ppc;
13548 /* NEC SVR4.0.2 mips cc rejects this. */
13549 struct point {int x, y;};
13550 static struct point const zero = {0,0};
13551 /* AIX XL C 1.02.0.0 rejects this.
13552 It does not let you subtract one const X* pointer from another in
13553 an arm of an if-expression whose if-part is not a constant
13554 expression */
13555 const char *g = "string";
13556 pcpcc = &g + (g ? g-g : 0);
13557 /* HPUX 7.0 cc rejects these. */
13558 ++pcpcc;
13559 ppc = (char**) pcpcc;
13560 pcpcc = (char const *const *) ppc;
13561 { /* SCO 3.2v4 cc rejects this. */
13562 char *t;
13563 char const *s = 0 ? (char *) 0 : (char const *) 0;
13565 *t++ = 0;
13566 if (s) return 0;
13567 }
13568 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13569 int x[] = {25, 17};
13570 const int *foo = &x[0];
13571 ++foo;
13572 }
13573 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13574 typedef const int *iptr;
13575 iptr p = 0;
13576 ++p;
13577 }
13578 { /* AIX XL C 1.02.0.0 rejects this saying
13579 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13580 struct s { int j; const int *ap[3]; };
13581 struct s *b; b->j = 5;
13582 }
13583 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13584 const int foo = 10;
13585 if (!foo) return 0;
13586 }
13587 return !cs[0] && !zero.x;
13588 #endif
13590 ;
13591 return 0;
13592 }
13593 _ACEOF
13594 rm -f conftest.$ac_objext
13595 if { (ac_try="$ac_compile"
13596 case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599 esac
13600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13601 $as_echo "$ac_try_echo") >&5
13602 (eval "$ac_compile") 2>conftest.er1
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } && {
13609 test -z "$ac_c_werror_flag" ||
13610 test ! -s conftest.err
13611 } && test -s conftest.$ac_objext; then
13612 ac_cv_c_const=yes
13613 else
13614 $as_echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13617 ac_cv_c_const=no
13618 fi
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621 fi
13622 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13623 $as_echo "$ac_cv_c_const" >&6; }
13624 if test $ac_cv_c_const = no; then
13626 cat >>confdefs.h <<\_ACEOF
13627 #define const /**/
13628 _ACEOF
13630 fi
13632 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13633 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13634 if test "${ac_cv_header_time+set}" = set; then
13635 $as_echo_n "(cached) " >&6
13636 else
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h. */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 #include <sys/types.h>
13644 #include <sys/time.h>
13645 #include <time.h>
13647 int
13648 main ()
13649 {
13650 if ((struct tm *) 0)
13651 return 0;
13652 ;
13653 return 0;
13654 }
13655 _ACEOF
13656 rm -f conftest.$ac_objext
13657 if { (ac_try="$ac_compile"
13658 case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13661 esac
13662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13663 $as_echo "$ac_try_echo") >&5
13664 (eval "$ac_compile") 2>conftest.er1
13665 ac_status=$?
13666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
13669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } && {
13671 test -z "$ac_c_werror_flag" ||
13672 test ! -s conftest.err
13673 } && test -s conftest.$ac_objext; then
13674 ac_cv_header_time=yes
13675 else
13676 $as_echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_cv_header_time=no
13680 fi
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 fi
13684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13685 $as_echo "$ac_cv_header_time" >&6; }
13686 if test $ac_cv_header_time = yes; then
13688 cat >>confdefs.h <<\_ACEOF
13689 #define TIME_WITH_SYS_TIME 1
13690 _ACEOF
13692 fi
13694 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13695 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13696 if test "${ac_cv_struct_tm+set}" = set; then
13697 $as_echo_n "(cached) " >&6
13698 else
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h. */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13705 #include <sys/types.h>
13706 #include <time.h>
13708 int
13709 main ()
13710 {
13711 struct tm tm;
13712 int *p = &tm.tm_sec;
13713 return !p;
13714 ;
13715 return 0;
13716 }
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (ac_try="$ac_compile"
13720 case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723 esac
13724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13725 $as_echo "$ac_try_echo") >&5
13726 (eval "$ac_compile") 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } && {
13733 test -z "$ac_c_werror_flag" ||
13734 test ! -s conftest.err
13735 } && test -s conftest.$ac_objext; then
13736 ac_cv_struct_tm=time.h
13737 else
13738 $as_echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 ac_cv_struct_tm=sys/time.h
13742 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 fi
13746 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13747 $as_echo "$ac_cv_struct_tm" >&6; }
13748 if test $ac_cv_struct_tm = sys/time.h; then
13750 cat >>confdefs.h <<\_ACEOF
13751 #define TM_IN_SYS_TIME 1
13752 _ACEOF
13754 fi
13758 case $TERM in
13759 # for the most important terminal types we directly know the sequences
13760 xterm|xterm*|vt220|vt220*)
13761 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13762 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13763 ;;
13764 vt100|vt100*|cygwin)
13765 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13766 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13767 ;;
13768 *)
13769 T_MD=''
13770 T_ME=''
13771 ;;
13772 esac
13773 { $as_echo "$as_me:$LINENO: result: " >&5
13774 $as_echo "" >&6; }
13775 { $as_echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
13776 $as_echo "${T_MD}Test Library Functions${T_ME}" >&6; }
13779 { $as_echo "$as_me:$LINENO: checking for acos" >&5
13780 $as_echo_n "checking for acos... " >&6; }
13781 if test "${ac_cv_func_acos+set}" = set; then
13782 $as_echo_n "(cached) " >&6
13783 else
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
13791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13792 #define acos innocuous_acos
13794 /* System header to define __stub macros and hopefully few prototypes,
13795 which can conflict with char acos (); below.
13796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13797 <limits.h> exists even on freestanding compilers. */
13799 #ifdef __STDC__
13800 # include <limits.h>
13801 #else
13802 # include <assert.h>
13803 #endif
13805 #undef acos
13807 /* Override any GCC internal prototype to avoid an error.
13808 Use char because int might match the return type of a GCC
13809 builtin and then its argument prototype would still apply. */
13810 #ifdef __cplusplus
13811 extern "C"
13812 #endif
13813 char acos ();
13814 /* The GNU C library defines this for functions which it implements
13815 to always fail with ENOSYS. Some functions are actually named
13816 something starting with __ and the normal name is an alias. */
13817 #if defined __stub_acos || defined __stub___acos
13818 choke me
13819 #endif
13821 int
13822 main ()
13823 {
13824 return acos ();
13825 ;
13826 return 0;
13827 }
13828 _ACEOF
13829 rm -f conftest.$ac_objext conftest$ac_exeext
13830 if { (ac_try="$ac_link"
13831 case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834 esac
13835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13836 $as_echo "$ac_try_echo") >&5
13837 (eval "$ac_link") 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } && {
13844 test -z "$ac_c_werror_flag" ||
13845 test ! -s conftest.err
13846 } && test -s conftest$ac_exeext && {
13847 test "$cross_compiling" = yes ||
13848 $as_test_x conftest$ac_exeext
13849 }; then
13850 ac_cv_func_acos=yes
13851 else
13852 $as_echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13855 ac_cv_func_acos=no
13856 fi
13858 rm -rf conftest.dSYM
13859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13860 conftest$ac_exeext conftest.$ac_ext
13861 fi
13862 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
13863 $as_echo "$ac_cv_func_acos" >&6; }
13864 if test "x$ac_cv_func_acos" = x""yes; then
13865 :
13866 else
13868 { $as_echo "$as_me:$LINENO: checking for acos in -lm" >&5
13869 $as_echo_n "checking for acos in -lm... " >&6; }
13870 if test "${ac_cv_lib_m_acos+set}" = set; then
13871 $as_echo_n "(cached) " >&6
13872 else
13873 ac_check_lib_save_LIBS=$LIBS
13874 LIBS="-lm $LIBS"
13875 cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h. */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13885 #ifdef __cplusplus
13886 extern "C"
13887 #endif
13888 char acos ();
13889 int
13890 main ()
13891 {
13892 return acos ();
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (ac_try="$ac_link"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902 esac
13903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13904 $as_echo "$ac_try_echo") >&5
13905 (eval "$ac_link") 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext && {
13915 test "$cross_compiling" = yes ||
13916 $as_test_x conftest$ac_exeext
13917 }; then
13918 ac_cv_lib_m_acos=yes
13919 else
13920 $as_echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_lib_m_acos=no
13924 fi
13926 rm -rf conftest.dSYM
13927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13928 conftest$ac_exeext conftest.$ac_ext
13929 LIBS=$ac_check_lib_save_LIBS
13930 fi
13931 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
13932 $as_echo "$ac_cv_lib_m_acos" >&6; }
13933 if test "x$ac_cv_lib_m_acos" = x""yes; then
13934 cat >>confdefs.h <<_ACEOF
13935 #define HAVE_LIBM 1
13936 _ACEOF
13938 LIBS="-lm $LIBS"
13940 fi
13942 fi
13946 eval `./libtool --config | grep pic_flag=`
13947 CFLAGS="$CFLAGS $pic_flag"
13951 for ac_func in strftime
13952 do
13953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13954 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13955 $as_echo_n "checking for $ac_func... " >&6; }
13956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13957 $as_echo_n "(cached) " >&6
13958 else
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13967 #define $ac_func innocuous_$ac_func
13969 /* System header to define __stub macros and hopefully few prototypes,
13970 which can conflict with char $ac_func (); below.
13971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13972 <limits.h> exists even on freestanding compilers. */
13974 #ifdef __STDC__
13975 # include <limits.h>
13976 #else
13977 # include <assert.h>
13978 #endif
13980 #undef $ac_func
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13985 #ifdef __cplusplus
13986 extern "C"
13987 #endif
13988 char $ac_func ();
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined __stub_$ac_func || defined __stub___$ac_func
13993 choke me
13994 #endif
13996 int
13997 main ()
13998 {
13999 return $ac_func ();
14000 ;
14001 return 0;
14002 }
14003 _ACEOF
14004 rm -f conftest.$ac_objext conftest$ac_exeext
14005 if { (ac_try="$ac_link"
14006 case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009 esac
14010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14011 $as_echo "$ac_try_echo") >&5
14012 (eval "$ac_link") 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } && {
14019 test -z "$ac_c_werror_flag" ||
14020 test ! -s conftest.err
14021 } && test -s conftest$ac_exeext && {
14022 test "$cross_compiling" = yes ||
14023 $as_test_x conftest$ac_exeext
14024 }; then
14025 eval "$as_ac_var=yes"
14026 else
14027 $as_echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14030 eval "$as_ac_var=no"
14031 fi
14033 rm -rf conftest.dSYM
14034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14035 conftest$ac_exeext conftest.$ac_ext
14036 fi
14037 ac_res=`eval 'as_val=${'$as_ac_var'}
14038 $as_echo "$as_val"'`
14039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14040 $as_echo "$ac_res" >&6; }
14041 as_val=`eval 'as_val=${'$as_ac_var'}
14042 $as_echo "$as_val"'`
14043 if test "x$as_val" = x""yes; then
14044 cat >>confdefs.h <<_ACEOF
14045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14046 _ACEOF
14048 else
14049 # strftime is in -lintl on SCO UNIX.
14050 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14051 $as_echo_n "checking for strftime in -lintl... " >&6; }
14052 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14053 $as_echo_n "(cached) " >&6
14054 else
14055 ac_check_lib_save_LIBS=$LIBS
14056 LIBS="-lintl $LIBS"
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14064 /* Override any GCC internal prototype to avoid an error.
14065 Use char because int might match the return type of a GCC
14066 builtin and then its argument prototype would still apply. */
14067 #ifdef __cplusplus
14068 extern "C"
14069 #endif
14070 char strftime ();
14071 int
14072 main ()
14073 {
14074 return strftime ();
14075 ;
14076 return 0;
14077 }
14078 _ACEOF
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084 esac
14085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14086 $as_echo "$ac_try_echo") >&5
14087 (eval "$ac_link") 2>conftest.er1
14088 ac_status=$?
14089 grep -v '^ *+' conftest.er1 >conftest.err
14090 rm -f conftest.er1
14091 cat conftest.err >&5
14092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } && {
14094 test -z "$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14096 } && test -s conftest$ac_exeext && {
14097 test "$cross_compiling" = yes ||
14098 $as_test_x conftest$ac_exeext
14099 }; then
14100 ac_cv_lib_intl_strftime=yes
14101 else
14102 $as_echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_lib_intl_strftime=no
14106 fi
14108 rm -rf conftest.dSYM
14109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14112 fi
14113 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14114 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
14115 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14116 cat >>confdefs.h <<\_ACEOF
14117 #define HAVE_STRFTIME 1
14118 _ACEOF
14120 LIBS="-lintl $LIBS"
14121 fi
14123 fi
14124 done
14127 for ac_func in vprintf
14128 do
14129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14131 $as_echo_n "checking for $ac_func... " >&6; }
14132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14133 $as_echo_n "(cached) " >&6
14134 else
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h. */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14143 #define $ac_func innocuous_$ac_func
14145 /* System header to define __stub macros and hopefully few prototypes,
14146 which can conflict with char $ac_func (); below.
14147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14148 <limits.h> exists even on freestanding compilers. */
14150 #ifdef __STDC__
14151 # include <limits.h>
14152 #else
14153 # include <assert.h>
14154 #endif
14156 #undef $ac_func
14158 /* Override any GCC internal prototype to avoid an error.
14159 Use char because int might match the return type of a GCC
14160 builtin and then its argument prototype would still apply. */
14161 #ifdef __cplusplus
14162 extern "C"
14163 #endif
14164 char $ac_func ();
14165 /* The GNU C library defines this for functions which it implements
14166 to always fail with ENOSYS. Some functions are actually named
14167 something starting with __ and the normal name is an alias. */
14168 #if defined __stub_$ac_func || defined __stub___$ac_func
14169 choke me
14170 #endif
14172 int
14173 main ()
14174 {
14175 return $ac_func ();
14176 ;
14177 return 0;
14178 }
14179 _ACEOF
14180 rm -f conftest.$ac_objext conftest$ac_exeext
14181 if { (ac_try="$ac_link"
14182 case "(($ac_try" in
14183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14185 esac
14186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14187 $as_echo "$ac_try_echo") >&5
14188 (eval "$ac_link") 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } && {
14195 test -z "$ac_c_werror_flag" ||
14196 test ! -s conftest.err
14197 } && test -s conftest$ac_exeext && {
14198 test "$cross_compiling" = yes ||
14199 $as_test_x conftest$ac_exeext
14200 }; then
14201 eval "$as_ac_var=yes"
14202 else
14203 $as_echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14206 eval "$as_ac_var=no"
14207 fi
14209 rm -rf conftest.dSYM
14210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14211 conftest$ac_exeext conftest.$ac_ext
14212 fi
14213 ac_res=`eval 'as_val=${'$as_ac_var'}
14214 $as_echo "$as_val"'`
14215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14216 $as_echo "$ac_res" >&6; }
14217 as_val=`eval 'as_val=${'$as_ac_var'}
14218 $as_echo "$as_val"'`
14219 if test "x$as_val" = x""yes; then
14220 cat >>confdefs.h <<_ACEOF
14221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14222 _ACEOF
14224 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
14225 $as_echo_n "checking for _doprnt... " >&6; }
14226 if test "${ac_cv_func__doprnt+set}" = set; then
14227 $as_echo_n "(cached) " >&6
14228 else
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h. */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14237 #define _doprnt innocuous__doprnt
14239 /* System header to define __stub macros and hopefully few prototypes,
14240 which can conflict with char _doprnt (); below.
14241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14242 <limits.h> exists even on freestanding compilers. */
14244 #ifdef __STDC__
14245 # include <limits.h>
14246 #else
14247 # include <assert.h>
14248 #endif
14250 #undef _doprnt
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 char _doprnt ();
14259 /* The GNU C library defines this for functions which it implements
14260 to always fail with ENOSYS. Some functions are actually named
14261 something starting with __ and the normal name is an alias. */
14262 #if defined __stub__doprnt || defined __stub____doprnt
14263 choke me
14264 #endif
14266 int
14267 main ()
14268 {
14269 return _doprnt ();
14270 ;
14271 return 0;
14272 }
14273 _ACEOF
14274 rm -f conftest.$ac_objext conftest$ac_exeext
14275 if { (ac_try="$ac_link"
14276 case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279 esac
14280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14281 $as_echo "$ac_try_echo") >&5
14282 (eval "$ac_link") 2>conftest.er1
14283 ac_status=$?
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
14287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } && {
14289 test -z "$ac_c_werror_flag" ||
14290 test ! -s conftest.err
14291 } && test -s conftest$ac_exeext && {
14292 test "$cross_compiling" = yes ||
14293 $as_test_x conftest$ac_exeext
14294 }; then
14295 ac_cv_func__doprnt=yes
14296 else
14297 $as_echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 ac_cv_func__doprnt=no
14301 fi
14303 rm -rf conftest.dSYM
14304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14305 conftest$ac_exeext conftest.$ac_ext
14306 fi
14307 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14308 $as_echo "$ac_cv_func__doprnt" >&6; }
14309 if test "x$ac_cv_func__doprnt" = x""yes; then
14311 cat >>confdefs.h <<\_ACEOF
14312 #define HAVE_DOPRNT 1
14313 _ACEOF
14315 fi
14317 fi
14318 done
14323 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14324 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14325 if test "${ac_cv_c_bigendian+set}" = set; then
14326 $as_echo_n "(cached) " >&6
14327 else
14328 ac_cv_c_bigendian=unknown
14329 # See if we're dealing with a universal compiler.
14330 cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h. */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 #ifndef __APPLE_CC__
14337 not a universal capable compiler
14338 #endif
14339 typedef int dummy;
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (ac_try="$ac_compile"
14344 case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14347 esac
14348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14349 $as_echo "$ac_try_echo") >&5
14350 (eval "$ac_compile") 2>conftest.er1
14351 ac_status=$?
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
14355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } && {
14357 test -z "$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 } && test -s conftest.$ac_objext; then
14361 # Check for potential -arch flags. It is not universal unless
14362 # there are some -arch flags. Note that *ppc* also matches
14363 # ppc64. This check is also rather less than ideal.
14364 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14365 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14366 esac
14367 else
14368 $as_echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14372 fi
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14375 if test $ac_cv_c_bigendian = unknown; then
14376 # See if sys/param.h defines the BYTE_ORDER macro.
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h. */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 #include <sys/types.h>
14384 #include <sys/param.h>
14386 int
14387 main ()
14388 {
14389 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14390 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14391 && LITTLE_ENDIAN)
14392 bogus endian macros
14393 #endif
14395 ;
14396 return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (ac_try="$ac_compile"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404 esac
14405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14406 $as_echo "$ac_try_echo") >&5
14407 (eval "$ac_compile") 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest.$ac_objext; then
14417 # It does; now see whether it defined to BIG_ENDIAN or not.
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h. */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 #include <sys/types.h>
14425 #include <sys/param.h>
14427 int
14428 main ()
14429 {
14430 #if BYTE_ORDER != BIG_ENDIAN
14431 not big endian
14432 #endif
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext
14439 if { (ac_try="$ac_compile"
14440 case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443 esac
14444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14445 $as_echo "$ac_try_echo") >&5
14446 (eval "$ac_compile") 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } && {
14453 test -z "$ac_c_werror_flag" ||
14454 test ! -s conftest.err
14455 } && test -s conftest.$ac_objext; then
14456 ac_cv_c_bigendian=yes
14457 else
14458 $as_echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 ac_cv_c_bigendian=no
14462 fi
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 else
14466 $as_echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14470 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 fi
14474 if test $ac_cv_c_bigendian = unknown; then
14475 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h. */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 #include <limits.h>
14484 int
14485 main ()
14486 {
14487 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14488 bogus endian macros
14489 #endif
14491 ;
14492 return 0;
14493 }
14494 _ACEOF
14495 rm -f conftest.$ac_objext
14496 if { (ac_try="$ac_compile"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14500 esac
14501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14502 $as_echo "$ac_try_echo") >&5
14503 (eval "$ac_compile") 2>conftest.er1
14504 ac_status=$?
14505 grep -v '^ *+' conftest.er1 >conftest.err
14506 rm -f conftest.er1
14507 cat conftest.err >&5
14508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } && {
14510 test -z "$ac_c_werror_flag" ||
14511 test ! -s conftest.err
14512 } && test -s conftest.$ac_objext; then
14513 # It does; now see whether it defined to _BIG_ENDIAN or not.
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <limits.h>
14522 int
14523 main ()
14524 {
14525 #ifndef _BIG_ENDIAN
14526 not big endian
14527 #endif
14529 ;
14530 return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (ac_try="$ac_compile"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538 esac
14539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14540 $as_echo "$ac_try_echo") >&5
14541 (eval "$ac_compile") 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } && {
14548 test -z "$ac_c_werror_flag" ||
14549 test ! -s conftest.err
14550 } && test -s conftest.$ac_objext; then
14551 ac_cv_c_bigendian=yes
14552 else
14553 $as_echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14556 ac_cv_c_bigendian=no
14557 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 else
14561 $as_echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14565 fi
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 fi
14569 if test $ac_cv_c_bigendian = unknown; then
14570 # Compile a test program.
14571 if test "$cross_compiling" = yes; then
14572 # Try to guess by grepping values from an object file.
14573 cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h. */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14579 short int ascii_mm[] =
14580 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14581 short int ascii_ii[] =
14582 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14583 int use_ascii (int i) {
14584 return ascii_mm[i] + ascii_ii[i];
14585 }
14586 short int ebcdic_ii[] =
14587 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14588 short int ebcdic_mm[] =
14589 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14590 int use_ebcdic (int i) {
14591 return ebcdic_mm[i] + ebcdic_ii[i];
14592 }
14593 extern int foo;
14595 int
14596 main ()
14597 {
14598 return use_ascii (foo) == use_ebcdic (foo);
14599 ;
14600 return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608 esac
14609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14610 $as_echo "$ac_try_echo") >&5
14611 (eval "$ac_compile") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } && {
14618 test -z "$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14620 } && test -s conftest.$ac_objext; then
14621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14622 ac_cv_c_bigendian=yes
14623 fi
14624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14625 if test "$ac_cv_c_bigendian" = unknown; then
14626 ac_cv_c_bigendian=no
14627 else
14628 # finding both strings is unlikely to happen, but who knows?
14629 ac_cv_c_bigendian=unknown
14630 fi
14631 fi
14632 else
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14637 fi
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 else
14641 cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 $ac_includes_default
14648 int
14649 main ()
14650 {
14652 /* Are we little or big endian? From Harbison&Steele. */
14653 union
14654 {
14655 long int l;
14656 char c[sizeof (long int)];
14657 } u;
14658 u.l = 1;
14659 return u.c[sizeof (long int) - 1] == 1;
14661 ;
14662 return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest$ac_exeext
14666 if { (ac_try="$ac_link"
14667 case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14670 esac
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673 (eval "$ac_link") 2>&5
14674 ac_status=$?
14675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14677 { (case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14682 $as_echo "$ac_try_echo") >&5
14683 (eval "$ac_try") 2>&5
14684 ac_status=$?
14685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_c_bigendian=no
14688 else
14689 $as_echo "$as_me: program exited with status $ac_status" >&5
14690 $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ( exit $ac_status )
14694 ac_cv_c_bigendian=yes
14695 fi
14696 rm -rf conftest.dSYM
14697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14698 fi
14701 fi
14702 fi
14703 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14704 $as_echo "$ac_cv_c_bigendian" >&6; }
14705 case $ac_cv_c_bigendian in #(
14706 yes)
14707 cat >>confdefs.h <<\_ACEOF
14708 #define WORDS_BIGENDIAN 1
14709 _ACEOF
14710 ;; #(
14711 no)
14712 ;; #(
14713 universal)
14715 cat >>confdefs.h <<\_ACEOF
14716 #define AC_APPLE_UNIVERSAL_BUILD 1
14717 _ACEOF
14719 ;; #(
14720 *)
14721 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14722 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14723 $as_echo "$as_me: error: unknown endianness
14724 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14725 { (exit 1); exit 1; }; } ;;
14726 esac
14754 for ac_func in nl_langinfo tzset round rint fsync mbstowcs opendir readdir chdir chroot getuid strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
14755 do
14756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14757 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14758 $as_echo_n "checking for $ac_func... " >&6; }
14759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14760 $as_echo_n "(cached) " >&6
14761 else
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h. */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14770 #define $ac_func innocuous_$ac_func
14772 /* System header to define __stub macros and hopefully few prototypes,
14773 which can conflict with char $ac_func (); below.
14774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14775 <limits.h> exists even on freestanding compilers. */
14777 #ifdef __STDC__
14778 # include <limits.h>
14779 #else
14780 # include <assert.h>
14781 #endif
14783 #undef $ac_func
14785 /* Override any GCC internal prototype to avoid an error.
14786 Use char because int might match the return type of a GCC
14787 builtin and then its argument prototype would still apply. */
14788 #ifdef __cplusplus
14789 extern "C"
14790 #endif
14791 char $ac_func ();
14792 /* The GNU C library defines this for functions which it implements
14793 to always fail with ENOSYS. Some functions are actually named
14794 something starting with __ and the normal name is an alias. */
14795 #if defined __stub_$ac_func || defined __stub___$ac_func
14796 choke me
14797 #endif
14799 int
14800 main ()
14801 {
14802 return $ac_func ();
14803 ;
14804 return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext conftest$ac_exeext
14808 if { (ac_try="$ac_link"
14809 case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14812 esac
14813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14814 $as_echo "$ac_try_echo") >&5
14815 (eval "$ac_link") 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } && {
14822 test -z "$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest$ac_exeext && {
14825 test "$cross_compiling" = yes ||
14826 $as_test_x conftest$ac_exeext
14827 }; then
14828 eval "$as_ac_var=yes"
14829 else
14830 $as_echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 eval "$as_ac_var=no"
14834 fi
14836 rm -rf conftest.dSYM
14837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14838 conftest$ac_exeext conftest.$ac_ext
14839 fi
14840 ac_res=`eval 'as_val=${'$as_ac_var'}
14841 $as_echo "$as_val"'`
14842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14843 $as_echo "$ac_res" >&6; }
14844 as_val=`eval 'as_val=${'$as_ac_var'}
14845 $as_echo "$as_val"'`
14846 if test "x$as_val" = x""yes; then
14847 cat >>confdefs.h <<_ACEOF
14848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14849 _ACEOF
14851 fi
14852 done
14855 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14856 $as_echo_n "checking whether strerror_r is declared... " >&6; }
14857 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14858 $as_echo_n "(cached) " >&6
14859 else
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h. */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 $ac_includes_default
14867 int
14868 main ()
14869 {
14870 #ifndef strerror_r
14871 (void) strerror_r;
14872 #endif
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14885 $as_echo "$ac_try_echo") >&5
14886 (eval "$ac_compile") 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest.$ac_objext; then
14896 ac_cv_have_decl_strerror_r=yes
14897 else
14898 $as_echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_cv_have_decl_strerror_r=no
14902 fi
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 fi
14906 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14907 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
14908 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
14910 cat >>confdefs.h <<_ACEOF
14911 #define HAVE_DECL_STRERROR_R 1
14912 _ACEOF
14915 else
14916 cat >>confdefs.h <<_ACEOF
14917 #define HAVE_DECL_STRERROR_R 0
14918 _ACEOF
14921 fi
14925 for ac_func in strerror_r
14926 do
14927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14928 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14929 $as_echo_n "checking for $ac_func... " >&6; }
14930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14931 $as_echo_n "(cached) " >&6
14932 else
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14941 #define $ac_func innocuous_$ac_func
14943 /* System header to define __stub macros and hopefully few prototypes,
14944 which can conflict with char $ac_func (); below.
14945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14946 <limits.h> exists even on freestanding compilers. */
14948 #ifdef __STDC__
14949 # include <limits.h>
14950 #else
14951 # include <assert.h>
14952 #endif
14954 #undef $ac_func
14956 /* Override any GCC internal prototype to avoid an error.
14957 Use char because int might match the return type of a GCC
14958 builtin and then its argument prototype would still apply. */
14959 #ifdef __cplusplus
14960 extern "C"
14961 #endif
14962 char $ac_func ();
14963 /* The GNU C library defines this for functions which it implements
14964 to always fail with ENOSYS. Some functions are actually named
14965 something starting with __ and the normal name is an alias. */
14966 #if defined __stub_$ac_func || defined __stub___$ac_func
14967 choke me
14968 #endif
14970 int
14971 main ()
14972 {
14973 return $ac_func ();
14974 ;
14975 return 0;
14976 }
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14983 esac
14984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14985 $as_echo "$ac_try_echo") >&5
14986 (eval "$ac_link") 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } && {
14993 test -z "$ac_c_werror_flag" ||
14994 test ! -s conftest.err
14995 } && test -s conftest$ac_exeext && {
14996 test "$cross_compiling" = yes ||
14997 $as_test_x conftest$ac_exeext
14998 }; then
14999 eval "$as_ac_var=yes"
15000 else
15001 $as_echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 eval "$as_ac_var=no"
15005 fi
15007 rm -rf conftest.dSYM
15008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15009 conftest$ac_exeext conftest.$ac_ext
15010 fi
15011 ac_res=`eval 'as_val=${'$as_ac_var'}
15012 $as_echo "$as_val"'`
15013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15014 $as_echo "$ac_res" >&6; }
15015 as_val=`eval 'as_val=${'$as_ac_var'}
15016 $as_echo "$as_val"'`
15017 if test "x$as_val" = x""yes; then
15018 cat >>confdefs.h <<_ACEOF
15019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15020 _ACEOF
15022 fi
15023 done
15025 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15026 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15027 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15028 $as_echo_n "(cached) " >&6
15029 else
15031 ac_cv_func_strerror_r_char_p=no
15032 if test $ac_cv_have_decl_strerror_r = yes; then
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h. */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 $ac_includes_default
15040 int
15041 main ()
15042 {
15044 char buf[100];
15045 char x = *strerror_r (0, buf, sizeof buf);
15046 char *p = strerror_r (0, buf, sizeof buf);
15047 return !p || x;
15049 ;
15050 return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext
15054 if { (ac_try="$ac_compile"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058 esac
15059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15060 $as_echo "$ac_try_echo") >&5
15061 (eval "$ac_compile") 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } && {
15068 test -z "$ac_c_werror_flag" ||
15069 test ! -s conftest.err
15070 } && test -s conftest.$ac_objext; then
15071 ac_cv_func_strerror_r_char_p=yes
15072 else
15073 $as_echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15077 fi
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 else
15081 # strerror_r is not declared. Choose between
15082 # systems that have relatively inaccessible declarations for the
15083 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15084 # former has a strerror_r that returns char*, while the latter
15085 # has a strerror_r that returns `int'.
15086 # This test should segfault on the DEC system.
15087 if test "$cross_compiling" = yes; then
15088 :
15089 else
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 $ac_includes_default
15097 extern char *strerror_r ();
15098 int
15099 main ()
15100 {
15101 char buf[100];
15102 char x = *strerror_r (0, buf, sizeof buf);
15103 return ! isalpha (x);
15104 ;
15105 return 0;
15106 }
15107 _ACEOF
15108 rm -f conftest$ac_exeext
15109 if { (ac_try="$ac_link"
15110 case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15113 esac
15114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15115 $as_echo "$ac_try_echo") >&5
15116 (eval "$ac_link") 2>&5
15117 ac_status=$?
15118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15125 $as_echo "$ac_try_echo") >&5
15126 (eval "$ac_try") 2>&5
15127 ac_status=$?
15128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_cv_func_strerror_r_char_p=yes
15131 else
15132 $as_echo "$as_me: program exited with status $ac_status" >&5
15133 $as_echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15136 fi
15137 rm -rf conftest.dSYM
15138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15139 fi
15142 fi
15144 fi
15145 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15146 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15147 if test $ac_cv_func_strerror_r_char_p = yes; then
15149 cat >>confdefs.h <<\_ACEOF
15150 #define STRERROR_R_CHAR_P 1
15151 _ACEOF
15153 fi
15157 case $TERM in
15158 # for the most important terminal types we directly know the sequences
15159 xterm|xterm*|vt220|vt220*)
15160 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
15161 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
15162 ;;
15163 vt100|vt100*|cygwin)
15164 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
15165 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
15166 ;;
15167 *)
15168 T_MD=''
15169 T_ME=''
15170 ;;
15171 esac
15172 { $as_echo "$as_me:$LINENO: result: " >&5
15173 $as_echo "" >&6; }
15174 { $as_echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
15175 $as_echo "${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
15181 for ac_func in fdatasync
15182 do
15183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15184 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15185 $as_echo_n "checking for $ac_func... " >&6; }
15186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15187 $as_echo_n "(cached) " >&6
15188 else
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h. */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15197 #define $ac_func innocuous_$ac_func
15199 /* System header to define __stub macros and hopefully few prototypes,
15200 which can conflict with char $ac_func (); below.
15201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15202 <limits.h> exists even on freestanding compilers. */
15204 #ifdef __STDC__
15205 # include <limits.h>
15206 #else
15207 # include <assert.h>
15208 #endif
15210 #undef $ac_func
15212 /* Override any GCC internal prototype to avoid an error.
15213 Use char because int might match the return type of a GCC
15214 builtin and then its argument prototype would still apply. */
15215 #ifdef __cplusplus
15216 extern "C"
15217 #endif
15218 char $ac_func ();
15219 /* The GNU C library defines this for functions which it implements
15220 to always fail with ENOSYS. Some functions are actually named
15221 something starting with __ and the normal name is an alias. */
15222 #if defined __stub_$ac_func || defined __stub___$ac_func
15223 choke me
15224 #endif
15226 int
15227 main ()
15228 {
15229 return $ac_func ();
15230 ;
15231 return 0;
15232 }
15233 _ACEOF
15234 rm -f conftest.$ac_objext conftest$ac_exeext
15235 if { (ac_try="$ac_link"
15236 case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239 esac
15240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15241 $as_echo "$ac_try_echo") >&5
15242 (eval "$ac_link") 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } && {
15249 test -z "$ac_c_werror_flag" ||
15250 test ! -s conftest.err
15251 } && test -s conftest$ac_exeext && {
15252 test "$cross_compiling" = yes ||
15253 $as_test_x conftest$ac_exeext
15254 }; then
15255 eval "$as_ac_var=yes"
15256 else
15257 $as_echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 eval "$as_ac_var=no"
15261 fi
15263 rm -rf conftest.dSYM
15264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15265 conftest$ac_exeext conftest.$ac_ext
15266 fi
15267 ac_res=`eval 'as_val=${'$as_ac_var'}
15268 $as_echo "$as_val"'`
15269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15270 $as_echo "$ac_res" >&6; }
15271 as_val=`eval 'as_val=${'$as_ac_var'}
15272 $as_echo "$as_val"'`
15273 if test "x$as_val" = x""yes; then
15274 cat >>confdefs.h <<_ACEOF
15275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15276 _ACEOF
15278 else
15279 { $as_echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
15280 $as_echo_n "checking for fdatasync in -lrt... " >&6; }
15281 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
15282 $as_echo_n "(cached) " >&6
15283 else
15284 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-lrt $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char fdatasync ();
15300 int
15301 main ()
15302 {
15303 return fdatasync ();
15304 ;
15305 return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313 esac
15314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315 $as_echo "$ac_try_echo") >&5
15316 (eval "$ac_link") 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext && {
15326 test "$cross_compiling" = yes ||
15327 $as_test_x conftest$ac_exeext
15328 }; then
15329 ac_cv_lib_rt_fdatasync=yes
15330 else
15331 $as_echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_cv_lib_rt_fdatasync=no
15335 fi
15337 rm -rf conftest.dSYM
15338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15339 conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15341 fi
15342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
15343 $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
15344 if test "x$ac_cv_lib_rt_fdatasync" = x""yes; then
15345 LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
15346 #define HAVE_FDATASYNC 1
15347 _ACEOF
15349 fi
15351 fi
15352 done
15355 for ac_func in fsync
15356 do
15357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15359 $as_echo_n "checking for $ac_func... " >&6; }
15360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15361 $as_echo_n "(cached) " >&6
15362 else
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15371 #define $ac_func innocuous_$ac_func
15373 /* System header to define __stub macros and hopefully few prototypes,
15374 which can conflict with char $ac_func (); below.
15375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15376 <limits.h> exists even on freestanding compilers. */
15378 #ifdef __STDC__
15379 # include <limits.h>
15380 #else
15381 # include <assert.h>
15382 #endif
15384 #undef $ac_func
15386 /* Override any GCC internal prototype to avoid an error.
15387 Use char because int might match the return type of a GCC
15388 builtin and then its argument prototype would still apply. */
15389 #ifdef __cplusplus
15390 extern "C"
15391 #endif
15392 char $ac_func ();
15393 /* The GNU C library defines this for functions which it implements
15394 to always fail with ENOSYS. Some functions are actually named
15395 something starting with __ and the normal name is an alias. */
15396 #if defined __stub_$ac_func || defined __stub___$ac_func
15397 choke me
15398 #endif
15400 int
15401 main ()
15402 {
15403 return $ac_func ();
15404 ;
15405 return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (ac_try="$ac_link"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15415 $as_echo "$ac_try_echo") >&5
15416 (eval "$ac_link") 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext && {
15426 test "$cross_compiling" = yes ||
15427 $as_test_x conftest$ac_exeext
15428 }; then
15429 eval "$as_ac_var=yes"
15430 else
15431 $as_echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 eval "$as_ac_var=no"
15435 fi
15437 rm -rf conftest.dSYM
15438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15439 conftest$ac_exeext conftest.$ac_ext
15440 fi
15441 ac_res=`eval 'as_val=${'$as_ac_var'}
15442 $as_echo "$as_val"'`
15443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15444 $as_echo "$ac_res" >&6; }
15445 as_val=`eval 'as_val=${'$as_ac_var'}
15446 $as_echo "$as_val"'`
15447 if test "x$as_val" = x""yes; then
15448 cat >>confdefs.h <<_ACEOF
15449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15450 _ACEOF
15452 fi
15453 done
15458 for ac_func in socket
15459 do
15460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15461 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15462 $as_echo_n "checking for $ac_func... " >&6; }
15463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15464 $as_echo_n "(cached) " >&6
15465 else
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h. */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15474 #define $ac_func innocuous_$ac_func
15476 /* System header to define __stub macros and hopefully few prototypes,
15477 which can conflict with char $ac_func (); below.
15478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15479 <limits.h> exists even on freestanding compilers. */
15481 #ifdef __STDC__
15482 # include <limits.h>
15483 #else
15484 # include <assert.h>
15485 #endif
15487 #undef $ac_func
15489 /* Override any GCC internal prototype to avoid an error.
15490 Use char because int might match the return type of a GCC
15491 builtin and then its argument prototype would still apply. */
15492 #ifdef __cplusplus
15493 extern "C"
15494 #endif
15495 char $ac_func ();
15496 /* The GNU C library defines this for functions which it implements
15497 to always fail with ENOSYS. Some functions are actually named
15498 something starting with __ and the normal name is an alias. */
15499 #if defined __stub_$ac_func || defined __stub___$ac_func
15500 choke me
15501 #endif
15503 int
15504 main ()
15505 {
15506 return $ac_func ();
15507 ;
15508 return 0;
15509 }
15510 _ACEOF
15511 rm -f conftest.$ac_objext conftest$ac_exeext
15512 if { (ac_try="$ac_link"
15513 case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516 esac
15517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15518 $as_echo "$ac_try_echo") >&5
15519 (eval "$ac_link") 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } && {
15526 test -z "$ac_c_werror_flag" ||
15527 test ! -s conftest.err
15528 } && test -s conftest$ac_exeext && {
15529 test "$cross_compiling" = yes ||
15530 $as_test_x conftest$ac_exeext
15531 }; then
15532 eval "$as_ac_var=yes"
15533 else
15534 $as_echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 eval "$as_ac_var=no"
15538 fi
15540 rm -rf conftest.dSYM
15541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15542 conftest$ac_exeext conftest.$ac_ext
15543 fi
15544 ac_res=`eval 'as_val=${'$as_ac_var'}
15545 $as_echo "$as_val"'`
15546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15547 $as_echo "$ac_res" >&6; }
15548 as_val=`eval 'as_val=${'$as_ac_var'}
15549 $as_echo "$as_val"'`
15550 if test "x$as_val" = x""yes; then
15551 cat >>confdefs.h <<_ACEOF
15552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15553 _ACEOF
15555 else
15556 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15557 $as_echo_n "checking for socket in -lsocket... " >&6; }
15558 if test "${ac_cv_lib_socket_socket+set}" = set; then
15559 $as_echo_n "(cached) " >&6
15560 else
15561 ac_check_lib_save_LIBS=$LIBS
15562 LIBS="-lsocket $LIBS"
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15570 /* Override any GCC internal prototype to avoid an error.
15571 Use char because int might match the return type of a GCC
15572 builtin and then its argument prototype would still apply. */
15573 #ifdef __cplusplus
15574 extern "C"
15575 #endif
15576 char socket ();
15577 int
15578 main ()
15579 {
15580 return socket ();
15581 ;
15582 return 0;
15583 }
15584 _ACEOF
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (ac_try="$ac_link"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590 esac
15591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15592 $as_echo "$ac_try_echo") >&5
15593 (eval "$ac_link") 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } && {
15600 test -z "$ac_c_werror_flag" ||
15601 test ! -s conftest.err
15602 } && test -s conftest$ac_exeext && {
15603 test "$cross_compiling" = yes ||
15604 $as_test_x conftest$ac_exeext
15605 }; then
15606 ac_cv_lib_socket_socket=yes
15607 else
15608 $as_echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ac_cv_lib_socket_socket=no
15612 fi
15614 rm -rf conftest.dSYM
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15618 fi
15619 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15620 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15621 if test "x$ac_cv_lib_socket_socket" = x""yes; then
15622 LIBS="${LIBS} -lsocket"; cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_SOCKET 1
15624 _ACEOF
15626 fi
15628 fi
15629 done
15632 for ac_func in getaddrinfo
15633 do
15634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15635 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15636 $as_echo_n "checking for $ac_func... " >&6; }
15637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15638 $as_echo_n "(cached) " >&6
15639 else
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15648 #define $ac_func innocuous_$ac_func
15650 /* System header to define __stub macros and hopefully few prototypes,
15651 which can conflict with char $ac_func (); below.
15652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15653 <limits.h> exists even on freestanding compilers. */
15655 #ifdef __STDC__
15656 # include <limits.h>
15657 #else
15658 # include <assert.h>
15659 #endif
15661 #undef $ac_func
15663 /* Override any GCC internal prototype to avoid an error.
15664 Use char because int might match the return type of a GCC
15665 builtin and then its argument prototype would still apply. */
15666 #ifdef __cplusplus
15667 extern "C"
15668 #endif
15669 char $ac_func ();
15670 /* The GNU C library defines this for functions which it implements
15671 to always fail with ENOSYS. Some functions are actually named
15672 something starting with __ and the normal name is an alias. */
15673 #if defined __stub_$ac_func || defined __stub___$ac_func
15674 choke me
15675 #endif
15677 int
15678 main ()
15679 {
15680 return $ac_func ();
15681 ;
15682 return 0;
15683 }
15684 _ACEOF
15685 rm -f conftest.$ac_objext conftest$ac_exeext
15686 if { (ac_try="$ac_link"
15687 case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15690 esac
15691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15692 $as_echo "$ac_try_echo") >&5
15693 (eval "$ac_link") 2>conftest.er1
15694 ac_status=$?
15695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
15698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } && {
15700 test -z "$ac_c_werror_flag" ||
15701 test ! -s conftest.err
15702 } && test -s conftest$ac_exeext && {
15703 test "$cross_compiling" = yes ||
15704 $as_test_x conftest$ac_exeext
15705 }; then
15706 eval "$as_ac_var=yes"
15707 else
15708 $as_echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 eval "$as_ac_var=no"
15712 fi
15714 rm -rf conftest.dSYM
15715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15716 conftest$ac_exeext conftest.$ac_ext
15717 fi
15718 ac_res=`eval 'as_val=${'$as_ac_var'}
15719 $as_echo "$as_val"'`
15720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15721 $as_echo "$ac_res" >&6; }
15722 as_val=`eval 'as_val=${'$as_ac_var'}
15723 $as_echo "$as_val"'`
15724 if test "x$as_val" = x""yes; then
15725 cat >>confdefs.h <<_ACEOF
15726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15727 _ACEOF
15729 else
15730 { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lnsl" >&5
15731 $as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
15732 if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then
15733 $as_echo_n "(cached) " >&6
15734 else
15735 ac_check_lib_save_LIBS=$LIBS
15736 LIBS="-lnsl $LIBS"
15737 cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h. */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15744 /* Override any GCC internal prototype to avoid an error.
15745 Use char because int might match the return type of a GCC
15746 builtin and then its argument prototype would still apply. */
15747 #ifdef __cplusplus
15748 extern "C"
15749 #endif
15750 char getaddrinfo ();
15751 int
15752 main ()
15753 {
15754 return getaddrinfo ();
15755 ;
15756 return 0;
15757 }
15758 _ACEOF
15759 rm -f conftest.$ac_objext conftest$ac_exeext
15760 if { (ac_try="$ac_link"
15761 case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15764 esac
15765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15766 $as_echo "$ac_try_echo") >&5
15767 (eval "$ac_link") 2>conftest.er1
15768 ac_status=$?
15769 grep -v '^ *+' conftest.er1 >conftest.err
15770 rm -f conftest.er1
15771 cat conftest.err >&5
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } && {
15774 test -z "$ac_c_werror_flag" ||
15775 test ! -s conftest.err
15776 } && test -s conftest$ac_exeext && {
15777 test "$cross_compiling" = yes ||
15778 $as_test_x conftest$ac_exeext
15779 }; then
15780 ac_cv_lib_nsl_getaddrinfo=yes
15781 else
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_cv_lib_nsl_getaddrinfo=no
15786 fi
15788 rm -rf conftest.dSYM
15789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15790 conftest$ac_exeext conftest.$ac_ext
15791 LIBS=$ac_check_lib_save_LIBS
15792 fi
15793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_getaddrinfo" >&5
15794 $as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
15795 if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then
15796 LIBS="${LIBS} -lnsl"; cat >>confdefs.h <<\_ACEOF
15797 #define HAVE_GETADDRINFO 1
15798 _ACEOF
15800 fi
15802 fi
15803 done
15808 if test "x$enable_mmap" = "xyes"; then
15809 case "$host" in
15810 *cygwin*)
15811 # the normal mmap test does not work in cygwin
15813 for ac_func in mmap
15814 do
15815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15816 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15817 $as_echo_n "checking for $ac_func... " >&6; }
15818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15819 $as_echo_n "(cached) " >&6
15820 else
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h. */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15829 #define $ac_func innocuous_$ac_func
15831 /* System header to define __stub macros and hopefully few prototypes,
15832 which can conflict with char $ac_func (); below.
15833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834 <limits.h> exists even on freestanding compilers. */
15836 #ifdef __STDC__
15837 # include <limits.h>
15838 #else
15839 # include <assert.h>
15840 #endif
15842 #undef $ac_func
15844 /* Override any GCC internal prototype to avoid an error.
15845 Use char because int might match the return type of a GCC
15846 builtin and then its argument prototype would still apply. */
15847 #ifdef __cplusplus
15848 extern "C"
15849 #endif
15850 char $ac_func ();
15851 /* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854 #if defined __stub_$ac_func || defined __stub___$ac_func
15855 choke me
15856 #endif
15858 int
15859 main ()
15860 {
15861 return $ac_func ();
15862 ;
15863 return 0;
15864 }
15865 _ACEOF
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (ac_try="$ac_link"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871 esac
15872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15873 $as_echo "$ac_try_echo") >&5
15874 (eval "$ac_link") 2>conftest.er1
15875 ac_status=$?
15876 grep -v '^ *+' conftest.er1 >conftest.err
15877 rm -f conftest.er1
15878 cat conftest.err >&5
15879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } && {
15881 test -z "$ac_c_werror_flag" ||
15882 test ! -s conftest.err
15883 } && test -s conftest$ac_exeext && {
15884 test "$cross_compiling" = yes ||
15885 $as_test_x conftest$ac_exeext
15886 }; then
15887 eval "$as_ac_var=yes"
15888 else
15889 $as_echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15892 eval "$as_ac_var=no"
15893 fi
15895 rm -rf conftest.dSYM
15896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15897 conftest$ac_exeext conftest.$ac_ext
15898 fi
15899 ac_res=`eval 'as_val=${'$as_ac_var'}
15900 $as_echo "$as_val"'`
15901 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15902 $as_echo "$ac_res" >&6; }
15903 as_val=`eval 'as_val=${'$as_ac_var'}
15904 $as_echo "$as_val"'`
15905 if test "x$as_val" = x""yes; then
15906 cat >>confdefs.h <<_ACEOF
15907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15908 _ACEOF
15910 fi
15911 done
15913 if test "x$ac_cv_func_mmap" = "xyes"; then
15914 ac_cv_func_mmap_fixed_mapped=yes
15915 fi
15916 ;;
15917 *)
15919 for ac_header in sys/mman.h
15920 do
15921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15924 $as_echo_n "checking for $ac_header... " >&6; }
15925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15926 $as_echo_n "(cached) " >&6
15927 fi
15928 ac_res=`eval 'as_val=${'$as_ac_Header'}
15929 $as_echo "$as_val"'`
15930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15931 $as_echo "$ac_res" >&6; }
15932 else
15933 # Is the header compilable?
15934 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15935 $as_echo_n "checking $ac_header usability... " >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h. */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 $ac_includes_default
15943 #include <$ac_header>
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (ac_try="$ac_compile"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950 esac
15951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15952 $as_echo "$ac_try_echo") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } && {
15960 test -z "$ac_c_werror_flag" ||
15961 test ! -s conftest.err
15962 } && test -s conftest.$ac_objext; then
15963 ac_header_compiler=yes
15964 else
15965 $as_echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_header_compiler=no
15969 fi
15971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15972 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15973 $as_echo "$ac_header_compiler" >&6; }
15975 # Is the header present?
15976 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15977 $as_echo_n "checking $ac_header presence... " >&6; }
15978 cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h. */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 #include <$ac_header>
15985 _ACEOF
15986 if { (ac_try="$ac_cpp conftest.$ac_ext"
15987 case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15990 esac
15991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15992 $as_echo "$ac_try_echo") >&5
15993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null && {
16000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16001 test ! -s conftest.err
16002 }; then
16003 ac_header_preproc=yes
16004 else
16005 $as_echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ac_header_preproc=no
16009 fi
16011 rm -f conftest.err conftest.$ac_ext
16012 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 $as_echo "$ac_header_preproc" >&6; }
16015 # So? What about this header?
16016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16017 yes:no: )
16018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16022 ac_header_preproc=yes
16023 ;;
16024 no:yes:* )
16025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16028 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16032 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16038 ;;
16039 esac
16040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16041 $as_echo_n "checking for $ac_header... " >&6; }
16042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16043 $as_echo_n "(cached) " >&6
16044 else
16045 eval "$as_ac_Header=\$ac_header_preproc"
16046 fi
16047 ac_res=`eval 'as_val=${'$as_ac_Header'}
16048 $as_echo "$as_val"'`
16049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16050 $as_echo "$ac_res" >&6; }
16052 fi
16053 as_val=`eval 'as_val=${'$as_ac_Header'}
16054 $as_echo "$as_val"'`
16055 if test "x$as_val" = x""yes; then
16056 cat >>confdefs.h <<_ACEOF
16057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16058 _ACEOF
16060 fi
16062 done
16066 for ac_header in stdlib.h unistd.h
16067 do
16068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16070 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16071 $as_echo_n "checking for $ac_header... " >&6; }
16072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 $as_echo_n "(cached) " >&6
16074 fi
16075 ac_res=`eval 'as_val=${'$as_ac_Header'}
16076 $as_echo "$as_val"'`
16077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16078 $as_echo "$ac_res" >&6; }
16079 else
16080 # Is the header compilable?
16081 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16082 $as_echo_n "checking $ac_header usability... " >&6; }
16083 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h. */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 $ac_includes_default
16090 #include <$ac_header>
16091 _ACEOF
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097 esac
16098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_compile") 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && {
16107 test -z "$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16109 } && test -s conftest.$ac_objext; then
16110 ac_header_compiler=yes
16111 else
16112 $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_header_compiler=no
16116 fi
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16120 $as_echo "$ac_header_compiler" >&6; }
16122 # Is the header present?
16123 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16124 $as_echo_n "checking $ac_header presence... " >&6; }
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 #include <$ac_header>
16132 _ACEOF
16133 if { (ac_try="$ac_cpp conftest.$ac_ext"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137 esac
16138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } >/dev/null && {
16147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 }; then
16150 ac_header_preproc=yes
16151 else
16152 $as_echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_header_preproc=no
16156 fi
16158 rm -f conftest.err conftest.$ac_ext
16159 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16160 $as_echo "$ac_header_preproc" >&6; }
16162 # So? What about this header?
16163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16164 yes:no: )
16165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16166 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16169 ac_header_preproc=yes
16170 ;;
16171 no:yes:* )
16172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16173 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16175 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16177 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16179 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16181 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16183 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16185 ;;
16186 esac
16187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16188 $as_echo_n "checking for $ac_header... " >&6; }
16189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190 $as_echo_n "(cached) " >&6
16191 else
16192 eval "$as_ac_Header=\$ac_header_preproc"
16193 fi
16194 ac_res=`eval 'as_val=${'$as_ac_Header'}
16195 $as_echo "$as_val"'`
16196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16197 $as_echo "$ac_res" >&6; }
16199 fi
16200 as_val=`eval 'as_val=${'$as_ac_Header'}
16201 $as_echo "$as_val"'`
16202 if test "x$as_val" = x""yes; then
16203 cat >>confdefs.h <<_ACEOF
16204 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16205 _ACEOF
16207 fi
16209 done
16212 for ac_func in getpagesize
16213 do
16214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16216 $as_echo_n "checking for $ac_func... " >&6; }
16217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16218 $as_echo_n "(cached) " >&6
16219 else
16220 cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h. */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16228 #define $ac_func innocuous_$ac_func
16230 /* System header to define __stub macros and hopefully few prototypes,
16231 which can conflict with char $ac_func (); below.
16232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233 <limits.h> exists even on freestanding compilers. */
16235 #ifdef __STDC__
16236 # include <limits.h>
16237 #else
16238 # include <assert.h>
16239 #endif
16241 #undef $ac_func
16243 /* Override any GCC internal prototype to avoid an error.
16244 Use char because int might match the return type of a GCC
16245 builtin and then its argument prototype would still apply. */
16246 #ifdef __cplusplus
16247 extern "C"
16248 #endif
16249 char $ac_func ();
16250 /* The GNU C library defines this for functions which it implements
16251 to always fail with ENOSYS. Some functions are actually named
16252 something starting with __ and the normal name is an alias. */
16253 #if defined __stub_$ac_func || defined __stub___$ac_func
16254 choke me
16255 #endif
16257 int
16258 main ()
16259 {
16260 return $ac_func ();
16261 ;
16262 return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (ac_try="$ac_link"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16270 esac
16271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16272 $as_echo "$ac_try_echo") >&5
16273 (eval "$ac_link") 2>conftest.er1
16274 ac_status=$?
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
16278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && {
16280 test -z "$ac_c_werror_flag" ||
16281 test ! -s conftest.err
16282 } && test -s conftest$ac_exeext && {
16283 test "$cross_compiling" = yes ||
16284 $as_test_x conftest$ac_exeext
16285 }; then
16286 eval "$as_ac_var=yes"
16287 else
16288 $as_echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16291 eval "$as_ac_var=no"
16292 fi
16294 rm -rf conftest.dSYM
16295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16296 conftest$ac_exeext conftest.$ac_ext
16297 fi
16298 ac_res=`eval 'as_val=${'$as_ac_var'}
16299 $as_echo "$as_val"'`
16300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16301 $as_echo "$ac_res" >&6; }
16302 as_val=`eval 'as_val=${'$as_ac_var'}
16303 $as_echo "$as_val"'`
16304 if test "x$as_val" = x""yes; then
16305 cat >>confdefs.h <<_ACEOF
16306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16307 _ACEOF
16309 fi
16310 done
16312 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16313 $as_echo_n "checking for working mmap... " >&6; }
16314 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16315 $as_echo_n "(cached) " >&6
16316 else
16317 if test "$cross_compiling" = yes; then
16318 ac_cv_func_mmap_fixed_mapped=no
16319 else
16320 cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h. */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16326 $ac_includes_default
16327 /* malloc might have been renamed as rpl_malloc. */
16328 #undef malloc
16330 /* Thanks to Mike Haertel and Jim Avera for this test.
16331 Here is a matrix of mmap possibilities:
16332 mmap private not fixed
16333 mmap private fixed at somewhere currently unmapped
16334 mmap private fixed at somewhere already mapped
16335 mmap shared not fixed
16336 mmap shared fixed at somewhere currently unmapped
16337 mmap shared fixed at somewhere already mapped
16338 For private mappings, we should verify that changes cannot be read()
16339 back from the file, nor mmap's back from the file at a different
16340 address. (There have been systems where private was not correctly
16341 implemented like the infamous i386 svr4.0, and systems where the
16342 VM page cache was not coherent with the file system buffer cache
16343 like early versions of FreeBSD and possibly contemporary NetBSD.)
16344 For shared mappings, we should conversely verify that changes get
16345 propagated back to all the places they're supposed to be.
16347 Grep wants private fixed already mapped.
16348 The main things grep needs to know about mmap are:
16349 * does it exist and is it safe to write into the mmap'd area
16350 * how to use it (BSD variants) */
16352 #include <fcntl.h>
16353 #include <sys/mman.h>
16355 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16356 char *malloc ();
16357 #endif
16359 /* This mess was copied from the GNU getpagesize.h. */
16360 #ifndef HAVE_GETPAGESIZE
16361 /* Assume that all systems that can run configure have sys/param.h. */
16362 # ifndef HAVE_SYS_PARAM_H
16363 # define HAVE_SYS_PARAM_H 1
16364 # endif
16366 # ifdef _SC_PAGESIZE
16367 # define getpagesize() sysconf(_SC_PAGESIZE)
16368 # else /* no _SC_PAGESIZE */
16369 # ifdef HAVE_SYS_PARAM_H
16370 # include <sys/param.h>
16371 # ifdef EXEC_PAGESIZE
16372 # define getpagesize() EXEC_PAGESIZE
16373 # else /* no EXEC_PAGESIZE */
16374 # ifdef NBPG
16375 # define getpagesize() NBPG * CLSIZE
16376 # ifndef CLSIZE
16377 # define CLSIZE 1
16378 # endif /* no CLSIZE */
16379 # else /* no NBPG */
16380 # ifdef NBPC
16381 # define getpagesize() NBPC
16382 # else /* no NBPC */
16383 # ifdef PAGESIZE
16384 # define getpagesize() PAGESIZE
16385 # endif /* PAGESIZE */
16386 # endif /* no NBPC */
16387 # endif /* no NBPG */
16388 # endif /* no EXEC_PAGESIZE */
16389 # else /* no HAVE_SYS_PARAM_H */
16390 # define getpagesize() 8192 /* punt totally */
16391 # endif /* no HAVE_SYS_PARAM_H */
16392 # endif /* no _SC_PAGESIZE */
16394 #endif /* no HAVE_GETPAGESIZE */
16396 int
16397 main ()
16398 {
16399 char *data, *data2, *data3;
16400 int i, pagesize;
16401 int fd;
16403 pagesize = getpagesize ();
16405 /* First, make a file with some known garbage in it. */
16406 data = (char *) malloc (pagesize);
16407 if (!data)
16408 return 1;
16409 for (i = 0; i < pagesize; ++i)
16410 *(data + i) = rand ();
16411 umask (0);
16412 fd = creat ("conftest.mmap", 0600);
16413 if (fd < 0)
16414 return 1;
16415 if (write (fd, data, pagesize) != pagesize)
16416 return 1;
16417 close (fd);
16419 /* Next, try to mmap the file at a fixed address which already has
16420 something else allocated at it. If we can, also make sure that
16421 we see the same garbage. */
16422 fd = open ("conftest.mmap", O_RDWR);
16423 if (fd < 0)
16424 return 1;
16425 data2 = (char *) malloc (2 * pagesize);
16426 if (!data2)
16427 return 1;
16428 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16429 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16430 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16431 return 1;
16432 for (i = 0; i < pagesize; ++i)
16433 if (*(data + i) != *(data2 + i))
16434 return 1;
16436 /* Finally, make sure that changes to the mapped area do not
16437 percolate back to the file as seen by read(). (This is a bug on
16438 some variants of i386 svr4.0.) */
16439 for (i = 0; i < pagesize; ++i)
16440 *(data2 + i) = *(data2 + i) + 1;
16441 data3 = (char *) malloc (pagesize);
16442 if (!data3)
16443 return 1;
16444 if (read (fd, data3, pagesize) != pagesize)
16445 return 1;
16446 for (i = 0; i < pagesize; ++i)
16447 if (*(data + i) != *(data3 + i))
16448 return 1;
16449 close (fd);
16450 return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest$ac_exeext
16454 if { (ac_try="$ac_link"
16455 case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458 esac
16459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16460 $as_echo "$ac_try_echo") >&5
16461 (eval "$ac_link") 2>&5
16462 ac_status=$?
16463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468 esac
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471 (eval "$ac_try") 2>&5
16472 ac_status=$?
16473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_func_mmap_fixed_mapped=yes
16476 else
16477 $as_echo "$as_me: program exited with status $ac_status" >&5
16478 $as_echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 ( exit $ac_status )
16482 ac_cv_func_mmap_fixed_mapped=no
16483 fi
16484 rm -rf conftest.dSYM
16485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16486 fi
16489 fi
16490 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16491 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16492 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16494 cat >>confdefs.h <<\_ACEOF
16495 #define HAVE_MMAP 1
16496 _ACEOF
16498 fi
16499 rm -f conftest.mmap
16504 for ac_func in mmap munmap msync
16505 do
16506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16507 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16508 $as_echo_n "checking for $ac_func... " >&6; }
16509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16510 $as_echo_n "(cached) " >&6
16511 else
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16520 #define $ac_func innocuous_$ac_func
16522 /* System header to define __stub macros and hopefully few prototypes,
16523 which can conflict with char $ac_func (); below.
16524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16525 <limits.h> exists even on freestanding compilers. */
16527 #ifdef __STDC__
16528 # include <limits.h>
16529 #else
16530 # include <assert.h>
16531 #endif
16533 #undef $ac_func
16535 /* Override any GCC internal prototype to avoid an error.
16536 Use char because int might match the return type of a GCC
16537 builtin and then its argument prototype would still apply. */
16538 #ifdef __cplusplus
16539 extern "C"
16540 #endif
16541 char $ac_func ();
16542 /* The GNU C library defines this for functions which it implements
16543 to always fail with ENOSYS. Some functions are actually named
16544 something starting with __ and the normal name is an alias. */
16545 #if defined __stub_$ac_func || defined __stub___$ac_func
16546 choke me
16547 #endif
16549 int
16550 main ()
16551 {
16552 return $ac_func ();
16553 ;
16554 return 0;
16555 }
16556 _ACEOF
16557 rm -f conftest.$ac_objext conftest$ac_exeext
16558 if { (ac_try="$ac_link"
16559 case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562 esac
16563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16564 $as_echo "$ac_try_echo") >&5
16565 (eval "$ac_link") 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } && {
16572 test -z "$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 } && test -s conftest$ac_exeext && {
16575 test "$cross_compiling" = yes ||
16576 $as_test_x conftest$ac_exeext
16577 }; then
16578 eval "$as_ac_var=yes"
16579 else
16580 $as_echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 eval "$as_ac_var=no"
16584 fi
16586 rm -rf conftest.dSYM
16587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16588 conftest$ac_exeext conftest.$ac_ext
16589 fi
16590 ac_res=`eval 'as_val=${'$as_ac_var'}
16591 $as_echo "$as_val"'`
16592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16593 $as_echo "$ac_res" >&6; }
16594 as_val=`eval 'as_val=${'$as_ac_var'}
16595 $as_echo "$as_val"'`
16596 if test "x$as_val" = x""yes; then
16597 cat >>confdefs.h <<_ACEOF
16598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16599 _ACEOF
16601 fi
16602 done
16604 { $as_echo "$as_me:$LINENO: checking whether madvise is declared" >&5
16605 $as_echo_n "checking whether madvise is declared... " >&6; }
16606 if test "${ac_cv_have_decl_madvise+set}" = set; then
16607 $as_echo_n "(cached) " >&6
16608 else
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h. */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 #ifdef HAVE_SYS_MMAN_H
16616 # include <sys/mman.h>
16617 #endif
16619 int
16620 main ()
16621 {
16622 #ifndef madvise
16623 (void) madvise;
16624 #endif
16626 ;
16627 return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext
16631 if { (ac_try="$ac_compile"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16637 $as_echo "$ac_try_echo") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } && {
16645 test -z "$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 } && test -s conftest.$ac_objext; then
16648 ac_cv_have_decl_madvise=yes
16649 else
16650 $as_echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_cv_have_decl_madvise=no
16654 fi
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 fi
16658 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
16659 $as_echo "$ac_cv_have_decl_madvise" >&6; }
16660 if test "x$ac_cv_have_decl_madvise" = x""yes; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define HAVE_DECL_MADVISE 1
16664 _ACEOF
16667 else
16668 cat >>confdefs.h <<_ACEOF
16669 #define HAVE_DECL_MADVISE 0
16670 _ACEOF
16673 fi
16676 if test "x$ac_cv_have_decl_madvise" = "xyes";
16677 then
16679 for ac_func in madvise
16680 do
16681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16682 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16683 $as_echo_n "checking for $ac_func... " >&6; }
16684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16685 $as_echo_n "(cached) " >&6
16686 else
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h. */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16695 #define $ac_func innocuous_$ac_func
16697 /* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char $ac_func (); below.
16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700 <limits.h> exists even on freestanding compilers. */
16702 #ifdef __STDC__
16703 # include <limits.h>
16704 #else
16705 # include <assert.h>
16706 #endif
16708 #undef $ac_func
16710 /* Override any GCC internal prototype to avoid an error.
16711 Use char because int might match the return type of a GCC
16712 builtin and then its argument prototype would still apply. */
16713 #ifdef __cplusplus
16714 extern "C"
16715 #endif
16716 char $ac_func ();
16717 /* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720 #if defined __stub_$ac_func || defined __stub___$ac_func
16721 choke me
16722 #endif
16724 int
16725 main ()
16726 {
16727 return $ac_func ();
16728 ;
16729 return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737 esac
16738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16739 $as_echo "$ac_try_echo") >&5
16740 (eval "$ac_link") 2>conftest.er1
16741 ac_status=$?
16742 grep -v '^ *+' conftest.er1 >conftest.err
16743 rm -f conftest.er1
16744 cat conftest.err >&5
16745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && {
16747 test -z "$ac_c_werror_flag" ||
16748 test ! -s conftest.err
16749 } && test -s conftest$ac_exeext && {
16750 test "$cross_compiling" = yes ||
16751 $as_test_x conftest$ac_exeext
16752 }; then
16753 eval "$as_ac_var=yes"
16754 else
16755 $as_echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 eval "$as_ac_var=no"
16759 fi
16761 rm -rf conftest.dSYM
16762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16763 conftest$ac_exeext conftest.$ac_ext
16764 fi
16765 ac_res=`eval 'as_val=${'$as_ac_var'}
16766 $as_echo "$as_val"'`
16767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16768 $as_echo "$ac_res" >&6; }
16769 as_val=`eval 'as_val=${'$as_ac_var'}
16770 $as_echo "$as_val"'`
16771 if test "x$as_val" = x""yes; then
16772 cat >>confdefs.h <<_ACEOF
16773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16774 _ACEOF
16776 fi
16777 done
16779 else
16781 for ac_func in posix_madvise
16782 do
16783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16784 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16785 $as_echo_n "checking for $ac_func... " >&6; }
16786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16787 $as_echo_n "(cached) " >&6
16788 else
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16797 #define $ac_func innocuous_$ac_func
16799 /* System header to define __stub macros and hopefully few prototypes,
16800 which can conflict with char $ac_func (); below.
16801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16802 <limits.h> exists even on freestanding compilers. */
16804 #ifdef __STDC__
16805 # include <limits.h>
16806 #else
16807 # include <assert.h>
16808 #endif
16810 #undef $ac_func
16812 /* Override any GCC internal prototype to avoid an error.
16813 Use char because int might match the return type of a GCC
16814 builtin and then its argument prototype would still apply. */
16815 #ifdef __cplusplus
16816 extern "C"
16817 #endif
16818 char $ac_func ();
16819 /* The GNU C library defines this for functions which it implements
16820 to always fail with ENOSYS. Some functions are actually named
16821 something starting with __ and the normal name is an alias. */
16822 #if defined __stub_$ac_func || defined __stub___$ac_func
16823 choke me
16824 #endif
16826 int
16827 main ()
16828 {
16829 return $ac_func ();
16830 ;
16831 return 0;
16832 }
16833 _ACEOF
16834 rm -f conftest.$ac_objext conftest$ac_exeext
16835 if { (ac_try="$ac_link"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839 esac
16840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16841 $as_echo "$ac_try_echo") >&5
16842 (eval "$ac_link") 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest$ac_exeext && {
16852 test "$cross_compiling" = yes ||
16853 $as_test_x conftest$ac_exeext
16854 }; then
16855 eval "$as_ac_var=yes"
16856 else
16857 $as_echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 eval "$as_ac_var=no"
16861 fi
16863 rm -rf conftest.dSYM
16864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16865 conftest$ac_exeext conftest.$ac_ext
16866 fi
16867 ac_res=`eval 'as_val=${'$as_ac_var'}
16868 $as_echo "$as_val"'`
16869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16870 $as_echo "$ac_res" >&6; }
16871 as_val=`eval 'as_val=${'$as_ac_var'}
16872 $as_echo "$as_val"'`
16873 if test "x$as_val" = x""yes; then
16874 cat >>confdefs.h <<_ACEOF
16875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16876 _ACEOF
16878 fi
16879 done
16881 if test "x$ac_cv_func_posix_madvise" != "xyes"; then
16882 { $as_echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
16883 $as_echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
16884 fi
16885 fi
16886 ;;
16887 esac
16888 if test "x$ac_cv_func_mmap" != "xyes";
16889 then
16890 { { $as_echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
16891 $as_echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
16892 { (exit 1); exit 1; }; }
16893 fi
16894 fi
16896 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16897 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
16898 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16899 $as_echo_n "(cached) " >&6
16900 else
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #define _XOPEN_SOURCE 600
16908 #include <fcntl.h>
16910 int
16911 main ()
16912 {
16913 #ifndef posix_fadvise
16914 (void) posix_fadvise;
16915 #endif
16917 ;
16918 return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext
16922 if { (ac_try="$ac_compile"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926 esac
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929 (eval "$ac_compile") 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest.$ac_objext; then
16939 ac_cv_have_decl_posix_fadvise=yes
16940 else
16941 $as_echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_cv_have_decl_posix_fadvise=no
16945 fi
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 fi
16949 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16950 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
16951 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
16953 cat >>confdefs.h <<_ACEOF
16954 #define HAVE_DECL_POSIX_FADVISE 1
16955 _ACEOF
16958 else
16959 cat >>confdefs.h <<_ACEOF
16960 #define HAVE_DECL_POSIX_FADVISE 0
16961 _ACEOF
16964 fi
16968 for ac_func in posix_fadvise
16969 do
16970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16971 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16972 $as_echo_n "checking for $ac_func... " >&6; }
16973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16974 $as_echo_n "(cached) " >&6
16975 else
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h. */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16984 #define $ac_func innocuous_$ac_func
16986 /* System header to define __stub macros and hopefully few prototypes,
16987 which can conflict with char $ac_func (); below.
16988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16989 <limits.h> exists even on freestanding compilers. */
16991 #ifdef __STDC__
16992 # include <limits.h>
16993 #else
16994 # include <assert.h>
16995 #endif
16997 #undef $ac_func
16999 /* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17002 #ifdef __cplusplus
17003 extern "C"
17004 #endif
17005 char $ac_func ();
17006 /* The GNU C library defines this for functions which it implements
17007 to always fail with ENOSYS. Some functions are actually named
17008 something starting with __ and the normal name is an alias. */
17009 #if defined __stub_$ac_func || defined __stub___$ac_func
17010 choke me
17011 #endif
17013 int
17014 main ()
17015 {
17016 return $ac_func ();
17017 ;
17018 return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext conftest$ac_exeext
17022 if { (ac_try="$ac_link"
17023 case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026 esac
17027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029 (eval "$ac_link") 2>conftest.er1
17030 ac_status=$?
17031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
17034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } && {
17036 test -z "$ac_c_werror_flag" ||
17037 test ! -s conftest.err
17038 } && test -s conftest$ac_exeext && {
17039 test "$cross_compiling" = yes ||
17040 $as_test_x conftest$ac_exeext
17041 }; then
17042 eval "$as_ac_var=yes"
17043 else
17044 $as_echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 eval "$as_ac_var=no"
17048 fi
17050 rm -rf conftest.dSYM
17051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17052 conftest$ac_exeext conftest.$ac_ext
17053 fi
17054 ac_res=`eval 'as_val=${'$as_ac_var'}
17055 $as_echo "$as_val"'`
17056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17057 $as_echo "$ac_res" >&6; }
17058 as_val=`eval 'as_val=${'$as_ac_var'}
17059 $as_echo "$as_val"'`
17060 if test "x$as_val" = x""yes; then
17061 cat >>confdefs.h <<_ACEOF
17062 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17063 _ACEOF
17065 fi
17066 done
17070 case $TERM in
17071 # for the most important terminal types we directly know the sequences
17072 xterm|xterm*|vt220|vt220*)
17073 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
17074 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
17075 ;;
17076 vt100|vt100*|cygwin)
17077 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
17078 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
17079 ;;
17080 *)
17081 T_MD=''
17082 T_ME=''
17083 ;;
17084 esac
17085 { $as_echo "$as_me:$LINENO: result: " >&5
17086 $as_echo "" >&6; }
17087 { $as_echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
17088 $as_echo "${T_MD}Libintl Processing${T_ME}" >&6; }
17093 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17094 $as_echo_n "checking whether NLS is requested... " >&6; }
17095 # Check whether --enable-nls was given.
17096 if test "${enable_nls+set}" = set; then
17097 enableval=$enable_nls; USE_NLS=$enableval
17098 else
17099 USE_NLS=yes
17100 fi
17102 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17103 $as_echo "$USE_NLS" >&6; }
17108 GETTEXT_MACRO_VERSION=0.17
17113 # Prepare PATH_SEPARATOR.
17114 # The user is always right.
17115 if test "${PATH_SEPARATOR+set}" != set; then
17116 echo "#! /bin/sh" >conf$$.sh
17117 echo "exit 0" >>conf$$.sh
17118 chmod +x conf$$.sh
17119 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17120 PATH_SEPARATOR=';'
17121 else
17122 PATH_SEPARATOR=:
17123 fi
17124 rm -f conf$$.sh
17125 fi
17127 # Find out how to test for executable files. Don't use a zero-byte file,
17128 # as systems may use methods other than mode bits to determine executability.
17129 cat >conf$$.file <<_ASEOF
17130 #! /bin/sh
17131 exit 0
17132 _ASEOF
17133 chmod +x conf$$.file
17134 if test -x conf$$.file >/dev/null 2>&1; then
17135 ac_executable_p="test -x"
17136 else
17137 ac_executable_p="test -f"
17138 fi
17139 rm -f conf$$.file
17141 # Extract the first word of "msgfmt", so it can be a program name with args.
17142 set dummy msgfmt; ac_word=$2
17143 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17144 $as_echo_n "checking for $ac_word... " >&6; }
17145 if test "${ac_cv_path_MSGFMT+set}" = set; then
17146 $as_echo_n "(cached) " >&6
17147 else
17148 case "$MSGFMT" in
17149 [\\/]* | ?:[\\/]*)
17150 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17151 ;;
17152 *)
17153 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17154 for ac_dir in $PATH; do
17155 IFS="$ac_save_IFS"
17156 test -z "$ac_dir" && ac_dir=.
17157 for ac_exec_ext in '' $ac_executable_extensions; do
17158 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17159 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17160 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17161 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17162 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17163 break 2
17164 fi
17165 fi
17166 done
17167 done
17168 IFS="$ac_save_IFS"
17169 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17170 ;;
17171 esac
17172 fi
17173 MSGFMT="$ac_cv_path_MSGFMT"
17174 if test "$MSGFMT" != ":"; then
17175 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
17176 $as_echo "$MSGFMT" >&6; }
17177 else
17178 { $as_echo "$as_me:$LINENO: result: no" >&5
17179 $as_echo "no" >&6; }
17180 fi
17182 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17183 set dummy gmsgfmt; ac_word=$2
17184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17185 $as_echo_n "checking for $ac_word... " >&6; }
17186 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17187 $as_echo_n "(cached) " >&6
17188 else
17189 case $GMSGFMT in
17190 [\\/]* | ?:[\\/]*)
17191 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17192 ;;
17193 *)
17194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17195 for as_dir in $PATH
17196 do
17197 IFS=$as_save_IFS
17198 test -z "$as_dir" && as_dir=.
17199 for ac_exec_ext in '' $ac_executable_extensions; do
17200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17201 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17203 break 2
17204 fi
17205 done
17206 done
17207 IFS=$as_save_IFS
17209 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17210 ;;
17211 esac
17212 fi
17213 GMSGFMT=$ac_cv_path_GMSGFMT
17214 if test -n "$GMSGFMT"; then
17215 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17216 $as_echo "$GMSGFMT" >&6; }
17217 else
17218 { $as_echo "$as_me:$LINENO: result: no" >&5
17219 $as_echo "no" >&6; }
17220 fi
17224 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17225 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
17226 *) MSGFMT_015=$MSGFMT ;;
17227 esac
17229 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17230 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
17231 *) GMSGFMT_015=$GMSGFMT ;;
17232 esac
17236 # Prepare PATH_SEPARATOR.
17237 # The user is always right.
17238 if test "${PATH_SEPARATOR+set}" != set; then
17239 echo "#! /bin/sh" >conf$$.sh
17240 echo "exit 0" >>conf$$.sh
17241 chmod +x conf$$.sh
17242 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17243 PATH_SEPARATOR=';'
17244 else
17245 PATH_SEPARATOR=:
17246 fi
17247 rm -f conf$$.sh
17248 fi
17250 # Find out how to test for executable files. Don't use a zero-byte file,
17251 # as systems may use methods other than mode bits to determine executability.
17252 cat >conf$$.file <<_ASEOF
17253 #! /bin/sh
17254 exit 0
17255 _ASEOF
17256 chmod +x conf$$.file
17257 if test -x conf$$.file >/dev/null 2>&1; then
17258 ac_executable_p="test -x"
17259 else
17260 ac_executable_p="test -f"
17261 fi
17262 rm -f conf$$.file
17264 # Extract the first word of "xgettext", so it can be a program name with args.
17265 set dummy xgettext; ac_word=$2
17266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17267 $as_echo_n "checking for $ac_word... " >&6; }
17268 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17269 $as_echo_n "(cached) " >&6
17270 else
17271 case "$XGETTEXT" in
17272 [\\/]* | ?:[\\/]*)
17273 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17274 ;;
17275 *)
17276 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17277 for ac_dir in $PATH; do
17278 IFS="$ac_save_IFS"
17279 test -z "$ac_dir" && ac_dir=.
17280 for ac_exec_ext in '' $ac_executable_extensions; do
17281 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17282 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17283 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17284 (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
17285 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17286 break 2
17287 fi
17288 fi
17289 done
17290 done
17291 IFS="$ac_save_IFS"
17292 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17293 ;;
17294 esac
17295 fi
17296 XGETTEXT="$ac_cv_path_XGETTEXT"
17297 if test "$XGETTEXT" != ":"; then
17298 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17299 $as_echo "$XGETTEXT" >&6; }
17300 else
17301 { $as_echo "$as_me:$LINENO: result: no" >&5
17302 $as_echo "no" >&6; }
17303 fi
17305 rm -f messages.po
17307 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17308 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
17309 *) XGETTEXT_015=$XGETTEXT ;;
17310 esac
17314 # Prepare PATH_SEPARATOR.
17315 # The user is always right.
17316 if test "${PATH_SEPARATOR+set}" != set; then
17317 echo "#! /bin/sh" >conf$$.sh
17318 echo "exit 0" >>conf$$.sh
17319 chmod +x conf$$.sh
17320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17321 PATH_SEPARATOR=';'
17322 else
17323 PATH_SEPARATOR=:
17324 fi
17325 rm -f conf$$.sh
17326 fi
17328 # Find out how to test for executable files. Don't use a zero-byte file,
17329 # as systems may use methods other than mode bits to determine executability.
17330 cat >conf$$.file <<_ASEOF
17331 #! /bin/sh
17332 exit 0
17333 _ASEOF
17334 chmod +x conf$$.file
17335 if test -x conf$$.file >/dev/null 2>&1; then
17336 ac_executable_p="test -x"
17337 else
17338 ac_executable_p="test -f"
17339 fi
17340 rm -f conf$$.file
17342 # Extract the first word of "msgmerge", so it can be a program name with args.
17343 set dummy msgmerge; ac_word=$2
17344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17345 $as_echo_n "checking for $ac_word... " >&6; }
17346 if test "${ac_cv_path_MSGMERGE+set}" = set; then
17347 $as_echo_n "(cached) " >&6
17348 else
17349 case "$MSGMERGE" in
17350 [\\/]* | ?:[\\/]*)
17351 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17352 ;;
17353 *)
17354 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17355 for ac_dir in $PATH; do
17356 IFS="$ac_save_IFS"
17357 test -z "$ac_dir" && ac_dir=.
17358 for ac_exec_ext in '' $ac_executable_extensions; do
17359 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17360 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17361 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17362 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17363 break 2
17364 fi
17365 fi
17366 done
17367 done
17368 IFS="$ac_save_IFS"
17369 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17370 ;;
17371 esac
17372 fi
17373 MSGMERGE="$ac_cv_path_MSGMERGE"
17374 if test "$MSGMERGE" != ":"; then
17375 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17376 $as_echo "$MSGMERGE" >&6; }
17377 else
17378 { $as_echo "$as_me:$LINENO: result: no" >&5
17379 $as_echo "no" >&6; }
17380 fi
17383 test -n "$localedir" || localedir='${datadir}/locale'
17386 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
17389 ac_config_commands="$ac_config_commands po-directories"
17393 if test "X$prefix" = "XNONE"; then
17394 acl_final_prefix="$ac_default_prefix"
17395 else
17396 acl_final_prefix="$prefix"
17397 fi
17398 if test "X$exec_prefix" = "XNONE"; then
17399 acl_final_exec_prefix='${prefix}'
17400 else
17401 acl_final_exec_prefix="$exec_prefix"
17402 fi
17403 acl_save_prefix="$prefix"
17404 prefix="$acl_final_prefix"
17405 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17406 prefix="$acl_save_prefix"
17409 # Check whether --with-gnu-ld was given.
17410 if test "${with_gnu_ld+set}" = set; then
17411 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17412 else
17413 with_gnu_ld=no
17414 fi
17416 # Prepare PATH_SEPARATOR.
17417 # The user is always right.
17418 if test "${PATH_SEPARATOR+set}" != set; then
17419 echo "#! /bin/sh" >conf$$.sh
17420 echo "exit 0" >>conf$$.sh
17421 chmod +x conf$$.sh
17422 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17423 PATH_SEPARATOR=';'
17424 else
17425 PATH_SEPARATOR=:
17426 fi
17427 rm -f conf$$.sh
17428 fi
17429 ac_prog=ld
17430 if test "$GCC" = yes; then
17431 # Check if gcc -print-prog-name=ld gives a path.
17432 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
17433 $as_echo_n "checking for ld used by GCC... " >&6; }
17434 case $host in
17435 *-*-mingw*)
17436 # gcc leaves a trailing carriage return which upsets mingw
17437 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17438 *)
17439 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17440 esac
17441 case $ac_prog in
17442 # Accept absolute paths.
17443 [\\/]* | [A-Za-z]:[\\/]*)
17444 re_direlt='/[^/][^/]*/\.\./'
17445 # Canonicalize the path of ld
17446 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17447 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17448 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17449 done
17450 test -z "$LD" && LD="$ac_prog"
17451 ;;
17452 "")
17453 # If it fails, then pretend we aren't using GCC.
17454 ac_prog=ld
17455 ;;
17456 *)
17457 # If it is relative, then search for the first ld in PATH.
17458 with_gnu_ld=unknown
17459 ;;
17460 esac
17461 elif test "$with_gnu_ld" = yes; then
17462 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17463 $as_echo_n "checking for GNU ld... " >&6; }
17464 else
17465 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17466 $as_echo_n "checking for non-GNU ld... " >&6; }
17467 fi
17468 if test "${acl_cv_path_LD+set}" = set; then
17469 $as_echo_n "(cached) " >&6
17470 else
17471 if test -z "$LD"; then
17472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17473 for ac_dir in $PATH; do
17474 test -z "$ac_dir" && ac_dir=.
17475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17476 acl_cv_path_LD="$ac_dir/$ac_prog"
17477 # Check to see if the program is GNU ld. I'd rather use --version,
17478 # but apparently some GNU ld's only accept -v.
17479 # Break only if it was the GNU/non-GNU ld that we prefer.
17480 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17481 *GNU* | *'with BFD'*)
17482 test "$with_gnu_ld" != no && break ;;
17483 *)
17484 test "$with_gnu_ld" != yes && break ;;
17485 esac
17486 fi
17487 done
17488 IFS="$ac_save_ifs"
17489 else
17490 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17491 fi
17492 fi
17494 LD="$acl_cv_path_LD"
17495 if test -n "$LD"; then
17496 { $as_echo "$as_me:$LINENO: result: $LD" >&5
17497 $as_echo "$LD" >&6; }
17498 else
17499 { $as_echo "$as_me:$LINENO: result: no" >&5
17500 $as_echo "no" >&6; }
17501 fi
17502 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17503 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17504 { (exit 1); exit 1; }; }
17505 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17507 if test "${acl_cv_prog_gnu_ld+set}" = set; then
17508 $as_echo_n "(cached) " >&6
17509 else
17510 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17511 case `$LD -v 2>&1 </dev/null` in
17512 *GNU* | *'with BFD'*)
17513 acl_cv_prog_gnu_ld=yes ;;
17514 *)
17515 acl_cv_prog_gnu_ld=no ;;
17516 esac
17517 fi
17518 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
17519 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17520 with_gnu_ld=$acl_cv_prog_gnu_ld
17525 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
17526 $as_echo_n "checking for shared library run path origin... " >&6; }
17527 if test "${acl_cv_rpath+set}" = set; then
17528 $as_echo_n "(cached) " >&6
17529 else
17531 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17532 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17533 . ./conftest.sh
17534 rm -f ./conftest.sh
17535 acl_cv_rpath=done
17537 fi
17538 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
17539 $as_echo "$acl_cv_rpath" >&6; }
17540 wl="$acl_cv_wl"
17541 acl_libext="$acl_cv_libext"
17542 acl_shlibext="$acl_cv_shlibext"
17543 acl_libname_spec="$acl_cv_libname_spec"
17544 acl_library_names_spec="$acl_cv_library_names_spec"
17545 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17546 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17547 acl_hardcode_direct="$acl_cv_hardcode_direct"
17548 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17549 # Check whether --enable-rpath was given.
17550 if test "${enable_rpath+set}" = set; then
17551 enableval=$enable_rpath; :
17552 else
17553 enable_rpath=yes
17554 fi
17558 acl_libdirstem=lib
17559 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17560 if test -n "$searchpath"; then
17561 acl_save_IFS="${IFS= }"; IFS=":"
17562 for searchdir in $searchpath; do
17563 if test -d "$searchdir"; then
17564 case "$searchdir" in
17565 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17566 *) searchdir=`cd "$searchdir" && pwd`
17567 case "$searchdir" in
17568 */lib64 ) acl_libdirstem=lib64 ;;
17569 esac ;;
17570 esac
17571 fi
17572 done
17573 IFS="$acl_save_IFS"
17574 fi
17584 use_additional=yes
17586 acl_save_prefix="$prefix"
17587 prefix="$acl_final_prefix"
17588 acl_save_exec_prefix="$exec_prefix"
17589 exec_prefix="$acl_final_exec_prefix"
17591 eval additional_includedir=\"$includedir\"
17592 eval additional_libdir=\"$libdir\"
17594 exec_prefix="$acl_save_exec_prefix"
17595 prefix="$acl_save_prefix"
17598 # Check whether --with-libiconv-prefix was given.
17599 if test "${with_libiconv_prefix+set}" = set; then
17600 withval=$with_libiconv_prefix;
17601 if test "X$withval" = "Xno"; then
17602 use_additional=no
17603 else
17604 if test "X$withval" = "X"; then
17606 acl_save_prefix="$prefix"
17607 prefix="$acl_final_prefix"
17608 acl_save_exec_prefix="$exec_prefix"
17609 exec_prefix="$acl_final_exec_prefix"
17611 eval additional_includedir=\"$includedir\"
17612 eval additional_libdir=\"$libdir\"
17614 exec_prefix="$acl_save_exec_prefix"
17615 prefix="$acl_save_prefix"
17617 else
17618 additional_includedir="$withval/include"
17619 additional_libdir="$withval/$acl_libdirstem"
17620 fi
17621 fi
17623 fi
17625 LIBICONV=
17626 LTLIBICONV=
17627 INCICONV=
17628 LIBICONV_PREFIX=
17629 rpathdirs=
17630 ltrpathdirs=
17631 names_already_handled=
17632 names_next_round='iconv '
17633 while test -n "$names_next_round"; do
17634 names_this_round="$names_next_round"
17635 names_next_round=
17636 for name in $names_this_round; do
17637 already_handled=
17638 for n in $names_already_handled; do
17639 if test "$n" = "$name"; then
17640 already_handled=yes
17641 break
17642 fi
17643 done
17644 if test -z "$already_handled"; then
17645 names_already_handled="$names_already_handled $name"
17646 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17647 eval value=\"\$HAVE_LIB$uppername\"
17648 if test -n "$value"; then
17649 if test "$value" = yes; then
17650 eval value=\"\$LIB$uppername\"
17651 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17652 eval value=\"\$LTLIB$uppername\"
17653 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17654 else
17655 :
17656 fi
17657 else
17658 found_dir=
17659 found_la=
17660 found_so=
17661 found_a=
17662 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17663 if test -n "$acl_shlibext"; then
17664 shrext=".$acl_shlibext" # typically: shrext=.so
17665 else
17666 shrext=
17667 fi
17668 if test $use_additional = yes; then
17669 dir="$additional_libdir"
17670 if test -n "$acl_shlibext"; then
17671 if test -f "$dir/$libname$shrext"; then
17672 found_dir="$dir"
17673 found_so="$dir/$libname$shrext"
17674 else
17675 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17676 ver=`(cd "$dir" && \
17677 for f in "$libname$shrext".*; do echo "$f"; done \
17678 | sed -e "s,^$libname$shrext\\\\.,," \
17679 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17680 | sed 1q ) 2>/dev/null`
17681 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17682 found_dir="$dir"
17683 found_so="$dir/$libname$shrext.$ver"
17684 fi
17685 else
17686 eval library_names=\"$acl_library_names_spec\"
17687 for f in $library_names; do
17688 if test -f "$dir/$f"; then
17689 found_dir="$dir"
17690 found_so="$dir/$f"
17691 break
17692 fi
17693 done
17694 fi
17695 fi
17696 fi
17697 if test "X$found_dir" = "X"; then
17698 if test -f "$dir/$libname.$acl_libext"; then
17699 found_dir="$dir"
17700 found_a="$dir/$libname.$acl_libext"
17701 fi
17702 fi
17703 if test "X$found_dir" != "X"; then
17704 if test -f "$dir/$libname.la"; then
17705 found_la="$dir/$libname.la"
17706 fi
17707 fi
17708 fi
17709 if test "X$found_dir" = "X"; then
17710 for x in $LDFLAGS $LTLIBICONV; do
17712 acl_save_prefix="$prefix"
17713 prefix="$acl_final_prefix"
17714 acl_save_exec_prefix="$exec_prefix"
17715 exec_prefix="$acl_final_exec_prefix"
17716 eval x=\"$x\"
17717 exec_prefix="$acl_save_exec_prefix"
17718 prefix="$acl_save_prefix"
17720 case "$x" in
17721 -L*)
17722 dir=`echo "X$x" | sed -e 's/^X-L//'`
17723 if test -n "$acl_shlibext"; then
17724 if test -f "$dir/$libname$shrext"; then
17725 found_dir="$dir"
17726 found_so="$dir/$libname$shrext"
17727 else
17728 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17729 ver=`(cd "$dir" && \
17730 for f in "$libname$shrext".*; do echo "$f"; done \
17731 | sed -e "s,^$libname$shrext\\\\.,," \
17732 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17733 | sed 1q ) 2>/dev/null`
17734 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17735 found_dir="$dir"
17736 found_so="$dir/$libname$shrext.$ver"
17737 fi
17738 else
17739 eval library_names=\"$acl_library_names_spec\"
17740 for f in $library_names; do
17741 if test -f "$dir/$f"; then
17742 found_dir="$dir"
17743 found_so="$dir/$f"
17744 break
17745 fi
17746 done
17747 fi
17748 fi
17749 fi
17750 if test "X$found_dir" = "X"; then
17751 if test -f "$dir/$libname.$acl_libext"; then
17752 found_dir="$dir"
17753 found_a="$dir/$libname.$acl_libext"
17754 fi
17755 fi
17756 if test "X$found_dir" != "X"; then
17757 if test -f "$dir/$libname.la"; then
17758 found_la="$dir/$libname.la"
17759 fi
17760 fi
17761 ;;
17762 esac
17763 if test "X$found_dir" != "X"; then
17764 break
17765 fi
17766 done
17767 fi
17768 if test "X$found_dir" != "X"; then
17769 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17770 if test "X$found_so" != "X"; then
17771 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17772 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17773 else
17774 haveit=
17775 for x in $ltrpathdirs; do
17776 if test "X$x" = "X$found_dir"; then
17777 haveit=yes
17778 break
17779 fi
17780 done
17781 if test -z "$haveit"; then
17782 ltrpathdirs="$ltrpathdirs $found_dir"
17783 fi
17784 if test "$acl_hardcode_direct" = yes; then
17785 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17786 else
17787 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17789 haveit=
17790 for x in $rpathdirs; do
17791 if test "X$x" = "X$found_dir"; then
17792 haveit=yes
17793 break
17794 fi
17795 done
17796 if test -z "$haveit"; then
17797 rpathdirs="$rpathdirs $found_dir"
17798 fi
17799 else
17800 haveit=
17801 for x in $LDFLAGS $LIBICONV; do
17803 acl_save_prefix="$prefix"
17804 prefix="$acl_final_prefix"
17805 acl_save_exec_prefix="$exec_prefix"
17806 exec_prefix="$acl_final_exec_prefix"
17807 eval x=\"$x\"
17808 exec_prefix="$acl_save_exec_prefix"
17809 prefix="$acl_save_prefix"
17811 if test "X$x" = "X-L$found_dir"; then
17812 haveit=yes
17813 break
17814 fi
17815 done
17816 if test -z "$haveit"; then
17817 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17818 fi
17819 if test "$acl_hardcode_minus_L" != no; then
17820 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17821 else
17822 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17823 fi
17824 fi
17825 fi
17826 fi
17827 else
17828 if test "X$found_a" != "X"; then
17829 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17830 else
17831 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17832 fi
17833 fi
17834 additional_includedir=
17835 case "$found_dir" in
17836 */$acl_libdirstem | */$acl_libdirstem/)
17837 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17838 LIBICONV_PREFIX="$basedir"
17839 additional_includedir="$basedir/include"
17840 ;;
17841 esac
17842 if test "X$additional_includedir" != "X"; then
17843 if test "X$additional_includedir" != "X/usr/include"; then
17844 haveit=
17845 if test "X$additional_includedir" = "X/usr/local/include"; then
17846 if test -n "$GCC"; then
17847 case $host_os in
17848 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17849 esac
17850 fi
17851 fi
17852 if test -z "$haveit"; then
17853 for x in $CPPFLAGS $INCICONV; do
17855 acl_save_prefix="$prefix"
17856 prefix="$acl_final_prefix"
17857 acl_save_exec_prefix="$exec_prefix"
17858 exec_prefix="$acl_final_exec_prefix"
17859 eval x=\"$x\"
17860 exec_prefix="$acl_save_exec_prefix"
17861 prefix="$acl_save_prefix"
17863 if test "X$x" = "X-I$additional_includedir"; then
17864 haveit=yes
17865 break
17866 fi
17867 done
17868 if test -z "$haveit"; then
17869 if test -d "$additional_includedir"; then
17870 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17871 fi
17872 fi
17873 fi
17874 fi
17875 fi
17876 if test -n "$found_la"; then
17877 save_libdir="$libdir"
17878 case "$found_la" in
17879 */* | *\\*) . "$found_la" ;;
17880 *) . "./$found_la" ;;
17881 esac
17882 libdir="$save_libdir"
17883 for dep in $dependency_libs; do
17884 case "$dep" in
17885 -L*)
17886 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17887 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17888 haveit=
17889 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17890 if test -n "$GCC"; then
17891 case $host_os in
17892 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17893 esac
17894 fi
17895 fi
17896 if test -z "$haveit"; then
17897 haveit=
17898 for x in $LDFLAGS $LIBICONV; do
17900 acl_save_prefix="$prefix"
17901 prefix="$acl_final_prefix"
17902 acl_save_exec_prefix="$exec_prefix"
17903 exec_prefix="$acl_final_exec_prefix"
17904 eval x=\"$x\"
17905 exec_prefix="$acl_save_exec_prefix"
17906 prefix="$acl_save_prefix"
17908 if test "X$x" = "X-L$additional_libdir"; then
17909 haveit=yes
17910 break
17911 fi
17912 done
17913 if test -z "$haveit"; then
17914 if test -d "$additional_libdir"; then
17915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17916 fi
17917 fi
17918 haveit=
17919 for x in $LDFLAGS $LTLIBICONV; do
17921 acl_save_prefix="$prefix"
17922 prefix="$acl_final_prefix"
17923 acl_save_exec_prefix="$exec_prefix"
17924 exec_prefix="$acl_final_exec_prefix"
17925 eval x=\"$x\"
17926 exec_prefix="$acl_save_exec_prefix"
17927 prefix="$acl_save_prefix"
17929 if test "X$x" = "X-L$additional_libdir"; then
17930 haveit=yes
17931 break
17932 fi
17933 done
17934 if test -z "$haveit"; then
17935 if test -d "$additional_libdir"; then
17936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17937 fi
17938 fi
17939 fi
17940 fi
17941 ;;
17942 -R*)
17943 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17944 if test "$enable_rpath" != no; then
17945 haveit=
17946 for x in $rpathdirs; do
17947 if test "X$x" = "X$dir"; then
17948 haveit=yes
17949 break
17950 fi
17951 done
17952 if test -z "$haveit"; then
17953 rpathdirs="$rpathdirs $dir"
17954 fi
17955 haveit=
17956 for x in $ltrpathdirs; do
17957 if test "X$x" = "X$dir"; then
17958 haveit=yes
17959 break
17960 fi
17961 done
17962 if test -z "$haveit"; then
17963 ltrpathdirs="$ltrpathdirs $dir"
17964 fi
17965 fi
17966 ;;
17967 -l*)
17968 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17969 ;;
17970 *.la)
17971 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17972 ;;
17973 *)
17974 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17976 ;;
17977 esac
17978 done
17979 fi
17980 else
17981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17983 fi
17984 fi
17985 fi
17986 done
17987 done
17988 if test "X$rpathdirs" != "X"; then
17989 if test -n "$acl_hardcode_libdir_separator"; then
17990 alldirs=
17991 for found_dir in $rpathdirs; do
17992 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17993 done
17994 acl_save_libdir="$libdir"
17995 libdir="$alldirs"
17996 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17997 libdir="$acl_save_libdir"
17998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17999 else
18000 for found_dir in $rpathdirs; do
18001 acl_save_libdir="$libdir"
18002 libdir="$found_dir"
18003 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18004 libdir="$acl_save_libdir"
18005 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18006 done
18007 fi
18008 fi
18009 if test "X$ltrpathdirs" != "X"; then
18010 for found_dir in $ltrpathdirs; do
18011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18012 done
18013 fi
18039 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
18040 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18041 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
18042 $as_echo_n "(cached) " >&6
18043 else
18044 gt_save_LIBS="$LIBS"
18045 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
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. */
18052 #include <CoreFoundation/CFPreferences.h>
18053 int
18054 main ()
18055 {
18056 CFPreferencesCopyAppValue(NULL, NULL)
18057 ;
18058 return 0;
18059 }
18060 _ACEOF
18061 rm -f conftest.$ac_objext conftest$ac_exeext
18062 if { (ac_try="$ac_link"
18063 case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066 esac
18067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18068 $as_echo "$ac_try_echo") >&5
18069 (eval "$ac_link") 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest$ac_exeext && {
18079 test "$cross_compiling" = yes ||
18080 $as_test_x conftest$ac_exeext
18081 }; then
18082 gt_cv_func_CFPreferencesCopyAppValue=yes
18083 else
18084 $as_echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 gt_cv_func_CFPreferencesCopyAppValue=no
18088 fi
18090 rm -rf conftest.dSYM
18091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18092 conftest$ac_exeext conftest.$ac_ext
18093 LIBS="$gt_save_LIBS"
18094 fi
18095 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18096 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18097 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18099 cat >>confdefs.h <<\_ACEOF
18100 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
18101 _ACEOF
18103 fi
18104 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
18105 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18106 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
18107 $as_echo_n "(cached) " >&6
18108 else
18109 gt_save_LIBS="$LIBS"
18110 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 #include <CoreFoundation/CFLocale.h>
18118 int
18119 main ()
18120 {
18121 CFLocaleCopyCurrent();
18122 ;
18123 return 0;
18124 }
18125 _ACEOF
18126 rm -f conftest.$ac_objext conftest$ac_exeext
18127 if { (ac_try="$ac_link"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18131 esac
18132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18133 $as_echo "$ac_try_echo") >&5
18134 (eval "$ac_link") 2>conftest.er1
18135 ac_status=$?
18136 grep -v '^ *+' conftest.er1 >conftest.err
18137 rm -f conftest.er1
18138 cat conftest.err >&5
18139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest$ac_exeext && {
18144 test "$cross_compiling" = yes ||
18145 $as_test_x conftest$ac_exeext
18146 }; then
18147 gt_cv_func_CFLocaleCopyCurrent=yes
18148 else
18149 $as_echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 gt_cv_func_CFLocaleCopyCurrent=no
18153 fi
18155 rm -rf conftest.dSYM
18156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18157 conftest$ac_exeext conftest.$ac_ext
18158 LIBS="$gt_save_LIBS"
18159 fi
18160 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18161 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18162 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18164 cat >>confdefs.h <<\_ACEOF
18165 #define HAVE_CFLOCALECOPYCURRENT 1
18166 _ACEOF
18168 fi
18169 INTL_MACOSX_LIBS=
18170 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18171 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18172 fi
18179 LIBINTL=
18180 LTLIBINTL=
18181 POSUB=
18183 case " $gt_needs " in
18184 *" need-formatstring-macros "*) gt_api_version=3 ;;
18185 *" need-ngettext "*) gt_api_version=2 ;;
18186 *) gt_api_version=1 ;;
18187 esac
18188 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
18189 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
18191 if test "$USE_NLS" = "yes"; then
18192 gt_use_preinstalled_gnugettext=no
18195 if test $gt_api_version -ge 3; then
18196 gt_revision_test_code='
18197 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18198 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
18199 #endif
18200 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
18201 '
18202 else
18203 gt_revision_test_code=
18204 fi
18205 if test $gt_api_version -ge 2; then
18206 gt_expression_test_code=' + * ngettext ("", "", 0)'
18207 else
18208 gt_expression_test_code=
18209 fi
18211 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
18212 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18213 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
18214 $as_echo_n "(cached) " >&6
18215 else
18216 cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h. */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18222 #include <libintl.h>
18223 $gt_revision_test_code
18224 extern int _nl_msg_cat_cntr;
18225 extern int *_nl_domain_bindings;
18226 int
18227 main ()
18228 {
18229 bindtextdomain ("", "");
18230 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
18231 ;
18232 return 0;
18233 }
18234 _ACEOF
18235 rm -f conftest.$ac_objext conftest$ac_exeext
18236 if { (ac_try="$ac_link"
18237 case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18240 esac
18241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18242 $as_echo "$ac_try_echo") >&5
18243 (eval "$ac_link") 2>conftest.er1
18244 ac_status=$?
18245 grep -v '^ *+' conftest.er1 >conftest.err
18246 rm -f conftest.er1
18247 cat conftest.err >&5
18248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && {
18250 test -z "$ac_c_werror_flag" ||
18251 test ! -s conftest.err
18252 } && test -s conftest$ac_exeext && {
18253 test "$cross_compiling" = yes ||
18254 $as_test_x conftest$ac_exeext
18255 }; then
18256 eval "$gt_func_gnugettext_libc=yes"
18257 else
18258 $as_echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 eval "$gt_func_gnugettext_libc=no"
18262 fi
18264 rm -rf conftest.dSYM
18265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18266 conftest$ac_exeext conftest.$ac_ext
18267 fi
18268 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
18269 $as_echo "$as_val"'`
18270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18271 $as_echo "$ac_res" >&6; }
18273 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
18279 am_save_CPPFLAGS="$CPPFLAGS"
18281 for element in $INCICONV; do
18282 haveit=
18283 for x in $CPPFLAGS; do
18285 acl_save_prefix="$prefix"
18286 prefix="$acl_final_prefix"
18287 acl_save_exec_prefix="$exec_prefix"
18288 exec_prefix="$acl_final_exec_prefix"
18289 eval x=\"$x\"
18290 exec_prefix="$acl_save_exec_prefix"
18291 prefix="$acl_save_prefix"
18293 if test "X$x" = "X$element"; then
18294 haveit=yes
18295 break
18296 fi
18297 done
18298 if test -z "$haveit"; then
18299 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18300 fi
18301 done
18304 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
18305 $as_echo_n "checking for iconv... " >&6; }
18306 if test "${am_cv_func_iconv+set}" = set; then
18307 $as_echo_n "(cached) " >&6
18308 else
18310 am_cv_func_iconv="no, consider installing GNU libiconv"
18311 am_cv_lib_iconv=no
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h. */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 #include <stdlib.h>
18319 #include <iconv.h>
18320 int
18321 main ()
18322 {
18323 iconv_t cd = iconv_open("","");
18324 iconv(cd,NULL,NULL,NULL,NULL);
18325 iconv_close(cd);
18326 ;
18327 return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (ac_try="$ac_link"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335 esac
18336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18337 $as_echo "$ac_try_echo") >&5
18338 (eval "$ac_link") 2>conftest.er1
18339 ac_status=$?
18340 grep -v '^ *+' conftest.er1 >conftest.err
18341 rm -f conftest.er1
18342 cat conftest.err >&5
18343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } && {
18345 test -z "$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18347 } && test -s conftest$ac_exeext && {
18348 test "$cross_compiling" = yes ||
18349 $as_test_x conftest$ac_exeext
18350 }; then
18351 am_cv_func_iconv=yes
18352 else
18353 $as_echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18357 fi
18359 rm -rf conftest.dSYM
18360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18361 conftest$ac_exeext conftest.$ac_ext
18362 if test "$am_cv_func_iconv" != yes; then
18363 am_save_LIBS="$LIBS"
18364 LIBS="$LIBS $LIBICONV"
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 #include <stdlib.h>
18372 #include <iconv.h>
18373 int
18374 main ()
18375 {
18376 iconv_t cd = iconv_open("","");
18377 iconv(cd,NULL,NULL,NULL,NULL);
18378 iconv_close(cd);
18379 ;
18380 return 0;
18381 }
18382 _ACEOF
18383 rm -f conftest.$ac_objext conftest$ac_exeext
18384 if { (ac_try="$ac_link"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388 esac
18389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18390 $as_echo "$ac_try_echo") >&5
18391 (eval "$ac_link") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest$ac_exeext && {
18401 test "$cross_compiling" = yes ||
18402 $as_test_x conftest$ac_exeext
18403 }; then
18404 am_cv_lib_iconv=yes
18405 am_cv_func_iconv=yes
18406 else
18407 $as_echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18411 fi
18413 rm -rf conftest.dSYM
18414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18415 conftest$ac_exeext conftest.$ac_ext
18416 LIBS="$am_save_LIBS"
18417 fi
18419 fi
18420 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
18421 $as_echo "$am_cv_func_iconv" >&6; }
18422 if test "$am_cv_func_iconv" = yes; then
18423 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
18424 $as_echo_n "checking for working iconv... " >&6; }
18425 if test "${am_cv_func_iconv_works+set}" = set; then
18426 $as_echo_n "(cached) " >&6
18427 else
18429 am_save_LIBS="$LIBS"
18430 if test $am_cv_lib_iconv = yes; then
18431 LIBS="$LIBS $LIBICONV"
18432 fi
18433 if test "$cross_compiling" = yes; then
18434 case "$host_os" in
18435 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18436 *) am_cv_func_iconv_works="guessing yes" ;;
18437 esac
18438 else
18439 cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h. */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18446 #include <iconv.h>
18447 #include <string.h>
18448 int main ()
18449 {
18450 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18451 returns. */
18452 {
18453 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18454 if (cd_utf8_to_88591 != (iconv_t)(-1))
18455 {
18456 static const char input[] = "\342\202\254"; /* EURO SIGN */
18457 char buf[10];
18458 const char *inptr = input;
18459 size_t inbytesleft = strlen (input);
18460 char *outptr = buf;
18461 size_t outbytesleft = sizeof (buf);
18462 size_t res = iconv (cd_utf8_to_88591,
18463 (char **) &inptr, &inbytesleft,
18464 &outptr, &outbytesleft);
18465 if (res == 0)
18466 return 1;
18467 }
18468 }
18469 #if 0 /* This bug could be worked around by the caller. */
18470 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18471 {
18472 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18473 if (cd_88591_to_utf8 != (iconv_t)(-1))
18474 {
18475 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18476 char buf[50];
18477 const char *inptr = input;
18478 size_t inbytesleft = strlen (input);
18479 char *outptr = buf;
18480 size_t outbytesleft = sizeof (buf);
18481 size_t res = iconv (cd_88591_to_utf8,
18482 (char **) &inptr, &inbytesleft,
18483 &outptr, &outbytesleft);
18484 if ((int)res > 0)
18485 return 1;
18486 }
18487 }
18488 #endif
18489 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18490 provided. */
18491 if (/* Try standardized names. */
18492 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18493 /* Try IRIX, OSF/1 names. */
18494 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18495 /* Try AIX names. */
18496 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18497 /* Try HP-UX names. */
18498 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18499 return 1;
18500 return 0;
18501 }
18502 _ACEOF
18503 rm -f conftest$ac_exeext
18504 if { (ac_try="$ac_link"
18505 case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18508 esac
18509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18510 $as_echo "$ac_try_echo") >&5
18511 (eval "$ac_link") 2>&5
18512 ac_status=$?
18513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18515 { (case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18520 $as_echo "$ac_try_echo") >&5
18521 (eval "$ac_try") 2>&5
18522 ac_status=$?
18523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 am_cv_func_iconv_works=yes
18526 else
18527 $as_echo "$as_me: program exited with status $ac_status" >&5
18528 $as_echo "$as_me: failed program was:" >&5
18529 sed 's/^/| /' conftest.$ac_ext >&5
18531 ( exit $ac_status )
18532 am_cv_func_iconv_works=no
18533 fi
18534 rm -rf conftest.dSYM
18535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18536 fi
18539 LIBS="$am_save_LIBS"
18541 fi
18542 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
18543 $as_echo "$am_cv_func_iconv_works" >&6; }
18544 case "$am_cv_func_iconv_works" in
18545 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18546 *) am_func_iconv=yes ;;
18547 esac
18548 else
18549 am_func_iconv=no am_cv_lib_iconv=no
18550 fi
18551 if test "$am_func_iconv" = yes; then
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE_ICONV 1
18555 _ACEOF
18557 fi
18558 if test "$am_cv_lib_iconv" = yes; then
18559 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
18560 $as_echo_n "checking how to link with libiconv... " >&6; }
18561 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
18562 $as_echo "$LIBICONV" >&6; }
18563 else
18564 CPPFLAGS="$am_save_CPPFLAGS"
18565 LIBICONV=
18566 LTLIBICONV=
18567 fi
18576 use_additional=yes
18578 acl_save_prefix="$prefix"
18579 prefix="$acl_final_prefix"
18580 acl_save_exec_prefix="$exec_prefix"
18581 exec_prefix="$acl_final_exec_prefix"
18583 eval additional_includedir=\"$includedir\"
18584 eval additional_libdir=\"$libdir\"
18586 exec_prefix="$acl_save_exec_prefix"
18587 prefix="$acl_save_prefix"
18590 # Check whether --with-libintl-prefix was given.
18591 if test "${with_libintl_prefix+set}" = set; then
18592 withval=$with_libintl_prefix;
18593 if test "X$withval" = "Xno"; then
18594 use_additional=no
18595 else
18596 if test "X$withval" = "X"; then
18598 acl_save_prefix="$prefix"
18599 prefix="$acl_final_prefix"
18600 acl_save_exec_prefix="$exec_prefix"
18601 exec_prefix="$acl_final_exec_prefix"
18603 eval additional_includedir=\"$includedir\"
18604 eval additional_libdir=\"$libdir\"
18606 exec_prefix="$acl_save_exec_prefix"
18607 prefix="$acl_save_prefix"
18609 else
18610 additional_includedir="$withval/include"
18611 additional_libdir="$withval/$acl_libdirstem"
18612 fi
18613 fi
18615 fi
18617 LIBINTL=
18618 LTLIBINTL=
18619 INCINTL=
18620 LIBINTL_PREFIX=
18621 rpathdirs=
18622 ltrpathdirs=
18623 names_already_handled=
18624 names_next_round='intl '
18625 while test -n "$names_next_round"; do
18626 names_this_round="$names_next_round"
18627 names_next_round=
18628 for name in $names_this_round; do
18629 already_handled=
18630 for n in $names_already_handled; do
18631 if test "$n" = "$name"; then
18632 already_handled=yes
18633 break
18634 fi
18635 done
18636 if test -z "$already_handled"; then
18637 names_already_handled="$names_already_handled $name"
18638 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18639 eval value=\"\$HAVE_LIB$uppername\"
18640 if test -n "$value"; then
18641 if test "$value" = yes; then
18642 eval value=\"\$LIB$uppername\"
18643 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18644 eval value=\"\$LTLIB$uppername\"
18645 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18646 else
18647 :
18648 fi
18649 else
18650 found_dir=
18651 found_la=
18652 found_so=
18653 found_a=
18654 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18655 if test -n "$acl_shlibext"; then
18656 shrext=".$acl_shlibext" # typically: shrext=.so
18657 else
18658 shrext=
18659 fi
18660 if test $use_additional = yes; then
18661 dir="$additional_libdir"
18662 if test -n "$acl_shlibext"; then
18663 if test -f "$dir/$libname$shrext"; then
18664 found_dir="$dir"
18665 found_so="$dir/$libname$shrext"
18666 else
18667 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18668 ver=`(cd "$dir" && \
18669 for f in "$libname$shrext".*; do echo "$f"; done \
18670 | sed -e "s,^$libname$shrext\\\\.,," \
18671 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18672 | sed 1q ) 2>/dev/null`
18673 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18674 found_dir="$dir"
18675 found_so="$dir/$libname$shrext.$ver"
18676 fi
18677 else
18678 eval library_names=\"$acl_library_names_spec\"
18679 for f in $library_names; do
18680 if test -f "$dir/$f"; then
18681 found_dir="$dir"
18682 found_so="$dir/$f"
18683 break
18684 fi
18685 done
18686 fi
18687 fi
18688 fi
18689 if test "X$found_dir" = "X"; then
18690 if test -f "$dir/$libname.$acl_libext"; then
18691 found_dir="$dir"
18692 found_a="$dir/$libname.$acl_libext"
18693 fi
18694 fi
18695 if test "X$found_dir" != "X"; then
18696 if test -f "$dir/$libname.la"; then
18697 found_la="$dir/$libname.la"
18698 fi
18699 fi
18700 fi
18701 if test "X$found_dir" = "X"; then
18702 for x in $LDFLAGS $LTLIBINTL; do
18704 acl_save_prefix="$prefix"
18705 prefix="$acl_final_prefix"
18706 acl_save_exec_prefix="$exec_prefix"
18707 exec_prefix="$acl_final_exec_prefix"
18708 eval x=\"$x\"
18709 exec_prefix="$acl_save_exec_prefix"
18710 prefix="$acl_save_prefix"
18712 case "$x" in
18713 -L*)
18714 dir=`echo "X$x" | sed -e 's/^X-L//'`
18715 if test -n "$acl_shlibext"; then
18716 if test -f "$dir/$libname$shrext"; then
18717 found_dir="$dir"
18718 found_so="$dir/$libname$shrext"
18719 else
18720 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18721 ver=`(cd "$dir" && \
18722 for f in "$libname$shrext".*; do echo "$f"; done \
18723 | sed -e "s,^$libname$shrext\\\\.,," \
18724 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18725 | sed 1q ) 2>/dev/null`
18726 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18727 found_dir="$dir"
18728 found_so="$dir/$libname$shrext.$ver"
18729 fi
18730 else
18731 eval library_names=\"$acl_library_names_spec\"
18732 for f in $library_names; do
18733 if test -f "$dir/$f"; then
18734 found_dir="$dir"
18735 found_so="$dir/$f"
18736 break
18737 fi
18738 done
18739 fi
18740 fi
18741 fi
18742 if test "X$found_dir" = "X"; then
18743 if test -f "$dir/$libname.$acl_libext"; then
18744 found_dir="$dir"
18745 found_a="$dir/$libname.$acl_libext"
18746 fi
18747 fi
18748 if test "X$found_dir" != "X"; then
18749 if test -f "$dir/$libname.la"; then
18750 found_la="$dir/$libname.la"
18751 fi
18752 fi
18753 ;;
18754 esac
18755 if test "X$found_dir" != "X"; then
18756 break
18757 fi
18758 done
18759 fi
18760 if test "X$found_dir" != "X"; then
18761 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18762 if test "X$found_so" != "X"; then
18763 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
18764 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18765 else
18766 haveit=
18767 for x in $ltrpathdirs; do
18768 if test "X$x" = "X$found_dir"; then
18769 haveit=yes
18770 break
18771 fi
18772 done
18773 if test -z "$haveit"; then
18774 ltrpathdirs="$ltrpathdirs $found_dir"
18775 fi
18776 if test "$acl_hardcode_direct" = yes; then
18777 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18778 else
18779 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18780 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18781 haveit=
18782 for x in $rpathdirs; do
18783 if test "X$x" = "X$found_dir"; then
18784 haveit=yes
18785 break
18786 fi
18787 done
18788 if test -z "$haveit"; then
18789 rpathdirs="$rpathdirs $found_dir"
18790 fi
18791 else
18792 haveit=
18793 for x in $LDFLAGS $LIBINTL; do
18795 acl_save_prefix="$prefix"
18796 prefix="$acl_final_prefix"
18797 acl_save_exec_prefix="$exec_prefix"
18798 exec_prefix="$acl_final_exec_prefix"
18799 eval x=\"$x\"
18800 exec_prefix="$acl_save_exec_prefix"
18801 prefix="$acl_save_prefix"
18803 if test "X$x" = "X-L$found_dir"; then
18804 haveit=yes
18805 break
18806 fi
18807 done
18808 if test -z "$haveit"; then
18809 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18810 fi
18811 if test "$acl_hardcode_minus_L" != no; then
18812 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18813 else
18814 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18815 fi
18816 fi
18817 fi
18818 fi
18819 else
18820 if test "X$found_a" != "X"; then
18821 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18822 else
18823 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18824 fi
18825 fi
18826 additional_includedir=
18827 case "$found_dir" in
18828 */$acl_libdirstem | */$acl_libdirstem/)
18829 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18830 LIBINTL_PREFIX="$basedir"
18831 additional_includedir="$basedir/include"
18832 ;;
18833 esac
18834 if test "X$additional_includedir" != "X"; then
18835 if test "X$additional_includedir" != "X/usr/include"; then
18836 haveit=
18837 if test "X$additional_includedir" = "X/usr/local/include"; then
18838 if test -n "$GCC"; then
18839 case $host_os in
18840 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18841 esac
18842 fi
18843 fi
18844 if test -z "$haveit"; then
18845 for x in $CPPFLAGS $INCINTL; do
18847 acl_save_prefix="$prefix"
18848 prefix="$acl_final_prefix"
18849 acl_save_exec_prefix="$exec_prefix"
18850 exec_prefix="$acl_final_exec_prefix"
18851 eval x=\"$x\"
18852 exec_prefix="$acl_save_exec_prefix"
18853 prefix="$acl_save_prefix"
18855 if test "X$x" = "X-I$additional_includedir"; then
18856 haveit=yes
18857 break
18858 fi
18859 done
18860 if test -z "$haveit"; then
18861 if test -d "$additional_includedir"; then
18862 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18863 fi
18864 fi
18865 fi
18866 fi
18867 fi
18868 if test -n "$found_la"; then
18869 save_libdir="$libdir"
18870 case "$found_la" in
18871 */* | *\\*) . "$found_la" ;;
18872 *) . "./$found_la" ;;
18873 esac
18874 libdir="$save_libdir"
18875 for dep in $dependency_libs; do
18876 case "$dep" in
18877 -L*)
18878 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18879 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18880 haveit=
18881 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18882 if test -n "$GCC"; then
18883 case $host_os in
18884 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18885 esac
18886 fi
18887 fi
18888 if test -z "$haveit"; then
18889 haveit=
18890 for x in $LDFLAGS $LIBINTL; do
18892 acl_save_prefix="$prefix"
18893 prefix="$acl_final_prefix"
18894 acl_save_exec_prefix="$exec_prefix"
18895 exec_prefix="$acl_final_exec_prefix"
18896 eval x=\"$x\"
18897 exec_prefix="$acl_save_exec_prefix"
18898 prefix="$acl_save_prefix"
18900 if test "X$x" = "X-L$additional_libdir"; then
18901 haveit=yes
18902 break
18903 fi
18904 done
18905 if test -z "$haveit"; then
18906 if test -d "$additional_libdir"; then
18907 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18908 fi
18909 fi
18910 haveit=
18911 for x in $LDFLAGS $LTLIBINTL; do
18913 acl_save_prefix="$prefix"
18914 prefix="$acl_final_prefix"
18915 acl_save_exec_prefix="$exec_prefix"
18916 exec_prefix="$acl_final_exec_prefix"
18917 eval x=\"$x\"
18918 exec_prefix="$acl_save_exec_prefix"
18919 prefix="$acl_save_prefix"
18921 if test "X$x" = "X-L$additional_libdir"; then
18922 haveit=yes
18923 break
18924 fi
18925 done
18926 if test -z "$haveit"; then
18927 if test -d "$additional_libdir"; then
18928 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18929 fi
18930 fi
18931 fi
18932 fi
18933 ;;
18934 -R*)
18935 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18936 if test "$enable_rpath" != no; then
18937 haveit=
18938 for x in $rpathdirs; do
18939 if test "X$x" = "X$dir"; then
18940 haveit=yes
18941 break
18942 fi
18943 done
18944 if test -z "$haveit"; then
18945 rpathdirs="$rpathdirs $dir"
18946 fi
18947 haveit=
18948 for x in $ltrpathdirs; do
18949 if test "X$x" = "X$dir"; then
18950 haveit=yes
18951 break
18952 fi
18953 done
18954 if test -z "$haveit"; then
18955 ltrpathdirs="$ltrpathdirs $dir"
18956 fi
18957 fi
18958 ;;
18959 -l*)
18960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18961 ;;
18962 *.la)
18963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18964 ;;
18965 *)
18966 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18967 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18968 ;;
18969 esac
18970 done
18971 fi
18972 else
18973 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18974 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18975 fi
18976 fi
18977 fi
18978 done
18979 done
18980 if test "X$rpathdirs" != "X"; then
18981 if test -n "$acl_hardcode_libdir_separator"; then
18982 alldirs=
18983 for found_dir in $rpathdirs; do
18984 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18985 done
18986 acl_save_libdir="$libdir"
18987 libdir="$alldirs"
18988 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18989 libdir="$acl_save_libdir"
18990 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18991 else
18992 for found_dir in $rpathdirs; do
18993 acl_save_libdir="$libdir"
18994 libdir="$found_dir"
18995 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18996 libdir="$acl_save_libdir"
18997 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18998 done
18999 fi
19000 fi
19001 if test "X$ltrpathdirs" != "X"; then
19002 for found_dir in $ltrpathdirs; do
19003 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19004 done
19005 fi
19007 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
19008 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
19009 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
19010 $as_echo_n "(cached) " >&6
19011 else
19012 gt_save_CPPFLAGS="$CPPFLAGS"
19013 CPPFLAGS="$CPPFLAGS $INCINTL"
19014 gt_save_LIBS="$LIBS"
19015 LIBS="$LIBS $LIBINTL"
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 #include <libintl.h>
19023 $gt_revision_test_code
19024 extern int _nl_msg_cat_cntr;
19025 extern
19026 #ifdef __cplusplus
19027 "C"
19028 #endif
19029 const char *_nl_expand_alias (const char *);
19030 int
19031 main ()
19032 {
19033 bindtextdomain ("", "");
19034 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19035 ;
19036 return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19044 esac
19045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19046 $as_echo "$ac_try_echo") >&5
19047 (eval "$ac_link") 2>conftest.er1
19048 ac_status=$?
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
19052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } && {
19054 test -z "$ac_c_werror_flag" ||
19055 test ! -s conftest.err
19056 } && test -s conftest$ac_exeext && {
19057 test "$cross_compiling" = yes ||
19058 $as_test_x conftest$ac_exeext
19059 }; then
19060 eval "$gt_func_gnugettext_libintl=yes"
19061 else
19062 $as_echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 eval "$gt_func_gnugettext_libintl=no"
19066 fi
19068 rm -rf conftest.dSYM
19069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19070 conftest$ac_exeext conftest.$ac_ext
19071 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19072 LIBS="$LIBS $LIBICONV"
19073 cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h. */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 #include <libintl.h>
19080 $gt_revision_test_code
19081 extern int _nl_msg_cat_cntr;
19082 extern
19083 #ifdef __cplusplus
19084 "C"
19085 #endif
19086 const char *_nl_expand_alias (const char *);
19087 int
19088 main ()
19089 {
19090 bindtextdomain ("", "");
19091 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19092 ;
19093 return 0;
19094 }
19095 _ACEOF
19096 rm -f conftest.$ac_objext conftest$ac_exeext
19097 if { (ac_try="$ac_link"
19098 case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19101 esac
19102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19103 $as_echo "$ac_try_echo") >&5
19104 (eval "$ac_link") 2>conftest.er1
19105 ac_status=$?
19106 grep -v '^ *+' conftest.er1 >conftest.err
19107 rm -f conftest.er1
19108 cat conftest.err >&5
19109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } && {
19111 test -z "$ac_c_werror_flag" ||
19112 test ! -s conftest.err
19113 } && test -s conftest$ac_exeext && {
19114 test "$cross_compiling" = yes ||
19115 $as_test_x conftest$ac_exeext
19116 }; then
19117 LIBINTL="$LIBINTL $LIBICONV"
19118 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19119 eval "$gt_func_gnugettext_libintl=yes"
19121 else
19122 $as_echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19126 fi
19128 rm -rf conftest.dSYM
19129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19130 conftest$ac_exeext conftest.$ac_ext
19131 fi
19132 CPPFLAGS="$gt_save_CPPFLAGS"
19133 LIBS="$gt_save_LIBS"
19134 fi
19135 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
19136 $as_echo "$as_val"'`
19137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19138 $as_echo "$ac_res" >&6; }
19139 fi
19141 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19142 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19143 && test "$PACKAGE" != gettext-runtime \
19144 && test "$PACKAGE" != gettext-tools; }; then
19145 gt_use_preinstalled_gnugettext=yes
19146 else
19147 LIBINTL=
19148 LTLIBINTL=
19149 INCINTL=
19150 fi
19154 if test -n "$INTL_MACOSX_LIBS"; then
19155 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19156 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19157 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19158 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19159 fi
19160 fi
19162 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19163 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19165 cat >>confdefs.h <<\_ACEOF
19166 #define ENABLE_NLS 1
19167 _ACEOF
19169 else
19170 USE_NLS=no
19171 fi
19172 fi
19174 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
19175 $as_echo_n "checking whether to use NLS... " >&6; }
19176 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
19177 $as_echo "$USE_NLS" >&6; }
19178 if test "$USE_NLS" = "yes"; then
19179 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
19180 $as_echo_n "checking where the gettext function comes from... " >&6; }
19181 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19182 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19183 gt_source="external libintl"
19184 else
19185 gt_source="libc"
19186 fi
19187 else
19188 gt_source="included intl directory"
19189 fi
19190 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
19191 $as_echo "$gt_source" >&6; }
19192 fi
19194 if test "$USE_NLS" = "yes"; then
19196 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19197 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19198 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
19199 $as_echo_n "checking how to link with libintl... " >&6; }
19200 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
19201 $as_echo "$LIBINTL" >&6; }
19203 for element in $INCINTL; do
19204 haveit=
19205 for x in $CPPFLAGS; do
19207 acl_save_prefix="$prefix"
19208 prefix="$acl_final_prefix"
19209 acl_save_exec_prefix="$exec_prefix"
19210 exec_prefix="$acl_final_exec_prefix"
19211 eval x=\"$x\"
19212 exec_prefix="$acl_save_exec_prefix"
19213 prefix="$acl_save_prefix"
19215 if test "X$x" = "X$element"; then
19216 haveit=yes
19217 break
19218 fi
19219 done
19220 if test -z "$haveit"; then
19221 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19222 fi
19223 done
19225 fi
19228 cat >>confdefs.h <<\_ACEOF
19229 #define HAVE_GETTEXT 1
19230 _ACEOF
19233 cat >>confdefs.h <<\_ACEOF
19234 #define HAVE_DCGETTEXT 1
19235 _ACEOF
19237 fi
19239 POSUB=po
19240 fi
19244 INTLLIBS="$LIBINTL"
19253 case $TERM in
19254 # for the most important terminal types we directly know the sequences
19255 xterm|xterm*|vt220|vt220*)
19256 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
19257 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
19258 ;;
19259 vt100|vt100*|cygwin)
19260 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
19261 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
19262 ;;
19263 *)
19264 T_MD=''
19265 T_ME=''
19266 ;;
19267 esac
19268 { $as_echo "$as_me:$LINENO: result: " >&5
19269 $as_echo "" >&6; }
19270 { $as_echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
19271 $as_echo "${T_MD}IEEE Math Checks${T_ME}" >&6; }
19276 for ac_func in fpclassify
19277 do
19278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19279 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19280 $as_echo_n "checking for $ac_func... " >&6; }
19281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19282 $as_echo_n "(cached) " >&6
19283 else
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h. */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19292 #define $ac_func innocuous_$ac_func
19294 /* System header to define __stub macros and hopefully few prototypes,
19295 which can conflict with char $ac_func (); below.
19296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19297 <limits.h> exists even on freestanding compilers. */
19299 #ifdef __STDC__
19300 # include <limits.h>
19301 #else
19302 # include <assert.h>
19303 #endif
19305 #undef $ac_func
19307 /* Override any GCC internal prototype to avoid an error.
19308 Use char because int might match the return type of a GCC
19309 builtin and then its argument prototype would still apply. */
19310 #ifdef __cplusplus
19311 extern "C"
19312 #endif
19313 char $ac_func ();
19314 /* The GNU C library defines this for functions which it implements
19315 to always fail with ENOSYS. Some functions are actually named
19316 something starting with __ and the normal name is an alias. */
19317 #if defined __stub_$ac_func || defined __stub___$ac_func
19318 choke me
19319 #endif
19321 int
19322 main ()
19323 {
19324 return $ac_func ();
19325 ;
19326 return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (ac_try="$ac_link"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19334 esac
19335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19336 $as_echo "$ac_try_echo") >&5
19337 (eval "$ac_link") 2>conftest.er1
19338 ac_status=$?
19339 grep -v '^ *+' conftest.er1 >conftest.err
19340 rm -f conftest.er1
19341 cat conftest.err >&5
19342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } && {
19344 test -z "$ac_c_werror_flag" ||
19345 test ! -s conftest.err
19346 } && test -s conftest$ac_exeext && {
19347 test "$cross_compiling" = yes ||
19348 $as_test_x conftest$ac_exeext
19349 }; then
19350 eval "$as_ac_var=yes"
19351 else
19352 $as_echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19355 eval "$as_ac_var=no"
19356 fi
19358 rm -rf conftest.dSYM
19359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19360 conftest$ac_exeext conftest.$ac_ext
19361 fi
19362 ac_res=`eval 'as_val=${'$as_ac_var'}
19363 $as_echo "$as_val"'`
19364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19365 $as_echo "$ac_res" >&6; }
19366 as_val=`eval 'as_val=${'$as_ac_var'}
19367 $as_echo "$as_val"'`
19368 if test "x$as_val" = x""yes; then
19369 cat >>confdefs.h <<_ACEOF
19370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19371 _ACEOF
19373 else
19374 { $as_echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
19375 $as_echo_n "checking for fpclassify with <math.h>... " >&6; }
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 #include <math.h>
19383 volatile int x;volatile float f;
19384 int
19385 main ()
19386 {
19387 x = fpclassify(f)
19388 ;
19389 return 0;
19390 }
19391 _ACEOF
19392 rm -f conftest.$ac_objext conftest$ac_exeext
19393 if { (ac_try="$ac_link"
19394 case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19397 esac
19398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19399 $as_echo "$ac_try_echo") >&5
19400 (eval "$ac_link") 2>conftest.er1
19401 ac_status=$?
19402 grep -v '^ *+' conftest.er1 >conftest.err
19403 rm -f conftest.er1
19404 cat conftest.err >&5
19405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } && {
19407 test -z "$ac_c_werror_flag" ||
19408 test ! -s conftest.err
19409 } && test -s conftest$ac_exeext && {
19410 test "$cross_compiling" = yes ||
19411 $as_test_x conftest$ac_exeext
19412 }; then
19413 { $as_echo "$as_me:$LINENO: result: yes" >&5
19414 $as_echo "yes" >&6; }
19415 cat >>confdefs.h <<\_ACEOF
19416 #define HAVE_FPCLASSIFY 1
19417 _ACEOF
19419 else
19420 $as_echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 { $as_echo "$as_me:$LINENO: result: no" >&5
19424 $as_echo "no" >&6; }
19425 fi
19427 rm -rf conftest.dSYM
19428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19429 conftest$ac_exeext conftest.$ac_ext
19430 fi
19431 done
19435 for ac_func in isinf
19436 do
19437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19439 $as_echo_n "checking for $ac_func... " >&6; }
19440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19441 $as_echo_n "(cached) " >&6
19442 else
19443 cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h. */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19451 #define $ac_func innocuous_$ac_func
19453 /* System header to define __stub macros and hopefully few prototypes,
19454 which can conflict with char $ac_func (); below.
19455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19456 <limits.h> exists even on freestanding compilers. */
19458 #ifdef __STDC__
19459 # include <limits.h>
19460 #else
19461 # include <assert.h>
19462 #endif
19464 #undef $ac_func
19466 /* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19469 #ifdef __cplusplus
19470 extern "C"
19471 #endif
19472 char $ac_func ();
19473 /* The GNU C library defines this for functions which it implements
19474 to always fail with ENOSYS. Some functions are actually named
19475 something starting with __ and the normal name is an alias. */
19476 #if defined __stub_$ac_func || defined __stub___$ac_func
19477 choke me
19478 #endif
19480 int
19481 main ()
19482 {
19483 return $ac_func ();
19484 ;
19485 return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19493 esac
19494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19495 $as_echo "$ac_try_echo") >&5
19496 (eval "$ac_link") 2>conftest.er1
19497 ac_status=$?
19498 grep -v '^ *+' conftest.er1 >conftest.err
19499 rm -f conftest.er1
19500 cat conftest.err >&5
19501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } && {
19503 test -z "$ac_c_werror_flag" ||
19504 test ! -s conftest.err
19505 } && test -s conftest$ac_exeext && {
19506 test "$cross_compiling" = yes ||
19507 $as_test_x conftest$ac_exeext
19508 }; then
19509 eval "$as_ac_var=yes"
19510 else
19511 $as_echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 eval "$as_ac_var=no"
19515 fi
19517 rm -rf conftest.dSYM
19518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19519 conftest$ac_exeext conftest.$ac_ext
19520 fi
19521 ac_res=`eval 'as_val=${'$as_ac_var'}
19522 $as_echo "$as_val"'`
19523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19524 $as_echo "$ac_res" >&6; }
19525 as_val=`eval 'as_val=${'$as_ac_var'}
19526 $as_echo "$as_val"'`
19527 if test "x$as_val" = x""yes; then
19528 cat >>confdefs.h <<_ACEOF
19529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19530 _ACEOF
19532 else
19533 { $as_echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
19534 $as_echo_n "checking for isinf with <math.h>... " >&6; }
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h. */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 #include <math.h>
19542 volatile int x;volatile float f;
19543 int
19544 main ()
19545 {
19546 x = isinf(f)
19547 ;
19548 return 0;
19549 }
19550 _ACEOF
19551 rm -f conftest.$ac_objext conftest$ac_exeext
19552 if { (ac_try="$ac_link"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556 esac
19557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19558 $as_echo "$ac_try_echo") >&5
19559 (eval "$ac_link") 2>conftest.er1
19560 ac_status=$?
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
19564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest$ac_exeext && {
19569 test "$cross_compiling" = yes ||
19570 $as_test_x conftest$ac_exeext
19571 }; then
19572 { $as_echo "$as_me:$LINENO: result: yes" >&5
19573 $as_echo "yes" >&6; }
19574 cat >>confdefs.h <<\_ACEOF
19575 #define HAVE_ISINF 1
19576 _ACEOF
19578 else
19579 $as_echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 { $as_echo "$as_me:$LINENO: result: no" >&5
19583 $as_echo "no" >&6; }
19584 fi
19586 rm -rf conftest.dSYM
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588 conftest$ac_exeext conftest.$ac_ext
19589 fi
19590 done
19593 { $as_echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
19594 $as_echo_n "checking whether isfinite is broken... " >&6; }
19595 if test "${ac_cv_have_broken_isfinite+set}" = set; then
19596 $as_echo_n "(cached) " >&6
19597 else
19599 if test "$cross_compiling" = yes; then
19601 case "${target}" in
19602 hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
19603 *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
19604 *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
19605 *) ac_cv_have_broken_isfinite=no ;;
19606 esac
19607 else
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h. */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19615 #ifdef HAVE_MATH_H
19616 #include <math.h>
19617 #endif
19618 #ifdef HAVE_FLOAT_H
19619 #include <float.h>
19620 #endif
19621 int main ()
19622 {
19623 #ifdef isfinite
19624 #ifdef LDBL_MAX
19625 if (!isfinite(LDBL_MAX)) return 1;
19626 #endif
19627 #ifdef DBL_MAX
19628 if (!isfinite(DBL_MAX)) return 1;
19629 #endif
19630 #endif
19631 return 0;
19632 }
19633 _ACEOF
19634 rm -f conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639 esac
19640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642 (eval "$ac_link") 2>&5
19643 ac_status=$?
19644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19646 { (case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19649 esac
19650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19651 $as_echo "$ac_try_echo") >&5
19652 (eval "$ac_try") 2>&5
19653 ac_status=$?
19654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_cv_have_broken_isfinite=no
19657 else
19658 $as_echo "$as_me: program exited with status $ac_status" >&5
19659 $as_echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19662 ( exit $ac_status )
19663 ac_cv_have_broken_isfinite=yes
19664 fi
19665 rm -rf conftest.dSYM
19666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19667 fi
19671 fi
19672 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_broken_isfinite" >&5
19673 $as_echo "$ac_cv_have_broken_isfinite" >&6; }
19675 case "${target}" in
19676 *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
19677 *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
19678 esac
19680 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_ISFINITE 1
19683 _ACEOF
19685 else
19687 for ac_func in finite
19688 do
19689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19690 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19691 $as_echo_n "checking for $ac_func... " >&6; }
19692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19693 $as_echo_n "(cached) " >&6
19694 else
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19703 #define $ac_func innocuous_$ac_func
19705 /* System header to define __stub macros and hopefully few prototypes,
19706 which can conflict with char $ac_func (); below.
19707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19708 <limits.h> exists even on freestanding compilers. */
19710 #ifdef __STDC__
19711 # include <limits.h>
19712 #else
19713 # include <assert.h>
19714 #endif
19716 #undef $ac_func
19718 /* Override any GCC internal prototype to avoid an error.
19719 Use char because int might match the return type of a GCC
19720 builtin and then its argument prototype would still apply. */
19721 #ifdef __cplusplus
19722 extern "C"
19723 #endif
19724 char $ac_func ();
19725 /* The GNU C library defines this for functions which it implements
19726 to always fail with ENOSYS. Some functions are actually named
19727 something starting with __ and the normal name is an alias. */
19728 #if defined __stub_$ac_func || defined __stub___$ac_func
19729 choke me
19730 #endif
19732 int
19733 main ()
19734 {
19735 return $ac_func ();
19736 ;
19737 return 0;
19738 }
19739 _ACEOF
19740 rm -f conftest.$ac_objext conftest$ac_exeext
19741 if { (ac_try="$ac_link"
19742 case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19745 esac
19746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19747 $as_echo "$ac_try_echo") >&5
19748 (eval "$ac_link") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext && {
19758 test "$cross_compiling" = yes ||
19759 $as_test_x conftest$ac_exeext
19760 }; then
19761 eval "$as_ac_var=yes"
19762 else
19763 $as_echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19766 eval "$as_ac_var=no"
19767 fi
19769 rm -rf conftest.dSYM
19770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19771 conftest$ac_exeext conftest.$ac_ext
19772 fi
19773 ac_res=`eval 'as_val=${'$as_ac_var'}
19774 $as_echo "$as_val"'`
19775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19776 $as_echo "$ac_res" >&6; }
19777 as_val=`eval 'as_val=${'$as_ac_var'}
19778 $as_echo "$as_val"'`
19779 if test "x$as_val" = x""yes; then
19780 cat >>confdefs.h <<_ACEOF
19781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19782 _ACEOF
19784 else
19786 for ac_func in isfinite
19787 do
19788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19789 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19790 $as_echo_n "checking for $ac_func... " >&6; }
19791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19792 $as_echo_n "(cached) " >&6
19793 else
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19802 #define $ac_func innocuous_$ac_func
19804 /* System header to define __stub macros and hopefully few prototypes,
19805 which can conflict with char $ac_func (); below.
19806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19807 <limits.h> exists even on freestanding compilers. */
19809 #ifdef __STDC__
19810 # include <limits.h>
19811 #else
19812 # include <assert.h>
19813 #endif
19815 #undef $ac_func
19817 /* Override any GCC internal prototype to avoid an error.
19818 Use char because int might match the return type of a GCC
19819 builtin and then its argument prototype would still apply. */
19820 #ifdef __cplusplus
19821 extern "C"
19822 #endif
19823 char $ac_func ();
19824 /* The GNU C library defines this for functions which it implements
19825 to always fail with ENOSYS. Some functions are actually named
19826 something starting with __ and the normal name is an alias. */
19827 #if defined __stub_$ac_func || defined __stub___$ac_func
19828 choke me
19829 #endif
19831 int
19832 main ()
19833 {
19834 return $ac_func ();
19835 ;
19836 return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19844 esac
19845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19846 $as_echo "$ac_try_echo") >&5
19847 (eval "$ac_link") 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } && {
19854 test -z "$ac_c_werror_flag" ||
19855 test ! -s conftest.err
19856 } && test -s conftest$ac_exeext && {
19857 test "$cross_compiling" = yes ||
19858 $as_test_x conftest$ac_exeext
19859 }; then
19860 eval "$as_ac_var=yes"
19861 else
19862 $as_echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 eval "$as_ac_var=no"
19866 fi
19868 rm -rf conftest.dSYM
19869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19870 conftest$ac_exeext conftest.$ac_ext
19871 fi
19872 ac_res=`eval 'as_val=${'$as_ac_var'}
19873 $as_echo "$as_val"'`
19874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19875 $as_echo "$ac_res" >&6; }
19876 as_val=`eval 'as_val=${'$as_ac_var'}
19877 $as_echo "$as_val"'`
19878 if test "x$as_val" = x""yes; then
19879 cat >>confdefs.h <<_ACEOF
19880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19881 _ACEOF
19883 else
19884 { $as_echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
19885 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h. */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <math.h>
19893 volatile int x;volatile float f;
19894 int
19895 main ()
19896 {
19897 x = isfinite(f)
19898 ;
19899 return 0;
19900 }
19901 _ACEOF
19902 rm -f conftest.$ac_objext conftest$ac_exeext
19903 if { (ac_try="$ac_link"
19904 case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19907 esac
19908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19909 $as_echo "$ac_try_echo") >&5
19910 (eval "$ac_link") 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest$ac_exeext && {
19920 test "$cross_compiling" = yes ||
19921 $as_test_x conftest$ac_exeext
19922 }; then
19923 { $as_echo "$as_me:$LINENO: result: yes" >&5
19924 $as_echo "yes" >&6; }
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_ISFINITE 1
19927 _ACEOF
19929 else
19930 $as_echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 { $as_echo "$as_me:$LINENO: result: no" >&5
19934 $as_echo "no" >&6; }
19935 fi
19937 rm -rf conftest.dSYM
19938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19939 conftest$ac_exeext conftest.$ac_ext
19940 fi
19941 done
19943 fi
19944 done
19946 fi
19949 ac_ext=c
19950 ac_cpp='$CPP $CPPFLAGS'
19951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19955 _cflags=${CFLAGS}
19957 { $as_echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
19958 $as_echo_n "checking if IEEE math works out of the box... " >&6; }
19959 if test "${rd_cv_ieee_works+set}" = set; then
19960 $as_echo_n "(cached) " >&6
19961 else
19962 if test "$cross_compiling" = yes; then
19963 :
19964 else
19965 cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h. */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19972 #include "src/rrd_config_bottom.h"
19973 #include <stdio.h>
19974 int main(void){
19975 double rrdnan,rrdinf,rrdc,rrdzero;
19976 ;
19977 /* some math to see if we get a floating point exception */
19978 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19979 rrdnan=0.0/rrdzero; /* especially here */
19980 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19981 /* at run time without sig fpe */
19982 rrdc = rrdinf + rrdnan;
19983 rrdc = rrdinf / rrdnan;
19984 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19985 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19986 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19987 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19988 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19989 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19990 return 0;
19991 }
19992 _ACEOF
19993 rm -f conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998 esac
19999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20000 $as_echo "$ac_try_echo") >&5
20001 (eval "$ac_link") 2>&5
20002 ac_status=$?
20003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20005 { (case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008 esac
20009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20010 $as_echo "$ac_try_echo") >&5
20011 (eval "$ac_try") 2>&5
20012 ac_status=$?
20013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
20015 rd_cv_ieee_works=yes
20016 else
20017 $as_echo "$as_me: program exited with status $ac_status" >&5
20018 $as_echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ( exit $ac_status )
20022 rd_cv_ieee_works=no
20023 fi
20024 rm -rf conftest.dSYM
20025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20026 fi
20029 fi
20031 if test x${rd_cv_ieee_works} = "xyes"; then
20032 { $as_echo "$as_me:$LINENO: result: yes" >&5
20033 $as_echo "yes" >&6; }
20035 else
20036 { $as_echo "$as_me:$LINENO: result: no" >&5
20037 $as_echo "no" >&6; }
20038 CFLAGS="$_cflags -ieee"
20040 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
20041 $as_echo_n "checking if IEEE math works with the -ieee switch... " >&6; }
20042 if test "${rd_cv_ieee_switch+set}" = set; then
20043 $as_echo_n "(cached) " >&6
20044 else
20045 if test "$cross_compiling" = yes; then
20046 :
20047 else
20048 cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20055 #include "src/rrd_config_bottom.h"
20056 #include <stdio.h>
20057 int main(void){
20058 double rrdnan,rrdinf,rrdc,rrdzero;
20059 ;
20060 /* some math to see if we get a floating point exception */
20061 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20062 rrdnan=0.0/rrdzero; /* especially here */
20063 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20064 /* at run time without sig fpe */
20065 rrdc = rrdinf + rrdnan;
20066 rrdc = rrdinf / rrdnan;
20067 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20068 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20069 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20070 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20071 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20072 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20073 return 0;
20074 }
20075 _ACEOF
20076 rm -f conftest$ac_exeext
20077 if { (ac_try="$ac_link"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20081 esac
20082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20083 $as_echo "$ac_try_echo") >&5
20084 (eval "$ac_link") 2>&5
20085 ac_status=$?
20086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20088 { (case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20093 $as_echo "$ac_try_echo") >&5
20094 (eval "$ac_try") 2>&5
20095 ac_status=$?
20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098 rd_cv_ieee_switch=yes
20099 else
20100 $as_echo "$as_me: program exited with status $ac_status" >&5
20101 $as_echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 ( exit $ac_status )
20105 rd_cv_ieee_switch=no
20106 fi
20107 rm -rf conftest.dSYM
20108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20109 fi
20112 fi
20114 if test x${rd_cv_ieee_switch} = "xyes"; then
20115 { $as_echo "$as_me:$LINENO: result: yes" >&5
20116 $as_echo "yes" >&6; }
20118 else
20119 { $as_echo "$as_me:$LINENO: result: no" >&5
20120 $as_echo "no" >&6; }
20121 CFLAGS="$_cflags -qfloat=nofold"
20123 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
20124 $as_echo_n "checking if IEEE math works with the -qfloat=nofold switch... " >&6; }
20125 if test "${rd_cv_ieee_nofold+set}" = set; then
20126 $as_echo_n "(cached) " >&6
20127 else
20128 if test "$cross_compiling" = yes; then
20129 :
20130 else
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h. */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20138 #include "src/rrd_config_bottom.h"
20139 #include <stdio.h>
20140 int main(void){
20141 double rrdnan,rrdinf,rrdc,rrdzero;
20142 ;
20143 /* some math to see if we get a floating point exception */
20144 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20145 rrdnan=0.0/rrdzero; /* especially here */
20146 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20147 /* at run time without sig fpe */
20148 rrdc = rrdinf + rrdnan;
20149 rrdc = rrdinf / rrdnan;
20150 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20151 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20152 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20153 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20154 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20155 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20156 return 0;
20157 }
20158 _ACEOF
20159 rm -f conftest$ac_exeext
20160 if { (ac_try="$ac_link"
20161 case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20164 esac
20165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20166 $as_echo "$ac_try_echo") >&5
20167 (eval "$ac_link") 2>&5
20168 ac_status=$?
20169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20171 { (case "(($ac_try" in
20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173 *) ac_try_echo=$ac_try;;
20174 esac
20175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20176 $as_echo "$ac_try_echo") >&5
20177 (eval "$ac_try") 2>&5
20178 ac_status=$?
20179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 rd_cv_ieee_nofold=yes
20182 else
20183 $as_echo "$as_me: program exited with status $ac_status" >&5
20184 $as_echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 ( exit $ac_status )
20188 rd_cv_ieee_nofold=no
20189 fi
20190 rm -rf conftest.dSYM
20191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20192 fi
20195 fi
20197 if test x${rd_cv_ieee_nofold} = "xyes"; then
20198 { $as_echo "$as_me:$LINENO: result: yes" >&5
20199 $as_echo "yes" >&6; }
20201 else
20202 { $as_echo "$as_me:$LINENO: result: no" >&5
20203 $as_echo "no" >&6; }
20204 CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
20206 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
20207 $as_echo_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... " >&6; }
20208 if test "${rd_cv_ieee_flttrap+set}" = set; then
20209 $as_echo_n "(cached) " >&6
20210 else
20211 if test "$cross_compiling" = yes; then
20212 :
20213 else
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h. */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20221 #include "src/rrd_config_bottom.h"
20222 #include <stdio.h>
20223 int main(void){
20224 double rrdnan,rrdinf,rrdc,rrdzero;
20225 ;
20226 /* some math to see if we get a floating point exception */
20227 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20228 rrdnan=0.0/rrdzero; /* especially here */
20229 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20230 /* at run time without sig fpe */
20231 rrdc = rrdinf + rrdnan;
20232 rrdc = rrdinf / rrdnan;
20233 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20234 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20235 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20236 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20237 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20238 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20239 return 0;
20240 }
20241 _ACEOF
20242 rm -f conftest$ac_exeext
20243 if { (ac_try="$ac_link"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247 esac
20248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20249 $as_echo "$ac_try_echo") >&5
20250 (eval "$ac_link") 2>&5
20251 ac_status=$?
20252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20254 { (case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20257 esac
20258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20259 $as_echo "$ac_try_echo") >&5
20260 (eval "$ac_try") 2>&5
20261 ac_status=$?
20262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; }; then
20264 rd_cv_ieee_flttrap=yes
20265 else
20266 $as_echo "$as_me: program exited with status $ac_status" >&5
20267 $as_echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ( exit $ac_status )
20271 rd_cv_ieee_flttrap=no
20272 fi
20273 rm -rf conftest.dSYM
20274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20275 fi
20278 fi
20280 if test x${rd_cv_ieee_flttrap} = "xyes"; then
20281 { $as_echo "$as_me:$LINENO: result: yes" >&5
20282 $as_echo "yes" >&6; }
20284 else
20285 { $as_echo "$as_me:$LINENO: result: no" >&5
20286 $as_echo "no" >&6; }
20287 CFLAGS="$_cflags -mieee"
20289 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
20290 $as_echo_n "checking if IEEE math works with the -mieee switch... " >&6; }
20291 if test "${rd_cv_ieee_mswitch+set}" = set; then
20292 $as_echo_n "(cached) " >&6
20293 else
20294 if test "$cross_compiling" = yes; then
20295 :
20296 else
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h. */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20304 #include "src/rrd_config_bottom.h"
20305 #include <stdio.h>
20306 int main(void){
20307 double rrdnan,rrdinf,rrdc,rrdzero;
20308 ;
20309 /* some math to see if we get a floating point exception */
20310 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20311 rrdnan=0.0/rrdzero; /* especially here */
20312 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20313 /* at run time without sig fpe */
20314 rrdc = rrdinf + rrdnan;
20315 rrdc = rrdinf / rrdnan;
20316 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20317 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20318 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20319 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20320 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20321 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20322 return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333 (eval "$ac_link") 2>&5
20334 ac_status=$?
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20337 { (case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340 esac
20341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20342 $as_echo "$ac_try_echo") >&5
20343 (eval "$ac_try") 2>&5
20344 ac_status=$?
20345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 rd_cv_ieee_mswitch=yes
20348 else
20349 $as_echo "$as_me: program exited with status $ac_status" >&5
20350 $as_echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ( exit $ac_status )
20354 rd_cv_ieee_mswitch=no
20355 fi
20356 rm -rf conftest.dSYM
20357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20358 fi
20361 fi
20363 if test x${rd_cv_ieee_mswitch} = "xyes"; then
20364 { $as_echo "$as_me:$LINENO: result: yes" >&5
20365 $as_echo "yes" >&6; }
20367 else
20368 { $as_echo "$as_me:$LINENO: result: no" >&5
20369 $as_echo "no" >&6; }
20370 CFLAGS="$_cflags -q float=rndsngl"
20372 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
20373 $as_echo_n "checking if IEEE math works with the -q float=rndsngl switch... " >&6; }
20374 if test "${rd_cv_ieee_qswitch+set}" = set; then
20375 $as_echo_n "(cached) " >&6
20376 else
20377 if test "$cross_compiling" = yes; then
20378 :
20379 else
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h. */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 #include "src/rrd_config_bottom.h"
20388 #include <stdio.h>
20389 int main(void){
20390 double rrdnan,rrdinf,rrdc,rrdzero;
20391 ;
20392 /* some math to see if we get a floating point exception */
20393 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20394 rrdnan=0.0/rrdzero; /* especially here */
20395 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20396 /* at run time without sig fpe */
20397 rrdc = rrdinf + rrdnan;
20398 rrdc = rrdinf / rrdnan;
20399 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20400 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20401 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20402 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20403 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20404 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20405 return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413 esac
20414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20415 $as_echo "$ac_try_echo") >&5
20416 (eval "$ac_link") 2>&5
20417 ac_status=$?
20418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20423 esac
20424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20425 $as_echo "$ac_try_echo") >&5
20426 (eval "$ac_try") 2>&5
20427 ac_status=$?
20428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 rd_cv_ieee_qswitch=yes
20431 else
20432 $as_echo "$as_me: program exited with status $ac_status" >&5
20433 $as_echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20436 ( exit $ac_status )
20437 rd_cv_ieee_qswitch=no
20438 fi
20439 rm -rf conftest.dSYM
20440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20441 fi
20444 fi
20446 if test x${rd_cv_ieee_qswitch} = "xyes"; then
20447 { $as_echo "$as_me:$LINENO: result: yes" >&5
20448 $as_echo "yes" >&6; }
20450 else
20451 { $as_echo "$as_me:$LINENO: result: no" >&5
20452 $as_echo "no" >&6; }
20453 CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
20455 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
20456 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... " >&6; }
20457 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
20458 $as_echo_n "(cached) " >&6
20459 else
20460 if test "$cross_compiling" = yes; then
20461 :
20462 else
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20470 #include "src/rrd_config_bottom.h"
20471 #include <stdio.h>
20472 int main(void){
20473 double rrdnan,rrdinf,rrdc,rrdzero;
20474 ;
20475 /* some math to see if we get a floating point exception */
20476 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20477 rrdnan=0.0/rrdzero; /* especially here */
20478 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20479 /* at run time without sig fpe */
20480 rrdc = rrdinf + rrdnan;
20481 rrdc = rrdinf / rrdnan;
20482 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20483 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20484 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20485 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20486 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20487 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20488 return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20496 esac
20497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20498 $as_echo "$ac_try_echo") >&5
20499 (eval "$ac_link") 2>&5
20500 ac_status=$?
20501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20503 { (case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20506 esac
20507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20508 $as_echo "$ac_try_echo") >&5
20509 (eval "$ac_try") 2>&5
20510 ac_status=$?
20511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513 rd_cv_ieee_ieeenaninfswitch=yes
20514 else
20515 $as_echo "$as_me: program exited with status $ac_status" >&5
20516 $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20519 ( exit $ac_status )
20520 rd_cv_ieee_ieeenaninfswitch=no
20521 fi
20522 rm -rf conftest.dSYM
20523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20524 fi
20527 fi
20529 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
20530 { $as_echo "$as_me:$LINENO: result: yes" >&5
20531 $as_echo "yes" >&6; }
20533 else
20534 { $as_echo "$as_me:$LINENO: result: no" >&5
20535 $as_echo "no" >&6; }
20536 CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
20538 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
20539 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... " >&6; }
20540 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
20541 $as_echo_n "(cached) " >&6
20542 else
20543 if test "$cross_compiling" = yes; then
20544 :
20545 else
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h. */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20553 #include "src/rrd_config_bottom.h"
20554 #include <stdio.h>
20555 int main(void){
20556 double rrdnan,rrdinf,rrdc,rrdzero;
20557 ;
20558 /* some math to see if we get a floating point exception */
20559 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20560 rrdnan=0.0/rrdzero; /* especially here */
20561 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20562 /* at run time without sig fpe */
20563 rrdc = rrdinf + rrdnan;
20564 rrdc = rrdinf / rrdnan;
20565 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20566 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20567 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20568 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20569 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20570 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20571 return 0;
20572 }
20573 _ACEOF
20574 rm -f conftest$ac_exeext
20575 if { (ac_try="$ac_link"
20576 case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579 esac
20580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20581 $as_echo "$ac_try_echo") >&5
20582 (eval "$ac_link") 2>&5
20583 ac_status=$?
20584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20586 { (case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589 esac
20590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20591 $as_echo "$ac_try_echo") >&5
20592 (eval "$ac_try") 2>&5
20593 ac_status=$?
20594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 rd_cv_ieee_ieeecmpswitch=yes
20597 else
20598 $as_echo "$as_me: program exited with status $ac_status" >&5
20599 $as_echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 ( exit $ac_status )
20603 rd_cv_ieee_ieeecmpswitch=no
20604 fi
20605 rm -rf conftest.dSYM
20606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20607 fi
20610 fi
20612 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
20613 { $as_echo "$as_me:$LINENO: result: yes" >&5
20614 $as_echo "yes" >&6; }
20616 else
20617 { $as_echo "$as_me:$LINENO: result: no" >&5
20618 $as_echo "no" >&6; }
20619 CFLAGS=$_cflags
20621 { $as_echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
20622 $as_echo_n "checking if IEEE math works with fpsetmask(0)... " >&6; }
20623 if test "${rd_cv_ieee_mask+set}" = set; then
20624 $as_echo_n "(cached) " >&6
20625 else
20626 if test "$cross_compiling" = yes; then
20627 :
20628 else
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <floatingpoint.h>
20636 #include "src/rrd_config_bottom.h"
20637 #include <stdio.h>
20638 int main(void){
20639 double rrdnan,rrdinf,rrdc,rrdzero;
20640 fpsetmask(0);
20641 /* some math to see if we get a floating point exception */
20642 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20643 rrdnan=0.0/rrdzero; /* especially here */
20644 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20645 /* at run time without sig fpe */
20646 rrdc = rrdinf + rrdnan;
20647 rrdc = rrdinf / rrdnan;
20648 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20649 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20650 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20651 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20652 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20653 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20654 return 0;
20655 }
20656 _ACEOF
20657 rm -f conftest$ac_exeext
20658 if { (ac_try="$ac_link"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20662 esac
20663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20664 $as_echo "$ac_try_echo") >&5
20665 (eval "$ac_link") 2>&5
20666 ac_status=$?
20667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20669 { (case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672 esac
20673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20674 $as_echo "$ac_try_echo") >&5
20675 (eval "$ac_try") 2>&5
20676 ac_status=$?
20677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
20679 rd_cv_ieee_mask=yes
20680 else
20681 $as_echo "$as_me: program exited with status $ac_status" >&5
20682 $as_echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ( exit $ac_status )
20686 rd_cv_ieee_mask=no
20687 fi
20688 rm -rf conftest.dSYM
20689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20690 fi
20693 fi
20695 if test x${rd_cv_ieee_mask} = "xyes"; then
20696 { $as_echo "$as_me:$LINENO: result: yes" >&5
20697 $as_echo "yes" >&6; }
20698 cat >>confdefs.h <<\_ACEOF
20699 #define MUST_DISABLE_FPMASK 1
20700 _ACEOF
20702 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
20703 else
20704 { $as_echo "$as_me:$LINENO: result: no" >&5
20705 $as_echo "no" >&6; }
20707 { $as_echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
20708 $as_echo_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... " >&6; }
20709 if test "${rd_cv_ieee_sigfpe+set}" = set; then
20710 $as_echo_n "(cached) " >&6
20711 else
20712 if test "$cross_compiling" = yes; then
20713 :
20714 else
20715 cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h. */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20721 #include <signal.h>
20722 #include "src/rrd_config_bottom.h"
20723 #include <stdio.h>
20724 int main(void){
20725 double rrdnan,rrdinf,rrdc,rrdzero;
20726 signal(SIGFPE,SIG_IGN);
20727 /* some math to see if we get a floating point exception */
20728 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
20729 rrdnan=0.0/rrdzero; /* especially here */
20730 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
20731 /* at run time without sig fpe */
20732 rrdc = rrdinf + rrdnan;
20733 rrdc = rrdinf / rrdnan;
20734 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
20735 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
20736 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
20737 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
20738 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
20739 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
20740 return 0;
20741 }
20742 _ACEOF
20743 rm -f conftest$ac_exeext
20744 if { (ac_try="$ac_link"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20750 $as_echo "$ac_try_echo") >&5
20751 (eval "$ac_link") 2>&5
20752 ac_status=$?
20753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20760 $as_echo "$ac_try_echo") >&5
20761 (eval "$ac_try") 2>&5
20762 ac_status=$?
20763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 rd_cv_ieee_sigfpe=yes
20766 else
20767 $as_echo "$as_me: program exited with status $ac_status" >&5
20768 $as_echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 ( exit $ac_status )
20772 rd_cv_ieee_sigfpe=no
20773 fi
20774 rm -rf conftest.dSYM
20775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20776 fi
20779 fi
20781 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
20782 { $as_echo "$as_me:$LINENO: result: yes" >&5
20783 $as_echo "yes" >&6; }
20784 cat >>confdefs.h <<\_ACEOF
20785 #define MUST_DISABLE_SIGFPE 1
20786 _ACEOF
20788 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
20789 else
20790 { $as_echo "$as_me:$LINENO: result: no" >&5
20791 $as_echo "no" >&6; }
20792 { { $as_echo "$as_me:$LINENO: error:
20793 Your Compiler does not do propper IEEE math ... Please find out how to
20794 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
20795 Check config.log to see what went wrong ...
20796 " >&5
20797 $as_echo "$as_me: error:
20798 Your Compiler does not do propper IEEE math ... Please find out how to
20799 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
20800 Check config.log to see what went wrong ...
20801 " >&2;}
20802 { (exit 1); exit 1; }; }
20803 fi
20806 fi
20809 fi
20812 fi
20815 fi
20818 fi
20821 fi
20824 fi
20827 fi
20830 fi
20834 ac_ext=c
20835 ac_cpp='$CPP $CPPFLAGS'
20836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20844 case $TERM in
20845 # for the most important terminal types we directly know the sequences
20846 xterm|xterm*|vt220|vt220*)
20847 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20848 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20849 ;;
20850 vt100|vt100*|cygwin)
20851 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20852 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20853 ;;
20854 *)
20855 T_MD=''
20856 T_ME=''
20857 ;;
20858 esac
20859 { $as_echo "$as_me:$LINENO: result: " >&5
20860 $as_echo "" >&6; }
20861 { $as_echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
20862 $as_echo "${T_MD}Resolve Portability Issues${T_ME}" >&6; }
20867 { $as_echo "$as_me:$LINENO: checking tm_gmtoff in struct tm" >&5
20868 $as_echo_n "checking tm_gmtoff in struct tm... " >&6; }
20869 if test "${gq_cv_have_tm_gmtoff+set}" = set; then
20870 $as_echo_n "(cached) " >&6
20871 else
20872 gq_cv_have_tm_gmtoff=no
20873 cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h. */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20879 #include <time.h>
20880 #include <$ac_cv_struct_tm>
20882 int
20883 main ()
20884 {
20885 struct tm t;
20886 t.tm_gmtoff = 0;
20887 exit(0);
20889 ;
20890 return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext
20894 if { (ac_try="$ac_compile"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901 (eval "$ac_compile") 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest.$ac_objext; then
20911 gq_cv_have_tm_gmtoff=yes
20913 else
20914 $as_echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20918 fi
20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20922 fi
20923 { $as_echo "$as_me:$LINENO: result: $gq_cv_have_tm_gmtoff" >&5
20924 $as_echo "$gq_cv_have_tm_gmtoff" >&6; }
20926 { $as_echo "$as_me:$LINENO: checking __tm_gmtoff in struct tm" >&5
20927 $as_echo_n "checking __tm_gmtoff in struct tm... " >&6; }
20928 if test "${gq_cv_have___tm_gmtoff+set}" = set; then
20929 $as_echo_n "(cached) " >&6
20930 else
20931 gq_cv_have___tm_gmtoff=no
20932 cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h. */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 #include <time.h>
20939 #include <$ac_cv_struct_tm>
20941 int
20942 main ()
20943 {
20944 struct tm t;
20945 t.__tm_gmtoff = 0;
20946 exit(0);
20948 ;
20949 return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20957 esac
20958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20959 $as_echo "$ac_try_echo") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20970 gq_cv_have___tm_gmtoff=yes
20972 else
20973 $as_echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20977 fi
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20981 fi
20982 { $as_echo "$as_me:$LINENO: result: $gq_cv_have___tm_gmtoff" >&5
20983 $as_echo "$gq_cv_have___tm_gmtoff" >&6; }
20985 if test "$gq_cv_have_tm_gmtoff" = yes ; then
20987 cat >>confdefs.h <<\_ACEOF
20988 #define HAVE_TM_GMTOFF 1
20989 _ACEOF
20992 cat >>confdefs.h <<\_ACEOF
20993 #define TM_GMTOFF tm_gmtoff
20994 _ACEOF
20996 elif test "$gq_cv_have___tm_gmtoff" = yes ; then
20997 cat >>confdefs.h <<\_ACEOF
20998 #define HAVE_TM_GMTOFF 1
20999 _ACEOF
21001 cat >>confdefs.h <<\_ACEOF
21002 #define TM_GMTOFF __tm_gmtoff
21003 _ACEOF
21005 else
21006 { $as_echo "$as_me:$LINENO: checking for timezone" >&5
21007 $as_echo_n "checking for timezone... " >&6; }
21008 if test "${ac_cv_var_timezone+set}" = set; then
21009 $as_echo_n "(cached) " >&6
21010 else
21011 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h. */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21018 #include <time.h>
21019 extern long int timezone;
21021 int
21022 main ()
21023 {
21024 long int l = timezone;
21025 ;
21026 return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext conftest$ac_exeext
21030 if { (ac_try="$ac_link"
21031 case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034 esac
21035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21036 $as_echo "$ac_try_echo") >&5
21037 (eval "$ac_link") 2>conftest.er1
21038 ac_status=$?
21039 grep -v '^ *+' conftest.er1 >conftest.err
21040 rm -f conftest.er1
21041 cat conftest.err >&5
21042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } && {
21044 test -z "$ac_c_werror_flag" ||
21045 test ! -s conftest.err
21046 } && test -s conftest$ac_exeext && {
21047 test "$cross_compiling" = yes ||
21048 $as_test_x conftest$ac_exeext
21049 }; then
21050 ac_cv_var_timezone=yes
21051 else
21052 $as_echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21055 ac_cv_var_timezone=no
21056 fi
21058 rm -rf conftest.dSYM
21059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21060 conftest$ac_exeext conftest.$ac_ext
21061 fi
21062 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_timezone" >&5
21063 $as_echo "$ac_cv_var_timezone" >&6; }
21064 if test $ac_cv_var_timezone = yes; then
21066 cat >>confdefs.h <<\_ACEOF
21067 #define HAVE_TIMEZONE 1
21068 _ACEOF
21070 fi
21071 fi
21075 { $as_echo "$as_me:$LINENO: checking if msync with MS_ASYNC updates the files mtime" >&5
21076 $as_echo_n "checking if msync with MS_ASYNC updates the files mtime... " >&6; }
21077 if test "${rd_cv_ms_async+set}" = set; then
21078 $as_echo_n "(cached) " >&6
21079 else
21080 if test "$cross_compiling" = yes; then
21081 :
21082 else
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21090 #include <fcntl.h>
21091 #include <sys/types.h>
21092 #include <sys/stat.h>
21093 #include <unistd.h>
21094 #include <stdio.h>
21095 #include <sys/mman.h>
21096 #include <stdlib.h>
21097 #include <utime.h>
21098 #include <signal.h>
21099 void timeout (int i) { exit (1); }
21100 int main(void){
21101 int fd;
21102 struct stat stbuf;
21103 char *addr;
21104 int res;
21105 char temp[] = "mmaptestXXXXXX";
21106 struct utimbuf newtime;
21107 time_t create_ts;
21108 fd = mkstemp(temp);
21109 if (fd == -1){
21110 perror(temp);
21111 return 1;
21112 }
21113 write(fd,"12345\n", 6);
21114 stat(temp, &stbuf);
21115 create_ts = stbuf.st_mtime;
21116 newtime.actime = 0;
21117 newtime.modtime = 0;
21118 utime(temp,&newtime);
21119 addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
21120 if (addr == MAP_FAILED) {
21121 perror("mmap");
21122 goto bad_exit;
21123 }
21124 addr[0]='x';
21125 res = msync(addr, 4, MS_ASYNC);
21126 if (res == -1) {
21127 perror("msync");
21128 goto bad_exit;
21129 }
21130 res = close(fd);
21131 if (res == -1) {
21132 perror("close");
21133 goto bad_exit;
21134 }
21135 /* there were reports of sync hanging
21136 so we better set an alarm */
21137 signal(SIGALRM,&timeout);
21138 alarm(5);
21139 /* The ASYNC means that we schedule the msync and return immediately.
21140 Since we want to see if the modification time is updated upon
21141 msync(), we have to make sure that our asynchronous request
21142 completes before we stat below. In a real application, the
21143 request would be completed at a random time in the future
21144 but for this test we do not want to wait an arbitrary amount of
21145 time, so force a commit now. */
21146 sync();
21147 stat(temp, &stbuf);
21148 if (create_ts > stbuf.st_mtime){
21149 goto bad_exit;
21150 }
21151 unlink(temp);
21152 return 0;
21153 bad_exit:
21154 unlink(temp);
21155 return 1;
21156 }
21158 _ACEOF
21159 rm -f conftest$ac_exeext
21160 if { (ac_try="$ac_link"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164 esac
21165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21166 $as_echo "$ac_try_echo") >&5
21167 (eval "$ac_link") 2>&5
21168 ac_status=$?
21169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21171 { (case "(($ac_try" in
21172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173 *) ac_try_echo=$ac_try;;
21174 esac
21175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21176 $as_echo "$ac_try_echo") >&5
21177 (eval "$ac_try") 2>&5
21178 ac_status=$?
21179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 rd_cv_ms_async=ok
21182 else
21183 $as_echo "$as_me: program exited with status $ac_status" >&5
21184 $as_echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 ( exit $ac_status )
21188 rd_cv_ms_async=broken
21189 fi
21190 rm -rf conftest.dSYM
21191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21192 fi
21195 fi
21199 if test "${rd_cv_ms_async}" = "ok"; then
21200 { $as_echo "$as_me:$LINENO: result: yes" >&5
21201 $as_echo "yes" >&6; }
21202 else
21204 cat >>confdefs.h <<_ACEOF
21205 #define HAVE_BROKEN_MS_ASYNC 1
21206 _ACEOF
21208 { $as_echo "$as_me:$LINENO: result: no" >&5
21209 $as_echo "no" >&6; }
21210 { $as_echo "$as_me:$LINENO: WARNING: With mmap access, your platform fails to update the files" >&5
21211 $as_echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
21212 { $as_echo "$as_me:$LINENO: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
21213 $as_echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
21214 { $as_echo "$as_me:$LINENO: WARNING: file it opens for rw access." >&5
21215 $as_echo "$as_me: WARNING: file it opens for rw access." >&2;}
21216 sleep 2
21217 fi
21222 for ac_func in _NL_TIME_WEEK_1STDAY
21223 do
21224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21225 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21226 $as_echo_n "checking for $ac_func... " >&6; }
21227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21228 $as_echo_n "(cached) " >&6
21229 else
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21238 #define $ac_func innocuous_$ac_func
21240 /* System header to define __stub macros and hopefully few prototypes,
21241 which can conflict with char $ac_func (); below.
21242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21243 <limits.h> exists even on freestanding compilers. */
21245 #ifdef __STDC__
21246 # include <limits.h>
21247 #else
21248 # include <assert.h>
21249 #endif
21251 #undef $ac_func
21253 /* Override any GCC internal prototype to avoid an error.
21254 Use char because int might match the return type of a GCC
21255 builtin and then its argument prototype would still apply. */
21256 #ifdef __cplusplus
21257 extern "C"
21258 #endif
21259 char $ac_func ();
21260 /* The GNU C library defines this for functions which it implements
21261 to always fail with ENOSYS. Some functions are actually named
21262 something starting with __ and the normal name is an alias. */
21263 #if defined __stub_$ac_func || defined __stub___$ac_func
21264 choke me
21265 #endif
21267 int
21268 main ()
21269 {
21270 return $ac_func ();
21271 ;
21272 return 0;
21273 }
21274 _ACEOF
21275 rm -f conftest.$ac_objext conftest$ac_exeext
21276 if { (ac_try="$ac_link"
21277 case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21280 esac
21281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21282 $as_echo "$ac_try_echo") >&5
21283 (eval "$ac_link") 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
21288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest$ac_exeext && {
21293 test "$cross_compiling" = yes ||
21294 $as_test_x conftest$ac_exeext
21295 }; then
21296 eval "$as_ac_var=yes"
21297 else
21298 $as_echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 eval "$as_ac_var=no"
21302 fi
21304 rm -rf conftest.dSYM
21305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21306 conftest$ac_exeext conftest.$ac_ext
21307 fi
21308 ac_res=`eval 'as_val=${'$as_ac_var'}
21309 $as_echo "$as_val"'`
21310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21311 $as_echo "$ac_res" >&6; }
21312 as_val=`eval 'as_val=${'$as_ac_var'}
21313 $as_echo "$as_val"'`
21314 if test "x$as_val" = x""yes; then
21315 cat >>confdefs.h <<_ACEOF
21316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21317 _ACEOF
21319 else
21320 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h" >&5
21321 $as_echo_n "checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h... " >&6; }
21322 cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h. */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 #include <langinfo.h>
21329 int
21330 main ()
21331 {
21332 nl_langinfo(_NL_TIME_WEEK_1STDAY)
21333 ;
21334 return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (ac_try="$ac_link"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21342 esac
21343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21344 $as_echo "$ac_try_echo") >&5
21345 (eval "$ac_link") 2>conftest.er1
21346 ac_status=$?
21347 grep -v '^ *+' conftest.er1 >conftest.err
21348 rm -f conftest.er1
21349 cat conftest.err >&5
21350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } && {
21352 test -z "$ac_c_werror_flag" ||
21353 test ! -s conftest.err
21354 } && test -s conftest$ac_exeext && {
21355 test "$cross_compiling" = yes ||
21356 $as_test_x conftest$ac_exeext
21357 }; then
21358 { $as_echo "$as_me:$LINENO: result: yes" >&5
21359 $as_echo "yes" >&6; }
21360 cat >>confdefs.h <<\_ACEOF
21361 #define HAVE__NL_TIME_WEEK_1STDAY 1
21362 _ACEOF
21364 else
21365 $as_echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21368 { $as_echo "$as_me:$LINENO: result: no" >&5
21369 $as_echo "no" >&6; }
21370 fi
21372 rm -rf conftest.dSYM
21373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21374 conftest$ac_exeext conftest.$ac_ext
21375 fi
21376 done
21381 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21382 $as_echo_n "checking for opterr... " >&6; }
21383 if test "${rd_cv_var_int_opterr+set}" = set; then
21384 $as_echo_n "(cached) " >&6
21385 else
21386 cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h. */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21392 #include <unistd.h>
21393 int
21394 main ()
21395 {
21396 extern int opterr; opterr = 1;
21397 ;
21398 return 0;
21399 }
21400 _ACEOF
21401 rm -f conftest.$ac_objext conftest$ac_exeext
21402 if { (ac_try="$ac_link"
21403 case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406 esac
21407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21408 $as_echo "$ac_try_echo") >&5
21409 (eval "$ac_link") 2>conftest.er1
21410 ac_status=$?
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
21414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest$ac_exeext && {
21419 test "$cross_compiling" = yes ||
21420 $as_test_x conftest$ac_exeext
21421 }; then
21422 rd_cv_var_int_opterr=yes
21423 else
21424 $as_echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 rd_cv_var_int_opterr=no
21428 fi
21430 rm -rf conftest.dSYM
21431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21432 conftest$ac_exeext conftest.$ac_ext
21433 fi
21434 { $as_echo "$as_me:$LINENO: result: $rd_cv_var_int_opterr" >&5
21435 $as_echo "$rd_cv_var_int_opterr" >&6; }
21436 if test x"$rd_cv_var_int_opterr" = x"yes"; then
21438 cat >>confdefs.h <<\_ACEOF
21439 #define HAVE_INT_OPTERR 1
21440 _ACEOF
21442 fi
21444 build_getopt=no
21445 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
21446 { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
21447 $as_echo_n "checking for getopt_long... " >&6; }
21448 if test "${ac_cv_func_getopt_long+set}" = set; then
21449 $as_echo_n "(cached) " >&6
21450 else
21451 cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h. */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21457 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
21458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21459 #define getopt_long innocuous_getopt_long
21461 /* System header to define __stub macros and hopefully few prototypes,
21462 which can conflict with char getopt_long (); below.
21463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21464 <limits.h> exists even on freestanding compilers. */
21466 #ifdef __STDC__
21467 # include <limits.h>
21468 #else
21469 # include <assert.h>
21470 #endif
21472 #undef getopt_long
21474 /* Override any GCC internal prototype to avoid an error.
21475 Use char because int might match the return type of a GCC
21476 builtin and then its argument prototype would still apply. */
21477 #ifdef __cplusplus
21478 extern "C"
21479 #endif
21480 char getopt_long ();
21481 /* The GNU C library defines this for functions which it implements
21482 to always fail with ENOSYS. Some functions are actually named
21483 something starting with __ and the normal name is an alias. */
21484 #if defined __stub_getopt_long || defined __stub___getopt_long
21485 choke me
21486 #endif
21488 int
21489 main ()
21490 {
21491 return getopt_long ();
21492 ;
21493 return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest.$ac_objext conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21501 esac
21502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21503 $as_echo "$ac_try_echo") >&5
21504 (eval "$ac_link") 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest$ac_exeext && {
21514 test "$cross_compiling" = yes ||
21515 $as_test_x conftest$ac_exeext
21516 }; then
21517 ac_cv_func_getopt_long=yes
21518 else
21519 $as_echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 ac_cv_func_getopt_long=no
21523 fi
21525 rm -rf conftest.dSYM
21526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21527 conftest$ac_exeext conftest.$ac_ext
21528 fi
21529 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
21530 $as_echo "$ac_cv_func_getopt_long" >&6; }
21531 if test "x$ac_cv_func_getopt_long" = x""yes; then
21532 :
21533 else
21535 RRD_GETOPT_LONG="getopt_long"
21536 build_getopt=yes
21538 fi
21541 if test $build_getopt = yes; then
21542 BUILD_GETOPT_TRUE=
21543 BUILD_GETOPT_FALSE='#'
21544 else
21545 BUILD_GETOPT_TRUE='#'
21546 BUILD_GETOPT_FALSE=
21547 fi
21551 { $as_echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
21552 $as_echo_n "checking if realloc can deal with NULL... " >&6; }
21553 if test "${rd_cv_null_realloc+set}" = set; then
21554 $as_echo_n "(cached) " >&6
21555 else
21556 if test "$cross_compiling" = yes; then
21557 :
21558 else
21559 cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h. */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21565 #include <stdlib.h>
21566 int main(void){
21567 char *x = NULL;
21568 x = realloc (x,10);
21569 if (x==NULL) return 1;
21570 return 0;
21571 }
21572 _ACEOF
21573 rm -f conftest$ac_exeext
21574 if { (ac_try="$ac_link"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21578 esac
21579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21580 $as_echo "$ac_try_echo") >&5
21581 (eval "$ac_link") 2>&5
21582 ac_status=$?
21583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21585 { (case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588 esac
21589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21590 $as_echo "$ac_try_echo") >&5
21591 (eval "$ac_try") 2>&5
21592 ac_status=$?
21593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 rd_cv_null_realloc=yes
21596 else
21597 $as_echo "$as_me: program exited with status $ac_status" >&5
21598 $as_echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ( exit $ac_status )
21602 rd_cv_null_realloc=nope
21603 fi
21604 rm -rf conftest.dSYM
21605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21606 fi
21609 fi
21610 { $as_echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
21611 $as_echo "$rd_cv_null_realloc" >&6; }
21613 if test x"$rd_cv_null_realloc" = xnope; then
21614 cat >>confdefs.h <<\_ACEOF
21615 #define NO_NULL_REALLOC 1
21616 _ACEOF
21618 fi
21620 ac_ext=c
21621 ac_cpp='$CPP $CPPFLAGS'
21622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21626 { $as_echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
21627 $as_echo_n "checking if ctime_r need special care to act posixly correct... " >&6; }
21628 cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h. */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 #include <time.h>
21635 int
21636 main ()
21637 {
21638 ctime_r(NULL,NULL,0)
21640 ;
21641 return 0;
21642 }
21643 _ACEOF
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21651 $as_echo "$ac_try_echo") >&5
21652 (eval "$ac_link") 2>conftest.er1
21653 ac_status=$?
21654 grep -v '^ *+' conftest.er1 >conftest.err
21655 rm -f conftest.er1
21656 cat conftest.err >&5
21657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } && {
21659 test -z "$ac_c_werror_flag" ||
21660 test ! -s conftest.err
21661 } && test -s conftest$ac_exeext && {
21662 test "$cross_compiling" = yes ||
21663 $as_test_x conftest$ac_exeext
21664 }; then
21665 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
21666 cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h. */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21672 #include <time.h>
21673 int
21674 main ()
21675 {
21676 ctime_r(NULL,NULL)
21678 ;
21679 return 0;
21680 }
21681 _ACEOF
21682 rm -f conftest.$ac_objext conftest$ac_exeext
21683 if { (ac_try="$ac_link"
21684 case "(($ac_try" in
21685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686 *) ac_try_echo=$ac_try;;
21687 esac
21688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21689 $as_echo "$ac_try_echo") >&5
21690 (eval "$ac_link") 2>conftest.er1
21691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest$ac_exeext && {
21700 test "$cross_compiling" = yes ||
21701 $as_test_x conftest$ac_exeext
21702 }; then
21703 { $as_echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
21704 $as_echo "yes, this seems to be solaris style" >&6; }
21705 else
21706 $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
21710 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
21711 { (exit 1); exit 1; }; }
21713 fi
21715 rm -rf conftest.dSYM
21716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717 conftest$ac_exeext conftest.$ac_ext
21719 else
21720 $as_echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h. */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 #include <time.h>
21730 int
21731 main ()
21732 {
21733 ctime_r(NULL,NULL)
21735 ;
21736 return 0;
21737 }
21738 _ACEOF
21739 rm -f conftest.$ac_objext conftest$ac_exeext
21740 if { (ac_try="$ac_link"
21741 case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21744 esac
21745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21746 $as_echo "$ac_try_echo") >&5
21747 (eval "$ac_link") 2>conftest.er1
21748 ac_status=$?
21749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
21752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } && {
21754 test -z "$ac_c_werror_flag" ||
21755 test ! -s conftest.err
21756 } && test -s conftest$ac_exeext && {
21757 test "$cross_compiling" = yes ||
21758 $as_test_x conftest$ac_exeext
21759 }; then
21760 { $as_echo "$as_me:$LINENO: result: no" >&5
21761 $as_echo "no" >&6; }
21762 else
21763 $as_echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
21767 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
21768 { (exit 1); exit 1; }; }
21770 fi
21772 rm -rf conftest.dSYM
21773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21774 conftest$ac_exeext conftest.$ac_ext
21777 fi
21779 rm -rf conftest.dSYM
21780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21781 conftest$ac_exeext conftest.$ac_ext
21782 ac_ext=c
21783 ac_cpp='$CPP $CPPFLAGS'
21784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21793 if test $enable_pthread != no; then
21796 ac_ext=c
21797 ac_cpp='$CPP $CPPFLAGS'
21798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21802 acx_pthread_ok=no
21804 # We used to check for pthread.h first, but this fails if pthread.h
21805 # requires special compiler flags (e.g. on True64 or Sequent).
21806 # It gets checked for in the link test anyway.
21808 # First of all, check if the user has set any of the PTHREAD_LIBS,
21809 # etcetera environment variables, and if threads linking works using
21810 # them:
21811 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21812 save_CFLAGS="$CFLAGS"
21813 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21814 save_LIBS="$LIBS"
21815 LIBS="$PTHREAD_LIBS $LIBS"
21816 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21817 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h. */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21825 /* Override any GCC internal prototype to avoid an error.
21826 Use char because int might match the return type of a GCC
21827 builtin and then its argument prototype would still apply. */
21828 #ifdef __cplusplus
21829 extern "C"
21830 #endif
21831 char pthread_join ();
21832 int
21833 main ()
21834 {
21835 return pthread_join ();
21836 ;
21837 return 0;
21838 }
21839 _ACEOF
21840 rm -f conftest.$ac_objext conftest$ac_exeext
21841 if { (ac_try="$ac_link"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845 esac
21846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21847 $as_echo "$ac_try_echo") >&5
21848 (eval "$ac_link") 2>conftest.er1
21849 ac_status=$?
21850 grep -v '^ *+' conftest.er1 >conftest.err
21851 rm -f conftest.er1
21852 cat conftest.err >&5
21853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } && {
21855 test -z "$ac_c_werror_flag" ||
21856 test ! -s conftest.err
21857 } && test -s conftest$ac_exeext && {
21858 test "$cross_compiling" = yes ||
21859 $as_test_x conftest$ac_exeext
21860 }; then
21861 acx_pthread_ok=yes
21862 else
21863 $as_echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21867 fi
21869 rm -rf conftest.dSYM
21870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21871 conftest$ac_exeext conftest.$ac_ext
21872 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21873 $as_echo "$acx_pthread_ok" >&6; }
21874 if test x"$acx_pthread_ok" = xno; then
21875 PTHREAD_LIBS=""
21876 PTHREAD_CFLAGS=""
21877 fi
21878 LIBS="$save_LIBS"
21879 CFLAGS="$save_CFLAGS"
21880 fi
21882 # We must check for the threads library under a number of different
21883 # names; the ordering is very important because some systems
21884 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21885 # libraries is broken (non-POSIX).
21887 # Create a list of thread flags to try. Items starting with a "-" are
21888 # C compiler flags, and other items are library names, except for "none"
21889 # which indicates that we try without any flags at all, and "pthread-config"
21890 # which is a program returning the flags for the Pth emulation library.
21892 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21894 # The ordering *is* (sometimes) important. Some notes on the
21895 # individual items follow:
21897 # pthreads: AIX (must check this before -lpthread)
21898 # none: in case threads are in libc; should be tried before -Kthread and
21899 # other compiler flags to prevent continual compiler warnings
21900 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21901 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21902 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21903 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21904 # -pthreads: Solaris/gcc
21905 # -mthreads: Mingw32/gcc, Lynx/gcc
21906 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21907 # doesn't hurt to check since this sometimes defines pthreads too;
21908 # also defines -D_REENTRANT)
21909 # pthread: Linux, etcetera
21910 # --thread-safe: KAI C++
21911 # pthread-config: use pthread-config program (for GNU Pth library)
21913 case "${host_cpu}-${host_os}" in
21914 *solaris*)
21916 # On Solaris (at least, for some versions), libc contains stubbed
21917 # (non-functional) versions of the pthreads routines, so link-based
21918 # tests will erroneously succeed. (We need to link with -pthread or
21919 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21920 # a function called by this macro, so we could check for that, but
21921 # who knows whether they'll stub that too in a future libc.) So,
21922 # we'll just look for -pthreads and -lpthread first:
21924 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
21925 ;;
21926 esac
21928 if test x"$acx_pthread_ok" = xno; then
21929 for flag in $acx_pthread_flags; do
21931 case $flag in
21932 none)
21933 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21934 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
21935 ;;
21937 -*)
21938 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21939 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
21940 PTHREAD_CFLAGS="$flag"
21941 ;;
21943 pthread-config)
21944 # Extract the first word of "pthread-config", so it can be a program name with args.
21945 set dummy pthread-config; ac_word=$2
21946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21947 $as_echo_n "checking for $ac_word... " >&6; }
21948 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21949 $as_echo_n "(cached) " >&6
21950 else
21951 if test -n "$acx_pthread_config"; then
21952 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21953 else
21954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21955 for as_dir in $PATH
21956 do
21957 IFS=$as_save_IFS
21958 test -z "$as_dir" && as_dir=.
21959 for ac_exec_ext in '' $ac_executable_extensions; do
21960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21961 ac_cv_prog_acx_pthread_config="yes"
21962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21963 break 2
21964 fi
21965 done
21966 done
21967 IFS=$as_save_IFS
21969 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21970 fi
21971 fi
21972 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21973 if test -n "$acx_pthread_config"; then
21974 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21975 $as_echo "$acx_pthread_config" >&6; }
21976 else
21977 { $as_echo "$as_me:$LINENO: result: no" >&5
21978 $as_echo "no" >&6; }
21979 fi
21982 if test x"$acx_pthread_config" = xno; then continue; fi
21983 PTHREAD_CFLAGS="`pthread-config --cflags`"
21984 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21985 ;;
21987 *)
21988 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21989 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21990 PTHREAD_LIBS="-l$flag"
21991 ;;
21992 esac
21994 save_LIBS="$LIBS"
21995 save_CFLAGS="$CFLAGS"
21996 LIBS="$PTHREAD_LIBS $LIBS"
21997 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21999 # Check for various functions. We must include pthread.h,
22000 # since some functions may be macros. (On the Sequent, we
22001 # need a special flag -Kthread to make this header compile.)
22002 # We check for pthread_join because it is in -lpthread on IRIX
22003 # while pthread_create is in libc. We check for pthread_attr_init
22004 # due to DEC craziness with -lpthreads. We check for
22005 # pthread_cleanup_push because it is one of the few pthread
22006 # functions on Solaris that doesn't have a non-functional libc stub.
22007 # We try pthread_create on general principles.
22008 cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h. */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22014 #include <pthread.h>
22015 int
22016 main ()
22017 {
22018 pthread_t th; pthread_join(th, 0);
22019 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22020 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22021 ;
22022 return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (ac_try="$ac_link"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030 esac
22031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033 (eval "$ac_link") 2>conftest.er1
22034 ac_status=$?
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
22038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest$ac_exeext && {
22043 test "$cross_compiling" = yes ||
22044 $as_test_x conftest$ac_exeext
22045 }; then
22046 acx_pthread_ok=yes
22047 else
22048 $as_echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22052 fi
22054 rm -rf conftest.dSYM
22055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22056 conftest$ac_exeext conftest.$ac_ext
22058 LIBS="$save_LIBS"
22059 CFLAGS="$save_CFLAGS"
22061 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22062 $as_echo "$acx_pthread_ok" >&6; }
22063 if test "x$acx_pthread_ok" = xyes; then
22064 break;
22065 fi
22067 PTHREAD_LIBS=""
22068 PTHREAD_CFLAGS=""
22069 done
22070 fi
22072 # Various other checks:
22073 if test "x$acx_pthread_ok" = xyes; then
22074 save_LIBS="$LIBS"
22075 LIBS="$PTHREAD_LIBS $LIBS"
22076 save_CFLAGS="$CFLAGS"
22077 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22079 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22080 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22081 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22082 attr_name=unknown
22083 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22084 cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h. */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 #include <pthread.h>
22091 int
22092 main ()
22093 {
22094 int attr=$attr;
22095 ;
22096 return 0;
22097 }
22098 _ACEOF
22099 rm -f conftest.$ac_objext conftest$ac_exeext
22100 if { (ac_try="$ac_link"
22101 case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22104 esac
22105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22106 $as_echo "$ac_try_echo") >&5
22107 (eval "$ac_link") 2>conftest.er1
22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } && {
22114 test -z "$ac_c_werror_flag" ||
22115 test ! -s conftest.err
22116 } && test -s conftest$ac_exeext && {
22117 test "$cross_compiling" = yes ||
22118 $as_test_x conftest$ac_exeext
22119 }; then
22120 attr_name=$attr; break
22121 else
22122 $as_echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22126 fi
22128 rm -rf conftest.dSYM
22129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22130 conftest$ac_exeext conftest.$ac_ext
22131 done
22132 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
22133 $as_echo "$attr_name" >&6; }
22134 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22136 cat >>confdefs.h <<_ACEOF
22137 #define PTHREAD_CREATE_JOINABLE $attr_name
22138 _ACEOF
22140 fi
22142 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22143 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22144 x_rflag=no
22145 case "${host_cpu}-${host_os}" in
22146 *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
22147 *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
22148 *-linux* | *-k*bsd*-gnu*)
22149 if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
22150 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
22151 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
22152 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
22153 fi;;
22154 esac
22155 { $as_echo "$as_me:$LINENO: result: ${x_rflag}" >&5
22156 $as_echo "${x_rflag}" >&6; }
22157 if test "x$x_rflag" != xno; then
22158 PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
22159 fi
22161 LIBS="$save_LIBS"
22162 CFLAGS="$save_CFLAGS"
22164 # More AIX lossage: must compile with cc_r
22165 # Extract the first word of "cc_r", so it can be a program name with args.
22166 set dummy cc_r; ac_word=$2
22167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22168 $as_echo_n "checking for $ac_word... " >&6; }
22169 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22170 $as_echo_n "(cached) " >&6
22171 else
22172 if test -n "$PTHREAD_CC"; then
22173 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22174 else
22175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22176 for as_dir in $PATH
22177 do
22178 IFS=$as_save_IFS
22179 test -z "$as_dir" && as_dir=.
22180 for ac_exec_ext in '' $ac_executable_extensions; do
22181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22182 ac_cv_prog_PTHREAD_CC="cc_r"
22183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22184 break 2
22185 fi
22186 done
22187 done
22188 IFS=$as_save_IFS
22190 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22191 fi
22192 fi
22193 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22194 if test -n "$PTHREAD_CC"; then
22195 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22196 $as_echo "$PTHREAD_CC" >&6; }
22197 else
22198 { $as_echo "$as_me:$LINENO: result: no" >&5
22199 $as_echo "no" >&6; }
22200 fi
22203 else
22204 PTHREAD_CC="$CC"
22205 fi
22211 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22212 if test x"$acx_pthread_ok" = xyes; then
22214 MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
22215 MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
22217 :
22218 else
22219 acx_pthread_ok=no
22221 fi
22222 ac_ext=c
22223 ac_cpp='$CPP $CPPFLAGS'
22224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22229 fi
22232 if test "x$x_rflag" != "xno"; then
22233 CPPFLAGS="$CPPFLAGS $x_rflag"
22234 fi
22236 if test $enable_pthread != no; then
22237 BUILD_MULTITHREAD_TRUE=
22238 BUILD_MULTITHREAD_FALSE='#'
22239 else
22240 BUILD_MULTITHREAD_TRUE='#'
22241 BUILD_MULTITHREAD_FALSE=
22242 fi
22245 ac_ext=c
22246 ac_cpp='$CPP $CPPFLAGS'
22247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22251 { $as_echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
22252 $as_echo_n "checking do we need malloc/malloc.h... " >&6; }
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 #include <stdlib.h>
22260 int
22261 main ()
22262 {
22263 malloc(1)
22265 ;
22266 return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest.$ac_objext conftest$ac_exeext
22270 if { (ac_try="$ac_link"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22274 esac
22275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22276 $as_echo "$ac_try_echo") >&5
22277 (eval "$ac_link") 2>conftest.er1
22278 ac_status=$?
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
22282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest$ac_exeext && {
22287 test "$cross_compiling" = yes ||
22288 $as_test_x conftest$ac_exeext
22289 }; then
22290 { $as_echo "$as_me:$LINENO: result: nope, works out of the box" >&5
22291 $as_echo "nope, works out of the box" >&6; }
22292 else
22293 $as_echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h. */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22302 #include <stdlib.h>
22303 #include <malloc/malloc.h>
22304 int
22305 main ()
22306 {
22307 malloc(1)
22309 ;
22310 return 0;
22311 }
22312 _ACEOF
22313 rm -f conftest.$ac_objext conftest$ac_exeext
22314 if { (ac_try="$ac_link"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318 esac
22319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22320 $as_echo "$ac_try_echo") >&5
22321 (eval "$ac_link") 2>conftest.er1
22322 ac_status=$?
22323 grep -v '^ *+' conftest.er1 >conftest.err
22324 rm -f conftest.er1
22325 cat conftest.err >&5
22326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } && {
22328 test -z "$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 } && test -s conftest$ac_exeext && {
22331 test "$cross_compiling" = yes ||
22332 $as_test_x conftest$ac_exeext
22333 }; then
22335 cat >>confdefs.h <<\_ACEOF
22336 #define MUST_HAVE_MALLOC_MALLOC_H 1
22337 _ACEOF
22339 { $as_echo "$as_me:$LINENO: result: yes we do" >&5
22340 $as_echo "yes we do" >&6; }
22341 else
22342 $as_echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 { { $as_echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
22346 $as_echo "$as_me: error: Can not figure how to compile malloc" >&2;}
22347 { (exit 1); exit 1; }; }
22349 fi
22351 rm -rf conftest.dSYM
22352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22353 conftest$ac_exeext conftest.$ac_ext
22356 fi
22358 rm -rf conftest.dSYM
22359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22360 conftest$ac_exeext conftest.$ac_ext
22363 cat >>confdefs.h <<\_ACEOF
22364 #define TIME_T_IS_32BIT /**/
22365 _ACEOF
22368 cat >>confdefs.h <<\_ACEOF
22369 #define TIME_T_IS_64BIT /**/
22370 _ACEOF
22372 { $as_echo "$as_me:$LINENO: checking the type of time_t" >&5
22373 $as_echo_n "checking the type of time_t... " >&6; }
22374 # The cast to long int works around a bug in the HP C Compiler
22375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22377 # This bug is HP SR number 8606223364.
22378 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
22379 $as_echo_n "checking size of time_t... " >&6; }
22380 if test "${ac_cv_sizeof_time_t+set}" = set; then
22381 $as_echo_n "(cached) " >&6
22382 else
22383 if test "$cross_compiling" = yes; then
22384 # Depending upon the size, compute the lo and hi bounds.
22385 cat >conftest.$ac_ext <<_ACEOF
22386 /* confdefs.h. */
22387 _ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22391 $ac_includes_default
22392 int
22393 main ()
22394 {
22395 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
22396 test_array [0] = 0
22398 ;
22399 return 0;
22400 }
22401 _ACEOF
22402 rm -f conftest.$ac_objext
22403 if { (ac_try="$ac_compile"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22407 esac
22408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22409 $as_echo "$ac_try_echo") >&5
22410 (eval "$ac_compile") 2>conftest.er1
22411 ac_status=$?
22412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
22415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest.$ac_objext; then
22420 ac_lo=0 ac_mid=0
22421 while :; do
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h. */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22428 $ac_includes_default
22429 int
22430 main ()
22431 {
22432 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
22433 test_array [0] = 0
22435 ;
22436 return 0;
22437 }
22438 _ACEOF
22439 rm -f conftest.$ac_objext
22440 if { (ac_try="$ac_compile"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444 esac
22445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22446 $as_echo "$ac_try_echo") >&5
22447 (eval "$ac_compile") 2>conftest.er1
22448 ac_status=$?
22449 grep -v '^ *+' conftest.er1 >conftest.err
22450 rm -f conftest.er1
22451 cat conftest.err >&5
22452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } && {
22454 test -z "$ac_c_werror_flag" ||
22455 test ! -s conftest.err
22456 } && test -s conftest.$ac_objext; then
22457 ac_hi=$ac_mid; break
22458 else
22459 $as_echo "$as_me: failed program was:" >&5
22460 sed 's/^/| /' conftest.$ac_ext >&5
22462 ac_lo=`expr $ac_mid + 1`
22463 if test $ac_lo -le $ac_mid; then
22464 ac_lo= ac_hi=
22465 break
22466 fi
22467 ac_mid=`expr 2 '*' $ac_mid + 1`
22468 fi
22470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 done
22472 else
22473 $as_echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22476 cat >conftest.$ac_ext <<_ACEOF
22477 /* confdefs.h. */
22478 _ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h. */
22482 $ac_includes_default
22483 int
22484 main ()
22485 {
22486 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
22487 test_array [0] = 0
22489 ;
22490 return 0;
22491 }
22492 _ACEOF
22493 rm -f conftest.$ac_objext
22494 if { (ac_try="$ac_compile"
22495 case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22498 esac
22499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22500 $as_echo "$ac_try_echo") >&5
22501 (eval "$ac_compile") 2>conftest.er1
22502 ac_status=$?
22503 grep -v '^ *+' conftest.er1 >conftest.err
22504 rm -f conftest.er1
22505 cat conftest.err >&5
22506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); } && {
22508 test -z "$ac_c_werror_flag" ||
22509 test ! -s conftest.err
22510 } && test -s conftest.$ac_objext; then
22511 ac_hi=-1 ac_mid=-1
22512 while :; do
22513 cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h. */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 $ac_includes_default
22520 int
22521 main ()
22522 {
22523 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
22524 test_array [0] = 0
22526 ;
22527 return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext
22531 if { (ac_try="$ac_compile"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22535 esac
22536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22537 $as_echo "$ac_try_echo") >&5
22538 (eval "$ac_compile") 2>conftest.er1
22539 ac_status=$?
22540 grep -v '^ *+' conftest.er1 >conftest.err
22541 rm -f conftest.er1
22542 cat conftest.err >&5
22543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } && {
22545 test -z "$ac_c_werror_flag" ||
22546 test ! -s conftest.err
22547 } && test -s conftest.$ac_objext; then
22548 ac_lo=$ac_mid; break
22549 else
22550 $as_echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22553 ac_hi=`expr '(' $ac_mid ')' - 1`
22554 if test $ac_mid -le $ac_hi; then
22555 ac_lo= ac_hi=
22556 break
22557 fi
22558 ac_mid=`expr 2 '*' $ac_mid`
22559 fi
22561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562 done
22563 else
22564 $as_echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_lo= ac_hi=
22568 fi
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 fi
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574 # Binary search between lo and hi bounds.
22575 while test "x$ac_lo" != "x$ac_hi"; do
22576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22577 cat >conftest.$ac_ext <<_ACEOF
22578 /* confdefs.h. */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h. */
22583 $ac_includes_default
22584 int
22585 main ()
22586 {
22587 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
22588 test_array [0] = 0
22590 ;
22591 return 0;
22592 }
22593 _ACEOF
22594 rm -f conftest.$ac_objext
22595 if { (ac_try="$ac_compile"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22599 esac
22600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22601 $as_echo "$ac_try_echo") >&5
22602 (eval "$ac_compile") 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest.$ac_objext; then
22612 ac_hi=$ac_mid
22613 else
22614 $as_echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_lo=`expr '(' $ac_mid ')' + 1`
22618 fi
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 done
22622 case $ac_lo in
22623 ?*) ac_cv_sizeof_time_t=$ac_lo;;
22624 '') if test "$ac_cv_type_time_t" = yes; then
22625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22627 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
22628 See \`config.log' for more details." >&5
22629 $as_echo "$as_me: error: cannot compute sizeof (time_t)
22630 See \`config.log' for more details." >&2;}
22631 { (exit 77); exit 77; }; }; }
22632 else
22633 ac_cv_sizeof_time_t=0
22634 fi ;;
22635 esac
22636 else
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h. */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 $ac_includes_default
22644 static long int longval () { return (long int) (sizeof (time_t)); }
22645 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
22646 #include <stdio.h>
22647 #include <stdlib.h>
22648 int
22649 main ()
22650 {
22652 FILE *f = fopen ("conftest.val", "w");
22653 if (! f)
22654 return 1;
22655 if (((long int) (sizeof (time_t))) < 0)
22656 {
22657 long int i = longval ();
22658 if (i != ((long int) (sizeof (time_t))))
22659 return 1;
22660 fprintf (f, "%ld", i);
22661 }
22662 else
22663 {
22664 unsigned long int i = ulongval ();
22665 if (i != ((long int) (sizeof (time_t))))
22666 return 1;
22667 fprintf (f, "%lu", i);
22668 }
22669 /* Do not output a trailing newline, as this causes \r\n confusion
22670 on some platforms. */
22671 return ferror (f) || fclose (f) != 0;
22673 ;
22674 return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest$ac_exeext
22678 if { (ac_try="$ac_link"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22684 $as_echo "$ac_try_echo") >&5
22685 (eval "$ac_link") 2>&5
22686 ac_status=$?
22687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22689 { (case "(($ac_try" in
22690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22691 *) ac_try_echo=$ac_try;;
22692 esac
22693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22694 $as_echo "$ac_try_echo") >&5
22695 (eval "$ac_try") 2>&5
22696 ac_status=$?
22697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 ac_cv_sizeof_time_t=`cat conftest.val`
22700 else
22701 $as_echo "$as_me: program exited with status $ac_status" >&5
22702 $as_echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 ( exit $ac_status )
22706 if test "$ac_cv_type_time_t" = yes; then
22707 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22709 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
22710 See \`config.log' for more details." >&5
22711 $as_echo "$as_me: error: cannot compute sizeof (time_t)
22712 See \`config.log' for more details." >&2;}
22713 { (exit 77); exit 77; }; }; }
22714 else
22715 ac_cv_sizeof_time_t=0
22716 fi
22717 fi
22718 rm -rf conftest.dSYM
22719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22720 fi
22721 rm -f conftest.val
22722 fi
22723 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
22724 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22728 cat >>confdefs.h <<_ACEOF
22729 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22730 _ACEOF
22733 if test "x$ac_cv_sizeof_time_t" = "x4"; then
22734 { $as_echo "$as_me:$LINENO: result: time_t is 32 bit" >&5
22735 $as_echo "time_t is 32 bit" >&6; }
22736 cat >>confdefs.h <<\_ACEOF
22737 #define TIME_T_IS_32BIT 1
22738 _ACEOF
22740 elif test "x$ac_cv_sizeof_time_t" = "x8"; then
22741 { $as_echo "$as_me:$LINENO: result: time_t is 64 bit" >&5
22742 $as_echo "time_t is 64 bit" >&6; }
22743 cat >>confdefs.h <<\_ACEOF
22744 #define TIME_T_IS_64BIT 1
22745 _ACEOF
22747 else
22748 { { $as_echo "$as_me:$LINENO: error: can not figure type of time_t" >&5
22749 $as_echo "$as_me: error: can not figure type of time_t" >&2;}
22750 { (exit 1); exit 1; }; }
22751 fi
22753 ac_ext=c
22754 ac_cpp='$CPP $CPPFLAGS'
22755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22761 case $TERM in
22762 # for the most important terminal types we directly know the sequences
22763 xterm|xterm*|vt220|vt220*)
22764 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
22765 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
22766 ;;
22767 vt100|vt100*|cygwin)
22768 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
22769 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
22770 ;;
22771 *)
22772 T_MD=''
22773 T_ME=''
22774 ;;
22775 esac
22776 { $as_echo "$as_me:$LINENO: result: " >&5
22777 $as_echo "" >&6; }
22778 { $as_echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
22779 $as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
22782 have_libdbi=no
22784 # Check whether --enable-libdbi was given.
22785 if test "${enable_libdbi+set}" = set; then
22786 enableval=$enable_libdbi;
22787 else
22789 if test "${ac_cv_header_dbi_dbi_h+set}" = set; then
22790 { $as_echo "$as_me:$LINENO: checking for dbi/dbi.h" >&5
22791 $as_echo_n "checking for dbi/dbi.h... " >&6; }
22792 if test "${ac_cv_header_dbi_dbi_h+set}" = set; then
22793 $as_echo_n "(cached) " >&6
22794 fi
22795 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dbi_dbi_h" >&5
22796 $as_echo "$ac_cv_header_dbi_dbi_h" >&6; }
22797 else
22798 # Is the header compilable?
22799 { $as_echo "$as_me:$LINENO: checking dbi/dbi.h usability" >&5
22800 $as_echo_n "checking dbi/dbi.h usability... " >&6; }
22801 cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h. */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 $ac_includes_default
22808 #include <dbi/dbi.h>
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22815 esac
22816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22817 $as_echo "$ac_try_echo") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 ac_header_compiler=yes
22829 else
22830 $as_echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 ac_header_compiler=no
22834 fi
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22838 $as_echo "$ac_header_compiler" >&6; }
22840 # Is the header present?
22841 { $as_echo "$as_me:$LINENO: checking dbi/dbi.h presence" >&5
22842 $as_echo_n "checking dbi/dbi.h presence... " >&6; }
22843 cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h. */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 #include <dbi/dbi.h>
22850 _ACEOF
22851 if { (ac_try="$ac_cpp conftest.$ac_ext"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22855 esac
22856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22857 $as_echo "$ac_try_echo") >&5
22858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22859 ac_status=$?
22860 grep -v '^ *+' conftest.er1 >conftest.err
22861 rm -f conftest.er1
22862 cat conftest.err >&5
22863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } >/dev/null && {
22865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 }; then
22868 ac_header_preproc=yes
22869 else
22870 $as_echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ac_header_preproc=no
22874 fi
22876 rm -f conftest.err conftest.$ac_ext
22877 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22878 $as_echo "$ac_header_preproc" >&6; }
22880 # So? What about this header?
22881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22882 yes:no: )
22883 { $as_echo "$as_me:$LINENO: WARNING: dbi/dbi.h: accepted by the compiler, rejected by the preprocessor!" >&5
22884 $as_echo "$as_me: WARNING: dbi/dbi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22885 { $as_echo "$as_me:$LINENO: WARNING: dbi/dbi.h: proceeding with the compiler's result" >&5
22886 $as_echo "$as_me: WARNING: dbi/dbi.h: proceeding with the compiler's result" >&2;}
22887 ac_header_preproc=yes
22888 ;;
22889 no:yes:* )
22890 { $as_echo "$as_me:$LINENO: WARNING: dbi/dbi.h: present but cannot be compiled" >&5
22891 $as_echo "$as_me: WARNING: dbi/dbi.h: present but cannot be compiled" >&2;}
22892 { $as_echo "$as_me:$LINENO: WARNING: dbi/dbi.h: check for missing prerequisite headers?" >&5
22893 $as_echo "$as_me: WARNING: dbi/dbi.h: check for missing prerequisite headers?" >&2;}
22894 { $as_echo "$as_me:$LINENO: WARNING: dbi/dbi.h: see the Autoconf documentation" >&5
22895 $as_echo "$as_me: WARNING: dbi/dbi.h: see the Autoconf documentation" >&2;}
22896 { $as_echo "$as_me:$LINENO: WARNING: dbi/dbi.h: section \"Present But Cannot Be Compiled\"" >&5
22897 $as_echo "$as_me: WARNING: dbi/dbi.h: section \"Present But Cannot Be Compiled\"" >&2;}
22898 { $as_echo "$as_me:$LINENO: WARNING: dbi/dbi.h: proceeding with the preprocessor's result" >&5
22899 $as_echo "$as_me: WARNING: dbi/dbi.h: proceeding with the preprocessor's result" >&2;}
22900 { $as_echo "$as_me:$LINENO: WARNING: dbi/dbi.h: in the future, the compiler will take precedence" >&5
22901 $as_echo "$as_me: WARNING: dbi/dbi.h: in the future, the compiler will take precedence" >&2;}
22903 ;;
22904 esac
22905 { $as_echo "$as_me:$LINENO: checking for dbi/dbi.h" >&5
22906 $as_echo_n "checking for dbi/dbi.h... " >&6; }
22907 if test "${ac_cv_header_dbi_dbi_h+set}" = set; then
22908 $as_echo_n "(cached) " >&6
22909 else
22910 ac_cv_header_dbi_dbi_h=$ac_header_preproc
22911 fi
22912 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dbi_dbi_h" >&5
22913 $as_echo "$ac_cv_header_dbi_dbi_h" >&6; }
22915 fi
22916 if test "x$ac_cv_header_dbi_dbi_h" = x""yes; then
22918 { $as_echo "$as_me:$LINENO: checking for dbi_initialize in -ldbi" >&5
22919 $as_echo_n "checking for dbi_initialize in -ldbi... " >&6; }
22920 if test "${ac_cv_lib_dbi_dbi_initialize+set}" = set; then
22921 $as_echo_n "(cached) " >&6
22922 else
22923 ac_check_lib_save_LIBS=$LIBS
22924 LIBS="-ldbi $LIBS"
22925 cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h. */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22932 /* Override any GCC internal prototype to avoid an error.
22933 Use char because int might match the return type of a GCC
22934 builtin and then its argument prototype would still apply. */
22935 #ifdef __cplusplus
22936 extern "C"
22937 #endif
22938 char dbi_initialize ();
22939 int
22940 main ()
22941 {
22942 return dbi_initialize ();
22943 ;
22944 return 0;
22945 }
22946 _ACEOF
22947 rm -f conftest.$ac_objext conftest$ac_exeext
22948 if { (ac_try="$ac_link"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22952 esac
22953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22954 $as_echo "$ac_try_echo") >&5
22955 (eval "$ac_link") 2>conftest.er1
22956 ac_status=$?
22957 grep -v '^ *+' conftest.er1 >conftest.err
22958 rm -f conftest.er1
22959 cat conftest.err >&5
22960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } && {
22962 test -z "$ac_c_werror_flag" ||
22963 test ! -s conftest.err
22964 } && test -s conftest$ac_exeext && {
22965 test "$cross_compiling" = yes ||
22966 $as_test_x conftest$ac_exeext
22967 }; then
22968 ac_cv_lib_dbi_dbi_initialize=yes
22969 else
22970 $as_echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 ac_cv_lib_dbi_dbi_initialize=no
22974 fi
22976 rm -rf conftest.dSYM
22977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22978 conftest$ac_exeext conftest.$ac_ext
22979 LIBS=$ac_check_lib_save_LIBS
22980 fi
22981 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dbi_dbi_initialize" >&5
22982 $as_echo "$ac_cv_lib_dbi_dbi_initialize" >&6; }
22983 if test "x$ac_cv_lib_dbi_dbi_initialize" = x""yes; then
22986 cat >>confdefs.h <<\_ACEOF
22987 #define HAVE_LIBDBI 1
22988 _ACEOF
22990 LIBS="${LIBS} -ldbi -ldl"
22991 have_libdbi=yes
22993 fi
22996 fi
23000 fi
23003 if test $have_libdbi != no; then
23004 BUILD_LIBDBI_TRUE=
23005 BUILD_LIBDBI_FALSE='#'
23006 else
23007 BUILD_LIBDBI_TRUE='#'
23008 BUILD_LIBDBI_FALSE=
23009 fi
23012 have_libwrap=no
23014 # Check whether --enable-libwrap was given.
23015 if test "${enable_libwrap+set}" = set; then
23016 enableval=$enable_libwrap;
23017 else
23019 if test "${ac_cv_header_tcpd_h+set}" = set; then
23020 { $as_echo "$as_me:$LINENO: checking for tcpd.h" >&5
23021 $as_echo_n "checking for tcpd.h... " >&6; }
23022 if test "${ac_cv_header_tcpd_h+set}" = set; then
23023 $as_echo_n "(cached) " >&6
23024 fi
23025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
23026 $as_echo "$ac_cv_header_tcpd_h" >&6; }
23027 else
23028 # Is the header compilable?
23029 { $as_echo "$as_me:$LINENO: checking tcpd.h usability" >&5
23030 $as_echo_n "checking tcpd.h usability... " >&6; }
23031 cat >conftest.$ac_ext <<_ACEOF
23032 /* confdefs.h. */
23033 _ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23037 $ac_includes_default
23038 #include <tcpd.h>
23039 _ACEOF
23040 rm -f conftest.$ac_objext
23041 if { (ac_try="$ac_compile"
23042 case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23045 esac
23046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23047 $as_echo "$ac_try_echo") >&5
23048 (eval "$ac_compile") 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest.$ac_objext; then
23058 ac_header_compiler=yes
23059 else
23060 $as_echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23063 ac_header_compiler=no
23064 fi
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23068 $as_echo "$ac_header_compiler" >&6; }
23070 # Is the header present?
23071 { $as_echo "$as_me:$LINENO: checking tcpd.h presence" >&5
23072 $as_echo_n "checking tcpd.h presence... " >&6; }
23073 cat >conftest.$ac_ext <<_ACEOF
23074 /* confdefs.h. */
23075 _ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h. */
23079 #include <tcpd.h>
23080 _ACEOF
23081 if { (ac_try="$ac_cpp conftest.$ac_ext"
23082 case "(($ac_try" in
23083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084 *) ac_try_echo=$ac_try;;
23085 esac
23086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23087 $as_echo "$ac_try_echo") >&5
23088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23089 ac_status=$?
23090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
23093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } >/dev/null && {
23095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23096 test ! -s conftest.err
23097 }; then
23098 ac_header_preproc=yes
23099 else
23100 $as_echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23103 ac_header_preproc=no
23104 fi
23106 rm -f conftest.err conftest.$ac_ext
23107 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23108 $as_echo "$ac_header_preproc" >&6; }
23110 # So? What about this header?
23111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23112 yes:no: )
23113 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
23114 $as_echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23115 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
23116 $as_echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
23117 ac_header_preproc=yes
23118 ;;
23119 no:yes:* )
23120 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
23121 $as_echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
23122 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: check for missing prerequisite headers?" >&5
23123 $as_echo "$as_me: WARNING: tcpd.h: check for missing prerequisite headers?" >&2;}
23124 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
23125 $as_echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
23126 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&5
23127 $as_echo "$as_me: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&2;}
23128 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
23129 $as_echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
23130 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
23131 $as_echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
23133 ;;
23134 esac
23135 { $as_echo "$as_me:$LINENO: checking for tcpd.h" >&5
23136 $as_echo_n "checking for tcpd.h... " >&6; }
23137 if test "${ac_cv_header_tcpd_h+set}" = set; then
23138 $as_echo_n "(cached) " >&6
23139 else
23140 ac_cv_header_tcpd_h=$ac_header_preproc
23141 fi
23142 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
23143 $as_echo "$ac_cv_header_tcpd_h" >&6; }
23145 fi
23146 if test "x$ac_cv_header_tcpd_h" = x""yes; then
23149 for ac_func in hosts_access
23150 do
23151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23152 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23153 $as_echo_n "checking for $ac_func... " >&6; }
23154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23155 $as_echo_n "(cached) " >&6
23156 else
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23165 #define $ac_func innocuous_$ac_func
23167 /* System header to define __stub macros and hopefully few prototypes,
23168 which can conflict with char $ac_func (); below.
23169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23170 <limits.h> exists even on freestanding compilers. */
23172 #ifdef __STDC__
23173 # include <limits.h>
23174 #else
23175 # include <assert.h>
23176 #endif
23178 #undef $ac_func
23180 /* Override any GCC internal prototype to avoid an error.
23181 Use char because int might match the return type of a GCC
23182 builtin and then its argument prototype would still apply. */
23183 #ifdef __cplusplus
23184 extern "C"
23185 #endif
23186 char $ac_func ();
23187 /* The GNU C library defines this for functions which it implements
23188 to always fail with ENOSYS. Some functions are actually named
23189 something starting with __ and the normal name is an alias. */
23190 #if defined __stub_$ac_func || defined __stub___$ac_func
23191 choke me
23192 #endif
23194 int
23195 main ()
23196 {
23197 return $ac_func ();
23198 ;
23199 return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (ac_try="$ac_link"
23204 case "(($ac_try" in
23205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206 *) ac_try_echo=$ac_try;;
23207 esac
23208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23209 $as_echo "$ac_try_echo") >&5
23210 (eval "$ac_link") 2>conftest.er1
23211 ac_status=$?
23212 grep -v '^ *+' conftest.er1 >conftest.err
23213 rm -f conftest.er1
23214 cat conftest.err >&5
23215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } && {
23217 test -z "$ac_c_werror_flag" ||
23218 test ! -s conftest.err
23219 } && test -s conftest$ac_exeext && {
23220 test "$cross_compiling" = yes ||
23221 $as_test_x conftest$ac_exeext
23222 }; then
23223 eval "$as_ac_var=yes"
23224 else
23225 $as_echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23228 eval "$as_ac_var=no"
23229 fi
23231 rm -rf conftest.dSYM
23232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23233 conftest$ac_exeext conftest.$ac_ext
23234 fi
23235 ac_res=`eval 'as_val=${'$as_ac_var'}
23236 $as_echo "$as_val"'`
23237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23238 $as_echo "$ac_res" >&6; }
23239 as_val=`eval 'as_val=${'$as_ac_var'}
23240 $as_echo "$as_val"'`
23241 if test "x$as_val" = x""yes; then
23242 cat >>confdefs.h <<_ACEOF
23243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23244 _ACEOF
23247 cat >>confdefs.h <<\_ACEOF
23248 #define HAVE_LIBWRAP 1
23249 _ACEOF
23251 have_libwrap=yes
23253 else
23255 { $as_echo "$as_me:$LINENO: checking for hosts_access in -lwrap" >&5
23256 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
23257 if test "${ac_cv_lib_wrap_hosts_access+set}" = set; then
23258 $as_echo_n "(cached) " >&6
23259 else
23260 ac_check_lib_save_LIBS=$LIBS
23261 LIBS="-lwrap $LIBS"
23262 cat >conftest.$ac_ext <<_ACEOF
23263 /* confdefs.h. */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23269 /* Override any GCC internal prototype to avoid an error.
23270 Use char because int might match the return type of a GCC
23271 builtin and then its argument prototype would still apply. */
23272 #ifdef __cplusplus
23273 extern "C"
23274 #endif
23275 char hosts_access ();
23276 int
23277 main ()
23278 {
23279 return hosts_access ();
23280 ;
23281 return 0;
23282 }
23283 _ACEOF
23284 rm -f conftest.$ac_objext conftest$ac_exeext
23285 if { (ac_try="$ac_link"
23286 case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23289 esac
23290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23291 $as_echo "$ac_try_echo") >&5
23292 (eval "$ac_link") 2>conftest.er1
23293 ac_status=$?
23294 grep -v '^ *+' conftest.er1 >conftest.err
23295 rm -f conftest.er1
23296 cat conftest.err >&5
23297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } && {
23299 test -z "$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23301 } && test -s conftest$ac_exeext && {
23302 test "$cross_compiling" = yes ||
23303 $as_test_x conftest$ac_exeext
23304 }; then
23305 ac_cv_lib_wrap_hosts_access=yes
23306 else
23307 $as_echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_cv_lib_wrap_hosts_access=no
23311 fi
23313 rm -rf conftest.dSYM
23314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23315 conftest$ac_exeext conftest.$ac_ext
23316 LIBS=$ac_check_lib_save_LIBS
23317 fi
23318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_hosts_access" >&5
23319 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
23320 if test "x$ac_cv_lib_wrap_hosts_access" = x""yes; then
23323 cat >>confdefs.h <<\_ACEOF
23324 #define HAVE_LIBWRAP 1
23325 _ACEOF
23327 LIBS="${LIBS} -lwrap"
23328 have_libwrap=yes
23330 fi
23333 fi
23334 done
23337 fi
23341 fi
23345 if test $have_libwrap != no; then
23346 BUILD_LIBWRAP_TRUE=
23347 BUILD_LIBWRAP_FALSE='#'
23348 else
23349 BUILD_LIBWRAP_TRUE='#'
23350 BUILD_LIBWRAP_FALSE=
23351 fi
23354 if test $enable_rrd_graph != no; then
23355 BUILD_RRDGRAPH_TRUE=
23356 BUILD_RRDGRAPH_FALSE='#'
23357 else
23358 BUILD_RRDGRAPH_TRUE='#'
23359 BUILD_RRDGRAPH_FALSE=
23360 fi
23364 CORE_LIBS="$LIBS"
23366 if test $enable_rrd_graph != no; then
23368 ac_ext=c
23369 ac_cpp='$CPP $CPPFLAGS'
23370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23374 EX_CHECK_STATE=NO
23375 ex_check_save_LIBS=${LIBS}
23376 ex_check_save_CPPFLAGS=${CPPFLAGS}
23377 ex_check_save_LDFLAGS=${LDFLAGS}
23378 if test "x""" != "x"; then
23379 CPPFLAGS="$CPPFLAGS -I"""
23380 fi
23381 { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
23382 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
23383 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
23384 $as_echo_n "(cached) " >&6
23385 else
23386 ac_check_lib_save_LIBS=$LIBS
23387 LIBS="-lcairo $LIBS"
23388 cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h. */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23395 /* Override any GCC internal prototype to avoid an error.
23396 Use char because int might match the return type of a GCC
23397 builtin and then its argument prototype would still apply. */
23398 #ifdef __cplusplus
23399 extern "C"
23400 #endif
23401 char cairo_font_options_create ();
23402 int
23403 main ()
23404 {
23405 return cairo_font_options_create ();
23406 ;
23407 return 0;
23408 }
23409 _ACEOF
23410 rm -f conftest.$ac_objext conftest$ac_exeext
23411 if { (ac_try="$ac_link"
23412 case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23415 esac
23416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23417 $as_echo "$ac_try_echo") >&5
23418 (eval "$ac_link") 2>conftest.er1
23419 ac_status=$?
23420 grep -v '^ *+' conftest.er1 >conftest.err
23421 rm -f conftest.er1
23422 cat conftest.err >&5
23423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && {
23425 test -z "$ac_c_werror_flag" ||
23426 test ! -s conftest.err
23427 } && test -s conftest$ac_exeext && {
23428 test "$cross_compiling" = yes ||
23429 $as_test_x conftest$ac_exeext
23430 }; then
23431 ac_cv_lib_cairo_cairo_font_options_create=yes
23432 else
23433 $as_echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ac_cv_lib_cairo_cairo_font_options_create=no
23437 fi
23439 rm -rf conftest.dSYM
23440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23441 conftest$ac_exeext conftest.$ac_ext
23442 LIBS=$ac_check_lib_save_LIBS
23443 fi
23444 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
23445 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
23446 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
23448 if test "${ac_cv_header_cairo_h+set}" = set; then
23449 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
23450 $as_echo_n "checking for cairo.h... " >&6; }
23451 if test "${ac_cv_header_cairo_h+set}" = set; then
23452 $as_echo_n "(cached) " >&6
23453 fi
23454 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
23455 $as_echo "$ac_cv_header_cairo_h" >&6; }
23456 else
23457 # Is the header compilable?
23458 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
23459 $as_echo_n "checking cairo.h usability... " >&6; }
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h. */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23467 #include <cairo.h>
23468 _ACEOF
23469 rm -f conftest.$ac_objext
23470 if { (ac_try="$ac_compile"
23471 case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23474 esac
23475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23476 $as_echo "$ac_try_echo") >&5
23477 (eval "$ac_compile") 2>conftest.er1
23478 ac_status=$?
23479 grep -v '^ *+' conftest.er1 >conftest.err
23480 rm -f conftest.er1
23481 cat conftest.err >&5
23482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } && {
23484 test -z "$ac_c_werror_flag" ||
23485 test ! -s conftest.err
23486 } && test -s conftest.$ac_objext; then
23487 ac_header_compiler=yes
23488 else
23489 $as_echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23492 ac_header_compiler=no
23493 fi
23495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23497 $as_echo "$ac_header_compiler" >&6; }
23499 # Is the header present?
23500 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
23501 $as_echo_n "checking cairo.h presence... " >&6; }
23502 cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h. */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 #include <cairo.h>
23509 _ACEOF
23510 if { (ac_try="$ac_cpp conftest.$ac_ext"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23514 esac
23515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23516 $as_echo "$ac_try_echo") >&5
23517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23518 ac_status=$?
23519 grep -v '^ *+' conftest.er1 >conftest.err
23520 rm -f conftest.er1
23521 cat conftest.err >&5
23522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } >/dev/null && {
23524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23526 }; then
23527 ac_header_preproc=yes
23528 else
23529 $as_echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 ac_header_preproc=no
23533 fi
23535 rm -f conftest.err conftest.$ac_ext
23536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23537 $as_echo "$ac_header_preproc" >&6; }
23539 # So? What about this header?
23540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23541 yes:no: )
23542 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
23543 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23544 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
23545 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
23546 ac_header_preproc=yes
23547 ;;
23548 no:yes:* )
23549 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
23550 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
23551 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
23552 $as_echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
23553 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
23554 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
23555 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
23556 $as_echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
23557 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
23558 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
23559 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
23560 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
23562 ;;
23563 esac
23564 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
23565 $as_echo_n "checking for cairo.h... " >&6; }
23566 if test "${ac_cv_header_cairo_h+set}" = set; then
23567 $as_echo_n "(cached) " >&6
23568 else
23569 ac_cv_header_cairo_h=$ac_header_preproc
23570 fi
23571 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
23572 $as_echo "$ac_cv_header_cairo_h" >&6; }
23574 fi
23575 if test "x$ac_cv_header_cairo_h" = x""yes; then
23576 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
23577 fi
23580 fi
23582 if test $EX_CHECK_STATE = NO; then
23583 for ac_prog in pkg-config
23584 do
23585 # Extract the first word of "$ac_prog", so it can be a program name with args.
23586 set dummy $ac_prog; ac_word=$2
23587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23588 $as_echo_n "checking for $ac_word... " >&6; }
23589 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
23590 $as_echo_n "(cached) " >&6
23591 else
23592 if test -n "$PKGCONFIG"; then
23593 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
23594 else
23595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23596 for as_dir in $PATH
23597 do
23598 IFS=$as_save_IFS
23599 test -z "$as_dir" && as_dir=.
23600 for ac_exec_ext in '' $ac_executable_extensions; do
23601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23602 ac_cv_prog_PKGCONFIG="$ac_prog"
23603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23604 break 2
23605 fi
23606 done
23607 done
23608 IFS=$as_save_IFS
23610 fi
23611 fi
23612 PKGCONFIG=$ac_cv_prog_PKGCONFIG
23613 if test -n "$PKGCONFIG"; then
23614 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
23615 $as_echo "$PKGCONFIG" >&6; }
23616 else
23617 { $as_echo "$as_me:$LINENO: result: no" >&5
23618 $as_echo "no" >&6; }
23619 fi
23622 test -n "$PKGCONFIG" && break
23623 done
23624 test -n "$PKGCONFIG" || PKGCONFIG="no"
23626 if test "$PKGCONFIG" != "no"; then
23627 if $PKGCONFIG --exists cairo-png; then
23628 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
23629 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
23630 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
23631 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
23632 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
23633 { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
23634 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
23635 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
23636 $as_echo_n "(cached) " >&6
23637 else
23638 ac_check_lib_save_LIBS=$LIBS
23639 LIBS="-lcairo $LIBS"
23640 cat >conftest.$ac_ext <<_ACEOF
23641 /* confdefs.h. */
23642 _ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h. */
23647 /* Override any GCC internal prototype to avoid an error.
23648 Use char because int might match the return type of a GCC
23649 builtin and then its argument prototype would still apply. */
23650 #ifdef __cplusplus
23651 extern "C"
23652 #endif
23653 char cairo_font_options_create ();
23654 int
23655 main ()
23656 {
23657 return cairo_font_options_create ();
23658 ;
23659 return 0;
23660 }
23661 _ACEOF
23662 rm -f conftest.$ac_objext conftest$ac_exeext
23663 if { (ac_try="$ac_link"
23664 case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23667 esac
23668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23669 $as_echo "$ac_try_echo") >&5
23670 (eval "$ac_link") 2>conftest.er1
23671 ac_status=$?
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
23675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest$ac_exeext && {
23680 test "$cross_compiling" = yes ||
23681 $as_test_x conftest$ac_exeext
23682 }; then
23683 ac_cv_lib_cairo_cairo_font_options_create=yes
23684 else
23685 $as_echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 ac_cv_lib_cairo_cairo_font_options_create=no
23689 fi
23691 rm -rf conftest.dSYM
23692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23693 conftest$ac_exeext conftest.$ac_ext
23694 LIBS=$ac_check_lib_save_LIBS
23695 fi
23696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
23697 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
23698 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
23700 unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
23701 if test "${ac_cv_header_cairo_h+set}" = set; then
23702 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
23703 $as_echo_n "checking for cairo.h... " >&6; }
23704 if test "${ac_cv_header_cairo_h+set}" = set; then
23705 $as_echo_n "(cached) " >&6
23706 fi
23707 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
23708 $as_echo "$ac_cv_header_cairo_h" >&6; }
23709 else
23710 # Is the header compilable?
23711 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
23712 $as_echo_n "checking cairo.h usability... " >&6; }
23713 cat >conftest.$ac_ext <<_ACEOF
23714 /* confdefs.h. */
23715 _ACEOF
23716 cat confdefs.h >>conftest.$ac_ext
23717 cat >>conftest.$ac_ext <<_ACEOF
23718 /* end confdefs.h. */
23719 $ac_includes_default
23720 #include <cairo.h>
23721 _ACEOF
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23727 esac
23728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23729 $as_echo "$ac_try_echo") >&5
23730 (eval "$ac_compile") 2>conftest.er1
23731 ac_status=$?
23732 grep -v '^ *+' conftest.er1 >conftest.err
23733 rm -f conftest.er1
23734 cat conftest.err >&5
23735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } && {
23737 test -z "$ac_c_werror_flag" ||
23738 test ! -s conftest.err
23739 } && test -s conftest.$ac_objext; then
23740 ac_header_compiler=yes
23741 else
23742 $as_echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23745 ac_header_compiler=no
23746 fi
23748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23750 $as_echo "$ac_header_compiler" >&6; }
23752 # Is the header present?
23753 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
23754 $as_echo_n "checking cairo.h presence... " >&6; }
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h. */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 #include <cairo.h>
23762 _ACEOF
23763 if { (ac_try="$ac_cpp conftest.$ac_ext"
23764 case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23767 esac
23768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23769 $as_echo "$ac_try_echo") >&5
23770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23771 ac_status=$?
23772 grep -v '^ *+' conftest.er1 >conftest.err
23773 rm -f conftest.er1
23774 cat conftest.err >&5
23775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } >/dev/null && {
23777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23778 test ! -s conftest.err
23779 }; then
23780 ac_header_preproc=yes
23781 else
23782 $as_echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23785 ac_header_preproc=no
23786 fi
23788 rm -f conftest.err conftest.$ac_ext
23789 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23790 $as_echo "$ac_header_preproc" >&6; }
23792 # So? What about this header?
23793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23794 yes:no: )
23795 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
23796 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23797 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
23798 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
23799 ac_header_preproc=yes
23800 ;;
23801 no:yes:* )
23802 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
23803 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
23804 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
23805 $as_echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
23806 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
23807 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
23808 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
23809 $as_echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
23810 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
23811 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
23812 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
23813 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
23815 ;;
23816 esac
23817 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
23818 $as_echo_n "checking for cairo.h... " >&6; }
23819 if test "${ac_cv_header_cairo_h+set}" = set; then
23820 $as_echo_n "(cached) " >&6
23821 else
23822 ac_cv_header_cairo_h=$ac_header_preproc
23823 fi
23824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
23825 $as_echo "$ac_cv_header_cairo_h" >&6; }
23827 fi
23828 if test "x$ac_cv_header_cairo_h" = x""yes; then
23829 EX_CHECK_STATE=YES
23830 fi
23834 fi
23836 else
23837 { $as_echo "$as_me:$LINENO: WARNING:
23838 ----------------------------------------------------------------------------
23839 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
23840 You may want to set the PKG_CONFIG_PATH variable to point to its
23841 location.
23842 ----------------------------------------------------------------------------
23843 " >&5
23844 $as_echo "$as_me: WARNING:
23845 ----------------------------------------------------------------------------
23846 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
23847 You may want to set the PKG_CONFIG_PATH variable to point to its
23848 location.
23849 ----------------------------------------------------------------------------
23850 " >&2;}
23851 fi
23852 fi
23853 fi
23855 if test ${EX_CHECK_STATE} = NO; then
23856 { $as_echo "$as_me:$LINENO: WARNING:
23857 ----------------------------------------------------------------------------
23858 * I could not find a working copy of cairo-png. Check config.log for hints on why
23859 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
23860 so that compiler and the linker can find libcairo and its header files. If
23861 you have not installed cairo-png, you can get it either from its original home on
23863 http://cairographics.org/releases/
23865 You can find also find an archive copy on
23867 http://oss.oetiker.ch/rrdtool/pub/libs
23869 The last tested version of cairo-png is 1.10.2.
23871 LIBS=$LIBS
23872 LDFLAGS=$LDFLAGS
23873 CPPFLAGS=$CPPFLAGS
23875 ----------------------------------------------------------------------------
23876 " >&5
23877 $as_echo "$as_me: WARNING:
23878 ----------------------------------------------------------------------------
23879 * I could not find a working copy of cairo-png. Check config.log for hints on why
23880 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
23881 so that compiler and the linker can find libcairo and its header files. If
23882 you have not installed cairo-png, you can get it either from its original home on
23884 http://cairographics.org/releases/
23886 You can find also find an archive copy on
23888 http://oss.oetiker.ch/rrdtool/pub/libs
23890 The last tested version of cairo-png is 1.10.2.
23892 LIBS=$LIBS
23893 LDFLAGS=$LDFLAGS
23894 CPPFLAGS=$CPPFLAGS
23896 ----------------------------------------------------------------------------
23897 " >&2;}
23898 EX_CHECK_ALL_ERR=YES
23899 LIBS="${ex_check_save_LIBS}"
23900 CPPFLAGS="${ex_check_save_CPPFLAGS}"
23901 LDFLAGS="${ex_check_save_LDFLAGS}"
23902 fi
23903 ac_ext=c
23904 ac_cpp='$CPP $CPPFLAGS'
23905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23912 ac_ext=c
23913 ac_cpp='$CPP $CPPFLAGS'
23914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23918 EX_CHECK_STATE=NO
23919 ex_check_save_LIBS=${LIBS}
23920 ex_check_save_CPPFLAGS=${CPPFLAGS}
23921 ex_check_save_LDFLAGS=${LDFLAGS}
23922 if test "x""" != "x"; then
23923 CPPFLAGS="$CPPFLAGS -I"""
23924 fi
23925 { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
23926 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
23927 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
23928 $as_echo_n "(cached) " >&6
23929 else
23930 ac_check_lib_save_LIBS=$LIBS
23931 LIBS="-lcairo $LIBS"
23932 cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h. */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23939 /* Override any GCC internal prototype to avoid an error.
23940 Use char because int might match the return type of a GCC
23941 builtin and then its argument prototype would still apply. */
23942 #ifdef __cplusplus
23943 extern "C"
23944 #endif
23945 char cairo_svg_surface_create ();
23946 int
23947 main ()
23948 {
23949 return cairo_svg_surface_create ();
23950 ;
23951 return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (ac_try="$ac_link"
23956 case "(($ac_try" in
23957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23959 esac
23960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23961 $as_echo "$ac_try_echo") >&5
23962 (eval "$ac_link") 2>conftest.er1
23963 ac_status=$?
23964 grep -v '^ *+' conftest.er1 >conftest.err
23965 rm -f conftest.er1
23966 cat conftest.err >&5
23967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } && {
23969 test -z "$ac_c_werror_flag" ||
23970 test ! -s conftest.err
23971 } && test -s conftest$ac_exeext && {
23972 test "$cross_compiling" = yes ||
23973 $as_test_x conftest$ac_exeext
23974 }; then
23975 ac_cv_lib_cairo_cairo_svg_surface_create=yes
23976 else
23977 $as_echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23980 ac_cv_lib_cairo_cairo_svg_surface_create=no
23981 fi
23983 rm -rf conftest.dSYM
23984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23985 conftest$ac_exeext conftest.$ac_ext
23986 LIBS=$ac_check_lib_save_LIBS
23987 fi
23988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
23989 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
23990 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
23992 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
23993 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
23994 $as_echo_n "checking for cairo-svg.h... " >&6; }
23995 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
23996 $as_echo_n "(cached) " >&6
23997 fi
23998 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
23999 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
24000 else
24001 # Is the header compilable?
24002 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
24003 $as_echo_n "checking cairo-svg.h usability... " >&6; }
24004 cat >conftest.$ac_ext <<_ACEOF
24005 /* confdefs.h. */
24006 _ACEOF
24007 cat confdefs.h >>conftest.$ac_ext
24008 cat >>conftest.$ac_ext <<_ACEOF
24009 /* end confdefs.h. */
24010 $ac_includes_default
24011 #include <cairo-svg.h>
24012 _ACEOF
24013 rm -f conftest.$ac_objext
24014 if { (ac_try="$ac_compile"
24015 case "(($ac_try" in
24016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017 *) ac_try_echo=$ac_try;;
24018 esac
24019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24020 $as_echo "$ac_try_echo") >&5
24021 (eval "$ac_compile") 2>conftest.er1
24022 ac_status=$?
24023 grep -v '^ *+' conftest.er1 >conftest.err
24024 rm -f conftest.er1
24025 cat conftest.err >&5
24026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); } && {
24028 test -z "$ac_c_werror_flag" ||
24029 test ! -s conftest.err
24030 } && test -s conftest.$ac_objext; then
24031 ac_header_compiler=yes
24032 else
24033 $as_echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24036 ac_header_compiler=no
24037 fi
24039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24040 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24041 $as_echo "$ac_header_compiler" >&6; }
24043 # Is the header present?
24044 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
24045 $as_echo_n "checking cairo-svg.h presence... " >&6; }
24046 cat >conftest.$ac_ext <<_ACEOF
24047 /* confdefs.h. */
24048 _ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h. */
24052 #include <cairo-svg.h>
24053 _ACEOF
24054 if { (ac_try="$ac_cpp conftest.$ac_ext"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24058 esac
24059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24060 $as_echo "$ac_try_echo") >&5
24061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24062 ac_status=$?
24063 grep -v '^ *+' conftest.er1 >conftest.err
24064 rm -f conftest.er1
24065 cat conftest.err >&5
24066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } >/dev/null && {
24068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24069 test ! -s conftest.err
24070 }; then
24071 ac_header_preproc=yes
24072 else
24073 $as_echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24076 ac_header_preproc=no
24077 fi
24079 rm -f conftest.err conftest.$ac_ext
24080 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24081 $as_echo "$ac_header_preproc" >&6; }
24083 # So? What about this header?
24084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24085 yes:no: )
24086 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
24087 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24088 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
24089 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
24090 ac_header_preproc=yes
24091 ;;
24092 no:yes:* )
24093 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
24094 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
24095 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&5
24096 $as_echo "$as_me: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&2;}
24097 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
24098 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
24099 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&5
24100 $as_echo "$as_me: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&2;}
24101 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
24102 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
24103 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
24104 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
24106 ;;
24107 esac
24108 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
24109 $as_echo_n "checking for cairo-svg.h... " >&6; }
24110 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
24111 $as_echo_n "(cached) " >&6
24112 else
24113 ac_cv_header_cairo_svg_h=$ac_header_preproc
24114 fi
24115 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
24116 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
24118 fi
24119 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
24120 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
24121 fi
24124 fi
24126 if test $EX_CHECK_STATE = NO; then
24127 for ac_prog in pkg-config
24128 do
24129 # Extract the first word of "$ac_prog", so it can be a program name with args.
24130 set dummy $ac_prog; ac_word=$2
24131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24132 $as_echo_n "checking for $ac_word... " >&6; }
24133 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
24134 $as_echo_n "(cached) " >&6
24135 else
24136 if test -n "$PKGCONFIG"; then
24137 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
24138 else
24139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24140 for as_dir in $PATH
24141 do
24142 IFS=$as_save_IFS
24143 test -z "$as_dir" && as_dir=.
24144 for ac_exec_ext in '' $ac_executable_extensions; do
24145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24146 ac_cv_prog_PKGCONFIG="$ac_prog"
24147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24148 break 2
24149 fi
24150 done
24151 done
24152 IFS=$as_save_IFS
24154 fi
24155 fi
24156 PKGCONFIG=$ac_cv_prog_PKGCONFIG
24157 if test -n "$PKGCONFIG"; then
24158 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
24159 $as_echo "$PKGCONFIG" >&6; }
24160 else
24161 { $as_echo "$as_me:$LINENO: result: no" >&5
24162 $as_echo "no" >&6; }
24163 fi
24166 test -n "$PKGCONFIG" && break
24167 done
24168 test -n "$PKGCONFIG" || PKGCONFIG="no"
24170 if test "$PKGCONFIG" != "no"; then
24171 if $PKGCONFIG --exists cairo-svg; then
24172 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
24173 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
24174 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
24175 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
24176 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
24177 { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
24178 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
24179 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
24180 $as_echo_n "(cached) " >&6
24181 else
24182 ac_check_lib_save_LIBS=$LIBS
24183 LIBS="-lcairo $LIBS"
24184 cat >conftest.$ac_ext <<_ACEOF
24185 /* confdefs.h. */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24191 /* Override any GCC internal prototype to avoid an error.
24192 Use char because int might match the return type of a GCC
24193 builtin and then its argument prototype would still apply. */
24194 #ifdef __cplusplus
24195 extern "C"
24196 #endif
24197 char cairo_svg_surface_create ();
24198 int
24199 main ()
24200 {
24201 return cairo_svg_surface_create ();
24202 ;
24203 return 0;
24204 }
24205 _ACEOF
24206 rm -f conftest.$ac_objext conftest$ac_exeext
24207 if { (ac_try="$ac_link"
24208 case "(($ac_try" in
24209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210 *) ac_try_echo=$ac_try;;
24211 esac
24212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24213 $as_echo "$ac_try_echo") >&5
24214 (eval "$ac_link") 2>conftest.er1
24215 ac_status=$?
24216 grep -v '^ *+' conftest.er1 >conftest.err
24217 rm -f conftest.er1
24218 cat conftest.err >&5
24219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); } && {
24221 test -z "$ac_c_werror_flag" ||
24222 test ! -s conftest.err
24223 } && test -s conftest$ac_exeext && {
24224 test "$cross_compiling" = yes ||
24225 $as_test_x conftest$ac_exeext
24226 }; then
24227 ac_cv_lib_cairo_cairo_svg_surface_create=yes
24228 else
24229 $as_echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24232 ac_cv_lib_cairo_cairo_svg_surface_create=no
24233 fi
24235 rm -rf conftest.dSYM
24236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24237 conftest$ac_exeext conftest.$ac_ext
24238 LIBS=$ac_check_lib_save_LIBS
24239 fi
24240 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
24241 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
24242 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
24244 unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
24245 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
24246 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
24247 $as_echo_n "checking for cairo-svg.h... " >&6; }
24248 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
24249 $as_echo_n "(cached) " >&6
24250 fi
24251 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
24252 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
24253 else
24254 # Is the header compilable?
24255 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
24256 $as_echo_n "checking cairo-svg.h usability... " >&6; }
24257 cat >conftest.$ac_ext <<_ACEOF
24258 /* confdefs.h. */
24259 _ACEOF
24260 cat confdefs.h >>conftest.$ac_ext
24261 cat >>conftest.$ac_ext <<_ACEOF
24262 /* end confdefs.h. */
24263 $ac_includes_default
24264 #include <cairo-svg.h>
24265 _ACEOF
24266 rm -f conftest.$ac_objext
24267 if { (ac_try="$ac_compile"
24268 case "(($ac_try" in
24269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270 *) ac_try_echo=$ac_try;;
24271 esac
24272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24273 $as_echo "$ac_try_echo") >&5
24274 (eval "$ac_compile") 2>conftest.er1
24275 ac_status=$?
24276 grep -v '^ *+' conftest.er1 >conftest.err
24277 rm -f conftest.er1
24278 cat conftest.err >&5
24279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); } && {
24281 test -z "$ac_c_werror_flag" ||
24282 test ! -s conftest.err
24283 } && test -s conftest.$ac_objext; then
24284 ac_header_compiler=yes
24285 else
24286 $as_echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24289 ac_header_compiler=no
24290 fi
24292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24294 $as_echo "$ac_header_compiler" >&6; }
24296 # Is the header present?
24297 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
24298 $as_echo_n "checking cairo-svg.h presence... " >&6; }
24299 cat >conftest.$ac_ext <<_ACEOF
24300 /* confdefs.h. */
24301 _ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h. */
24305 #include <cairo-svg.h>
24306 _ACEOF
24307 if { (ac_try="$ac_cpp conftest.$ac_ext"
24308 case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24311 esac
24312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24313 $as_echo "$ac_try_echo") >&5
24314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24315 ac_status=$?
24316 grep -v '^ *+' conftest.er1 >conftest.err
24317 rm -f conftest.er1
24318 cat conftest.err >&5
24319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } >/dev/null && {
24321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24322 test ! -s conftest.err
24323 }; then
24324 ac_header_preproc=yes
24325 else
24326 $as_echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 ac_header_preproc=no
24330 fi
24332 rm -f conftest.err conftest.$ac_ext
24333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24334 $as_echo "$ac_header_preproc" >&6; }
24336 # So? What about this header?
24337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24338 yes:no: )
24339 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
24340 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24341 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
24342 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
24343 ac_header_preproc=yes
24344 ;;
24345 no:yes:* )
24346 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
24347 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
24348 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&5
24349 $as_echo "$as_me: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&2;}
24350 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
24351 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
24352 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&5
24353 $as_echo "$as_me: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&2;}
24354 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
24355 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
24356 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
24357 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
24359 ;;
24360 esac
24361 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
24362 $as_echo_n "checking for cairo-svg.h... " >&6; }
24363 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
24364 $as_echo_n "(cached) " >&6
24365 else
24366 ac_cv_header_cairo_svg_h=$ac_header_preproc
24367 fi
24368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
24369 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
24371 fi
24372 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
24373 EX_CHECK_STATE=YES
24374 fi
24378 fi
24380 else
24381 { $as_echo "$as_me:$LINENO: WARNING:
24382 ----------------------------------------------------------------------------
24383 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
24384 You may want to set the PKG_CONFIG_PATH variable to point to its
24385 location.
24386 ----------------------------------------------------------------------------
24387 " >&5
24388 $as_echo "$as_me: WARNING:
24389 ----------------------------------------------------------------------------
24390 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
24391 You may want to set the PKG_CONFIG_PATH variable to point to its
24392 location.
24393 ----------------------------------------------------------------------------
24394 " >&2;}
24395 fi
24396 fi
24397 fi
24399 if test ${EX_CHECK_STATE} = NO; then
24400 { $as_echo "$as_me:$LINENO: WARNING:
24401 ----------------------------------------------------------------------------
24402 * I could not find a working copy of cairo-svg. Check config.log for hints on why
24403 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
24404 so that compiler and the linker can find libcairo and its header files. If
24405 you have not installed cairo-svg, you can get it either from its original home on
24407 http://cairographics.org/releases/
24409 You can find also find an archive copy on
24411 http://oss.oetiker.ch/rrdtool/pub/libs
24413 The last tested version of cairo-svg is 1.10.2.
24415 LIBS=$LIBS
24416 LDFLAGS=$LDFLAGS
24417 CPPFLAGS=$CPPFLAGS
24419 ----------------------------------------------------------------------------
24420 " >&5
24421 $as_echo "$as_me: WARNING:
24422 ----------------------------------------------------------------------------
24423 * I could not find a working copy of cairo-svg. Check config.log for hints on why
24424 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
24425 so that compiler and the linker can find libcairo and its header files. If
24426 you have not installed cairo-svg, you can get it either from its original home on
24428 http://cairographics.org/releases/
24430 You can find also find an archive copy on
24432 http://oss.oetiker.ch/rrdtool/pub/libs
24434 The last tested version of cairo-svg is 1.10.2.
24436 LIBS=$LIBS
24437 LDFLAGS=$LDFLAGS
24438 CPPFLAGS=$CPPFLAGS
24440 ----------------------------------------------------------------------------
24441 " >&2;}
24442 EX_CHECK_ALL_ERR=YES
24443 LIBS="${ex_check_save_LIBS}"
24444 CPPFLAGS="${ex_check_save_CPPFLAGS}"
24445 LDFLAGS="${ex_check_save_LDFLAGS}"
24446 fi
24447 ac_ext=c
24448 ac_cpp='$CPP $CPPFLAGS'
24449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24456 ac_ext=c
24457 ac_cpp='$CPP $CPPFLAGS'
24458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24462 EX_CHECK_STATE=NO
24463 ex_check_save_LIBS=${LIBS}
24464 ex_check_save_CPPFLAGS=${CPPFLAGS}
24465 ex_check_save_LDFLAGS=${LDFLAGS}
24466 if test "x""" != "x"; then
24467 CPPFLAGS="$CPPFLAGS -I"""
24468 fi
24469 { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
24470 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
24471 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
24472 $as_echo_n "(cached) " >&6
24473 else
24474 ac_check_lib_save_LIBS=$LIBS
24475 LIBS="-lcairo $LIBS"
24476 cat >conftest.$ac_ext <<_ACEOF
24477 /* confdefs.h. */
24478 _ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24483 /* Override any GCC internal prototype to avoid an error.
24484 Use char because int might match the return type of a GCC
24485 builtin and then its argument prototype would still apply. */
24486 #ifdef __cplusplus
24487 extern "C"
24488 #endif
24489 char cairo_pdf_surface_create ();
24490 int
24491 main ()
24492 {
24493 return cairo_pdf_surface_create ();
24494 ;
24495 return 0;
24496 }
24497 _ACEOF
24498 rm -f conftest.$ac_objext conftest$ac_exeext
24499 if { (ac_try="$ac_link"
24500 case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24503 esac
24504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24505 $as_echo "$ac_try_echo") >&5
24506 (eval "$ac_link") 2>conftest.er1
24507 ac_status=$?
24508 grep -v '^ *+' conftest.er1 >conftest.err
24509 rm -f conftest.er1
24510 cat conftest.err >&5
24511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest$ac_exeext && {
24516 test "$cross_compiling" = yes ||
24517 $as_test_x conftest$ac_exeext
24518 }; then
24519 ac_cv_lib_cairo_cairo_pdf_surface_create=yes
24520 else
24521 $as_echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24524 ac_cv_lib_cairo_cairo_pdf_surface_create=no
24525 fi
24527 rm -rf conftest.dSYM
24528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24529 conftest$ac_exeext conftest.$ac_ext
24530 LIBS=$ac_check_lib_save_LIBS
24531 fi
24532 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
24533 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
24534 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
24536 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
24537 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
24538 $as_echo_n "checking for cairo-pdf.h... " >&6; }
24539 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
24540 $as_echo_n "(cached) " >&6
24541 fi
24542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
24543 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
24544 else
24545 # Is the header compilable?
24546 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
24547 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
24548 cat >conftest.$ac_ext <<_ACEOF
24549 /* confdefs.h. */
24550 _ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 $ac_includes_default
24555 #include <cairo-pdf.h>
24556 _ACEOF
24557 rm -f conftest.$ac_objext
24558 if { (ac_try="$ac_compile"
24559 case "(($ac_try" in
24560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561 *) ac_try_echo=$ac_try;;
24562 esac
24563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24564 $as_echo "$ac_try_echo") >&5
24565 (eval "$ac_compile") 2>conftest.er1
24566 ac_status=$?
24567 grep -v '^ *+' conftest.er1 >conftest.err
24568 rm -f conftest.er1
24569 cat conftest.err >&5
24570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); } && {
24572 test -z "$ac_c_werror_flag" ||
24573 test ! -s conftest.err
24574 } && test -s conftest.$ac_objext; then
24575 ac_header_compiler=yes
24576 else
24577 $as_echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24580 ac_header_compiler=no
24581 fi
24583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24585 $as_echo "$ac_header_compiler" >&6; }
24587 # Is the header present?
24588 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
24589 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
24590 cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h. */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h. */
24596 #include <cairo-pdf.h>
24597 _ACEOF
24598 if { (ac_try="$ac_cpp conftest.$ac_ext"
24599 case "(($ac_try" in
24600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601 *) ac_try_echo=$ac_try;;
24602 esac
24603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24604 $as_echo "$ac_try_echo") >&5
24605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24606 ac_status=$?
24607 grep -v '^ *+' conftest.er1 >conftest.err
24608 rm -f conftest.er1
24609 cat conftest.err >&5
24610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } >/dev/null && {
24612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24613 test ! -s conftest.err
24614 }; then
24615 ac_header_preproc=yes
24616 else
24617 $as_echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24620 ac_header_preproc=no
24621 fi
24623 rm -f conftest.err conftest.$ac_ext
24624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24625 $as_echo "$ac_header_preproc" >&6; }
24627 # So? What about this header?
24628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24629 yes:no: )
24630 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
24631 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24632 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
24633 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
24634 ac_header_preproc=yes
24635 ;;
24636 no:yes:* )
24637 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
24638 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
24639 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&5
24640 $as_echo "$as_me: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&2;}
24641 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
24642 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
24643 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&5
24644 $as_echo "$as_me: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&2;}
24645 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
24646 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
24647 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
24648 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
24650 ;;
24651 esac
24652 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
24653 $as_echo_n "checking for cairo-pdf.h... " >&6; }
24654 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
24655 $as_echo_n "(cached) " >&6
24656 else
24657 ac_cv_header_cairo_pdf_h=$ac_header_preproc
24658 fi
24659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
24660 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
24662 fi
24663 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
24664 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
24665 fi
24668 fi
24670 if test $EX_CHECK_STATE = NO; then
24671 for ac_prog in pkg-config
24672 do
24673 # Extract the first word of "$ac_prog", so it can be a program name with args.
24674 set dummy $ac_prog; ac_word=$2
24675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24676 $as_echo_n "checking for $ac_word... " >&6; }
24677 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
24678 $as_echo_n "(cached) " >&6
24679 else
24680 if test -n "$PKGCONFIG"; then
24681 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
24682 else
24683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24684 for as_dir in $PATH
24685 do
24686 IFS=$as_save_IFS
24687 test -z "$as_dir" && as_dir=.
24688 for ac_exec_ext in '' $ac_executable_extensions; do
24689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24690 ac_cv_prog_PKGCONFIG="$ac_prog"
24691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24692 break 2
24693 fi
24694 done
24695 done
24696 IFS=$as_save_IFS
24698 fi
24699 fi
24700 PKGCONFIG=$ac_cv_prog_PKGCONFIG
24701 if test -n "$PKGCONFIG"; then
24702 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
24703 $as_echo "$PKGCONFIG" >&6; }
24704 else
24705 { $as_echo "$as_me:$LINENO: result: no" >&5
24706 $as_echo "no" >&6; }
24707 fi
24710 test -n "$PKGCONFIG" && break
24711 done
24712 test -n "$PKGCONFIG" || PKGCONFIG="no"
24714 if test "$PKGCONFIG" != "no"; then
24715 if $PKGCONFIG --exists cairo-pdf; then
24716 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
24717 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
24718 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
24719 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
24720 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
24721 { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
24722 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
24723 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
24724 $as_echo_n "(cached) " >&6
24725 else
24726 ac_check_lib_save_LIBS=$LIBS
24727 LIBS="-lcairo $LIBS"
24728 cat >conftest.$ac_ext <<_ACEOF
24729 /* confdefs.h. */
24730 _ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h. */
24735 /* Override any GCC internal prototype to avoid an error.
24736 Use char because int might match the return type of a GCC
24737 builtin and then its argument prototype would still apply. */
24738 #ifdef __cplusplus
24739 extern "C"
24740 #endif
24741 char cairo_pdf_surface_create ();
24742 int
24743 main ()
24744 {
24745 return cairo_pdf_surface_create ();
24746 ;
24747 return 0;
24748 }
24749 _ACEOF
24750 rm -f conftest.$ac_objext conftest$ac_exeext
24751 if { (ac_try="$ac_link"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24755 esac
24756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24757 $as_echo "$ac_try_echo") >&5
24758 (eval "$ac_link") 2>conftest.er1
24759 ac_status=$?
24760 grep -v '^ *+' conftest.er1 >conftest.err
24761 rm -f conftest.er1
24762 cat conftest.err >&5
24763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); } && {
24765 test -z "$ac_c_werror_flag" ||
24766 test ! -s conftest.err
24767 } && test -s conftest$ac_exeext && {
24768 test "$cross_compiling" = yes ||
24769 $as_test_x conftest$ac_exeext
24770 }; then
24771 ac_cv_lib_cairo_cairo_pdf_surface_create=yes
24772 else
24773 $as_echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_cv_lib_cairo_cairo_pdf_surface_create=no
24777 fi
24779 rm -rf conftest.dSYM
24780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24781 conftest$ac_exeext conftest.$ac_ext
24782 LIBS=$ac_check_lib_save_LIBS
24783 fi
24784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
24785 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
24786 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
24788 unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
24789 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
24790 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
24791 $as_echo_n "checking for cairo-pdf.h... " >&6; }
24792 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
24793 $as_echo_n "(cached) " >&6
24794 fi
24795 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
24796 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
24797 else
24798 # Is the header compilable?
24799 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
24800 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
24801 cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h. */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24807 $ac_includes_default
24808 #include <cairo-pdf.h>
24809 _ACEOF
24810 rm -f conftest.$ac_objext
24811 if { (ac_try="$ac_compile"
24812 case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24815 esac
24816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24817 $as_echo "$ac_try_echo") >&5
24818 (eval "$ac_compile") 2>conftest.er1
24819 ac_status=$?
24820 grep -v '^ *+' conftest.er1 >conftest.err
24821 rm -f conftest.er1
24822 cat conftest.err >&5
24823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } && {
24825 test -z "$ac_c_werror_flag" ||
24826 test ! -s conftest.err
24827 } && test -s conftest.$ac_objext; then
24828 ac_header_compiler=yes
24829 else
24830 $as_echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ac_header_compiler=no
24834 fi
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24838 $as_echo "$ac_header_compiler" >&6; }
24840 # Is the header present?
24841 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
24842 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
24843 cat >conftest.$ac_ext <<_ACEOF
24844 /* confdefs.h. */
24845 _ACEOF
24846 cat confdefs.h >>conftest.$ac_ext
24847 cat >>conftest.$ac_ext <<_ACEOF
24848 /* end confdefs.h. */
24849 #include <cairo-pdf.h>
24850 _ACEOF
24851 if { (ac_try="$ac_cpp conftest.$ac_ext"
24852 case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24855 esac
24856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24857 $as_echo "$ac_try_echo") >&5
24858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24859 ac_status=$?
24860 grep -v '^ *+' conftest.er1 >conftest.err
24861 rm -f conftest.er1
24862 cat conftest.err >&5
24863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } >/dev/null && {
24865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24866 test ! -s conftest.err
24867 }; then
24868 ac_header_preproc=yes
24869 else
24870 $as_echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24873 ac_header_preproc=no
24874 fi
24876 rm -f conftest.err conftest.$ac_ext
24877 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24878 $as_echo "$ac_header_preproc" >&6; }
24880 # So? What about this header?
24881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24882 yes:no: )
24883 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
24884 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24885 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
24886 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
24887 ac_header_preproc=yes
24888 ;;
24889 no:yes:* )
24890 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
24891 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
24892 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&5
24893 $as_echo "$as_me: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&2;}
24894 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
24895 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
24896 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&5
24897 $as_echo "$as_me: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&2;}
24898 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
24899 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
24900 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
24901 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
24903 ;;
24904 esac
24905 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
24906 $as_echo_n "checking for cairo-pdf.h... " >&6; }
24907 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
24908 $as_echo_n "(cached) " >&6
24909 else
24910 ac_cv_header_cairo_pdf_h=$ac_header_preproc
24911 fi
24912 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
24913 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
24915 fi
24916 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
24917 EX_CHECK_STATE=YES
24918 fi
24922 fi
24924 else
24925 { $as_echo "$as_me:$LINENO: WARNING:
24926 ----------------------------------------------------------------------------
24927 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
24928 You may want to set the PKG_CONFIG_PATH variable to point to its
24929 location.
24930 ----------------------------------------------------------------------------
24931 " >&5
24932 $as_echo "$as_me: WARNING:
24933 ----------------------------------------------------------------------------
24934 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
24935 You may want to set the PKG_CONFIG_PATH variable to point to its
24936 location.
24937 ----------------------------------------------------------------------------
24938 " >&2;}
24939 fi
24940 fi
24941 fi
24943 if test ${EX_CHECK_STATE} = NO; then
24944 { $as_echo "$as_me:$LINENO: WARNING:
24945 ----------------------------------------------------------------------------
24946 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
24947 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
24948 so that compiler and the linker can find libcairo and its header files. If
24949 you have not installed cairo-pdf, you can get it either from its original home on
24951 http://cairographics.org/releases/
24953 You can find also find an archive copy on
24955 http://oss.oetiker.ch/rrdtool/pub/libs
24957 The last tested version of cairo-pdf is 1.10.2.
24959 LIBS=$LIBS
24960 LDFLAGS=$LDFLAGS
24961 CPPFLAGS=$CPPFLAGS
24963 ----------------------------------------------------------------------------
24964 " >&5
24965 $as_echo "$as_me: WARNING:
24966 ----------------------------------------------------------------------------
24967 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
24968 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
24969 so that compiler and the linker can find libcairo and its header files. If
24970 you have not installed cairo-pdf, you can get it either from its original home on
24972 http://cairographics.org/releases/
24974 You can find also find an archive copy on
24976 http://oss.oetiker.ch/rrdtool/pub/libs
24978 The last tested version of cairo-pdf is 1.10.2.
24980 LIBS=$LIBS
24981 LDFLAGS=$LDFLAGS
24982 CPPFLAGS=$CPPFLAGS
24984 ----------------------------------------------------------------------------
24985 " >&2;}
24986 EX_CHECK_ALL_ERR=YES
24987 LIBS="${ex_check_save_LIBS}"
24988 CPPFLAGS="${ex_check_save_CPPFLAGS}"
24989 LDFLAGS="${ex_check_save_LDFLAGS}"
24990 fi
24991 ac_ext=c
24992 ac_cpp='$CPP $CPPFLAGS'
24993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25000 ac_ext=c
25001 ac_cpp='$CPP $CPPFLAGS'
25002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25006 EX_CHECK_STATE=NO
25007 ex_check_save_LIBS=${LIBS}
25008 ex_check_save_CPPFLAGS=${CPPFLAGS}
25009 ex_check_save_LDFLAGS=${LDFLAGS}
25010 if test "x""" != "x"; then
25011 CPPFLAGS="$CPPFLAGS -I"""
25012 fi
25013 { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
25014 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
25015 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
25016 $as_echo_n "(cached) " >&6
25017 else
25018 ac_check_lib_save_LIBS=$LIBS
25019 LIBS="-lcairo $LIBS"
25020 cat >conftest.$ac_ext <<_ACEOF
25021 /* confdefs.h. */
25022 _ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h. */
25027 /* Override any GCC internal prototype to avoid an error.
25028 Use char because int might match the return type of a GCC
25029 builtin and then its argument prototype would still apply. */
25030 #ifdef __cplusplus
25031 extern "C"
25032 #endif
25033 char cairo_ps_surface_create ();
25034 int
25035 main ()
25036 {
25037 return cairo_ps_surface_create ();
25038 ;
25039 return 0;
25040 }
25041 _ACEOF
25042 rm -f conftest.$ac_objext conftest$ac_exeext
25043 if { (ac_try="$ac_link"
25044 case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25047 esac
25048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25049 $as_echo "$ac_try_echo") >&5
25050 (eval "$ac_link") 2>conftest.er1
25051 ac_status=$?
25052 grep -v '^ *+' conftest.er1 >conftest.err
25053 rm -f conftest.er1
25054 cat conftest.err >&5
25055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } && {
25057 test -z "$ac_c_werror_flag" ||
25058 test ! -s conftest.err
25059 } && test -s conftest$ac_exeext && {
25060 test "$cross_compiling" = yes ||
25061 $as_test_x conftest$ac_exeext
25062 }; then
25063 ac_cv_lib_cairo_cairo_ps_surface_create=yes
25064 else
25065 $as_echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25068 ac_cv_lib_cairo_cairo_ps_surface_create=no
25069 fi
25071 rm -rf conftest.dSYM
25072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25073 conftest$ac_exeext conftest.$ac_ext
25074 LIBS=$ac_check_lib_save_LIBS
25075 fi
25076 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
25077 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
25078 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
25080 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
25081 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
25082 $as_echo_n "checking for cairo-ps.h... " >&6; }
25083 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
25084 $as_echo_n "(cached) " >&6
25085 fi
25086 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
25087 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
25088 else
25089 # Is the header compilable?
25090 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
25091 $as_echo_n "checking cairo-ps.h usability... " >&6; }
25092 cat >conftest.$ac_ext <<_ACEOF
25093 /* confdefs.h. */
25094 _ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h. */
25098 $ac_includes_default
25099 #include <cairo-ps.h>
25100 _ACEOF
25101 rm -f conftest.$ac_objext
25102 if { (ac_try="$ac_compile"
25103 case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25106 esac
25107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25108 $as_echo "$ac_try_echo") >&5
25109 (eval "$ac_compile") 2>conftest.er1
25110 ac_status=$?
25111 grep -v '^ *+' conftest.er1 >conftest.err
25112 rm -f conftest.er1
25113 cat conftest.err >&5
25114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } && {
25116 test -z "$ac_c_werror_flag" ||
25117 test ! -s conftest.err
25118 } && test -s conftest.$ac_objext; then
25119 ac_header_compiler=yes
25120 else
25121 $as_echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25124 ac_header_compiler=no
25125 fi
25127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25128 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25129 $as_echo "$ac_header_compiler" >&6; }
25131 # Is the header present?
25132 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
25133 $as_echo_n "checking cairo-ps.h presence... " >&6; }
25134 cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h. */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25140 #include <cairo-ps.h>
25141 _ACEOF
25142 if { (ac_try="$ac_cpp conftest.$ac_ext"
25143 case "(($ac_try" in
25144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145 *) ac_try_echo=$ac_try;;
25146 esac
25147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25148 $as_echo "$ac_try_echo") >&5
25149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25150 ac_status=$?
25151 grep -v '^ *+' conftest.er1 >conftest.err
25152 rm -f conftest.er1
25153 cat conftest.err >&5
25154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } >/dev/null && {
25156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25157 test ! -s conftest.err
25158 }; then
25159 ac_header_preproc=yes
25160 else
25161 $as_echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25164 ac_header_preproc=no
25165 fi
25167 rm -f conftest.err conftest.$ac_ext
25168 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25169 $as_echo "$ac_header_preproc" >&6; }
25171 # So? What about this header?
25172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25173 yes:no: )
25174 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
25175 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25176 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
25177 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
25178 ac_header_preproc=yes
25179 ;;
25180 no:yes:* )
25181 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
25182 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
25183 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&5
25184 $as_echo "$as_me: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&2;}
25185 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
25186 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
25187 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&5
25188 $as_echo "$as_me: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&2;}
25189 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
25190 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
25191 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
25192 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
25194 ;;
25195 esac
25196 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
25197 $as_echo_n "checking for cairo-ps.h... " >&6; }
25198 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
25199 $as_echo_n "(cached) " >&6
25200 else
25201 ac_cv_header_cairo_ps_h=$ac_header_preproc
25202 fi
25203 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
25204 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
25206 fi
25207 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
25208 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
25209 fi
25212 fi
25214 if test $EX_CHECK_STATE = NO; then
25215 for ac_prog in pkg-config
25216 do
25217 # Extract the first word of "$ac_prog", so it can be a program name with args.
25218 set dummy $ac_prog; ac_word=$2
25219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25220 $as_echo_n "checking for $ac_word... " >&6; }
25221 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
25222 $as_echo_n "(cached) " >&6
25223 else
25224 if test -n "$PKGCONFIG"; then
25225 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
25226 else
25227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25228 for as_dir in $PATH
25229 do
25230 IFS=$as_save_IFS
25231 test -z "$as_dir" && as_dir=.
25232 for ac_exec_ext in '' $ac_executable_extensions; do
25233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25234 ac_cv_prog_PKGCONFIG="$ac_prog"
25235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25236 break 2
25237 fi
25238 done
25239 done
25240 IFS=$as_save_IFS
25242 fi
25243 fi
25244 PKGCONFIG=$ac_cv_prog_PKGCONFIG
25245 if test -n "$PKGCONFIG"; then
25246 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
25247 $as_echo "$PKGCONFIG" >&6; }
25248 else
25249 { $as_echo "$as_me:$LINENO: result: no" >&5
25250 $as_echo "no" >&6; }
25251 fi
25254 test -n "$PKGCONFIG" && break
25255 done
25256 test -n "$PKGCONFIG" || PKGCONFIG="no"
25258 if test "$PKGCONFIG" != "no"; then
25259 if $PKGCONFIG --exists cairo-ps; then
25260 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
25261 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
25262 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
25263 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
25264 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
25265 { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
25266 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
25267 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
25268 $as_echo_n "(cached) " >&6
25269 else
25270 ac_check_lib_save_LIBS=$LIBS
25271 LIBS="-lcairo $LIBS"
25272 cat >conftest.$ac_ext <<_ACEOF
25273 /* confdefs.h. */
25274 _ACEOF
25275 cat confdefs.h >>conftest.$ac_ext
25276 cat >>conftest.$ac_ext <<_ACEOF
25277 /* end confdefs.h. */
25279 /* Override any GCC internal prototype to avoid an error.
25280 Use char because int might match the return type of a GCC
25281 builtin and then its argument prototype would still apply. */
25282 #ifdef __cplusplus
25283 extern "C"
25284 #endif
25285 char cairo_ps_surface_create ();
25286 int
25287 main ()
25288 {
25289 return cairo_ps_surface_create ();
25290 ;
25291 return 0;
25292 }
25293 _ACEOF
25294 rm -f conftest.$ac_objext conftest$ac_exeext
25295 if { (ac_try="$ac_link"
25296 case "(($ac_try" in
25297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298 *) ac_try_echo=$ac_try;;
25299 esac
25300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25301 $as_echo "$ac_try_echo") >&5
25302 (eval "$ac_link") 2>conftest.er1
25303 ac_status=$?
25304 grep -v '^ *+' conftest.er1 >conftest.err
25305 rm -f conftest.er1
25306 cat conftest.err >&5
25307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); } && {
25309 test -z "$ac_c_werror_flag" ||
25310 test ! -s conftest.err
25311 } && test -s conftest$ac_exeext && {
25312 test "$cross_compiling" = yes ||
25313 $as_test_x conftest$ac_exeext
25314 }; then
25315 ac_cv_lib_cairo_cairo_ps_surface_create=yes
25316 else
25317 $as_echo "$as_me: failed program was:" >&5
25318 sed 's/^/| /' conftest.$ac_ext >&5
25320 ac_cv_lib_cairo_cairo_ps_surface_create=no
25321 fi
25323 rm -rf conftest.dSYM
25324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25325 conftest$ac_exeext conftest.$ac_ext
25326 LIBS=$ac_check_lib_save_LIBS
25327 fi
25328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
25329 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
25330 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
25332 unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
25333 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
25334 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
25335 $as_echo_n "checking for cairo-ps.h... " >&6; }
25336 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
25337 $as_echo_n "(cached) " >&6
25338 fi
25339 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
25340 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
25341 else
25342 # Is the header compilable?
25343 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
25344 $as_echo_n "checking cairo-ps.h usability... " >&6; }
25345 cat >conftest.$ac_ext <<_ACEOF
25346 /* confdefs.h. */
25347 _ACEOF
25348 cat confdefs.h >>conftest.$ac_ext
25349 cat >>conftest.$ac_ext <<_ACEOF
25350 /* end confdefs.h. */
25351 $ac_includes_default
25352 #include <cairo-ps.h>
25353 _ACEOF
25354 rm -f conftest.$ac_objext
25355 if { (ac_try="$ac_compile"
25356 case "(($ac_try" in
25357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358 *) ac_try_echo=$ac_try;;
25359 esac
25360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25361 $as_echo "$ac_try_echo") >&5
25362 (eval "$ac_compile") 2>conftest.er1
25363 ac_status=$?
25364 grep -v '^ *+' conftest.er1 >conftest.err
25365 rm -f conftest.er1
25366 cat conftest.err >&5
25367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); } && {
25369 test -z "$ac_c_werror_flag" ||
25370 test ! -s conftest.err
25371 } && test -s conftest.$ac_objext; then
25372 ac_header_compiler=yes
25373 else
25374 $as_echo "$as_me: failed program was:" >&5
25375 sed 's/^/| /' conftest.$ac_ext >&5
25377 ac_header_compiler=no
25378 fi
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25382 $as_echo "$ac_header_compiler" >&6; }
25384 # Is the header present?
25385 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
25386 $as_echo_n "checking cairo-ps.h presence... " >&6; }
25387 cat >conftest.$ac_ext <<_ACEOF
25388 /* confdefs.h. */
25389 _ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h. */
25393 #include <cairo-ps.h>
25394 _ACEOF
25395 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
25409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25410 test ! -s conftest.err
25411 }; then
25412 ac_header_preproc=yes
25413 else
25414 $as_echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25417 ac_header_preproc=no
25418 fi
25420 rm -f conftest.err conftest.$ac_ext
25421 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25422 $as_echo "$ac_header_preproc" >&6; }
25424 # So? What about this header?
25425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25426 yes:no: )
25427 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
25428 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25429 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
25430 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
25431 ac_header_preproc=yes
25432 ;;
25433 no:yes:* )
25434 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
25435 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
25436 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&5
25437 $as_echo "$as_me: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&2;}
25438 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
25439 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
25440 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&5
25441 $as_echo "$as_me: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&2;}
25442 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
25443 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
25444 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
25445 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
25447 ;;
25448 esac
25449 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
25450 $as_echo_n "checking for cairo-ps.h... " >&6; }
25451 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
25452 $as_echo_n "(cached) " >&6
25453 else
25454 ac_cv_header_cairo_ps_h=$ac_header_preproc
25455 fi
25456 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
25457 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
25459 fi
25460 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
25461 EX_CHECK_STATE=YES
25462 fi
25466 fi
25468 else
25469 { $as_echo "$as_me:$LINENO: WARNING:
25470 ----------------------------------------------------------------------------
25471 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
25472 You may want to set the PKG_CONFIG_PATH variable to point to its
25473 location.
25474 ----------------------------------------------------------------------------
25475 " >&5
25476 $as_echo "$as_me: WARNING:
25477 ----------------------------------------------------------------------------
25478 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
25479 You may want to set the PKG_CONFIG_PATH variable to point to its
25480 location.
25481 ----------------------------------------------------------------------------
25482 " >&2;}
25483 fi
25484 fi
25485 fi
25487 if test ${EX_CHECK_STATE} = NO; then
25488 { $as_echo "$as_me:$LINENO: WARNING:
25489 ----------------------------------------------------------------------------
25490 * I could not find a working copy of cairo-ps. Check config.log for hints on why
25491 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
25492 so that compiler and the linker can find libcairo and its header files. If
25493 you have not installed cairo-ps, you can get it either from its original home on
25495 http://cairographics.org/releases/
25497 You can find also find an archive copy on
25499 http://oss.oetiker.ch/rrdtool/pub/libs
25501 The last tested version of cairo-ps is 1.10.2.
25503 LIBS=$LIBS
25504 LDFLAGS=$LDFLAGS
25505 CPPFLAGS=$CPPFLAGS
25507 ----------------------------------------------------------------------------
25508 " >&5
25509 $as_echo "$as_me: WARNING:
25510 ----------------------------------------------------------------------------
25511 * I could not find a working copy of cairo-ps. Check config.log for hints on why
25512 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
25513 so that compiler and the linker can find libcairo and its header files. If
25514 you have not installed cairo-ps, you can get it either from its original home on
25516 http://cairographics.org/releases/
25518 You can find also find an archive copy on
25520 http://oss.oetiker.ch/rrdtool/pub/libs
25522 The last tested version of cairo-ps is 1.10.2.
25524 LIBS=$LIBS
25525 LDFLAGS=$LDFLAGS
25526 CPPFLAGS=$CPPFLAGS
25528 ----------------------------------------------------------------------------
25529 " >&2;}
25530 EX_CHECK_ALL_ERR=YES
25531 LIBS="${ex_check_save_LIBS}"
25532 CPPFLAGS="${ex_check_save_CPPFLAGS}"
25533 LDFLAGS="${ex_check_save_LDFLAGS}"
25534 fi
25535 ac_ext=c
25536 ac_cpp='$CPP $CPPFLAGS'
25537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25544 ac_ext=c
25545 ac_cpp='$CPP $CPPFLAGS'
25546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25550 EX_CHECK_STATE=NO
25551 ex_check_save_LIBS=${LIBS}
25552 ex_check_save_CPPFLAGS=${CPPFLAGS}
25553 ex_check_save_LDFLAGS=${LDFLAGS}
25554 if test "x""" != "x"; then
25555 CPPFLAGS="$CPPFLAGS -I"""
25556 fi
25557 { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpangocairo-1.0" >&5
25558 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... " >&6; }
25559 if test "${ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options+set}" = set; then
25560 $as_echo_n "(cached) " >&6
25561 else
25562 ac_check_lib_save_LIBS=$LIBS
25563 LIBS="-lpangocairo-1.0 $LIBS"
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. */
25571 /* Override any GCC internal prototype to avoid an error.
25572 Use char because int might match the return type of a GCC
25573 builtin and then its argument prototype would still apply. */
25574 #ifdef __cplusplus
25575 extern "C"
25576 #endif
25577 char pango_cairo_context_set_font_options ();
25578 int
25579 main ()
25580 {
25581 return pango_cairo_context_set_font_options ();
25582 ;
25583 return 0;
25584 }
25585 _ACEOF
25586 rm -f conftest.$ac_objext conftest$ac_exeext
25587 if { (ac_try="$ac_link"
25588 case "(($ac_try" in
25589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590 *) ac_try_echo=$ac_try;;
25591 esac
25592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25593 $as_echo "$ac_try_echo") >&5
25594 (eval "$ac_link") 2>conftest.er1
25595 ac_status=$?
25596 grep -v '^ *+' conftest.er1 >conftest.err
25597 rm -f conftest.er1
25598 cat conftest.err >&5
25599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } && {
25601 test -z "$ac_c_werror_flag" ||
25602 test ! -s conftest.err
25603 } && test -s conftest$ac_exeext && {
25604 test "$cross_compiling" = yes ||
25605 $as_test_x conftest$ac_exeext
25606 }; then
25607 ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=yes
25608 else
25609 $as_echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25612 ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=no
25613 fi
25615 rm -rf conftest.dSYM
25616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25617 conftest$ac_exeext conftest.$ac_ext
25618 LIBS=$ac_check_lib_save_LIBS
25619 fi
25620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&5
25621 $as_echo "$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&6; }
25622 if test "x$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" = x""yes; then
25624 if test "${ac_cv_header_pango_pango_h+set}" = set; then
25625 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
25626 $as_echo_n "checking for pango/pango.h... " >&6; }
25627 if test "${ac_cv_header_pango_pango_h+set}" = set; then
25628 $as_echo_n "(cached) " >&6
25629 fi
25630 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
25631 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
25632 else
25633 # Is the header compilable?
25634 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
25635 $as_echo_n "checking pango/pango.h usability... " >&6; }
25636 cat >conftest.$ac_ext <<_ACEOF
25637 /* confdefs.h. */
25638 _ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25642 $ac_includes_default
25643 #include <pango/pango.h>
25644 _ACEOF
25645 rm -f conftest.$ac_objext
25646 if { (ac_try="$ac_compile"
25647 case "(($ac_try" in
25648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649 *) ac_try_echo=$ac_try;;
25650 esac
25651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25652 $as_echo "$ac_try_echo") >&5
25653 (eval "$ac_compile") 2>conftest.er1
25654 ac_status=$?
25655 grep -v '^ *+' conftest.er1 >conftest.err
25656 rm -f conftest.er1
25657 cat conftest.err >&5
25658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } && {
25660 test -z "$ac_c_werror_flag" ||
25661 test ! -s conftest.err
25662 } && test -s conftest.$ac_objext; then
25663 ac_header_compiler=yes
25664 else
25665 $as_echo "$as_me: failed program was:" >&5
25666 sed 's/^/| /' conftest.$ac_ext >&5
25668 ac_header_compiler=no
25669 fi
25671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25673 $as_echo "$ac_header_compiler" >&6; }
25675 # Is the header present?
25676 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
25677 $as_echo_n "checking pango/pango.h presence... " >&6; }
25678 cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h. */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 #include <pango/pango.h>
25685 _ACEOF
25686 if { (ac_try="$ac_cpp conftest.$ac_ext"
25687 case "(($ac_try" in
25688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689 *) ac_try_echo=$ac_try;;
25690 esac
25691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25692 $as_echo "$ac_try_echo") >&5
25693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25694 ac_status=$?
25695 grep -v '^ *+' conftest.er1 >conftest.err
25696 rm -f conftest.er1
25697 cat conftest.err >&5
25698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } >/dev/null && {
25700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25701 test ! -s conftest.err
25702 }; then
25703 ac_header_preproc=yes
25704 else
25705 $as_echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25708 ac_header_preproc=no
25709 fi
25711 rm -f conftest.err conftest.$ac_ext
25712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25713 $as_echo "$ac_header_preproc" >&6; }
25715 # So? What about this header?
25716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25717 yes:no: )
25718 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
25719 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25720 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
25721 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
25722 ac_header_preproc=yes
25723 ;;
25724 no:yes:* )
25725 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
25726 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
25727 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: check for missing prerequisite headers?" >&5
25728 $as_echo "$as_me: WARNING: pango/pango.h: check for missing prerequisite headers?" >&2;}
25729 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
25730 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
25731 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&5
25732 $as_echo "$as_me: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&2;}
25733 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
25734 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
25735 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
25736 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
25738 ;;
25739 esac
25740 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
25741 $as_echo_n "checking for pango/pango.h... " >&6; }
25742 if test "${ac_cv_header_pango_pango_h+set}" = set; then
25743 $as_echo_n "(cached) " >&6
25744 else
25745 ac_cv_header_pango_pango_h=$ac_header_preproc
25746 fi
25747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
25748 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
25750 fi
25751 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
25752 LIBS="-lpangocairo-1.0 ${LIBS}";EX_CHECK_STATE=YES
25753 fi
25756 fi
25758 if test $EX_CHECK_STATE = NO; then
25759 for ac_prog in pkg-config
25760 do
25761 # Extract the first word of "$ac_prog", so it can be a program name with args.
25762 set dummy $ac_prog; ac_word=$2
25763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25764 $as_echo_n "checking for $ac_word... " >&6; }
25765 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
25766 $as_echo_n "(cached) " >&6
25767 else
25768 if test -n "$PKGCONFIG"; then
25769 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
25770 else
25771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25772 for as_dir in $PATH
25773 do
25774 IFS=$as_save_IFS
25775 test -z "$as_dir" && as_dir=.
25776 for ac_exec_ext in '' $ac_executable_extensions; do
25777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25778 ac_cv_prog_PKGCONFIG="$ac_prog"
25779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25780 break 2
25781 fi
25782 done
25783 done
25784 IFS=$as_save_IFS
25786 fi
25787 fi
25788 PKGCONFIG=$ac_cv_prog_PKGCONFIG
25789 if test -n "$PKGCONFIG"; then
25790 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
25791 $as_echo "$PKGCONFIG" >&6; }
25792 else
25793 { $as_echo "$as_me:$LINENO: result: no" >&5
25794 $as_echo "no" >&6; }
25795 fi
25798 test -n "$PKGCONFIG" && break
25799 done
25800 test -n "$PKGCONFIG" || PKGCONFIG="no"
25802 if test "$PKGCONFIG" != "no"; then
25803 if $PKGCONFIG --exists pangocairo; then
25804 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
25805 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
25806 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
25807 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
25808 unset ac_cv_lib_`echo pangocairo-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
25809 { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpangocairo-1.0" >&5
25810 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... " >&6; }
25811 if test "${ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options+set}" = set; then
25812 $as_echo_n "(cached) " >&6
25813 else
25814 ac_check_lib_save_LIBS=$LIBS
25815 LIBS="-lpangocairo-1.0 $LIBS"
25816 cat >conftest.$ac_ext <<_ACEOF
25817 /* confdefs.h. */
25818 _ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h. */
25823 /* Override any GCC internal prototype to avoid an error.
25824 Use char because int might match the return type of a GCC
25825 builtin and then its argument prototype would still apply. */
25826 #ifdef __cplusplus
25827 extern "C"
25828 #endif
25829 char pango_cairo_context_set_font_options ();
25830 int
25831 main ()
25832 {
25833 return pango_cairo_context_set_font_options ();
25834 ;
25835 return 0;
25836 }
25837 _ACEOF
25838 rm -f conftest.$ac_objext conftest$ac_exeext
25839 if { (ac_try="$ac_link"
25840 case "(($ac_try" in
25841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842 *) ac_try_echo=$ac_try;;
25843 esac
25844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25845 $as_echo "$ac_try_echo") >&5
25846 (eval "$ac_link") 2>conftest.er1
25847 ac_status=$?
25848 grep -v '^ *+' conftest.er1 >conftest.err
25849 rm -f conftest.er1
25850 cat conftest.err >&5
25851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } && {
25853 test -z "$ac_c_werror_flag" ||
25854 test ! -s conftest.err
25855 } && test -s conftest$ac_exeext && {
25856 test "$cross_compiling" = yes ||
25857 $as_test_x conftest$ac_exeext
25858 }; then
25859 ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=yes
25860 else
25861 $as_echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=no
25865 fi
25867 rm -rf conftest.dSYM
25868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25869 conftest$ac_exeext conftest.$ac_ext
25870 LIBS=$ac_check_lib_save_LIBS
25871 fi
25872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&5
25873 $as_echo "$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&6; }
25874 if test "x$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" = x""yes; then
25876 unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
25877 if test "${ac_cv_header_pango_pango_h+set}" = set; then
25878 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
25879 $as_echo_n "checking for pango/pango.h... " >&6; }
25880 if test "${ac_cv_header_pango_pango_h+set}" = set; then
25881 $as_echo_n "(cached) " >&6
25882 fi
25883 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
25884 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
25885 else
25886 # Is the header compilable?
25887 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
25888 $as_echo_n "checking pango/pango.h usability... " >&6; }
25889 cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h. */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 $ac_includes_default
25896 #include <pango/pango.h>
25897 _ACEOF
25898 rm -f conftest.$ac_objext
25899 if { (ac_try="$ac_compile"
25900 case "(($ac_try" in
25901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25902 *) ac_try_echo=$ac_try;;
25903 esac
25904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25905 $as_echo "$ac_try_echo") >&5
25906 (eval "$ac_compile") 2>conftest.er1
25907 ac_status=$?
25908 grep -v '^ *+' conftest.er1 >conftest.err
25909 rm -f conftest.er1
25910 cat conftest.err >&5
25911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); } && {
25913 test -z "$ac_c_werror_flag" ||
25914 test ! -s conftest.err
25915 } && test -s conftest.$ac_objext; then
25916 ac_header_compiler=yes
25917 else
25918 $as_echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 ac_header_compiler=no
25922 fi
25924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25925 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25926 $as_echo "$ac_header_compiler" >&6; }
25928 # Is the header present?
25929 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
25930 $as_echo_n "checking pango/pango.h presence... " >&6; }
25931 cat >conftest.$ac_ext <<_ACEOF
25932 /* confdefs.h. */
25933 _ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h. */
25937 #include <pango/pango.h>
25938 _ACEOF
25939 if { (ac_try="$ac_cpp conftest.$ac_ext"
25940 case "(($ac_try" in
25941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25942 *) ac_try_echo=$ac_try;;
25943 esac
25944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25945 $as_echo "$ac_try_echo") >&5
25946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25947 ac_status=$?
25948 grep -v '^ *+' conftest.er1 >conftest.err
25949 rm -f conftest.er1
25950 cat conftest.err >&5
25951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); } >/dev/null && {
25953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25954 test ! -s conftest.err
25955 }; then
25956 ac_header_preproc=yes
25957 else
25958 $as_echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25961 ac_header_preproc=no
25962 fi
25964 rm -f conftest.err conftest.$ac_ext
25965 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25966 $as_echo "$ac_header_preproc" >&6; }
25968 # So? What about this header?
25969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25970 yes:no: )
25971 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
25972 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25973 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
25974 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
25975 ac_header_preproc=yes
25976 ;;
25977 no:yes:* )
25978 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
25979 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
25980 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: check for missing prerequisite headers?" >&5
25981 $as_echo "$as_me: WARNING: pango/pango.h: check for missing prerequisite headers?" >&2;}
25982 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
25983 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
25984 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&5
25985 $as_echo "$as_me: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&2;}
25986 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
25987 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
25988 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
25989 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
25991 ;;
25992 esac
25993 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
25994 $as_echo_n "checking for pango/pango.h... " >&6; }
25995 if test "${ac_cv_header_pango_pango_h+set}" = set; then
25996 $as_echo_n "(cached) " >&6
25997 else
25998 ac_cv_header_pango_pango_h=$ac_header_preproc
25999 fi
26000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
26001 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
26003 fi
26004 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
26005 EX_CHECK_STATE=YES
26006 fi
26010 fi
26012 else
26013 { $as_echo "$as_me:$LINENO: WARNING:
26014 ----------------------------------------------------------------------------
26015 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
26016 You may want to set the PKG_CONFIG_PATH variable to point to its
26017 location.
26018 ----------------------------------------------------------------------------
26019 " >&5
26020 $as_echo "$as_me: WARNING:
26021 ----------------------------------------------------------------------------
26022 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
26023 You may want to set the PKG_CONFIG_PATH variable to point to its
26024 location.
26025 ----------------------------------------------------------------------------
26026 " >&2;}
26027 fi
26028 fi
26029 fi
26031 if test ${EX_CHECK_STATE} = NO; then
26032 { $as_echo "$as_me:$LINENO: WARNING:
26033 ----------------------------------------------------------------------------
26034 * I could not find a working copy of pangocairo. Check config.log for hints on why
26035 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26036 so that compiler and the linker can find libpangocairo-1.0 and its header files. If
26037 you have not installed pangocairo, you can get it either from its original home on
26039 http://ftp.gnome.org/pub/GNOME/sources/pango/1.28
26041 You can find also find an archive copy on
26043 http://oss.oetiker.ch/rrdtool/pub/libs
26045 The last tested version of pangocairo is 1.28.4.
26047 LIBS=$LIBS
26048 LDFLAGS=$LDFLAGS
26049 CPPFLAGS=$CPPFLAGS
26051 ----------------------------------------------------------------------------
26052 " >&5
26053 $as_echo "$as_me: WARNING:
26054 ----------------------------------------------------------------------------
26055 * I could not find a working copy of pangocairo. Check config.log for hints on why
26056 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26057 so that compiler and the linker can find libpangocairo-1.0 and its header files. If
26058 you have not installed pangocairo, you can get it either from its original home on
26060 http://ftp.gnome.org/pub/GNOME/sources/pango/1.28
26062 You can find also find an archive copy on
26064 http://oss.oetiker.ch/rrdtool/pub/libs
26066 The last tested version of pangocairo is 1.28.4.
26068 LIBS=$LIBS
26069 LDFLAGS=$LDFLAGS
26070 CPPFLAGS=$CPPFLAGS
26072 ----------------------------------------------------------------------------
26073 " >&2;}
26074 EX_CHECK_ALL_ERR=YES
26075 LIBS="${ex_check_save_LIBS}"
26076 CPPFLAGS="${ex_check_save_CPPFLAGS}"
26077 LDFLAGS="${ex_check_save_LDFLAGS}"
26078 fi
26079 ac_ext=c
26080 ac_cpp='$CPP $CPPFLAGS'
26081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26088 fi
26090 ac_ext=c
26091 ac_cpp='$CPP $CPPFLAGS'
26092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26096 EX_CHECK_STATE=NO
26097 ex_check_save_LIBS=${LIBS}
26098 ex_check_save_CPPFLAGS=${CPPFLAGS}
26099 ex_check_save_LDFLAGS=${LDFLAGS}
26100 if test "x""" != "x"; then
26101 CPPFLAGS="$CPPFLAGS -I"""
26102 fi
26103 { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
26104 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
26105 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
26106 $as_echo_n "(cached) " >&6
26107 else
26108 ac_check_lib_save_LIBS=$LIBS
26109 LIBS="-lglib-2.0 $LIBS"
26110 cat >conftest.$ac_ext <<_ACEOF
26111 /* confdefs.h. */
26112 _ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26117 /* Override any GCC internal prototype to avoid an error.
26118 Use char because int might match the return type of a GCC
26119 builtin and then its argument prototype would still apply. */
26120 #ifdef __cplusplus
26121 extern "C"
26122 #endif
26123 char glib_check_version ();
26124 int
26125 main ()
26126 {
26127 return glib_check_version ();
26128 ;
26129 return 0;
26130 }
26131 _ACEOF
26132 rm -f conftest.$ac_objext conftest$ac_exeext
26133 if { (ac_try="$ac_link"
26134 case "(($ac_try" in
26135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26136 *) ac_try_echo=$ac_try;;
26137 esac
26138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26139 $as_echo "$ac_try_echo") >&5
26140 (eval "$ac_link") 2>conftest.er1
26141 ac_status=$?
26142 grep -v '^ *+' conftest.er1 >conftest.err
26143 rm -f conftest.er1
26144 cat conftest.err >&5
26145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); } && {
26147 test -z "$ac_c_werror_flag" ||
26148 test ! -s conftest.err
26149 } && test -s conftest$ac_exeext && {
26150 test "$cross_compiling" = yes ||
26151 $as_test_x conftest$ac_exeext
26152 }; then
26153 ac_cv_lib_glib_2_0_glib_check_version=yes
26154 else
26155 $as_echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26158 ac_cv_lib_glib_2_0_glib_check_version=no
26159 fi
26161 rm -rf conftest.dSYM
26162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26163 conftest$ac_exeext conftest.$ac_ext
26164 LIBS=$ac_check_lib_save_LIBS
26165 fi
26166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
26167 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
26168 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
26170 if test "${ac_cv_header_glib_h+set}" = set; then
26171 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
26172 $as_echo_n "checking for glib.h... " >&6; }
26173 if test "${ac_cv_header_glib_h+set}" = set; then
26174 $as_echo_n "(cached) " >&6
26175 fi
26176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
26177 $as_echo "$ac_cv_header_glib_h" >&6; }
26178 else
26179 # Is the header compilable?
26180 { $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
26181 $as_echo_n "checking glib.h usability... " >&6; }
26182 cat >conftest.$ac_ext <<_ACEOF
26183 /* confdefs.h. */
26184 _ACEOF
26185 cat confdefs.h >>conftest.$ac_ext
26186 cat >>conftest.$ac_ext <<_ACEOF
26187 /* end confdefs.h. */
26188 $ac_includes_default
26189 #include <glib.h>
26190 _ACEOF
26191 rm -f conftest.$ac_objext
26192 if { (ac_try="$ac_compile"
26193 case "(($ac_try" in
26194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26195 *) ac_try_echo=$ac_try;;
26196 esac
26197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26198 $as_echo "$ac_try_echo") >&5
26199 (eval "$ac_compile") 2>conftest.er1
26200 ac_status=$?
26201 grep -v '^ *+' conftest.er1 >conftest.err
26202 rm -f conftest.er1
26203 cat conftest.err >&5
26204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); } && {
26206 test -z "$ac_c_werror_flag" ||
26207 test ! -s conftest.err
26208 } && test -s conftest.$ac_objext; then
26209 ac_header_compiler=yes
26210 else
26211 $as_echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26214 ac_header_compiler=no
26215 fi
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26219 $as_echo "$ac_header_compiler" >&6; }
26221 # Is the header present?
26222 { $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
26223 $as_echo_n "checking glib.h presence... " >&6; }
26224 cat >conftest.$ac_ext <<_ACEOF
26225 /* confdefs.h. */
26226 _ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h. */
26230 #include <glib.h>
26231 _ACEOF
26232 if { (ac_try="$ac_cpp conftest.$ac_ext"
26233 case "(($ac_try" in
26234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235 *) ac_try_echo=$ac_try;;
26236 esac
26237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26238 $as_echo "$ac_try_echo") >&5
26239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26240 ac_status=$?
26241 grep -v '^ *+' conftest.er1 >conftest.err
26242 rm -f conftest.er1
26243 cat conftest.err >&5
26244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } >/dev/null && {
26246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26247 test ! -s conftest.err
26248 }; then
26249 ac_header_preproc=yes
26250 else
26251 $as_echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26254 ac_header_preproc=no
26255 fi
26257 rm -f conftest.err conftest.$ac_ext
26258 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26259 $as_echo "$ac_header_preproc" >&6; }
26261 # So? What about this header?
26262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26263 yes:no: )
26264 { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26265 $as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26266 { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
26267 $as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
26268 ac_header_preproc=yes
26269 ;;
26270 no:yes:* )
26271 { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
26272 $as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
26273 { $as_echo "$as_me:$LINENO: WARNING: glib.h: check for missing prerequisite headers?" >&5
26274 $as_echo "$as_me: WARNING: glib.h: check for missing prerequisite headers?" >&2;}
26275 { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
26276 $as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
26277 { $as_echo "$as_me:$LINENO: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&5
26278 $as_echo "$as_me: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26279 { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
26280 $as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
26281 { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
26282 $as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
26284 ;;
26285 esac
26286 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
26287 $as_echo_n "checking for glib.h... " >&6; }
26288 if test "${ac_cv_header_glib_h+set}" = set; then
26289 $as_echo_n "(cached) " >&6
26290 else
26291 ac_cv_header_glib_h=$ac_header_preproc
26292 fi
26293 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
26294 $as_echo "$ac_cv_header_glib_h" >&6; }
26296 fi
26297 if test "x$ac_cv_header_glib_h" = x""yes; then
26298 LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES
26299 fi
26302 fi
26304 if test $EX_CHECK_STATE = NO; then
26305 for ac_prog in pkg-config
26306 do
26307 # Extract the first word of "$ac_prog", so it can be a program name with args.
26308 set dummy $ac_prog; ac_word=$2
26309 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26310 $as_echo_n "checking for $ac_word... " >&6; }
26311 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
26312 $as_echo_n "(cached) " >&6
26313 else
26314 if test -n "$PKGCONFIG"; then
26315 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
26316 else
26317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26318 for as_dir in $PATH
26319 do
26320 IFS=$as_save_IFS
26321 test -z "$as_dir" && as_dir=.
26322 for ac_exec_ext in '' $ac_executable_extensions; do
26323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26324 ac_cv_prog_PKGCONFIG="$ac_prog"
26325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26326 break 2
26327 fi
26328 done
26329 done
26330 IFS=$as_save_IFS
26332 fi
26333 fi
26334 PKGCONFIG=$ac_cv_prog_PKGCONFIG
26335 if test -n "$PKGCONFIG"; then
26336 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
26337 $as_echo "$PKGCONFIG" >&6; }
26338 else
26339 { $as_echo "$as_me:$LINENO: result: no" >&5
26340 $as_echo "no" >&6; }
26341 fi
26344 test -n "$PKGCONFIG" && break
26345 done
26346 test -n "$PKGCONFIG" || PKGCONFIG="no"
26348 if test "$PKGCONFIG" != "no"; then
26349 if $PKGCONFIG --exists glib-2.0; then
26350 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags glib-2.0`
26351 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L glib-2.0`
26352 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other glib-2.0`
26353 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l glib-2.0`
26354 unset ac_cv_lib_`echo glib-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_glib_check_version
26355 { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
26356 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
26357 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
26358 $as_echo_n "(cached) " >&6
26359 else
26360 ac_check_lib_save_LIBS=$LIBS
26361 LIBS="-lglib-2.0 $LIBS"
26362 cat >conftest.$ac_ext <<_ACEOF
26363 /* confdefs.h. */
26364 _ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h. */
26369 /* Override any GCC internal prototype to avoid an error.
26370 Use char because int might match the return type of a GCC
26371 builtin and then its argument prototype would still apply. */
26372 #ifdef __cplusplus
26373 extern "C"
26374 #endif
26375 char glib_check_version ();
26376 int
26377 main ()
26378 {
26379 return glib_check_version ();
26380 ;
26381 return 0;
26382 }
26383 _ACEOF
26384 rm -f conftest.$ac_objext conftest$ac_exeext
26385 if { (ac_try="$ac_link"
26386 case "(($ac_try" in
26387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26388 *) ac_try_echo=$ac_try;;
26389 esac
26390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26391 $as_echo "$ac_try_echo") >&5
26392 (eval "$ac_link") 2>conftest.er1
26393 ac_status=$?
26394 grep -v '^ *+' conftest.er1 >conftest.err
26395 rm -f conftest.er1
26396 cat conftest.err >&5
26397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); } && {
26399 test -z "$ac_c_werror_flag" ||
26400 test ! -s conftest.err
26401 } && test -s conftest$ac_exeext && {
26402 test "$cross_compiling" = yes ||
26403 $as_test_x conftest$ac_exeext
26404 }; then
26405 ac_cv_lib_glib_2_0_glib_check_version=yes
26406 else
26407 $as_echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26410 ac_cv_lib_glib_2_0_glib_check_version=no
26411 fi
26413 rm -rf conftest.dSYM
26414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26415 conftest$ac_exeext conftest.$ac_ext
26416 LIBS=$ac_check_lib_save_LIBS
26417 fi
26418 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
26419 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
26420 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
26422 unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
26423 if test "${ac_cv_header_glib_h+set}" = set; then
26424 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
26425 $as_echo_n "checking for glib.h... " >&6; }
26426 if test "${ac_cv_header_glib_h+set}" = set; then
26427 $as_echo_n "(cached) " >&6
26428 fi
26429 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
26430 $as_echo "$ac_cv_header_glib_h" >&6; }
26431 else
26432 # Is the header compilable?
26433 { $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
26434 $as_echo_n "checking glib.h usability... " >&6; }
26435 cat >conftest.$ac_ext <<_ACEOF
26436 /* confdefs.h. */
26437 _ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h. */
26441 $ac_includes_default
26442 #include <glib.h>
26443 _ACEOF
26444 rm -f conftest.$ac_objext
26445 if { (ac_try="$ac_compile"
26446 case "(($ac_try" in
26447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26448 *) ac_try_echo=$ac_try;;
26449 esac
26450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26451 $as_echo "$ac_try_echo") >&5
26452 (eval "$ac_compile") 2>conftest.er1
26453 ac_status=$?
26454 grep -v '^ *+' conftest.er1 >conftest.err
26455 rm -f conftest.er1
26456 cat conftest.err >&5
26457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } && {
26459 test -z "$ac_c_werror_flag" ||
26460 test ! -s conftest.err
26461 } && test -s conftest.$ac_objext; then
26462 ac_header_compiler=yes
26463 else
26464 $as_echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26467 ac_header_compiler=no
26468 fi
26470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26471 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26472 $as_echo "$ac_header_compiler" >&6; }
26474 # Is the header present?
26475 { $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
26476 $as_echo_n "checking glib.h presence... " >&6; }
26477 cat >conftest.$ac_ext <<_ACEOF
26478 /* confdefs.h. */
26479 _ACEOF
26480 cat confdefs.h >>conftest.$ac_ext
26481 cat >>conftest.$ac_ext <<_ACEOF
26482 /* end confdefs.h. */
26483 #include <glib.h>
26484 _ACEOF
26485 if { (ac_try="$ac_cpp conftest.$ac_ext"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26489 esac
26490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26491 $as_echo "$ac_try_echo") >&5
26492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26493 ac_status=$?
26494 grep -v '^ *+' conftest.er1 >conftest.err
26495 rm -f conftest.er1
26496 cat conftest.err >&5
26497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); } >/dev/null && {
26499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26500 test ! -s conftest.err
26501 }; then
26502 ac_header_preproc=yes
26503 else
26504 $as_echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26507 ac_header_preproc=no
26508 fi
26510 rm -f conftest.err conftest.$ac_ext
26511 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26512 $as_echo "$ac_header_preproc" >&6; }
26514 # So? What about this header?
26515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26516 yes:no: )
26517 { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26518 $as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26519 { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
26520 $as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
26521 ac_header_preproc=yes
26522 ;;
26523 no:yes:* )
26524 { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
26525 $as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
26526 { $as_echo "$as_me:$LINENO: WARNING: glib.h: check for missing prerequisite headers?" >&5
26527 $as_echo "$as_me: WARNING: glib.h: check for missing prerequisite headers?" >&2;}
26528 { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
26529 $as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
26530 { $as_echo "$as_me:$LINENO: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&5
26531 $as_echo "$as_me: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26532 { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
26533 $as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
26534 { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
26535 $as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
26537 ;;
26538 esac
26539 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
26540 $as_echo_n "checking for glib.h... " >&6; }
26541 if test "${ac_cv_header_glib_h+set}" = set; then
26542 $as_echo_n "(cached) " >&6
26543 else
26544 ac_cv_header_glib_h=$ac_header_preproc
26545 fi
26546 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
26547 $as_echo "$ac_cv_header_glib_h" >&6; }
26549 fi
26550 if test "x$ac_cv_header_glib_h" = x""yes; then
26551 EX_CHECK_STATE=YES
26552 fi
26556 fi
26558 else
26559 { $as_echo "$as_me:$LINENO: WARNING:
26560 ----------------------------------------------------------------------------
26561 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
26562 You may want to set the PKG_CONFIG_PATH variable to point to its
26563 location.
26564 ----------------------------------------------------------------------------
26565 " >&5
26566 $as_echo "$as_me: WARNING:
26567 ----------------------------------------------------------------------------
26568 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
26569 You may want to set the PKG_CONFIG_PATH variable to point to its
26570 location.
26571 ----------------------------------------------------------------------------
26572 " >&2;}
26573 fi
26574 fi
26575 fi
26577 if test ${EX_CHECK_STATE} = NO; then
26578 { $as_echo "$as_me:$LINENO: WARNING:
26579 ----------------------------------------------------------------------------
26580 * I could not find a working copy of glib-2.0. Check config.log for hints on why
26581 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26582 so that compiler and the linker can find libglib-2.0 and its header files. If
26583 you have not installed glib-2.0, you can get it either from its original home on
26585 ftp://ftp.gtk.org/pub/glib/2.28/
26587 You can find also find an archive copy on
26589 http://oss.oetiker.ch/rrdtool/pub/libs
26591 The last tested version of glib-2.0 is 2.28.7.
26593 LIBS=$LIBS
26594 LDFLAGS=$LDFLAGS
26595 CPPFLAGS=$CPPFLAGS
26597 ----------------------------------------------------------------------------
26598 " >&5
26599 $as_echo "$as_me: WARNING:
26600 ----------------------------------------------------------------------------
26601 * I could not find a working copy of glib-2.0. Check config.log for hints on why
26602 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26603 so that compiler and the linker can find libglib-2.0 and its header files. If
26604 you have not installed glib-2.0, you can get it either from its original home on
26606 ftp://ftp.gtk.org/pub/glib/2.28/
26608 You can find also find an archive copy on
26610 http://oss.oetiker.ch/rrdtool/pub/libs
26612 The last tested version of glib-2.0 is 2.28.7.
26614 LIBS=$LIBS
26615 LDFLAGS=$LDFLAGS
26616 CPPFLAGS=$CPPFLAGS
26618 ----------------------------------------------------------------------------
26619 " >&2;}
26620 EX_CHECK_ALL_ERR=YES
26621 LIBS="${ex_check_save_LIBS}"
26622 CPPFLAGS="${ex_check_save_CPPFLAGS}"
26623 LDFLAGS="${ex_check_save_LDFLAGS}"
26624 fi
26625 ac_ext=c
26626 ac_cpp='$CPP $CPPFLAGS'
26627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26634 ac_ext=c
26635 ac_cpp='$CPP $CPPFLAGS'
26636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26640 EX_CHECK_STATE=NO
26641 ex_check_save_LIBS=${LIBS}
26642 ex_check_save_CPPFLAGS=${CPPFLAGS}
26643 ex_check_save_LDFLAGS=${LDFLAGS}
26644 if test "x/usr/include/libxml2" != "x"; then
26645 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
26646 fi
26647 { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
26648 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
26649 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
26650 $as_echo_n "(cached) " >&6
26651 else
26652 ac_check_lib_save_LIBS=$LIBS
26653 LIBS="-lxml2 $LIBS"
26654 cat >conftest.$ac_ext <<_ACEOF
26655 /* confdefs.h. */
26656 _ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h. */
26661 /* Override any GCC internal prototype to avoid an error.
26662 Use char because int might match the return type of a GCC
26663 builtin and then its argument prototype would still apply. */
26664 #ifdef __cplusplus
26665 extern "C"
26666 #endif
26667 char xmlParseFile ();
26668 int
26669 main ()
26670 {
26671 return xmlParseFile ();
26672 ;
26673 return 0;
26674 }
26675 _ACEOF
26676 rm -f conftest.$ac_objext conftest$ac_exeext
26677 if { (ac_try="$ac_link"
26678 case "(($ac_try" in
26679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680 *) ac_try_echo=$ac_try;;
26681 esac
26682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26683 $as_echo "$ac_try_echo") >&5
26684 (eval "$ac_link") 2>conftest.er1
26685 ac_status=$?
26686 grep -v '^ *+' conftest.er1 >conftest.err
26687 rm -f conftest.er1
26688 cat conftest.err >&5
26689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); } && {
26691 test -z "$ac_c_werror_flag" ||
26692 test ! -s conftest.err
26693 } && test -s conftest$ac_exeext && {
26694 test "$cross_compiling" = yes ||
26695 $as_test_x conftest$ac_exeext
26696 }; then
26697 ac_cv_lib_xml2_xmlParseFile=yes
26698 else
26699 $as_echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ac_cv_lib_xml2_xmlParseFile=no
26703 fi
26705 rm -rf conftest.dSYM
26706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26707 conftest$ac_exeext conftest.$ac_ext
26708 LIBS=$ac_check_lib_save_LIBS
26709 fi
26710 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
26711 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
26712 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
26714 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
26715 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
26716 $as_echo_n "checking for libxml/parser.h... " >&6; }
26717 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
26718 $as_echo_n "(cached) " >&6
26719 fi
26720 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
26721 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
26722 else
26723 # Is the header compilable?
26724 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
26725 $as_echo_n "checking libxml/parser.h usability... " >&6; }
26726 cat >conftest.$ac_ext <<_ACEOF
26727 /* confdefs.h. */
26728 _ACEOF
26729 cat confdefs.h >>conftest.$ac_ext
26730 cat >>conftest.$ac_ext <<_ACEOF
26731 /* end confdefs.h. */
26732 $ac_includes_default
26733 #include <libxml/parser.h>
26734 _ACEOF
26735 rm -f conftest.$ac_objext
26736 if { (ac_try="$ac_compile"
26737 case "(($ac_try" in
26738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739 *) ac_try_echo=$ac_try;;
26740 esac
26741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26742 $as_echo "$ac_try_echo") >&5
26743 (eval "$ac_compile") 2>conftest.er1
26744 ac_status=$?
26745 grep -v '^ *+' conftest.er1 >conftest.err
26746 rm -f conftest.er1
26747 cat conftest.err >&5
26748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } && {
26750 test -z "$ac_c_werror_flag" ||
26751 test ! -s conftest.err
26752 } && test -s conftest.$ac_objext; then
26753 ac_header_compiler=yes
26754 else
26755 $as_echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26758 ac_header_compiler=no
26759 fi
26761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26763 $as_echo "$ac_header_compiler" >&6; }
26765 # Is the header present?
26766 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
26767 $as_echo_n "checking libxml/parser.h presence... " >&6; }
26768 cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h. */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h. */
26774 #include <libxml/parser.h>
26775 _ACEOF
26776 if { (ac_try="$ac_cpp conftest.$ac_ext"
26777 case "(($ac_try" in
26778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779 *) ac_try_echo=$ac_try;;
26780 esac
26781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26782 $as_echo "$ac_try_echo") >&5
26783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } >/dev/null && {
26790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 }; then
26793 ac_header_preproc=yes
26794 else
26795 $as_echo "$as_me: failed program was:" >&5
26796 sed 's/^/| /' conftest.$ac_ext >&5
26798 ac_header_preproc=no
26799 fi
26801 rm -f conftest.err conftest.$ac_ext
26802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803 $as_echo "$ac_header_preproc" >&6; }
26805 # So? What about this header?
26806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26807 yes:no: )
26808 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
26809 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26810 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
26811 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
26812 ac_header_preproc=yes
26813 ;;
26814 no:yes:* )
26815 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
26816 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
26817 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
26818 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
26819 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
26820 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
26821 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
26822 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
26823 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
26824 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
26825 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
26826 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
26828 ;;
26829 esac
26830 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
26831 $as_echo_n "checking for libxml/parser.h... " >&6; }
26832 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
26833 $as_echo_n "(cached) " >&6
26834 else
26835 ac_cv_header_libxml_parser_h=$ac_header_preproc
26836 fi
26837 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
26838 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
26840 fi
26841 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
26842 LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
26843 fi
26846 fi
26848 if test $EX_CHECK_STATE = NO; then
26849 for ac_prog in pkg-config
26850 do
26851 # Extract the first word of "$ac_prog", so it can be a program name with args.
26852 set dummy $ac_prog; ac_word=$2
26853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26854 $as_echo_n "checking for $ac_word... " >&6; }
26855 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
26856 $as_echo_n "(cached) " >&6
26857 else
26858 if test -n "$PKGCONFIG"; then
26859 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
26860 else
26861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26862 for as_dir in $PATH
26863 do
26864 IFS=$as_save_IFS
26865 test -z "$as_dir" && as_dir=.
26866 for ac_exec_ext in '' $ac_executable_extensions; do
26867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26868 ac_cv_prog_PKGCONFIG="$ac_prog"
26869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26870 break 2
26871 fi
26872 done
26873 done
26874 IFS=$as_save_IFS
26876 fi
26877 fi
26878 PKGCONFIG=$ac_cv_prog_PKGCONFIG
26879 if test -n "$PKGCONFIG"; then
26880 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
26881 $as_echo "$PKGCONFIG" >&6; }
26882 else
26883 { $as_echo "$as_me:$LINENO: result: no" >&5
26884 $as_echo "no" >&6; }
26885 fi
26888 test -n "$PKGCONFIG" && break
26889 done
26890 test -n "$PKGCONFIG" || PKGCONFIG="no"
26892 if test "$PKGCONFIG" != "no"; then
26893 if $PKGCONFIG --exists libxml-2.0; then
26894 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
26895 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
26896 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
26897 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
26898 unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
26899 { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
26900 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
26901 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
26902 $as_echo_n "(cached) " >&6
26903 else
26904 ac_check_lib_save_LIBS=$LIBS
26905 LIBS="-lxml2 $LIBS"
26906 cat >conftest.$ac_ext <<_ACEOF
26907 /* confdefs.h. */
26908 _ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h. */
26913 /* Override any GCC internal prototype to avoid an error.
26914 Use char because int might match the return type of a GCC
26915 builtin and then its argument prototype would still apply. */
26916 #ifdef __cplusplus
26917 extern "C"
26918 #endif
26919 char xmlParseFile ();
26920 int
26921 main ()
26922 {
26923 return xmlParseFile ();
26924 ;
26925 return 0;
26926 }
26927 _ACEOF
26928 rm -f conftest.$ac_objext conftest$ac_exeext
26929 if { (ac_try="$ac_link"
26930 case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26933 esac
26934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26935 $as_echo "$ac_try_echo") >&5
26936 (eval "$ac_link") 2>conftest.er1
26937 ac_status=$?
26938 grep -v '^ *+' conftest.er1 >conftest.err
26939 rm -f conftest.er1
26940 cat conftest.err >&5
26941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } && {
26943 test -z "$ac_c_werror_flag" ||
26944 test ! -s conftest.err
26945 } && test -s conftest$ac_exeext && {
26946 test "$cross_compiling" = yes ||
26947 $as_test_x conftest$ac_exeext
26948 }; then
26949 ac_cv_lib_xml2_xmlParseFile=yes
26950 else
26951 $as_echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26954 ac_cv_lib_xml2_xmlParseFile=no
26955 fi
26957 rm -rf conftest.dSYM
26958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26959 conftest$ac_exeext conftest.$ac_ext
26960 LIBS=$ac_check_lib_save_LIBS
26961 fi
26962 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
26963 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
26964 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
26966 unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
26967 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
26968 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
26969 $as_echo_n "checking for libxml/parser.h... " >&6; }
26970 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
26971 $as_echo_n "(cached) " >&6
26972 fi
26973 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
26974 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
26975 else
26976 # Is the header compilable?
26977 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
26978 $as_echo_n "checking libxml/parser.h usability... " >&6; }
26979 cat >conftest.$ac_ext <<_ACEOF
26980 /* confdefs.h. */
26981 _ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h. */
26985 $ac_includes_default
26986 #include <libxml/parser.h>
26987 _ACEOF
26988 rm -f conftest.$ac_objext
26989 if { (ac_try="$ac_compile"
26990 case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26993 esac
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996 (eval "$ac_compile") 2>conftest.er1
26997 ac_status=$?
26998 grep -v '^ *+' conftest.er1 >conftest.err
26999 rm -f conftest.er1
27000 cat conftest.err >&5
27001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); } && {
27003 test -z "$ac_c_werror_flag" ||
27004 test ! -s conftest.err
27005 } && test -s conftest.$ac_objext; then
27006 ac_header_compiler=yes
27007 else
27008 $as_echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27011 ac_header_compiler=no
27012 fi
27014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27016 $as_echo "$ac_header_compiler" >&6; }
27018 # Is the header present?
27019 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
27020 $as_echo_n "checking libxml/parser.h presence... " >&6; }
27021 cat >conftest.$ac_ext <<_ACEOF
27022 /* confdefs.h. */
27023 _ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27027 #include <libxml/parser.h>
27028 _ACEOF
27029 if { (ac_try="$ac_cpp conftest.$ac_ext"
27030 case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27033 esac
27034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27035 $as_echo "$ac_try_echo") >&5
27036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27037 ac_status=$?
27038 grep -v '^ *+' conftest.er1 >conftest.err
27039 rm -f conftest.er1
27040 cat conftest.err >&5
27041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } >/dev/null && {
27043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27044 test ! -s conftest.err
27045 }; then
27046 ac_header_preproc=yes
27047 else
27048 $as_echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.$ac_ext >&5
27051 ac_header_preproc=no
27052 fi
27054 rm -f conftest.err conftest.$ac_ext
27055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27056 $as_echo "$ac_header_preproc" >&6; }
27058 # So? What about this header?
27059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27060 yes:no: )
27061 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
27062 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27063 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
27064 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
27065 ac_header_preproc=yes
27066 ;;
27067 no:yes:* )
27068 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
27069 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
27070 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
27071 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
27072 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
27073 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
27074 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
27075 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
27076 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
27077 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
27078 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
27079 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
27081 ;;
27082 esac
27083 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
27084 $as_echo_n "checking for libxml/parser.h... " >&6; }
27085 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
27086 $as_echo_n "(cached) " >&6
27087 else
27088 ac_cv_header_libxml_parser_h=$ac_header_preproc
27089 fi
27090 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
27091 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
27093 fi
27094 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
27095 EX_CHECK_STATE=YES
27096 fi
27100 fi
27102 else
27103 { $as_echo "$as_me:$LINENO: WARNING:
27104 ----------------------------------------------------------------------------
27105 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
27106 You may want to set the PKG_CONFIG_PATH variable to point to its
27107 location.
27108 ----------------------------------------------------------------------------
27109 " >&5
27110 $as_echo "$as_me: WARNING:
27111 ----------------------------------------------------------------------------
27112 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
27113 You may want to set the PKG_CONFIG_PATH variable to point to its
27114 location.
27115 ----------------------------------------------------------------------------
27116 " >&2;}
27117 fi
27118 fi
27119 fi
27121 if test ${EX_CHECK_STATE} = NO; then
27122 { $as_echo "$as_me:$LINENO: WARNING:
27123 ----------------------------------------------------------------------------
27124 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
27125 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27126 so that compiler and the linker can find libxml2 and its header files. If
27127 you have not installed libxml-2.0, you can get it either from its original home on
27129 http://xmlsoft.org/downloads.html
27131 You can find also find an archive copy on
27133 http://oss.oetiker.ch/rrdtool/pub/libs
27135 The last tested version of libxml-2.0 is 2.7.8.
27137 LIBS=$LIBS
27138 LDFLAGS=$LDFLAGS
27139 CPPFLAGS=$CPPFLAGS
27141 ----------------------------------------------------------------------------
27142 " >&5
27143 $as_echo "$as_me: WARNING:
27144 ----------------------------------------------------------------------------
27145 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
27146 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27147 so that compiler and the linker can find libxml2 and its header files. If
27148 you have not installed libxml-2.0, you can get it either from its original home on
27150 http://xmlsoft.org/downloads.html
27152 You can find also find an archive copy on
27154 http://oss.oetiker.ch/rrdtool/pub/libs
27156 The last tested version of libxml-2.0 is 2.7.8.
27158 LIBS=$LIBS
27159 LDFLAGS=$LDFLAGS
27160 CPPFLAGS=$CPPFLAGS
27162 ----------------------------------------------------------------------------
27163 " >&2;}
27164 EX_CHECK_ALL_ERR=YES
27165 LIBS="${ex_check_save_LIBS}"
27166 CPPFLAGS="${ex_check_save_CPPFLAGS}"
27167 LDFLAGS="${ex_check_save_LDFLAGS}"
27168 fi
27169 ac_ext=c
27170 ac_cpp='$CPP $CPPFLAGS'
27171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27178 if test "$EX_CHECK_ALL_ERR" = "YES"; then
27179 { { $as_echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
27180 $as_echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
27181 { (exit 1); exit 1; }; }
27182 fi
27184 ALL_LIBS="$LIBS"
27185 LIBS=
27191 case $TERM in
27192 # for the most important terminal types we directly know the sequences
27193 xterm|xterm*|vt220|vt220*)
27194 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
27195 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
27196 ;;
27197 vt100|vt100*|cygwin)
27198 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
27199 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
27200 ;;
27201 *)
27202 T_MD=''
27203 T_ME=''
27204 ;;
27205 esac
27206 { $as_echo "$as_me:$LINENO: result: " >&5
27207 $as_echo "" >&6; }
27208 { $as_echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
27209 $as_echo "${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
27212 PATH=$PATH:/usr/perl5/bin
27213 export PATH
27214 # Extract the first word of "perl", so it can be a program name with args.
27215 set dummy perl; ac_word=$2
27216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27217 $as_echo_n "checking for $ac_word... " >&6; }
27218 if test "${ac_cv_path_PERL+set}" = set; then
27219 $as_echo_n "(cached) " >&6
27220 else
27221 case $PERL in
27222 [\\/]* | ?:[\\/]*)
27223 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
27224 ;;
27225 *)
27226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27227 for as_dir in $PATH
27228 do
27229 IFS=$as_save_IFS
27230 test -z "$as_dir" && as_dir=.
27231 for ac_exec_ext in '' $ac_executable_extensions; do
27232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27233 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
27234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27235 break 2
27236 fi
27237 done
27238 done
27239 IFS=$as_save_IFS
27241 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
27242 ;;
27243 esac
27244 fi
27245 PERL=$ac_cv_path_PERL
27246 if test -n "$PERL"; then
27247 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
27248 $as_echo "$PERL" >&6; }
27249 else
27250 { $as_echo "$as_me:$LINENO: result: no" >&5
27251 $as_echo "no" >&6; }
27252 fi
27255 # Extract the first word of "pod2man", so it can be a program name with args.
27256 set dummy pod2man; ac_word=$2
27257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27258 $as_echo_n "checking for $ac_word... " >&6; }
27259 if test "${ac_cv_path_POD2MAN+set}" = set; then
27260 $as_echo_n "(cached) " >&6
27261 else
27262 case $POD2MAN in
27263 [\\/]* | ?:[\\/]*)
27264 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
27265 ;;
27266 *)
27267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27268 for as_dir in $PATH
27269 do
27270 IFS=$as_save_IFS
27271 test -z "$as_dir" && as_dir=.
27272 for ac_exec_ext in '' $ac_executable_extensions; do
27273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27274 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
27275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27276 break 2
27277 fi
27278 done
27279 done
27280 IFS=$as_save_IFS
27282 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
27283 ;;
27284 esac
27285 fi
27286 POD2MAN=$ac_cv_path_POD2MAN
27287 if test -n "$POD2MAN"; then
27288 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
27289 $as_echo "$POD2MAN" >&6; }
27290 else
27291 { $as_echo "$as_me:$LINENO: result: no" >&5
27292 $as_echo "no" >&6; }
27293 fi
27296 # Extract the first word of "pod2html", so it can be a program name with args.
27297 set dummy pod2html; ac_word=$2
27298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27299 $as_echo_n "checking for $ac_word... " >&6; }
27300 if test "${ac_cv_path_POD2HTML+set}" = set; then
27301 $as_echo_n "(cached) " >&6
27302 else
27303 case $POD2HTML in
27304 [\\/]* | ?:[\\/]*)
27305 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
27306 ;;
27307 *)
27308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27309 for as_dir in $PATH
27310 do
27311 IFS=$as_save_IFS
27312 test -z "$as_dir" && as_dir=.
27313 for ac_exec_ext in '' $ac_executable_extensions; do
27314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27315 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
27316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27317 break 2
27318 fi
27319 done
27320 done
27321 IFS=$as_save_IFS
27323 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
27324 ;;
27325 esac
27326 fi
27327 POD2HTML=$ac_cv_path_POD2HTML
27328 if test -n "$POD2HTML"; then
27329 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
27330 $as_echo "$POD2HTML" >&6; }
27331 else
27332 { $as_echo "$as_me:$LINENO: result: no" >&5
27333 $as_echo "no" >&6; }
27334 fi
27339 # Check whether --enable-perl was given.
27340 if test "${enable_perl+set}" = set; then
27341 enableval=$enable_perl;
27342 else
27343 enable_perl=yes
27344 fi
27353 if test "x$PERL" = "xno" -o x$enable_perl = xno; then
27354 COMP_PERL=
27355 else
27356 COMP_PERL="perl_piped perl_shared"
27357 { $as_echo "$as_me:$LINENO: checking for the perl version you are running" >&5
27358 $as_echo_n "checking for the perl version you are running... " >&6; }
27359 PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
27360 { $as_echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
27361 $as_echo "$PERL_VERSION" >&6; }
27362 if test -z "$PERLCC"; then
27363 { $as_echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
27364 $as_echo_n "checking for the C compiler perl wants to use to build its modules... " >&6; }
27365 perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
27366 { $as_echo "$as_me:$LINENO: result: $perlcc" >&5
27367 $as_echo "$perlcc" >&6; }
27368 if test ! -x "$perlcc"; then
27369 # Extract the first word of "${perlcc}", so it can be a program name with args.
27370 set dummy ${perlcc}; ac_word=$2
27371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27372 $as_echo_n "checking for $ac_word... " >&6; }
27373 if test "${ac_cv_path_PERL_CC+set}" = set; then
27374 $as_echo_n "(cached) " >&6
27375 else
27376 case $PERL_CC in
27377 [\\/]* | ?:[\\/]*)
27378 ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
27379 ;;
27380 *)
27381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27382 for as_dir in $PATH
27383 do
27384 IFS=$as_save_IFS
27385 test -z "$as_dir" && as_dir=.
27386 for ac_exec_ext in '' $ac_executable_extensions; do
27387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27388 ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
27389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27390 break 2
27391 fi
27392 done
27393 done
27394 IFS=$as_save_IFS
27396 test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
27397 ;;
27398 esac
27399 fi
27400 PERL_CC=$ac_cv_path_PERL_CC
27401 if test -n "$PERL_CC"; then
27402 { $as_echo "$as_me:$LINENO: result: $PERL_CC" >&5
27403 $as_echo "$PERL_CC" >&6; }
27404 else
27405 { $as_echo "$as_me:$LINENO: result: no" >&5
27406 $as_echo "no" >&6; }
27407 fi
27410 if test "$PERL_CC" = "no"; then
27411 { $as_echo "$as_me:$LINENO: WARNING:
27412 I would not find the Compiler ($perlcc) that was originally used to compile
27413 your perl binary. You should either make sure that this compiler is
27414 available on your system, pick an other compiler and set PERLCC
27415 appropriately, or use a different perl setup that was compiled locally.
27417 I will disable the compilation of the RRDs perl module for now.
27418 " >&5
27419 $as_echo "$as_me: WARNING:
27420 I would not find the Compiler ($perlcc) that was originally used to compile
27421 your perl binary. You should either make sure that this compiler is
27422 available on your system, pick an other compiler and set PERLCC
27423 appropriately, or use a different perl setup that was compiled locally.
27425 I will disable the compilation of the RRDs perl module for now.
27426 " >&2;}
27427 COMP_PERL="perl_piped"
27428 fi
27429 fi
27430 fi
27431 fi
27433 { $as_echo "$as_me:$LINENO: checking Perl Modules to build" >&5
27434 $as_echo_n "checking Perl Modules to build... " >&6; }
27435 { $as_echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
27436 $as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
27438 # Options to pass when configuring perl module
27439 langpref=$prefix
27440 test "$langpref" = '$(DESTDIR)NONE' && langpref='$(DESTDIR)'$ac_default_prefix
27441 test "$langpref" = "NONE" && langpref=$ac_default_prefix
27443 PERL_MAKE_OPTIONS="PREFIX=$langpref LIB=$langpref/lib/perl/$PERL_VERSION"
27445 # Check whether --enable-perl-site-install was given.
27446 if test "${enable_perl_site_install+set}" = set; then
27447 enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
27448 fi
27451 if test ! -z "$PERLCC"; then
27452 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
27454 if test ! -z "$PERLCCFLAGS"; then
27455 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
27456 fi
27458 if test -z "$PERLLD"; then
27459 PERLLD=$PERLCC
27460 fi
27461 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
27463 if test ! -z "$PERLLDFLAGS"; then
27464 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
27465 fi
27466 fi
27469 # Check whether --with-perl-options was given.
27470 if test "${with_perl_options+set}" = set; then
27471 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
27472 fi
27480 # Extract the first word of "ruby", so it can be a program name with args.
27481 set dummy ruby; ac_word=$2
27482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27483 $as_echo_n "checking for $ac_word... " >&6; }
27484 if test "${ac_cv_path_RUBY+set}" = set; then
27485 $as_echo_n "(cached) " >&6
27486 else
27487 case $RUBY in
27488 [\\/]* | ?:[\\/]*)
27489 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
27490 ;;
27491 *)
27492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27493 for as_dir in $PATH
27494 do
27495 IFS=$as_save_IFS
27496 test -z "$as_dir" && as_dir=.
27497 for ac_exec_ext in '' $ac_executable_extensions; do
27498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27499 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
27500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27501 break 2
27502 fi
27503 done
27504 done
27505 IFS=$as_save_IFS
27507 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
27508 ;;
27509 esac
27510 fi
27511 RUBY=$ac_cv_path_RUBY
27512 if test -n "$RUBY"; then
27513 { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
27514 $as_echo "$RUBY" >&6; }
27515 else
27516 { $as_echo "$as_me:$LINENO: result: no" >&5
27517 $as_echo "no" >&6; }
27518 fi
27522 # Check whether --enable-ruby was given.
27523 if test "${enable_ruby+set}" = set; then
27524 enableval=$enable_ruby;
27525 else
27526 enable_ruby=yes
27527 fi
27530 { $as_echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
27531 $as_echo_n "checking if ruby modules can be built... " >&6; }
27533 if test "x$RUBY" = "xno" -o x$enable_ruby = xno; then
27534 COMP_RUBY=
27535 { $as_echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
27536 $as_echo "No .. Ruby not found or disabled" >&6; }
27537 else
27538 if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
27539 COMP_RUBY="ruby"
27540 { $as_echo "$as_me:$LINENO: result: YES" >&5
27541 $as_echo "YES" >&6; }
27542 else
27543 COMP_RUBY=
27544 { $as_echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
27545 $as_echo "Ruby found but mkmf is missing! Install the -dev package" >&6; }
27546 fi
27547 fi
27549 # Check whether --enable-ruby-site-install was given.
27550 if test "${enable_ruby_site_install+set}" = set; then
27551 enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
27552 else
27553 RUBY_MAKE_OPTIONS="sitedir=$langpref/lib/ruby"
27554 fi
27559 # Check whether --with-ruby-options was given.
27560 if test "${with_ruby_options+set}" = set; then
27561 withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
27562 fi
27569 # Extract the first word of "lua", so it can be a program name with args.
27570 set dummy lua; ac_word=$2
27571 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27572 $as_echo_n "checking for $ac_word... " >&6; }
27573 if test "${ac_cv_path_LUA+set}" = set; then
27574 $as_echo_n "(cached) " >&6
27575 else
27576 case $LUA in
27577 [\\/]* | ?:[\\/]*)
27578 ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
27579 ;;
27580 *)
27581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27582 for as_dir in $PATH
27583 do
27584 IFS=$as_save_IFS
27585 test -z "$as_dir" && as_dir=.
27586 for ac_exec_ext in '' $ac_executable_extensions; do
27587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27588 ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
27589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27590 break 2
27591 fi
27592 done
27593 done
27594 IFS=$as_save_IFS
27596 test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
27597 ;;
27598 esac
27599 fi
27600 LUA=$ac_cv_path_LUA
27601 if test -n "$LUA"; then
27602 { $as_echo "$as_me:$LINENO: result: $LUA" >&5
27603 $as_echo "$LUA" >&6; }
27604 else
27605 { $as_echo "$as_me:$LINENO: result: no" >&5
27606 $as_echo "no" >&6; }
27607 fi
27611 # Check whether --enable-lua was given.
27612 if test "${enable_lua+set}" = set; then
27613 enableval=$enable_lua;
27614 else
27615 enable_lua=yes
27616 fi
27619 COMP_LUA=
27620 if test "$LUA" = "no" -o "$enable_lua" = "no"; then
27621 enable_lua=no
27622 else
27623 { $as_echo "$as_me:$LINENO: checking for lua >= 5.0" >&5
27624 $as_echo_n "checking for lua >= 5.0... " >&6; }
27625 read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
27626 $($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
27627 LUA_EOF
27628 if test 0$LUA_MAJOR -lt 5; then
27629 { $as_echo "$as_me:$LINENO: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
27630 $as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
27631 else
27632 { $as_echo "$as_me:$LINENO: result: $LUA_MAJOR.$LUA_MINOR found" >&5
27633 $as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
27634 lua_vdot=$LUA_MAJOR.$LUA_MINOR
27635 lua_vndot=$LUA_MAJOR$LUA_MINOR
27636 lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
27638 for ac_header in lua$lua_vndot/lua.h
27639 do
27640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27642 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27643 $as_echo_n "checking for $ac_header... " >&6; }
27644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27645 $as_echo_n "(cached) " >&6
27646 fi
27647 ac_res=`eval 'as_val=${'$as_ac_Header'}
27648 $as_echo "$as_val"'`
27649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27650 $as_echo "$ac_res" >&6; }
27651 else
27652 # Is the header compilable?
27653 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27654 $as_echo_n "checking $ac_header usability... " >&6; }
27655 cat >conftest.$ac_ext <<_ACEOF
27656 /* confdefs.h. */
27657 _ACEOF
27658 cat confdefs.h >>conftest.$ac_ext
27659 cat >>conftest.$ac_ext <<_ACEOF
27660 /* end confdefs.h. */
27661 $ac_includes_default
27662 #include <$ac_header>
27663 _ACEOF
27664 rm -f conftest.$ac_objext
27665 if { (ac_try="$ac_compile"
27666 case "(($ac_try" in
27667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668 *) ac_try_echo=$ac_try;;
27669 esac
27670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27671 $as_echo "$ac_try_echo") >&5
27672 (eval "$ac_compile") 2>conftest.er1
27673 ac_status=$?
27674 grep -v '^ *+' conftest.er1 >conftest.err
27675 rm -f conftest.er1
27676 cat conftest.err >&5
27677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } && {
27679 test -z "$ac_c_werror_flag" ||
27680 test ! -s conftest.err
27681 } && test -s conftest.$ac_objext; then
27682 ac_header_compiler=yes
27683 else
27684 $as_echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27687 ac_header_compiler=no
27688 fi
27690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27691 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27692 $as_echo "$ac_header_compiler" >&6; }
27694 # Is the header present?
27695 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27696 $as_echo_n "checking $ac_header presence... " >&6; }
27697 cat >conftest.$ac_ext <<_ACEOF
27698 /* confdefs.h. */
27699 _ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h. */
27703 #include <$ac_header>
27704 _ACEOF
27705 if { (ac_try="$ac_cpp conftest.$ac_ext"
27706 case "(($ac_try" in
27707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708 *) ac_try_echo=$ac_try;;
27709 esac
27710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27711 $as_echo "$ac_try_echo") >&5
27712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27713 ac_status=$?
27714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
27717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } >/dev/null && {
27719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27720 test ! -s conftest.err
27721 }; then
27722 ac_header_preproc=yes
27723 else
27724 $as_echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27727 ac_header_preproc=no
27728 fi
27730 rm -f conftest.err conftest.$ac_ext
27731 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27732 $as_echo "$ac_header_preproc" >&6; }
27734 # So? What about this header?
27735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27736 yes:no: )
27737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27738 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27740 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27741 ac_header_preproc=yes
27742 ;;
27743 no:yes:* )
27744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27745 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27747 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27749 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27751 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27755 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27757 ;;
27758 esac
27759 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27760 $as_echo_n "checking for $ac_header... " >&6; }
27761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27762 $as_echo_n "(cached) " >&6
27763 else
27764 eval "$as_ac_Header=\$ac_header_preproc"
27765 fi
27766 ac_res=`eval 'as_val=${'$as_ac_Header'}
27767 $as_echo "$as_val"'`
27768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27769 $as_echo "$ac_res" >&6; }
27771 fi
27772 as_val=`eval 'as_val=${'$as_ac_Header'}
27773 $as_echo "$as_val"'`
27774 if test "x$as_val" = x""yes; then
27775 cat >>confdefs.h <<_ACEOF
27776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27777 _ACEOF
27779 for ac_header in lua$lua_vndot/lualib.h
27780 do
27781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27783 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27784 $as_echo_n "checking for $ac_header... " >&6; }
27785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27786 $as_echo_n "(cached) " >&6
27787 fi
27788 ac_res=`eval 'as_val=${'$as_ac_Header'}
27789 $as_echo "$as_val"'`
27790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27791 $as_echo "$ac_res" >&6; }
27792 else
27793 # Is the header compilable?
27794 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27795 $as_echo_n "checking $ac_header usability... " >&6; }
27796 cat >conftest.$ac_ext <<_ACEOF
27797 /* confdefs.h. */
27798 _ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h. */
27802 $ac_includes_default
27803 #include <$ac_header>
27804 _ACEOF
27805 rm -f conftest.$ac_objext
27806 if { (ac_try="$ac_compile"
27807 case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27810 esac
27811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27812 $as_echo "$ac_try_echo") >&5
27813 (eval "$ac_compile") 2>conftest.er1
27814 ac_status=$?
27815 grep -v '^ *+' conftest.er1 >conftest.err
27816 rm -f conftest.er1
27817 cat conftest.err >&5
27818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } && {
27820 test -z "$ac_c_werror_flag" ||
27821 test ! -s conftest.err
27822 } && test -s conftest.$ac_objext; then
27823 ac_header_compiler=yes
27824 else
27825 $as_echo "$as_me: failed program was:" >&5
27826 sed 's/^/| /' conftest.$ac_ext >&5
27828 ac_header_compiler=no
27829 fi
27831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27832 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27833 $as_echo "$ac_header_compiler" >&6; }
27835 # Is the header present?
27836 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27837 $as_echo_n "checking $ac_header presence... " >&6; }
27838 cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h. */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 #include <$ac_header>
27845 _ACEOF
27846 if { (ac_try="$ac_cpp conftest.$ac_ext"
27847 case "(($ac_try" in
27848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27850 esac
27851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27852 $as_echo "$ac_try_echo") >&5
27853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27854 ac_status=$?
27855 grep -v '^ *+' conftest.er1 >conftest.err
27856 rm -f conftest.er1
27857 cat conftest.err >&5
27858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } >/dev/null && {
27860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27861 test ! -s conftest.err
27862 }; then
27863 ac_header_preproc=yes
27864 else
27865 $as_echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27868 ac_header_preproc=no
27869 fi
27871 rm -f conftest.err conftest.$ac_ext
27872 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27873 $as_echo "$ac_header_preproc" >&6; }
27875 # So? What about this header?
27876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27877 yes:no: )
27878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27879 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27882 ac_header_preproc=yes
27883 ;;
27884 no:yes:* )
27885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27886 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27888 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27890 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27892 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27896 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27898 ;;
27899 esac
27900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27901 $as_echo_n "checking for $ac_header... " >&6; }
27902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27903 $as_echo_n "(cached) " >&6
27904 else
27905 eval "$as_ac_Header=\$ac_header_preproc"
27906 fi
27907 ac_res=`eval 'as_val=${'$as_ac_Header'}
27908 $as_echo "$as_val"'`
27909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27910 $as_echo "$ac_res" >&6; }
27912 fi
27913 as_val=`eval 'as_val=${'$as_ac_Header'}
27914 $as_echo "$as_val"'`
27915 if test "x$as_val" = x""yes; then
27916 cat >>confdefs.h <<_ACEOF
27917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27918 _ACEOF
27919 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
27920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27921 { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
27922 $as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
27923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27924 $as_echo_n "(cached) " >&6
27925 fi
27926 ac_res=`eval 'as_val=${'$as_ac_Header'}
27927 $as_echo "$as_val"'`
27928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27929 $as_echo "$ac_res" >&6; }
27930 else
27931 # Is the header compilable?
27932 { $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h usability" >&5
27933 $as_echo_n "checking lua$lua_vndot/lauxlib.h usability... " >&6; }
27934 cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h. */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27940 $ac_includes_default
27941 #include <lua$lua_vndot/lauxlib.h>
27942 _ACEOF
27943 rm -f conftest.$ac_objext
27944 if { (ac_try="$ac_compile"
27945 case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27948 esac
27949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27950 $as_echo "$ac_try_echo") >&5
27951 (eval "$ac_compile") 2>conftest.er1
27952 ac_status=$?
27953 grep -v '^ *+' conftest.er1 >conftest.err
27954 rm -f conftest.er1
27955 cat conftest.err >&5
27956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); } && {
27958 test -z "$ac_c_werror_flag" ||
27959 test ! -s conftest.err
27960 } && test -s conftest.$ac_objext; then
27961 ac_header_compiler=yes
27962 else
27963 $as_echo "$as_me: failed program was:" >&5
27964 sed 's/^/| /' conftest.$ac_ext >&5
27966 ac_header_compiler=no
27967 fi
27969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27970 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27971 $as_echo "$ac_header_compiler" >&6; }
27973 # Is the header present?
27974 { $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h presence" >&5
27975 $as_echo_n "checking lua$lua_vndot/lauxlib.h presence... " >&6; }
27976 cat >conftest.$ac_ext <<_ACEOF
27977 /* confdefs.h. */
27978 _ACEOF
27979 cat confdefs.h >>conftest.$ac_ext
27980 cat >>conftest.$ac_ext <<_ACEOF
27981 /* end confdefs.h. */
27982 #include <lua$lua_vndot/lauxlib.h>
27983 _ACEOF
27984 if { (ac_try="$ac_cpp conftest.$ac_ext"
27985 case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27988 esac
27989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27990 $as_echo "$ac_try_echo") >&5
27991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27992 ac_status=$?
27993 grep -v '^ *+' conftest.er1 >conftest.err
27994 rm -f conftest.er1
27995 cat conftest.err >&5
27996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } >/dev/null && {
27998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27999 test ! -s conftest.err
28000 }; then
28001 ac_header_preproc=yes
28002 else
28003 $as_echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28006 ac_header_preproc=no
28007 fi
28009 rm -f conftest.err conftest.$ac_ext
28010 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28011 $as_echo "$ac_header_preproc" >&6; }
28013 # So? What about this header?
28014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28015 yes:no: )
28016 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28017 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28018 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&5
28019 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&2;}
28020 ac_header_preproc=yes
28021 ;;
28022 no:yes:* )
28023 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&5
28024 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&2;}
28025 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: check for missing prerequisite headers?" >&5
28026 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: check for missing prerequisite headers?" >&2;}
28027 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&5
28028 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&2;}
28029 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
28030 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28031 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&5
28032 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
28033 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&5
28034 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
28036 ;;
28037 esac
28038 { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
28039 $as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
28040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28041 $as_echo_n "(cached) " >&6
28042 else
28043 eval "$as_ac_Header=\$ac_header_preproc"
28044 fi
28045 ac_res=`eval 'as_val=${'$as_ac_Header'}
28046 $as_echo "$as_val"'`
28047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28048 $as_echo "$ac_res" >&6; }
28050 fi
28051 as_val=`eval 'as_val=${'$as_ac_Header'}
28052 $as_echo "$as_val"'`
28053 if test "x$as_val" = x""yes; then
28054 lua_headerdir=lua$lua_vndot
28055 fi
28058 fi
28060 done
28062 else
28064 for ac_header in lua$lua_vdot/lua.h
28065 do
28066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28069 $as_echo_n "checking for $ac_header... " >&6; }
28070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28071 $as_echo_n "(cached) " >&6
28072 fi
28073 ac_res=`eval 'as_val=${'$as_ac_Header'}
28074 $as_echo "$as_val"'`
28075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28076 $as_echo "$ac_res" >&6; }
28077 else
28078 # Is the header compilable?
28079 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28080 $as_echo_n "checking $ac_header usability... " >&6; }
28081 cat >conftest.$ac_ext <<_ACEOF
28082 /* confdefs.h. */
28083 _ACEOF
28084 cat confdefs.h >>conftest.$ac_ext
28085 cat >>conftest.$ac_ext <<_ACEOF
28086 /* end confdefs.h. */
28087 $ac_includes_default
28088 #include <$ac_header>
28089 _ACEOF
28090 rm -f conftest.$ac_objext
28091 if { (ac_try="$ac_compile"
28092 case "(($ac_try" in
28093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094 *) ac_try_echo=$ac_try;;
28095 esac
28096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28097 $as_echo "$ac_try_echo") >&5
28098 (eval "$ac_compile") 2>conftest.er1
28099 ac_status=$?
28100 grep -v '^ *+' conftest.er1 >conftest.err
28101 rm -f conftest.er1
28102 cat conftest.err >&5
28103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); } && {
28105 test -z "$ac_c_werror_flag" ||
28106 test ! -s conftest.err
28107 } && test -s conftest.$ac_objext; then
28108 ac_header_compiler=yes
28109 else
28110 $as_echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28113 ac_header_compiler=no
28114 fi
28116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28118 $as_echo "$ac_header_compiler" >&6; }
28120 # Is the header present?
28121 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28122 $as_echo_n "checking $ac_header presence... " >&6; }
28123 cat >conftest.$ac_ext <<_ACEOF
28124 /* confdefs.h. */
28125 _ACEOF
28126 cat confdefs.h >>conftest.$ac_ext
28127 cat >>conftest.$ac_ext <<_ACEOF
28128 /* end confdefs.h. */
28129 #include <$ac_header>
28130 _ACEOF
28131 if { (ac_try="$ac_cpp conftest.$ac_ext"
28132 case "(($ac_try" in
28133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28134 *) ac_try_echo=$ac_try;;
28135 esac
28136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28137 $as_echo "$ac_try_echo") >&5
28138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28139 ac_status=$?
28140 grep -v '^ *+' conftest.er1 >conftest.err
28141 rm -f conftest.er1
28142 cat conftest.err >&5
28143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); } >/dev/null && {
28145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28146 test ! -s conftest.err
28147 }; then
28148 ac_header_preproc=yes
28149 else
28150 $as_echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28153 ac_header_preproc=no
28154 fi
28156 rm -f conftest.err conftest.$ac_ext
28157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28158 $as_echo "$ac_header_preproc" >&6; }
28160 # So? What about this header?
28161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28162 yes:no: )
28163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28164 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28167 ac_header_preproc=yes
28168 ;;
28169 no:yes:* )
28170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28171 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28173 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28175 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28177 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28179 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28181 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28183 ;;
28184 esac
28185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28186 $as_echo_n "checking for $ac_header... " >&6; }
28187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28188 $as_echo_n "(cached) " >&6
28189 else
28190 eval "$as_ac_Header=\$ac_header_preproc"
28191 fi
28192 ac_res=`eval 'as_val=${'$as_ac_Header'}
28193 $as_echo "$as_val"'`
28194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28195 $as_echo "$ac_res" >&6; }
28197 fi
28198 as_val=`eval 'as_val=${'$as_ac_Header'}
28199 $as_echo "$as_val"'`
28200 if test "x$as_val" = x""yes; then
28201 cat >>confdefs.h <<_ACEOF
28202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28203 _ACEOF
28205 for ac_header in lua$lua_vdot/lualib.h
28206 do
28207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28210 $as_echo_n "checking for $ac_header... " >&6; }
28211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28212 $as_echo_n "(cached) " >&6
28213 fi
28214 ac_res=`eval 'as_val=${'$as_ac_Header'}
28215 $as_echo "$as_val"'`
28216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28217 $as_echo "$ac_res" >&6; }
28218 else
28219 # Is the header compilable?
28220 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28221 $as_echo_n "checking $ac_header usability... " >&6; }
28222 cat >conftest.$ac_ext <<_ACEOF
28223 /* confdefs.h. */
28224 _ACEOF
28225 cat confdefs.h >>conftest.$ac_ext
28226 cat >>conftest.$ac_ext <<_ACEOF
28227 /* end confdefs.h. */
28228 $ac_includes_default
28229 #include <$ac_header>
28230 _ACEOF
28231 rm -f conftest.$ac_objext
28232 if { (ac_try="$ac_compile"
28233 case "(($ac_try" in
28234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28235 *) ac_try_echo=$ac_try;;
28236 esac
28237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28238 $as_echo "$ac_try_echo") >&5
28239 (eval "$ac_compile") 2>conftest.er1
28240 ac_status=$?
28241 grep -v '^ *+' conftest.er1 >conftest.err
28242 rm -f conftest.er1
28243 cat conftest.err >&5
28244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } && {
28246 test -z "$ac_c_werror_flag" ||
28247 test ! -s conftest.err
28248 } && test -s conftest.$ac_objext; then
28249 ac_header_compiler=yes
28250 else
28251 $as_echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28254 ac_header_compiler=no
28255 fi
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28258 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28259 $as_echo "$ac_header_compiler" >&6; }
28261 # Is the header present?
28262 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28263 $as_echo_n "checking $ac_header presence... " >&6; }
28264 cat >conftest.$ac_ext <<_ACEOF
28265 /* confdefs.h. */
28266 _ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h. */
28270 #include <$ac_header>
28271 _ACEOF
28272 if { (ac_try="$ac_cpp conftest.$ac_ext"
28273 case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28276 esac
28277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28278 $as_echo "$ac_try_echo") >&5
28279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28280 ac_status=$?
28281 grep -v '^ *+' conftest.er1 >conftest.err
28282 rm -f conftest.er1
28283 cat conftest.err >&5
28284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } >/dev/null && {
28286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28287 test ! -s conftest.err
28288 }; then
28289 ac_header_preproc=yes
28290 else
28291 $as_echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28294 ac_header_preproc=no
28295 fi
28297 rm -f conftest.err conftest.$ac_ext
28298 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28299 $as_echo "$ac_header_preproc" >&6; }
28301 # So? What about this header?
28302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28303 yes:no: )
28304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28305 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28307 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28308 ac_header_preproc=yes
28309 ;;
28310 no:yes:* )
28311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28312 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28314 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28316 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28318 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28322 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28324 ;;
28325 esac
28326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28327 $as_echo_n "checking for $ac_header... " >&6; }
28328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28329 $as_echo_n "(cached) " >&6
28330 else
28331 eval "$as_ac_Header=\$ac_header_preproc"
28332 fi
28333 ac_res=`eval 'as_val=${'$as_ac_Header'}
28334 $as_echo "$as_val"'`
28335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28336 $as_echo "$ac_res" >&6; }
28338 fi
28339 as_val=`eval 'as_val=${'$as_ac_Header'}
28340 $as_echo "$as_val"'`
28341 if test "x$as_val" = x""yes; then
28342 cat >>confdefs.h <<_ACEOF
28343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28344 _ACEOF
28345 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
28346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28347 { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
28348 $as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
28349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28350 $as_echo_n "(cached) " >&6
28351 fi
28352 ac_res=`eval 'as_val=${'$as_ac_Header'}
28353 $as_echo "$as_val"'`
28354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28355 $as_echo "$ac_res" >&6; }
28356 else
28357 # Is the header compilable?
28358 { $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h usability" >&5
28359 $as_echo_n "checking lua$lua_vdot/lauxlib.h usability... " >&6; }
28360 cat >conftest.$ac_ext <<_ACEOF
28361 /* confdefs.h. */
28362 _ACEOF
28363 cat confdefs.h >>conftest.$ac_ext
28364 cat >>conftest.$ac_ext <<_ACEOF
28365 /* end confdefs.h. */
28366 $ac_includes_default
28367 #include <lua$lua_vdot/lauxlib.h>
28368 _ACEOF
28369 rm -f conftest.$ac_objext
28370 if { (ac_try="$ac_compile"
28371 case "(($ac_try" in
28372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373 *) ac_try_echo=$ac_try;;
28374 esac
28375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28376 $as_echo "$ac_try_echo") >&5
28377 (eval "$ac_compile") 2>conftest.er1
28378 ac_status=$?
28379 grep -v '^ *+' conftest.er1 >conftest.err
28380 rm -f conftest.er1
28381 cat conftest.err >&5
28382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } && {
28384 test -z "$ac_c_werror_flag" ||
28385 test ! -s conftest.err
28386 } && test -s conftest.$ac_objext; then
28387 ac_header_compiler=yes
28388 else
28389 $as_echo "$as_me: failed program was:" >&5
28390 sed 's/^/| /' conftest.$ac_ext >&5
28392 ac_header_compiler=no
28393 fi
28395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28397 $as_echo "$ac_header_compiler" >&6; }
28399 # Is the header present?
28400 { $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h presence" >&5
28401 $as_echo_n "checking lua$lua_vdot/lauxlib.h presence... " >&6; }
28402 cat >conftest.$ac_ext <<_ACEOF
28403 /* confdefs.h. */
28404 _ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h. */
28408 #include <lua$lua_vdot/lauxlib.h>
28409 _ACEOF
28410 if { (ac_try="$ac_cpp conftest.$ac_ext"
28411 case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28414 esac
28415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28416 $as_echo "$ac_try_echo") >&5
28417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28418 ac_status=$?
28419 grep -v '^ *+' conftest.er1 >conftest.err
28420 rm -f conftest.er1
28421 cat conftest.err >&5
28422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); } >/dev/null && {
28424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28425 test ! -s conftest.err
28426 }; then
28427 ac_header_preproc=yes
28428 else
28429 $as_echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28432 ac_header_preproc=no
28433 fi
28435 rm -f conftest.err conftest.$ac_ext
28436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28437 $as_echo "$ac_header_preproc" >&6; }
28439 # So? What about this header?
28440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28441 yes:no: )
28442 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28443 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28444 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&5
28445 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&2;}
28446 ac_header_preproc=yes
28447 ;;
28448 no:yes:* )
28449 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&5
28450 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&2;}
28451 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: check for missing prerequisite headers?" >&5
28452 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: check for missing prerequisite headers?" >&2;}
28453 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&5
28454 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&2;}
28455 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
28456 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28457 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&5
28458 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
28459 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&5
28460 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
28462 ;;
28463 esac
28464 { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
28465 $as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
28466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28467 $as_echo_n "(cached) " >&6
28468 else
28469 eval "$as_ac_Header=\$ac_header_preproc"
28470 fi
28471 ac_res=`eval 'as_val=${'$as_ac_Header'}
28472 $as_echo "$as_val"'`
28473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28474 $as_echo "$ac_res" >&6; }
28476 fi
28477 as_val=`eval 'as_val=${'$as_ac_Header'}
28478 $as_echo "$as_val"'`
28479 if test "x$as_val" = x""yes; then
28480 lua_headerdir=lua$lua_vdot
28481 fi
28484 fi
28486 done
28488 else
28490 for ac_header in lua.h
28491 do
28492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28494 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28495 $as_echo_n "checking for $ac_header... " >&6; }
28496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28497 $as_echo_n "(cached) " >&6
28498 fi
28499 ac_res=`eval 'as_val=${'$as_ac_Header'}
28500 $as_echo "$as_val"'`
28501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28502 $as_echo "$ac_res" >&6; }
28503 else
28504 # Is the header compilable?
28505 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28506 $as_echo_n "checking $ac_header usability... " >&6; }
28507 cat >conftest.$ac_ext <<_ACEOF
28508 /* confdefs.h. */
28509 _ACEOF
28510 cat confdefs.h >>conftest.$ac_ext
28511 cat >>conftest.$ac_ext <<_ACEOF
28512 /* end confdefs.h. */
28513 $ac_includes_default
28514 #include <$ac_header>
28515 _ACEOF
28516 rm -f conftest.$ac_objext
28517 if { (ac_try="$ac_compile"
28518 case "(($ac_try" in
28519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520 *) ac_try_echo=$ac_try;;
28521 esac
28522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28523 $as_echo "$ac_try_echo") >&5
28524 (eval "$ac_compile") 2>conftest.er1
28525 ac_status=$?
28526 grep -v '^ *+' conftest.er1 >conftest.err
28527 rm -f conftest.er1
28528 cat conftest.err >&5
28529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } && {
28531 test -z "$ac_c_werror_flag" ||
28532 test ! -s conftest.err
28533 } && test -s conftest.$ac_objext; then
28534 ac_header_compiler=yes
28535 else
28536 $as_echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28539 ac_header_compiler=no
28540 fi
28542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28543 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28544 $as_echo "$ac_header_compiler" >&6; }
28546 # Is the header present?
28547 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28548 $as_echo_n "checking $ac_header presence... " >&6; }
28549 cat >conftest.$ac_ext <<_ACEOF
28550 /* confdefs.h. */
28551 _ACEOF
28552 cat confdefs.h >>conftest.$ac_ext
28553 cat >>conftest.$ac_ext <<_ACEOF
28554 /* end confdefs.h. */
28555 #include <$ac_header>
28556 _ACEOF
28557 if { (ac_try="$ac_cpp conftest.$ac_ext"
28558 case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28561 esac
28562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28563 $as_echo "$ac_try_echo") >&5
28564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28565 ac_status=$?
28566 grep -v '^ *+' conftest.er1 >conftest.err
28567 rm -f conftest.er1
28568 cat conftest.err >&5
28569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); } >/dev/null && {
28571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28572 test ! -s conftest.err
28573 }; then
28574 ac_header_preproc=yes
28575 else
28576 $as_echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28579 ac_header_preproc=no
28580 fi
28582 rm -f conftest.err conftest.$ac_ext
28583 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28584 $as_echo "$ac_header_preproc" >&6; }
28586 # So? What about this header?
28587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28588 yes:no: )
28589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28590 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28592 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28593 ac_header_preproc=yes
28594 ;;
28595 no:yes:* )
28596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28597 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28599 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28601 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28603 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28607 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28609 ;;
28610 esac
28611 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28612 $as_echo_n "checking for $ac_header... " >&6; }
28613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28614 $as_echo_n "(cached) " >&6
28615 else
28616 eval "$as_ac_Header=\$ac_header_preproc"
28617 fi
28618 ac_res=`eval 'as_val=${'$as_ac_Header'}
28619 $as_echo "$as_val"'`
28620 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28621 $as_echo "$ac_res" >&6; }
28623 fi
28624 as_val=`eval 'as_val=${'$as_ac_Header'}
28625 $as_echo "$as_val"'`
28626 if test "x$as_val" = x""yes; then
28627 cat >>confdefs.h <<_ACEOF
28628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28629 _ACEOF
28631 for ac_header in lualib.h
28632 do
28633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28635 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28636 $as_echo_n "checking for $ac_header... " >&6; }
28637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28638 $as_echo_n "(cached) " >&6
28639 fi
28640 ac_res=`eval 'as_val=${'$as_ac_Header'}
28641 $as_echo "$as_val"'`
28642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28643 $as_echo "$ac_res" >&6; }
28644 else
28645 # Is the header compilable?
28646 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28647 $as_echo_n "checking $ac_header usability... " >&6; }
28648 cat >conftest.$ac_ext <<_ACEOF
28649 /* confdefs.h. */
28650 _ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h. */
28654 $ac_includes_default
28655 #include <$ac_header>
28656 _ACEOF
28657 rm -f conftest.$ac_objext
28658 if { (ac_try="$ac_compile"
28659 case "(($ac_try" in
28660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28661 *) ac_try_echo=$ac_try;;
28662 esac
28663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28664 $as_echo "$ac_try_echo") >&5
28665 (eval "$ac_compile") 2>conftest.er1
28666 ac_status=$?
28667 grep -v '^ *+' conftest.er1 >conftest.err
28668 rm -f conftest.er1
28669 cat conftest.err >&5
28670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } && {
28672 test -z "$ac_c_werror_flag" ||
28673 test ! -s conftest.err
28674 } && test -s conftest.$ac_objext; then
28675 ac_header_compiler=yes
28676 else
28677 $as_echo "$as_me: failed program was:" >&5
28678 sed 's/^/| /' conftest.$ac_ext >&5
28680 ac_header_compiler=no
28681 fi
28683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28684 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28685 $as_echo "$ac_header_compiler" >&6; }
28687 # Is the header present?
28688 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28689 $as_echo_n "checking $ac_header presence... " >&6; }
28690 cat >conftest.$ac_ext <<_ACEOF
28691 /* confdefs.h. */
28692 _ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h. */
28696 #include <$ac_header>
28697 _ACEOF
28698 if { (ac_try="$ac_cpp conftest.$ac_ext"
28699 case "(($ac_try" in
28700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701 *) ac_try_echo=$ac_try;;
28702 esac
28703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28704 $as_echo "$ac_try_echo") >&5
28705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28706 ac_status=$?
28707 grep -v '^ *+' conftest.er1 >conftest.err
28708 rm -f conftest.er1
28709 cat conftest.err >&5
28710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } >/dev/null && {
28712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28713 test ! -s conftest.err
28714 }; then
28715 ac_header_preproc=yes
28716 else
28717 $as_echo "$as_me: failed program was:" >&5
28718 sed 's/^/| /' conftest.$ac_ext >&5
28720 ac_header_preproc=no
28721 fi
28723 rm -f conftest.err conftest.$ac_ext
28724 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28725 $as_echo "$ac_header_preproc" >&6; }
28727 # So? What about this header?
28728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28729 yes:no: )
28730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28731 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28733 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28734 ac_header_preproc=yes
28735 ;;
28736 no:yes:* )
28737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28738 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28740 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28742 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28744 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28748 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28750 ;;
28751 esac
28752 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28753 $as_echo_n "checking for $ac_header... " >&6; }
28754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28755 $as_echo_n "(cached) " >&6
28756 else
28757 eval "$as_ac_Header=\$ac_header_preproc"
28758 fi
28759 ac_res=`eval 'as_val=${'$as_ac_Header'}
28760 $as_echo "$as_val"'`
28761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28762 $as_echo "$ac_res" >&6; }
28764 fi
28765 as_val=`eval 'as_val=${'$as_ac_Header'}
28766 $as_echo "$as_val"'`
28767 if test "x$as_val" = x""yes; then
28768 cat >>confdefs.h <<_ACEOF
28769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28770 _ACEOF
28771 if test "${ac_cv_header_lauxlib_h+set}" = set; then
28772 { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
28773 $as_echo_n "checking for lauxlib.h... " >&6; }
28774 if test "${ac_cv_header_lauxlib_h+set}" = set; then
28775 $as_echo_n "(cached) " >&6
28776 fi
28777 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
28778 $as_echo "$ac_cv_header_lauxlib_h" >&6; }
28779 else
28780 # Is the header compilable?
28781 { $as_echo "$as_me:$LINENO: checking lauxlib.h usability" >&5
28782 $as_echo_n "checking lauxlib.h usability... " >&6; }
28783 cat >conftest.$ac_ext <<_ACEOF
28784 /* confdefs.h. */
28785 _ACEOF
28786 cat confdefs.h >>conftest.$ac_ext
28787 cat >>conftest.$ac_ext <<_ACEOF
28788 /* end confdefs.h. */
28789 $ac_includes_default
28790 #include <lauxlib.h>
28791 _ACEOF
28792 rm -f conftest.$ac_objext
28793 if { (ac_try="$ac_compile"
28794 case "(($ac_try" in
28795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796 *) ac_try_echo=$ac_try;;
28797 esac
28798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28799 $as_echo "$ac_try_echo") >&5
28800 (eval "$ac_compile") 2>conftest.er1
28801 ac_status=$?
28802 grep -v '^ *+' conftest.er1 >conftest.err
28803 rm -f conftest.er1
28804 cat conftest.err >&5
28805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); } && {
28807 test -z "$ac_c_werror_flag" ||
28808 test ! -s conftest.err
28809 } && test -s conftest.$ac_objext; then
28810 ac_header_compiler=yes
28811 else
28812 $as_echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28815 ac_header_compiler=no
28816 fi
28818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28820 $as_echo "$ac_header_compiler" >&6; }
28822 # Is the header present?
28823 { $as_echo "$as_me:$LINENO: checking lauxlib.h presence" >&5
28824 $as_echo_n "checking lauxlib.h presence... " >&6; }
28825 cat >conftest.$ac_ext <<_ACEOF
28826 /* confdefs.h. */
28827 _ACEOF
28828 cat confdefs.h >>conftest.$ac_ext
28829 cat >>conftest.$ac_ext <<_ACEOF
28830 /* end confdefs.h. */
28831 #include <lauxlib.h>
28832 _ACEOF
28833 if { (ac_try="$ac_cpp conftest.$ac_ext"
28834 case "(($ac_try" in
28835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836 *) ac_try_echo=$ac_try;;
28837 esac
28838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28839 $as_echo "$ac_try_echo") >&5
28840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28841 ac_status=$?
28842 grep -v '^ *+' conftest.er1 >conftest.err
28843 rm -f conftest.er1
28844 cat conftest.err >&5
28845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); } >/dev/null && {
28847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28848 test ! -s conftest.err
28849 }; then
28850 ac_header_preproc=yes
28851 else
28852 $as_echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28855 ac_header_preproc=no
28856 fi
28858 rm -f conftest.err conftest.$ac_ext
28859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28860 $as_echo "$ac_header_preproc" >&6; }
28862 # So? What about this header?
28863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28864 yes:no: )
28865 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28866 $as_echo "$as_me: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28867 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the compiler's result" >&5
28868 $as_echo "$as_me: WARNING: lauxlib.h: proceeding with the compiler's result" >&2;}
28869 ac_header_preproc=yes
28870 ;;
28871 no:yes:* )
28872 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: present but cannot be compiled" >&5
28873 $as_echo "$as_me: WARNING: lauxlib.h: present but cannot be compiled" >&2;}
28874 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: check for missing prerequisite headers?" >&5
28875 $as_echo "$as_me: WARNING: lauxlib.h: check for missing prerequisite headers?" >&2;}
28876 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: see the Autoconf documentation" >&5
28877 $as_echo "$as_me: WARNING: lauxlib.h: see the Autoconf documentation" >&2;}
28878 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
28879 $as_echo "$as_me: WARNING: lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28880 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&5
28881 $as_echo "$as_me: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&2;}
28882 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&5
28883 $as_echo "$as_me: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&2;}
28885 ;;
28886 esac
28887 { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
28888 $as_echo_n "checking for lauxlib.h... " >&6; }
28889 if test "${ac_cv_header_lauxlib_h+set}" = set; then
28890 $as_echo_n "(cached) " >&6
28891 else
28892 ac_cv_header_lauxlib_h=$ac_header_preproc
28893 fi
28894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
28895 $as_echo "$ac_cv_header_lauxlib_h" >&6; }
28897 fi
28898 if test "x$ac_cv_header_lauxlib_h" = x""yes; then
28899 lua_headerdir=""
28900 else
28901 lua_headerdir="no"
28902 fi
28905 fi
28907 done
28909 fi
28911 done
28913 fi
28915 done
28917 fi
28919 done
28922 if test "$lua_headerdir" = "no"; then
28923 enable_lua=no
28924 else
28925 COMP_LUA=lua
28926 fi
28928 if test "$COMP_LUA" != "lua"; then
28929 enable_lua=no
28930 { $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
28931 $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;}
28932 else
28933 # OK, headers found, let's check the libraries (LIBS is not used)
28934 LIBS=
28935 lua_havelib=no
28936 LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
28937 { $as_echo "$as_me:$LINENO: checking for library containing lua_call" >&5
28938 $as_echo_n "checking for library containing lua_call... " >&6; }
28939 if test "${ac_cv_search_lua_call+set}" = set; then
28940 $as_echo_n "(cached) " >&6
28941 else
28942 ac_func_search_save_LIBS=$LIBS
28943 cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h. */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28950 /* Override any GCC internal prototype to avoid an error.
28951 Use char because int might match the return type of a GCC
28952 builtin and then its argument prototype would still apply. */
28953 #ifdef __cplusplus
28954 extern "C"
28955 #endif
28956 char lua_call ();
28957 int
28958 main ()
28959 {
28960 return lua_call ();
28961 ;
28962 return 0;
28963 }
28964 _ACEOF
28965 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
28966 if test -z "$ac_lib"; then
28967 ac_res="none required"
28968 else
28969 ac_res=-l$ac_lib
28970 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
28971 fi
28972 rm -f conftest.$ac_objext conftest$ac_exeext
28973 if { (ac_try="$ac_link"
28974 case "(($ac_try" in
28975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28976 *) ac_try_echo=$ac_try;;
28977 esac
28978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28979 $as_echo "$ac_try_echo") >&5
28980 (eval "$ac_link") 2>conftest.er1
28981 ac_status=$?
28982 grep -v '^ *+' conftest.er1 >conftest.err
28983 rm -f conftest.er1
28984 cat conftest.err >&5
28985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); } && {
28987 test -z "$ac_c_werror_flag" ||
28988 test ! -s conftest.err
28989 } && test -s conftest$ac_exeext && {
28990 test "$cross_compiling" = yes ||
28991 $as_test_x conftest$ac_exeext
28992 }; then
28993 ac_cv_search_lua_call=$ac_res
28994 else
28995 $as_echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28999 fi
29001 rm -rf conftest.dSYM
29002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29003 conftest$ac_exeext
29004 if test "${ac_cv_search_lua_call+set}" = set; then
29005 break
29006 fi
29007 done
29008 if test "${ac_cv_search_lua_call+set}" = set; then
29009 :
29010 else
29011 ac_cv_search_lua_call=no
29012 fi
29013 rm conftest.$ac_ext
29014 LIBS=$ac_func_search_save_LIBS
29015 fi
29016 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_lua_call" >&5
29017 $as_echo "$ac_cv_search_lua_call" >&6; }
29018 ac_res=$ac_cv_search_lua_call
29019 if test "$ac_res" != no; then
29020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29021 { $as_echo "$as_me:$LINENO: checking for library containing luaL_register" >&5
29022 $as_echo_n "checking for library containing luaL_register... " >&6; }
29023 if test "${ac_cv_search_luaL_register+set}" = set; then
29024 $as_echo_n "(cached) " >&6
29025 else
29026 ac_func_search_save_LIBS=$LIBS
29027 cat >conftest.$ac_ext <<_ACEOF
29028 /* confdefs.h. */
29029 _ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h. */
29034 /* Override any GCC internal prototype to avoid an error.
29035 Use char because int might match the return type of a GCC
29036 builtin and then its argument prototype would still apply. */
29037 #ifdef __cplusplus
29038 extern "C"
29039 #endif
29040 char luaL_register ();
29041 int
29042 main ()
29043 {
29044 return luaL_register ();
29045 ;
29046 return 0;
29047 }
29048 _ACEOF
29049 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
29050 if test -z "$ac_lib"; then
29051 ac_res="none required"
29052 else
29053 ac_res=-l$ac_lib
29054 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
29055 fi
29056 rm -f conftest.$ac_objext conftest$ac_exeext
29057 if { (ac_try="$ac_link"
29058 case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29061 esac
29062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29063 $as_echo "$ac_try_echo") >&5
29064 (eval "$ac_link") 2>conftest.er1
29065 ac_status=$?
29066 grep -v '^ *+' conftest.er1 >conftest.err
29067 rm -f conftest.er1
29068 cat conftest.err >&5
29069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); } && {
29071 test -z "$ac_c_werror_flag" ||
29072 test ! -s conftest.err
29073 } && test -s conftest$ac_exeext && {
29074 test "$cross_compiling" = yes ||
29075 $as_test_x conftest$ac_exeext
29076 }; then
29077 ac_cv_search_luaL_register=$ac_res
29078 else
29079 $as_echo "$as_me: failed program was:" >&5
29080 sed 's/^/| /' conftest.$ac_ext >&5
29083 fi
29085 rm -rf conftest.dSYM
29086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29087 conftest$ac_exeext
29088 if test "${ac_cv_search_luaL_register+set}" = set; then
29089 break
29090 fi
29091 done
29092 if test "${ac_cv_search_luaL_register+set}" = set; then
29093 :
29094 else
29095 ac_cv_search_luaL_register=no
29096 fi
29097 rm conftest.$ac_ext
29098 LIBS=$ac_func_search_save_LIBS
29099 fi
29100 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_register" >&5
29101 $as_echo "$ac_cv_search_luaL_register" >&6; }
29102 ac_res=$ac_cv_search_luaL_register
29103 if test "$ac_res" != no; then
29104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29105 lua_havelib=LUA$lua_vndot
29106 else
29107 { $as_echo "$as_me:$LINENO: checking for library containing luaL_module" >&5
29108 $as_echo_n "checking for library containing luaL_module... " >&6; }
29109 if test "${ac_cv_search_luaL_module+set}" = set; then
29110 $as_echo_n "(cached) " >&6
29111 else
29112 ac_func_search_save_LIBS=$LIBS
29113 cat >conftest.$ac_ext <<_ACEOF
29114 /* confdefs.h. */
29115 _ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29120 /* Override any GCC internal prototype to avoid an error.
29121 Use char because int might match the return type of a GCC
29122 builtin and then its argument prototype would still apply. */
29123 #ifdef __cplusplus
29124 extern "C"
29125 #endif
29126 char luaL_module ();
29127 int
29128 main ()
29129 {
29130 return luaL_module ();
29131 ;
29132 return 0;
29133 }
29134 _ACEOF
29135 for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
29136 if test -z "$ac_lib"; then
29137 ac_res="none required"
29138 else
29139 ac_res=-l$ac_lib
29140 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
29141 fi
29142 rm -f conftest.$ac_objext conftest$ac_exeext
29143 if { (ac_try="$ac_link"
29144 case "(($ac_try" in
29145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146 *) ac_try_echo=$ac_try;;
29147 esac
29148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29149 $as_echo "$ac_try_echo") >&5
29150 (eval "$ac_link") 2>conftest.er1
29151 ac_status=$?
29152 grep -v '^ *+' conftest.er1 >conftest.err
29153 rm -f conftest.er1
29154 cat conftest.err >&5
29155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); } && {
29157 test -z "$ac_c_werror_flag" ||
29158 test ! -s conftest.err
29159 } && test -s conftest$ac_exeext && {
29160 test "$cross_compiling" = yes ||
29161 $as_test_x conftest$ac_exeext
29162 }; then
29163 ac_cv_search_luaL_module=$ac_res
29164 else
29165 $as_echo "$as_me: failed program was:" >&5
29166 sed 's/^/| /' conftest.$ac_ext >&5
29169 fi
29171 rm -rf conftest.dSYM
29172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29173 conftest$ac_exeext
29174 if test "${ac_cv_search_luaL_module+set}" = set; then
29175 break
29176 fi
29177 done
29178 if test "${ac_cv_search_luaL_module+set}" = set; then
29179 :
29180 else
29181 ac_cv_search_luaL_module=no
29182 fi
29183 rm conftest.$ac_ext
29184 LIBS=$ac_func_search_save_LIBS
29185 fi
29186 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_module" >&5
29187 $as_echo "$ac_cv_search_luaL_module" >&6; }
29188 ac_res=$ac_cv_search_luaL_module
29189 if test "$ac_res" != no; then
29190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29191 lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
29192 test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
29193 else
29194 { $as_echo "$as_me:$LINENO: checking for library containing luaL_openlib" >&5
29195 $as_echo_n "checking for library containing luaL_openlib... " >&6; }
29196 if test "${ac_cv_search_luaL_openlib+set}" = set; then
29197 $as_echo_n "(cached) " >&6
29198 else
29199 ac_func_search_save_LIBS=$LIBS
29200 cat >conftest.$ac_ext <<_ACEOF
29201 /* confdefs.h. */
29202 _ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h. */
29207 /* Override any GCC internal prototype to avoid an error.
29208 Use char because int might match the return type of a GCC
29209 builtin and then its argument prototype would still apply. */
29210 #ifdef __cplusplus
29211 extern "C"
29212 #endif
29213 char luaL_openlib ();
29214 int
29215 main ()
29216 {
29217 return luaL_openlib ();
29218 ;
29219 return 0;
29220 }
29221 _ACEOF
29222 for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
29223 if test -z "$ac_lib"; then
29224 ac_res="none required"
29225 else
29226 ac_res=-l$ac_lib
29227 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
29228 fi
29229 rm -f conftest.$ac_objext conftest$ac_exeext
29230 if { (ac_try="$ac_link"
29231 case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29234 esac
29235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29236 $as_echo "$ac_try_echo") >&5
29237 (eval "$ac_link") 2>conftest.er1
29238 ac_status=$?
29239 grep -v '^ *+' conftest.er1 >conftest.err
29240 rm -f conftest.er1
29241 cat conftest.err >&5
29242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); } && {
29244 test -z "$ac_c_werror_flag" ||
29245 test ! -s conftest.err
29246 } && test -s conftest$ac_exeext && {
29247 test "$cross_compiling" = yes ||
29248 $as_test_x conftest$ac_exeext
29249 }; then
29250 ac_cv_search_luaL_openlib=$ac_res
29251 else
29252 $as_echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29256 fi
29258 rm -rf conftest.dSYM
29259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29260 conftest$ac_exeext
29261 if test "${ac_cv_search_luaL_openlib+set}" = set; then
29262 break
29263 fi
29264 done
29265 if test "${ac_cv_search_luaL_openlib+set}" = set; then
29266 :
29267 else
29268 ac_cv_search_luaL_openlib=no
29269 fi
29270 rm conftest.$ac_ext
29271 LIBS=$ac_func_search_save_LIBS
29272 fi
29273 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_openlib" >&5
29274 $as_echo "$ac_cv_search_luaL_openlib" >&6; }
29275 ac_res=$ac_cv_search_luaL_openlib
29276 if test "$ac_res" != no; then
29277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29278 lua_havelib=$lua_vndot
29279 else
29280 COMP_LUA=
29281 fi
29283 fi
29285 fi
29287 else
29288 COMP_LUA=
29289 fi
29291 lua_libs=$LIBS
29292 LIBS=
29294 # Options to pass when configuring Lua module
29295 if test "$lua_havelib" != "no"; then
29296 # OK, headers and libs found. Try to set lua flags
29297 # and modules installation dirs with pkg-config
29298 if test "$PKGCONFIG" != "no"; then
29299 if test "$lua_vndot" = "50"; then
29300 lua_pkg_prefix=lualib
29301 else
29302 lua_pkg_prefix=lua
29303 fi
29304 # try with dot, without dot and finally without version
29305 for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
29306 lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
29307 # same binaries?
29308 if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
29309 # OK, found CFLAGS. Get Lua LFLAGS and modules install dir
29310 LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
29311 LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
29312 LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
29313 LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
29314 break
29315 fi
29316 done
29317 fi
29319 LUA_RRD_LIBDIR="$langpref/lib/lua/$lua_vdot"
29320 # if lua 5.0 can't find compat-5.1, force installation of
29321 # compat-5.1.lua together with RRDtool.
29322 if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
29323 lua_need_compat51=1
29324 LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
29325 fi
29327 # if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
29328 if test "$LUA_CFLAGS" = ""; then
29329 { $as_echo "$as_me:$LINENO: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
29330 $as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
29331 LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
29332 LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
29333 LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
29334 fi
29336 # Check whether --enable-lua-site-install was given.
29337 if test "${enable_lua_site_install+set}" = set; then
29338 enableval=$enable_lua_site_install;
29339 else
29340 LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
29341 fi
29344 LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
29352 else
29353 enable_lua=no
29354 { $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
29355 $as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
29356 fi
29357 fi
29358 fi
29359 fi
29360 if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
29361 LUA_NEED_OUR_COMPAT51_TRUE=
29362 LUA_NEED_OUR_COMPAT51_FALSE='#'
29363 else
29364 LUA_NEED_OUR_COMPAT51_TRUE='#'
29365 LUA_NEED_OUR_COMPAT51_FALSE=
29366 fi
29368 if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
29369 LUA_SITE_CINSTALL_TRUE=
29370 LUA_SITE_CINSTALL_FALSE='#'
29371 else
29372 LUA_SITE_CINSTALL_TRUE='#'
29373 LUA_SITE_CINSTALL_FALSE=
29374 fi
29376 if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
29377 LUA_SITE_LINSTALL_TRUE=
29378 LUA_SITE_LINSTALL_FALSE='#'
29379 else
29380 LUA_SITE_LINSTALL_TRUE='#'
29381 LUA_SITE_LINSTALL_FALSE=
29382 fi
29384 if test "$lua_vndot" = "50"; then
29385 LUA50_TRUE=
29386 LUA50_FALSE='#'
29387 else
29388 LUA50_TRUE='#'
29389 LUA50_FALSE=
29390 fi
29392 if test "$enable_lua" = "yes"; then
29393 BUILD_LUA_TRUE=
29394 BUILD_LUA_FALSE='#'
29395 else
29396 BUILD_LUA_TRUE='#'
29397 BUILD_LUA_FALSE=
29398 fi
29401 enable_tcl_site=no
29403 # Check whether --enable-tcl was given.
29404 if test "${enable_tcl+set}" = set; then
29405 enableval=$enable_tcl;
29406 else
29407 enable_tcl=yes
29408 fi
29411 if test "$enable_tcl" = "yes"; then
29412 withval=""
29414 # Check whether --with-tcllib was given.
29415 if test "${with_tcllib+set}" = set; then
29416 withval=$with_tcllib;
29417 fi
29419 enable_tcl=no
29420 for dir in $withval /usr/lib /usr/lib64 /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
29421 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
29422 $as_echo_n "checking for tclConfig.sh in $dir... " >&6; }
29423 if test -f "$dir/tclConfig.sh" ; then
29424 tcl_config=$dir/tclConfig.sh
29425 enable_tcl=yes
29426 { $as_echo "$as_me:$LINENO: result: yes" >&5
29427 $as_echo "yes" >&6; }
29428 break
29429 else
29430 { $as_echo "$as_me:$LINENO: result: no" >&5
29431 $as_echo "no" >&6; }
29432 fi
29433 done
29435 if test "$enable_tcl" = "no"; then
29436 { $as_echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
29437 $as_echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
29438 else
29439 . $tcl_config
29440 TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
29441 if test -n "$TCL_INC_DIR"; then
29442 TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
29443 fi
29444 fi
29445 # Check whether --enable-tcl-site was given.
29446 if test "${enable_tcl_site+set}" = set; then
29447 enableval=$enable_tcl_site;
29448 else
29449 enable_tcl_site=yes
29450 fi
29453 fi
29455 if test "$enable_tcl" = "yes" ; then
29456 BUILD_TCL_TRUE=
29457 BUILD_TCL_FALSE='#'
29458 else
29459 BUILD_TCL_TRUE='#'
29460 BUILD_TCL_FALSE=
29461 fi
29463 if test "$enable_tcl_site" = "yes" ; then
29464 BUILD_TCL_SITE_TRUE=
29465 BUILD_TCL_SITE_FALSE='#'
29466 else
29467 BUILD_TCL_SITE_TRUE='#'
29468 BUILD_TCL_SITE_FALSE=
29469 fi
29484 # Check whether --enable-python was given.
29485 if test "${enable_python+set}" = set; then
29486 enableval=$enable_python;
29487 else
29488 enable_python=yes
29489 fi
29492 if test "$enable_python" = "yes"; then
29497 if test -n "$PYTHON"; then
29498 # If the user set $PYTHON, use it and don't search something else.
29499 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
29500 $as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
29501 prog="import sys
29502 # split strings by '.' and convert to numeric. Append some zeros
29503 # because we need at least 4 digits for the hex conversion.
29504 # map returns an iterator in Python 3.0 and a list in 2.x
29505 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
29506 minverhex = 0
29507 # xrange is not present in Python 3.0 and range returns an iterator
29508 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
29509 sys.exit(sys.hexversion < minverhex)"
29510 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
29511 ($PYTHON -c "$prog") >&5 2>&5
29512 ac_status=$?
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); }; then
29515 { $as_echo "$as_me:$LINENO: result: yes" >&5
29516 $as_echo "yes" >&6; }
29517 else
29518 { { $as_echo "$as_me:$LINENO: error: too old" >&5
29519 $as_echo "$as_me: error: too old" >&2;}
29520 { (exit 1); exit 1; }; }
29521 fi
29523 am_display_PYTHON=$PYTHON
29524 else
29525 # Otherwise, try each interpreter until we find one that satisfies
29526 # VERSION.
29527 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
29528 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
29529 if test "${am_cv_pathless_PYTHON+set}" = set; then
29530 $as_echo_n "(cached) " >&6
29531 else
29533 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
29534 test "$am_cv_pathless_PYTHON" = none && break
29535 prog="import sys
29536 # split strings by '.' and convert to numeric. Append some zeros
29537 # because we need at least 4 digits for the hex conversion.
29538 # map returns an iterator in Python 3.0 and a list in 2.x
29539 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
29540 minverhex = 0
29541 # xrange is not present in Python 3.0 and range returns an iterator
29542 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
29543 sys.exit(sys.hexversion < minverhex)"
29544 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
29545 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
29546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; then
29549 break
29550 fi
29552 done
29553 fi
29554 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
29555 $as_echo "$am_cv_pathless_PYTHON" >&6; }
29556 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
29557 if test "$am_cv_pathless_PYTHON" = none; then
29558 PYTHON=:
29559 else
29560 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
29561 set dummy $am_cv_pathless_PYTHON; ac_word=$2
29562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29563 $as_echo_n "checking for $ac_word... " >&6; }
29564 if test "${ac_cv_path_PYTHON+set}" = set; then
29565 $as_echo_n "(cached) " >&6
29566 else
29567 case $PYTHON in
29568 [\\/]* | ?:[\\/]*)
29569 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
29570 ;;
29571 *)
29572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29573 for as_dir in $PATH
29574 do
29575 IFS=$as_save_IFS
29576 test -z "$as_dir" && as_dir=.
29577 for ac_exec_ext in '' $ac_executable_extensions; do
29578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29579 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
29580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29581 break 2
29582 fi
29583 done
29584 done
29585 IFS=$as_save_IFS
29587 ;;
29588 esac
29589 fi
29590 PYTHON=$ac_cv_path_PYTHON
29591 if test -n "$PYTHON"; then
29592 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
29593 $as_echo "$PYTHON" >&6; }
29594 else
29595 { $as_echo "$as_me:$LINENO: result: no" >&5
29596 $as_echo "no" >&6; }
29597 fi
29600 fi
29601 am_display_PYTHON=$am_cv_pathless_PYTHON
29602 fi
29605 if test "$PYTHON" = :; then
29606 enable_python=no
29607 else
29610 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
29611 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
29612 if test "${am_cv_python_version+set}" = set; then
29613 $as_echo_n "(cached) " >&6
29614 else
29615 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
29616 fi
29617 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
29618 $as_echo "$am_cv_python_version" >&6; }
29619 PYTHON_VERSION=$am_cv_python_version
29623 PYTHON_PREFIX='${prefix}'
29625 PYTHON_EXEC_PREFIX='${exec_prefix}'
29629 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
29630 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
29631 if test "${am_cv_python_platform+set}" = set; then
29632 $as_echo_n "(cached) " >&6
29633 else
29634 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
29635 fi
29636 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
29637 $as_echo "$am_cv_python_platform" >&6; }
29638 PYTHON_PLATFORM=$am_cv_python_platform
29643 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
29644 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
29645 if test "${am_cv_python_pythondir+set}" = set; then
29646 $as_echo_n "(cached) " >&6
29647 else
29648 if test "x$prefix" = xNONE
29649 then
29650 am_py_prefix=$ac_default_prefix
29651 else
29652 am_py_prefix=$prefix
29653 fi
29654 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 ||
29655 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
29656 case $am_cv_python_pythondir in
29657 $am_py_prefix*)
29658 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
29659 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
29660 ;;
29661 esac
29663 fi
29664 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
29665 $as_echo "$am_cv_python_pythondir" >&6; }
29666 pythondir=$am_cv_python_pythondir
29670 pkgpythondir=\${pythondir}/$PACKAGE
29673 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
29674 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
29675 if test "${am_cv_python_pyexecdir+set}" = set; then
29676 $as_echo_n "(cached) " >&6
29677 else
29678 if test "x$exec_prefix" = xNONE
29679 then
29680 am_py_exec_prefix=$am_py_prefix
29681 else
29682 am_py_exec_prefix=$exec_prefix
29683 fi
29684 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 ||
29685 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
29686 case $am_cv_python_pyexecdir in
29687 $am_py_exec_prefix*)
29688 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
29689 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
29690 ;;
29691 esac
29693 fi
29694 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
29695 $as_echo "$am_cv_python_pyexecdir" >&6; }
29696 pyexecdir=$am_cv_python_pyexecdir
29700 pkgpyexecdir=\${pyexecdir}/$PACKAGE
29704 fi
29708 { $as_echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
29709 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
29710 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
29711 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
29712 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
29713 if test "$py_prefix" != "$py_exec_prefix"; then
29714 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
29715 fi
29717 save_CPPFLAGS="$CPPFLAGS"
29718 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
29719 cat >conftest.$ac_ext <<_ACEOF
29720 /* confdefs.h. */
29721 _ACEOF
29722 cat confdefs.h >>conftest.$ac_ext
29723 cat >>conftest.$ac_ext <<_ACEOF
29724 /* end confdefs.h. */
29725 #include <Python.h>
29726 _ACEOF
29727 if { (ac_try="$ac_cpp conftest.$ac_ext"
29728 case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731 esac
29732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29733 $as_echo "$ac_try_echo") >&5
29734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29735 ac_status=$?
29736 grep -v '^ *+' conftest.er1 >conftest.err
29737 rm -f conftest.er1
29738 cat conftest.err >&5
29739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } >/dev/null && {
29741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29742 test ! -s conftest.err
29743 }; then
29744 { $as_echo "$as_me:$LINENO: result: found" >&5
29745 $as_echo "found" >&6; }
29747 else
29748 $as_echo "$as_me: failed program was:" >&5
29749 sed 's/^/| /' conftest.$ac_ext >&5
29751 { $as_echo "$as_me:$LINENO: result: not found" >&5
29752 $as_echo "not found" >&6; }
29753 enable_python=no;{ $as_echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
29754 $as_echo "$as_me: WARNING: could not find Python headers" >&2;}
29755 fi
29757 rm -f conftest.err conftest.$ac_ext
29758 CPPFLAGS="$save_CPPFLAGS"
29760 fi
29762 if test x$enable_python = xno; then
29763 COMP_PYTHON=
29764 else
29765 COMP_PYTHON="python"
29766 fi
29771 for ac_prog in gnroff nroff
29772 do
29773 # Extract the first word of "$ac_prog", so it can be a program name with args.
29774 set dummy $ac_prog; ac_word=$2
29775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29776 $as_echo_n "checking for $ac_word... " >&6; }
29777 if test "${ac_cv_path_NROFF+set}" = set; then
29778 $as_echo_n "(cached) " >&6
29779 else
29780 case $NROFF in
29781 [\\/]* | ?:[\\/]*)
29782 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29783 ;;
29784 *)
29785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29786 for as_dir in $PATH
29787 do
29788 IFS=$as_save_IFS
29789 test -z "$as_dir" && as_dir=.
29790 for ac_exec_ext in '' $ac_executable_extensions; do
29791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29792 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29793 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29794 break 2
29795 fi
29796 done
29797 done
29798 IFS=$as_save_IFS
29800 ;;
29801 esac
29802 fi
29803 NROFF=$ac_cv_path_NROFF
29804 if test -n "$NROFF"; then
29805 { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
29806 $as_echo "$NROFF" >&6; }
29807 else
29808 { $as_echo "$as_me:$LINENO: result: no" >&5
29809 $as_echo "no" >&6; }
29810 fi
29813 test -n "$NROFF" && break
29814 done
29816 if test x$NROFF = x; then
29817 { { $as_echo "$as_me:$LINENO: error: I need a copy of *nroff to format the documentation" >&5
29818 $as_echo "$as_me: error: I need a copy of *nroff to format the documentation" >&2;}
29819 { (exit 1); exit 1; }; }
29820 fi
29822 for ac_prog in groff troff
29823 do
29824 # Extract the first word of "$ac_prog", so it can be a program name with args.
29825 set dummy $ac_prog; ac_word=$2
29826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29827 $as_echo_n "checking for $ac_word... " >&6; }
29828 if test "${ac_cv_path_TROFF+set}" = set; then
29829 $as_echo_n "(cached) " >&6
29830 else
29831 case $TROFF in
29832 [\\/]* | ?:[\\/]*)
29833 ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
29834 ;;
29835 *)
29836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29837 for as_dir in $PATH
29838 do
29839 IFS=$as_save_IFS
29840 test -z "$as_dir" && as_dir=.
29841 for ac_exec_ext in '' $ac_executable_extensions; do
29842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29843 ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
29844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29845 break 2
29846 fi
29847 done
29848 done
29849 IFS=$as_save_IFS
29851 ;;
29852 esac
29853 fi
29854 TROFF=$ac_cv_path_TROFF
29855 if test -n "$TROFF"; then
29856 { $as_echo "$as_me:$LINENO: result: $TROFF" >&5
29857 $as_echo "$TROFF" >&6; }
29858 else
29859 { $as_echo "$as_me:$LINENO: result: no" >&5
29860 $as_echo "no" >&6; }
29861 fi
29864 test -n "$TROFF" && break
29865 done
29867 if test x$TROFF = x; then
29868 { { $as_echo "$as_me:$LINENO: error: I need a copy of *troff to format the documentation" >&5
29869 $as_echo "$as_me: error: I need a copy of *troff to format the documentation" >&2;}
29870 { (exit 1); exit 1; }; }
29871 fi
29874 if test -z "$RRDDOCDIR"; then
29875 RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
29879 case $TERM in
29880 # for the most important terminal types we directly know the sequences
29881 xterm|xterm*|vt220|vt220*)
29882 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
29883 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
29884 ;;
29885 vt100|vt100*|cygwin)
29886 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
29887 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
29888 ;;
29889 *)
29890 T_MD=''
29891 T_ME=''
29892 ;;
29893 esac
29894 { $as_echo "$as_me:$LINENO: result: " >&5
29895 $as_echo "" >&6; }
29896 { $as_echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
29897 $as_echo "${T_MD}Apply Configuration Information${T_ME}" >&6; }
29900 ac_config_files="$ac_config_files examples/shared-demo.pl"
29902 ac_config_files="$ac_config_files examples/piped-demo.pl"
29904 ac_config_files="$ac_config_files examples/stripes.pl"
29906 ac_config_files="$ac_config_files examples/bigtops.pl"
29908 ac_config_files="$ac_config_files examples/minmax.pl"
29910 ac_config_files="$ac_config_files examples/4charts.pl"
29912 ac_config_files="$ac_config_files examples/perftest.pl"
29914 ac_config_files="$ac_config_files examples/Makefile"
29916 ac_config_files="$ac_config_files examples/rrdcached/Makefile"
29918 ac_config_files="$ac_config_files doc/Makefile"
29920 ac_config_files="$ac_config_files po/Makefile.in"
29922 ac_config_files="$ac_config_files src/Makefile"
29924 ac_config_files="$ac_config_files src/librrd.sym.in"
29926 ac_config_files="$ac_config_files src/librrd.pc"
29928 ac_config_files="$ac_config_files bindings/Makefile"
29930 ac_config_files="$ac_config_files bindings/tcl/Makefile"
29932 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
29934 ac_config_files="$ac_config_files Makefile"
29936 ac_config_files="$ac_config_files bindings/lua/Makefile"
29939 ac_config_commands="$ac_config_commands default"
29944 cat >confcache <<\_ACEOF
29945 # This file is a shell script that caches the results of configure
29946 # tests run on this system so they can be shared between configure
29947 # scripts and configure runs, see configure's option --config-cache.
29948 # It is not useful on other systems. If it contains results you don't
29949 # want to keep, you may remove or edit it.
29950 #
29951 # config.status only pays attention to the cache file if you give it
29952 # the --recheck option to rerun configure.
29953 #
29954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29956 # following values.
29958 _ACEOF
29960 # The following way of writing the cache mishandles newlines in values,
29961 # but we know of no workaround that is simple, portable, and efficient.
29962 # So, we kill variables containing newlines.
29963 # Ultrix sh set writes to stderr and can't be redirected directly,
29964 # and sets the high bit in the cache file unless we assign to the vars.
29965 (
29966 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29967 eval ac_val=\$$ac_var
29968 case $ac_val in #(
29969 *${as_nl}*)
29970 case $ac_var in #(
29971 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29973 esac
29974 case $ac_var in #(
29975 _ | IFS | as_nl) ;; #(
29976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29977 *) $as_unset $ac_var ;;
29978 esac ;;
29979 esac
29980 done
29982 (set) 2>&1 |
29983 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29984 *${as_nl}ac_space=\ *)
29985 # `set' does not quote correctly, so add quotes (double-quote
29986 # substitution turns \\\\ into \\, and sed turns \\ into \).
29987 sed -n \
29988 "s/'/'\\\\''/g;
29989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29990 ;; #(
29991 *)
29992 # `set' quotes correctly as required by POSIX, so do not add quotes.
29993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29994 ;;
29995 esac |
29996 sort
29997 ) |
29998 sed '
29999 /^ac_cv_env_/b end
30000 t clear
30001 :clear
30002 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30003 t end
30004 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30005 :end' >>confcache
30006 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30007 if test -w "$cache_file"; then
30008 test "x$cache_file" != "x/dev/null" &&
30009 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30010 $as_echo "$as_me: updating cache $cache_file" >&6;}
30011 cat confcache >$cache_file
30012 else
30013 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30014 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30015 fi
30016 fi
30017 rm -f confcache
30019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30020 # Let make expand exec_prefix.
30021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30023 DEFS=-DHAVE_CONFIG_H
30025 ac_libobjs=
30026 ac_ltlibobjs=
30027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30028 # 1. Remove the extension, and $U if already installed.
30029 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30030 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30031 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30032 # will be set to the directory where LIBOBJS objects are built.
30033 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30034 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30035 done
30036 LIBOBJS=$ac_libobjs
30038 LTLIBOBJS=$ac_ltlibobjs
30041 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30042 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30043 Usually this means the macro was only invoked conditionally." >&5
30044 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
30045 Usually this means the macro was only invoked conditionally." >&2;}
30046 { (exit 1); exit 1; }; }
30047 fi
30048 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30049 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30050 Usually this means the macro was only invoked conditionally." >&5
30051 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30052 Usually this means the macro was only invoked conditionally." >&2;}
30053 { (exit 1); exit 1; }; }
30054 fi
30055 if test -n "$EXEEXT"; then
30056 am__EXEEXT_TRUE=
30057 am__EXEEXT_FALSE='#'
30058 else
30059 am__EXEEXT_TRUE='#'
30060 am__EXEEXT_FALSE=
30061 fi
30063 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30064 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30065 Usually this means the macro was only invoked conditionally." >&5
30066 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30067 Usually this means the macro was only invoked conditionally." >&2;}
30068 { (exit 1); exit 1; }; }
30069 fi
30070 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
30071 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
30072 Usually this means the macro was only invoked conditionally." >&5
30073 $as_echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
30074 Usually this means the macro was only invoked conditionally." >&2;}
30075 { (exit 1); exit 1; }; }
30076 fi
30077 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
30078 { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
30079 Usually this means the macro was only invoked conditionally." >&5
30080 $as_echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
30081 Usually this means the macro was only invoked conditionally." >&2;}
30082 { (exit 1); exit 1; }; }
30083 fi
30085 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
30086 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
30087 Usually this means the macro was only invoked conditionally." >&5
30088 $as_echo "$as_me: error: conditional \"BUILD_GETOPT\" was never defined.
30089 Usually this means the macro was only invoked conditionally." >&2;}
30090 { (exit 1); exit 1; }; }
30091 fi
30092 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
30093 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
30094 Usually this means the macro was only invoked conditionally." >&5
30095 $as_echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
30096 Usually this means the macro was only invoked conditionally." >&2;}
30097 { (exit 1); exit 1; }; }
30098 fi
30099 if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
30100 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBDBI\" was never defined.
30101 Usually this means the macro was only invoked conditionally." >&5
30102 $as_echo "$as_me: error: conditional \"BUILD_LIBDBI\" was never defined.
30103 Usually this means the macro was only invoked conditionally." >&2;}
30104 { (exit 1); exit 1; }; }
30105 fi
30106 if test -z "${BUILD_LIBWRAP_TRUE}" && test -z "${BUILD_LIBWRAP_FALSE}"; then
30107 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBWRAP\" was never defined.
30108 Usually this means the macro was only invoked conditionally." >&5
30109 $as_echo "$as_me: error: conditional \"BUILD_LIBWRAP\" was never defined.
30110 Usually this means the macro was only invoked conditionally." >&2;}
30111 { (exit 1); exit 1; }; }
30112 fi
30113 if test -z "${BUILD_RRDGRAPH_TRUE}" && test -z "${BUILD_RRDGRAPH_FALSE}"; then
30114 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RRDGRAPH\" was never defined.
30115 Usually this means the macro was only invoked conditionally." >&5
30116 $as_echo "$as_me: error: conditional \"BUILD_RRDGRAPH\" was never defined.
30117 Usually this means the macro was only invoked conditionally." >&2;}
30118 { (exit 1); exit 1; }; }
30119 fi
30120 if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
30121 { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
30122 Usually this means the macro was only invoked conditionally." >&5
30123 $as_echo "$as_me: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
30124 Usually this means the macro was only invoked conditionally." >&2;}
30125 { (exit 1); exit 1; }; }
30126 fi
30127 if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
30128 { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
30129 Usually this means the macro was only invoked conditionally." >&5
30130 $as_echo "$as_me: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
30131 Usually this means the macro was only invoked conditionally." >&2;}
30132 { (exit 1); exit 1; }; }
30133 fi
30134 if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
30135 { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
30136 Usually this means the macro was only invoked conditionally." >&5
30137 $as_echo "$as_me: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
30138 Usually this means the macro was only invoked conditionally." >&2;}
30139 { (exit 1); exit 1; }; }
30140 fi
30141 if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
30142 { { $as_echo "$as_me:$LINENO: error: conditional \"LUA50\" was never defined.
30143 Usually this means the macro was only invoked conditionally." >&5
30144 $as_echo "$as_me: error: conditional \"LUA50\" was never defined.
30145 Usually this means the macro was only invoked conditionally." >&2;}
30146 { (exit 1); exit 1; }; }
30147 fi
30148 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
30149 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LUA\" was never defined.
30150 Usually this means the macro was only invoked conditionally." >&5
30151 $as_echo "$as_me: error: conditional \"BUILD_LUA\" was never defined.
30152 Usually this means the macro was only invoked conditionally." >&2;}
30153 { (exit 1); exit 1; }; }
30154 fi
30155 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
30156 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
30157 Usually this means the macro was only invoked conditionally." >&5
30158 $as_echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
30159 Usually this means the macro was only invoked conditionally." >&2;}
30160 { (exit 1); exit 1; }; }
30161 fi
30162 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
30163 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
30164 Usually this means the macro was only invoked conditionally." >&5
30165 $as_echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
30166 Usually this means the macro was only invoked conditionally." >&2;}
30167 { (exit 1); exit 1; }; }
30168 fi
30170 : ${CONFIG_STATUS=./config.status}
30171 ac_write_fail=0
30172 ac_clean_files_save=$ac_clean_files
30173 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30174 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30175 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30176 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30177 #! $SHELL
30178 # Generated by $as_me.
30179 # Run this file to recreate the current configuration.
30180 # Compiler output produced by configure, useful for debugging
30181 # configure, is in config.log if it exists.
30183 debug=false
30184 ac_cs_recheck=false
30185 ac_cs_silent=false
30186 SHELL=\${CONFIG_SHELL-$SHELL}
30187 _ACEOF
30189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30190 ## --------------------- ##
30191 ## M4sh Initialization. ##
30192 ## --------------------- ##
30194 # Be more Bourne compatible
30195 DUALCASE=1; export DUALCASE # for MKS sh
30196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30197 emulate sh
30198 NULLCMD=:
30199 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30200 # is contrary to our usage. Disable this feature.
30201 alias -g '${1+"$@"}'='"$@"'
30202 setopt NO_GLOB_SUBST
30203 else
30204 case `(set -o) 2>/dev/null` in
30205 *posix*) set -o posix ;;
30206 esac
30208 fi
30213 # PATH needs CR
30214 # Avoid depending upon Character Ranges.
30215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30218 as_cr_digits='0123456789'
30219 as_cr_alnum=$as_cr_Letters$as_cr_digits
30221 as_nl='
30222 '
30223 export as_nl
30224 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30225 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30228 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30229 as_echo='printf %s\n'
30230 as_echo_n='printf %s'
30231 else
30232 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30233 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30234 as_echo_n='/usr/ucb/echo -n'
30235 else
30236 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30237 as_echo_n_body='eval
30238 arg=$1;
30239 case $arg in
30240 *"$as_nl"*)
30241 expr "X$arg" : "X\\(.*\\)$as_nl";
30242 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30243 esac;
30244 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30245 '
30246 export as_echo_n_body
30247 as_echo_n='sh -c $as_echo_n_body as_echo'
30248 fi
30249 export as_echo_body
30250 as_echo='sh -c $as_echo_body as_echo'
30251 fi
30253 # The user is always right.
30254 if test "${PATH_SEPARATOR+set}" != set; then
30255 PATH_SEPARATOR=:
30256 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30257 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30258 PATH_SEPARATOR=';'
30259 }
30260 fi
30262 # Support unset when possible.
30263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30264 as_unset=unset
30265 else
30266 as_unset=false
30267 fi
30270 # IFS
30271 # We need space, tab and new line, in precisely that order. Quoting is
30272 # there to prevent editors from complaining about space-tab.
30273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30274 # splitting by setting IFS to empty value.)
30275 IFS=" "" $as_nl"
30277 # Find who we are. Look in the path if we contain no directory separator.
30278 case $0 in
30279 *[\\/]* ) as_myself=$0 ;;
30280 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30281 for as_dir in $PATH
30282 do
30283 IFS=$as_save_IFS
30284 test -z "$as_dir" && as_dir=.
30285 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30286 done
30287 IFS=$as_save_IFS
30289 ;;
30290 esac
30291 # We did not find ourselves, most probably we were run as `sh COMMAND'
30292 # in which case we are not to be found in the path.
30293 if test "x$as_myself" = x; then
30294 as_myself=$0
30295 fi
30296 if test ! -f "$as_myself"; then
30297 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30298 { (exit 1); exit 1; }
30299 fi
30301 # Work around bugs in pre-3.0 UWIN ksh.
30302 for as_var in ENV MAIL MAILPATH
30303 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30304 done
30305 PS1='$ '
30306 PS2='> '
30307 PS4='+ '
30309 # NLS nuisances.
30310 LC_ALL=C
30311 export LC_ALL
30312 LANGUAGE=C
30313 export LANGUAGE
30315 # Required to use basename.
30316 if expr a : '\(a\)' >/dev/null 2>&1 &&
30317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30318 as_expr=expr
30319 else
30320 as_expr=false
30321 fi
30323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30324 as_basename=basename
30325 else
30326 as_basename=false
30327 fi
30330 # Name of the executable.
30331 as_me=`$as_basename -- "$0" ||
30332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30333 X"$0" : 'X\(//\)$' \| \
30334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30335 $as_echo X/"$0" |
30336 sed '/^.*\/\([^/][^/]*\)\/*$/{
30337 s//\1/
30338 q
30339 }
30340 /^X\/\(\/\/\)$/{
30341 s//\1/
30342 q
30343 }
30344 /^X\/\(\/\).*/{
30345 s//\1/
30346 q
30347 }
30348 s/.*/./; q'`
30350 # CDPATH.
30351 $as_unset CDPATH
30355 as_lineno_1=$LINENO
30356 as_lineno_2=$LINENO
30357 test "x$as_lineno_1" != "x$as_lineno_2" &&
30358 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30360 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30361 # uniformly replaced by the line number. The first 'sed' inserts a
30362 # line-number line after each line using $LINENO; the second 'sed'
30363 # does the real work. The second script uses 'N' to pair each
30364 # line-number line with the line containing $LINENO, and appends
30365 # trailing '-' during substitution so that $LINENO is not a special
30366 # case at line end.
30367 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30368 # scripts with optimization help from Paolo Bonzini. Blame Lee
30369 # E. McMahon (1931-1989) for sed's syntax. :-)
30370 sed -n '
30371 p
30372 /[$]LINENO/=
30373 ' <$as_myself |
30374 sed '
30375 s/[$]LINENO.*/&-/
30376 t lineno
30377 b
30378 :lineno
30379 N
30380 :loop
30381 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30382 t loop
30383 s/-\n.*//
30384 ' >$as_me.lineno &&
30385 chmod +x "$as_me.lineno" ||
30386 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30387 { (exit 1); exit 1; }; }
30389 # Don't try to exec as it changes $[0], causing all sort of problems
30390 # (the dirname of $[0] is not the place where we might find the
30391 # original and so on. Autoconf is especially sensitive to this).
30392 . "./$as_me.lineno"
30393 # Exit status is that of the last command.
30394 exit
30395 }
30398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30399 as_dirname=dirname
30400 else
30401 as_dirname=false
30402 fi
30404 ECHO_C= ECHO_N= ECHO_T=
30405 case `echo -n x` in
30406 -n*)
30407 case `echo 'x\c'` in
30408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30409 *) ECHO_C='\c';;
30410 esac;;
30411 *)
30412 ECHO_N='-n';;
30413 esac
30414 if expr a : '\(a\)' >/dev/null 2>&1 &&
30415 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30416 as_expr=expr
30417 else
30418 as_expr=false
30419 fi
30421 rm -f conf$$ conf$$.exe conf$$.file
30422 if test -d conf$$.dir; then
30423 rm -f conf$$.dir/conf$$.file
30424 else
30425 rm -f conf$$.dir
30426 mkdir conf$$.dir 2>/dev/null
30427 fi
30428 if (echo >conf$$.file) 2>/dev/null; then
30429 if ln -s conf$$.file conf$$ 2>/dev/null; then
30430 as_ln_s='ln -s'
30431 # ... but there are two gotchas:
30432 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30433 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30434 # In both cases, we have to default to `cp -p'.
30435 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30436 as_ln_s='cp -p'
30437 elif ln conf$$.file conf$$ 2>/dev/null; then
30438 as_ln_s=ln
30439 else
30440 as_ln_s='cp -p'
30441 fi
30442 else
30443 as_ln_s='cp -p'
30444 fi
30445 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30446 rmdir conf$$.dir 2>/dev/null
30448 if mkdir -p . 2>/dev/null; then
30449 as_mkdir_p=:
30450 else
30451 test -d ./-p && rmdir ./-p
30452 as_mkdir_p=false
30453 fi
30455 if test -x / >/dev/null 2>&1; then
30456 as_test_x='test -x'
30457 else
30458 if ls -dL / >/dev/null 2>&1; then
30459 as_ls_L_option=L
30460 else
30461 as_ls_L_option=
30462 fi
30463 as_test_x='
30464 eval sh -c '\''
30465 if test -d "$1"; then
30466 test -d "$1/.";
30467 else
30468 case $1 in
30469 -*)set "./$1";;
30470 esac;
30471 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30472 ???[sx]*):;;*)false;;esac;fi
30473 '\'' sh
30474 '
30475 fi
30476 as_executable_p=$as_test_x
30478 # Sed expression to map a string onto a valid CPP name.
30479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30481 # Sed expression to map a string onto a valid variable name.
30482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30485 exec 6>&1
30487 # Save the log message, to keep $[0] and so on meaningful, and to
30488 # report actual input values of CONFIG_FILES etc. instead of their
30489 # values after options handling.
30490 ac_log="
30491 This file was extended by rrdtool $as_me 1.4.7, which was
30492 generated by GNU Autoconf 2.63. Invocation command line was
30494 CONFIG_FILES = $CONFIG_FILES
30495 CONFIG_HEADERS = $CONFIG_HEADERS
30496 CONFIG_LINKS = $CONFIG_LINKS
30497 CONFIG_COMMANDS = $CONFIG_COMMANDS
30498 $ $0 $@
30500 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30501 "
30503 _ACEOF
30505 case $ac_config_files in *"
30506 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30507 esac
30509 case $ac_config_headers in *"
30510 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30511 esac
30514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30515 # Files that config.status was made for.
30516 config_files="$ac_config_files"
30517 config_headers="$ac_config_headers"
30518 config_commands="$ac_config_commands"
30520 _ACEOF
30522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30523 ac_cs_usage="\
30524 \`$as_me' instantiates files from templates according to the
30525 current configuration.
30527 Usage: $0 [OPTION]... [FILE]...
30529 -h, --help print this help, then exit
30530 -V, --version print version number and configuration settings, then exit
30531 -q, --quiet, --silent
30532 do not print progress messages
30533 -d, --debug don't remove temporary files
30534 --recheck update $as_me by reconfiguring in the same conditions
30535 --file=FILE[:TEMPLATE]
30536 instantiate the configuration file FILE
30537 --header=FILE[:TEMPLATE]
30538 instantiate the configuration header FILE
30540 Configuration files:
30541 $config_files
30543 Configuration headers:
30544 $config_headers
30546 Configuration commands:
30547 $config_commands
30549 Report bugs to <bug-autoconf@gnu.org>."
30551 _ACEOF
30552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30553 ac_cs_version="\\
30554 rrdtool config.status 1.4.7
30555 configured by $0, generated by GNU Autoconf 2.63,
30556 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30558 Copyright (C) 2008 Free Software Foundation, Inc.
30559 This config.status script is free software; the Free Software Foundation
30560 gives unlimited permission to copy, distribute and modify it."
30562 ac_pwd='$ac_pwd'
30563 srcdir='$srcdir'
30564 INSTALL='$INSTALL'
30565 MKDIR_P='$MKDIR_P'
30566 AWK='$AWK'
30567 test -n "\$AWK" || AWK=awk
30568 _ACEOF
30570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30571 # The default lists apply if the user does not specify any file.
30572 ac_need_defaults=:
30573 while test $# != 0
30574 do
30575 case $1 in
30576 --*=*)
30577 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30578 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30579 ac_shift=:
30580 ;;
30581 *)
30582 ac_option=$1
30583 ac_optarg=$2
30584 ac_shift=shift
30585 ;;
30586 esac
30588 case $ac_option in
30589 # Handling of the options.
30590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30591 ac_cs_recheck=: ;;
30592 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30593 $as_echo "$ac_cs_version"; exit ;;
30594 --debug | --debu | --deb | --de | --d | -d )
30595 debug=: ;;
30596 --file | --fil | --fi | --f )
30597 $ac_shift
30598 case $ac_optarg in
30599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30600 esac
30601 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30602 ac_need_defaults=false;;
30603 --header | --heade | --head | --hea )
30604 $ac_shift
30605 case $ac_optarg in
30606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30607 esac
30608 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30609 ac_need_defaults=false;;
30610 --he | --h)
30611 # Conflict between --help and --header
30612 { $as_echo "$as_me: error: ambiguous option: $1
30613 Try \`$0 --help' for more information." >&2
30614 { (exit 1); exit 1; }; };;
30615 --help | --hel | -h )
30616 $as_echo "$ac_cs_usage"; exit ;;
30617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30618 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30619 ac_cs_silent=: ;;
30621 # This is an error.
30622 -*) { $as_echo "$as_me: error: unrecognized option: $1
30623 Try \`$0 --help' for more information." >&2
30624 { (exit 1); exit 1; }; } ;;
30626 *) ac_config_targets="$ac_config_targets $1"
30627 ac_need_defaults=false ;;
30629 esac
30630 shift
30631 done
30633 ac_configure_extra_args=
30635 if $ac_cs_silent; then
30636 exec 6>/dev/null
30637 ac_configure_extra_args="$ac_configure_extra_args --silent"
30638 fi
30640 _ACEOF
30641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30642 if \$ac_cs_recheck; then
30643 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30644 shift
30645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30646 CONFIG_SHELL='$SHELL'
30647 export CONFIG_SHELL
30648 exec "\$@"
30649 fi
30651 _ACEOF
30652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30653 exec 5>>config.log
30654 {
30655 echo
30656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30657 ## Running $as_me. ##
30658 _ASBOX
30659 $as_echo "$ac_log"
30660 } >&5
30662 _ACEOF
30663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30664 #
30665 # INIT-COMMANDS
30666 #
30667 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30670 # The HP-UX ksh and POSIX shell print the target directory to stdout
30671 # if CDPATH is set.
30672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30674 sed_quote_subst='$sed_quote_subst'
30675 double_quote_subst='$double_quote_subst'
30676 delay_variable_subst='$delay_variable_subst'
30677 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30678 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30679 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30680 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30681 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30682 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30683 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30684 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30685 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30686 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30687 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30688 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30689 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30690 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30691 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30692 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30693 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30694 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30695 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30696 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30697 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30698 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30699 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30700 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30701 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30702 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30703 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30704 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30705 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30706 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30707 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30708 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30709 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30710 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30711 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30712 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30713 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30714 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30715 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30716 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30717 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30718 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30719 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30720 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30721 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"`'
30722 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"`'
30723 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30724 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30725 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30726 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30727 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30728 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30729 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30730 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30731 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30732 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30733 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30734 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30735 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30736 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30737 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30738 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30739 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30740 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30741 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30742 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30743 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30744 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30745 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30746 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30747 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30748 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30749 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30750 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30751 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30752 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30753 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30754 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30755 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30756 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30757 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30758 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30759 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30760 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30761 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30762 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30763 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30764 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30765 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30766 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30767 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30768 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30769 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30770 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30771 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30772 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30773 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30774 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30775 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30776 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30777 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30778 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30779 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30780 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30781 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30782 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30783 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30784 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30785 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30786 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30787 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30788 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30789 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30790 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30791 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30792 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30793 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30794 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30796 LTCC='$LTCC'
30797 LTCFLAGS='$LTCFLAGS'
30798 compiler='$compiler_DEFAULT'
30800 # Quote evaled strings.
30801 for var in SED \
30802 GREP \
30803 EGREP \
30804 FGREP \
30805 LD \
30806 NM \
30807 LN_S \
30808 lt_SP2NL \
30809 lt_NL2SP \
30810 reload_flag \
30811 OBJDUMP \
30812 deplibs_check_method \
30813 file_magic_cmd \
30814 AR \
30815 AR_FLAGS \
30816 STRIP \
30817 RANLIB \
30818 CC \
30819 CFLAGS \
30820 compiler \
30821 lt_cv_sys_global_symbol_pipe \
30822 lt_cv_sys_global_symbol_to_cdecl \
30823 lt_cv_sys_global_symbol_to_c_name_address \
30824 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30825 SHELL \
30826 ECHO \
30827 lt_prog_compiler_no_builtin_flag \
30828 lt_prog_compiler_wl \
30829 lt_prog_compiler_pic \
30830 lt_prog_compiler_static \
30831 lt_cv_prog_compiler_c_o \
30832 need_locks \
30833 DSYMUTIL \
30834 NMEDIT \
30835 LIPO \
30836 OTOOL \
30837 OTOOL64 \
30838 shrext_cmds \
30839 export_dynamic_flag_spec \
30840 whole_archive_flag_spec \
30841 compiler_needs_object \
30842 with_gnu_ld \
30843 allow_undefined_flag \
30844 no_undefined_flag \
30845 hardcode_libdir_flag_spec \
30846 hardcode_libdir_flag_spec_ld \
30847 hardcode_libdir_separator \
30848 fix_srcfile_path \
30849 exclude_expsyms \
30850 include_expsyms \
30851 file_list_spec \
30852 variables_saved_for_relink \
30853 libname_spec \
30854 library_names_spec \
30855 soname_spec \
30856 finish_eval \
30857 old_striplib \
30858 striplib; do
30859 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30860 *[\\\\\\\`\\"\\\$]*)
30861 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30862 ;;
30863 *)
30864 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30865 ;;
30866 esac
30867 done
30869 # Double-quote double-evaled strings.
30870 for var in reload_cmds \
30871 old_postinstall_cmds \
30872 old_postuninstall_cmds \
30873 old_archive_cmds \
30874 extract_expsyms_cmds \
30875 old_archive_from_new_cmds \
30876 old_archive_from_expsyms_cmds \
30877 archive_cmds \
30878 archive_expsym_cmds \
30879 module_cmds \
30880 module_expsym_cmds \
30881 export_symbols_cmds \
30882 prelink_cmds \
30883 postinstall_cmds \
30884 postuninstall_cmds \
30885 finish_cmds \
30886 sys_lib_search_path_spec \
30887 sys_lib_dlsearch_path_spec; do
30888 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30889 *[\\\\\\\`\\"\\\$]*)
30890 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30891 ;;
30892 *)
30893 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30894 ;;
30895 esac
30896 done
30898 # Fix-up fallback echo if it was mangled by the above quoting rules.
30899 case \$lt_ECHO in
30900 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30901 ;;
30902 esac
30904 ac_aux_dir='$ac_aux_dir'
30905 xsi_shell='$xsi_shell'
30906 lt_shell_append='$lt_shell_append'
30908 # See if we are running on zsh, and set the options which allow our
30909 # commands through without removal of \ escapes INIT.
30910 if test -n "\${ZSH_VERSION+set}" ; then
30911 setopt NO_GLOB_SUBST
30912 fi
30915 PACKAGE='$PACKAGE'
30916 VERSION='$VERSION'
30917 TIMESTAMP='$TIMESTAMP'
30918 RM='$RM'
30919 ofile='$ofile'
30923 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30924 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30925 # from automake < 1.5.
30926 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30927 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30928 LINGUAS="${LINGUAS-%UNSET%}"
30932 _ACEOF
30934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30936 # Handling of arguments.
30937 for ac_config_target in $ac_config_targets
30938 do
30939 case $ac_config_target in
30940 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30941 "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
30942 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30943 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
30944 "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
30945 "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
30946 "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
30947 "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
30948 "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
30949 "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
30950 "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
30951 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
30952 "examples/rrdcached/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rrdcached/Makefile" ;;
30953 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30954 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30955 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30956 "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
30957 "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
30958 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
30959 "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
30960 "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
30961 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30962 "bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/lua/Makefile" ;;
30963 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30965 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30966 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30967 { (exit 1); exit 1; }; };;
30968 esac
30969 done
30972 # If the user did not use the arguments to specify the items to instantiate,
30973 # then the envvar interface is used. Set only those that are not.
30974 # We use the long form for the default assignment because of an extremely
30975 # bizarre bug on SunOS 4.1.3.
30976 if $ac_need_defaults; then
30977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30980 fi
30982 # Have a temporary directory for convenience. Make it in the build tree
30983 # simply because there is no reason against having it here, and in addition,
30984 # creating and moving files from /tmp can sometimes cause problems.
30985 # Hook for its removal unless debugging.
30986 # Note that there is a small window in which the directory will not be cleaned:
30987 # after its creation but before its name has been assigned to `$tmp'.
30988 $debug ||
30989 {
30990 tmp=
30991 trap 'exit_status=$?
30992 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30993 ' 0
30994 trap '{ (exit 1); exit 1; }' 1 2 13 15
30995 }
30996 # Create a (secure) tmp directory for tmp files.
30998 {
30999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31000 test -n "$tmp" && test -d "$tmp"
31001 } ||
31002 {
31003 tmp=./conf$$-$RANDOM
31004 (umask 077 && mkdir "$tmp")
31005 } ||
31006 {
31007 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31008 { (exit 1); exit 1; }
31009 }
31011 # Set up the scripts for CONFIG_FILES section.
31012 # No need to generate them if there are no CONFIG_FILES.
31013 # This happens for instance with `./config.status config.h'.
31014 if test -n "$CONFIG_FILES"; then
31017 ac_cr='\r'
31018 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31019 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31020 ac_cs_awk_cr='\\r'
31021 else
31022 ac_cs_awk_cr=$ac_cr
31023 fi
31025 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31026 _ACEOF
31029 {
31030 echo "cat >conf$$subs.awk <<_ACEOF" &&
31031 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31032 echo "_ACEOF"
31033 } >conf$$subs.sh ||
31034 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31035 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31036 { (exit 1); exit 1; }; }
31037 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31038 ac_delim='%!_!# '
31039 for ac_last_try in false false false false false :; do
31040 . ./conf$$subs.sh ||
31041 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31042 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31043 { (exit 1); exit 1; }; }
31045 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31046 if test $ac_delim_n = $ac_delim_num; then
31047 break
31048 elif $ac_last_try; then
31049 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31050 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31051 { (exit 1); exit 1; }; }
31052 else
31053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31054 fi
31055 done
31056 rm -f conf$$subs.sh
31058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31059 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31060 _ACEOF
31061 sed -n '
31062 h
31063 s/^/S["/; s/!.*/"]=/
31064 p
31065 g
31066 s/^[^!]*!//
31067 :repl
31068 t repl
31069 s/'"$ac_delim"'$//
31070 t delim
31071 :nl
31072 h
31073 s/\(.\{148\}\).*/\1/
31074 t more1
31075 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31076 p
31077 n
31078 b repl
31079 :more1
31080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31081 p
31082 g
31083 s/.\{148\}//
31084 t nl
31085 :delim
31086 h
31087 s/\(.\{148\}\).*/\1/
31088 t more2
31089 s/["\\]/\\&/g; s/^/"/; s/$/"/
31090 p
31091 b
31092 :more2
31093 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31094 p
31095 g
31096 s/.\{148\}//
31097 t delim
31098 ' <conf$$subs.awk | sed '
31099 /^[^""]/{
31100 N
31101 s/\n//
31102 }
31103 ' >>$CONFIG_STATUS || ac_write_fail=1
31104 rm -f conf$$subs.awk
31105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31106 _ACAWK
31107 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31108 for (key in S) S_is_set[key] = 1
31109 FS = "\a"
31111 }
31112 {
31113 line = $ 0
31114 nfields = split(line, field, "@")
31115 substed = 0
31116 len = length(field[1])
31117 for (i = 2; i < nfields; i++) {
31118 key = field[i]
31119 keylen = length(key)
31120 if (S_is_set[key]) {
31121 value = S[key]
31122 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31123 len += length(value) + length(field[++i])
31124 substed = 1
31125 } else
31126 len += 1 + keylen
31127 }
31129 print line
31130 }
31132 _ACAWK
31133 _ACEOF
31134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31135 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31136 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31137 else
31138 cat
31139 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31140 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31141 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31142 { (exit 1); exit 1; }; }
31143 _ACEOF
31145 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31146 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31147 # trailing colons and then remove the whole line if VPATH becomes empty
31148 # (actually we leave an empty line to preserve line numbers).
31149 if test "x$srcdir" = x.; then
31150 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31151 s/:*\$(srcdir):*/:/
31152 s/:*\${srcdir}:*/:/
31153 s/:*@srcdir@:*/:/
31154 s/^\([^=]*=[ ]*\):*/\1/
31155 s/:*$//
31156 s/^[^=]*=[ ]*$//
31157 }'
31158 fi
31160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31161 fi # test -n "$CONFIG_FILES"
31163 # Set up the scripts for CONFIG_HEADERS section.
31164 # No need to generate them if there are no CONFIG_HEADERS.
31165 # This happens for instance with `./config.status Makefile'.
31166 if test -n "$CONFIG_HEADERS"; then
31167 cat >"$tmp/defines.awk" <<\_ACAWK ||
31168 BEGIN {
31169 _ACEOF
31171 # Transform confdefs.h into an awk script `defines.awk', embedded as
31172 # here-document in config.status, that substitutes the proper values into
31173 # config.h.in to produce config.h.
31175 # Create a delimiter string that does not exist in confdefs.h, to ease
31176 # handling of long lines.
31177 ac_delim='%!_!# '
31178 for ac_last_try in false false :; do
31179 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31180 if test -z "$ac_t"; then
31181 break
31182 elif $ac_last_try; then
31183 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31184 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31185 { (exit 1); exit 1; }; }
31186 else
31187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31188 fi
31189 done
31191 # For the awk script, D is an array of macro values keyed by name,
31192 # likewise P contains macro parameters if any. Preserve backslash
31193 # newline sequences.
31195 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31196 sed -n '
31197 s/.\{148\}/&'"$ac_delim"'/g
31198 t rset
31199 :rset
31200 s/^[ ]*#[ ]*define[ ][ ]*/ /
31201 t def
31202 d
31203 :def
31204 s/\\$//
31205 t bsnl
31206 s/["\\]/\\&/g
31207 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31208 D["\1"]=" \3"/p
31209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31210 d
31211 :bsnl
31212 s/["\\]/\\&/g
31213 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31214 D["\1"]=" \3\\\\\\n"\\/p
31215 t cont
31216 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31217 t cont
31218 d
31219 :cont
31220 n
31221 s/.\{148\}/&'"$ac_delim"'/g
31222 t clear
31223 :clear
31224 s/\\$//
31225 t bsnlc
31226 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31227 d
31228 :bsnlc
31229 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31230 b cont
31231 ' <confdefs.h | sed '
31232 s/'"$ac_delim"'/"\\\
31233 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31236 for (key in D) D_is_set[key] = 1
31237 FS = "\a"
31238 }
31239 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31240 line = \$ 0
31241 split(line, arg, " ")
31242 if (arg[1] == "#") {
31243 defundef = arg[2]
31244 mac1 = arg[3]
31245 } else {
31246 defundef = substr(arg[1], 2)
31247 mac1 = arg[2]
31248 }
31249 split(mac1, mac2, "(") #)
31250 macro = mac2[1]
31251 prefix = substr(line, 1, index(line, defundef) - 1)
31252 if (D_is_set[macro]) {
31253 # Preserve the white space surrounding the "#".
31254 print prefix "define", macro P[macro] D[macro]
31255 next
31256 } else {
31257 # Replace #undef with comments. This is necessary, for example,
31258 # in the case of _POSIX_SOURCE, which is predefined and required
31259 # on some systems where configure will not decide to define it.
31260 if (defundef == "undef") {
31261 print "/*", prefix defundef, macro, "*/"
31262 next
31263 }
31264 }
31265 }
31266 { print }
31267 _ACAWK
31268 _ACEOF
31269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31270 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31271 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31272 { (exit 1); exit 1; }; }
31273 fi # test -n "$CONFIG_HEADERS"
31276 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31277 shift
31278 for ac_tag
31279 do
31280 case $ac_tag in
31281 :[FHLC]) ac_mode=$ac_tag; continue;;
31282 esac
31283 case $ac_mode$ac_tag in
31284 :[FHL]*:*);;
31285 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31286 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31287 { (exit 1); exit 1; }; };;
31288 :[FH]-) ac_tag=-:-;;
31289 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31290 esac
31291 ac_save_IFS=$IFS
31292 IFS=:
31293 set x $ac_tag
31294 IFS=$ac_save_IFS
31295 shift
31296 ac_file=$1
31297 shift
31299 case $ac_mode in
31300 :L) ac_source=$1;;
31301 :[FH])
31302 ac_file_inputs=
31303 for ac_f
31304 do
31305 case $ac_f in
31306 -) ac_f="$tmp/stdin";;
31307 *) # Look for the file first in the build tree, then in the source tree
31308 # (if the path is not absolute). The absolute path cannot be DOS-style,
31309 # because $ac_f cannot contain `:'.
31310 test -f "$ac_f" ||
31311 case $ac_f in
31312 [\\/$]*) false;;
31313 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31314 esac ||
31315 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31316 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31317 { (exit 1); exit 1; }; };;
31318 esac
31319 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31320 ac_file_inputs="$ac_file_inputs '$ac_f'"
31321 done
31323 # Let's still pretend it is `configure' which instantiates (i.e., don't
31324 # use $as_me), people would be surprised to read:
31325 # /* config.h. Generated by config.status. */
31326 configure_input='Generated from '`
31327 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31328 `' by configure.'
31329 if test x"$ac_file" != x-; then
31330 configure_input="$ac_file. $configure_input"
31331 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31332 $as_echo "$as_me: creating $ac_file" >&6;}
31333 fi
31334 # Neutralize special characters interpreted by sed in replacement strings.
31335 case $configure_input in #(
31336 *\&* | *\|* | *\\* )
31337 ac_sed_conf_input=`$as_echo "$configure_input" |
31338 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31339 *) ac_sed_conf_input=$configure_input;;
31340 esac
31342 case $ac_tag in
31343 *:-:* | *:-) cat >"$tmp/stdin" \
31344 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31345 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31346 { (exit 1); exit 1; }; } ;;
31347 esac
31348 ;;
31349 esac
31351 ac_dir=`$as_dirname -- "$ac_file" ||
31352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31353 X"$ac_file" : 'X\(//\)[^/]' \| \
31354 X"$ac_file" : 'X\(//\)$' \| \
31355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31356 $as_echo X"$ac_file" |
31357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31358 s//\1/
31359 q
31360 }
31361 /^X\(\/\/\)[^/].*/{
31362 s//\1/
31363 q
31364 }
31365 /^X\(\/\/\)$/{
31366 s//\1/
31367 q
31368 }
31369 /^X\(\/\).*/{
31370 s//\1/
31371 q
31372 }
31373 s/.*/./; q'`
31374 { as_dir="$ac_dir"
31375 case $as_dir in #(
31376 -*) as_dir=./$as_dir;;
31377 esac
31378 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31379 as_dirs=
31380 while :; do
31381 case $as_dir in #(
31382 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31383 *) as_qdir=$as_dir;;
31384 esac
31385 as_dirs="'$as_qdir' $as_dirs"
31386 as_dir=`$as_dirname -- "$as_dir" ||
31387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31388 X"$as_dir" : 'X\(//\)[^/]' \| \
31389 X"$as_dir" : 'X\(//\)$' \| \
31390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31391 $as_echo X"$as_dir" |
31392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31393 s//\1/
31394 q
31395 }
31396 /^X\(\/\/\)[^/].*/{
31397 s//\1/
31398 q
31399 }
31400 /^X\(\/\/\)$/{
31401 s//\1/
31402 q
31403 }
31404 /^X\(\/\).*/{
31405 s//\1/
31406 q
31407 }
31408 s/.*/./; q'`
31409 test -d "$as_dir" && break
31410 done
31411 test -z "$as_dirs" || eval "mkdir $as_dirs"
31412 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31413 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31414 { (exit 1); exit 1; }; }; }
31415 ac_builddir=.
31417 case "$ac_dir" in
31418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31419 *)
31420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31421 # A ".." for each directory in $ac_dir_suffix.
31422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31423 case $ac_top_builddir_sub in
31424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31426 esac ;;
31427 esac
31428 ac_abs_top_builddir=$ac_pwd
31429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31430 # for backward compatibility:
31431 ac_top_builddir=$ac_top_build_prefix
31433 case $srcdir in
31434 .) # We are building in place.
31435 ac_srcdir=.
31436 ac_top_srcdir=$ac_top_builddir_sub
31437 ac_abs_top_srcdir=$ac_pwd ;;
31438 [\\/]* | ?:[\\/]* ) # Absolute name.
31439 ac_srcdir=$srcdir$ac_dir_suffix;
31440 ac_top_srcdir=$srcdir
31441 ac_abs_top_srcdir=$srcdir ;;
31442 *) # Relative name.
31443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31444 ac_top_srcdir=$ac_top_build_prefix$srcdir
31445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31446 esac
31447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31450 case $ac_mode in
31451 :F)
31452 #
31453 # CONFIG_FILE
31454 #
31456 case $INSTALL in
31457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31458 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31459 esac
31460 ac_MKDIR_P=$MKDIR_P
31461 case $MKDIR_P in
31462 [\\/$]* | ?:[\\/]* ) ;;
31463 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31464 esac
31465 _ACEOF
31467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31468 # If the template does not know about datarootdir, expand it.
31469 # FIXME: This hack should be removed a few years after 2.60.
31470 ac_datarootdir_hack=; ac_datarootdir_seen=
31472 ac_sed_dataroot='
31473 /datarootdir/ {
31474 p
31475 q
31476 }
31477 /@datadir@/p
31478 /@docdir@/p
31479 /@infodir@/p
31480 /@localedir@/p
31481 /@mandir@/p
31482 '
31483 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31484 *datarootdir*) ac_datarootdir_seen=yes;;
31485 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31486 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31487 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31488 _ACEOF
31489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31490 ac_datarootdir_hack='
31491 s&@datadir@&$datadir&g
31492 s&@docdir@&$docdir&g
31493 s&@infodir@&$infodir&g
31494 s&@localedir@&$localedir&g
31495 s&@mandir@&$mandir&g
31496 s&\\\${datarootdir}&$datarootdir&g' ;;
31497 esac
31498 _ACEOF
31500 # Neutralize VPATH when `$srcdir' = `.'.
31501 # Shell code in configure.ac might set extrasub.
31502 # FIXME: do we really want to maintain this feature?
31503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31504 ac_sed_extra="$ac_vpsub
31505 $extrasub
31506 _ACEOF
31507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31508 :t
31509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31510 s|@configure_input@|$ac_sed_conf_input|;t t
31511 s&@top_builddir@&$ac_top_builddir_sub&;t t
31512 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31513 s&@srcdir@&$ac_srcdir&;t t
31514 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31515 s&@top_srcdir@&$ac_top_srcdir&;t t
31516 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31517 s&@builddir@&$ac_builddir&;t t
31518 s&@abs_builddir@&$ac_abs_builddir&;t t
31519 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31520 s&@INSTALL@&$ac_INSTALL&;t t
31521 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31522 $ac_datarootdir_hack
31523 "
31524 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31525 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31526 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31527 { (exit 1); exit 1; }; }
31529 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31530 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31531 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31532 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31533 which seems to be undefined. Please make sure it is defined." >&5
31534 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31535 which seems to be undefined. Please make sure it is defined." >&2;}
31537 rm -f "$tmp/stdin"
31538 case $ac_file in
31539 -) cat "$tmp/out" && rm -f "$tmp/out";;
31540 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31541 esac \
31542 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31543 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31544 { (exit 1); exit 1; }; }
31545 ;;
31546 :H)
31547 #
31548 # CONFIG_HEADER
31549 #
31550 if test x"$ac_file" != x-; then
31551 {
31552 $as_echo "/* $configure_input */" \
31553 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31554 } >"$tmp/config.h" \
31555 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31556 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31557 { (exit 1); exit 1; }; }
31558 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31559 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31560 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31561 else
31562 rm -f "$ac_file"
31563 mv "$tmp/config.h" "$ac_file" \
31564 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31565 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31566 { (exit 1); exit 1; }; }
31567 fi
31568 else
31569 $as_echo "/* $configure_input */" \
31570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31571 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31572 $as_echo "$as_me: error: could not create -" >&2;}
31573 { (exit 1); exit 1; }; }
31574 fi
31575 # Compute "$ac_file"'s index in $config_headers.
31576 _am_arg="$ac_file"
31577 _am_stamp_count=1
31578 for _am_header in $config_headers :; do
31579 case $_am_header in
31580 $_am_arg | $_am_arg:* )
31581 break ;;
31582 * )
31583 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31584 esac
31585 done
31586 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31587 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31588 X"$_am_arg" : 'X\(//\)[^/]' \| \
31589 X"$_am_arg" : 'X\(//\)$' \| \
31590 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31591 $as_echo X"$_am_arg" |
31592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31593 s//\1/
31594 q
31595 }
31596 /^X\(\/\/\)[^/].*/{
31597 s//\1/
31598 q
31599 }
31600 /^X\(\/\/\)$/{
31601 s//\1/
31602 q
31603 }
31604 /^X\(\/\).*/{
31605 s//\1/
31606 q
31607 }
31608 s/.*/./; q'`/stamp-h$_am_stamp_count
31609 ;;
31611 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31612 $as_echo "$as_me: executing $ac_file commands" >&6;}
31613 ;;
31614 esac
31617 case $ac_file$ac_mode in
31618 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31619 # Autoconf 2.62 quotes --file arguments for eval, but not when files
31620 # are listed without --file. Let's play safe and only enable the eval
31621 # if we detect the quoting.
31622 case $CONFIG_FILES in
31623 *\'*) eval set x "$CONFIG_FILES" ;;
31624 *) set x $CONFIG_FILES ;;
31625 esac
31626 shift
31627 for mf
31628 do
31629 # Strip MF so we end up with the name of the file.
31630 mf=`echo "$mf" | sed -e 's/:.*$//'`
31631 # Check whether this is an Automake generated Makefile or not.
31632 # We used to match only the files named `Makefile.in', but
31633 # some people rename them; so instead we look at the file content.
31634 # Grep'ing the first line is not enough: some people post-process
31635 # each Makefile.in and add a new line on top of each file to say so.
31636 # Grep'ing the whole file is not good either: AIX grep has a line
31637 # limit of 2048, but all sed's we know have understand at least 4000.
31638 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31639 dirpart=`$as_dirname -- "$mf" ||
31640 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31641 X"$mf" : 'X\(//\)[^/]' \| \
31642 X"$mf" : 'X\(//\)$' \| \
31643 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31644 $as_echo X"$mf" |
31645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31646 s//\1/
31647 q
31648 }
31649 /^X\(\/\/\)[^/].*/{
31650 s//\1/
31651 q
31652 }
31653 /^X\(\/\/\)$/{
31654 s//\1/
31655 q
31656 }
31657 /^X\(\/\).*/{
31658 s//\1/
31659 q
31660 }
31661 s/.*/./; q'`
31662 else
31663 continue
31664 fi
31665 # Extract the definition of DEPDIR, am__include, and am__quote
31666 # from the Makefile without running `make'.
31667 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31668 test -z "$DEPDIR" && continue
31669 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31670 test -z "am__include" && continue
31671 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31672 # When using ansi2knr, U may be empty or an underscore; expand it
31673 U=`sed -n 's/^U = //p' < "$mf"`
31674 # Find all dependency output files, they are included files with
31675 # $(DEPDIR) in their names. We invoke sed twice because it is the
31676 # simplest approach to changing $(DEPDIR) to its actual value in the
31677 # expansion.
31678 for file in `sed -n "
31679 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31680 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31681 # Make sure the directory exists.
31682 test -f "$dirpart/$file" && continue
31683 fdir=`$as_dirname -- "$file" ||
31684 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31685 X"$file" : 'X\(//\)[^/]' \| \
31686 X"$file" : 'X\(//\)$' \| \
31687 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31688 $as_echo X"$file" |
31689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31690 s//\1/
31691 q
31692 }
31693 /^X\(\/\/\)[^/].*/{
31694 s//\1/
31695 q
31696 }
31697 /^X\(\/\/\)$/{
31698 s//\1/
31699 q
31700 }
31701 /^X\(\/\).*/{
31702 s//\1/
31703 q
31704 }
31705 s/.*/./; q'`
31706 { as_dir=$dirpart/$fdir
31707 case $as_dir in #(
31708 -*) as_dir=./$as_dir;;
31709 esac
31710 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31711 as_dirs=
31712 while :; do
31713 case $as_dir in #(
31714 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31715 *) as_qdir=$as_dir;;
31716 esac
31717 as_dirs="'$as_qdir' $as_dirs"
31718 as_dir=`$as_dirname -- "$as_dir" ||
31719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31720 X"$as_dir" : 'X\(//\)[^/]' \| \
31721 X"$as_dir" : 'X\(//\)$' \| \
31722 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31723 $as_echo X"$as_dir" |
31724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31725 s//\1/
31726 q
31727 }
31728 /^X\(\/\/\)[^/].*/{
31729 s//\1/
31730 q
31731 }
31732 /^X\(\/\/\)$/{
31733 s//\1/
31734 q
31735 }
31736 /^X\(\/\).*/{
31737 s//\1/
31738 q
31739 }
31740 s/.*/./; q'`
31741 test -d "$as_dir" && break
31742 done
31743 test -z "$as_dirs" || eval "mkdir $as_dirs"
31744 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31745 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31746 { (exit 1); exit 1; }; }; }
31747 # echo "creating $dirpart/$file"
31748 echo '# dummy' > "$dirpart/$file"
31749 done
31750 done
31751 }
31752 ;;
31753 "libtool":C)
31755 # See if we are running on zsh, and set the options which allow our
31756 # commands through without removal of \ escapes.
31757 if test -n "${ZSH_VERSION+set}" ; then
31758 setopt NO_GLOB_SUBST
31759 fi
31761 cfgfile="${ofile}T"
31762 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31763 $RM "$cfgfile"
31765 cat <<_LT_EOF >> "$cfgfile"
31766 #! $SHELL
31768 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31769 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31770 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31771 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31772 #
31773 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31774 # 2006, 2007, 2008 Free Software Foundation, Inc.
31775 # Written by Gordon Matzigkeit, 1996
31776 #
31777 # This file is part of GNU Libtool.
31778 #
31779 # GNU Libtool is free software; you can redistribute it and/or
31780 # modify it under the terms of the GNU General Public License as
31781 # published by the Free Software Foundation; either version 2 of
31782 # the License, or (at your option) any later version.
31783 #
31784 # As a special exception to the GNU General Public License,
31785 # if you distribute this file as part of a program or library that
31786 # is built using GNU Libtool, you may include this file under the
31787 # same distribution terms that you use for the rest of that program.
31788 #
31789 # GNU Libtool is distributed in the hope that it will be useful,
31790 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31791 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31792 # GNU General Public License for more details.
31793 #
31794 # You should have received a copy of the GNU General Public License
31795 # along with GNU Libtool; see the file COPYING. If not, a copy
31796 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31797 # obtained by writing to the Free Software Foundation, Inc.,
31798 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31801 # The names of the tagged configurations supported by this script.
31802 available_tags=""
31804 # ### BEGIN LIBTOOL CONFIG
31806 # Which release of libtool.m4 was used?
31807 macro_version=$macro_version
31808 macro_revision=$macro_revision
31810 # Whether or not to build shared libraries.
31811 build_libtool_libs=$enable_shared
31813 # Whether or not to build static libraries.
31814 build_old_libs=$enable_static
31816 # What type of objects to build.
31817 pic_mode=$pic_mode
31819 # Whether or not to optimize for fast installation.
31820 fast_install=$enable_fast_install
31822 # The host system.
31823 host_alias=$host_alias
31824 host=$host
31825 host_os=$host_os
31827 # The build system.
31828 build_alias=$build_alias
31829 build=$build
31830 build_os=$build_os
31832 # A sed program that does not truncate output.
31833 SED=$lt_SED
31835 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31836 Xsed="\$SED -e 1s/^X//"
31838 # A grep program that handles long lines.
31839 GREP=$lt_GREP
31841 # An ERE matcher.
31842 EGREP=$lt_EGREP
31844 # A literal string matcher.
31845 FGREP=$lt_FGREP
31847 # A BSD- or MS-compatible name lister.
31848 NM=$lt_NM
31850 # Whether we need soft or hard links.
31851 LN_S=$lt_LN_S
31853 # What is the maximum length of a command?
31854 max_cmd_len=$max_cmd_len
31856 # Object file suffix (normally "o").
31857 objext=$ac_objext
31859 # Executable file suffix (normally "").
31860 exeext=$exeext
31862 # whether the shell understands "unset".
31863 lt_unset=$lt_unset
31865 # turn spaces into newlines.
31866 SP2NL=$lt_lt_SP2NL
31868 # turn newlines into spaces.
31869 NL2SP=$lt_lt_NL2SP
31871 # How to create reloadable object files.
31872 reload_flag=$lt_reload_flag
31873 reload_cmds=$lt_reload_cmds
31875 # An object symbol dumper.
31876 OBJDUMP=$lt_OBJDUMP
31878 # Method to check whether dependent libraries are shared objects.
31879 deplibs_check_method=$lt_deplibs_check_method
31881 # Command to use when deplibs_check_method == "file_magic".
31882 file_magic_cmd=$lt_file_magic_cmd
31884 # The archiver.
31885 AR=$lt_AR
31886 AR_FLAGS=$lt_AR_FLAGS
31888 # A symbol stripping program.
31889 STRIP=$lt_STRIP
31891 # Commands used to install an old-style archive.
31892 RANLIB=$lt_RANLIB
31893 old_postinstall_cmds=$lt_old_postinstall_cmds
31894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31896 # A C compiler.
31897 LTCC=$lt_CC
31899 # LTCC compiler flags.
31900 LTCFLAGS=$lt_CFLAGS
31902 # Take the output of nm and produce a listing of raw symbols and C names.
31903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31905 # Transform the output of nm in a proper C declaration.
31906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31908 # Transform the output of nm in a C name address pair.
31909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31911 # Transform the output of nm in a C name address pair when lib prefix is needed.
31912 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31914 # The name of the directory that contains temporary libtool files.
31915 objdir=$objdir
31917 # Shell to use when invoking shell scripts.
31918 SHELL=$lt_SHELL
31920 # An echo program that does not interpret backslashes.
31921 ECHO=$lt_ECHO
31923 # Used to examine libraries when file_magic_cmd begins with "file".
31924 MAGIC_CMD=$MAGIC_CMD
31926 # Must we lock files when doing compilation?
31927 need_locks=$lt_need_locks
31929 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31930 DSYMUTIL=$lt_DSYMUTIL
31932 # Tool to change global to local symbols on Mac OS X.
31933 NMEDIT=$lt_NMEDIT
31935 # Tool to manipulate fat objects and archives on Mac OS X.
31936 LIPO=$lt_LIPO
31938 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31939 OTOOL=$lt_OTOOL
31941 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31942 OTOOL64=$lt_OTOOL64
31944 # Old archive suffix (normally "a").
31945 libext=$libext
31947 # Shared library suffix (normally ".so").
31948 shrext_cmds=$lt_shrext_cmds
31950 # The commands to extract the exported symbol list from a shared archive.
31951 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31953 # Variables whose values should be saved in libtool wrapper scripts and
31954 # restored at link time.
31955 variables_saved_for_relink=$lt_variables_saved_for_relink
31957 # Do we need the "lib" prefix for modules?
31958 need_lib_prefix=$need_lib_prefix
31960 # Do we need a version for libraries?
31961 need_version=$need_version
31963 # Library versioning type.
31964 version_type=$version_type
31966 # Shared library runtime path variable.
31967 runpath_var=$runpath_var
31969 # Shared library path variable.
31970 shlibpath_var=$shlibpath_var
31972 # Is shlibpath searched before the hard-coded library search path?
31973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31975 # Format of library name prefix.
31976 libname_spec=$lt_libname_spec
31978 # List of archive names. First name is the real one, the rest are links.
31979 # The last name is the one that the linker finds with -lNAME
31980 library_names_spec=$lt_library_names_spec
31982 # The coded name of the library, if different from the real name.
31983 soname_spec=$lt_soname_spec
31985 # Command to use after installation of a shared archive.
31986 postinstall_cmds=$lt_postinstall_cmds
31988 # Command to use after uninstallation of a shared archive.
31989 postuninstall_cmds=$lt_postuninstall_cmds
31991 # Commands used to finish a libtool library installation in a directory.
31992 finish_cmds=$lt_finish_cmds
31994 # As "finish_cmds", except a single script fragment to be evaled but
31995 # not shown.
31996 finish_eval=$lt_finish_eval
31998 # Whether we should hardcode library paths into libraries.
31999 hardcode_into_libs=$hardcode_into_libs
32001 # Compile-time system search path for libraries.
32002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32004 # Run-time system search path for libraries.
32005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32007 # Whether dlopen is supported.
32008 dlopen_support=$enable_dlopen
32010 # Whether dlopen of programs is supported.
32011 dlopen_self=$enable_dlopen_self
32013 # Whether dlopen of statically linked programs is supported.
32014 dlopen_self_static=$enable_dlopen_self_static
32016 # Commands to strip libraries.
32017 old_striplib=$lt_old_striplib
32018 striplib=$lt_striplib
32021 # The linker used to build libraries.
32022 LD=$lt_LD
32024 # Commands used to build an old-style archive.
32025 old_archive_cmds=$lt_old_archive_cmds
32027 # A language specific compiler.
32028 CC=$lt_compiler
32030 # Is the compiler the GNU compiler?
32031 with_gcc=$GCC
32033 # Compiler flag to turn off builtin functions.
32034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32036 # How to pass a linker flag through the compiler.
32037 wl=$lt_lt_prog_compiler_wl
32039 # Additional compiler flags for building library objects.
32040 pic_flag=$lt_lt_prog_compiler_pic
32042 # Compiler flag to prevent dynamic linking.
32043 link_static_flag=$lt_lt_prog_compiler_static
32045 # Does compiler simultaneously support -c and -o options?
32046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32048 # Whether or not to add -lc for building shared libraries.
32049 build_libtool_need_lc=$archive_cmds_need_lc
32051 # Whether or not to disallow shared libs when runtime libs are static.
32052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32054 # Compiler flag to allow reflexive dlopens.
32055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32057 # Compiler flag to generate shared objects directly from archives.
32058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32060 # Whether the compiler copes with passing no objects directly.
32061 compiler_needs_object=$lt_compiler_needs_object
32063 # Create an old-style archive from a shared archive.
32064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32066 # Create a temporary old-style archive to link instead of a shared archive.
32067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32069 # Commands used to build a shared archive.
32070 archive_cmds=$lt_archive_cmds
32071 archive_expsym_cmds=$lt_archive_expsym_cmds
32073 # Commands used to build a loadable module if different from building
32074 # a shared archive.
32075 module_cmds=$lt_module_cmds
32076 module_expsym_cmds=$lt_module_expsym_cmds
32078 # Whether we are building with GNU ld or not.
32079 with_gnu_ld=$lt_with_gnu_ld
32081 # Flag that allows shared libraries with undefined symbols to be built.
32082 allow_undefined_flag=$lt_allow_undefined_flag
32084 # Flag that enforces no undefined symbols.
32085 no_undefined_flag=$lt_no_undefined_flag
32087 # Flag to hardcode \$libdir into a binary during linking.
32088 # This must work even if \$libdir does not exist
32089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32091 # If ld is used when linking, flag to hardcode \$libdir into a binary
32092 # during linking. This must work even if \$libdir does not exist.
32093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32095 # Whether we need a single "-rpath" flag with a separated argument.
32096 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32098 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32099 # DIR into the resulting binary.
32100 hardcode_direct=$hardcode_direct
32102 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32103 # DIR into the resulting binary and the resulting library dependency is
32104 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32105 # library is relocated.
32106 hardcode_direct_absolute=$hardcode_direct_absolute
32108 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32109 # into the resulting binary.
32110 hardcode_minus_L=$hardcode_minus_L
32112 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32113 # into the resulting binary.
32114 hardcode_shlibpath_var=$hardcode_shlibpath_var
32116 # Set to "yes" if building a shared library automatically hardcodes DIR
32117 # into the library and all subsequent libraries and executables linked
32118 # against it.
32119 hardcode_automatic=$hardcode_automatic
32121 # Set to yes if linker adds runtime paths of dependent libraries
32122 # to runtime path list.
32123 inherit_rpath=$inherit_rpath
32125 # Whether libtool must link a program against all its dependency libraries.
32126 link_all_deplibs=$link_all_deplibs
32128 # Fix the shell variable \$srcfile for the compiler.
32129 fix_srcfile_path=$lt_fix_srcfile_path
32131 # Set to "yes" if exported symbols are required.
32132 always_export_symbols=$always_export_symbols
32134 # The commands to list exported symbols.
32135 export_symbols_cmds=$lt_export_symbols_cmds
32137 # Symbols that should not be listed in the preloaded symbols.
32138 exclude_expsyms=$lt_exclude_expsyms
32140 # Symbols that must always be exported.
32141 include_expsyms=$lt_include_expsyms
32143 # Commands necessary for linking programs (against libraries) with templates.
32144 prelink_cmds=$lt_prelink_cmds
32146 # Specify filename containing input files.
32147 file_list_spec=$lt_file_list_spec
32149 # How to hardcode a shared library path into an executable.
32150 hardcode_action=$hardcode_action
32152 # ### END LIBTOOL CONFIG
32154 _LT_EOF
32156 case $host_os in
32157 aix3*)
32158 cat <<\_LT_EOF >> "$cfgfile"
32159 # AIX sometimes has problems with the GCC collect2 program. For some
32160 # reason, if we set the COLLECT_NAMES environment variable, the problems
32161 # vanish in a puff of smoke.
32162 if test "X${COLLECT_NAMES+set}" != Xset; then
32163 COLLECT_NAMES=
32164 export COLLECT_NAMES
32165 fi
32166 _LT_EOF
32167 ;;
32168 esac
32171 ltmain="$ac_aux_dir/ltmain.sh"
32174 # We use sed instead of cat because bash on DJGPP gets confused if
32175 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32176 # text mode, it properly converts lines to CR/LF. This bash problem
32177 # is reportedly fixed, but why not run on old versions too?
32178 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32179 || (rm -f "$cfgfile"; exit 1)
32181 case $xsi_shell in
32182 yes)
32183 cat << \_LT_EOF >> "$cfgfile"
32185 # func_dirname file append nondir_replacement
32186 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32187 # otherwise set result to NONDIR_REPLACEMENT.
32188 func_dirname ()
32189 {
32190 case ${1} in
32191 */*) func_dirname_result="${1%/*}${2}" ;;
32192 * ) func_dirname_result="${3}" ;;
32193 esac
32194 }
32196 # func_basename file
32197 func_basename ()
32198 {
32199 func_basename_result="${1##*/}"
32200 }
32202 # func_dirname_and_basename file append nondir_replacement
32203 # perform func_basename and func_dirname in a single function
32204 # call:
32205 # dirname: Compute the dirname of FILE. If nonempty,
32206 # add APPEND to the result, otherwise set result
32207 # to NONDIR_REPLACEMENT.
32208 # value returned in "$func_dirname_result"
32209 # basename: Compute filename of FILE.
32210 # value retuned in "$func_basename_result"
32211 # Implementation must be kept synchronized with func_dirname
32212 # and func_basename. For efficiency, we do not delegate to
32213 # those functions but instead duplicate the functionality here.
32214 func_dirname_and_basename ()
32215 {
32216 case ${1} in
32217 */*) func_dirname_result="${1%/*}${2}" ;;
32218 * ) func_dirname_result="${3}" ;;
32219 esac
32220 func_basename_result="${1##*/}"
32221 }
32223 # func_stripname prefix suffix name
32224 # strip PREFIX and SUFFIX off of NAME.
32225 # PREFIX and SUFFIX must not contain globbing or regex special
32226 # characters, hashes, percent signs, but SUFFIX may contain a leading
32227 # dot (in which case that matches only a dot).
32228 func_stripname ()
32229 {
32230 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32231 # positional parameters, so assign one to ordinary parameter first.
32232 func_stripname_result=${3}
32233 func_stripname_result=${func_stripname_result#"${1}"}
32234 func_stripname_result=${func_stripname_result%"${2}"}
32235 }
32237 # func_opt_split
32238 func_opt_split ()
32239 {
32240 func_opt_split_opt=${1%%=*}
32241 func_opt_split_arg=${1#*=}
32242 }
32244 # func_lo2o object
32245 func_lo2o ()
32246 {
32247 case ${1} in
32248 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32249 *) func_lo2o_result=${1} ;;
32250 esac
32251 }
32253 # func_xform libobj-or-source
32254 func_xform ()
32255 {
32256 func_xform_result=${1%.*}.lo
32257 }
32259 # func_arith arithmetic-term...
32260 func_arith ()
32261 {
32262 func_arith_result=$(( $* ))
32263 }
32265 # func_len string
32266 # STRING may not start with a hyphen.
32267 func_len ()
32268 {
32269 func_len_result=${#1}
32270 }
32272 _LT_EOF
32273 ;;
32274 *) # Bourne compatible functions.
32275 cat << \_LT_EOF >> "$cfgfile"
32277 # func_dirname file append nondir_replacement
32278 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32279 # otherwise set result to NONDIR_REPLACEMENT.
32280 func_dirname ()
32281 {
32282 # Extract subdirectory from the argument.
32283 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32284 if test "X$func_dirname_result" = "X${1}"; then
32285 func_dirname_result="${3}"
32286 else
32287 func_dirname_result="$func_dirname_result${2}"
32288 fi
32289 }
32291 # func_basename file
32292 func_basename ()
32293 {
32294 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32295 }
32298 # func_stripname prefix suffix name
32299 # strip PREFIX and SUFFIX off of NAME.
32300 # PREFIX and SUFFIX must not contain globbing or regex special
32301 # characters, hashes, percent signs, but SUFFIX may contain a leading
32302 # dot (in which case that matches only a dot).
32303 # func_strip_suffix prefix name
32304 func_stripname ()
32305 {
32306 case ${2} in
32307 .*) func_stripname_result=`$ECHO "X${3}" \
32308 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32309 *) func_stripname_result=`$ECHO "X${3}" \
32310 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32311 esac
32312 }
32314 # sed scripts:
32315 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32316 my_sed_long_arg='1s/^-[^=]*=//'
32318 # func_opt_split
32319 func_opt_split ()
32320 {
32321 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32322 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32323 }
32325 # func_lo2o object
32326 func_lo2o ()
32327 {
32328 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32329 }
32331 # func_xform libobj-or-source
32332 func_xform ()
32333 {
32334 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32335 }
32337 # func_arith arithmetic-term...
32338 func_arith ()
32339 {
32340 func_arith_result=`expr "$@"`
32341 }
32343 # func_len string
32344 # STRING may not start with a hyphen.
32345 func_len ()
32346 {
32347 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32348 }
32350 _LT_EOF
32351 esac
32353 case $lt_shell_append in
32354 yes)
32355 cat << \_LT_EOF >> "$cfgfile"
32357 # func_append var value
32358 # Append VALUE to the end of shell variable VAR.
32359 func_append ()
32360 {
32361 eval "$1+=\$2"
32362 }
32363 _LT_EOF
32364 ;;
32365 *)
32366 cat << \_LT_EOF >> "$cfgfile"
32368 # func_append var value
32369 # Append VALUE to the end of shell variable VAR.
32370 func_append ()
32371 {
32372 eval "$1=\$$1\$2"
32373 }
32375 _LT_EOF
32376 ;;
32377 esac
32380 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32381 || (rm -f "$cfgfile"; exit 1)
32383 mv -f "$cfgfile" "$ofile" ||
32384 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32385 chmod +x "$ofile"
32387 ;;
32388 "po-directories":C)
32389 for ac_file in $CONFIG_FILES; do
32390 # Support "outfile[:infile[:infile...]]"
32391 case "$ac_file" in
32392 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32393 esac
32394 # PO directories have a Makefile.in generated from Makefile.in.in.
32395 case "$ac_file" in */Makefile.in)
32396 # Adjust a relative srcdir.
32397 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32398 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32399 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32400 # In autoconf-2.13 it is called $ac_given_srcdir.
32401 # In autoconf-2.50 it is called $srcdir.
32402 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32403 case "$ac_given_srcdir" in
32404 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32405 /*) top_srcdir="$ac_given_srcdir" ;;
32406 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32407 esac
32408 # Treat a directory as a PO directory if and only if it has a
32409 # POTFILES.in file. This allows packages to have multiple PO
32410 # directories under different names or in different locations.
32411 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32412 rm -f "$ac_dir/POTFILES"
32413 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32414 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32415 POMAKEFILEDEPS="POTFILES.in"
32416 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32417 # on $ac_dir but don't depend on user-specified configuration
32418 # parameters.
32419 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32420 # The LINGUAS file contains the set of available languages.
32421 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32422 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32423 fi
32424 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32425 # Hide the ALL_LINGUAS assigment from automake < 1.5.
32426 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32427 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32428 else
32429 # The set of available languages was given in configure.in.
32430 # Hide the ALL_LINGUAS assigment from automake < 1.5.
32431 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32432 fi
32433 # Compute POFILES
32434 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32435 # Compute UPDATEPOFILES
32436 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32437 # Compute DUMMYPOFILES
32438 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32439 # Compute GMOFILES
32440 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32441 case "$ac_given_srcdir" in
32442 .) srcdirpre= ;;
32443 *) srcdirpre='$(srcdir)/' ;;
32444 esac
32445 POFILES=
32446 UPDATEPOFILES=
32447 DUMMYPOFILES=
32448 GMOFILES=
32449 for lang in $ALL_LINGUAS; do
32450 POFILES="$POFILES $srcdirpre$lang.po"
32451 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32452 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32453 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32454 done
32455 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32456 # environment variable.
32457 INST_LINGUAS=
32458 if test -n "$ALL_LINGUAS"; then
32459 for presentlang in $ALL_LINGUAS; do
32460 useit=no
32461 if test "%UNSET%" != "$LINGUAS"; then
32462 desiredlanguages="$LINGUAS"
32463 else
32464 desiredlanguages="$ALL_LINGUAS"
32465 fi
32466 for desiredlang in $desiredlanguages; do
32467 # Use the presentlang catalog if desiredlang is
32468 # a. equal to presentlang, or
32469 # b. a variant of presentlang (because in this case,
32470 # presentlang can be used as a fallback for messages
32471 # which are not translated in the desiredlang catalog).
32472 case "$desiredlang" in
32473 "$presentlang"*) useit=yes;;
32474 esac
32475 done
32476 if test $useit = yes; then
32477 INST_LINGUAS="$INST_LINGUAS $presentlang"
32478 fi
32479 done
32480 fi
32481 CATALOGS=
32482 if test -n "$INST_LINGUAS"; then
32483 for lang in $INST_LINGUAS; do
32484 CATALOGS="$CATALOGS $lang.gmo"
32485 done
32486 fi
32487 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32488 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"
32489 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32490 if test -f "$f"; then
32491 case "$f" in
32492 *.orig | *.bak | *~) ;;
32493 *) cat "$f" >> "$ac_dir/Makefile" ;;
32494 esac
32495 fi
32496 done
32497 fi
32498 ;;
32499 esac
32500 done ;;
32501 "default":C) chmod +x examples/*.pl ;;
32503 esac
32504 done # for ac_tag
32507 { (exit 0); exit 0; }
32508 _ACEOF
32509 chmod +x $CONFIG_STATUS
32510 ac_clean_files=$ac_clean_files_save
32512 test $ac_write_fail = 0 ||
32513 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32514 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32515 { (exit 1); exit 1; }; }
32517 test -f config.h || ln -s rrd_config.h config.h
32519 # configure is writing to config.log, and then calls config.status.
32520 # config.status does its own redirection, appending to config.log.
32521 # Unfortunately, on DOS this fails, as config.log is still kept open
32522 # by configure, so config.status won't be able to write to it; its
32523 # output is simply discarded. So we exec the FD to /dev/null,
32524 # effectively closing config.log, so it can be properly (re)opened and
32525 # appended to by config.status. When coming back to configure, we
32526 # need to make the FD available again.
32527 if test "$no_create" != yes; then
32528 ac_cs_success=:
32529 ac_config_status_args=
32530 test "$silent" = yes &&
32531 ac_config_status_args="$ac_config_status_args --quiet"
32532 exec 5>/dev/null
32533 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32534 exec 5>>config.log
32535 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32536 # would make configure fail if this is the last instruction.
32537 $ac_cs_success || { (exit 1); exit 1; }
32538 fi
32539 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32540 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32541 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32542 fi
32545 { $as_echo "$as_me:$LINENO: checking in" >&5
32546 $as_echo_n "checking in... " >&6; }
32547 { $as_echo "$as_me:$LINENO: result: and out again" >&5
32548 $as_echo "and out again" >&6; }
32550 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
32551 sleep 1
32552 echo $ECHO_N ".$ECHO_C" 1>&6
32553 sleep 1
32554 echo $ECHO_N ".$ECHO_C" 1>&6
32555 sleep 1
32556 echo $ECHO_N ".$ECHO_C" 1>&6
32557 sleep 1
32558 echo $ECHO_N ".$ECHO_C" 1>&6
32559 sleep 1
32560 { $as_echo "$as_me:$LINENO: result: just kidding ;-)" >&5
32561 $as_echo " just kidding ;-)" >&6; }
32562 echo
32563 echo "----------------------------------------------------------------"
32564 echo "Config is DONE!"
32565 echo
32566 echo " With MMAP IO: $enable_mmap"
32567 echo " Build rrd_getopt: $build_getopt"
32568 echo " Build rrd_graph: $enable_rrd_graph"
32569 echo " Static programs: $staticprogs"
32570 echo " Perl Modules: $COMP_PERL"
32571 echo " Perl Binary: $PERL"
32572 echo " Perl Version: $PERL_VERSION"
32573 echo " Perl Options: $PERL_MAKE_OPTIONS"
32574 echo " Ruby Modules: $COMP_RUBY"
32575 echo " Ruby Binary: $RUBY"
32576 echo " Ruby Options: $RUBY_MAKE_OPTIONS"
32577 echo " Build Lua Bindings: $enable_lua"
32578 if test "$enable_lua" = "yes"; then
32579 echo " Lua Binary: $LUA"
32580 echo " Lua Version: $lua_version"
32581 echo " Lua C-modules dir: $LUA_INSTALL_CMOD"
32582 if test "$lua_need_compat51" = "1"; then
32583 echo " Lua Lua-modules dir: $LUA_INSTALL_LMOD"
32584 fi
32585 fi
32586 echo " Build Tcl Bindings: $enable_tcl"
32587 echo " Build Python Bindings: $enable_python"
32588 echo " Build rrdcgi: $enable_rrdcgi"
32589 echo " Build librrd MT: $enable_pthread"
32590 echo " Use gettext: $USE_NLS"
32591 echo " With libDBI: $have_libdbi"
32592 echo " With libwrap: $have_libwrap"
32593 echo
32594 echo " Libraries: $ALL_LIBS"
32595 echo
32596 echo "Type 'make' to compile the software and use 'make install' to "
32597 echo "install everything to: $prefix."
32598 echo
32599 echo " ... that wishlist is NO JOKE. If you find RRDtool useful"
32600 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
32601 echo "place an order."
32602 echo
32603 echo " -- Tobi Oetiker <tobi@oetiker.ch>"
32604 echo "----------------------------------------------------------------"