filename | configure |
changeset | 697:479b8c213f61 |
prev | 688:8a13dabbdced |
next | 700:4650d0c7f6f9 |
author | nkeynes |
date | Sun Jun 22 04:01:27 2008 +0000 (15 years ago) |
permissions | -rwxr-xr-x |
last change | Commit work-in-progress CoreAudio driver (along with various changes to the audio subsystem) |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
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'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 CYGPATH_W
679 PACKAGE
680 VERSION
681 ACLOCAL
682 AUTOCONF
683 AUTOMAKE
684 AUTOHEADER
685 MAKEINFO
686 install_sh
687 STRIP
688 INSTALL_STRIP_PROGRAM
689 mkdir_p
690 AWK
691 SET_MAKE
692 am__leading_dot
693 AMTAR
694 am__tar
695 am__untar
696 MAINTAINER_MODE_TRUE
697 MAINTAINER_MODE_FALSE
698 MAINT
699 CC
700 CFLAGS
701 LDFLAGS
702 CPPFLAGS
703 ac_ct_CC
704 EXEEXT
705 OBJEXT
706 DEPDIR
707 am__include
708 am__quote
709 AMDEP_TRUE
710 AMDEP_FALSE
711 AMDEPBACKSLASH
712 CCDEPMODE
713 am__fastdepCC_TRUE
714 am__fastdepCC_FALSE
715 CCAS
716 CCASFLAGS
717 CPP
718 GREP
719 EGREP
720 build
721 build_cpu
722 build_vendor
723 build_os
724 host
725 host_cpu
726 host_vendor
727 host_os
728 GUI_COCOA_TRUE
729 GUI_COCOA_FALSE
730 PKG_CONFIG
731 LIBPNG_CFLAGS
732 LIBPNG_LIBS
733 GLIB_CFLAGS
734 GLIB_LIBS
735 GTK_CFLAGS
736 GTK_LIBS
737 GUI_GTK_TRUE
738 GUI_GTK_FALSE
739 VIDEO_OSMESA_TRUE
740 VIDEO_OSMESA_FALSE
741 VIDEO_GLX_TRUE
742 VIDEO_GLX_FALSE
743 VIDEO_NSGL_TRUE
744 VIDEO_NSGL_FALSE
745 BUILD_SH4X86_TRUE
746 BUILD_SH4X86_FALSE
747 BUILD_X86_64_TRUE
748 BUILD_X86_64_FALSE
749 AUDIO_OSX_TRUE
750 AUDIO_OSX_FALSE
751 PULSE_CFLAGS
752 PULSE_LIBS
753 AUDIO_PULSE_TRUE
754 AUDIO_PULSE_FALSE
755 ESOUND_CFLAGS
756 ESOUND_LIBS
757 AUDIO_ESOUND_TRUE
758 AUDIO_ESOUND_FALSE
759 ALSA_CFLAGS
760 ALSA_LIBS
761 AUDIO_ALSA_TRUE
762 AUDIO_ALSA_FALSE
763 CDROM_LINUX_TRUE
764 CDROM_LINUX_FALSE
765 JOY_LINUX_TRUE
766 JOY_LINUX_FALSE
767 SHCC
768 SHLD
769 SHOBJCOPY
770 ARMCC
771 ARMLD
772 ARMOBJCOPY
773 BUILD_SYSTEST_TRUE
774 BUILD_SYSTEST_FALSE
775 BUILD_ARMTEST_TRUE
776 BUILD_ARMTEST_FALSE
777 GETTEXT_PACKAGE
778 USE_NLS
779 MSGFMT
780 MSGFMT_OPTS
781 GMSGFMT
782 XGETTEXT
783 CATALOGS
784 CATOBJEXT
785 DATADIRNAME
786 GMOFILES
787 INSTOBJEXT
788 INTLLIBS
789 PO_IN_DATADIR_TRUE
790 PO_IN_DATADIR_FALSE
791 POFILES
792 POSUB
793 MKINSTALLDIRS
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 enable_maintainer_mode
800 enable_dependency_tracking
801 enable_trace
802 enable_watch
803 enable_sh4stats
804 with_osmesa
805 with_gtk
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CCAS
816 CCASFLAGS
817 CPP
818 PKG_CONFIG
819 LIBPNG_CFLAGS
820 LIBPNG_LIBS
821 GLIB_CFLAGS
822 GLIB_LIBS
823 GTK_CFLAGS
824 GTK_LIBS
825 PULSE_CFLAGS
826 PULSE_LIBS
827 ESOUND_CFLAGS
828 ESOUND_LIBS
829 ALSA_CFLAGS
830 ALSA_LIBS'
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
897 # Accept the important Cygnus configure options, so we can diagnose typos.
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
920 --config-cache | -C)
921 cache_file=config.cache ;;
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
940 { (exit 1); exit 1; }; }
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
967 { (exit 1); exit 1; }; }
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1189 { (exit 1); exit 1; }; }
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1220 Try \`$0 --help' for more information." >&2
1221 { (exit 1); exit 1; }; }
1222 ;;
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1228 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1229 { (exit 1); exit 1; }; }
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 ;;
1241 esac
1242 done
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1247 { (exit 1); exit 1; }; }
1248 fi
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1254 { (exit 1); exit 1; }; } ;;
1255 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257 fi
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1264 do
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1279 done
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346 else
1347 ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 _ACEOF
1449 fi
1451 if test -n "$ac_init_help"; then
1453 cat <<\_ACEOF
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-maintainer-mode enable make rules and dependencies not useful
1460 (and sometimes confusing) to the casual installer
1461 --disable-dependency-tracking speeds up one-time build
1462 --enable-dependency-tracking do not reject slow dependency extractors
1463 --enable-trace Enable generation of IO traces (warning: hurts
1464 performance)
1465 --enable-watch Enable watchpoints in the debugger (warning: hurts
1466 performance)
1467 --enable-sh4stats Enable statistics on executed sh4 instructions
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-osmesa Build with the osmesa GL library (software
1473 rendering)
1474 --with-gtk Build with the GTK UI. Default on X11 systems
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CCAS assembler compiler command (defaults to CC)
1485 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1486 CPP C preprocessor
1487 PKG_CONFIG path to pkg-config utility
1488 LIBPNG_CFLAGS
1489 C compiler flags for LIBPNG, overriding pkg-config
1490 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1491 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1492 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1493 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1494 GTK_LIBS linker flags for GTK, overriding pkg-config
1495 PULSE_CFLAGS
1496 C compiler flags for PULSE, overriding pkg-config
1497 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1498 ESOUND_CFLAGS
1499 C compiler flags for ESOUND, overriding pkg-config
1500 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1501 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1502 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1564 fi
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 configure
1570 generated by GNU Autoconf 2.62
1572 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1573 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1583 It was created by $as_me, which was
1584 generated by GNU Autoconf 2.62. Invocation command line was
1586 $ $0 $@
1588 _ACEOF
1589 exec 5>>config.log
1590 {
1591 cat <<_ASUNAME
1592 ## --------- ##
1593 ## Platform. ##
1594 ## --------- ##
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613 _ASUNAME
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 $as_echo "PATH: $as_dir"
1621 done
1622 IFS=$as_save_IFS
1624 } >&5
1626 cat >&5 <<_ACEOF
1629 ## ----------- ##
1630 ## Core tests. ##
1631 ## ----------- ##
1633 _ACEOF
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_configure_args=
1642 ac_configure_args0=
1643 ac_configure_args1=
1644 ac_must_keep_next=false
1645 for ac_pass in 1 2
1646 do
1647 for ac_arg
1648 do
1649 case $ac_arg in
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1653 continue ;;
1654 *\'*)
1655 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 esac
1657 case $ac_pass in
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 2)
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1663 else
1664 case $ac_arg in
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 esac
1672 ;;
1673 -* ) ac_must_keep_next=true ;;
1674 esac
1675 fi
1676 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 ;;
1678 esac
1679 done
1680 done
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log. We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1691 {
1692 echo
1694 cat <<\_ASBOX
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1698 _ASBOX
1699 echo
1700 # The following way of writing the cache mishandles newlines in values,
1701 (
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1704 case $ac_val in #(
1705 *${as_nl}*)
1706 case $ac_var in #(
1707 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 esac
1710 case $ac_var in #(
1711 _ | IFS | as_nl) ;; #(
1712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
1717 (set) 2>&1 |
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1720 sed -n \
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
1724 *)
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726 ;;
1727 esac |
1728 sort
1729 )
1730 echo
1732 cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 $as_echo "$ac_var='\''$ac_val'\''"
1745 done | sort
1746 echo
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 $as_echo "$ac_var='\''$ac_val'\''"
1762 done | sort
1763 echo
1764 fi
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772 echo
1773 cat confdefs.h
1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 $as_echo "$as_me: caught signal $ac_signal"
1778 $as_echo "$as_me: exit $exit_status"
1779 } >&5
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer an explicitly selected file to automatically selected ones.
1821 ac_site_file1=NONE
1822 ac_site_file2=NONE
1823 if test -n "$CONFIG_SITE"; then
1824 ac_site_file1=$CONFIG_SITE
1825 elif test "x$prefix" != xNONE; then
1826 ac_site_file1=$prefix/share/config.site
1827 ac_site_file2=$prefix/etc/config.site
1828 else
1829 ac_site_file1=$ac_default_prefix/share/config.site
1830 ac_site_file2=$ac_default_prefix/etc/config.site
1831 fi
1832 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1833 do
1834 test "x$ac_site_file" = xNONE && continue
1835 if test -r "$ac_site_file"; then
1836 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1839 . "$ac_site_file"
1840 fi
1841 done
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848 $as_echo "$as_me: loading cache $cache_file" >&6;}
1849 case $cache_file in
1850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
1852 esac
1853 fi
1854 else
1855 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856 $as_echo "$as_me: creating cache $cache_file" >&6;}
1857 >$cache_file
1858 fi
1860 # Check that the precious variables saved in the cache have kept the same
1861 # value.
1862 ac_cache_corrupted=false
1863 for ac_var in $ac_precious_vars; do
1864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
1866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1869 set,)
1870 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,set)
1874 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,);;
1878 *)
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 # differences in whitespace do not lead to failure.
1881 ac_old_val_w=`echo x $ac_old_val`
1882 ac_new_val_w=`echo x $ac_new_val`
1883 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1884 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1885 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886 ac_cache_corrupted=:
1887 else
1888 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1889 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1890 eval $ac_var=\$ac_old_val
1891 fi
1892 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1893 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1894 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1895 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1896 fi;;
1897 esac
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1900 case $ac_new_val in
1901 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1903 esac
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907 esac
1908 fi
1909 done
1910 if $ac_cache_corrupted; then
1911 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
1916 fi
1934 ac_ext=c
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941 am__api_version="1.9"
1942 ac_aux_dir=
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 break
1948 elif test -f "$ac_dir/install.sh"; then
1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 break
1952 elif test -f "$ac_dir/shtool"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 break
1956 fi
1957 done
1958 if test -z "$ac_aux_dir"; then
1959 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961 { (exit 1); exit 1; }; }
1962 fi
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973 # Find a good install program. We prefer a C program (faster),
1974 # so one script is as good as another. But avoid the broken or
1975 # incompatible versions:
1976 # SysV /etc/install, /usr/sbin/install
1977 # SunOS /usr/etc/install
1978 # IRIX /sbin/install
1979 # AIX /bin/install
1980 # AmigaOS /C/install, which installs bootblocks on floppy discs
1981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984 # OS/2's system install, which has a completely different semantic
1985 # ./install, which can be erroneously created by make from ./install.sh.
1986 # Reject install programs that cannot install multiple files.
1987 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 $as_echo_n "(cached) " >&6
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
1999 case $as_dir/ in
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 /usr/ucb/* ) ;;
2004 *)
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2007 # by default.
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2014 :
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2018 :
2019 else
2020 rm -rf conftest.one conftest.two conftest.dir
2021 echo one > conftest.one
2022 echo two > conftest.two
2023 mkdir conftest.dir
2024 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2025 test -s conftest.one && test -s conftest.two &&
2026 test -s conftest.dir/conftest.one &&
2027 test -s conftest.dir/conftest.two
2028 then
2029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2030 break 3
2031 fi
2032 fi
2033 fi
2034 done
2035 done
2036 ;;
2037 esac
2039 done
2040 IFS=$as_save_IFS
2042 rm -rf conftest.one conftest.two conftest.dir
2044 fi
2045 if test "${ac_cv_path_install+set}" = set; then
2046 INSTALL=$ac_cv_path_install
2047 else
2048 # As a last resort, use the slow shell script. Don't cache a
2049 # value for INSTALL within a source directory, because that will
2050 # break other packages using the cache if that directory is
2051 # removed, or if the value is a relative name.
2052 INSTALL=$ac_install_sh
2053 fi
2054 fi
2055 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2056 $as_echo "$INSTALL" >&6; }
2058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2059 # It thinks the first close brace ends the variable substitution.
2060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2067 $as_echo_n "checking whether build environment is sane... " >&6; }
2068 # Just in case
2069 sleep 1
2070 echo timestamp > conftest.file
2071 # Do `set' in a subshell so we don't clobber the current shell's
2072 # arguments. Must try -L first in case configure is actually a
2073 # symlink; some systems play weird games with the mod time of symlinks
2074 # (eg FreeBSD returns the mod time of the symlink's containing
2075 # directory).
2076 if (
2077 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2078 if test "$*" = "X"; then
2079 # -L didn't work.
2080 set X `ls -t $srcdir/configure conftest.file`
2081 fi
2082 rm -f conftest.file
2083 if test "$*" != "X $srcdir/configure conftest.file" \
2084 && test "$*" != "X conftest.file $srcdir/configure"; then
2086 # If neither matched, then we have a broken ls. This can happen
2087 # if, for instance, CONFIG_SHELL is bash and it inherits a
2088 # broken ls alias from the environment. This has actually
2089 # happened. Such a system could not be considered "sane".
2090 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2091 alias in your environment" >&5
2092 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2093 alias in your environment" >&2;}
2094 { (exit 1); exit 1; }; }
2095 fi
2097 test "$2" = conftest.file
2098 )
2099 then
2100 # Ok.
2101 :
2102 else
2103 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2104 Check your system clock" >&5
2105 $as_echo "$as_me: error: newly created file is older than distributed files!
2106 Check your system clock" >&2;}
2107 { (exit 1); exit 1; }; }
2108 fi
2109 { $as_echo "$as_me:$LINENO: result: yes" >&5
2110 $as_echo "yes" >&6; }
2111 test "$program_prefix" != NONE &&
2112 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2113 # Use a double $ so make ignores it.
2114 test "$program_suffix" != NONE &&
2115 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2116 # Double any \ or $.
2117 # By default was `s,x,x', remove it if useless.
2118 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2119 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2121 # expand $ac_aux_dir to an absolute path
2122 am_aux_dir=`cd $ac_aux_dir && pwd`
2124 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2125 # Use eval to expand $SHELL
2126 if eval "$MISSING --run true"; then
2127 am_missing_run="$MISSING --run "
2128 else
2129 am_missing_run=
2130 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2131 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2132 fi
2134 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2135 # We used to keeping the `.' as first argument, in order to
2136 # allow $(mkdir_p) to be used without argument. As in
2137 # $(mkdir_p) $(somedir)
2138 # where $(somedir) is conditionally defined. However this is wrong
2139 # for two reasons:
2140 # 1. if the package is installed by a user who cannot write `.'
2141 # make install will fail,
2142 # 2. the above comment should most certainly read
2143 # $(mkdir_p) $(DESTDIR)$(somedir)
2144 # so it does not work when $(somedir) is undefined and
2145 # $(DESTDIR) is not.
2146 # To support the latter case, we have to write
2147 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2148 # so the `.' trick is pointless.
2149 mkdir_p='mkdir -p --'
2150 else
2151 # On NextStep and OpenStep, the `mkdir' command does not
2152 # recognize any option. It will interpret all options as
2153 # directories to create, and then abort because `.' already
2154 # exists.
2155 for d in ./-p ./--version;
2156 do
2157 test -d $d && rmdir $d
2158 done
2159 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2160 if test -f "$ac_aux_dir/mkinstalldirs"; then
2161 mkdir_p='$(mkinstalldirs)'
2162 else
2163 mkdir_p='$(install_sh) -d'
2164 fi
2165 fi
2167 for ac_prog in gawk mawk nawk awk
2168 do
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 $as_echo_n "checking for $ac_word... " >&6; }
2173 if test "${ac_cv_prog_AWK+set}" = set; then
2174 $as_echo_n "(cached) " >&6
2175 else
2176 if test -n "$AWK"; then
2177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_AWK="$ac_prog"
2187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 break 2
2189 fi
2190 done
2191 done
2192 IFS=$as_save_IFS
2194 fi
2195 fi
2196 AWK=$ac_cv_prog_AWK
2197 if test -n "$AWK"; then
2198 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2199 $as_echo "$AWK" >&6; }
2200 else
2201 { $as_echo "$as_me:$LINENO: result: no" >&5
2202 $as_echo "no" >&6; }
2203 fi
2206 test -n "$AWK" && break
2207 done
2209 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2211 set x ${MAKE-make}
2212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214 $as_echo_n "(cached) " >&6
2215 else
2216 cat >conftest.make <<\_ACEOF
2217 SHELL = /bin/sh
2218 all:
2219 @echo '@@@%%%=$(MAKE)=@@@%%%'
2220 _ACEOF
2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223 *@@@%%%=?*=@@@%%%*)
2224 eval ac_cv_prog_make_${ac_make}_set=yes;;
2225 *)
2226 eval ac_cv_prog_make_${ac_make}_set=no;;
2227 esac
2228 rm -f conftest.make
2229 fi
2230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231 { $as_echo "$as_me:$LINENO: result: yes" >&5
2232 $as_echo "yes" >&6; }
2233 SET_MAKE=
2234 else
2235 { $as_echo "$as_me:$LINENO: result: no" >&5
2236 $as_echo "no" >&6; }
2237 SET_MAKE="MAKE=${MAKE-make}"
2238 fi
2240 rm -rf .tst 2>/dev/null
2241 mkdir .tst 2>/dev/null
2242 if test -d .tst; then
2243 am__leading_dot=.
2244 else
2245 am__leading_dot=_
2246 fi
2247 rmdir .tst 2>/dev/null
2249 # test to see if srcdir already configured
2250 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2251 test -f $srcdir/config.status; then
2252 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2253 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2254 { (exit 1); exit 1; }; }
2255 fi
2257 # test whether we have cygpath
2258 if test -z "$CYGPATH_W"; then
2259 if (cygpath --version) >/dev/null 2>/dev/null; then
2260 CYGPATH_W='cygpath -w'
2261 else
2262 CYGPATH_W=echo
2263 fi
2264 fi
2267 # Define the identity of the package.
2268 PACKAGE=lxdream
2269 VERSION=0.8.1
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE "$PACKAGE"
2274 _ACEOF
2277 cat >>confdefs.h <<_ACEOF
2278 #define VERSION "$VERSION"
2279 _ACEOF
2281 # Some tools Automake needs.
2283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2297 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'. However `strip' might not be the right
2301 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2303 if test "$cross_compiling" != no; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2
2307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 $as_echo_n "checking for $ac_word... " >&6; }
2309 if test "${ac_cv_prog_STRIP+set}" = set; then
2310 $as_echo_n "(cached) " >&6
2311 else
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2325 fi
2326 done
2327 done
2328 IFS=$as_save_IFS
2330 fi
2331 fi
2332 STRIP=$ac_cv_prog_STRIP
2333 if test -n "$STRIP"; then
2334 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2335 $as_echo "$STRIP" >&6; }
2336 else
2337 { $as_echo "$as_me:$LINENO: result: no" >&5
2338 $as_echo "no" >&6; }
2339 fi
2342 fi
2343 if test -z "$ac_cv_prog_STRIP"; then
2344 ac_ct_STRIP=$STRIP
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 $as_echo_n "checking for $ac_word... " >&6; }
2349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350 $as_echo_n "(cached) " >&6
2351 else
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_STRIP="strip"
2363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2370 fi
2371 fi
2372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373 if test -n "$ac_ct_STRIP"; then
2374 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375 $as_echo "$ac_ct_STRIP" >&6; }
2376 else
2377 { $as_echo "$as_me:$LINENO: result: no" >&5
2378 $as_echo "no" >&6; }
2379 fi
2381 if test "x$ac_ct_STRIP" = x; then
2382 STRIP=":"
2383 else
2384 case $cross_compiling:$ac_tool_warned in
2385 yes:)
2386 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394 STRIP=$ac_ct_STRIP
2395 fi
2396 else
2397 STRIP="$ac_cv_prog_STRIP"
2398 fi
2400 fi
2401 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2403 # We need awk for the "check" target. The system "awk" is bad on
2404 # some platforms.
2405 # Always define AMTAR for backward compatibility.
2407 AMTAR=${AMTAR-"${am_missing_run}tar"}
2409 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2415 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2416 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2417 # Check whether --enable-maintainer-mode was given.
2418 if test "${enable_maintainer_mode+set}" = set; then
2419 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2420 else
2421 USE_MAINTAINER_MODE=no
2422 fi
2424 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2425 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2428 if test $USE_MAINTAINER_MODE = yes; then
2429 MAINTAINER_MODE_TRUE=
2430 MAINTAINER_MODE_FALSE='#'
2431 else
2432 MAINTAINER_MODE_TRUE='#'
2433 MAINTAINER_MODE_FALSE=
2434 fi
2436 MAINT=$MAINTAINER_MODE_TRUE
2439 ac_config_headers="$ac_config_headers config.h"
2442 DEPDIR="${am__leading_dot}deps"
2444 ac_config_commands="$ac_config_commands depfiles"
2447 am_make=${MAKE-make}
2448 cat > confinc << 'END'
2449 am__doit:
2450 @echo done
2451 .PHONY: am__doit
2452 END
2453 # If we don't find an include directive, just comment out the code.
2454 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2455 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2456 am__include="#"
2457 am__quote=
2458 _am_result=none
2459 # First try GNU make style include.
2460 echo "include confinc" > confmf
2461 # We grep out `Entering directory' and `Leaving directory'
2462 # messages which can occur if `w' ends up in MAKEFLAGS.
2463 # In particular we don't look at `^make:' because GNU make might
2464 # be invoked under some other name (usually "gmake"), in which
2465 # case it prints its new name instead of `make'.
2466 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2467 am__include=include
2468 am__quote=
2469 _am_result=GNU
2470 fi
2471 # Now try BSD make style include.
2472 if test "$am__include" = "#"; then
2473 echo '.include "confinc"' > confmf
2474 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2475 am__include=.include
2476 am__quote="\""
2477 _am_result=BSD
2478 fi
2479 fi
2482 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2483 $as_echo "$_am_result" >&6; }
2484 rm -f confinc confmf
2486 # Check whether --enable-dependency-tracking was given.
2487 if test "${enable_dependency_tracking+set}" = set; then
2488 enableval=$enable_dependency_tracking;
2489 fi
2491 if test "x$enable_dependency_tracking" != xno; then
2492 am_depcomp="$ac_aux_dir/depcomp"
2493 AMDEPBACKSLASH='\'
2494 fi
2497 if test "x$enable_dependency_tracking" != xno; then
2498 AMDEP_TRUE=
2499 AMDEP_FALSE='#'
2500 else
2501 AMDEP_TRUE='#'
2502 AMDEP_FALSE=
2503 fi
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2538 fi
2539 fi
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2543 $as_echo "$CC" >&6; }
2544 else
2545 { $as_echo "$as_me:$LINENO: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2550 fi
2551 if test -z "$ac_cv_prog_CC"; then
2552 ac_ct_CC=$CC
2553 # Extract the first word of "gcc", so it can be a program name with args.
2554 set dummy gcc; ac_word=$2
2555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$ac_ct_CC"; then
2561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_ac_ct_CC="gcc"
2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2578 fi
2579 fi
2580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2581 if test -n "$ac_ct_CC"; then
2582 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2583 $as_echo "$ac_ct_CC" >&6; }
2584 else
2585 { $as_echo "$as_me:$LINENO: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2589 if test "x$ac_ct_CC" = x; then
2590 CC=""
2591 else
2592 case $cross_compiling:$ac_tool_warned in
2593 yes:)
2594 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2595 whose name does not start with the host triplet. If you think this
2596 configuration is useful to you, please write to autoconf@gnu.org." >&5
2597 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2598 whose name does not start with the host triplet. If you think this
2599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2600 ac_tool_warned=yes ;;
2601 esac
2602 CC=$ac_ct_CC
2603 fi
2604 else
2605 CC="$ac_cv_prog_CC"
2606 fi
2608 if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
2610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2611 set dummy ${ac_tool_prefix}cc; ac_word=$2
2612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_CC="${ac_tool_prefix}cc"
2628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2635 fi
2636 fi
2637 CC=$ac_cv_prog_CC
2638 if test -n "$CC"; then
2639 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2640 $as_echo "$CC" >&6; }
2641 else
2642 { $as_echo "$as_me:$LINENO: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2647 fi
2648 fi
2649 if test -z "$CC"; then
2650 # Extract the first word of "cc", so it can be a program name with args.
2651 set dummy cc; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 else
2660 ac_prog_rejected=no
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2669 ac_prog_rejected=yes
2670 continue
2671 fi
2672 ac_cv_prog_CC="cc"
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2680 if test $ac_prog_rejected = yes; then
2681 # We found a bogon in the path, so make sure we never use it.
2682 set dummy $ac_cv_prog_CC
2683 shift
2684 if test $# != 0; then
2685 # We chose a different compiler from the bogus one.
2686 # However, it has the same basename, so the bogon will be chosen
2687 # first if we set CC to just the basename; use the full file name.
2688 shift
2689 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2690 fi
2691 fi
2692 fi
2693 fi
2694 CC=$ac_cv_prog_CC
2695 if test -n "$CC"; then
2696 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2697 $as_echo "$CC" >&6; }
2698 else
2699 { $as_echo "$as_me:$LINENO: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2704 fi
2705 if test -z "$CC"; then
2706 if test -n "$ac_tool_prefix"; then
2707 for ac_prog in cl.exe
2708 do
2709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2740 else
2741 { $as_echo "$as_me:$LINENO: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2746 test -n "$CC" && break
2747 done
2748 fi
2749 if test -z "$CC"; then
2750 ac_ct_CC=$CC
2751 for ac_prog in cl.exe
2752 do
2753 # Extract the first word of "$ac_prog", so it can be a program name with args.
2754 set dummy $ac_prog; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_CC="$ac_prog"
2771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2778 fi
2779 fi
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2783 $as_echo "$ac_ct_CC" >&6; }
2784 else
2785 { $as_echo "$as_me:$LINENO: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2790 test -n "$ac_ct_CC" && break
2791 done
2793 if test "x$ac_ct_CC" = x; then
2794 CC=""
2795 else
2796 case $cross_compiling:$ac_tool_warned in
2797 yes:)
2798 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2799 whose name does not start with the host triplet. If you think this
2800 configuration is useful to you, please write to autoconf@gnu.org." >&5
2801 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2802 whose name does not start with the host triplet. If you think this
2803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2804 ac_tool_warned=yes ;;
2805 esac
2806 CC=$ac_ct_CC
2807 fi
2808 fi
2810 fi
2813 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2814 See \`config.log' for more details." >&5
2815 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2816 See \`config.log' for more details." >&2;}
2817 { (exit 1); exit 1; }; }
2819 # Provide some information about the compiler.
2820 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2821 set X $ac_compile
2822 ac_compiler=$2
2823 { (ac_try="$ac_compiler --version >&5"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2829 $as_echo "$ac_try_echo") >&5
2830 (eval "$ac_compiler --version >&5") 2>&5
2831 ac_status=$?
2832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2834 { (ac_try="$ac_compiler -v >&5"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2840 $as_echo "$ac_try_echo") >&5
2841 (eval "$ac_compiler -v >&5") 2>&5
2842 ac_status=$?
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }
2845 { (ac_try="$ac_compiler -V >&5"
2846 case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849 esac
2850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851 $as_echo "$ac_try_echo") >&5
2852 (eval "$ac_compiler -V >&5") 2>&5
2853 ac_status=$?
2854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2864 int
2865 main ()
2866 {
2868 ;
2869 return 0;
2870 }
2871 _ACEOF
2872 ac_clean_files_save=$ac_clean_files
2873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2874 # Try to create an executable without -o first, disregard a.out.
2875 # It will help us diagnose broken compilers, and finding out an intuition
2876 # of exeext.
2877 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2878 $as_echo_n "checking for C compiler default output file name... " >&6; }
2879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881 # The possible output files:
2882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2884 ac_rmfiles=
2885 for ac_file in $ac_files
2886 do
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2890 esac
2891 done
2892 rm -f $ac_rmfiles
2894 if { (ac_try="$ac_link_default"
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_default") 2>&5
2902 ac_status=$?
2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; then
2905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2907 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2908 # so that the user can short-circuit this test for compilers unknown to
2909 # Autoconf.
2910 for ac_file in $ac_files ''
2911 do
2912 test -f "$ac_file" || continue
2913 case $ac_file in
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2915 ;;
2916 [ab].out )
2917 # We found the default executable, but exeext='' is most
2918 # certainly right.
2919 break;;
2920 *.* )
2921 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2922 then :; else
2923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 fi
2925 # We set ac_cv_exeext here because the later test for it is not
2926 # safe: cross compilers may not add the suffix if given an `-o'
2927 # argument, so we may need to know it at that point already.
2928 # Even if this section looks crufty: it has the advantage of
2929 # actually working.
2930 break;;
2931 * )
2932 break;;
2933 esac
2934 done
2935 test "$ac_cv_exeext" = no && ac_cv_exeext=
2937 else
2938 ac_file=''
2939 fi
2941 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2942 $as_echo "$ac_file" >&6; }
2943 if test -z "$ac_file"; then
2944 $as_echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2948 See \`config.log' for more details." >&5
2949 $as_echo "$as_me: error: C compiler cannot create executables
2950 See \`config.log' for more details." >&2;}
2951 { (exit 77); exit 77; }; }
2952 fi
2954 ac_exeext=$ac_cv_exeext
2956 # Check that the compiler produces executables we can run. If not, either
2957 # the compiler is broken, or we cross compile.
2958 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2959 $as_echo_n "checking whether the C compiler works... " >&6; }
2960 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2961 # If not cross compiling, check that we can run a simple program.
2962 if test "$cross_compiling" != yes; then
2963 if { ac_try='./$ac_file'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2969 $as_echo "$ac_try_echo") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 cross_compiling=no
2975 else
2976 if test "$cross_compiling" = maybe; then
2977 cross_compiling=yes
2978 else
2979 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2980 If you meant to cross compile, use \`--host'.
2981 See \`config.log' for more details." >&5
2982 $as_echo "$as_me: error: cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2986 fi
2987 fi
2988 fi
2989 { $as_echo "$as_me:$LINENO: result: yes" >&5
2990 $as_echo "yes" >&6; }
2992 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2993 ac_clean_files=$ac_clean_files_save
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2997 $as_echo_n "checking whether we are cross compiling... " >&6; }
2998 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2999 $as_echo "$cross_compiling" >&6; }
3001 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3002 $as_echo_n "checking for suffix of executables... " >&6; }
3003 if { (ac_try="$ac_link"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009 $as_echo "$ac_try_echo") >&5
3010 (eval "$ac_link") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; then
3014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3016 # work properly (i.e., refer to `conftest.exe'), while it won't with
3017 # `rm'.
3018 for ac_file in conftest.exe conftest conftest.*; do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 break;;
3024 * ) break;;
3025 esac
3026 done
3027 else
3028 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3029 See \`config.log' for more details." >&5
3030 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3035 rm -f conftest$ac_cv_exeext
3036 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3037 $as_echo "$ac_cv_exeext" >&6; }
3039 rm -f conftest.$ac_ext
3040 EXEEXT=$ac_cv_exeext
3041 ac_exeext=$EXEEXT
3042 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3043 $as_echo_n "checking for suffix of object files... " >&6; }
3044 if test "${ac_cv_objext+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3046 else
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3054 int
3055 main ()
3056 {
3058 ;
3059 return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.o conftest.obj
3063 if { (ac_try="$ac_compile"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3069 $as_echo "$ac_try_echo") >&5
3070 (eval "$ac_compile") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; then
3074 for ac_file in conftest.o conftest.obj conftest.*; do
3075 test -f "$ac_file" || continue;
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3079 break;;
3080 esac
3081 done
3082 else
3083 $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3087 See \`config.log' for more details." >&5
3088 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3093 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3094 fi
3095 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3096 $as_echo "$ac_cv_objext" >&6; }
3097 OBJEXT=$ac_cv_objext
3098 ac_objext=$OBJEXT
3099 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3100 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3101 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3102 $as_echo_n "(cached) " >&6
3103 else
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 {
3114 #ifndef __GNUC__
3115 choke me
3116 #endif
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129 $as_echo "$ac_try_echo") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } && {
3137 test -z "$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest.$ac_objext; then
3140 ac_compiler_gnu=yes
3141 else
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 ac_compiler_gnu=no
3146 fi
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3151 fi
3152 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3153 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3154 if test $ac_compiler_gnu = yes; then
3155 GCC=yes
3156 else
3157 GCC=
3158 fi
3159 ac_test_CFLAGS=${CFLAGS+set}
3160 ac_save_CFLAGS=$CFLAGS
3161 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3162 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3163 if test "${ac_cv_prog_cc_g+set}" = set; then
3164 $as_echo_n "(cached) " >&6
3165 else
3166 ac_save_c_werror_flag=$ac_c_werror_flag
3167 ac_c_werror_flag=yes
3168 ac_cv_prog_cc_g=no
3169 CFLAGS="-g"
3170 cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h. */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3177 int
3178 main ()
3179 {
3181 ;
3182 return 0;
3183 }
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192 $as_echo "$ac_try_echo") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && {
3200 test -z "$ac_c_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3203 ac_cv_prog_cc_g=yes
3204 else
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 CFLAGS=""
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3216 int
3217 main ()
3218 {
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231 $as_echo "$ac_try_echo") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
3242 :
3243 else
3244 $as_echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3248 CFLAGS="-g"
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3256 int
3257 main ()
3258 {
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_prog_cc_g=yes
3283 else
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3288 fi
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 fi
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 fi
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3298 fi
3299 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3300 $as_echo "$ac_cv_prog_cc_g" >&6; }
3301 if test "$ac_test_CFLAGS" = set; then
3302 CFLAGS=$ac_save_CFLAGS
3303 elif test $ac_cv_prog_cc_g = yes; then
3304 if test "$GCC" = yes; then
3305 CFLAGS="-g -O2"
3306 else
3307 CFLAGS="-g"
3308 fi
3309 else
3310 if test "$GCC" = yes; then
3311 CFLAGS="-O2"
3312 else
3313 CFLAGS=
3314 fi
3315 fi
3316 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3318 if test "${ac_cv_prog_cc_c89+set}" = set; then
3319 $as_echo_n "(cached) " >&6
3320 else
3321 ac_cv_prog_cc_c89=no
3322 ac_save_CC=$CC
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #include <stdarg.h>
3330 #include <stdio.h>
3331 #include <sys/types.h>
3332 #include <sys/stat.h>
3333 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3334 struct buf { int x; };
3335 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3336 static char *e (p, i)
3337 char **p;
3338 int i;
3339 {
3340 return p[i];
3341 }
3342 static char *f (char * (*g) (char **, int), char **p, ...)
3343 {
3344 char *s;
3345 va_list v;
3346 va_start (v,p);
3347 s = g (p, va_arg (v,int));
3348 va_end (v);
3349 return s;
3350 }
3352 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3353 function prototypes and stuff, but not '\xHH' hex character constants.
3354 These don't provoke an error unfortunately, instead are silently treated
3355 as 'x'. The following induces an error, until -std is added to get
3356 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3357 array size at least. It's necessary to write '\x00'==0 to get something
3358 that's true only with -std. */
3359 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3361 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3362 inside strings and character constants. */
3363 #define FOO(x) 'x'
3364 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3366 int test (int i, double x);
3367 struct s1 {int (*f) (int a);};
3368 struct s2 {int (*f) (double a);};
3369 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3370 int argc;
3371 char **argv;
3372 int
3373 main ()
3374 {
3375 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3381 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3382 do
3383 CC="$ac_save_CC $ac_arg"
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_compile") 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && {
3399 test -z "$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3401 } && test -s conftest.$ac_objext; then
3402 ac_cv_prog_cc_c89=$ac_arg
3403 else
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3408 fi
3410 rm -f core conftest.err conftest.$ac_objext
3411 test "x$ac_cv_prog_cc_c89" != "xno" && break
3412 done
3413 rm -f conftest.$ac_ext
3414 CC=$ac_save_CC
3416 fi
3417 # AC_CACHE_VAL
3418 case "x$ac_cv_prog_cc_c89" in
3419 x)
3420 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3421 $as_echo "none needed" >&6; } ;;
3422 xno)
3423 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3424 $as_echo "unsupported" >&6; } ;;
3425 *)
3426 CC="$CC $ac_cv_prog_cc_c89"
3427 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3428 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3429 esac
3432 ac_ext=c
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 depcc="$CC" am_compiler_list=
3440 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 $as_echo_n "checking dependency style of $depcc... " >&6; }
3442 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446 # We make a subdir and do the tests there. Otherwise we can end up
3447 # making bogus files that we don't know about and never remove. For
3448 # instance it was reported that on HP-UX the gcc test will end up
3449 # making a dummy file named `D' -- because `-MD' means `put the output
3450 # in D'.
3451 mkdir conftest.dir
3452 # Copy depcomp to subdir because otherwise we won't find it if we're
3453 # using a relative directory.
3454 cp "$am_depcomp" conftest.dir
3455 cd conftest.dir
3456 # We will build objects and dependencies in a subdirectory because
3457 # it helps to detect inapplicable dependency modes. For instance
3458 # both Tru64's cc and ICC support -MD to output dependencies as a
3459 # side effect of compilation, but ICC will put the dependencies in
3460 # the current directory while Tru64 will put them in the object
3461 # directory.
3462 mkdir sub
3464 am_cv_CC_dependencies_compiler_type=none
3465 if test "$am_compiler_list" = ""; then
3466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467 fi
3468 for depmode in $am_compiler_list; do
3469 # Setup a source with many dependencies, because some compilers
3470 # like to wrap large dependency lists on column 80 (with \), and
3471 # we should not choose a depcomp mode which is confused by this.
3472 #
3473 # We need to recreate these files for each test, as the compiler may
3474 # overwrite some of them when testing with obscure command lines.
3475 # This happens at least with the AIX C compiler.
3476 : > sub/conftest.c
3477 for i in 1 2 3 4 5 6; do
3478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480 # Solaris 8's {/usr,}/bin/sh.
3481 touch sub/conftst$i.h
3482 done
3483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3485 case $depmode in
3486 nosideeffect)
3487 # after this tag, mechanisms are not by side-effect, so they'll
3488 # only be used when explicitly requested
3489 if test "x$enable_dependency_tracking" = xyes; then
3490 continue
3491 else
3492 break
3493 fi
3494 ;;
3495 none) break ;;
3496 esac
3497 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498 # mode. It turns out that the SunPro C++ compiler does not properly
3499 # handle `-M -o', and we need to detect this.
3500 if depmode=$depmode \
3501 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504 >/dev/null 2>conftest.err &&
3505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3508 # icc doesn't choke on unknown options, it will just issue warnings
3509 # or remarks (even with -Werror). So we grep stderr for any message
3510 # that says an option was ignored or not supported.
3511 # When given -MP, icc 7.0 and 7.1 complain thusly:
3512 # icc: Command line warning: ignoring option '-M'; no argument required
3513 # The diagnosis changed in icc 8.0:
3514 # icc: Command line remark: option '-MP' not supported
3515 if (grep 'ignoring option' conftest.err ||
3516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3517 am_cv_CC_dependencies_compiler_type=$depmode
3518 break
3519 fi
3520 fi
3521 done
3523 cd ..
3524 rm -rf conftest.dir
3525 else
3526 am_cv_CC_dependencies_compiler_type=none
3527 fi
3529 fi
3530 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3531 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3532 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3536 if
3537 test "x$enable_dependency_tracking" != xno \
3538 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3539 am__fastdepCC_TRUE=
3540 am__fastdepCC_FALSE='#'
3541 else
3542 am__fastdepCC_TRUE='#'
3543 am__fastdepCC_FALSE=
3544 fi
3549 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3550 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3551 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3552 $as_echo_n "(cached) " >&6
3553 else
3554 ac_check_lib_save_LIBS=$LIBS
3555 LIBS="-lcposix $LIBS"
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3563 /* Override any GCC internal prototype to avoid an error.
3564 Use char because int might match the return type of a GCC
3565 builtin and then its argument prototype would still apply. */
3566 #ifdef __cplusplus
3567 extern "C"
3568 #endif
3569 char strerror ();
3570 int
3571 main ()
3572 {
3573 return strerror ();
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 rm -f conftest.$ac_objext conftest$ac_exeext
3579 if { (ac_try="$ac_link"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3585 $as_echo "$ac_try_echo") >&5
3586 (eval "$ac_link") 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && {
3593 test -z "$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest$ac_exeext && {
3596 test "$cross_compiling" = yes ||
3597 $as_test_x conftest$ac_exeext
3598 }; then
3599 ac_cv_lib_cposix_strerror=yes
3600 else
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 ac_cv_lib_cposix_strerror=no
3605 fi
3607 rm -rf conftest.dSYM
3608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3609 conftest$ac_exeext conftest.$ac_ext
3610 LIBS=$ac_check_lib_save_LIBS
3611 fi
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3613 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3614 if test $ac_cv_lib_cposix_strerror = yes; then
3615 LIBS="$LIBS -lcposix"
3616 fi
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3651 fi
3652 fi
3653 CC=$ac_cv_prog_CC
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3657 else
3658 { $as_echo "$as_me:$LINENO: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3663 fi
3664 if test -z "$ac_cv_prog_CC"; then
3665 ac_ct_CC=$CC
3666 # Extract the first word of "gcc", so it can be a program name with args.
3667 set dummy gcc; ac_word=$2
3668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -n "$ac_ct_CC"; then
3674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_ac_ct_CC="gcc"
3684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3691 fi
3692 fi
3693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694 if test -n "$ac_ct_CC"; then
3695 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3696 $as_echo "$ac_ct_CC" >&6; }
3697 else
3698 { $as_echo "$as_me:$LINENO: result: no" >&5
3699 $as_echo "no" >&6; }
3700 fi
3702 if test "x$ac_ct_CC" = x; then
3703 CC=""
3704 else
3705 case $cross_compiling:$ac_tool_warned in
3706 yes:)
3707 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3708 whose name does not start with the host triplet. If you think this
3709 configuration is useful to you, please write to autoconf@gnu.org." >&5
3710 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3711 whose name does not start with the host triplet. If you think this
3712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3713 ac_tool_warned=yes ;;
3714 esac
3715 CC=$ac_ct_CC
3716 fi
3717 else
3718 CC="$ac_cv_prog_CC"
3719 fi
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}cc; ac_word=$2
3725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if test "${ac_cv_prog_CC+set}" = set; then
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_CC="${ac_tool_prefix}cc"
3741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744 done
3745 done
3746 IFS=$as_save_IFS
3748 fi
3749 fi
3750 CC=$ac_cv_prog_CC
3751 if test -n "$CC"; then
3752 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3753 $as_echo "$CC" >&6; }
3754 else
3755 { $as_echo "$as_me:$LINENO: result: no" >&5
3756 $as_echo "no" >&6; }
3757 fi
3760 fi
3761 fi
3762 if test -z "$CC"; then
3763 # Extract the first word of "cc", so it can be a program name with args.
3764 set dummy cc; ac_word=$2
3765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if test "${ac_cv_prog_CC+set}" = set; then
3768 $as_echo_n "(cached) " >&6
3769 else
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 ac_prog_rejected=no
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3782 ac_prog_rejected=yes
3783 continue
3784 fi
3785 ac_cv_prog_CC="cc"
3786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3788 fi
3789 done
3790 done
3791 IFS=$as_save_IFS
3793 if test $ac_prog_rejected = yes; then
3794 # We found a bogon in the path, so make sure we never use it.
3795 set dummy $ac_cv_prog_CC
3796 shift
3797 if test $# != 0; then
3798 # We chose a different compiler from the bogus one.
3799 # However, it has the same basename, so the bogon will be chosen
3800 # first if we set CC to just the basename; use the full file name.
3801 shift
3802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3803 fi
3804 fi
3805 fi
3806 fi
3807 CC=$ac_cv_prog_CC
3808 if test -n "$CC"; then
3809 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3810 $as_echo "$CC" >&6; }
3811 else
3812 { $as_echo "$as_me:$LINENO: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3817 fi
3818 if test -z "$CC"; then
3819 if test -n "$ac_tool_prefix"; then
3820 for ac_prog in cl.exe
3821 do
3822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if test "${ac_cv_prog_CC+set}" = set; then
3827 $as_echo_n "(cached) " >&6
3828 else
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3845 IFS=$as_save_IFS
3847 fi
3848 fi
3849 CC=$ac_cv_prog_CC
3850 if test -n "$CC"; then
3851 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3852 $as_echo "$CC" >&6; }
3853 else
3854 { $as_echo "$as_me:$LINENO: result: no" >&5
3855 $as_echo "no" >&6; }
3856 fi
3859 test -n "$CC" && break
3860 done
3861 fi
3862 if test -z "$CC"; then
3863 ac_ct_CC=$CC
3864 for ac_prog in cl.exe
3865 do
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867 set dummy $ac_prog; ac_word=$2
3868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3871 $as_echo_n "(cached) " >&6
3872 else
3873 if test -n "$ac_ct_CC"; then
3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3883 ac_cv_prog_ac_ct_CC="$ac_prog"
3884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889 IFS=$as_save_IFS
3891 fi
3892 fi
3893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3894 if test -n "$ac_ct_CC"; then
3895 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3896 $as_echo "$ac_ct_CC" >&6; }
3897 else
3898 { $as_echo "$as_me:$LINENO: result: no" >&5
3899 $as_echo "no" >&6; }
3900 fi
3903 test -n "$ac_ct_CC" && break
3904 done
3906 if test "x$ac_ct_CC" = x; then
3907 CC=""
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910 yes:)
3911 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3912 whose name does not start with the host triplet. If you think this
3913 configuration is useful to you, please write to autoconf@gnu.org." >&5
3914 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3915 whose name does not start with the host triplet. If you think this
3916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3917 ac_tool_warned=yes ;;
3918 esac
3919 CC=$ac_ct_CC
3920 fi
3921 fi
3923 fi
3926 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3927 See \`config.log' for more details." >&5
3928 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3932 # Provide some information about the compiler.
3933 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3934 set X $ac_compile
3935 ac_compiler=$2
3936 { (ac_try="$ac_compiler --version >&5"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943 (eval "$ac_compiler --version >&5") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3947 { (ac_try="$ac_compiler -v >&5"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953 $as_echo "$ac_try_echo") >&5
3954 (eval "$ac_compiler -v >&5") 2>&5
3955 ac_status=$?
3956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }
3958 { (ac_try="$ac_compiler -V >&5"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3964 $as_echo "$ac_try_echo") >&5
3965 (eval "$ac_compiler -V >&5") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }
3970 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3971 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3973 $as_echo_n "(cached) " >&6
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3982 int
3983 main ()
3984 {
3985 #ifndef __GNUC__
3986 choke me
3987 #endif
3989 ;
3990 return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (ac_try="$ac_compile"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4000 $as_echo "$ac_try_echo") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4011 ac_compiler_gnu=yes
4012 else
4013 $as_echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 ac_compiler_gnu=no
4017 fi
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4022 fi
4023 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4024 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4025 if test $ac_compiler_gnu = yes; then
4026 GCC=yes
4027 else
4028 GCC=
4029 fi
4030 ac_test_CFLAGS=${CFLAGS+set}
4031 ac_save_CFLAGS=$CFLAGS
4032 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4033 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4034 if test "${ac_cv_prog_cc_g+set}" = set; then
4035 $as_echo_n "(cached) " >&6
4036 else
4037 ac_save_c_werror_flag=$ac_c_werror_flag
4038 ac_c_werror_flag=yes
4039 ac_cv_prog_cc_g=no
4040 CFLAGS="-g"
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4048 int
4049 main ()
4050 {
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (ac_try="$ac_compile"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4063 $as_echo "$ac_try_echo") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4074 ac_cv_prog_cc_g=yes
4075 else
4076 $as_echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 CFLAGS=""
4080 cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h. */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4087 int
4088 main ()
4089 {
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (ac_try="$ac_compile"
4097 case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4102 $as_echo "$ac_try_echo") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } && {
4110 test -z "$ac_c_werror_flag" ||
4111 test ! -s conftest.err
4112 } && test -s conftest.$ac_objext; then
4113 :
4114 else
4115 $as_echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 ac_c_werror_flag=$ac_save_c_werror_flag
4119 CFLAGS="-g"
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 int
4128 main ()
4129 {
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && {
4150 test -z "$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 } && test -s conftest.$ac_objext; then
4153 ac_cv_prog_cc_g=yes
4154 else
4155 $as_echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4159 fi
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 fi
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 ac_c_werror_flag=$ac_save_c_werror_flag
4169 fi
4170 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4171 $as_echo "$ac_cv_prog_cc_g" >&6; }
4172 if test "$ac_test_CFLAGS" = set; then
4173 CFLAGS=$ac_save_CFLAGS
4174 elif test $ac_cv_prog_cc_g = yes; then
4175 if test "$GCC" = yes; then
4176 CFLAGS="-g -O2"
4177 else
4178 CFLAGS="-g"
4179 fi
4180 else
4181 if test "$GCC" = yes; then
4182 CFLAGS="-O2"
4183 else
4184 CFLAGS=
4185 fi
4186 fi
4187 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4188 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4189 if test "${ac_cv_prog_cc_c89+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4191 else
4192 ac_cv_prog_cc_c89=no
4193 ac_save_CC=$CC
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <stdarg.h>
4201 #include <stdio.h>
4202 #include <sys/types.h>
4203 #include <sys/stat.h>
4204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4205 struct buf { int x; };
4206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4207 static char *e (p, i)
4208 char **p;
4209 int i;
4210 {
4211 return p[i];
4212 }
4213 static char *f (char * (*g) (char **, int), char **p, ...)
4214 {
4215 char *s;
4216 va_list v;
4217 va_start (v,p);
4218 s = g (p, va_arg (v,int));
4219 va_end (v);
4220 return s;
4221 }
4223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4224 function prototypes and stuff, but not '\xHH' hex character constants.
4225 These don't provoke an error unfortunately, instead are silently treated
4226 as 'x'. The following induces an error, until -std is added to get
4227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4228 array size at least. It's necessary to write '\x00'==0 to get something
4229 that's true only with -std. */
4230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4232 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4233 inside strings and character constants. */
4234 #define FOO(x) 'x'
4235 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4237 int test (int i, double x);
4238 struct s1 {int (*f) (int a);};
4239 struct s2 {int (*f) (double a);};
4240 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4241 int argc;
4242 char **argv;
4243 int
4244 main ()
4245 {
4246 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4252 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4253 do
4254 CC="$ac_save_CC $ac_arg"
4255 rm -f conftest.$ac_objext
4256 if { (ac_try="$ac_compile"
4257 case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4262 $as_echo "$ac_try_echo") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && {
4270 test -z "$ac_c_werror_flag" ||
4271 test ! -s conftest.err
4272 } && test -s conftest.$ac_objext; then
4273 ac_cv_prog_cc_c89=$ac_arg
4274 else
4275 $as_echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4279 fi
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c89" != "xno" && break
4283 done
4284 rm -f conftest.$ac_ext
4285 CC=$ac_save_CC
4287 fi
4288 # AC_CACHE_VAL
4289 case "x$ac_cv_prog_cc_c89" in
4290 x)
4291 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4293 xno)
4294 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4296 *)
4297 CC="$CC $ac_cv_prog_cc_c89"
4298 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4299 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4300 esac
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 depcc="$CC" am_compiler_list=
4311 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4312 $as_echo_n "checking dependency style of $depcc... " >&6; }
4313 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4317 # We make a subdir and do the tests there. Otherwise we can end up
4318 # making bogus files that we don't know about and never remove. For
4319 # instance it was reported that on HP-UX the gcc test will end up
4320 # making a dummy file named `D' -- because `-MD' means `put the output
4321 # in D'.
4322 mkdir conftest.dir
4323 # Copy depcomp to subdir because otherwise we won't find it if we're
4324 # using a relative directory.
4325 cp "$am_depcomp" conftest.dir
4326 cd conftest.dir
4327 # We will build objects and dependencies in a subdirectory because
4328 # it helps to detect inapplicable dependency modes. For instance
4329 # both Tru64's cc and ICC support -MD to output dependencies as a
4330 # side effect of compilation, but ICC will put the dependencies in
4331 # the current directory while Tru64 will put them in the object
4332 # directory.
4333 mkdir sub
4335 am_cv_CC_dependencies_compiler_type=none
4336 if test "$am_compiler_list" = ""; then
4337 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4338 fi
4339 for depmode in $am_compiler_list; do
4340 # Setup a source with many dependencies, because some compilers
4341 # like to wrap large dependency lists on column 80 (with \), and
4342 # we should not choose a depcomp mode which is confused by this.
4343 #
4344 # We need to recreate these files for each test, as the compiler may
4345 # overwrite some of them when testing with obscure command lines.
4346 # This happens at least with the AIX C compiler.
4347 : > sub/conftest.c
4348 for i in 1 2 3 4 5 6; do
4349 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4350 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4351 # Solaris 8's {/usr,}/bin/sh.
4352 touch sub/conftst$i.h
4353 done
4354 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4356 case $depmode in
4357 nosideeffect)
4358 # after this tag, mechanisms are not by side-effect, so they'll
4359 # only be used when explicitly requested
4360 if test "x$enable_dependency_tracking" = xyes; then
4361 continue
4362 else
4363 break
4364 fi
4365 ;;
4366 none) break ;;
4367 esac
4368 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4369 # mode. It turns out that the SunPro C++ compiler does not properly
4370 # handle `-M -o', and we need to detect this.
4371 if depmode=$depmode \
4372 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4374 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4375 >/dev/null 2>conftest.err &&
4376 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4377 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4378 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4379 # icc doesn't choke on unknown options, it will just issue warnings
4380 # or remarks (even with -Werror). So we grep stderr for any message
4381 # that says an option was ignored or not supported.
4382 # When given -MP, icc 7.0 and 7.1 complain thusly:
4383 # icc: Command line warning: ignoring option '-M'; no argument required
4384 # The diagnosis changed in icc 8.0:
4385 # icc: Command line remark: option '-MP' not supported
4386 if (grep 'ignoring option' conftest.err ||
4387 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4388 am_cv_CC_dependencies_compiler_type=$depmode
4389 break
4390 fi
4391 fi
4392 done
4394 cd ..
4395 rm -rf conftest.dir
4396 else
4397 am_cv_CC_dependencies_compiler_type=none
4398 fi
4400 fi
4401 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4402 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4403 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4407 if
4408 test "x$enable_dependency_tracking" != xno \
4409 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4410 am__fastdepCC_TRUE=
4411 am__fastdepCC_FALSE='#'
4412 else
4413 am__fastdepCC_TRUE='#'
4414 am__fastdepCC_FALSE=
4415 fi
4418 ac_ext=c
4419 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 if test -n "$ac_tool_prefix"; then
4424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if test "${ac_cv_prog_CC+set}" = set; then
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if test -n "$CC"; then
4432 ac_cv_prog_CC="$CC" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4444 fi
4445 done
4446 done
4447 IFS=$as_save_IFS
4449 fi
4450 fi
4451 CC=$ac_cv_prog_CC
4452 if test -n "$CC"; then
4453 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4454 $as_echo "$CC" >&6; }
4455 else
4456 { $as_echo "$as_me:$LINENO: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4461 fi
4462 if test -z "$ac_cv_prog_CC"; then
4463 ac_ct_CC=$CC
4464 # Extract the first word of "gcc", so it can be a program name with args.
4465 set dummy gcc; ac_word=$2
4466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4469 $as_echo_n "(cached) " >&6
4470 else
4471 if test -n "$ac_ct_CC"; then
4472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_ac_ct_CC="gcc"
4482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485 done
4486 done
4487 IFS=$as_save_IFS
4489 fi
4490 fi
4491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4492 if test -n "$ac_ct_CC"; then
4493 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4494 $as_echo "$ac_ct_CC" >&6; }
4495 else
4496 { $as_echo "$as_me:$LINENO: result: no" >&5
4497 $as_echo "no" >&6; }
4498 fi
4500 if test "x$ac_ct_CC" = x; then
4501 CC=""
4502 else
4503 case $cross_compiling:$ac_tool_warned in
4504 yes:)
4505 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4506 whose name does not start with the host triplet. If you think this
4507 configuration is useful to you, please write to autoconf@gnu.org." >&5
4508 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4509 whose name does not start with the host triplet. If you think this
4510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4511 ac_tool_warned=yes ;;
4512 esac
4513 CC=$ac_ct_CC
4514 fi
4515 else
4516 CC="$ac_cv_prog_CC"
4517 fi
4519 if test -z "$CC"; then
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}cc; ac_word=$2
4523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if test "${ac_cv_prog_CC+set}" = set; then
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_CC="${ac_tool_prefix}cc"
4539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4546 fi
4547 fi
4548 CC=$ac_cv_prog_CC
4549 if test -n "$CC"; then
4550 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4551 $as_echo "$CC" >&6; }
4552 else
4553 { $as_echo "$as_me:$LINENO: result: no" >&5
4554 $as_echo "no" >&6; }
4555 fi
4558 fi
4559 fi
4560 if test -z "$CC"; then
4561 # Extract the first word of "cc", so it can be a program name with args.
4562 set dummy cc; ac_word=$2
4563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 else
4571 ac_prog_rejected=no
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4580 ac_prog_rejected=yes
4581 continue
4582 fi
4583 ac_cv_prog_CC="cc"
4584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4591 if test $ac_prog_rejected = yes; then
4592 # We found a bogon in the path, so make sure we never use it.
4593 set dummy $ac_cv_prog_CC
4594 shift
4595 if test $# != 0; then
4596 # We chose a different compiler from the bogus one.
4597 # However, it has the same basename, so the bogon will be chosen
4598 # first if we set CC to just the basename; use the full file name.
4599 shift
4600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4601 fi
4602 fi
4603 fi
4604 fi
4605 CC=$ac_cv_prog_CC
4606 if test -n "$CC"; then
4607 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4608 $as_echo "$CC" >&6; }
4609 else
4610 { $as_echo "$as_me:$LINENO: result: no" >&5
4611 $as_echo "no" >&6; }
4612 fi
4615 fi
4616 if test -z "$CC"; then
4617 if test -n "$ac_tool_prefix"; then
4618 for ac_prog in cl.exe
4619 do
4620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4622 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4645 fi
4646 fi
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4651 else
4652 { $as_echo "$as_me:$LINENO: result: no" >&5
4653 $as_echo "no" >&6; }
4654 fi
4657 test -n "$CC" && break
4658 done
4659 fi
4660 if test -z "$CC"; then
4661 ac_ct_CC=$CC
4662 for ac_prog in cl.exe
4663 do
4664 # Extract the first word of "$ac_prog", so it can be a program name with args.
4665 set dummy $ac_prog; ac_word=$2
4666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$ac_ct_CC"; then
4672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_ac_ct_CC="$ac_prog"
4682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4689 fi
4690 fi
4691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4692 if test -n "$ac_ct_CC"; then
4693 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4694 $as_echo "$ac_ct_CC" >&6; }
4695 else
4696 { $as_echo "$as_me:$LINENO: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4701 test -n "$ac_ct_CC" && break
4702 done
4704 if test "x$ac_ct_CC" = x; then
4705 CC=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4710 whose name does not start with the host triplet. If you think this
4711 configuration is useful to you, please write to autoconf@gnu.org." >&5
4712 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4713 whose name does not start with the host triplet. If you think this
4714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 CC=$ac_ct_CC
4718 fi
4719 fi
4721 fi
4724 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4725 See \`config.log' for more details." >&5
4726 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4727 See \`config.log' for more details." >&2;}
4728 { (exit 1); exit 1; }; }
4730 # Provide some information about the compiler.
4731 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4732 set X $ac_compile
4733 ac_compiler=$2
4734 { (ac_try="$ac_compiler --version >&5"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4740 $as_echo "$ac_try_echo") >&5
4741 (eval "$ac_compiler --version >&5") 2>&5
4742 ac_status=$?
4743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }
4745 { (ac_try="$ac_compiler -v >&5"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751 $as_echo "$ac_try_echo") >&5
4752 (eval "$ac_compiler -v >&5") 2>&5
4753 ac_status=$?
4754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }
4756 { (ac_try="$ac_compiler -V >&5"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4762 $as_echo "$ac_try_echo") >&5
4763 (eval "$ac_compiler -V >&5") 2>&5
4764 ac_status=$?
4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }
4768 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4769 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4770 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 int
4781 main ()
4782 {
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4798 $as_echo "$ac_try_echo") >&5
4799 (eval "$ac_compile") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && {
4806 test -z "$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 } && test -s conftest.$ac_objext; then
4809 ac_compiler_gnu=yes
4810 else
4811 $as_echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 ac_compiler_gnu=no
4815 fi
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4820 fi
4821 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4822 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4823 if test $ac_compiler_gnu = yes; then
4824 GCC=yes
4825 else
4826 GCC=
4827 fi
4828 ac_test_CFLAGS=${CFLAGS+set}
4829 ac_save_CFLAGS=$CFLAGS
4830 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4831 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4832 if test "${ac_cv_prog_cc_g+set}" = set; then
4833 $as_echo_n "(cached) " >&6
4834 else
4835 ac_save_c_werror_flag=$ac_c_werror_flag
4836 ac_c_werror_flag=yes
4837 ac_cv_prog_cc_g=no
4838 CFLAGS="-g"
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4846 int
4847 main ()
4848 {
4850 ;
4851 return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_prog_cc_g=yes
4873 else
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 CFLAGS=""
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4885 int
4886 main ()
4887 {
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 rm -f conftest.$ac_objext
4894 if { (ac_try="$ac_compile"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4900 $as_echo "$ac_try_echo") >&5
4901 (eval "$ac_compile") 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest.$ac_objext; then
4911 :
4912 else
4913 $as_echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 ac_c_werror_flag=$ac_save_c_werror_flag
4917 CFLAGS="-g"
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4925 int
4926 main ()
4927 {
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 ac_cv_prog_cc_g=yes
4952 else
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4957 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 ac_c_werror_flag=$ac_save_c_werror_flag
4967 fi
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4969 $as_echo "$ac_cv_prog_cc_g" >&6; }
4970 if test "$ac_test_CFLAGS" = set; then
4971 CFLAGS=$ac_save_CFLAGS
4972 elif test $ac_cv_prog_cc_g = yes; then
4973 if test "$GCC" = yes; then
4974 CFLAGS="-g -O2"
4975 else
4976 CFLAGS="-g"
4977 fi
4978 else
4979 if test "$GCC" = yes; then
4980 CFLAGS="-O2"
4981 else
4982 CFLAGS=
4983 fi
4984 fi
4985 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4987 if test "${ac_cv_prog_cc_c89+set}" = set; then
4988 $as_echo_n "(cached) " >&6
4989 else
4990 ac_cv_prog_cc_c89=no
4991 ac_save_CC=$CC
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <stdarg.h>
4999 #include <stdio.h>
5000 #include <sys/types.h>
5001 #include <sys/stat.h>
5002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5003 struct buf { int x; };
5004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5005 static char *e (p, i)
5006 char **p;
5007 int i;
5008 {
5009 return p[i];
5010 }
5011 static char *f (char * (*g) (char **, int), char **p, ...)
5012 {
5013 char *s;
5014 va_list v;
5015 va_start (v,p);
5016 s = g (p, va_arg (v,int));
5017 va_end (v);
5018 return s;
5019 }
5021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5022 function prototypes and stuff, but not '\xHH' hex character constants.
5023 These don't provoke an error unfortunately, instead are silently treated
5024 as 'x'. The following induces an error, until -std is added to get
5025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5026 array size at least. It's necessary to write '\x00'==0 to get something
5027 that's true only with -std. */
5028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5031 inside strings and character constants. */
5032 #define FOO(x) 'x'
5033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5035 int test (int i, double x);
5036 struct s1 {int (*f) (int a);};
5037 struct s2 {int (*f) (double a);};
5038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5039 int argc;
5040 char **argv;
5041 int
5042 main ()
5043 {
5044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5045 ;
5046 return 0;
5047 }
5048 _ACEOF
5049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5051 do
5052 CC="$ac_save_CC $ac_arg"
5053 rm -f conftest.$ac_objext
5054 if { (ac_try="$ac_compile"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5060 $as_echo "$ac_try_echo") >&5
5061 (eval "$ac_compile") 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && {
5068 test -z "$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 } && test -s conftest.$ac_objext; then
5071 ac_cv_prog_cc_c89=$ac_arg
5072 else
5073 $as_echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5077 fi
5079 rm -f core conftest.err conftest.$ac_objext
5080 test "x$ac_cv_prog_cc_c89" != "xno" && break
5081 done
5082 rm -f conftest.$ac_ext
5083 CC=$ac_save_CC
5085 fi
5086 # AC_CACHE_VAL
5087 case "x$ac_cv_prog_cc_c89" in
5088 x)
5089 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5090 $as_echo "none needed" >&6; } ;;
5091 xno)
5092 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5093 $as_echo "unsupported" >&6; } ;;
5094 *)
5095 CC="$CC $ac_cv_prog_cc_c89"
5096 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5097 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5098 esac
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 depcc="$CC" am_compiler_list=
5109 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5110 $as_echo_n "checking dependency style of $depcc... " >&6; }
5111 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5115 # We make a subdir and do the tests there. Otherwise we can end up
5116 # making bogus files that we don't know about and never remove. For
5117 # instance it was reported that on HP-UX the gcc test will end up
5118 # making a dummy file named `D' -- because `-MD' means `put the output
5119 # in D'.
5120 mkdir conftest.dir
5121 # Copy depcomp to subdir because otherwise we won't find it if we're
5122 # using a relative directory.
5123 cp "$am_depcomp" conftest.dir
5124 cd conftest.dir
5125 # We will build objects and dependencies in a subdirectory because
5126 # it helps to detect inapplicable dependency modes. For instance
5127 # both Tru64's cc and ICC support -MD to output dependencies as a
5128 # side effect of compilation, but ICC will put the dependencies in
5129 # the current directory while Tru64 will put them in the object
5130 # directory.
5131 mkdir sub
5133 am_cv_CC_dependencies_compiler_type=none
5134 if test "$am_compiler_list" = ""; then
5135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5136 fi
5137 for depmode in $am_compiler_list; do
5138 # Setup a source with many dependencies, because some compilers
5139 # like to wrap large dependency lists on column 80 (with \), and
5140 # we should not choose a depcomp mode which is confused by this.
5141 #
5142 # We need to recreate these files for each test, as the compiler may
5143 # overwrite some of them when testing with obscure command lines.
5144 # This happens at least with the AIX C compiler.
5145 : > sub/conftest.c
5146 for i in 1 2 3 4 5 6; do
5147 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5148 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5149 # Solaris 8's {/usr,}/bin/sh.
5150 touch sub/conftst$i.h
5151 done
5152 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5154 case $depmode in
5155 nosideeffect)
5156 # after this tag, mechanisms are not by side-effect, so they'll
5157 # only be used when explicitly requested
5158 if test "x$enable_dependency_tracking" = xyes; then
5159 continue
5160 else
5161 break
5162 fi
5163 ;;
5164 none) break ;;
5165 esac
5166 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5167 # mode. It turns out that the SunPro C++ compiler does not properly
5168 # handle `-M -o', and we need to detect this.
5169 if depmode=$depmode \
5170 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5171 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5172 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5173 >/dev/null 2>conftest.err &&
5174 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5175 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5176 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5177 # icc doesn't choke on unknown options, it will just issue warnings
5178 # or remarks (even with -Werror). So we grep stderr for any message
5179 # that says an option was ignored or not supported.
5180 # When given -MP, icc 7.0 and 7.1 complain thusly:
5181 # icc: Command line warning: ignoring option '-M'; no argument required
5182 # The diagnosis changed in icc 8.0:
5183 # icc: Command line remark: option '-MP' not supported
5184 if (grep 'ignoring option' conftest.err ||
5185 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5186 am_cv_CC_dependencies_compiler_type=$depmode
5187 break
5188 fi
5189 fi
5190 done
5192 cd ..
5193 rm -rf conftest.dir
5194 else
5195 am_cv_CC_dependencies_compiler_type=none
5196 fi
5198 fi
5199 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5200 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5201 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5205 if
5206 test "x$enable_dependency_tracking" != xno \
5207 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5208 am__fastdepCC_TRUE=
5209 am__fastdepCC_FALSE='#'
5210 else
5211 am__fastdepCC_TRUE='#'
5212 am__fastdepCC_FALSE=
5213 fi
5217 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5219 # By default we simply use the C compiler to build assembly code.
5221 test "${CCAS+set}" = set || CCAS=$CC
5222 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5226 ac_ext=c
5227 ac_cpp='$CPP $CPPFLAGS'
5228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5231 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5232 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5233 # On Suns, sometimes $CPP names a directory.
5234 if test -n "$CPP" && test -d "$CPP"; then
5235 CPP=
5236 fi
5237 if test -z "$CPP"; then
5238 if test "${ac_cv_prog_CPP+set}" = set; then
5239 $as_echo_n "(cached) " >&6
5240 else
5241 # Double quotes because CPP needs to be expanded
5242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5243 do
5244 ac_preproc_ok=false
5245 for ac_c_preproc_warn_flag in '' yes
5246 do
5247 # Use a header file that comes with gcc, so configuring glibc
5248 # with a fresh cross-compiler works.
5249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250 # <limits.h> exists even on freestanding compilers.
5251 # On the NeXT, cc -E runs the code through the compiler's parser,
5252 # not just through cpp. "Syntax error" is here to catch this case.
5253 cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h. */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 #ifdef __STDC__
5260 # include <limits.h>
5261 #else
5262 # include <assert.h>
5263 #endif
5264 Syntax error
5265 _ACEOF
5266 if { (ac_try="$ac_cpp conftest.$ac_ext"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272 $as_echo "$ac_try_echo") >&5
5273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } >/dev/null && {
5280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 }; then
5283 :
5284 else
5285 $as_echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 # Broken: fails on valid input.
5289 continue
5290 fi
5292 rm -f conftest.err conftest.$ac_ext
5294 # OK, works on sane cases. Now check whether nonexistent headers
5295 # can be detected and how.
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <ac_nonexistent.h>
5303 _ACEOF
5304 if { (ac_try="$ac_cpp conftest.$ac_ext"
5305 case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308 esac
5309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5310 $as_echo "$ac_try_echo") >&5
5311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } >/dev/null && {
5318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 }; then
5321 # Broken: success on invalid input.
5322 continue
5323 else
5324 $as_echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 # Passes both tests.
5328 ac_preproc_ok=:
5329 break
5330 fi
5332 rm -f conftest.err conftest.$ac_ext
5334 done
5335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5336 rm -f conftest.err conftest.$ac_ext
5337 if $ac_preproc_ok; then
5338 break
5339 fi
5341 done
5342 ac_cv_prog_CPP=$CPP
5344 fi
5345 CPP=$ac_cv_prog_CPP
5346 else
5347 ac_cv_prog_CPP=$CPP
5348 fi
5349 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5350 $as_echo "$CPP" >&6; }
5351 ac_preproc_ok=false
5352 for ac_c_preproc_warn_flag in '' yes
5353 do
5354 # Use a header file that comes with gcc, so configuring glibc
5355 # with a fresh cross-compiler works.
5356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 # <limits.h> exists even on freestanding compilers.
5358 # On the NeXT, cc -E runs the code through the compiler's parser,
5359 # not just through cpp. "Syntax error" is here to catch this case.
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #ifdef __STDC__
5367 # include <limits.h>
5368 #else
5369 # include <assert.h>
5370 #endif
5371 Syntax error
5372 _ACEOF
5373 if { (ac_try="$ac_cpp conftest.$ac_ext"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5379 $as_echo "$ac_try_echo") >&5
5380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } >/dev/null && {
5387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 }; then
5390 :
5391 else
5392 $as_echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 # Broken: fails on valid input.
5396 continue
5397 fi
5399 rm -f conftest.err conftest.$ac_ext
5401 # OK, works on sane cases. Now check whether nonexistent headers
5402 # can be detected and how.
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #include <ac_nonexistent.h>
5410 _ACEOF
5411 if { (ac_try="$ac_cpp conftest.$ac_ext"
5412 case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5417 $as_echo "$ac_try_echo") >&5
5418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null && {
5425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5426 test ! -s conftest.err
5427 }; then
5428 # Broken: success on invalid input.
5429 continue
5430 else
5431 $as_echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 # Passes both tests.
5435 ac_preproc_ok=:
5436 break
5437 fi
5439 rm -f conftest.err conftest.$ac_ext
5441 done
5442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5443 rm -f conftest.err conftest.$ac_ext
5444 if $ac_preproc_ok; then
5445 :
5446 else
5447 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5448 See \`config.log' for more details." >&5
5449 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5450 See \`config.log' for more details." >&2;}
5451 { (exit 1); exit 1; }; }
5452 fi
5454 ac_ext=c
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5462 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5463 if test "${ac_cv_path_GREP+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -z "$GREP"; then
5467 ac_path_GREP_found=false
5468 # Loop through the user's path and test for each of PROGNAME-LIST
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_prog in grep ggrep; do
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5477 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5478 # Check for GNU ac_path_GREP and select it if it is found.
5479 # Check for GNU $ac_path_GREP
5480 case `"$ac_path_GREP" --version 2>&1` in
5481 *GNU*)
5482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5483 *)
5484 ac_count=0
5485 $as_echo_n 0123456789 >"conftest.in"
5486 while :
5487 do
5488 cat "conftest.in" "conftest.in" >"conftest.tmp"
5489 mv "conftest.tmp" "conftest.in"
5490 cp "conftest.in" "conftest.nl"
5491 $as_echo 'GREP' >> "conftest.nl"
5492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5494 ac_count=`expr $ac_count + 1`
5495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5496 # Best one so far, save it but keep looking for a better one
5497 ac_cv_path_GREP="$ac_path_GREP"
5498 ac_path_GREP_max=$ac_count
5499 fi
5500 # 10*(2^10) chars as input seems more than enough
5501 test $ac_count -gt 10 && break
5502 done
5503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 esac
5506 $ac_path_GREP_found && break 3
5507 done
5508 done
5509 done
5510 IFS=$as_save_IFS
5511 if test -z "$ac_cv_path_GREP"; then
5512 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5513 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5514 { (exit 1); exit 1; }; }
5515 fi
5516 else
5517 ac_cv_path_GREP=$GREP
5518 fi
5520 fi
5521 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5522 $as_echo "$ac_cv_path_GREP" >&6; }
5523 GREP="$ac_cv_path_GREP"
5526 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5527 $as_echo_n "checking for egrep... " >&6; }
5528 if test "${ac_cv_path_EGREP+set}" = set; then
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5532 then ac_cv_path_EGREP="$GREP -E"
5533 else
5534 if test -z "$EGREP"; then
5535 ac_path_EGREP_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_prog in egrep; do
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5545 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5546 # Check for GNU ac_path_EGREP and select it if it is found.
5547 # Check for GNU $ac_path_EGREP
5548 case `"$ac_path_EGREP" --version 2>&1` in
5549 *GNU*)
5550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5551 *)
5552 ac_count=0
5553 $as_echo_n 0123456789 >"conftest.in"
5554 while :
5555 do
5556 cat "conftest.in" "conftest.in" >"conftest.tmp"
5557 mv "conftest.tmp" "conftest.in"
5558 cp "conftest.in" "conftest.nl"
5559 $as_echo 'EGREP' >> "conftest.nl"
5560 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562 ac_count=`expr $ac_count + 1`
5563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5564 # Best one so far, save it but keep looking for a better one
5565 ac_cv_path_EGREP="$ac_path_EGREP"
5566 ac_path_EGREP_max=$ac_count
5567 fi
5568 # 10*(2^10) chars as input seems more than enough
5569 test $ac_count -gt 10 && break
5570 done
5571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572 esac
5574 $ac_path_EGREP_found && break 3
5575 done
5576 done
5577 done
5578 IFS=$as_save_IFS
5579 if test -z "$ac_cv_path_EGREP"; then
5580 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5581 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5582 { (exit 1); exit 1; }; }
5583 fi
5584 else
5585 ac_cv_path_EGREP=$EGREP
5586 fi
5588 fi
5589 fi
5590 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5591 $as_echo "$ac_cv_path_EGREP" >&6; }
5592 EGREP="$ac_cv_path_EGREP"
5595 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5596 $as_echo_n "checking for ANSI C header files... " >&6; }
5597 if test "${ac_cv_header_stdc+set}" = set; then
5598 $as_echo_n "(cached) " >&6
5599 else
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #include <stdlib.h>
5607 #include <stdarg.h>
5608 #include <string.h>
5609 #include <float.h>
5611 int
5612 main ()
5613 {
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5626 $as_echo "$ac_try_echo") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_c_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest.$ac_objext; then
5637 ac_cv_header_stdc=yes
5638 else
5639 $as_echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_cv_header_stdc=no
5643 fi
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 if test $ac_cv_header_stdc = yes; then
5648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <string.h>
5657 _ACEOF
5658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "memchr" >/dev/null 2>&1; then
5660 :
5661 else
5662 ac_cv_header_stdc=no
5663 fi
5664 rm -f conftest*
5666 fi
5668 if test $ac_cv_header_stdc = yes; then
5669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <stdlib.h>
5678 _ACEOF
5679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "free" >/dev/null 2>&1; then
5681 :
5682 else
5683 ac_cv_header_stdc=no
5684 fi
5685 rm -f conftest*
5687 fi
5689 if test $ac_cv_header_stdc = yes; then
5690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5691 if test "$cross_compiling" = yes; then
5692 :
5693 else
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 #include <ctype.h>
5701 #include <stdlib.h>
5702 #if ((' ' & 0x0FF) == 0x020)
5703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5705 #else
5706 # define ISLOWER(c) \
5707 (('a' <= (c) && (c) <= 'i') \
5708 || ('j' <= (c) && (c) <= 'r') \
5709 || ('s' <= (c) && (c) <= 'z'))
5710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5711 #endif
5713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5714 int
5715 main ()
5716 {
5717 int i;
5718 for (i = 0; i < 256; i++)
5719 if (XOR (islower (i), ISLOWER (i))
5720 || toupper (i) != TOUPPER (i))
5721 return 2;
5722 return 0;
5723 }
5724 _ACEOF
5725 rm -f conftest$ac_exeext
5726 if { (ac_try="$ac_link"
5727 case "(($ac_try" in
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5730 esac
5731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5732 $as_echo "$ac_try_echo") >&5
5733 (eval "$ac_link") 2>&5
5734 ac_status=$?
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5737 { (case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5742 $as_echo "$ac_try_echo") >&5
5743 (eval "$ac_try") 2>&5
5744 ac_status=$?
5745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 :
5748 else
5749 $as_echo "$as_me: program exited with status $ac_status" >&5
5750 $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 ( exit $ac_status )
5754 ac_cv_header_stdc=no
5755 fi
5756 rm -rf conftest.dSYM
5757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5758 fi
5761 fi
5762 fi
5763 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5764 $as_echo "$ac_cv_header_stdc" >&6; }
5765 if test $ac_cv_header_stdc = yes; then
5767 cat >>confdefs.h <<\_ACEOF
5768 #define STDC_HEADERS 1
5769 _ACEOF
5771 fi
5773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5784 inttypes.h stdint.h unistd.h
5785 do
5786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5788 $as_echo_n "checking for $ac_header... " >&6; }
5789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5790 $as_echo_n "(cached) " >&6
5791 else
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5800 #include <$ac_header>
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5809 $as_echo "$ac_try_echo") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.$ac_objext; then
5820 eval "$as_ac_Header=yes"
5821 else
5822 $as_echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 eval "$as_ac_Header=no"
5826 fi
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 fi
5830 ac_res=`eval 'as_val=${'$as_ac_Header'}
5831 $as_echo "$as_val"'`
5832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5833 $as_echo "$ac_res" >&6; }
5834 if test `eval 'as_val=${'$as_ac_Header'}
5835 $as_echo "$as_val"'` = yes; then
5836 cat >>confdefs.h <<_ACEOF
5837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5838 _ACEOF
5840 fi
5842 done
5845 # The cast to long int works around a bug in the HP C Compiler
5846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5848 # This bug is HP SR number 8606223364.
5849 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5850 $as_echo_n "checking size of void *... " >&6; }
5851 if test "${ac_cv_sizeof_void_p+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test "$cross_compiling" = yes; then
5855 # Depending upon the size, compute the lo and hi bounds.
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 $ac_includes_default
5863 int
5864 main ()
5865 {
5866 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5867 test_array [0] = 0
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 rm -f conftest.$ac_objext
5874 if { (ac_try="$ac_compile"
5875 case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878 esac
5879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880 $as_echo "$ac_try_echo") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5891 ac_lo=0 ac_mid=0
5892 while :; do
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 $ac_includes_default
5900 int
5901 main ()
5902 {
5903 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5904 test_array [0] = 0
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (ac_try="$ac_compile"
5912 case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5917 $as_echo "$ac_try_echo") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest.$ac_objext; then
5928 ac_hi=$ac_mid; break
5929 else
5930 $as_echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 ac_lo=`expr $ac_mid + 1`
5934 if test $ac_lo -le $ac_mid; then
5935 ac_lo= ac_hi=
5936 break
5937 fi
5938 ac_mid=`expr 2 '*' $ac_mid + 1`
5939 fi
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 done
5943 else
5944 $as_echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5954 int
5955 main ()
5956 {
5957 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5958 test_array [0] = 0
5960 ;
5961 return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5966 case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969 esac
5970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5971 $as_echo "$ac_try_echo") >&5
5972 (eval "$ac_compile") 2>conftest.er1
5973 ac_status=$?
5974 grep -v '^ *+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } && {
5979 test -z "$ac_c_werror_flag" ||
5980 test ! -s conftest.err
5981 } && test -s conftest.$ac_objext; then
5982 ac_hi=-1 ac_mid=-1
5983 while :; do
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 $ac_includes_default
5991 int
5992 main ()
5993 {
5994 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
5995 test_array [0] = 0
5997 ;
5998 return 0;
5999 }
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6008 $as_echo "$ac_try_echo") >&5
6009 (eval "$ac_compile") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest.$ac_objext; then
6019 ac_lo=$ac_mid; break
6020 else
6021 $as_echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_hi=`expr '(' $ac_mid ')' - 1`
6025 if test $ac_mid -le $ac_hi; then
6026 ac_lo= ac_hi=
6027 break
6028 fi
6029 ac_mid=`expr 2 '*' $ac_mid`
6030 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 done
6034 else
6035 $as_echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_lo= ac_hi=
6039 fi
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 # Binary search between lo and hi bounds.
6046 while test "x$ac_lo" != "x$ac_hi"; do
6047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6055 int
6056 main ()
6057 {
6058 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6059 test_array [0] = 0
6061 ;
6062 return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6072 $as_echo "$ac_try_echo") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest.$ac_objext; then
6083 ac_hi=$ac_mid
6084 else
6085 $as_echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 ac_lo=`expr '(' $ac_mid ')' + 1`
6089 fi
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 done
6093 case $ac_lo in
6094 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6095 '') if test "$ac_cv_type_void_p" = yes; then
6096 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6097 See \`config.log' for more details." >&5
6098 $as_echo "$as_me: error: cannot compute sizeof (void *)
6099 See \`config.log' for more details." >&2;}
6100 { (exit 77); exit 77; }; }
6101 else
6102 ac_cv_sizeof_void_p=0
6103 fi ;;
6104 esac
6105 else
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 $ac_includes_default
6113 static long int longval () { return (long int) (sizeof (void *)); }
6114 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6115 #include <stdio.h>
6116 #include <stdlib.h>
6117 int
6118 main ()
6119 {
6121 FILE *f = fopen ("conftest.val", "w");
6122 if (! f)
6123 return 1;
6124 if (((long int) (sizeof (void *))) < 0)
6125 {
6126 long int i = longval ();
6127 if (i != ((long int) (sizeof (void *))))
6128 return 1;
6129 fprintf (f, "%ld", i);
6130 }
6131 else
6132 {
6133 unsigned long int i = ulongval ();
6134 if (i != ((long int) (sizeof (void *))))
6135 return 1;
6136 fprintf (f, "%lu", i);
6137 }
6138 /* Do not output a trailing newline, as this causes \r\n confusion
6139 on some platforms. */
6140 return ferror (f) || fclose (f) != 0;
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest$ac_exeext
6147 if { (ac_try="$ac_link"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6153 $as_echo "$ac_try_echo") >&5
6154 (eval "$ac_link") 2>&5
6155 ac_status=$?
6156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6158 { (case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_try") 2>&5
6165 ac_status=$?
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_sizeof_void_p=`cat conftest.val`
6169 else
6170 $as_echo "$as_me: program exited with status $ac_status" >&5
6171 $as_echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 ( exit $ac_status )
6175 if test "$ac_cv_type_void_p" = yes; then
6176 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6177 See \`config.log' for more details." >&5
6178 $as_echo "$as_me: error: cannot compute sizeof (void *)
6179 See \`config.log' for more details." >&2;}
6180 { (exit 77); exit 77; }; }
6181 else
6182 ac_cv_sizeof_void_p=0
6183 fi
6184 fi
6185 rm -rf conftest.dSYM
6186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 rm -f conftest.val
6189 fi
6190 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6191 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6195 cat >>confdefs.h <<_ACEOF
6196 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6197 _ACEOF
6200 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6201 $as_echo_n "checking for ANSI C header files... " >&6; }
6202 if test "${ac_cv_header_stdc+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <stdlib.h>
6212 #include <stdarg.h>
6213 #include <string.h>
6214 #include <float.h>
6216 int
6217 main ()
6218 {
6220 ;
6221 return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (ac_try="$ac_compile"
6226 case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229 esac
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_c_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_objext; then
6242 ac_cv_header_stdc=yes
6243 else
6244 $as_echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_cv_header_stdc=no
6248 fi
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 if test $ac_cv_header_stdc = yes; then
6253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 #include <string.h>
6262 _ACEOF
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 $EGREP "memchr" >/dev/null 2>&1; then
6265 :
6266 else
6267 ac_cv_header_stdc=no
6268 fi
6269 rm -f conftest*
6271 fi
6273 if test $ac_cv_header_stdc = yes; then
6274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <stdlib.h>
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev/null 2>&1; then
6286 :
6287 else
6288 ac_cv_header_stdc=no
6289 fi
6290 rm -f conftest*
6292 fi
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then
6297 :
6298 else
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <ctype.h>
6306 #include <stdlib.h>
6307 #if ((' ' & 0x0FF) == 0x020)
6308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6310 #else
6311 # define ISLOWER(c) \
6312 (('a' <= (c) && (c) <= 'i') \
6313 || ('j' <= (c) && (c) <= 'r') \
6314 || ('s' <= (c) && (c) <= 'z'))
6315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316 #endif
6318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 int
6320 main ()
6321 {
6322 int i;
6323 for (i = 0; i < 256; i++)
6324 if (XOR (islower (i), ISLOWER (i))
6325 || toupper (i) != TOUPPER (i))
6326 return 2;
6327 return 0;
6328 }
6329 _ACEOF
6330 rm -f conftest$ac_exeext
6331 if { (ac_try="$ac_link"
6332 case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335 esac
6336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6337 $as_echo "$ac_try_echo") >&5
6338 (eval "$ac_link") 2>&5
6339 ac_status=$?
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6342 { (case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345 esac
6346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6347 $as_echo "$ac_try_echo") >&5
6348 (eval "$ac_try") 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 :
6353 else
6354 $as_echo "$as_me: program exited with status $ac_status" >&5
6355 $as_echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 ( exit $ac_status )
6359 ac_cv_header_stdc=no
6360 fi
6361 rm -rf conftest.dSYM
6362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6363 fi
6366 fi
6367 fi
6368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6369 $as_echo "$ac_cv_header_stdc" >&6; }
6370 if test $ac_cv_header_stdc = yes; then
6372 cat >>confdefs.h <<\_ACEOF
6373 #define STDC_HEADERS 1
6374 _ACEOF
6376 fi
6378 # Make sure we can run config.sub.
6379 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6380 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6381 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6382 { (exit 1); exit 1; }; }
6384 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6385 $as_echo_n "checking build system type... " >&6; }
6386 if test "${ac_cv_build+set}" = set; then
6387 $as_echo_n "(cached) " >&6
6388 else
6389 ac_build_alias=$build_alias
6390 test "x$ac_build_alias" = x &&
6391 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6392 test "x$ac_build_alias" = x &&
6393 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6394 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6395 { (exit 1); exit 1; }; }
6396 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6397 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6398 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6399 { (exit 1); exit 1; }; }
6401 fi
6402 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6403 $as_echo "$ac_cv_build" >&6; }
6404 case $ac_cv_build in
6405 *-*-*) ;;
6406 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6407 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6408 { (exit 1); exit 1; }; };;
6409 esac
6410 build=$ac_cv_build
6411 ac_save_IFS=$IFS; IFS='-'
6412 set x $ac_cv_build
6413 shift
6414 build_cpu=$1
6415 build_vendor=$2
6416 shift; shift
6417 # Remember, the first character of IFS is used to create $*,
6418 # except with old shells:
6419 build_os=$*
6420 IFS=$ac_save_IFS
6421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6424 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6425 $as_echo_n "checking host system type... " >&6; }
6426 if test "${ac_cv_host+set}" = set; then
6427 $as_echo_n "(cached) " >&6
6428 else
6429 if test "x$host_alias" = x; then
6430 ac_cv_host=$ac_cv_build
6431 else
6432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6433 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6434 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6435 { (exit 1); exit 1; }; }
6436 fi
6438 fi
6439 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6440 $as_echo "$ac_cv_host" >&6; }
6441 case $ac_cv_host in
6442 *-*-*) ;;
6443 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6444 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6445 { (exit 1); exit 1; }; };;
6446 esac
6447 host=$ac_cv_host
6448 ac_save_IFS=$IFS; IFS='-'
6449 set x $ac_cv_host
6450 shift
6451 host_cpu=$1
6452 host_vendor=$2
6453 shift; shift
6454 # Remember, the first character of IFS is used to create $*,
6455 # except with old shells:
6456 host_os=$*
6457 IFS=$ac_save_IFS
6458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6461 # Check whether --enable-trace was given.
6462 if test "${enable_trace+set}" = set; then
6463 enableval=$enable_trace; if test "$enableval" == "yes"; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define ENABLE_TRACE_IO 1
6467 _ACEOF
6469 fi
6470 fi
6472 # Check whether --enable-watch was given.
6473 if test "${enable_watch+set}" = set; then
6474 enableval=$enable_watch; if test "$enableval" == "yes"; then
6476 cat >>confdefs.h <<\_ACEOF
6477 #define ENABLE_WATCH 1
6478 _ACEOF
6480 fi
6481 fi
6483 # Check whether --enable-sh4stats was given.
6484 if test "${enable_sh4stats+set}" = set; then
6485 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6487 cat >>confdefs.h <<\_ACEOF
6488 #define ENABLE_SH4STATS 1
6489 _ACEOF
6491 fi
6492 fi
6495 # Check whether --with-osmesa was given.
6496 if test "${with_osmesa+set}" = set; then
6497 withval=$with_osmesa;
6498 else
6499 with_osmesa=no
6500 fi
6503 # Check whether --with-gtk was given.
6504 if test "${with_gtk+set}" = set; then
6505 withval=$with_gtk; with_gtk=yes
6506 else
6507 with_gtk=x11
6508 fi
6512 lxdream_save_cppflags="$CPPFLAGS"
6513 CPPFLAGS="$CPPFLAGS -x objective-c"
6514 cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h. */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 @interface Foo @end
6521 int
6522 main ()
6523 {
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (ac_try="$ac_compile"
6531 case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536 $as_echo "$ac_try_echo") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6549 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6550 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6551 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6552 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6553 $as_echo_n "(cached) " >&6
6554 fi
6555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6556 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6557 else
6558 # Is the header compilable?
6559 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6560 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6568 #include <Cocoa/Cocoa.h>
6569 _ACEOF
6570 rm -f conftest.$ac_objext
6571 if { (ac_try="$ac_compile"
6572 case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575 esac
6576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6577 $as_echo "$ac_try_echo") >&5
6578 (eval "$ac_compile") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } && {
6585 test -z "$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 } && test -s conftest.$ac_objext; then
6588 ac_header_compiler=yes
6589 else
6590 $as_echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_header_compiler=no
6594 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6598 $as_echo "$ac_header_compiler" >&6; }
6600 # Is the header present?
6601 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6602 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h. */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <Cocoa/Cocoa.h>
6610 _ACEOF
6611 if { (ac_try="$ac_cpp conftest.$ac_ext"
6612 case "(($ac_try" in
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6615 esac
6616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6617 $as_echo "$ac_try_echo") >&5
6618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev/null && {
6625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 }; then
6628 ac_header_preproc=yes
6629 else
6630 $as_echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 ac_header_preproc=no
6634 fi
6636 rm -f conftest.err conftest.$ac_ext
6637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 $as_echo "$ac_header_preproc" >&6; }
6640 # So? What about this header?
6641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6642 yes:no: )
6643 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6644 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6646 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6647 ac_header_preproc=yes
6648 ;;
6649 no:yes:* )
6650 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6651 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6652 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6653 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6654 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6655 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6656 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6657 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6658 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6659 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6660 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6661 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6663 ;;
6664 esac
6665 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6666 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6667 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6668 $as_echo_n "(cached) " >&6
6669 else
6670 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6671 fi
6672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6673 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6675 fi
6676 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6678 HAVE_COCOA='yes'
6679 APPLE_BUILD='yes'
6680 LIBS="$LIBS -framework AppKit"
6681 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_COCOA 1
6685 _ACEOF
6688 cat >>confdefs.h <<\_ACEOF
6689 #define APPLE_BUILD 1
6690 _ACEOF
6693 fi
6697 if test "x$with_gtk" = "xx11"; then
6698 with_gtk=no
6699 fi
6702 else
6703 $as_echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 CPPFLAGS="$lxdream_save_cppflags"
6707 fi
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6713 GUI_COCOA_TRUE=
6714 GUI_COCOA_FALSE='#'
6715 else
6716 GUI_COCOA_TRUE='#'
6717 GUI_COCOA_FALSE=
6718 fi
6723 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6730 $as_echo_n "(cached) " >&6
6731 else
6732 case $PKG_CONFIG in
6733 [\\/]* | ?:[\\/]*)
6734 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6735 ;;
6736 *)
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6752 ;;
6753 esac
6754 fi
6755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6756 if test -n "$PKG_CONFIG"; then
6757 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6758 $as_echo "$PKG_CONFIG" >&6; }
6759 else
6760 { $as_echo "$as_me:$LINENO: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6765 fi
6766 if test -z "$ac_cv_path_PKG_CONFIG"; then
6767 ac_pt_PKG_CONFIG=$PKG_CONFIG
6768 # Extract the first word of "pkg-config", so it can be a program name with args.
6769 set dummy pkg-config; ac_word=$2
6770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6773 $as_echo_n "(cached) " >&6
6774 else
6775 case $ac_pt_PKG_CONFIG in
6776 [\\/]* | ?:[\\/]*)
6777 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6778 ;;
6779 *)
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6795 ;;
6796 esac
6797 fi
6798 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6799 if test -n "$ac_pt_PKG_CONFIG"; then
6800 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6801 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6802 else
6803 { $as_echo "$as_me:$LINENO: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6807 if test "x$ac_pt_PKG_CONFIG" = x; then
6808 PKG_CONFIG=""
6809 else
6810 case $cross_compiling:$ac_tool_warned in
6811 yes:)
6812 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6813 whose name does not start with the host triplet. If you think this
6814 configuration is useful to you, please write to autoconf@gnu.org." >&5
6815 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6816 whose name does not start with the host triplet. If you think this
6817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6818 ac_tool_warned=yes ;;
6819 esac
6820 PKG_CONFIG=$ac_pt_PKG_CONFIG
6821 fi
6822 else
6823 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6824 fi
6826 fi
6827 if test -n "$PKG_CONFIG"; then
6828 _pkg_min_version=0.9.0
6829 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6830 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6831 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6832 { $as_echo "$as_me:$LINENO: result: yes" >&5
6833 $as_echo "yes" >&6; }
6834 else
6835 { $as_echo "$as_me:$LINENO: result: no" >&5
6836 $as_echo "no" >&6; }
6837 PKG_CONFIG=""
6838 fi
6840 fi
6842 pkg_failed=no
6843 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
6844 $as_echo_n "checking for LIBPNG... " >&6; }
6846 if test -n "$PKG_CONFIG"; then
6847 if test -n "$LIBPNG_CFLAGS"; then
6848 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6849 else
6850 if test -n "$PKG_CONFIG" && \
6851 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6852 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; then
6856 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6857 else
6858 pkg_failed=yes
6859 fi
6860 fi
6861 else
6862 pkg_failed=untried
6863 fi
6864 if test -n "$PKG_CONFIG"; then
6865 if test -n "$LIBPNG_LIBS"; then
6866 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6867 else
6868 if test -n "$PKG_CONFIG" && \
6869 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6870 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; then
6874 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6875 else
6876 pkg_failed=yes
6877 fi
6878 fi
6879 else
6880 pkg_failed=untried
6881 fi
6885 if test $pkg_failed = yes; then
6887 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6888 _pkg_short_errors_supported=yes
6889 else
6890 _pkg_short_errors_supported=no
6891 fi
6892 if test $_pkg_short_errors_supported = yes; then
6893 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6894 else
6895 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6896 fi
6897 # Put the nasty error message in config.log where it belongs
6898 echo "$LIBPNG_PKG_ERRORS" >&5
6900 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6902 $LIBPNG_PKG_ERRORS
6904 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6905 installed software in a non-standard prefix.
6907 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6908 and LIBPNG_LIBS to avoid the need to call pkg-config.
6909 See the pkg-config man page for more details.
6910 " >&5
6911 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
6913 $LIBPNG_PKG_ERRORS
6915 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6916 installed software in a non-standard prefix.
6918 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6919 and LIBPNG_LIBS to avoid the need to call pkg-config.
6920 See the pkg-config man page for more details.
6921 " >&2;}
6922 { (exit 1); exit 1; }; }
6923 elif test $pkg_failed = untried; then
6924 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6925 is in your PATH or set the PKG_CONFIG environment variable to the full
6926 path to pkg-config.
6928 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6929 and LIBPNG_LIBS to avoid the need to call pkg-config.
6930 See the pkg-config man page for more details.
6932 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6933 See \`config.log' for more details." >&5
6934 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6935 is in your PATH or set the PKG_CONFIG environment variable to the full
6936 path to pkg-config.
6938 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6939 and LIBPNG_LIBS to avoid the need to call pkg-config.
6940 See the pkg-config man page for more details.
6942 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6943 See \`config.log' for more details." >&2;}
6944 { (exit 1); exit 1; }; }
6945 else
6946 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
6947 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
6948 { $as_echo "$as_me:$LINENO: result: yes" >&5
6949 $as_echo "yes" >&6; }
6950 :
6951 fi
6954 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
6955 $as_echo_n "checking for uncompress in -lz... " >&6; }
6956 if test "${ac_cv_lib_z_uncompress+set}" = set; then
6957 $as_echo_n "(cached) " >&6
6958 else
6959 ac_check_lib_save_LIBS=$LIBS
6960 LIBS="-lz $LIBS"
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6968 /* Override any GCC internal prototype to avoid an error.
6969 Use char because int might match the return type of a GCC
6970 builtin and then its argument prototype would still apply. */
6971 #ifdef __cplusplus
6972 extern "C"
6973 #endif
6974 char uncompress ();
6975 int
6976 main ()
6977 {
6978 return uncompress ();
6979 ;
6980 return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext conftest$ac_exeext
6984 if { (ac_try="$ac_link"
6985 case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988 esac
6989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6990 $as_echo "$ac_try_echo") >&5
6991 (eval "$ac_link") 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest$ac_exeext && {
7001 test "$cross_compiling" = yes ||
7002 $as_test_x conftest$ac_exeext
7003 }; then
7004 ac_cv_lib_z_uncompress=yes
7005 else
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_lib_z_uncompress=no
7010 fi
7012 rm -rf conftest.dSYM
7013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7014 conftest$ac_exeext conftest.$ac_ext
7015 LIBS=$ac_check_lib_save_LIBS
7016 fi
7017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7018 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7019 if test $ac_cv_lib_z_uncompress = yes; then
7020 cat >>confdefs.h <<_ACEOF
7021 #define HAVE_LIBZ 1
7022 _ACEOF
7024 LIBS="-lz $LIBS"
7026 else
7028 echo "Zlib (libz.so) could not be found, but is required."
7029 exit 1
7030 fi
7033 if test "x$with_gtk" = "xno"; then
7035 pkg_failed=no
7036 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7037 $as_echo_n "checking for GLIB... " >&6; }
7039 if test -n "$PKG_CONFIG"; then
7040 if test -n "$GLIB_CFLAGS"; then
7041 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7042 else
7043 if test -n "$PKG_CONFIG" && \
7044 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7045 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; then
7049 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7050 else
7051 pkg_failed=yes
7052 fi
7053 fi
7054 else
7055 pkg_failed=untried
7056 fi
7057 if test -n "$PKG_CONFIG"; then
7058 if test -n "$GLIB_LIBS"; then
7059 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7060 else
7061 if test -n "$PKG_CONFIG" && \
7062 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7063 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7064 ac_status=$?
7065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; then
7067 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7068 else
7069 pkg_failed=yes
7070 fi
7071 fi
7072 else
7073 pkg_failed=untried
7074 fi
7078 if test $pkg_failed = yes; then
7080 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7081 _pkg_short_errors_supported=yes
7082 else
7083 _pkg_short_errors_supported=no
7084 fi
7085 if test $_pkg_short_errors_supported = yes; then
7086 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7087 else
7088 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7089 fi
7090 # Put the nasty error message in config.log where it belongs
7091 echo "$GLIB_PKG_ERRORS" >&5
7093 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7095 $GLIB_PKG_ERRORS
7097 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7098 installed software in a non-standard prefix.
7100 Alternatively, you may set the environment variables GLIB_CFLAGS
7101 and GLIB_LIBS to avoid the need to call pkg-config.
7102 See the pkg-config man page for more details.
7103 " >&5
7104 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7106 $GLIB_PKG_ERRORS
7108 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7109 installed software in a non-standard prefix.
7111 Alternatively, you may set the environment variables GLIB_CFLAGS
7112 and GLIB_LIBS to avoid the need to call pkg-config.
7113 See the pkg-config man page for more details.
7114 " >&2;}
7115 { (exit 1); exit 1; }; }
7116 elif test $pkg_failed = untried; then
7117 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7118 is in your PATH or set the PKG_CONFIG environment variable to the full
7119 path to pkg-config.
7121 Alternatively, you may set the environment variables GLIB_CFLAGS
7122 and GLIB_LIBS to avoid the need to call pkg-config.
7123 See the pkg-config man page for more details.
7125 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7126 See \`config.log' for more details." >&5
7127 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7128 is in your PATH or set the PKG_CONFIG environment variable to the full
7129 path to pkg-config.
7131 Alternatively, you may set the environment variables GLIB_CFLAGS
7132 and GLIB_LIBS to avoid the need to call pkg-config.
7133 See the pkg-config man page for more details.
7135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7136 See \`config.log' for more details." >&2;}
7137 { (exit 1); exit 1; }; }
7138 else
7139 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7140 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7141 { $as_echo "$as_me:$LINENO: result: yes" >&5
7142 $as_echo "yes" >&6; }
7143 :
7144 fi
7145 else
7147 pkg_failed=no
7148 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7149 $as_echo_n "checking for GTK... " >&6; }
7151 if test -n "$PKG_CONFIG"; then
7152 if test -n "$GTK_CFLAGS"; then
7153 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7154 else
7155 if test -n "$PKG_CONFIG" && \
7156 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7157 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7158 ac_status=$?
7159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; then
7161 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7162 else
7163 pkg_failed=yes
7164 fi
7165 fi
7166 else
7167 pkg_failed=untried
7168 fi
7169 if test -n "$PKG_CONFIG"; then
7170 if test -n "$GTK_LIBS"; then
7171 pkg_cv_GTK_LIBS="$GTK_LIBS"
7172 else
7173 if test -n "$PKG_CONFIG" && \
7174 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7175 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7176 ac_status=$?
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; then
7179 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7180 else
7181 pkg_failed=yes
7182 fi
7183 fi
7184 else
7185 pkg_failed=untried
7186 fi
7190 if test $pkg_failed = yes; then
7192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7193 _pkg_short_errors_supported=yes
7194 else
7195 _pkg_short_errors_supported=no
7196 fi
7197 if test $_pkg_short_errors_supported = yes; then
7198 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7199 else
7200 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7201 fi
7202 # Put the nasty error message in config.log where it belongs
7203 echo "$GTK_PKG_ERRORS" >&5
7205 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7207 $GTK_PKG_ERRORS
7209 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7210 installed software in a non-standard prefix.
7212 Alternatively, you may set the environment variables GTK_CFLAGS
7213 and GTK_LIBS to avoid the need to call pkg-config.
7214 See the pkg-config man page for more details.
7215 " >&5
7216 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7218 $GTK_PKG_ERRORS
7220 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7221 installed software in a non-standard prefix.
7223 Alternatively, you may set the environment variables GTK_CFLAGS
7224 and GTK_LIBS to avoid the need to call pkg-config.
7225 See the pkg-config man page for more details.
7226 " >&2;}
7227 { (exit 1); exit 1; }; }
7228 elif test $pkg_failed = untried; then
7229 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7230 is in your PATH or set the PKG_CONFIG environment variable to the full
7231 path to pkg-config.
7233 Alternatively, you may set the environment variables GTK_CFLAGS
7234 and GTK_LIBS to avoid the need to call pkg-config.
7235 See the pkg-config man page for more details.
7237 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7238 See \`config.log' for more details." >&5
7239 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7240 is in your PATH or set the PKG_CONFIG environment variable to the full
7241 path to pkg-config.
7243 Alternatively, you may set the environment variables GTK_CFLAGS
7244 and GTK_LIBS to avoid the need to call pkg-config.
7245 See the pkg-config man page for more details.
7247 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7248 See \`config.log' for more details." >&2;}
7249 { (exit 1); exit 1; }; }
7250 else
7251 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7252 GTK_LIBS=$pkg_cv_GTK_LIBS
7253 { $as_echo "$as_me:$LINENO: result: yes" >&5
7254 $as_echo "yes" >&6; }
7256 HAVE_GTK='yes'
7258 cat >>confdefs.h <<\_ACEOF
7259 #define HAVE_GTK 1
7260 _ACEOF
7263 fi
7265 LIBS="$LIBS $GTK_LIBS"
7266 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7267 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7268 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7269 $as_echo_n "(cached) " >&6
7270 else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7279 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7281 /* System header to define __stub macros and hopefully few prototypes,
7282 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7284 <limits.h> exists even on freestanding compilers. */
7286 #ifdef __STDC__
7287 # include <limits.h>
7288 #else
7289 # include <assert.h>
7290 #endif
7292 #undef gdk_x11_display_get_xdisplay
7294 /* Override any GCC internal prototype to avoid an error.
7295 Use char because int might match the return type of a GCC
7296 builtin and then its argument prototype would still apply. */
7297 #ifdef __cplusplus
7298 extern "C"
7299 #endif
7300 char gdk_x11_display_get_xdisplay ();
7301 /* The GNU C library defines this for functions which it implements
7302 to always fail with ENOSYS. Some functions are actually named
7303 something starting with __ and the normal name is an alias. */
7304 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7305 choke me
7306 #endif
7308 int
7309 main ()
7310 {
7311 return gdk_x11_display_get_xdisplay ();
7312 ;
7313 return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7323 $as_echo "$ac_try_echo") >&5
7324 (eval "$ac_link") 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest$ac_exeext && {
7334 test "$cross_compiling" = yes ||
7335 $as_test_x conftest$ac_exeext
7336 }; then
7337 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7338 else
7339 $as_echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 ac_cv_func_gdk_x11_display_get_xdisplay=no
7343 fi
7345 rm -rf conftest.dSYM
7346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7347 conftest$ac_exeext conftest.$ac_ext
7348 fi
7349 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7350 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7351 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7353 HAVE_GTK_X11='yes'
7355 cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_GTK_X11 1
7357 _ACEOF
7359 fi
7361 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7362 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7363 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7364 $as_echo_n "(cached) " >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7374 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7376 /* System header to define __stub macros and hopefully few prototypes,
7377 which can conflict with char gdk_quartz_window_get_nsview (); below.
7378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7379 <limits.h> exists even on freestanding compilers. */
7381 #ifdef __STDC__
7382 # include <limits.h>
7383 #else
7384 # include <assert.h>
7385 #endif
7387 #undef gdk_quartz_window_get_nsview
7389 /* Override any GCC internal prototype to avoid an error.
7390 Use char because int might match the return type of a GCC
7391 builtin and then its argument prototype would still apply. */
7392 #ifdef __cplusplus
7393 extern "C"
7394 #endif
7395 char gdk_quartz_window_get_nsview ();
7396 /* The GNU C library defines this for functions which it implements
7397 to always fail with ENOSYS. Some functions are actually named
7398 something starting with __ and the normal name is an alias. */
7399 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7400 choke me
7401 #endif
7403 int
7404 main ()
7405 {
7406 return gdk_quartz_window_get_nsview ();
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext conftest$ac_exeext
7412 if { (ac_try="$ac_link"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7418 $as_echo "$ac_try_echo") >&5
7419 (eval "$ac_link") 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest$ac_exeext && {
7429 test "$cross_compiling" = yes ||
7430 $as_test_x conftest$ac_exeext
7431 }; then
7432 ac_cv_func_gdk_quartz_window_get_nsview=yes
7433 else
7434 $as_echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7437 ac_cv_func_gdk_quartz_window_get_nsview=no
7438 fi
7440 rm -rf conftest.dSYM
7441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7442 conftest$ac_exeext conftest.$ac_ext
7443 fi
7444 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7445 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7446 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7448 HAVE_GTK_OSX='yes'
7450 cat >>confdefs.h <<\_ACEOF
7451 #define HAVE_GTK_OSX 1
7452 _ACEOF
7454 fi
7456 fi
7460 if test "$HAVE_GTK" = 'yes'; then
7461 GUI_GTK_TRUE=
7462 GUI_GTK_FALSE='#'
7463 else
7464 GUI_GTK_TRUE='#'
7465 GUI_GTK_FALSE=
7466 fi
7469 if test "x$with_osmesa" != xno; then
7473 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7474 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7475 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7477 else
7478 ac_check_lib_save_LIBS=$LIBS
7479 LIBS="-lOSMesa $LIBS"
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7487 /* Override any GCC internal prototype to avoid an error.
7488 Use char because int might match the return type of a GCC
7489 builtin and then its argument prototype would still apply. */
7490 #ifdef __cplusplus
7491 extern "C"
7492 #endif
7493 char OSMesaCreateContext ();
7494 int
7495 main ()
7496 {
7497 return OSMesaCreateContext ();
7498 ;
7499 return 0;
7500 }
7501 _ACEOF
7502 rm -f conftest.$ac_objext conftest$ac_exeext
7503 if { (ac_try="$ac_link"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7509 $as_echo "$ac_try_echo") >&5
7510 (eval "$ac_link") 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest$ac_exeext && {
7520 test "$cross_compiling" = yes ||
7521 $as_test_x conftest$ac_exeext
7522 }; then
7523 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7524 else
7525 $as_echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7529 fi
7531 rm -rf conftest.dSYM
7532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7533 conftest$ac_exeext conftest.$ac_ext
7534 LIBS=$ac_check_lib_save_LIBS
7535 fi
7536 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7537 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7538 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7539 cat >>confdefs.h <<_ACEOF
7540 #define HAVE_LIBOSMESA 1
7541 _ACEOF
7543 LIBS="-lOSMesa $LIBS"
7545 else
7546 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7547 See \`config.log' for more details." >&5
7548 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7549 See \`config.log' for more details." >&2;}
7550 { (exit 1); exit 1; }; }
7551 fi
7553 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7554 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7555 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7556 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7557 $as_echo_n "(cached) " >&6
7558 fi
7559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7560 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7561 else
7562 # Is the header compilable?
7563 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7564 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 $ac_includes_default
7572 #include <GL/osmesa.h>
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7581 $as_echo "$ac_try_echo") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
7592 ac_header_compiler=yes
7593 else
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_header_compiler=no
7598 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7602 $as_echo "$ac_header_compiler" >&6; }
7604 # Is the header present?
7605 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7606 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 #include <GL/osmesa.h>
7614 _ACEOF
7615 if { (ac_try="$ac_cpp conftest.$ac_ext"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } >/dev/null && {
7629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 }; then
7632 ac_header_preproc=yes
7633 else
7634 $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_header_preproc=no
7638 fi
7640 rm -f conftest.err conftest.$ac_ext
7641 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7642 $as_echo "$ac_header_preproc" >&6; }
7644 # So? What about this header?
7645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7646 yes:no: )
7647 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7648 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7649 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7650 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7651 ac_header_preproc=yes
7652 ;;
7653 no:yes:* )
7654 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7655 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7656 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7657 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7658 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7659 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7660 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7661 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7662 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7663 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7664 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7665 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7667 ;;
7668 esac
7669 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7670 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7671 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7672 $as_echo_n "(cached) " >&6
7673 else
7674 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7675 fi
7676 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7677 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7679 fi
7680 if test $ac_cv_header_GL_osmesa_h = yes; then
7681 :
7682 else
7683 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7684 See \`config.log' for more details." >&5
7685 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7686 See \`config.log' for more details." >&2;}
7687 { (exit 1); exit 1; }; }
7688 fi
7691 HAVE_OSMESA='yes'
7693 cat >>confdefs.h <<\_ACEOF
7694 #define HAVE_OSMESA 1
7695 _ACEOF
7697 else
7700 if test "x$APPLE_BUILD" != 'xyes'; then
7702 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7703 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7704 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7705 $as_echo_n "(cached) " >&6
7706 else
7707 ac_check_lib_save_LIBS=$LIBS
7708 LIBS="-lGL $LIBS"
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7716 /* Override any GCC internal prototype to avoid an error.
7717 Use char because int might match the return type of a GCC
7718 builtin and then its argument prototype would still apply. */
7719 #ifdef __cplusplus
7720 extern "C"
7721 #endif
7722 char glVertex3f ();
7723 int
7724 main ()
7725 {
7726 return glVertex3f ();
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7738 $as_echo "$ac_try_echo") >&5
7739 (eval "$ac_link") 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } && {
7746 test -z "$ac_c_werror_flag" ||
7747 test ! -s conftest.err
7748 } && test -s conftest$ac_exeext && {
7749 test "$cross_compiling" = yes ||
7750 $as_test_x conftest$ac_exeext
7751 }; then
7752 ac_cv_lib_GL_glVertex3f=yes
7753 else
7754 $as_echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_lib_GL_glVertex3f=no
7758 fi
7760 rm -rf conftest.dSYM
7761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7762 conftest$ac_exeext conftest.$ac_ext
7763 LIBS=$ac_check_lib_save_LIBS
7764 fi
7765 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7766 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7767 if test $ac_cv_lib_GL_glVertex3f = yes; then
7768 cat >>confdefs.h <<_ACEOF
7769 #define HAVE_LIBGL 1
7770 _ACEOF
7772 LIBS="-lGL $LIBS"
7774 else
7776 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7777 See \`config.log' for more details." >&5
7778 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7779 See \`config.log' for more details." >&2;}
7780 { (exit 1); exit 1; }; }
7781 fi
7783 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7784 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7785 $as_echo_n "checking for GL/gl.h... " >&6; }
7786 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7787 $as_echo_n "(cached) " >&6
7788 fi
7789 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7790 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7791 else
7792 # Is the header compilable?
7793 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7794 $as_echo_n "checking GL/gl.h usability... " >&6; }
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h. */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7802 #include <GL/gl.h>
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (ac_try="$ac_compile"
7806 case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809 esac
7810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7811 $as_echo "$ac_try_echo") >&5
7812 (eval "$ac_compile") 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && {
7819 test -z "$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 } && test -s conftest.$ac_objext; then
7822 ac_header_compiler=yes
7823 else
7824 $as_echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_header_compiler=no
7828 fi
7830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7832 $as_echo "$ac_header_compiler" >&6; }
7834 # Is the header present?
7835 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7836 $as_echo_n "checking GL/gl.h presence... " >&6; }
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 #include <GL/gl.h>
7844 _ACEOF
7845 if { (ac_try="$ac_cpp conftest.$ac_ext"
7846 case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851 $as_echo "$ac_try_echo") >&5
7852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } >/dev/null && {
7859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 }; then
7862 ac_header_preproc=yes
7863 else
7864 $as_echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 ac_header_preproc=no
7868 fi
7870 rm -f conftest.err conftest.$ac_ext
7871 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7872 $as_echo "$ac_header_preproc" >&6; }
7874 # So? What about this header?
7875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7876 yes:no: )
7877 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7878 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
7880 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
7881 ac_header_preproc=yes
7882 ;;
7883 no:yes:* )
7884 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
7885 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
7887 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
7889 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
7891 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7892 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
7893 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
7894 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
7895 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
7897 ;;
7898 esac
7899 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7900 $as_echo_n "checking for GL/gl.h... " >&6; }
7901 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7902 $as_echo_n "(cached) " >&6
7903 else
7904 ac_cv_header_GL_gl_h=$ac_header_preproc
7905 fi
7906 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7907 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7909 fi
7910 if test $ac_cv_header_GL_gl_h = yes; then
7911 :
7912 else
7914 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7915 See \`config.log' for more details." >&5
7916 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7917 See \`config.log' for more details." >&2;}
7918 { (exit 1); exit 1; }; }
7919 fi
7922 else
7923 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
7924 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
7925 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
7926 $as_echo_n "(cached) " >&6
7927 else
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
7935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7936 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
7938 /* System header to define __stub macros and hopefully few prototypes,
7939 which can conflict with char NSOpenGLGetVersion (); below.
7940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7941 <limits.h> exists even on freestanding compilers. */
7943 #ifdef __STDC__
7944 # include <limits.h>
7945 #else
7946 # include <assert.h>
7947 #endif
7949 #undef NSOpenGLGetVersion
7951 /* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7954 #ifdef __cplusplus
7955 extern "C"
7956 #endif
7957 char NSOpenGLGetVersion ();
7958 /* The GNU C library defines this for functions which it implements
7959 to always fail with ENOSYS. Some functions are actually named
7960 something starting with __ and the normal name is an alias. */
7961 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
7962 choke me
7963 #endif
7965 int
7966 main ()
7967 {
7968 return NSOpenGLGetVersion ();
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_link") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest$ac_exeext && {
7991 test "$cross_compiling" = yes ||
7992 $as_test_x conftest$ac_exeext
7993 }; then
7994 ac_cv_func_NSOpenGLGetVersion=yes
7995 else
7996 $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 ac_cv_func_NSOpenGLGetVersion=no
8000 fi
8002 rm -rf conftest.dSYM
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004 conftest$ac_exeext conftest.$ac_ext
8005 fi
8006 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8007 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8008 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8010 HAVE_NSGL='yes'
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_NSGL 1
8014 _ACEOF
8016 fi
8018 fi
8020 if test "x$HAVE_GTK_X11" = "xyes"; then
8021 if test "x$APPLE_BUILD" = "xyes"; then
8022 LIBS="$LIBS -L/usr/X11/lib -lGL"
8023 fi
8024 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8025 $as_echo_n "checking for glXQueryVersion... " >&6; }
8026 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8027 $as_echo_n "(cached) " >&6
8028 else
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8037 #define glXQueryVersion innocuous_glXQueryVersion
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char glXQueryVersion (); below.
8041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8042 <limits.h> exists even on freestanding compilers. */
8044 #ifdef __STDC__
8045 # include <limits.h>
8046 #else
8047 # include <assert.h>
8048 #endif
8050 #undef glXQueryVersion
8052 /* Override any GCC internal prototype to avoid an error.
8053 Use char because int might match the return type of a GCC
8054 builtin and then its argument prototype would still apply. */
8055 #ifdef __cplusplus
8056 extern "C"
8057 #endif
8058 char glXQueryVersion ();
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8063 choke me
8064 #endif
8066 int
8067 main ()
8068 {
8069 return glXQueryVersion ();
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (ac_try="$ac_link"
8076 case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8079 esac
8080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8081 $as_echo "$ac_try_echo") >&5
8082 (eval "$ac_link") 2>conftest.er1
8083 ac_status=$?
8084 grep -v '^ *+' conftest.er1 >conftest.err
8085 rm -f conftest.er1
8086 cat conftest.err >&5
8087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest$ac_exeext && {
8092 test "$cross_compiling" = yes ||
8093 $as_test_x conftest$ac_exeext
8094 }; then
8095 ac_cv_func_glXQueryVersion=yes
8096 else
8097 $as_echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 ac_cv_func_glXQueryVersion=no
8101 fi
8103 rm -rf conftest.dSYM
8104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8105 conftest$ac_exeext conftest.$ac_ext
8106 fi
8107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8108 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8109 if test $ac_cv_func_glXQueryVersion = yes; then
8111 HAVE_GLX='yes'
8113 cat >>confdefs.h <<\_ACEOF
8114 #define HAVE_GLX 1
8115 _ACEOF
8117 fi
8119 fi
8122 fi
8126 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
8127 echo "Warning: Building with no video support"
8128 fi
8132 if test "x$HAVE_OSMESA" = "xyes"; then
8133 VIDEO_OSMESA_TRUE=
8134 VIDEO_OSMESA_FALSE='#'
8135 else
8136 VIDEO_OSMESA_TRUE='#'
8137 VIDEO_OSMESA_FALSE=
8138 fi
8142 if test "x$HAVE_GLX" = "xyes"; then
8143 VIDEO_GLX_TRUE=
8144 VIDEO_GLX_FALSE='#'
8145 else
8146 VIDEO_GLX_TRUE='#'
8147 VIDEO_GLX_FALSE=
8148 fi
8152 if test "x$HAVE_NSGL" = "xyes"; then
8153 VIDEO_NSGL_TRUE=
8154 VIDEO_NSGL_FALSE='#'
8155 else
8156 VIDEO_NSGL_TRUE='#'
8157 VIDEO_NSGL_FALSE=
8158 fi
8161 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8162 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8163 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8174 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8176 /* System header to define __stub macros and hopefully few prototypes,
8177 which can conflict with char glGenFramebuffersEXT (); below.
8178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8179 <limits.h> exists even on freestanding compilers. */
8181 #ifdef __STDC__
8182 # include <limits.h>
8183 #else
8184 # include <assert.h>
8185 #endif
8187 #undef glGenFramebuffersEXT
8189 /* Override any GCC internal prototype to avoid an error.
8190 Use char because int might match the return type of a GCC
8191 builtin and then its argument prototype would still apply. */
8192 #ifdef __cplusplus
8193 extern "C"
8194 #endif
8195 char glGenFramebuffersEXT ();
8196 /* The GNU C library defines this for functions which it implements
8197 to always fail with ENOSYS. Some functions are actually named
8198 something starting with __ and the normal name is an alias. */
8199 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8200 choke me
8201 #endif
8203 int
8204 main ()
8205 {
8206 return glGenFramebuffersEXT ();
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (ac_try="$ac_link"
8213 case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216 esac
8217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_link") 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest$ac_exeext && {
8229 test "$cross_compiling" = yes ||
8230 $as_test_x conftest$ac_exeext
8231 }; then
8232 ac_cv_func_glGenFramebuffersEXT=yes
8233 else
8234 $as_echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 ac_cv_func_glGenFramebuffersEXT=no
8238 fi
8240 rm -rf conftest.dSYM
8241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8242 conftest$ac_exeext conftest.$ac_ext
8243 fi
8244 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8245 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8246 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_OPENGL_FBO 1
8250 _ACEOF
8252 fi
8254 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8255 $as_echo_n "checking for glCreateShader... " >&6; }
8256 if test "${ac_cv_func_glCreateShader+set}" = set; then
8257 $as_echo_n "(cached) " >&6
8258 else
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8267 #define glCreateShader innocuous_glCreateShader
8269 /* System header to define __stub macros and hopefully few prototypes,
8270 which can conflict with char glCreateShader (); below.
8271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8272 <limits.h> exists even on freestanding compilers. */
8274 #ifdef __STDC__
8275 # include <limits.h>
8276 #else
8277 # include <assert.h>
8278 #endif
8280 #undef glCreateShader
8282 /* Override any GCC internal prototype to avoid an error.
8283 Use char because int might match the return type of a GCC
8284 builtin and then its argument prototype would still apply. */
8285 #ifdef __cplusplus
8286 extern "C"
8287 #endif
8288 char glCreateShader ();
8289 /* The GNU C library defines this for functions which it implements
8290 to always fail with ENOSYS. Some functions are actually named
8291 something starting with __ and the normal name is an alias. */
8292 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8293 choke me
8294 #endif
8296 int
8297 main ()
8298 {
8299 return glCreateShader ();
8300 ;
8301 return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (ac_try="$ac_link"
8306 case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309 esac
8310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8311 $as_echo "$ac_try_echo") >&5
8312 (eval "$ac_link") 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest$ac_exeext && {
8322 test "$cross_compiling" = yes ||
8323 $as_test_x conftest$ac_exeext
8324 }; then
8325 ac_cv_func_glCreateShader=yes
8326 else
8327 $as_echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 ac_cv_func_glCreateShader=no
8331 fi
8333 rm -rf conftest.dSYM
8334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8335 conftest$ac_exeext conftest.$ac_ext
8336 fi
8337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8338 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8339 if test $ac_cv_func_glCreateShader = yes; then
8341 cat >>confdefs.h <<\_ACEOF
8342 #define HAVE_OPENGL_SHADER 1
8343 _ACEOF
8345 fi
8347 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8348 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8349 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8350 $as_echo_n "(cached) " >&6
8351 else
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8360 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8362 /* System header to define __stub macros and hopefully few prototypes,
8363 which can conflict with char glCreateShaderObjectARB (); below.
8364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8365 <limits.h> exists even on freestanding compilers. */
8367 #ifdef __STDC__
8368 # include <limits.h>
8369 #else
8370 # include <assert.h>
8371 #endif
8373 #undef glCreateShaderObjectARB
8375 /* Override any GCC internal prototype to avoid an error.
8376 Use char because int might match the return type of a GCC
8377 builtin and then its argument prototype would still apply. */
8378 #ifdef __cplusplus
8379 extern "C"
8380 #endif
8381 char glCreateShaderObjectARB ();
8382 /* The GNU C library defines this for functions which it implements
8383 to always fail with ENOSYS. Some functions are actually named
8384 something starting with __ and the normal name is an alias. */
8385 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8386 choke me
8387 #endif
8389 int
8390 main ()
8391 {
8392 return glCreateShaderObjectARB ();
8393 ;
8394 return 0;
8395 }
8396 _ACEOF
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (ac_try="$ac_link"
8399 case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402 esac
8403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8404 $as_echo "$ac_try_echo") >&5
8405 (eval "$ac_link") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest$ac_exeext && {
8415 test "$cross_compiling" = yes ||
8416 $as_test_x conftest$ac_exeext
8417 }; then
8418 ac_cv_func_glCreateShaderObjectARB=yes
8419 else
8420 $as_echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 ac_cv_func_glCreateShaderObjectARB=no
8424 fi
8426 rm -rf conftest.dSYM
8427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8428 conftest$ac_exeext conftest.$ac_ext
8429 fi
8430 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8431 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8432 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8434 cat >>confdefs.h <<\_ACEOF
8435 #define HAVE_OPENGL_SHADER_ARB 1
8436 _ACEOF
8438 fi
8440 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
8441 $as_echo_n "checking for glClampColorARB... " >&6; }
8442 if test "${ac_cv_func_glClampColorARB+set}" = set; then
8443 $as_echo_n "(cached) " >&6
8444 else
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h. */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
8452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8453 #define glClampColorARB innocuous_glClampColorARB
8455 /* System header to define __stub macros and hopefully few prototypes,
8456 which can conflict with char glClampColorARB (); below.
8457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8458 <limits.h> exists even on freestanding compilers. */
8460 #ifdef __STDC__
8461 # include <limits.h>
8462 #else
8463 # include <assert.h>
8464 #endif
8466 #undef glClampColorARB
8468 /* Override any GCC internal prototype to avoid an error.
8469 Use char because int might match the return type of a GCC
8470 builtin and then its argument prototype would still apply. */
8471 #ifdef __cplusplus
8472 extern "C"
8473 #endif
8474 char glClampColorARB ();
8475 /* The GNU C library defines this for functions which it implements
8476 to always fail with ENOSYS. Some functions are actually named
8477 something starting with __ and the normal name is an alias. */
8478 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
8479 choke me
8480 #endif
8482 int
8483 main ()
8484 {
8485 return glClampColorARB ();
8486 ;
8487 return 0;
8488 }
8489 _ACEOF
8490 rm -f conftest.$ac_objext conftest$ac_exeext
8491 if { (ac_try="$ac_link"
8492 case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495 esac
8496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8497 $as_echo "$ac_try_echo") >&5
8498 (eval "$ac_link") 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest$ac_exeext && {
8508 test "$cross_compiling" = yes ||
8509 $as_test_x conftest$ac_exeext
8510 }; then
8511 ac_cv_func_glClampColorARB=yes
8512 else
8513 $as_echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_func_glClampColorARB=no
8517 fi
8519 rm -rf conftest.dSYM
8520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8521 conftest$ac_exeext conftest.$ac_ext
8522 fi
8523 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
8524 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
8525 if test $ac_cv_func_glClampColorARB = yes; then
8527 cat >>confdefs.h <<\_ACEOF
8528 #define HAVE_OPENGL_CLAMP_COLOR 1
8529 _ACEOF
8531 fi
8535 case $host_cpu in
8536 i386|i486|i586|i686|x86_64)
8537 SH4_TRANSLATOR="x86"
8539 cat >>confdefs.h <<_ACEOF
8540 #define SH4_TRANSLATOR TARGET_X86
8541 _ACEOF
8542 ;;
8543 *)
8544 echo "Warning: No translator available for $host. Building emulation core only";;
8545 esac
8548 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
8549 BUILD_SH4X86_TRUE=
8550 BUILD_SH4X86_FALSE='#'
8551 else
8552 BUILD_SH4X86_TRUE='#'
8553 BUILD_SH4X86_FALSE=
8554 fi
8558 if test "$SH4_TRANSLATOR" = "x86_64"; then
8559 BUILD_X86_64_TRUE=
8560 BUILD_X86_64_FALSE='#'
8561 else
8562 BUILD_X86_64_TRUE='#'
8563 BUILD_X86_64_FALSE=
8564 fi
8567 if test "${ac_cv_header_AudioToolbox_AudioToolbox_h+set}" = set; then
8568 { $as_echo "$as_me:$LINENO: checking for AudioToolbox/AudioToolbox.h" >&5
8569 $as_echo_n "checking for AudioToolbox/AudioToolbox.h... " >&6; }
8570 if test "${ac_cv_header_AudioToolbox_AudioToolbox_h+set}" = set; then
8571 $as_echo_n "(cached) " >&6
8572 fi
8573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AudioToolbox_AudioToolbox_h" >&5
8574 $as_echo "$ac_cv_header_AudioToolbox_AudioToolbox_h" >&6; }
8575 else
8576 # Is the header compilable?
8577 { $as_echo "$as_me:$LINENO: checking AudioToolbox/AudioToolbox.h usability" >&5
8578 $as_echo_n "checking AudioToolbox/AudioToolbox.h usability... " >&6; }
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 $ac_includes_default
8586 #include <AudioToolbox/AudioToolbox.h>
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593 esac
8594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8595 $as_echo "$ac_try_echo") >&5
8596 (eval "$ac_compile") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest.$ac_objext; then
8606 ac_header_compiler=yes
8607 else
8608 $as_echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_header_compiler=no
8612 fi
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616 $as_echo "$ac_header_compiler" >&6; }
8618 # Is the header present?
8619 { $as_echo "$as_me:$LINENO: checking AudioToolbox/AudioToolbox.h presence" >&5
8620 $as_echo_n "checking AudioToolbox/AudioToolbox.h presence... " >&6; }
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h. */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 #include <AudioToolbox/AudioToolbox.h>
8628 _ACEOF
8629 if { (ac_try="$ac_cpp conftest.$ac_ext"
8630 case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633 esac
8634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8635 $as_echo "$ac_try_echo") >&5
8636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } >/dev/null && {
8643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8644 test ! -s conftest.err
8645 }; then
8646 ac_header_preproc=yes
8647 else
8648 $as_echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8651 ac_header_preproc=no
8652 fi
8654 rm -f conftest.err conftest.$ac_ext
8655 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8656 $as_echo "$ac_header_preproc" >&6; }
8658 # So? What about this header?
8659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8660 yes:no: )
8661 { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: accepted by the compiler, rejected by the preprocessor!" >&5
8662 $as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8663 { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: proceeding with the compiler's result" >&5
8664 $as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: proceeding with the compiler's result" >&2;}
8665 ac_header_preproc=yes
8666 ;;
8667 no:yes:* )
8668 { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: present but cannot be compiled" >&5
8669 $as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: present but cannot be compiled" >&2;}
8670 { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: check for missing prerequisite headers?" >&5
8671 $as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: check for missing prerequisite headers?" >&2;}
8672 { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: see the Autoconf documentation" >&5
8673 $as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: see the Autoconf documentation" >&2;}
8674 { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: section \"Present But Cannot Be Compiled\"" >&5
8675 $as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: section \"Present But Cannot Be Compiled\"" >&2;}
8676 { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: proceeding with the preprocessor's result" >&5
8677 $as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: proceeding with the preprocessor's result" >&2;}
8678 { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: in the future, the compiler will take precedence" >&5
8679 $as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: in the future, the compiler will take precedence" >&2;}
8681 ;;
8682 esac
8683 { $as_echo "$as_me:$LINENO: checking for AudioToolbox/AudioToolbox.h" >&5
8684 $as_echo_n "checking for AudioToolbox/AudioToolbox.h... " >&6; }
8685 if test "${ac_cv_header_AudioToolbox_AudioToolbox_h+set}" = set; then
8686 $as_echo_n "(cached) " >&6
8687 else
8688 ac_cv_header_AudioToolbox_AudioToolbox_h=$ac_header_preproc
8689 fi
8690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AudioToolbox_AudioToolbox_h" >&5
8691 $as_echo "$ac_cv_header_AudioToolbox_AudioToolbox_h" >&6; }
8693 fi
8694 if test $ac_cv_header_AudioToolbox_AudioToolbox_h = yes; then
8696 HAVE_CORE_AUDIO=yes
8697 LIBS="$LIBS -framework AudioToolbox -framework AudioUnit"
8699 cat >>confdefs.h <<\_ACEOF
8700 #define HAVE_CORE_AUDIO 1
8701 _ACEOF
8703 else
8704 true
8705 fi
8710 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
8711 AUDIO_OSX_TRUE=
8712 AUDIO_OSX_FALSE='#'
8713 else
8714 AUDIO_OSX_TRUE='#'
8715 AUDIO_OSX_FALSE=
8716 fi
8720 pkg_failed=no
8721 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8722 $as_echo_n "checking for PULSE... " >&6; }
8724 if test -n "$PKG_CONFIG"; then
8725 if test -n "$PULSE_CFLAGS"; then
8726 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8727 else
8728 if test -n "$PKG_CONFIG" && \
8729 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8730 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8731 ac_status=$?
8732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; then
8734 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8735 else
8736 pkg_failed=yes
8737 fi
8738 fi
8739 else
8740 pkg_failed=untried
8741 fi
8742 if test -n "$PKG_CONFIG"; then
8743 if test -n "$PULSE_LIBS"; then
8744 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8745 else
8746 if test -n "$PKG_CONFIG" && \
8747 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8748 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8749 ac_status=$?
8750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; then
8752 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8753 else
8754 pkg_failed=yes
8755 fi
8756 fi
8757 else
8758 pkg_failed=untried
8759 fi
8763 if test $pkg_failed = yes; then
8765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8766 _pkg_short_errors_supported=yes
8767 else
8768 _pkg_short_errors_supported=no
8769 fi
8770 if test $_pkg_short_errors_supported = yes; then
8771 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8772 else
8773 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8774 fi
8775 # Put the nasty error message in config.log where it belongs
8776 echo "$PULSE_PKG_ERRORS" >&5
8778 { $as_echo "$as_me:$LINENO: result: no" >&5
8779 $as_echo "no" >&6; }
8780 true
8781 elif test $pkg_failed = untried; then
8782 true
8783 else
8784 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8785 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8786 { $as_echo "$as_me:$LINENO: result: yes" >&5
8787 $as_echo "yes" >&6; }
8789 HAVE_PULSE='yes'
8791 cat >>confdefs.h <<\_ACEOF
8792 #define HAVE_PULSE 1
8793 _ACEOF
8795 fi
8798 if test "$HAVE_PULSE" = 'yes' ; then
8799 AUDIO_PULSE_TRUE=
8800 AUDIO_PULSE_FALSE='#'
8801 else
8802 AUDIO_PULSE_TRUE='#'
8803 AUDIO_PULSE_FALSE=
8804 fi
8808 pkg_failed=no
8809 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8810 $as_echo_n "checking for ESOUND... " >&6; }
8812 if test -n "$PKG_CONFIG"; then
8813 if test -n "$ESOUND_CFLAGS"; then
8814 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8815 else
8816 if test -n "$PKG_CONFIG" && \
8817 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8818 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8819 ac_status=$?
8820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; then
8822 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8823 else
8824 pkg_failed=yes
8825 fi
8826 fi
8827 else
8828 pkg_failed=untried
8829 fi
8830 if test -n "$PKG_CONFIG"; then
8831 if test -n "$ESOUND_LIBS"; then
8832 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8833 else
8834 if test -n "$PKG_CONFIG" && \
8835 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8836 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8837 ac_status=$?
8838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; then
8840 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
8841 else
8842 pkg_failed=yes
8843 fi
8844 fi
8845 else
8846 pkg_failed=untried
8847 fi
8851 if test $pkg_failed = yes; then
8853 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8854 _pkg_short_errors_supported=yes
8855 else
8856 _pkg_short_errors_supported=no
8857 fi
8858 if test $_pkg_short_errors_supported = yes; then
8859 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
8860 else
8861 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
8862 fi
8863 # Put the nasty error message in config.log where it belongs
8864 echo "$ESOUND_PKG_ERRORS" >&5
8866 { $as_echo "$as_me:$LINENO: result: no" >&5
8867 $as_echo "no" >&6; }
8868 true
8869 elif test $pkg_failed = untried; then
8870 true
8871 else
8872 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
8873 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
8874 { $as_echo "$as_me:$LINENO: result: yes" >&5
8875 $as_echo "yes" >&6; }
8877 HAVE_ESOUND='yes'
8879 cat >>confdefs.h <<\_ACEOF
8880 #define HAVE_ESOUND 1
8881 _ACEOF
8883 fi
8886 if test "$HAVE_ESOUND" = 'yes' ; then
8887 AUDIO_ESOUND_TRUE=
8888 AUDIO_ESOUND_FALSE='#'
8889 else
8890 AUDIO_ESOUND_TRUE='#'
8891 AUDIO_ESOUND_FALSE=
8892 fi
8896 pkg_failed=no
8897 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
8898 $as_echo_n "checking for ALSA... " >&6; }
8900 if test -n "$PKG_CONFIG"; then
8901 if test -n "$ALSA_CFLAGS"; then
8902 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
8903 else
8904 if test -n "$PKG_CONFIG" && \
8905 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8906 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8907 ac_status=$?
8908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; then
8910 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
8911 else
8912 pkg_failed=yes
8913 fi
8914 fi
8915 else
8916 pkg_failed=untried
8917 fi
8918 if test -n "$PKG_CONFIG"; then
8919 if test -n "$ALSA_LIBS"; then
8920 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
8921 else
8922 if test -n "$PKG_CONFIG" && \
8923 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8924 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8925 ac_status=$?
8926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; then
8928 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
8929 else
8930 pkg_failed=yes
8931 fi
8932 fi
8933 else
8934 pkg_failed=untried
8935 fi
8939 if test $pkg_failed = yes; then
8941 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8942 _pkg_short_errors_supported=yes
8943 else
8944 _pkg_short_errors_supported=no
8945 fi
8946 if test $_pkg_short_errors_supported = yes; then
8947 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
8948 else
8949 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
8950 fi
8951 # Put the nasty error message in config.log where it belongs
8952 echo "$ALSA_PKG_ERRORS" >&5
8954 { $as_echo "$as_me:$LINENO: result: no" >&5
8955 $as_echo "no" >&6; }
8956 true
8957 elif test $pkg_failed = untried; then
8958 true
8959 else
8960 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
8961 ALSA_LIBS=$pkg_cv_ALSA_LIBS
8962 { $as_echo "$as_me:$LINENO: result: yes" >&5
8963 $as_echo "yes" >&6; }
8965 HAVE_ALSA='yes'
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_ALSA 1
8969 _ACEOF
8971 fi
8974 if test "$HAVE_ALSA" = 'yes' ; then
8975 AUDIO_ALSA_TRUE=
8976 AUDIO_ALSA_FALSE='#'
8977 else
8978 AUDIO_ALSA_TRUE='#'
8979 AUDIO_ALSA_FALSE=
8980 fi
8983 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
8984 echo "Warning: Building without audio support"
8985 fi
8987 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8988 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8989 $as_echo_n "checking for linux/cdrom.h... " >&6; }
8990 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8991 $as_echo_n "(cached) " >&6
8992 fi
8993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8994 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
8995 else
8996 # Is the header compilable?
8997 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
8998 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h. */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 $ac_includes_default
9006 #include <linux/cdrom.h>
9007 _ACEOF
9008 rm -f conftest.$ac_objext
9009 if { (ac_try="$ac_compile"
9010 case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9013 esac
9014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015 $as_echo "$ac_try_echo") >&5
9016 (eval "$ac_compile") 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest.$ac_objext; then
9026 ac_header_compiler=yes
9027 else
9028 $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_header_compiler=no
9032 fi
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9036 $as_echo "$ac_header_compiler" >&6; }
9038 # Is the header present?
9039 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
9040 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 #include <linux/cdrom.h>
9048 _ACEOF
9049 if { (ac_try="$ac_cpp conftest.$ac_ext"
9050 case "(($ac_try" in
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9053 esac
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } >/dev/null && {
9063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 }; then
9066 ac_header_preproc=yes
9067 else
9068 $as_echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_header_preproc=no
9072 fi
9074 rm -f conftest.err conftest.$ac_ext
9075 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9076 $as_echo "$ac_header_preproc" >&6; }
9078 # So? What about this header?
9079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9080 yes:no: )
9081 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
9082 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9083 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
9084 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
9085 ac_header_preproc=yes
9086 ;;
9087 no:yes:* )
9088 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
9089 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
9090 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
9091 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
9092 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
9093 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
9094 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
9095 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
9096 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
9097 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
9098 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
9099 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
9101 ;;
9102 esac
9103 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9104 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9105 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9106 $as_echo_n "(cached) " >&6
9107 else
9108 ac_cv_header_linux_cdrom_h=$ac_header_preproc
9109 fi
9110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9111 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9113 fi
9114 if test $ac_cv_header_linux_cdrom_h = yes; then
9115 HAVE_LINUX_CDROM_H=yes
9116 else
9118 echo "Linux CDROM support not found, building without it."
9119 fi
9124 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
9125 CDROM_LINUX_TRUE=
9126 CDROM_LINUX_FALSE='#'
9127 else
9128 CDROM_LINUX_TRUE='#'
9129 CDROM_LINUX_FALSE=
9130 fi
9133 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9134 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9135 $as_echo_n "checking for linux/joystick.h... " >&6; }
9136 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9137 $as_echo_n "(cached) " >&6
9138 fi
9139 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9140 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9141 else
9142 # Is the header compilable?
9143 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
9144 $as_echo_n "checking linux/joystick.h usability... " >&6; }
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h. */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9152 #include <linux/joystick.h>
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (ac_try="$ac_compile"
9156 case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159 esac
9160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9161 $as_echo "$ac_try_echo") >&5
9162 (eval "$ac_compile") 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest.$ac_objext; then
9172 ac_header_compiler=yes
9173 else
9174 $as_echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_header_compiler=no
9178 fi
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9181 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9182 $as_echo "$ac_header_compiler" >&6; }
9184 # Is the header present?
9185 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
9186 $as_echo_n "checking linux/joystick.h presence... " >&6; }
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 #include <linux/joystick.h>
9194 _ACEOF
9195 if { (ac_try="$ac_cpp conftest.$ac_ext"
9196 case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9201 $as_echo "$ac_try_echo") >&5
9202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9203 ac_status=$?
9204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
9207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } >/dev/null && {
9209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 }; then
9212 ac_header_preproc=yes
9213 else
9214 $as_echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_header_preproc=no
9218 fi
9220 rm -f conftest.err conftest.$ac_ext
9221 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9222 $as_echo "$ac_header_preproc" >&6; }
9224 # So? What about this header?
9225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9226 yes:no: )
9227 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
9228 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9229 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
9230 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
9231 ac_header_preproc=yes
9232 ;;
9233 no:yes:* )
9234 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
9235 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
9236 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
9237 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
9238 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
9239 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
9240 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
9241 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
9242 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
9243 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
9244 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
9245 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9247 ;;
9248 esac
9249 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9250 $as_echo_n "checking for linux/joystick.h... " >&6; }
9251 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9252 $as_echo_n "(cached) " >&6
9253 else
9254 ac_cv_header_linux_joystick_h=$ac_header_preproc
9255 fi
9256 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9257 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9259 fi
9260 if test $ac_cv_header_linux_joystick_h = yes; then
9262 HAVE_LINUX_JOYSTICK_H=yes
9264 cat >>confdefs.h <<\_ACEOF
9265 #define HAVE_LINUX_JOYSTICK 1
9266 _ACEOF
9268 else
9269 echo "Linux Joystick support not found, building without it."
9270 fi
9275 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9276 JOY_LINUX_TRUE=
9277 JOY_LINUX_FALSE='#'
9278 else
9279 JOY_LINUX_TRUE='#'
9280 JOY_LINUX_FALSE=
9281 fi
9284 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9285 set dummy sh-elf-gcc; ac_word=$2
9286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if test "${ac_cv_path_SHCC+set}" = set; then
9289 $as_echo_n "(cached) " >&6
9290 else
9291 case $SHCC in
9292 [\\/]* | ?:[\\/]*)
9293 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9294 ;;
9295 *)
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9298 do
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9303 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 break 2
9306 fi
9307 done
9308 done
9309 IFS=$as_save_IFS
9311 ;;
9312 esac
9313 fi
9314 SHCC=$ac_cv_path_SHCC
9315 if test -n "$SHCC"; then
9316 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9317 $as_echo "$SHCC" >&6; }
9318 else
9319 { $as_echo "$as_me:$LINENO: result: no" >&5
9320 $as_echo "no" >&6; }
9321 fi
9324 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9325 set dummy sh-elf-ld; ac_word=$2
9326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if test "${ac_cv_path_SHLD+set}" = set; then
9329 $as_echo_n "(cached) " >&6
9330 else
9331 case $SHLD in
9332 [\\/]* | ?:[\\/]*)
9333 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9334 ;;
9335 *)
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9338 do
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9343 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9346 fi
9347 done
9348 done
9349 IFS=$as_save_IFS
9351 ;;
9352 esac
9353 fi
9354 SHLD=$ac_cv_path_SHLD
9355 if test -n "$SHLD"; then
9356 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9357 $as_echo "$SHLD" >&6; }
9358 else
9359 { $as_echo "$as_me:$LINENO: result: no" >&5
9360 $as_echo "no" >&6; }
9361 fi
9364 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9365 set dummy sh-elf-objcopy; ac_word=$2
9366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9369 $as_echo_n "(cached) " >&6
9370 else
9371 case $SHOBJCOPY in
9372 [\\/]* | ?:[\\/]*)
9373 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9374 ;;
9375 *)
9376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377 for as_dir in $PATH
9378 do
9379 IFS=$as_save_IFS
9380 test -z "$as_dir" && as_dir=.
9381 for ac_exec_ext in '' $ac_executable_extensions; do
9382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9383 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 break 2
9386 fi
9387 done
9388 done
9389 IFS=$as_save_IFS
9391 ;;
9392 esac
9393 fi
9394 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9395 if test -n "$SHOBJCOPY"; then
9396 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9397 $as_echo "$SHOBJCOPY" >&6; }
9398 else
9399 { $as_echo "$as_me:$LINENO: result: no" >&5
9400 $as_echo "no" >&6; }
9401 fi
9404 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9405 set dummy arm-elf-gcc; ac_word=$2
9406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_path_ARMCC+set}" = set; then
9409 $as_echo_n "(cached) " >&6
9410 else
9411 case $ARMCC in
9412 [\\/]* | ?:[\\/]*)
9413 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9414 ;;
9415 *)
9416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417 for as_dir in $PATH
9418 do
9419 IFS=$as_save_IFS
9420 test -z "$as_dir" && as_dir=.
9421 for ac_exec_ext in '' $ac_executable_extensions; do
9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9423 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 break 2
9426 fi
9427 done
9428 done
9429 IFS=$as_save_IFS
9431 ;;
9432 esac
9433 fi
9434 ARMCC=$ac_cv_path_ARMCC
9435 if test -n "$ARMCC"; then
9436 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9437 $as_echo "$ARMCC" >&6; }
9438 else
9439 { $as_echo "$as_me:$LINENO: result: no" >&5
9440 $as_echo "no" >&6; }
9441 fi
9444 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9445 set dummy arm-elf-ld; ac_word=$2
9446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if test "${ac_cv_path_ARMLD+set}" = set; then
9449 $as_echo_n "(cached) " >&6
9450 else
9451 case $ARMLD in
9452 [\\/]* | ?:[\\/]*)
9453 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9454 ;;
9455 *)
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9458 do
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9466 fi
9467 done
9468 done
9469 IFS=$as_save_IFS
9471 ;;
9472 esac
9473 fi
9474 ARMLD=$ac_cv_path_ARMLD
9475 if test -n "$ARMLD"; then
9476 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9477 $as_echo "$ARMLD" >&6; }
9478 else
9479 { $as_echo "$as_me:$LINENO: result: no" >&5
9480 $as_echo "no" >&6; }
9481 fi
9484 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9485 set dummy arm-elf-objcopy; ac_word=$2
9486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9487 $as_echo_n "checking for $ac_word... " >&6; }
9488 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9489 $as_echo_n "(cached) " >&6
9490 else
9491 case $ARMOBJCOPY in
9492 [\\/]* | ?:[\\/]*)
9493 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9494 ;;
9495 *)
9496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497 for as_dir in $PATH
9498 do
9499 IFS=$as_save_IFS
9500 test -z "$as_dir" && as_dir=.
9501 for ac_exec_ext in '' $ac_executable_extensions; do
9502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9503 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9505 break 2
9506 fi
9507 done
9508 done
9509 IFS=$as_save_IFS
9511 ;;
9512 esac
9513 fi
9514 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9515 if test -n "$ARMOBJCOPY"; then
9516 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9517 $as_echo "$ARMOBJCOPY" >&6; }
9518 else
9519 { $as_echo "$as_me:$LINENO: result: no" >&5
9520 $as_echo "no" >&6; }
9521 fi
9525 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9526 BUILD_SH="no"
9527 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9528 else
9529 BUILD_SH="yes"
9530 fi
9531 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9532 BUILD_ARM="no"
9533 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9534 else
9535 BUILD_ARM="yes"
9536 fi
9539 if test "$BUILD_SH" = "yes"; then
9540 BUILD_SYSTEST_TRUE=
9541 BUILD_SYSTEST_FALSE='#'
9542 else
9543 BUILD_SYSTEST_TRUE='#'
9544 BUILD_SYSTEST_FALSE=
9545 fi
9549 if test "$BUILD_ARM" = "yes"; then
9550 BUILD_ARMTEST_TRUE=
9551 BUILD_ARMTEST_FALSE='#'
9552 else
9553 BUILD_ARMTEST_TRUE='#'
9554 BUILD_ARMTEST_FALSE=
9555 fi
9559 GETTEXT_PACKAGE=lxdream
9562 cat >>confdefs.h <<_ACEOF
9563 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9564 _ACEOF
9567 ALL_LINGUAS="de es it pt_BR"
9570 for ac_header in locale.h
9571 do
9572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9575 $as_echo_n "checking for $ac_header... " >&6; }
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577 $as_echo_n "(cached) " >&6
9578 fi
9579 ac_res=`eval 'as_val=${'$as_ac_Header'}
9580 $as_echo "$as_val"'`
9581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9582 $as_echo "$ac_res" >&6; }
9583 else
9584 # Is the header compilable?
9585 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9586 $as_echo_n "checking $ac_header usability... " >&6; }
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 $ac_includes_default
9594 #include <$ac_header>
9595 _ACEOF
9596 rm -f conftest.$ac_objext
9597 if { (ac_try="$ac_compile"
9598 case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9603 $as_echo "$ac_try_echo") >&5
9604 (eval "$ac_compile") 2>conftest.er1
9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && {
9611 test -z "$ac_c_werror_flag" ||
9612 test ! -s conftest.err
9613 } && test -s conftest.$ac_objext; then
9614 ac_header_compiler=yes
9615 else
9616 $as_echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_header_compiler=no
9620 fi
9622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624 $as_echo "$ac_header_compiler" >&6; }
9626 # Is the header present?
9627 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9628 $as_echo_n "checking $ac_header presence... " >&6; }
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 #include <$ac_header>
9636 _ACEOF
9637 if { (ac_try="$ac_cpp conftest.$ac_ext"
9638 case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641 esac
9642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9643 $as_echo "$ac_try_echo") >&5
9644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } >/dev/null && {
9651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 }; then
9654 ac_header_preproc=yes
9655 else
9656 $as_echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 ac_header_preproc=no
9660 fi
9662 rm -f conftest.err conftest.$ac_ext
9663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664 $as_echo "$ac_header_preproc" >&6; }
9666 # So? What about this header?
9667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 yes:no: )
9669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673 ac_header_preproc=yes
9674 ;;
9675 no:yes:* )
9676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9679 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9683 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9689 ;;
9690 esac
9691 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9692 $as_echo_n "checking for $ac_header... " >&6; }
9693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9694 $as_echo_n "(cached) " >&6
9695 else
9696 eval "$as_ac_Header=\$ac_header_preproc"
9697 fi
9698 ac_res=`eval 'as_val=${'$as_ac_Header'}
9699 $as_echo "$as_val"'`
9700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9701 $as_echo "$ac_res" >&6; }
9703 fi
9704 if test `eval 'as_val=${'$as_ac_Header'}
9705 $as_echo "$as_val"'` = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9708 _ACEOF
9710 fi
9712 done
9714 if test $ac_cv_header_locale_h = yes; then
9715 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9716 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9717 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9718 $as_echo_n "(cached) " >&6
9719 else
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h. */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 #include <locale.h>
9727 int
9728 main ()
9729 {
9730 return LC_MESSAGES
9731 ;
9732 return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9737 case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740 esac
9741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9742 $as_echo "$ac_try_echo") >&5
9743 (eval "$ac_link") 2>conftest.er1
9744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } && {
9750 test -z "$ac_c_werror_flag" ||
9751 test ! -s conftest.err
9752 } && test -s conftest$ac_exeext && {
9753 test "$cross_compiling" = yes ||
9754 $as_test_x conftest$ac_exeext
9755 }; then
9756 am_cv_val_LC_MESSAGES=yes
9757 else
9758 $as_echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 am_cv_val_LC_MESSAGES=no
9762 fi
9764 rm -rf conftest.dSYM
9765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9766 conftest$ac_exeext conftest.$ac_ext
9767 fi
9768 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9769 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9770 if test $am_cv_val_LC_MESSAGES = yes; then
9772 cat >>confdefs.h <<\_ACEOF
9773 #define HAVE_LC_MESSAGES 1
9774 _ACEOF
9776 fi
9777 fi
9778 USE_NLS=yes
9781 gt_cv_have_gettext=no
9783 CATOBJEXT=NONE
9784 XGETTEXT=:
9785 INTLLIBS=
9787 if test "${ac_cv_header_libintl_h+set}" = set; then
9788 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9789 $as_echo_n "checking for libintl.h... " >&6; }
9790 if test "${ac_cv_header_libintl_h+set}" = set; then
9791 $as_echo_n "(cached) " >&6
9792 fi
9793 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9794 $as_echo "$ac_cv_header_libintl_h" >&6; }
9795 else
9796 # Is the header compilable?
9797 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
9798 $as_echo_n "checking libintl.h usability... " >&6; }
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 $ac_includes_default
9806 #include <libintl.h>
9807 _ACEOF
9808 rm -f conftest.$ac_objext
9809 if { (ac_try="$ac_compile"
9810 case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813 esac
9814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815 $as_echo "$ac_try_echo") >&5
9816 (eval "$ac_compile") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest.$ac_objext; then
9826 ac_header_compiler=yes
9827 else
9828 $as_echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 ac_header_compiler=no
9832 fi
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9836 $as_echo "$ac_header_compiler" >&6; }
9838 # Is the header present?
9839 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
9840 $as_echo_n "checking libintl.h presence... " >&6; }
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 #include <libintl.h>
9848 _ACEOF
9849 if { (ac_try="$ac_cpp conftest.$ac_ext"
9850 case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855 $as_echo "$ac_try_echo") >&5
9856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } >/dev/null && {
9863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 }; then
9866 ac_header_preproc=yes
9867 else
9868 $as_echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 ac_header_preproc=no
9872 fi
9874 rm -f conftest.err conftest.$ac_ext
9875 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9876 $as_echo "$ac_header_preproc" >&6; }
9878 # So? What about this header?
9879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9880 yes:no: )
9881 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9882 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9883 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9884 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9885 ac_header_preproc=yes
9886 ;;
9887 no:yes:* )
9888 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9889 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9890 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9891 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9892 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9893 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9894 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9895 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9896 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9897 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9898 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9899 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9901 ;;
9902 esac
9903 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9904 $as_echo_n "checking for libintl.h... " >&6; }
9905 if test "${ac_cv_header_libintl_h+set}" = set; then
9906 $as_echo_n "(cached) " >&6
9907 else
9908 ac_cv_header_libintl_h=$ac_header_preproc
9909 fi
9910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9911 $as_echo "$ac_cv_header_libintl_h" >&6; }
9913 fi
9914 if test $ac_cv_header_libintl_h = yes; then
9915 gt_cv_func_dgettext_libintl="no"
9916 libintl_extra_libs=""
9918 #
9919 # First check in libc
9920 #
9921 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
9922 $as_echo_n "checking for ngettext in libc... " >&6; }
9923 if test "${gt_cv_func_ngettext_libc+set}" = set; then
9924 $as_echo_n "(cached) " >&6
9925 else
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h. */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 #include <libintl.h>
9935 int
9936 main ()
9937 {
9938 return !ngettext ("","", 1)
9939 ;
9940 return 0;
9941 }
9942 _ACEOF
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (ac_try="$ac_link"
9945 case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9948 esac
9949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9950 $as_echo "$ac_try_echo") >&5
9951 (eval "$ac_link") 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } && {
9958 test -z "$ac_c_werror_flag" ||
9959 test ! -s conftest.err
9960 } && test -s conftest$ac_exeext && {
9961 test "$cross_compiling" = yes ||
9962 $as_test_x conftest$ac_exeext
9963 }; then
9964 gt_cv_func_ngettext_libc=yes
9965 else
9966 $as_echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 gt_cv_func_ngettext_libc=no
9970 fi
9972 rm -rf conftest.dSYM
9973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9974 conftest$ac_exeext conftest.$ac_ext
9976 fi
9977 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
9978 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
9980 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9981 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9982 $as_echo_n "checking for dgettext in libc... " >&6; }
9983 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9984 $as_echo_n "(cached) " >&6
9985 else
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9993 #include <libintl.h>
9995 int
9996 main ()
9997 {
9998 return !dgettext ("","")
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10010 $as_echo "$ac_try_echo") >&5
10011 (eval "$ac_link") 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && {
10018 test -z "$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10020 } && test -s conftest$ac_exeext && {
10021 test "$cross_compiling" = yes ||
10022 $as_test_x conftest$ac_exeext
10023 }; then
10024 gt_cv_func_dgettext_libc=yes
10025 else
10026 $as_echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 gt_cv_func_dgettext_libc=no
10030 fi
10032 rm -rf conftest.dSYM
10033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10034 conftest$ac_exeext conftest.$ac_ext
10036 fi
10037 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10038 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
10039 fi
10041 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10043 for ac_func in bind_textdomain_codeset
10044 do
10045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10046 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10047 $as_echo_n "checking for $ac_func... " >&6; }
10048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10049 $as_echo_n "(cached) " >&6
10050 else
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10059 #define $ac_func innocuous_$ac_func
10061 /* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char $ac_func (); below.
10063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064 <limits.h> exists even on freestanding compilers. */
10066 #ifdef __STDC__
10067 # include <limits.h>
10068 #else
10069 # include <assert.h>
10070 #endif
10072 #undef $ac_func
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char $ac_func ();
10081 /* The GNU C library defines this for functions which it implements
10082 to always fail with ENOSYS. Some functions are actually named
10083 something starting with __ and the normal name is an alias. */
10084 #if defined __stub_$ac_func || defined __stub___$ac_func
10085 choke me
10086 #endif
10088 int
10089 main ()
10090 {
10091 return $ac_func ();
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101 esac
10102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10103 $as_echo "$ac_try_echo") >&5
10104 (eval "$ac_link") 2>conftest.er1
10105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } && {
10111 test -z "$ac_c_werror_flag" ||
10112 test ! -s conftest.err
10113 } && test -s conftest$ac_exeext && {
10114 test "$cross_compiling" = yes ||
10115 $as_test_x conftest$ac_exeext
10116 }; then
10117 eval "$as_ac_var=yes"
10118 else
10119 $as_echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 eval "$as_ac_var=no"
10123 fi
10125 rm -rf conftest.dSYM
10126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10127 conftest$ac_exeext conftest.$ac_ext
10128 fi
10129 ac_res=`eval 'as_val=${'$as_ac_var'}
10130 $as_echo "$as_val"'`
10131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10132 $as_echo "$ac_res" >&6; }
10133 if test `eval 'as_val=${'$as_ac_var'}
10134 $as_echo "$as_val"'` = yes; then
10135 cat >>confdefs.h <<_ACEOF
10136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10137 _ACEOF
10139 fi
10140 done
10142 fi
10144 #
10145 # If we don't have everything we want, check in libintl
10146 #
10147 if test "$gt_cv_func_dgettext_libc" != "yes" \
10148 || test "$gt_cv_func_ngettext_libc" != "yes" \
10149 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10151 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10152 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
10153 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10154 $as_echo_n "(cached) " >&6
10155 else
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lintl $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char bindtextdomain ();
10172 int
10173 main ()
10174 {
10175 return bindtextdomain ();
10176 ;
10177 return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185 esac
10186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10187 $as_echo "$ac_try_echo") >&5
10188 (eval "$ac_link") 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_c_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest$ac_exeext && {
10198 test "$cross_compiling" = yes ||
10199 $as_test_x conftest$ac_exeext
10200 }; then
10201 ac_cv_lib_intl_bindtextdomain=yes
10202 else
10203 $as_echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_cv_lib_intl_bindtextdomain=no
10207 fi
10209 rm -rf conftest.dSYM
10210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10211 conftest$ac_exeext conftest.$ac_ext
10212 LIBS=$ac_check_lib_save_LIBS
10213 fi
10214 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10215 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10216 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10217 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10218 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10219 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10220 $as_echo_n "(cached) " >&6
10221 else
10222 ac_check_lib_save_LIBS=$LIBS
10223 LIBS="-lintl $LIBS"
10224 cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h. */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char ngettext ();
10238 int
10239 main ()
10240 {
10241 return ngettext ();
10242 ;
10243 return 0;
10244 }
10245 _ACEOF
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (ac_try="$ac_link"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251 esac
10252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10253 $as_echo "$ac_try_echo") >&5
10254 (eval "$ac_link") 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest$ac_exeext && {
10264 test "$cross_compiling" = yes ||
10265 $as_test_x conftest$ac_exeext
10266 }; then
10267 ac_cv_lib_intl_ngettext=yes
10268 else
10269 $as_echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10272 ac_cv_lib_intl_ngettext=no
10273 fi
10275 rm -rf conftest.dSYM
10276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10279 fi
10280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10281 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10282 if test $ac_cv_lib_intl_ngettext = yes; then
10283 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10284 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10285 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10286 $as_echo_n "(cached) " >&6
10287 else
10288 ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-lintl $LIBS"
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h. */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char dgettext ();
10304 int
10305 main ()
10306 {
10307 return dgettext ();
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317 esac
10318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10319 $as_echo "$ac_try_echo") >&5
10320 (eval "$ac_link") 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } && {
10327 test -z "$ac_c_werror_flag" ||
10328 test ! -s conftest.err
10329 } && test -s conftest$ac_exeext && {
10330 test "$cross_compiling" = yes ||
10331 $as_test_x conftest$ac_exeext
10332 }; then
10333 ac_cv_lib_intl_dgettext=yes
10334 else
10335 $as_echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ac_cv_lib_intl_dgettext=no
10339 fi
10341 rm -rf conftest.dSYM
10342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10345 fi
10346 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10347 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10348 if test $ac_cv_lib_intl_dgettext = yes; then
10349 gt_cv_func_dgettext_libintl=yes
10350 fi
10352 fi
10354 fi
10357 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10358 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10359 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10360 { $as_echo "$as_me:$LINENO: result: " >&5
10361 $as_echo "" >&6; }
10362 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10363 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10364 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10365 $as_echo_n "(cached) " >&6
10366 else
10367 ac_check_lib_save_LIBS=$LIBS
10368 LIBS="-lintl -liconv $LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 /* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10379 #ifdef __cplusplus
10380 extern "C"
10381 #endif
10382 char ngettext ();
10383 int
10384 main ()
10385 {
10386 return ngettext ();
10387 ;
10388 return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396 esac
10397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10398 $as_echo "$ac_try_echo") >&5
10399 (eval "$ac_link") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest$ac_exeext && {
10409 test "$cross_compiling" = yes ||
10410 $as_test_x conftest$ac_exeext
10411 }; then
10412 ac_cv_lib_intl_ngettext=yes
10413 else
10414 $as_echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_cv_lib_intl_ngettext=no
10418 fi
10420 rm -rf conftest.dSYM
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10426 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10427 if test $ac_cv_lib_intl_ngettext = yes; then
10428 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10429 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10430 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10431 $as_echo_n "(cached) " >&6
10432 else
10433 ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-lintl -liconv $LIBS"
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10442 /* Override any GCC internal prototype to avoid an error.
10443 Use char because int might match the return type of a GCC
10444 builtin and then its argument prototype would still apply. */
10445 #ifdef __cplusplus
10446 extern "C"
10447 #endif
10448 char dcgettext ();
10449 int
10450 main ()
10451 {
10452 return dcgettext ();
10453 ;
10454 return 0;
10455 }
10456 _ACEOF
10457 rm -f conftest.$ac_objext conftest$ac_exeext
10458 if { (ac_try="$ac_link"
10459 case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462 esac
10463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10464 $as_echo "$ac_try_echo") >&5
10465 (eval "$ac_link") 2>conftest.er1
10466 ac_status=$?
10467 grep -v '^ *+' conftest.er1 >conftest.err
10468 rm -f conftest.er1
10469 cat conftest.err >&5
10470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest$ac_exeext && {
10475 test "$cross_compiling" = yes ||
10476 $as_test_x conftest$ac_exeext
10477 }; then
10478 ac_cv_lib_intl_dcgettext=yes
10479 else
10480 $as_echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_cv_lib_intl_dcgettext=no
10484 fi
10486 rm -rf conftest.dSYM
10487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10488 conftest$ac_exeext conftest.$ac_ext
10489 LIBS=$ac_check_lib_save_LIBS
10490 fi
10491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10492 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10493 if test $ac_cv_lib_intl_dcgettext = yes; then
10494 gt_cv_func_dgettext_libintl=yes
10495 libintl_extra_libs=-liconv
10496 else
10497 :
10498 fi
10500 else
10501 :
10502 fi
10504 fi
10506 #
10507 # If we found libintl, then check in it for bind_textdomain_codeset();
10508 # we'll prefer libc if neither have bind_textdomain_codeset(),
10509 # and both have dgettext and ngettext
10510 #
10511 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10512 glib_save_LIBS="$LIBS"
10513 LIBS="$LIBS -lintl $libintl_extra_libs"
10514 unset ac_cv_func_bind_textdomain_codeset
10516 for ac_func in bind_textdomain_codeset
10517 do
10518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10519 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10520 $as_echo_n "checking for $ac_func... " >&6; }
10521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10522 $as_echo_n "(cached) " >&6
10523 else
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10532 #define $ac_func innocuous_$ac_func
10534 /* System header to define __stub macros and hopefully few prototypes,
10535 which can conflict with char $ac_func (); below.
10536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10537 <limits.h> exists even on freestanding compilers. */
10539 #ifdef __STDC__
10540 # include <limits.h>
10541 #else
10542 # include <assert.h>
10543 #endif
10545 #undef $ac_func
10547 /* Override any GCC internal prototype to avoid an error.
10548 Use char because int might match the return type of a GCC
10549 builtin and then its argument prototype would still apply. */
10550 #ifdef __cplusplus
10551 extern "C"
10552 #endif
10553 char $ac_func ();
10554 /* The GNU C library defines this for functions which it implements
10555 to always fail with ENOSYS. Some functions are actually named
10556 something starting with __ and the normal name is an alias. */
10557 #if defined __stub_$ac_func || defined __stub___$ac_func
10558 choke me
10559 #endif
10561 int
10562 main ()
10563 {
10564 return $ac_func ();
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (ac_try="$ac_link"
10571 case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574 esac
10575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10576 $as_echo "$ac_try_echo") >&5
10577 (eval "$ac_link") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest$ac_exeext && {
10587 test "$cross_compiling" = yes ||
10588 $as_test_x conftest$ac_exeext
10589 }; then
10590 eval "$as_ac_var=yes"
10591 else
10592 $as_echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 eval "$as_ac_var=no"
10596 fi
10598 rm -rf conftest.dSYM
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10601 fi
10602 ac_res=`eval 'as_val=${'$as_ac_var'}
10603 $as_echo "$as_val"'`
10604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10605 $as_echo "$ac_res" >&6; }
10606 if test `eval 'as_val=${'$as_ac_var'}
10607 $as_echo "$as_val"'` = yes; then
10608 cat >>confdefs.h <<_ACEOF
10609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10610 _ACEOF
10612 fi
10613 done
10615 LIBS="$glib_save_LIBS"
10617 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10618 gt_cv_func_dgettext_libc=no
10619 else
10620 if test "$gt_cv_func_dgettext_libc" = "yes" \
10621 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10622 gt_cv_func_dgettext_libintl=no
10623 fi
10624 fi
10625 fi
10626 fi
10628 if test "$gt_cv_func_dgettext_libc" = "yes" \
10629 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10630 gt_cv_have_gettext=yes
10631 fi
10633 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10634 INTLLIBS="-lintl $libintl_extra_libs"
10635 fi
10637 if test "$gt_cv_have_gettext" = "yes"; then
10639 cat >>confdefs.h <<\_ACEOF
10640 #define HAVE_GETTEXT 1
10641 _ACEOF
10643 # Extract the first word of "msgfmt", so it can be a program name with args.
10644 set dummy msgfmt; ac_word=$2
10645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10646 $as_echo_n "checking for $ac_word... " >&6; }
10647 if test "${ac_cv_path_MSGFMT+set}" = set; then
10648 $as_echo_n "(cached) " >&6
10649 else
10650 case "$MSGFMT" in
10651 /*)
10652 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10653 ;;
10654 *)
10655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10656 for ac_dir in $PATH; do
10657 test -z "$ac_dir" && ac_dir=.
10658 if test -f $ac_dir/$ac_word; then
10659 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10660 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10661 break
10662 fi
10663 fi
10664 done
10665 IFS="$ac_save_ifs"
10666 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10667 ;;
10668 esac
10669 fi
10670 MSGFMT="$ac_cv_path_MSGFMT"
10671 if test "$MSGFMT" != "no"; then
10672 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10673 $as_echo "$MSGFMT" >&6; }
10674 else
10675 { $as_echo "$as_me:$LINENO: result: no" >&5
10676 $as_echo "no" >&6; }
10677 fi
10678 if test "$MSGFMT" != "no"; then
10679 glib_save_LIBS="$LIBS"
10680 LIBS="$LIBS $INTLLIBS"
10682 for ac_func in dcgettext
10683 do
10684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10685 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10686 $as_echo_n "checking for $ac_func... " >&6; }
10687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10688 $as_echo_n "(cached) " >&6
10689 else
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10698 #define $ac_func innocuous_$ac_func
10700 /* System header to define __stub macros and hopefully few prototypes,
10701 which can conflict with char $ac_func (); below.
10702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703 <limits.h> exists even on freestanding compilers. */
10705 #ifdef __STDC__
10706 # include <limits.h>
10707 #else
10708 # include <assert.h>
10709 #endif
10711 #undef $ac_func
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char $ac_func ();
10720 /* The GNU C library defines this for functions which it implements
10721 to always fail with ENOSYS. Some functions are actually named
10722 something starting with __ and the normal name is an alias. */
10723 #if defined __stub_$ac_func || defined __stub___$ac_func
10724 choke me
10725 #endif
10727 int
10728 main ()
10729 {
10730 return $ac_func ();
10731 ;
10732 return 0;
10733 }
10734 _ACEOF
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (ac_try="$ac_link"
10737 case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740 esac
10741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10742 $as_echo "$ac_try_echo") >&5
10743 (eval "$ac_link") 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } && {
10750 test -z "$ac_c_werror_flag" ||
10751 test ! -s conftest.err
10752 } && test -s conftest$ac_exeext && {
10753 test "$cross_compiling" = yes ||
10754 $as_test_x conftest$ac_exeext
10755 }; then
10756 eval "$as_ac_var=yes"
10757 else
10758 $as_echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 eval "$as_ac_var=no"
10762 fi
10764 rm -rf conftest.dSYM
10765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10766 conftest$ac_exeext conftest.$ac_ext
10767 fi
10768 ac_res=`eval 'as_val=${'$as_ac_var'}
10769 $as_echo "$as_val"'`
10770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10771 $as_echo "$ac_res" >&6; }
10772 if test `eval 'as_val=${'$as_ac_var'}
10773 $as_echo "$as_val"'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10776 _ACEOF
10778 fi
10779 done
10781 MSGFMT_OPTS=
10782 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
10783 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
10784 cat >conftest.foo <<_ACEOF
10786 msgid ""
10787 msgstr ""
10788 "Content-Type: text/plain; charset=UTF-8\n"
10789 "Project-Id-Version: test 1.0\n"
10790 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
10791 "Last-Translator: test <foo@bar.xx>\n"
10792 "Language-Team: C <LL@li.org>\n"
10793 "MIME-Version: 1.0\n"
10794 "Content-Transfer-Encoding: 8bit\n"
10796 _ACEOF
10797 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
10798 (msgfmt -c -o /dev/null conftest.foo) 2>&5
10799 ac_status=$?
10800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; then
10802 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
10803 $as_echo "yes" >&6; }
10804 else { $as_echo "$as_me:$LINENO: result: no" >&5
10805 $as_echo "no" >&6; }
10806 echo "$as_me: failed input was:" >&5
10807 sed 's/^/| /' conftest.foo >&5
10808 fi
10810 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10811 set dummy gmsgfmt; ac_word=$2
10812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10813 $as_echo_n "checking for $ac_word... " >&6; }
10814 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10815 $as_echo_n "(cached) " >&6
10816 else
10817 case $GMSGFMT in
10818 [\\/]* | ?:[\\/]*)
10819 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10820 ;;
10821 *)
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10824 do
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10829 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10831 break 2
10832 fi
10833 done
10834 done
10835 IFS=$as_save_IFS
10837 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10838 ;;
10839 esac
10840 fi
10841 GMSGFMT=$ac_cv_path_GMSGFMT
10842 if test -n "$GMSGFMT"; then
10843 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10844 $as_echo "$GMSGFMT" >&6; }
10845 else
10846 { $as_echo "$as_me:$LINENO: result: no" >&5
10847 $as_echo "no" >&6; }
10848 fi
10851 # Extract the first word of "xgettext", so it can be a program name with args.
10852 set dummy xgettext; ac_word=$2
10853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10856 $as_echo_n "(cached) " >&6
10857 else
10858 case "$XGETTEXT" in
10859 /*)
10860 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10861 ;;
10862 *)
10863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10864 for ac_dir in $PATH; do
10865 test -z "$ac_dir" && ac_dir=.
10866 if test -f $ac_dir/$ac_word; then
10867 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10868 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10869 break
10870 fi
10871 fi
10872 done
10873 IFS="$ac_save_ifs"
10874 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10875 ;;
10876 esac
10877 fi
10878 XGETTEXT="$ac_cv_path_XGETTEXT"
10879 if test "$XGETTEXT" != ":"; then
10880 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10881 $as_echo "$XGETTEXT" >&6; }
10882 else
10883 { $as_echo "$as_me:$LINENO: result: no" >&5
10884 $as_echo "no" >&6; }
10885 fi
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h. */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10894 int
10895 main ()
10896 {
10897 extern int _nl_msg_cat_cntr;
10898 return _nl_msg_cat_cntr
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908 esac
10909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10910 $as_echo "$ac_try_echo") >&5
10911 (eval "$ac_link") 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest$ac_exeext && {
10921 test "$cross_compiling" = yes ||
10922 $as_test_x conftest$ac_exeext
10923 }; then
10924 CATOBJEXT=.gmo
10925 DATADIRNAME=share
10926 else
10927 $as_echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 case $host in
10931 *-*-solaris*)
10932 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
10933 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
10934 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
10935 $as_echo_n "(cached) " >&6
10936 else
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h. */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
10944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10945 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
10947 /* System header to define __stub macros and hopefully few prototypes,
10948 which can conflict with char bind_textdomain_codeset (); below.
10949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950 <limits.h> exists even on freestanding compilers. */
10952 #ifdef __STDC__
10953 # include <limits.h>
10954 #else
10955 # include <assert.h>
10956 #endif
10958 #undef bind_textdomain_codeset
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char bind_textdomain_codeset ();
10967 /* The GNU C library defines this for functions which it implements
10968 to always fail with ENOSYS. Some functions are actually named
10969 something starting with __ and the normal name is an alias. */
10970 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
10971 choke me
10972 #endif
10974 int
10975 main ()
10976 {
10977 return bind_textdomain_codeset ();
10978 ;
10979 return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (ac_try="$ac_link"
10984 case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987 esac
10988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10989 $as_echo "$ac_try_echo") >&5
10990 (eval "$ac_link") 2>conftest.er1
10991 ac_status=$?
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
10995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } && {
10997 test -z "$ac_c_werror_flag" ||
10998 test ! -s conftest.err
10999 } && test -s conftest$ac_exeext && {
11000 test "$cross_compiling" = yes ||
11001 $as_test_x conftest$ac_exeext
11002 }; then
11003 ac_cv_func_bind_textdomain_codeset=yes
11004 else
11005 $as_echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ac_cv_func_bind_textdomain_codeset=no
11009 fi
11011 rm -rf conftest.dSYM
11012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11013 conftest$ac_exeext conftest.$ac_ext
11014 fi
11015 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
11016 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
11017 if test $ac_cv_func_bind_textdomain_codeset = yes; then
11018 CATOBJEXT=.gmo
11019 DATADIRNAME=share
11020 else
11021 CATOBJEXT=.mo
11022 DATADIRNAME=lib
11023 fi
11025 ;;
11026 *)
11027 CATOBJEXT=.mo
11028 DATADIRNAME=lib
11029 ;;
11030 esac
11031 fi
11033 rm -rf conftest.dSYM
11034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LIBS="$glib_save_LIBS"
11037 INSTOBJEXT=.mo
11038 else
11039 gt_cv_have_gettext=no
11040 fi
11041 fi
11043 fi
11047 if test "$gt_cv_have_gettext" = "yes" ; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define ENABLE_NLS 1
11051 _ACEOF
11053 fi
11055 if test "$XGETTEXT" != ":"; then
11056 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11057 : ;
11058 else
11059 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11060 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11061 XGETTEXT=":"
11062 fi
11063 fi
11065 # We need to process the po/ directory.
11066 POSUB=po
11068 ac_config_commands="$ac_config_commands default-1"
11071 for lang in $ALL_LINGUAS; do
11072 GMOFILES="$GMOFILES $lang.gmo"
11073 POFILES="$POFILES $lang.po"
11074 done
11088 if test "$gt_cv_have_gettext" = "yes"; then
11089 if test "x$ALL_LINGUAS" = "x"; then
11090 LINGUAS=
11091 else
11092 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11093 $as_echo_n "checking for catalogs to be installed... " >&6; }
11094 NEW_LINGUAS=
11095 for presentlang in $ALL_LINGUAS; do
11096 useit=no
11097 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
11098 desiredlanguages="$LINGUAS"
11099 else
11100 desiredlanguages="$ALL_LINGUAS"
11101 fi
11102 for desiredlang in $desiredlanguages; do
11103 # Use the presentlang catalog if desiredlang is
11104 # a. equal to presentlang, or
11105 # b. a variant of presentlang (because in this case,
11106 # presentlang can be used as a fallback for messages
11107 # which are not translated in the desiredlang catalog).
11108 case "$desiredlang" in
11109 "$presentlang"*) useit=yes;;
11110 esac
11111 done
11112 if test $useit = yes; then
11113 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
11114 fi
11115 done
11116 LINGUAS=$NEW_LINGUAS
11117 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
11118 $as_echo "$LINGUAS" >&6; }
11119 fi
11121 if test -n "$LINGUAS"; then
11122 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
11123 fi
11124 fi
11126 MKINSTALLDIRS=
11127 if test -n "$ac_aux_dir"; then
11128 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11129 fi
11130 if test -z "$MKINSTALLDIRS"; then
11131 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11132 fi
11135 test -d po || mkdir po
11136 if test "x$srcdir" != "x."; then
11137 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11138 posrcprefix="$srcdir/"
11139 else
11140 posrcprefix="../$srcdir/"
11141 fi
11142 else
11143 posrcprefix="../"
11144 fi
11145 rm -f po/POTFILES
11146 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11147 < $srcdir/po/POTFILES.in > po/POTFILES
11150 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
11152 cat >confcache <<\_ACEOF
11153 # This file is a shell script that caches the results of configure
11154 # tests run on this system so they can be shared between configure
11155 # scripts and configure runs, see configure's option --config-cache.
11156 # It is not useful on other systems. If it contains results you don't
11157 # want to keep, you may remove or edit it.
11158 #
11159 # config.status only pays attention to the cache file if you give it
11160 # the --recheck option to rerun configure.
11161 #
11162 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11163 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11164 # following values.
11166 _ACEOF
11168 # The following way of writing the cache mishandles newlines in values,
11169 # but we know of no workaround that is simple, portable, and efficient.
11170 # So, we kill variables containing newlines.
11171 # Ultrix sh set writes to stderr and can't be redirected directly,
11172 # and sets the high bit in the cache file unless we assign to the vars.
11173 (
11174 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11175 eval ac_val=\$$ac_var
11176 case $ac_val in #(
11177 *${as_nl}*)
11178 case $ac_var in #(
11179 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11180 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11181 esac
11182 case $ac_var in #(
11183 _ | IFS | as_nl) ;; #(
11184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11185 *) $as_unset $ac_var ;;
11186 esac ;;
11187 esac
11188 done
11190 (set) 2>&1 |
11191 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11192 *${as_nl}ac_space=\ *)
11193 # `set' does not quote correctly, so add quotes (double-quote
11194 # substitution turns \\\\ into \\, and sed turns \\ into \).
11195 sed -n \
11196 "s/'/'\\\\''/g;
11197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11198 ;; #(
11199 *)
11200 # `set' quotes correctly as required by POSIX, so do not add quotes.
11201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11202 ;;
11203 esac |
11204 sort
11205 ) |
11206 sed '
11207 /^ac_cv_env_/b end
11208 t clear
11209 :clear
11210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11211 t end
11212 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11213 :end' >>confcache
11214 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11215 if test -w "$cache_file"; then
11216 test "x$cache_file" != "x/dev/null" &&
11217 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11218 $as_echo "$as_me: updating cache $cache_file" >&6;}
11219 cat confcache >$cache_file
11220 else
11221 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11222 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11223 fi
11224 fi
11225 rm -f confcache
11227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11228 # Let make expand exec_prefix.
11229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11231 DEFS=-DHAVE_CONFIG_H
11233 ac_libobjs=
11234 ac_ltlibobjs=
11235 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11236 # 1. Remove the extension, and $U if already installed.
11237 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11238 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11239 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11240 # will be set to the directory where LIBOBJS objects are built.
11241 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11242 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11243 done
11244 LIBOBJS=$ac_libobjs
11246 LTLIBOBJS=$ac_ltlibobjs
11249 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11250 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11251 Usually this means the macro was only invoked conditionally." >&5
11252 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11253 Usually this means the macro was only invoked conditionally." >&2;}
11254 { (exit 1); exit 1; }; }
11255 fi
11256 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11257 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11258 Usually this means the macro was only invoked conditionally." >&5
11259 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11260 Usually this means the macro was only invoked conditionally." >&2;}
11261 { (exit 1); exit 1; }; }
11262 fi
11263 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11264 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11265 Usually this means the macro was only invoked conditionally." >&5
11266 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11267 Usually this means the macro was only invoked conditionally." >&2;}
11268 { (exit 1); exit 1; }; }
11269 fi
11270 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11271 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11272 Usually this means the macro was only invoked conditionally." >&5
11273 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11274 Usually this means the macro was only invoked conditionally." >&2;}
11275 { (exit 1); exit 1; }; }
11276 fi
11277 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11278 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11279 Usually this means the macro was only invoked conditionally." >&5
11280 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11281 Usually this means the macro was only invoked conditionally." >&2;}
11282 { (exit 1); exit 1; }; }
11283 fi
11284 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11285 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11286 Usually this means the macro was only invoked conditionally." >&5
11287 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11288 Usually this means the macro was only invoked conditionally." >&2;}
11289 { (exit 1); exit 1; }; }
11290 fi
11291 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11292 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11293 Usually this means the macro was only invoked conditionally." >&5
11294 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11295 Usually this means the macro was only invoked conditionally." >&2;}
11296 { (exit 1); exit 1; }; }
11297 fi
11298 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11299 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11300 Usually this means the macro was only invoked conditionally." >&5
11301 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11302 Usually this means the macro was only invoked conditionally." >&2;}
11303 { (exit 1); exit 1; }; }
11304 fi
11305 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11306 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11307 Usually this means the macro was only invoked conditionally." >&5
11308 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11309 Usually this means the macro was only invoked conditionally." >&2;}
11310 { (exit 1); exit 1; }; }
11311 fi
11312 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11313 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11314 Usually this means the macro was only invoked conditionally." >&5
11315 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11316 Usually this means the macro was only invoked conditionally." >&2;}
11317 { (exit 1); exit 1; }; }
11318 fi
11319 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11320 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11321 Usually this means the macro was only invoked conditionally." >&5
11322 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11323 Usually this means the macro was only invoked conditionally." >&2;}
11324 { (exit 1); exit 1; }; }
11325 fi
11326 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
11327 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
11328 Usually this means the macro was only invoked conditionally." >&5
11329 $as_echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
11330 Usually this means the macro was only invoked conditionally." >&2;}
11331 { (exit 1); exit 1; }; }
11332 fi
11333 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
11334 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
11335 Usually this means the macro was only invoked conditionally." >&5
11336 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
11337 Usually this means the macro was only invoked conditionally." >&2;}
11338 { (exit 1); exit 1; }; }
11339 fi
11340 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11341 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11342 Usually this means the macro was only invoked conditionally." >&5
11343 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11344 Usually this means the macro was only invoked conditionally." >&2;}
11345 { (exit 1); exit 1; }; }
11346 fi
11347 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11348 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11349 Usually this means the macro was only invoked conditionally." >&5
11350 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11351 Usually this means the macro was only invoked conditionally." >&2;}
11352 { (exit 1); exit 1; }; }
11353 fi
11354 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11355 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11356 Usually this means the macro was only invoked conditionally." >&5
11357 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11358 Usually this means the macro was only invoked conditionally." >&2;}
11359 { (exit 1); exit 1; }; }
11360 fi
11361 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11362 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11363 Usually this means the macro was only invoked conditionally." >&5
11364 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11365 Usually this means the macro was only invoked conditionally." >&2;}
11366 { (exit 1); exit 1; }; }
11367 fi
11368 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11369 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11370 Usually this means the macro was only invoked conditionally." >&5
11371 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11372 Usually this means the macro was only invoked conditionally." >&2;}
11373 { (exit 1); exit 1; }; }
11374 fi
11375 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11376 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11377 Usually this means the macro was only invoked conditionally." >&5
11378 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11379 Usually this means the macro was only invoked conditionally." >&2;}
11380 { (exit 1); exit 1; }; }
11381 fi
11382 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11383 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11384 Usually this means the macro was only invoked conditionally." >&5
11385 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11386 Usually this means the macro was only invoked conditionally." >&2;}
11387 { (exit 1); exit 1; }; }
11388 fi
11390 : ${CONFIG_STATUS=./config.status}
11391 ac_write_fail=0
11392 ac_clean_files_save=$ac_clean_files
11393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11394 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11395 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11396 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397 #! $SHELL
11398 # Generated by $as_me.
11399 # Run this file to recreate the current configuration.
11400 # Compiler output produced by configure, useful for debugging
11401 # configure, is in config.log if it exists.
11403 debug=false
11404 ac_cs_recheck=false
11405 ac_cs_silent=false
11406 SHELL=\${CONFIG_SHELL-$SHELL}
11407 _ACEOF
11409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11410 ## --------------------- ##
11411 ## M4sh Initialization. ##
11412 ## --------------------- ##
11414 # Be more Bourne compatible
11415 DUALCASE=1; export DUALCASE # for MKS sh
11416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11417 emulate sh
11418 NULLCMD=:
11419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11420 # is contrary to our usage. Disable this feature.
11421 alias -g '${1+"$@"}'='"$@"'
11422 setopt NO_GLOB_SUBST
11423 else
11424 case `(set -o) 2>/dev/null` in
11425 *posix*) set -o posix ;;
11426 esac
11428 fi
11433 # PATH needs CR
11434 # Avoid depending upon Character Ranges.
11435 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11436 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11437 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11438 as_cr_digits='0123456789'
11439 as_cr_alnum=$as_cr_Letters$as_cr_digits
11441 as_nl='
11442 '
11443 export as_nl
11444 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11445 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11446 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11447 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11448 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11449 as_echo='printf %s\n'
11450 as_echo_n='printf %s'
11451 else
11452 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11453 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11454 as_echo_n='/usr/ucb/echo -n'
11455 else
11456 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11457 as_echo_n_body='eval
11458 arg=$1;
11459 case $arg in
11460 *"$as_nl"*)
11461 expr "X$arg" : "X\\(.*\\)$as_nl";
11462 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11463 esac;
11464 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11465 '
11466 export as_echo_n_body
11467 as_echo_n='sh -c $as_echo_n_body as_echo'
11468 fi
11469 export as_echo_body
11470 as_echo='sh -c $as_echo_body as_echo'
11471 fi
11473 # The user is always right.
11474 if test "${PATH_SEPARATOR+set}" != set; then
11475 PATH_SEPARATOR=:
11476 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11477 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11478 PATH_SEPARATOR=';'
11479 }
11480 fi
11482 # Support unset when possible.
11483 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11484 as_unset=unset
11485 else
11486 as_unset=false
11487 fi
11490 # IFS
11491 # We need space, tab and new line, in precisely that order. Quoting is
11492 # there to prevent editors from complaining about space-tab.
11493 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11494 # splitting by setting IFS to empty value.)
11495 IFS=" "" $as_nl"
11497 # Find who we are. Look in the path if we contain no directory separator.
11498 case $0 in
11499 *[\\/]* ) as_myself=$0 ;;
11500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
11505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11506 done
11507 IFS=$as_save_IFS
11509 ;;
11510 esac
11511 # We did not find ourselves, most probably we were run as `sh COMMAND'
11512 # in which case we are not to be found in the path.
11513 if test "x$as_myself" = x; then
11514 as_myself=$0
11515 fi
11516 if test ! -f "$as_myself"; then
11517 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11518 { (exit 1); exit 1; }
11519 fi
11521 # Work around bugs in pre-3.0 UWIN ksh.
11522 for as_var in ENV MAIL MAILPATH
11523 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11524 done
11525 PS1='$ '
11526 PS2='> '
11527 PS4='+ '
11529 # NLS nuisances.
11530 LC_ALL=C
11531 export LC_ALL
11532 LANGUAGE=C
11533 export LANGUAGE
11535 # Required to use basename.
11536 if expr a : '\(a\)' >/dev/null 2>&1 &&
11537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11538 as_expr=expr
11539 else
11540 as_expr=false
11541 fi
11543 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11544 as_basename=basename
11545 else
11546 as_basename=false
11547 fi
11550 # Name of the executable.
11551 as_me=`$as_basename -- "$0" ||
11552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11553 X"$0" : 'X\(//\)$' \| \
11554 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11555 $as_echo X/"$0" |
11556 sed '/^.*\/\([^/][^/]*\)\/*$/{
11557 s//\1/
11558 q
11559 }
11560 /^X\/\(\/\/\)$/{
11561 s//\1/
11562 q
11563 }
11564 /^X\/\(\/\).*/{
11565 s//\1/
11566 q
11567 }
11568 s/.*/./; q'`
11570 # CDPATH.
11571 $as_unset CDPATH
11575 as_lineno_1=$LINENO
11576 as_lineno_2=$LINENO
11577 test "x$as_lineno_1" != "x$as_lineno_2" &&
11578 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11580 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11581 # uniformly replaced by the line number. The first 'sed' inserts a
11582 # line-number line after each line using $LINENO; the second 'sed'
11583 # does the real work. The second script uses 'N' to pair each
11584 # line-number line with the line containing $LINENO, and appends
11585 # trailing '-' during substitution so that $LINENO is not a special
11586 # case at line end.
11587 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11588 # scripts with optimization help from Paolo Bonzini. Blame Lee
11589 # E. McMahon (1931-1989) for sed's syntax. :-)
11590 sed -n '
11591 p
11592 /[$]LINENO/=
11593 ' <$as_myself |
11594 sed '
11595 s/[$]LINENO.*/&-/
11596 t lineno
11597 b
11598 :lineno
11599 N
11600 :loop
11601 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11602 t loop
11603 s/-\n.*//
11604 ' >$as_me.lineno &&
11605 chmod +x "$as_me.lineno" ||
11606 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11607 { (exit 1); exit 1; }; }
11609 # Don't try to exec as it changes $[0], causing all sort of problems
11610 # (the dirname of $[0] is not the place where we might find the
11611 # original and so on. Autoconf is especially sensitive to this).
11612 . "./$as_me.lineno"
11613 # Exit status is that of the last command.
11614 exit
11615 }
11618 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11619 as_dirname=dirname
11620 else
11621 as_dirname=false
11622 fi
11624 ECHO_C= ECHO_N= ECHO_T=
11625 case `echo -n x` in
11626 -n*)
11627 case `echo 'x\c'` in
11628 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11629 *) ECHO_C='\c';;
11630 esac;;
11631 *)
11632 ECHO_N='-n';;
11633 esac
11634 if expr a : '\(a\)' >/dev/null 2>&1 &&
11635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11636 as_expr=expr
11637 else
11638 as_expr=false
11639 fi
11641 rm -f conf$$ conf$$.exe conf$$.file
11642 if test -d conf$$.dir; then
11643 rm -f conf$$.dir/conf$$.file
11644 else
11645 rm -f conf$$.dir
11646 mkdir conf$$.dir 2>/dev/null
11647 fi
11648 if (echo >conf$$.file) 2>/dev/null; then
11649 if ln -s conf$$.file conf$$ 2>/dev/null; then
11650 as_ln_s='ln -s'
11651 # ... but there are two gotchas:
11652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11654 # In both cases, we have to default to `cp -p'.
11655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11656 as_ln_s='cp -p'
11657 elif ln conf$$.file conf$$ 2>/dev/null; then
11658 as_ln_s=ln
11659 else
11660 as_ln_s='cp -p'
11661 fi
11662 else
11663 as_ln_s='cp -p'
11664 fi
11665 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11666 rmdir conf$$.dir 2>/dev/null
11668 if mkdir -p . 2>/dev/null; then
11669 as_mkdir_p=:
11670 else
11671 test -d ./-p && rmdir ./-p
11672 as_mkdir_p=false
11673 fi
11675 if test -x / >/dev/null 2>&1; then
11676 as_test_x='test -x'
11677 else
11678 if ls -dL / >/dev/null 2>&1; then
11679 as_ls_L_option=L
11680 else
11681 as_ls_L_option=
11682 fi
11683 as_test_x='
11684 eval sh -c '\''
11685 if test -d "$1"; then
11686 test -d "$1/.";
11687 else
11688 case $1 in
11689 -*)set "./$1";;
11690 esac;
11691 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11692 ???[sx]*):;;*)false;;esac;fi
11693 '\'' sh
11694 '
11695 fi
11696 as_executable_p=$as_test_x
11698 # Sed expression to map a string onto a valid CPP name.
11699 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11701 # Sed expression to map a string onto a valid variable name.
11702 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11705 exec 6>&1
11707 # Save the log message, to keep $[0] and so on meaningful, and to
11708 # report actual input values of CONFIG_FILES etc. instead of their
11709 # values after options handling.
11710 ac_log="
11711 This file was extended by $as_me, which was
11712 generated by GNU Autoconf 2.62. Invocation command line was
11714 CONFIG_FILES = $CONFIG_FILES
11715 CONFIG_HEADERS = $CONFIG_HEADERS
11716 CONFIG_LINKS = $CONFIG_LINKS
11717 CONFIG_COMMANDS = $CONFIG_COMMANDS
11718 $ $0 $@
11720 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11721 "
11723 _ACEOF
11725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11726 # Files that config.status was made for.
11727 config_files="$ac_config_files"
11728 config_headers="$ac_config_headers"
11729 config_commands="$ac_config_commands"
11731 _ACEOF
11733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11734 ac_cs_usage="\
11735 \`$as_me' instantiates files from templates according to the
11736 current configuration.
11738 Usage: $0 [OPTIONS] [FILE]...
11740 -h, --help print this help, then exit
11741 -V, --version print version number and configuration settings, then exit
11742 -q, --quiet do not print progress messages
11743 -d, --debug don't remove temporary files
11744 --recheck update $as_me by reconfiguring in the same conditions
11745 --file=FILE[:TEMPLATE]
11746 instantiate the configuration file FILE
11747 --header=FILE[:TEMPLATE]
11748 instantiate the configuration header FILE
11750 Configuration files:
11751 $config_files
11753 Configuration headers:
11754 $config_headers
11756 Configuration commands:
11757 $config_commands
11759 Report bugs to <bug-autoconf@gnu.org>."
11761 _ACEOF
11762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11763 ac_cs_version="\\
11764 config.status
11765 configured by $0, generated by GNU Autoconf 2.62,
11766 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11768 Copyright (C) 2008 Free Software Foundation, Inc.
11769 This config.status script is free software; the Free Software Foundation
11770 gives unlimited permission to copy, distribute and modify it."
11772 ac_pwd='$ac_pwd'
11773 srcdir='$srcdir'
11774 INSTALL='$INSTALL'
11775 AWK='$AWK'
11776 test -n "\$AWK" || AWK=awk
11777 _ACEOF
11779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11780 # The default lists apply if the user does not specify any file.
11781 ac_need_defaults=:
11782 while test $# != 0
11783 do
11784 case $1 in
11785 --*=*)
11786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11787 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11788 ac_shift=:
11789 ;;
11790 *)
11791 ac_option=$1
11792 ac_optarg=$2
11793 ac_shift=shift
11794 ;;
11795 esac
11797 case $ac_option in
11798 # Handling of the options.
11799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11800 ac_cs_recheck=: ;;
11801 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11802 $as_echo "$ac_cs_version"; exit ;;
11803 --debug | --debu | --deb | --de | --d | -d )
11804 debug=: ;;
11805 --file | --fil | --fi | --f )
11806 $ac_shift
11807 case $ac_optarg in
11808 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11809 esac
11810 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11811 ac_need_defaults=false;;
11812 --header | --heade | --head | --hea )
11813 $ac_shift
11814 case $ac_optarg in
11815 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11816 esac
11817 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11818 ac_need_defaults=false;;
11819 --he | --h)
11820 # Conflict between --help and --header
11821 { $as_echo "$as_me: error: ambiguous option: $1
11822 Try \`$0 --help' for more information." >&2
11823 { (exit 1); exit 1; }; };;
11824 --help | --hel | -h )
11825 $as_echo "$ac_cs_usage"; exit ;;
11826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11827 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11828 ac_cs_silent=: ;;
11830 # This is an error.
11831 -*) { $as_echo "$as_me: error: unrecognized option: $1
11832 Try \`$0 --help' for more information." >&2
11833 { (exit 1); exit 1; }; } ;;
11835 *) ac_config_targets="$ac_config_targets $1"
11836 ac_need_defaults=false ;;
11838 esac
11839 shift
11840 done
11842 ac_configure_extra_args=
11844 if $ac_cs_silent; then
11845 exec 6>/dev/null
11846 ac_configure_extra_args="$ac_configure_extra_args --silent"
11847 fi
11849 _ACEOF
11850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11851 if \$ac_cs_recheck; then
11852 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11853 shift
11854 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11855 CONFIG_SHELL='$SHELL'
11856 export CONFIG_SHELL
11857 exec "\$@"
11858 fi
11860 _ACEOF
11861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11862 exec 5>>config.log
11863 {
11864 echo
11865 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11866 ## Running $as_me. ##
11867 _ASBOX
11868 $as_echo "$ac_log"
11869 } >&5
11871 _ACEOF
11872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11873 #
11874 # INIT-COMMANDS
11875 #
11876 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11879 _ACEOF
11881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 # Handling of arguments.
11884 for ac_config_target in $ac_config_targets
11885 do
11886 case $ac_config_target in
11887 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11888 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11889 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11890 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11891 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11892 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11893 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11895 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11896 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11897 { (exit 1); exit 1; }; };;
11898 esac
11899 done
11902 # If the user did not use the arguments to specify the items to instantiate,
11903 # then the envvar interface is used. Set only those that are not.
11904 # We use the long form for the default assignment because of an extremely
11905 # bizarre bug on SunOS 4.1.3.
11906 if $ac_need_defaults; then
11907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11910 fi
11912 # Have a temporary directory for convenience. Make it in the build tree
11913 # simply because there is no reason against having it here, and in addition,
11914 # creating and moving files from /tmp can sometimes cause problems.
11915 # Hook for its removal unless debugging.
11916 # Note that there is a small window in which the directory will not be cleaned:
11917 # after its creation but before its name has been assigned to `$tmp'.
11918 $debug ||
11919 {
11920 tmp=
11921 trap 'exit_status=$?
11922 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11923 ' 0
11924 trap '{ (exit 1); exit 1; }' 1 2 13 15
11925 }
11926 # Create a (secure) tmp directory for tmp files.
11928 {
11929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11930 test -n "$tmp" && test -d "$tmp"
11931 } ||
11932 {
11933 tmp=./conf$$-$RANDOM
11934 (umask 077 && mkdir "$tmp")
11935 } ||
11936 {
11937 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11938 { (exit 1); exit 1; }
11939 }
11941 # Set up the scripts for CONFIG_FILES section.
11942 # No need to generate them if there are no CONFIG_FILES.
11943 # This happens for instance with `./config.status config.h'.
11944 if test -n "$CONFIG_FILES"; then
11947 ac_cr='
11948 '
11949 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11950 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11951 ac_cs_awk_cr='\\r'
11952 else
11953 ac_cs_awk_cr=$ac_cr
11954 fi
11956 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11957 _ACEOF
11960 {
11961 echo "cat >conf$$subs.awk <<_ACEOF" &&
11962 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11963 echo "_ACEOF"
11964 } >conf$$subs.sh ||
11965 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11966 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11967 { (exit 1); exit 1; }; }
11968 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11969 ac_delim='%!_!# '
11970 for ac_last_try in false false false false false :; do
11971 . ./conf$$subs.sh ||
11972 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11973 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11974 { (exit 1); exit 1; }; }
11976 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11977 break
11978 elif $ac_last_try; then
11979 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11980 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11981 { (exit 1); exit 1; }; }
11982 else
11983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11984 fi
11985 done
11986 rm -f conf$$subs.sh
11988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11989 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11990 _ACEOF
11991 sed -n '
11992 h
11993 s/^/S["/; s/!.*/"]=/
11994 p
11995 g
11996 s/^[^!]*!//
11997 :repl
11998 t repl
11999 s/'"$ac_delim"'$//
12000 t delim
12001 :nl
12002 h
12003 s/\(.\{148\}\).*/\1/
12004 t more1
12005 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12006 p
12007 n
12008 b repl
12009 :more1
12010 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12011 p
12012 g
12013 s/.\{148\}//
12014 t nl
12015 :delim
12016 h
12017 s/\(.\{148\}\).*/\1/
12018 t more2
12019 s/["\\]/\\&/g; s/^/"/; s/$/"/
12020 p
12021 b
12022 :more2
12023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12024 p
12025 g
12026 s/.\{148\}//
12027 t delim
12028 ' <conf$$subs.awk | sed '
12029 /^[^""]/{
12030 N
12031 s/\n//
12032 }
12033 ' >>$CONFIG_STATUS || ac_write_fail=1
12034 rm -f conf$$subs.awk
12035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12036 _ACAWK
12037 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12038 for (key in S) S_is_set[key] = 1
12039 FS = ""
12041 }
12042 {
12043 line = $ 0
12044 nfields = split(line, field, "@")
12045 substed = 0
12046 len = length(field[1])
12047 for (i = 2; i < nfields; i++) {
12048 key = field[i]
12049 keylen = length(key)
12050 if (S_is_set[key]) {
12051 value = S[key]
12052 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12053 len += length(value) + length(field[++i])
12054 substed = 1
12055 } else
12056 len += 1 + keylen
12057 }
12059 print line
12060 }
12062 _ACAWK
12063 _ACEOF
12064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12065 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12066 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12067 else
12068 cat
12069 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12070 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12071 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12072 { (exit 1); exit 1; }; }
12073 _ACEOF
12075 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12076 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12077 # trailing colons and then remove the whole line if VPATH becomes empty
12078 # (actually we leave an empty line to preserve line numbers).
12079 if test "x$srcdir" = x.; then
12080 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12081 s/:*\$(srcdir):*/:/
12082 s/:*\${srcdir}:*/:/
12083 s/:*@srcdir@:*/:/
12084 s/^\([^=]*=[ ]*\):*/\1/
12085 s/:*$//
12086 s/^[^=]*=[ ]*$//
12087 }'
12088 fi
12090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12091 fi # test -n "$CONFIG_FILES"
12093 # Set up the scripts for CONFIG_HEADERS section.
12094 # No need to generate them if there are no CONFIG_HEADERS.
12095 # This happens for instance with `./config.status Makefile'.
12096 if test -n "$CONFIG_HEADERS"; then
12097 cat >"$tmp/defines.awk" <<\_ACAWK ||
12098 BEGIN {
12099 _ACEOF
12101 # Transform confdefs.h into an awk script `defines.awk', embedded as
12102 # here-document in config.status, that substitutes the proper values into
12103 # config.h.in to produce config.h.
12105 # Create a delimiter string that does not exist in confdefs.h, to ease
12106 # handling of long lines.
12107 ac_delim='%!_!# '
12108 for ac_last_try in false false :; do
12109 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12110 if test -z "$ac_t"; then
12111 break
12112 elif $ac_last_try; then
12113 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12114 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12115 { (exit 1); exit 1; }; }
12116 else
12117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12118 fi
12119 done
12121 # For the awk script, D is an array of macro values keyed by name,
12122 # likewise P contains macro parameters if any. Preserve backslash
12123 # newline sequences.
12125 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12126 sed -n '
12127 s/.\{148\}/&'"$ac_delim"'/g
12128 t rset
12129 :rset
12130 s/^[ ]*#[ ]*define[ ][ ]*/ /
12131 t def
12132 d
12133 :def
12134 s/\\$//
12135 t bsnl
12136 s/["\\]/\\&/g
12137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12138 D["\1"]=" \3"/p
12139 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12140 d
12141 :bsnl
12142 s/["\\]/\\&/g
12143 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12144 D["\1"]=" \3\\\\\\n"\\/p
12145 t cont
12146 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12147 t cont
12148 d
12149 :cont
12150 n
12151 s/.\{148\}/&'"$ac_delim"'/g
12152 t clear
12153 :clear
12154 s/\\$//
12155 t bsnlc
12156 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12157 d
12158 :bsnlc
12159 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12160 b cont
12161 ' <confdefs.h | sed '
12162 s/'"$ac_delim"'/"\\\
12163 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12166 for (key in D) D_is_set[key] = 1
12167 FS = ""
12168 }
12169 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12170 line = \$ 0
12171 split(line, arg, " ")
12172 if (arg[1] == "#") {
12173 defundef = arg[2]
12174 mac1 = arg[3]
12175 } else {
12176 defundef = substr(arg[1], 2)
12177 mac1 = arg[2]
12178 }
12179 split(mac1, mac2, "(") #)
12180 macro = mac2[1]
12181 if (D_is_set[macro]) {
12182 # Preserve the white space surrounding the "#".
12183 prefix = substr(line, 1, index(line, defundef) - 1)
12184 print prefix "define", macro P[macro] D[macro]
12185 next
12186 } else {
12187 # Replace #undef with comments. This is necessary, for example,
12188 # in the case of _POSIX_SOURCE, which is predefined and required
12189 # on some systems where configure will not decide to define it.
12190 if (defundef == "undef") {
12191 print "/*", line, "*/"
12192 next
12193 }
12194 }
12195 }
12196 { print }
12197 _ACAWK
12198 _ACEOF
12199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12200 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12201 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12202 { (exit 1); exit 1; }; }
12203 fi # test -n "$CONFIG_HEADERS"
12206 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12207 shift
12208 for ac_tag
12209 do
12210 case $ac_tag in
12211 :[FHLC]) ac_mode=$ac_tag; continue;;
12212 esac
12213 case $ac_mode$ac_tag in
12214 :[FHL]*:*);;
12215 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12216 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12217 { (exit 1); exit 1; }; };;
12218 :[FH]-) ac_tag=-:-;;
12219 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12220 esac
12221 ac_save_IFS=$IFS
12222 IFS=:
12223 set x $ac_tag
12224 IFS=$ac_save_IFS
12225 shift
12226 ac_file=$1
12227 shift
12229 case $ac_mode in
12230 :L) ac_source=$1;;
12231 :[FH])
12232 ac_file_inputs=
12233 for ac_f
12234 do
12235 case $ac_f in
12236 -) ac_f="$tmp/stdin";;
12237 *) # Look for the file first in the build tree, then in the source tree
12238 # (if the path is not absolute). The absolute path cannot be DOS-style,
12239 # because $ac_f cannot contain `:'.
12240 test -f "$ac_f" ||
12241 case $ac_f in
12242 [\\/$]*) false;;
12243 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12244 esac ||
12245 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12246 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12247 { (exit 1); exit 1; }; };;
12248 esac
12249 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12250 ac_file_inputs="$ac_file_inputs '$ac_f'"
12251 done
12253 # Let's still pretend it is `configure' which instantiates (i.e., don't
12254 # use $as_me), people would be surprised to read:
12255 # /* config.h. Generated by config.status. */
12256 configure_input='Generated from '`
12257 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12258 `' by configure.'
12259 if test x"$ac_file" != x-; then
12260 configure_input="$ac_file. $configure_input"
12261 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12262 $as_echo "$as_me: creating $ac_file" >&6;}
12263 fi
12264 # Neutralize special characters interpreted by sed in replacement strings.
12265 case $configure_input in #(
12266 *\&* | *\|* | *\\* )
12267 ac_sed_conf_input=`$as_echo "$configure_input" |
12268 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12269 *) ac_sed_conf_input=$configure_input;;
12270 esac
12272 case $ac_tag in
12273 *:-:* | *:-) cat >"$tmp/stdin" \
12274 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12275 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12276 { (exit 1); exit 1; }; } ;;
12277 esac
12278 ;;
12279 esac
12281 ac_dir=`$as_dirname -- "$ac_file" ||
12282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12283 X"$ac_file" : 'X\(//\)[^/]' \| \
12284 X"$ac_file" : 'X\(//\)$' \| \
12285 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12286 $as_echo X"$ac_file" |
12287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12288 s//\1/
12289 q
12290 }
12291 /^X\(\/\/\)[^/].*/{
12292 s//\1/
12293 q
12294 }
12295 /^X\(\/\/\)$/{
12296 s//\1/
12297 q
12298 }
12299 /^X\(\/\).*/{
12300 s//\1/
12301 q
12302 }
12303 s/.*/./; q'`
12304 { as_dir="$ac_dir"
12305 case $as_dir in #(
12306 -*) as_dir=./$as_dir;;
12307 esac
12308 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12309 as_dirs=
12310 while :; do
12311 case $as_dir in #(
12312 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12313 *) as_qdir=$as_dir;;
12314 esac
12315 as_dirs="'$as_qdir' $as_dirs"
12316 as_dir=`$as_dirname -- "$as_dir" ||
12317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12318 X"$as_dir" : 'X\(//\)[^/]' \| \
12319 X"$as_dir" : 'X\(//\)$' \| \
12320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12321 $as_echo X"$as_dir" |
12322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12323 s//\1/
12324 q
12325 }
12326 /^X\(\/\/\)[^/].*/{
12327 s//\1/
12328 q
12329 }
12330 /^X\(\/\/\)$/{
12331 s//\1/
12332 q
12333 }
12334 /^X\(\/\).*/{
12335 s//\1/
12336 q
12337 }
12338 s/.*/./; q'`
12339 test -d "$as_dir" && break
12340 done
12341 test -z "$as_dirs" || eval "mkdir $as_dirs"
12342 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12343 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12344 { (exit 1); exit 1; }; }; }
12345 ac_builddir=.
12347 case "$ac_dir" in
12348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12349 *)
12350 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12351 # A ".." for each directory in $ac_dir_suffix.
12352 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12353 case $ac_top_builddir_sub in
12354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12356 esac ;;
12357 esac
12358 ac_abs_top_builddir=$ac_pwd
12359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12360 # for backward compatibility:
12361 ac_top_builddir=$ac_top_build_prefix
12363 case $srcdir in
12364 .) # We are building in place.
12365 ac_srcdir=.
12366 ac_top_srcdir=$ac_top_builddir_sub
12367 ac_abs_top_srcdir=$ac_pwd ;;
12368 [\\/]* | ?:[\\/]* ) # Absolute name.
12369 ac_srcdir=$srcdir$ac_dir_suffix;
12370 ac_top_srcdir=$srcdir
12371 ac_abs_top_srcdir=$srcdir ;;
12372 *) # Relative name.
12373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12374 ac_top_srcdir=$ac_top_build_prefix$srcdir
12375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12376 esac
12377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12380 case $ac_mode in
12381 :F)
12382 #
12383 # CONFIG_FILE
12384 #
12386 case $INSTALL in
12387 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12388 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12389 esac
12390 _ACEOF
12392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12393 # If the template does not know about datarootdir, expand it.
12394 # FIXME: This hack should be removed a few years after 2.60.
12395 ac_datarootdir_hack=; ac_datarootdir_seen=
12397 ac_sed_dataroot='
12398 /datarootdir/ {
12399 p
12400 q
12401 }
12402 /@datadir@/p
12403 /@docdir@/p
12404 /@infodir@/p
12405 /@localedir@/p
12406 /@mandir@/p
12407 '
12408 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12409 *datarootdir*) ac_datarootdir_seen=yes;;
12410 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12411 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12412 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12413 _ACEOF
12414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12415 ac_datarootdir_hack='
12416 s&@datadir@&$datadir&g
12417 s&@docdir@&$docdir&g
12418 s&@infodir@&$infodir&g
12419 s&@localedir@&$localedir&g
12420 s&@mandir@&$mandir&g
12421 s&\\\${datarootdir}&$datarootdir&g' ;;
12422 esac
12423 _ACEOF
12425 # Neutralize VPATH when `$srcdir' = `.'.
12426 # Shell code in configure.ac might set extrasub.
12427 # FIXME: do we really want to maintain this feature?
12428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12429 ac_sed_extra="$ac_vpsub
12430 $extrasub
12431 _ACEOF
12432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12433 :t
12434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12435 s|@configure_input@|$ac_sed_conf_input|;t t
12436 s&@top_builddir@&$ac_top_builddir_sub&;t t
12437 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12438 s&@srcdir@&$ac_srcdir&;t t
12439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12440 s&@top_srcdir@&$ac_top_srcdir&;t t
12441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12442 s&@builddir@&$ac_builddir&;t t
12443 s&@abs_builddir@&$ac_abs_builddir&;t t
12444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12445 s&@INSTALL@&$ac_INSTALL&;t t
12446 $ac_datarootdir_hack
12447 "
12448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12451 { (exit 1); exit 1; }; }
12453 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12454 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12455 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12456 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12457 which seems to be undefined. Please make sure it is defined." >&5
12458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12459 which seems to be undefined. Please make sure it is defined." >&2;}
12461 rm -f "$tmp/stdin"
12462 case $ac_file in
12463 -) cat "$tmp/out" && rm -f "$tmp/out";;
12464 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12465 esac \
12466 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12467 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12468 { (exit 1); exit 1; }; }
12469 ;;
12470 :H)
12471 #
12472 # CONFIG_HEADER
12473 #
12474 if test x"$ac_file" != x-; then
12475 {
12476 $as_echo "/* $configure_input */" \
12477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12478 } >"$tmp/config.h" \
12479 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12480 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12481 { (exit 1); exit 1; }; }
12482 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12483 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12484 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12485 else
12486 rm -f "$ac_file"
12487 mv "$tmp/config.h" "$ac_file" \
12488 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12489 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12490 { (exit 1); exit 1; }; }
12491 fi
12492 else
12493 $as_echo "/* $configure_input */" \
12494 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12495 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12496 $as_echo "$as_me: error: could not create -" >&2;}
12497 { (exit 1); exit 1; }; }
12498 fi
12499 # Compute "$ac_file"'s index in $config_headers.
12500 _am_stamp_count=1
12501 for _am_header in $config_headers :; do
12502 case $_am_header in
12503 "$ac_file" | "$ac_file":* )
12504 break ;;
12505 * )
12506 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12507 esac
12508 done
12509 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12511 X"$ac_file" : 'X\(//\)[^/]' \| \
12512 X"$ac_file" : 'X\(//\)$' \| \
12513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12514 $as_echo X"$ac_file" |
12515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12516 s//\1/
12517 q
12518 }
12519 /^X\(\/\/\)[^/].*/{
12520 s//\1/
12521 q
12522 }
12523 /^X\(\/\/\)$/{
12524 s//\1/
12525 q
12526 }
12527 /^X\(\/\).*/{
12528 s//\1/
12529 q
12530 }
12531 s/.*/./; q'`/stamp-h$_am_stamp_count
12532 ;;
12534 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12535 $as_echo "$as_me: executing $ac_file commands" >&6;}
12536 ;;
12537 esac
12540 case $ac_file$ac_mode in
12541 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12542 # Strip MF so we end up with the name of the file.
12543 mf=`echo "$mf" | sed -e 's/:.*$//'`
12544 # Check whether this is an Automake generated Makefile or not.
12545 # We used to match only the files named `Makefile.in', but
12546 # some people rename them; so instead we look at the file content.
12547 # Grep'ing the first line is not enough: some people post-process
12548 # each Makefile.in and add a new line on top of each file to say so.
12549 # So let's grep whole file.
12550 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12551 dirpart=`$as_dirname -- "$mf" ||
12552 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12553 X"$mf" : 'X\(//\)[^/]' \| \
12554 X"$mf" : 'X\(//\)$' \| \
12555 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12556 $as_echo X"$mf" |
12557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12558 s//\1/
12559 q
12560 }
12561 /^X\(\/\/\)[^/].*/{
12562 s//\1/
12563 q
12564 }
12565 /^X\(\/\/\)$/{
12566 s//\1/
12567 q
12568 }
12569 /^X\(\/\).*/{
12570 s//\1/
12571 q
12572 }
12573 s/.*/./; q'`
12574 else
12575 continue
12576 fi
12577 # Extract the definition of DEPDIR, am__include, and am__quote
12578 # from the Makefile without running `make'.
12579 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12580 test -z "$DEPDIR" && continue
12581 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12582 test -z "am__include" && continue
12583 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12584 # When using ansi2knr, U may be empty or an underscore; expand it
12585 U=`sed -n 's/^U = //p' < "$mf"`
12586 # Find all dependency output files, they are included files with
12587 # $(DEPDIR) in their names. We invoke sed twice because it is the
12588 # simplest approach to changing $(DEPDIR) to its actual value in the
12589 # expansion.
12590 for file in `sed -n "
12591 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12592 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12593 # Make sure the directory exists.
12594 test -f "$dirpart/$file" && continue
12595 fdir=`$as_dirname -- "$file" ||
12596 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12597 X"$file" : 'X\(//\)[^/]' \| \
12598 X"$file" : 'X\(//\)$' \| \
12599 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12600 $as_echo X"$file" |
12601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12602 s//\1/
12603 q
12604 }
12605 /^X\(\/\/\)[^/].*/{
12606 s//\1/
12607 q
12608 }
12609 /^X\(\/\/\)$/{
12610 s//\1/
12611 q
12612 }
12613 /^X\(\/\).*/{
12614 s//\1/
12615 q
12616 }
12617 s/.*/./; q'`
12618 { as_dir=$dirpart/$fdir
12619 case $as_dir in #(
12620 -*) as_dir=./$as_dir;;
12621 esac
12622 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12623 as_dirs=
12624 while :; do
12625 case $as_dir in #(
12626 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12627 *) as_qdir=$as_dir;;
12628 esac
12629 as_dirs="'$as_qdir' $as_dirs"
12630 as_dir=`$as_dirname -- "$as_dir" ||
12631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12632 X"$as_dir" : 'X\(//\)[^/]' \| \
12633 X"$as_dir" : 'X\(//\)$' \| \
12634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12635 $as_echo X"$as_dir" |
12636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12637 s//\1/
12638 q
12639 }
12640 /^X\(\/\/\)[^/].*/{
12641 s//\1/
12642 q
12643 }
12644 /^X\(\/\/\)$/{
12645 s//\1/
12646 q
12647 }
12648 /^X\(\/\).*/{
12649 s//\1/
12650 q
12651 }
12652 s/.*/./; q'`
12653 test -d "$as_dir" && break
12654 done
12655 test -z "$as_dirs" || eval "mkdir $as_dirs"
12656 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12657 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12658 { (exit 1); exit 1; }; }; }
12659 # echo "creating $dirpart/$file"
12660 echo '# dummy' > "$dirpart/$file"
12661 done
12662 done
12663 ;;
12664 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
12665 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
12666 esac ;;
12668 esac
12669 done # for ac_tag
12672 { (exit 0); exit 0; }
12673 _ACEOF
12674 chmod +x $CONFIG_STATUS
12675 ac_clean_files=$ac_clean_files_save
12677 test $ac_write_fail = 0 ||
12678 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12679 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12680 { (exit 1); exit 1; }; }
12683 # configure is writing to config.log, and then calls config.status.
12684 # config.status does its own redirection, appending to config.log.
12685 # Unfortunately, on DOS this fails, as config.log is still kept open
12686 # by configure, so config.status won't be able to write to it; its
12687 # output is simply discarded. So we exec the FD to /dev/null,
12688 # effectively closing config.log, so it can be properly (re)opened and
12689 # appended to by config.status. When coming back to configure, we
12690 # need to make the FD available again.
12691 if test "$no_create" != yes; then
12692 ac_cs_success=:
12693 ac_config_status_args=
12694 test "$silent" = yes &&
12695 ac_config_status_args="$ac_config_status_args --quiet"
12696 exec 5>/dev/null
12697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12698 exec 5>>config.log
12699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12700 # would make configure fail if this is the last instruction.
12701 $ac_cs_success || { (exit 1); exit 1; }
12702 fi
12703 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12704 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12705 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
12706 fi
.