filename | configure |
changeset | 966:0f0320cb3650 |
prev | 964:f2f3c7612d06 |
next | 977:8514fb4bc101 |
author | nkeynes |
date | Thu Jan 22 02:58:13 2009 +0000 (15 years ago) |
permissions | -rwxr-xr-x |
last change | Fix 1k-entry allocation Break asid remap into two passes for simplicity |
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 OBJC
716 OBJCFLAGS
717 ac_ct_OBJC
718 SED
719 CCAS
720 CCASFLAGS
721 CPP
722 GREP
723 EGREP
724 build
725 build_cpu
726 build_vendor
727 build_os
728 host
729 host_cpu
730 host_vendor
731 host_os
732 OBJCDEPMODE
733 am__fastdepOBJC_TRUE
734 am__fastdepOBJC_FALSE
735 POD2MAN
736 POD2HTML
737 OBJCPP
738 GUI_COCOA_TRUE
739 GUI_COCOA_FALSE
740 PKG_CONFIG
741 LIBPNG_CFLAGS
742 LIBPNG_LIBS
743 GLIB_CFLAGS
744 GLIB_LIBS
745 GTK_CFLAGS
746 GTK_LIBS
747 GUI_GTK_TRUE
748 GUI_GTK_FALSE
749 VIDEO_OSMESA_TRUE
750 VIDEO_OSMESA_FALSE
751 VIDEO_GLX_TRUE
752 VIDEO_GLX_FALSE
753 VIDEO_NSGL_TRUE
754 VIDEO_NSGL_FALSE
755 BUILD_SH4X86_TRUE
756 BUILD_SH4X86_FALSE
757 AUDIO_OSX_TRUE
758 AUDIO_OSX_FALSE
759 PULSE_CFLAGS
760 PULSE_LIBS
761 AUDIO_PULSE_TRUE
762 AUDIO_PULSE_FALSE
763 ESOUND_CFLAGS
764 ESOUND_LIBS
765 AUDIO_ESOUND_TRUE
766 AUDIO_ESOUND_FALSE
767 ALSA_CFLAGS
768 ALSA_LIBS
769 AUDIO_ALSA_TRUE
770 AUDIO_ALSA_FALSE
771 CDROM_LINUX_TRUE
772 CDROM_LINUX_FALSE
773 CDROM_OSX_TRUE
774 CDROM_OSX_FALSE
775 CDROM_NONE_TRUE
776 CDROM_NONE_FALSE
777 JOY_LINUX_TRUE
778 JOY_LINUX_FALSE
779 SHCC
780 SHLD
781 SHOBJCOPY
782 ARMCC
783 ARMLD
784 ARMOBJCOPY
785 BUILD_SYSTEST_TRUE
786 BUILD_SYSTEST_FALSE
787 BUILD_ARMTEST_TRUE
788 BUILD_ARMTEST_FALSE
789 GETTEXT_PACKAGE
790 USE_NLS
791 MSGFMT
792 MSGFMT_OPTS
793 GMSGFMT
794 XGETTEXT
795 CATALOGS
796 CATOBJEXT
797 DATADIRNAME
798 GMOFILES
799 INSTOBJEXT
800 INTLLIBS
801 PO_IN_DATADIR_TRUE
802 PO_IN_DATADIR_FALSE
803 POFILES
804 POSUB
805 MKINSTALLDIRS
806 LIBOBJS
807 LTLIBOBJS'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_maintainer_mode
812 enable_dependency_tracking
813 enable_strict_warn
814 enable_translator
815 enable_optimized
816 enable_profiled
817 enable_trace
818 enable_watch
819 enable_sh4stats
820 with_osmesa
821 with_gtk
822 with_esd
823 with_pulse
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 OBJC
834 OBJCFLAGS
835 CCAS
836 CCASFLAGS
837 CPP
838 OBJCPP
839 PKG_CONFIG
840 LIBPNG_CFLAGS
841 LIBPNG_LIBS
842 GLIB_CFLAGS
843 GLIB_LIBS
844 GTK_CFLAGS
845 GTK_LIBS
846 PULSE_CFLAGS
847 PULSE_LIBS
848 ESOUND_CFLAGS
849 ESOUND_LIBS
850 ALSA_CFLAGS
851 ALSA_LIBS'
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 ac_unrecognized_opts=
858 ac_unrecognized_sep=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
861 cache_file=/dev/null
862 exec_prefix=NONE
863 no_create=
864 no_recursion=
865 prefix=NONE
866 program_prefix=NONE
867 program_suffix=NONE
868 program_transform_name=s,x,x,
869 silent=
870 site=
871 srcdir=
872 verbose=
873 x_includes=NONE
874 x_libraries=NONE
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE}'
893 infodir='${datarootdir}/info'
894 htmldir='${docdir}'
895 dvidir='${docdir}'
896 pdfdir='${docdir}'
897 psdir='${docdir}'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
902 ac_prev=
903 ac_dashdash=
904 for ac_option
905 do
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
911 fi
913 case $ac_option in
914 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *) ac_optarg=yes ;;
916 esac
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
921 --)
922 ac_dashdash=yes ;;
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
941 --config-cache | -C)
942 cache_file=config.cache ;;
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
961 { (exit 1); exit 1; }; }
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
988 { (exit 1); exit 1; }; }
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1210 { (exit 1); exit 1; }; }
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1240 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1241 Try \`$0 --help' for more information." >&2
1242 { (exit 1); exit 1; }; }
1243 ;;
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1249 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1250 { (exit 1); exit 1; }; }
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 ;;
1262 esac
1263 done
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1268 { (exit 1); exit 1; }; }
1269 fi
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1275 { (exit 1); exit 1; }; } ;;
1276 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1300 done
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures this package to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1459 cat <<\_ACEOF
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1472 if test -n "$ac_init_help"; then
1474 cat <<\_ACEOF
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-maintainer-mode enable make rules and dependencies not useful
1481 (and sometimes confusing) to the casual installer
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-strict-warn Enable strict compilation warnings
1485 --disable-translator Disable the SH4 translator (Enabled by default)
1486 --disable-optimized Disable compile-time optimizations (Enabled by
1487 default)
1488 --enable-profiled Enable profiling build
1489 --enable-trace Enable generation of IO traces (warning: hurts
1490 performance)
1491 --enable-watch Enable watchpoints in the debugger (warning: hurts
1492 performance)
1493 --enable-sh4stats Enable statistics on executed sh4 instructions
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-osmesa Build with the osmesa GL library (software
1499 rendering)
1500 --with-gtk Build with the GTK UI. Default on X11 systems
1501 --with-esd Build with support for the ESounD audio system
1502 --with-pulse Build with support for the PulseAudio audio system
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 OBJC Objective C compiler command
1513 OBJCFLAGS Objective C compiler flags
1514 CCAS assembler compiler command (defaults to CC)
1515 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1516 CPP C preprocessor
1517 OBJCPP Objective C preprocessor
1518 PKG_CONFIG path to pkg-config utility
1519 LIBPNG_CFLAGS
1520 C compiler flags for LIBPNG, overriding pkg-config
1521 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1522 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1523 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1524 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1525 GTK_LIBS linker flags for GTK, overriding pkg-config
1526 PULSE_CFLAGS
1527 C compiler flags for PULSE, overriding pkg-config
1528 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1529 ESOUND_CFLAGS
1530 C compiler flags for ESOUND, overriding pkg-config
1531 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1532 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1533 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1595 fi
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 configure
1601 generated by GNU Autoconf 2.62
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1609 fi
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1614 It was created by $as_me, which was
1615 generated by GNU Autoconf 2.62. Invocation command line was
1617 $ $0 $@
1619 _ACEOF
1620 exec 5>>config.log
1621 {
1622 cat <<_ASUNAME
1623 ## --------- ##
1624 ## Platform. ##
1625 ## --------- ##
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644 _ASUNAME
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 $as_echo "PATH: $as_dir"
1652 done
1653 IFS=$as_save_IFS
1655 } >&5
1657 cat >&5 <<_ACEOF
1660 ## ----------- ##
1661 ## Core tests. ##
1662 ## ----------- ##
1664 _ACEOF
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1672 ac_configure_args=
1673 ac_configure_args0=
1674 ac_configure_args1=
1675 ac_must_keep_next=false
1676 for ac_pass in 1 2
1677 do
1678 for ac_arg
1679 do
1680 case $ac_arg in
1681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1684 continue ;;
1685 *\'*)
1686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1687 esac
1688 case $ac_pass in
1689 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1690 2)
1691 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692 if test $ac_must_keep_next = true; then
1693 ac_must_keep_next=false # Got value, back to normal.
1694 else
1695 case $ac_arg in
1696 *=* | --config-cache | -C | -disable-* | --disable-* \
1697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699 | -with-* | --with-* | -without-* | --without-* | --x)
1700 case "$ac_configure_args0 " in
1701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702 esac
1703 ;;
1704 -* ) ac_must_keep_next=true ;;
1705 esac
1706 fi
1707 ac_configure_args="$ac_configure_args '$ac_arg'"
1708 ;;
1709 esac
1710 done
1711 done
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log. We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721 # Save into config.log some information that might help in debugging.
1722 {
1723 echo
1725 cat <<\_ASBOX
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1729 _ASBOX
1730 echo
1731 # The following way of writing the cache mishandles newlines in values,
1732 (
1733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734 eval ac_val=\$$ac_var
1735 case $ac_val in #(
1736 *${as_nl}*)
1737 case $ac_var in #(
1738 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1739 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1740 esac
1741 case $ac_var in #(
1742 _ | IFS | as_nl) ;; #(
1743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1744 *) $as_unset $ac_var ;;
1745 esac ;;
1746 esac
1747 done
1748 (set) 2>&1 |
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1751 sed -n \
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 ;; #(
1755 *)
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 ;;
1758 esac |
1759 sort
1760 )
1761 echo
1763 cat <<\_ASBOX
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1767 _ASBOX
1768 echo
1769 for ac_var in $ac_subst_vars
1770 do
1771 eval ac_val=\$$ac_var
1772 case $ac_val in
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 esac
1775 $as_echo "$ac_var='\''$ac_val'\''"
1776 done | sort
1777 echo
1779 if test -n "$ac_subst_files"; then
1780 cat <<\_ASBOX
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1784 _ASBOX
1785 echo
1786 for ac_var in $ac_subst_files
1787 do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 $as_echo "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1795 fi
1797 if test -s confdefs.h; then
1798 cat <<\_ASBOX
1799 ## ----------- ##
1800 ## confdefs.h. ##
1801 ## ----------- ##
1802 _ASBOX
1803 echo
1804 cat confdefs.h
1805 echo
1806 fi
1807 test "$ac_signal" != 0 &&
1808 $as_echo "$as_me: caught signal $ac_signal"
1809 $as_echo "$as_me: exit $exit_status"
1810 } >&5
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 exit $exit_status
1814 ' 0
1815 for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817 done
1818 ac_signal=0
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1823 # Predefined preprocessor variables.
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1827 _ACEOF
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832 _ACEOF
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1837 _ACEOF
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1842 _ACEOF
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847 _ACEOF
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer an explicitly selected file to automatically selected ones.
1852 ac_site_file1=NONE
1853 ac_site_file2=NONE
1854 if test -n "$CONFIG_SITE"; then
1855 ac_site_file1=$CONFIG_SITE
1856 elif test "x$prefix" != xNONE; then
1857 ac_site_file1=$prefix/share/config.site
1858 ac_site_file2=$prefix/etc/config.site
1859 else
1860 ac_site_file1=$ac_default_prefix/share/config.site
1861 ac_site_file2=$ac_default_prefix/etc/config.site
1862 fi
1863 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1864 do
1865 test "x$ac_site_file" = xNONE && continue
1866 if test -r "$ac_site_file"; then
1867 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1869 sed 's/^/| /' "$ac_site_file" >&5
1870 . "$ac_site_file"
1871 fi
1872 done
1874 if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special
1876 # files actually), so we avoid doing that.
1877 if test -f "$cache_file"; then
1878 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879 $as_echo "$as_me: loading cache $cache_file" >&6;}
1880 case $cache_file in
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1883 esac
1884 fi
1885 else
1886 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 $as_echo "$as_me: creating cache $cache_file" >&6;}
1888 >$cache_file
1889 fi
1891 # Check that the precious variables saved in the cache have kept the same
1892 # value.
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
1899 case $ac_old_set,$ac_new_set in
1900 set,)
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1904 ,set)
1905 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1908 ,);;
1909 *)
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 # differences in whitespace do not lead to failure.
1912 ac_old_val_w=`echo x $ac_old_val`
1913 ac_new_val_w=`echo x $ac_new_val`
1914 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1915 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1916 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1917 ac_cache_corrupted=:
1918 else
1919 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1920 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1921 eval $ac_var=\$ac_old_val
1922 fi
1923 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1924 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1925 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1926 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1927 fi;;
1928 esac
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1931 case $ac_new_val in
1932 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1934 esac
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938 esac
1939 fi
1940 done
1941 if $ac_cache_corrupted; then
1942 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1947 fi
1965 ac_ext=c
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 am__api_version="1.9"
1973 ac_aux_dir=
1974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1975 if test -f "$ac_dir/install-sh"; then
1976 ac_aux_dir=$ac_dir
1977 ac_install_sh="$ac_aux_dir/install-sh -c"
1978 break
1979 elif test -f "$ac_dir/install.sh"; then
1980 ac_aux_dir=$ac_dir
1981 ac_install_sh="$ac_aux_dir/install.sh -c"
1982 break
1983 elif test -f "$ac_dir/shtool"; then
1984 ac_aux_dir=$ac_dir
1985 ac_install_sh="$ac_aux_dir/shtool install -c"
1986 break
1987 fi
1988 done
1989 if test -z "$ac_aux_dir"; then
1990 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1991 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1992 { (exit 1); exit 1; }; }
1993 fi
1995 # These three variables are undocumented and unsupported,
1996 # and are intended to be withdrawn in a future Autoconf release.
1997 # They can cause serious problems if a builder's source tree is in a directory
1998 # whose full name contains unusual characters.
1999 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2000 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2001 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2010 # AIX /bin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 # Reject install programs that cannot install multiple files.
2018 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022 $as_echo_n "(cached) " >&6
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2030 case $as_dir/ in
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034 /usr/ucb/* ) ;;
2035 *)
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2038 # by default.
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2045 :
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2049 :
2050 else
2051 rm -rf conftest.one conftest.two conftest.dir
2052 echo one > conftest.one
2053 echo two > conftest.two
2054 mkdir conftest.dir
2055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2056 test -s conftest.one && test -s conftest.two &&
2057 test -s conftest.dir/conftest.one &&
2058 test -s conftest.dir/conftest.two
2059 then
2060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2061 break 3
2062 fi
2063 fi
2064 fi
2065 done
2066 done
2067 ;;
2068 esac
2070 done
2071 IFS=$as_save_IFS
2073 rm -rf conftest.one conftest.two conftest.dir
2075 fi
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL=$ac_cv_path_install
2078 else
2079 # As a last resort, use the slow shell script. Don't cache a
2080 # value for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the value is a relative name.
2083 INSTALL=$ac_install_sh
2084 fi
2085 fi
2086 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2087 $as_echo "$INSTALL" >&6; }
2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2090 # It thinks the first close brace ends the variable substitution.
2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2097 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2098 $as_echo_n "checking whether build environment is sane... " >&6; }
2099 # Just in case
2100 sleep 1
2101 echo timestamp > conftest.file
2102 # Do `set' in a subshell so we don't clobber the current shell's
2103 # arguments. Must try -L first in case configure is actually a
2104 # symlink; some systems play weird games with the mod time of symlinks
2105 # (eg FreeBSD returns the mod time of the symlink's containing
2106 # directory).
2107 if (
2108 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2109 if test "$*" = "X"; then
2110 # -L didn't work.
2111 set X `ls -t $srcdir/configure conftest.file`
2112 fi
2113 rm -f conftest.file
2114 if test "$*" != "X $srcdir/configure conftest.file" \
2115 && test "$*" != "X conftest.file $srcdir/configure"; then
2117 # If neither matched, then we have a broken ls. This can happen
2118 # if, for instance, CONFIG_SHELL is bash and it inherits a
2119 # broken ls alias from the environment. This has actually
2120 # happened. Such a system could not be considered "sane".
2121 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2122 alias in your environment" >&5
2123 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2124 alias in your environment" >&2;}
2125 { (exit 1); exit 1; }; }
2126 fi
2128 test "$2" = conftest.file
2129 )
2130 then
2131 # Ok.
2132 :
2133 else
2134 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2135 Check your system clock" >&5
2136 $as_echo "$as_me: error: newly created file is older than distributed files!
2137 Check your system clock" >&2;}
2138 { (exit 1); exit 1; }; }
2139 fi
2140 { $as_echo "$as_me:$LINENO: result: yes" >&5
2141 $as_echo "yes" >&6; }
2142 test "$program_prefix" != NONE &&
2143 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2144 # Use a double $ so make ignores it.
2145 test "$program_suffix" != NONE &&
2146 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2147 # Double any \ or $.
2148 # By default was `s,x,x', remove it if useless.
2149 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2150 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2152 # expand $ac_aux_dir to an absolute path
2153 am_aux_dir=`cd $ac_aux_dir && pwd`
2155 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2156 # Use eval to expand $SHELL
2157 if eval "$MISSING --run true"; then
2158 am_missing_run="$MISSING --run "
2159 else
2160 am_missing_run=
2161 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2162 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2163 fi
2165 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2166 # We used to keeping the `.' as first argument, in order to
2167 # allow $(mkdir_p) to be used without argument. As in
2168 # $(mkdir_p) $(somedir)
2169 # where $(somedir) is conditionally defined. However this is wrong
2170 # for two reasons:
2171 # 1. if the package is installed by a user who cannot write `.'
2172 # make install will fail,
2173 # 2. the above comment should most certainly read
2174 # $(mkdir_p) $(DESTDIR)$(somedir)
2175 # so it does not work when $(somedir) is undefined and
2176 # $(DESTDIR) is not.
2177 # To support the latter case, we have to write
2178 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2179 # so the `.' trick is pointless.
2180 mkdir_p='mkdir -p --'
2181 else
2182 # On NextStep and OpenStep, the `mkdir' command does not
2183 # recognize any option. It will interpret all options as
2184 # directories to create, and then abort because `.' already
2185 # exists.
2186 for d in ./-p ./--version;
2187 do
2188 test -d $d && rmdir $d
2189 done
2190 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2191 if test -f "$ac_aux_dir/mkinstalldirs"; then
2192 mkdir_p='$(mkinstalldirs)'
2193 else
2194 mkdir_p='$(install_sh) -d'
2195 fi
2196 fi
2198 for ac_prog in gawk mawk nawk awk
2199 do
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy $ac_prog; ac_word=$2
2202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 $as_echo_n "checking for $ac_word... " >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 $as_echo_n "(cached) " >&6
2206 else
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK="$ac_prog"
2218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2220 fi
2221 done
2222 done
2223 IFS=$as_save_IFS
2225 fi
2226 fi
2227 AWK=$ac_cv_prog_AWK
2228 if test -n "$AWK"; then
2229 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2230 $as_echo "$AWK" >&6; }
2231 else
2232 { $as_echo "$as_me:$LINENO: result: no" >&5
2233 $as_echo "no" >&6; }
2234 fi
2237 test -n "$AWK" && break
2238 done
2240 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2242 set x ${MAKE-make}
2243 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2244 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2245 $as_echo_n "(cached) " >&6
2246 else
2247 cat >conftest.make <<\_ACEOF
2248 SHELL = /bin/sh
2249 all:
2250 @echo '@@@%%%=$(MAKE)=@@@%%%'
2251 _ACEOF
2252 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2253 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2254 *@@@%%%=?*=@@@%%%*)
2255 eval ac_cv_prog_make_${ac_make}_set=yes;;
2256 *)
2257 eval ac_cv_prog_make_${ac_make}_set=no;;
2258 esac
2259 rm -f conftest.make
2260 fi
2261 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2262 { $as_echo "$as_me:$LINENO: result: yes" >&5
2263 $as_echo "yes" >&6; }
2264 SET_MAKE=
2265 else
2266 { $as_echo "$as_me:$LINENO: result: no" >&5
2267 $as_echo "no" >&6; }
2268 SET_MAKE="MAKE=${MAKE-make}"
2269 fi
2271 rm -rf .tst 2>/dev/null
2272 mkdir .tst 2>/dev/null
2273 if test -d .tst; then
2274 am__leading_dot=.
2275 else
2276 am__leading_dot=_
2277 fi
2278 rmdir .tst 2>/dev/null
2280 # test to see if srcdir already configured
2281 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2282 test -f $srcdir/config.status; then
2283 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2284 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2285 { (exit 1); exit 1; }; }
2286 fi
2288 # test whether we have cygpath
2289 if test -z "$CYGPATH_W"; then
2290 if (cygpath --version) >/dev/null 2>/dev/null; then
2291 CYGPATH_W='cygpath -w'
2292 else
2293 CYGPATH_W=echo
2294 fi
2295 fi
2298 # Define the identity of the package.
2299 PACKAGE=lxdream
2300 VERSION=0.9
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE "$PACKAGE"
2305 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define VERSION "$VERSION"
2310 _ACEOF
2312 # Some tools Automake needs.
2314 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2317 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2320 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2323 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2326 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2328 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2330 # Installed binaries are usually stripped using `strip' when the user
2331 # run `make install-strip'. However `strip' might not be the right
2332 # tool to use in cross-compilation environments, therefore Automake
2333 # will honor the `STRIP' environment variable to overrule this program.
2334 if test "$cross_compiling" != no; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}strip; ac_word=$2
2338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if test "${ac_cv_prog_STRIP+set}" = set; then
2341 $as_echo_n "(cached) " >&6
2342 else
2343 if test -n "$STRIP"; then
2344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2356 fi
2357 done
2358 done
2359 IFS=$as_save_IFS
2361 fi
2362 fi
2363 STRIP=$ac_cv_prog_STRIP
2364 if test -n "$STRIP"; then
2365 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2366 $as_echo "$STRIP" >&6; }
2367 else
2368 { $as_echo "$as_me:$LINENO: result: no" >&5
2369 $as_echo "no" >&6; }
2370 fi
2373 fi
2374 if test -z "$ac_cv_prog_STRIP"; then
2375 ac_ct_STRIP=$STRIP
2376 # Extract the first word of "strip", so it can be a program name with args.
2377 set dummy strip; ac_word=$2
2378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test -n "$ac_ct_STRIP"; then
2384 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_ac_ct_STRIP="strip"
2394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2401 fi
2402 fi
2403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2404 if test -n "$ac_ct_STRIP"; then
2405 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2406 $as_echo "$ac_ct_STRIP" >&6; }
2407 else
2408 { $as_echo "$as_me:$LINENO: result: no" >&5
2409 $as_echo "no" >&6; }
2410 fi
2412 if test "x$ac_ct_STRIP" = x; then
2413 STRIP=":"
2414 else
2415 case $cross_compiling:$ac_tool_warned in
2416 yes:)
2417 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&5
2420 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2423 ac_tool_warned=yes ;;
2424 esac
2425 STRIP=$ac_ct_STRIP
2426 fi
2427 else
2428 STRIP="$ac_cv_prog_STRIP"
2429 fi
2431 fi
2432 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2434 # We need awk for the "check" target. The system "awk" is bad on
2435 # some platforms.
2436 # Always define AMTAR for backward compatibility.
2438 AMTAR=${AMTAR-"${am_missing_run}tar"}
2440 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2446 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2447 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2448 # Check whether --enable-maintainer-mode was given.
2449 if test "${enable_maintainer_mode+set}" = set; then
2450 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2451 else
2452 USE_MAINTAINER_MODE=no
2453 fi
2455 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2456 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2459 if test $USE_MAINTAINER_MODE = yes; then
2460 MAINTAINER_MODE_TRUE=
2461 MAINTAINER_MODE_FALSE='#'
2462 else
2463 MAINTAINER_MODE_TRUE='#'
2464 MAINTAINER_MODE_FALSE=
2465 fi
2467 MAINT=$MAINTAINER_MODE_TRUE
2470 ac_config_headers="$ac_config_headers config.h"
2473 DEPDIR="${am__leading_dot}deps"
2475 ac_config_commands="$ac_config_commands depfiles"
2478 am_make=${MAKE-make}
2479 cat > confinc << 'END'
2480 am__doit:
2481 @echo done
2482 .PHONY: am__doit
2483 END
2484 # If we don't find an include directive, just comment out the code.
2485 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2486 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2487 am__include="#"
2488 am__quote=
2489 _am_result=none
2490 # First try GNU make style include.
2491 echo "include confinc" > confmf
2492 # We grep out `Entering directory' and `Leaving directory'
2493 # messages which can occur if `w' ends up in MAKEFLAGS.
2494 # In particular we don't look at `^make:' because GNU make might
2495 # be invoked under some other name (usually "gmake"), in which
2496 # case it prints its new name instead of `make'.
2497 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2498 am__include=include
2499 am__quote=
2500 _am_result=GNU
2501 fi
2502 # Now try BSD make style include.
2503 if test "$am__include" = "#"; then
2504 echo '.include "confinc"' > confmf
2505 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2506 am__include=.include
2507 am__quote="\""
2508 _am_result=BSD
2509 fi
2510 fi
2513 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2514 $as_echo "$_am_result" >&6; }
2515 rm -f confinc confmf
2517 # Check whether --enable-dependency-tracking was given.
2518 if test "${enable_dependency_tracking+set}" = set; then
2519 enableval=$enable_dependency_tracking;
2520 fi
2522 if test "x$enable_dependency_tracking" != xno; then
2523 am_depcomp="$ac_aux_dir/depcomp"
2524 AMDEPBACKSLASH='\'
2525 fi
2528 if test "x$enable_dependency_tracking" != xno; then
2529 AMDEP_TRUE=
2530 AMDEP_FALSE='#'
2531 else
2532 AMDEP_TRUE='#'
2533 AMDEP_FALSE=
2534 fi
2538 ac_ext=c
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2569 fi
2570 fi
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2574 $as_echo "$CC" >&6; }
2575 else
2576 { $as_echo "$as_me:$LINENO: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2581 fi
2582 if test -z "$ac_cv_prog_CC"; then
2583 ac_ct_CC=$CC
2584 # Extract the first word of "gcc", so it can be a program name with args.
2585 set dummy gcc; ac_word=$2
2586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_CC="gcc"
2602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2609 fi
2610 fi
2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612 if test -n "$ac_ct_CC"; then
2613 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2614 $as_echo "$ac_ct_CC" >&6; }
2615 else
2616 { $as_echo "$as_me:$LINENO: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2620 if test "x$ac_ct_CC" = x; then
2621 CC=""
2622 else
2623 case $cross_compiling:$ac_tool_warned in
2624 yes:)
2625 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&5
2628 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet. If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2631 ac_tool_warned=yes ;;
2632 esac
2633 CC=$ac_ct_CC
2634 fi
2635 else
2636 CC="$ac_cv_prog_CC"
2637 fi
2639 if test -z "$CC"; then
2640 if test -n "$ac_tool_prefix"; then
2641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2642 set dummy ${ac_tool_prefix}cc; ac_word=$2
2643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_CC+set}" = set; then
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC="$CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_CC="${ac_tool_prefix}cc"
2659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2666 fi
2667 fi
2668 CC=$ac_cv_prog_CC
2669 if test -n "$CC"; then
2670 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2671 $as_echo "$CC" >&6; }
2672 else
2673 { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2678 fi
2679 fi
2680 if test -z "$CC"; then
2681 # Extract the first word of "cc", so it can be a program name with args.
2682 set dummy cc; ac_word=$2
2683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_CC+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 else
2691 ac_prog_rejected=no
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2700 ac_prog_rejected=yes
2701 continue
2702 fi
2703 ac_cv_prog_CC="cc"
2704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2711 if test $ac_prog_rejected = yes; then
2712 # We found a bogon in the path, so make sure we never use it.
2713 set dummy $ac_cv_prog_CC
2714 shift
2715 if test $# != 0; then
2716 # We chose a different compiler from the bogus one.
2717 # However, it has the same basename, so the bogon will be chosen
2718 # first if we set CC to just the basename; use the full file name.
2719 shift
2720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2721 fi
2722 fi
2723 fi
2724 fi
2725 CC=$ac_cv_prog_CC
2726 if test -n "$CC"; then
2727 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2728 $as_echo "$CC" >&6; }
2729 else
2730 { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2735 fi
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 for ac_prog in cl.exe
2739 do
2740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2765 fi
2766 fi
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2770 $as_echo "$CC" >&6; }
2771 else
2772 { $as_echo "$as_me:$LINENO: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2777 test -n "$CC" && break
2778 done
2779 fi
2780 if test -z "$CC"; then
2781 ac_ct_CC=$CC
2782 for ac_prog in cl.exe
2783 do
2784 # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_ac_ct_CC="$ac_prog"
2802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2809 fi
2810 fi
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 $as_echo "$ac_ct_CC" >&6; }
2815 else
2816 { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2821 test -n "$ac_ct_CC" && break
2822 done
2824 if test "x$ac_ct_CC" = x; then
2825 CC=""
2826 else
2827 case $cross_compiling:$ac_tool_warned in
2828 yes:)
2829 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2830 whose name does not start with the host triplet. If you think this
2831 configuration is useful to you, please write to autoconf@gnu.org." >&5
2832 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2833 whose name does not start with the host triplet. If you think this
2834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2835 ac_tool_warned=yes ;;
2836 esac
2837 CC=$ac_ct_CC
2838 fi
2839 fi
2841 fi
2844 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&5
2846 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2847 See \`config.log' for more details." >&2;}
2848 { (exit 1); exit 1; }; }
2850 # Provide some information about the compiler.
2851 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2852 set X $ac_compile
2853 ac_compiler=$2
2854 { (ac_try="$ac_compiler --version >&5"
2855 case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858 esac
2859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2860 $as_echo "$ac_try_echo") >&5
2861 (eval "$ac_compiler --version >&5") 2>&5
2862 ac_status=$?
2863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2865 { (ac_try="$ac_compiler -v >&5"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872 (eval "$ac_compiler -v >&5") 2>&5
2873 ac_status=$?
2874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (ac_try="$ac_compiler -V >&5"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2882 $as_echo "$ac_try_echo") >&5
2883 (eval "$ac_compiler -V >&5") 2>&5
2884 ac_status=$?
2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2895 int
2896 main ()
2897 {
2899 ;
2900 return 0;
2901 }
2902 _ACEOF
2903 ac_clean_files_save=$ac_clean_files
2904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2905 # Try to create an executable without -o first, disregard a.out.
2906 # It will help us diagnose broken compilers, and finding out an intuition
2907 # of exeext.
2908 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2909 $as_echo_n "checking for C compiler default output file name... " >&6; }
2910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912 # The possible output files:
2913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2915 ac_rmfiles=
2916 for ac_file in $ac_files
2917 do
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2921 esac
2922 done
2923 rm -f $ac_rmfiles
2925 if { (ac_try="$ac_link_default"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931 $as_echo "$ac_try_echo") >&5
2932 (eval "$ac_link_default") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; then
2936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2939 # so that the user can short-circuit this test for compilers unknown to
2940 # Autoconf.
2941 for ac_file in $ac_files ''
2942 do
2943 test -f "$ac_file" || continue
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2946 ;;
2947 [ab].out )
2948 # We found the default executable, but exeext='' is most
2949 # certainly right.
2950 break;;
2951 *.* )
2952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2953 then :; else
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2955 fi
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2960 # actually working.
2961 break;;
2962 * )
2963 break;;
2964 esac
2965 done
2966 test "$ac_cv_exeext" = no && ac_cv_exeext=
2968 else
2969 ac_file=''
2970 fi
2972 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2973 $as_echo "$ac_file" >&6; }
2974 if test -z "$ac_file"; then
2975 $as_echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2979 See \`config.log' for more details." >&5
2980 $as_echo "$as_me: error: C compiler cannot create executables
2981 See \`config.log' for more details." >&2;}
2982 { (exit 77); exit 77; }; }
2983 fi
2985 ac_exeext=$ac_cv_exeext
2987 # Check that the compiler produces executables we can run. If not, either
2988 # the compiler is broken, or we cross compile.
2989 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2990 $as_echo_n "checking whether the C compiler works... " >&6; }
2991 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2992 # If not cross compiling, check that we can run a simple program.
2993 if test "$cross_compiling" != yes; then
2994 if { ac_try='./$ac_file'
2995 { (case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3000 $as_echo "$ac_try_echo") >&5
3001 (eval "$ac_try") 2>&5
3002 ac_status=$?
3003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 cross_compiling=no
3006 else
3007 if test "$cross_compiling" = maybe; then
3008 cross_compiling=yes
3009 else
3010 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3011 If you meant to cross compile, use \`--host'.
3012 See \`config.log' for more details." >&5
3013 $as_echo "$as_me: error: cannot run C compiled programs.
3014 If you meant to cross compile, use \`--host'.
3015 See \`config.log' for more details." >&2;}
3016 { (exit 1); exit 1; }; }
3017 fi
3018 fi
3019 fi
3020 { $as_echo "$as_me:$LINENO: result: yes" >&5
3021 $as_echo "yes" >&6; }
3023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3024 ac_clean_files=$ac_clean_files_save
3025 # Check that the compiler produces executables we can run. If not, either
3026 # the compiler is broken, or we cross compile.
3027 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3028 $as_echo_n "checking whether we are cross compiling... " >&6; }
3029 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3030 $as_echo "$cross_compiling" >&6; }
3032 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3033 $as_echo_n "checking for suffix of executables... " >&6; }
3034 if { (ac_try="$ac_link"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3040 $as_echo "$ac_try_echo") >&5
3041 (eval "$ac_link") 2>&5
3042 ac_status=$?
3043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3046 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3047 # work properly (i.e., refer to `conftest.exe'), while it won't with
3048 # `rm'.
3049 for ac_file in conftest.exe conftest conftest.*; do
3050 test -f "$ac_file" || continue
3051 case $ac_file in
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3053 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3054 break;;
3055 * ) break;;
3056 esac
3057 done
3058 else
3059 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3060 See \`config.log' for more details." >&5
3061 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3062 See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }
3064 fi
3066 rm -f conftest$ac_cv_exeext
3067 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3068 $as_echo "$ac_cv_exeext" >&6; }
3070 rm -f conftest.$ac_ext
3071 EXEEXT=$ac_cv_exeext
3072 ac_exeext=$EXEEXT
3073 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3074 $as_echo_n "checking for suffix of object files... " >&6; }
3075 if test "${ac_cv_objext+set}" = set; then
3076 $as_echo_n "(cached) " >&6
3077 else
3078 cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h. */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3085 int
3086 main ()
3087 {
3089 ;
3090 return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.o conftest.obj
3094 if { (ac_try="$ac_compile"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100 $as_echo "$ac_try_echo") >&5
3101 (eval "$ac_compile") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 for ac_file in conftest.o conftest.obj conftest.*; do
3106 test -f "$ac_file" || continue;
3107 case $ac_file in
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3110 break;;
3111 esac
3112 done
3113 else
3114 $as_echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3118 See \`config.log' for more details." >&5
3119 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3122 fi
3124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3125 fi
3126 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3127 $as_echo "$ac_cv_objext" >&6; }
3128 OBJEXT=$ac_cv_objext
3129 ac_objext=$OBJEXT
3130 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3132 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3133 $as_echo_n "(cached) " >&6
3134 else
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h. */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3142 int
3143 main ()
3144 {
3145 #ifndef __GNUC__
3146 choke me
3147 #endif
3149 ;
3150 return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3160 $as_echo "$ac_try_echo") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } && {
3168 test -z "$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3170 } && test -s conftest.$ac_objext; then
3171 ac_compiler_gnu=yes
3172 else
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 ac_compiler_gnu=no
3177 fi
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3182 fi
3183 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3184 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3185 if test $ac_compiler_gnu = yes; then
3186 GCC=yes
3187 else
3188 GCC=
3189 fi
3190 ac_test_CFLAGS=${CFLAGS+set}
3191 ac_save_CFLAGS=$CFLAGS
3192 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3193 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3194 if test "${ac_cv_prog_cc_g+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3196 else
3197 ac_save_c_werror_flag=$ac_c_werror_flag
3198 ac_c_werror_flag=yes
3199 ac_cv_prog_cc_g=no
3200 CFLAGS="-g"
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3208 int
3209 main ()
3210 {
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3223 $as_echo "$ac_try_echo") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3225 ac_status=$?
3226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.$ac_objext; then
3234 ac_cv_prog_cc_g=yes
3235 else
3236 $as_echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 CFLAGS=""
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3247 int
3248 main ()
3249 {
3251 ;
3252 return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262 $as_echo "$ac_try_echo") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
3273 :
3274 else
3275 $as_echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 ac_c_werror_flag=$ac_save_c_werror_flag
3279 CFLAGS="-g"
3280 cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h. */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3287 int
3288 main ()
3289 {
3291 ;
3292 return 0;
3293 }
3294 _ACEOF
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3302 $as_echo "$ac_try_echo") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3313 ac_cv_prog_cc_g=yes
3314 else
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3319 fi
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 fi
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 fi
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 ac_c_werror_flag=$ac_save_c_werror_flag
3329 fi
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3331 $as_echo "$ac_cv_prog_cc_g" >&6; }
3332 if test "$ac_test_CFLAGS" = set; then
3333 CFLAGS=$ac_save_CFLAGS
3334 elif test $ac_cv_prog_cc_g = yes; then
3335 if test "$GCC" = yes; then
3336 CFLAGS="-g -O2"
3337 else
3338 CFLAGS="-g"
3339 fi
3340 else
3341 if test "$GCC" = yes; then
3342 CFLAGS="-O2"
3343 else
3344 CFLAGS=
3345 fi
3346 fi
3347 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3348 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3349 if test "${ac_cv_prog_cc_c89+set}" = set; then
3350 $as_echo_n "(cached) " >&6
3351 else
3352 ac_cv_prog_cc_c89=no
3353 ac_save_CC=$CC
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <stdarg.h>
3361 #include <stdio.h>
3362 #include <sys/types.h>
3363 #include <sys/stat.h>
3364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3365 struct buf { int x; };
3366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3367 static char *e (p, i)
3368 char **p;
3369 int i;
3370 {
3371 return p[i];
3372 }
3373 static char *f (char * (*g) (char **, int), char **p, ...)
3374 {
3375 char *s;
3376 va_list v;
3377 va_start (v,p);
3378 s = g (p, va_arg (v,int));
3379 va_end (v);
3380 return s;
3381 }
3383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3384 function prototypes and stuff, but not '\xHH' hex character constants.
3385 These don't provoke an error unfortunately, instead are silently treated
3386 as 'x'. The following induces an error, until -std is added to get
3387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3388 array size at least. It's necessary to write '\x00'==0 to get something
3389 that's true only with -std. */
3390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3393 inside strings and character constants. */
3394 #define FOO(x) 'x'
3395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3397 int test (int i, double x);
3398 struct s1 {int (*f) (int a);};
3399 struct s2 {int (*f) (double a);};
3400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3401 int argc;
3402 char **argv;
3403 int
3404 main ()
3405 {
3406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3413 do
3414 CC="$ac_save_CC $ac_arg"
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_compile") 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } && {
3430 test -z "$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 } && test -s conftest.$ac_objext; then
3433 ac_cv_prog_cc_c89=$ac_arg
3434 else
3435 $as_echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3439 fi
3441 rm -f core conftest.err conftest.$ac_objext
3442 test "x$ac_cv_prog_cc_c89" != "xno" && break
3443 done
3444 rm -f conftest.$ac_ext
3445 CC=$ac_save_CC
3447 fi
3448 # AC_CACHE_VAL
3449 case "x$ac_cv_prog_cc_c89" in
3450 x)
3451 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3452 $as_echo "none needed" >&6; } ;;
3453 xno)
3454 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3455 $as_echo "unsupported" >&6; } ;;
3456 *)
3457 CC="$CC $ac_cv_prog_cc_c89"
3458 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3459 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3460 esac
3463 ac_ext=c
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 depcc="$CC" am_compiler_list=
3471 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3472 $as_echo_n "checking dependency style of $depcc... " >&6; }
3473 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3477 # We make a subdir and do the tests there. Otherwise we can end up
3478 # making bogus files that we don't know about and never remove. For
3479 # instance it was reported that on HP-UX the gcc test will end up
3480 # making a dummy file named `D' -- because `-MD' means `put the output
3481 # in D'.
3482 mkdir conftest.dir
3483 # Copy depcomp to subdir because otherwise we won't find it if we're
3484 # using a relative directory.
3485 cp "$am_depcomp" conftest.dir
3486 cd conftest.dir
3487 # We will build objects and dependencies in a subdirectory because
3488 # it helps to detect inapplicable dependency modes. For instance
3489 # both Tru64's cc and ICC support -MD to output dependencies as a
3490 # side effect of compilation, but ICC will put the dependencies in
3491 # the current directory while Tru64 will put them in the object
3492 # directory.
3493 mkdir sub
3495 am_cv_CC_dependencies_compiler_type=none
3496 if test "$am_compiler_list" = ""; then
3497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3498 fi
3499 for depmode in $am_compiler_list; do
3500 # Setup a source with many dependencies, because some compilers
3501 # like to wrap large dependency lists on column 80 (with \), and
3502 # we should not choose a depcomp mode which is confused by this.
3503 #
3504 # We need to recreate these files for each test, as the compiler may
3505 # overwrite some of them when testing with obscure command lines.
3506 # This happens at least with the AIX C compiler.
3507 : > sub/conftest.c
3508 for i in 1 2 3 4 5 6; do
3509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3511 # Solaris 8's {/usr,}/bin/sh.
3512 touch sub/conftst$i.h
3513 done
3514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3516 case $depmode in
3517 nosideeffect)
3518 # after this tag, mechanisms are not by side-effect, so they'll
3519 # only be used when explicitly requested
3520 if test "x$enable_dependency_tracking" = xyes; then
3521 continue
3522 else
3523 break
3524 fi
3525 ;;
3526 none) break ;;
3527 esac
3528 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3529 # mode. It turns out that the SunPro C++ compiler does not properly
3530 # handle `-M -o', and we need to detect this.
3531 if depmode=$depmode \
3532 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3534 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3535 >/dev/null 2>conftest.err &&
3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3537 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3539 # icc doesn't choke on unknown options, it will just issue warnings
3540 # or remarks (even with -Werror). So we grep stderr for any message
3541 # that says an option was ignored or not supported.
3542 # When given -MP, icc 7.0 and 7.1 complain thusly:
3543 # icc: Command line warning: ignoring option '-M'; no argument required
3544 # The diagnosis changed in icc 8.0:
3545 # icc: Command line remark: option '-MP' not supported
3546 if (grep 'ignoring option' conftest.err ||
3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3548 am_cv_CC_dependencies_compiler_type=$depmode
3549 break
3550 fi
3551 fi
3552 done
3554 cd ..
3555 rm -rf conftest.dir
3556 else
3557 am_cv_CC_dependencies_compiler_type=none
3558 fi
3560 fi
3561 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3562 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3563 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3567 if
3568 test "x$enable_dependency_tracking" != xno \
3569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3570 am__fastdepCC_TRUE=
3571 am__fastdepCC_FALSE='#'
3572 else
3573 am__fastdepCC_TRUE='#'
3574 am__fastdepCC_FALSE=
3575 fi
3580 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3581 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3582 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3584 else
3585 ac_check_lib_save_LIBS=$LIBS
3586 LIBS="-lcposix $LIBS"
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3594 /* Override any GCC internal prototype to avoid an error.
3595 Use char because int might match the return type of a GCC
3596 builtin and then its argument prototype would still apply. */
3597 #ifdef __cplusplus
3598 extern "C"
3599 #endif
3600 char strerror ();
3601 int
3602 main ()
3603 {
3604 return strerror ();
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.$ac_objext conftest$ac_exeext
3610 if { (ac_try="$ac_link"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3616 $as_echo "$ac_try_echo") >&5
3617 (eval "$ac_link") 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } && {
3624 test -z "$ac_c_werror_flag" ||
3625 test ! -s conftest.err
3626 } && test -s conftest$ac_exeext && {
3627 test "$cross_compiling" = yes ||
3628 $as_test_x conftest$ac_exeext
3629 }; then
3630 ac_cv_lib_cposix_strerror=yes
3631 else
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_lib_cposix_strerror=no
3636 fi
3638 rm -rf conftest.dSYM
3639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3640 conftest$ac_exeext conftest.$ac_ext
3641 LIBS=$ac_check_lib_save_LIBS
3642 fi
3643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3644 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3645 if test $ac_cv_lib_cposix_strerror = yes; then
3646 LIBS="$LIBS -lcposix"
3647 fi
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if test "${ac_cv_prog_CC+set}" = set; then
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3682 fi
3683 fi
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3688 else
3689 { $as_echo "$as_me:$LINENO: result: no" >&5
3690 $as_echo "no" >&6; }
3691 fi
3694 fi
3695 if test -z "$ac_cv_prog_CC"; then
3696 ac_ct_CC=$CC
3697 # Extract the first word of "gcc", so it can be a program name with args.
3698 set dummy gcc; ac_word=$2
3699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -n "$ac_ct_CC"; then
3705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_ac_ct_CC="gcc"
3715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3722 fi
3723 fi
3724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3725 if test -n "$ac_ct_CC"; then
3726 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3727 $as_echo "$ac_ct_CC" >&6; }
3728 else
3729 { $as_echo "$as_me:$LINENO: result: no" >&5
3730 $as_echo "no" >&6; }
3731 fi
3733 if test "x$ac_ct_CC" = x; then
3734 CC=""
3735 else
3736 case $cross_compiling:$ac_tool_warned in
3737 yes:)
3738 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3739 whose name does not start with the host triplet. If you think this
3740 configuration is useful to you, please write to autoconf@gnu.org." >&5
3741 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3742 whose name does not start with the host triplet. If you think this
3743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3744 ac_tool_warned=yes ;;
3745 esac
3746 CC=$ac_ct_CC
3747 fi
3748 else
3749 CC="$ac_cv_prog_CC"
3750 fi
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}cc; ac_word=$2
3756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
3772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3779 fi
3780 fi
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:$LINENO: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3791 fi
3792 fi
3793 if test -z "$CC"; then
3794 # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_CC+set}" = set; then
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 ac_prog_rejected=no
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813 ac_prog_rejected=yes
3814 continue
3815 fi
3816 ac_cv_prog_CC="cc"
3817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3824 if test $ac_prog_rejected = yes; then
3825 # We found a bogon in the path, so make sure we never use it.
3826 set dummy $ac_cv_prog_CC
3827 shift
3828 if test $# != 0; then
3829 # We chose a different compiler from the bogus one.
3830 # However, it has the same basename, so the bogon will be chosen
3831 # first if we set CC to just the basename; use the full file name.
3832 shift
3833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3834 fi
3835 fi
3836 fi
3837 fi
3838 CC=$ac_cv_prog_CC
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3842 else
3843 { $as_echo "$as_me:$LINENO: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3848 fi
3849 if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
3851 for ac_prog in cl.exe
3852 do
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_CC+set}" = set; then
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874 done
3875 done
3876 IFS=$as_save_IFS
3878 fi
3879 fi
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885 { $as_echo "$as_me:$LINENO: result: no" >&5
3886 $as_echo "no" >&6; }
3887 fi
3890 test -n "$CC" && break
3891 done
3892 fi
3893 if test -z "$CC"; then
3894 ac_ct_CC=$CC
3895 for ac_prog in cl.exe
3896 do
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3902 $as_echo_n "(cached) " >&6
3903 else
3904 if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_ac_ct_CC="$ac_prog"
3915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918 done
3919 done
3920 IFS=$as_save_IFS
3922 fi
3923 fi
3924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925 if test -n "$ac_ct_CC"; then
3926 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3927 $as_echo "$ac_ct_CC" >&6; }
3928 else
3929 { $as_echo "$as_me:$LINENO: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3934 test -n "$ac_ct_CC" && break
3935 done
3937 if test "x$ac_ct_CC" = x; then
3938 CC=""
3939 else
3940 case $cross_compiling:$ac_tool_warned in
3941 yes:)
3942 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3943 whose name does not start with the host triplet. If you think this
3944 configuration is useful to you, please write to autoconf@gnu.org." >&5
3945 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3946 whose name does not start with the host triplet. If you think this
3947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3948 ac_tool_warned=yes ;;
3949 esac
3950 CC=$ac_ct_CC
3951 fi
3952 fi
3954 fi
3957 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3958 See \`config.log' for more details." >&5
3959 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3960 See \`config.log' for more details." >&2;}
3961 { (exit 1); exit 1; }; }
3963 # Provide some information about the compiler.
3964 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3965 set X $ac_compile
3966 ac_compiler=$2
3967 { (ac_try="$ac_compiler --version >&5"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3973 $as_echo "$ac_try_echo") >&5
3974 (eval "$ac_compiler --version >&5") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }
3978 { (ac_try="$ac_compiler -v >&5"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_compiler -v >&5") 2>&5
3986 ac_status=$?
3987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }
3989 { (ac_try="$ac_compiler -V >&5"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3995 $as_echo "$ac_try_echo") >&5
3996 (eval "$ac_compiler -V >&5") 2>&5
3997 ac_status=$?
3998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }
4001 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4004 $as_echo_n "(cached) " >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4013 int
4014 main ()
4015 {
4016 #ifndef __GNUC__
4017 choke me
4018 #endif
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4031 $as_echo "$ac_try_echo") >&5
4032 (eval "$ac_compile") 2>conftest.er1
4033 ac_status=$?
4034 grep -v '^ *+' conftest.er1 >conftest.err
4035 rm -f conftest.er1
4036 cat conftest.err >&5
4037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && {
4039 test -z "$ac_c_werror_flag" ||
4040 test ! -s conftest.err
4041 } && test -s conftest.$ac_objext; then
4042 ac_compiler_gnu=yes
4043 else
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4047 ac_compiler_gnu=no
4048 fi
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4053 fi
4054 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4055 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4056 if test $ac_compiler_gnu = yes; then
4057 GCC=yes
4058 else
4059 GCC=
4060 fi
4061 ac_test_CFLAGS=${CFLAGS+set}
4062 ac_save_CFLAGS=$CFLAGS
4063 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4064 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4065 if test "${ac_cv_prog_cc_g+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4067 else
4068 ac_save_c_werror_flag=$ac_c_werror_flag
4069 ac_c_werror_flag=yes
4070 ac_cv_prog_cc_g=no
4071 CFLAGS="-g"
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4079 int
4080 main ()
4081 {
4083 ;
4084 return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4094 $as_echo "$ac_try_echo") >&5
4095 (eval "$ac_compile") 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && {
4102 test -z "$ac_c_werror_flag" ||
4103 test ! -s conftest.err
4104 } && test -s conftest.$ac_objext; then
4105 ac_cv_prog_cc_g=yes
4106 else
4107 $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110 CFLAGS=""
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4118 int
4119 main ()
4120 {
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && {
4141 test -z "$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4143 } && test -s conftest.$ac_objext; then
4144 :
4145 else
4146 $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4150 CFLAGS="-g"
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4158 int
4159 main ()
4160 {
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4184 ac_cv_prog_cc_g=yes
4185 else
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4190 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_c_werror_flag=$ac_save_c_werror_flag
4200 fi
4201 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4202 $as_echo "$ac_cv_prog_cc_g" >&6; }
4203 if test "$ac_test_CFLAGS" = set; then
4204 CFLAGS=$ac_save_CFLAGS
4205 elif test $ac_cv_prog_cc_g = yes; then
4206 if test "$GCC" = yes; then
4207 CFLAGS="-g -O2"
4208 else
4209 CFLAGS="-g"
4210 fi
4211 else
4212 if test "$GCC" = yes; then
4213 CFLAGS="-O2"
4214 else
4215 CFLAGS=
4216 fi
4217 fi
4218 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4219 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4220 if test "${ac_cv_prog_cc_c89+set}" = set; then
4221 $as_echo_n "(cached) " >&6
4222 else
4223 ac_cv_prog_cc_c89=no
4224 ac_save_CC=$CC
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <stdarg.h>
4232 #include <stdio.h>
4233 #include <sys/types.h>
4234 #include <sys/stat.h>
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4239 char **p;
4240 int i;
4241 {
4242 return p[i];
4243 }
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4245 {
4246 char *s;
4247 va_list v;
4248 va_start (v,p);
4249 s = g (p, va_arg (v,int));
4250 va_end (v);
4251 return s;
4252 }
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4265 #define FOO(x) 'x'
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4272 int argc;
4273 char **argv;
4274 int
4275 main ()
4276 {
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 do
4285 CC="$ac_save_CC $ac_arg"
4286 rm -f conftest.$ac_objext
4287 if { (ac_try="$ac_compile"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4293 $as_echo "$ac_try_echo") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && {
4301 test -z "$ac_c_werror_flag" ||
4302 test ! -s conftest.err
4303 } && test -s conftest.$ac_objext; then
4304 ac_cv_prog_cc_c89=$ac_arg
4305 else
4306 $as_echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4310 fi
4312 rm -f core conftest.err conftest.$ac_objext
4313 test "x$ac_cv_prog_cc_c89" != "xno" && break
4314 done
4315 rm -f conftest.$ac_ext
4316 CC=$ac_save_CC
4318 fi
4319 # AC_CACHE_VAL
4320 case "x$ac_cv_prog_cc_c89" in
4321 x)
4322 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4323 $as_echo "none needed" >&6; } ;;
4324 xno)
4325 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4326 $as_echo "unsupported" >&6; } ;;
4327 *)
4328 CC="$CC $ac_cv_prog_cc_c89"
4329 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4331 esac
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 depcc="$CC" am_compiler_list=
4342 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4343 $as_echo_n "checking dependency style of $depcc... " >&6; }
4344 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4348 # We make a subdir and do the tests there. Otherwise we can end up
4349 # making bogus files that we don't know about and never remove. For
4350 # instance it was reported that on HP-UX the gcc test will end up
4351 # making a dummy file named `D' -- because `-MD' means `put the output
4352 # in D'.
4353 mkdir conftest.dir
4354 # Copy depcomp to subdir because otherwise we won't find it if we're
4355 # using a relative directory.
4356 cp "$am_depcomp" conftest.dir
4357 cd conftest.dir
4358 # We will build objects and dependencies in a subdirectory because
4359 # it helps to detect inapplicable dependency modes. For instance
4360 # both Tru64's cc and ICC support -MD to output dependencies as a
4361 # side effect of compilation, but ICC will put the dependencies in
4362 # the current directory while Tru64 will put them in the object
4363 # directory.
4364 mkdir sub
4366 am_cv_CC_dependencies_compiler_type=none
4367 if test "$am_compiler_list" = ""; then
4368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4369 fi
4370 for depmode in $am_compiler_list; do
4371 # Setup a source with many dependencies, because some compilers
4372 # like to wrap large dependency lists on column 80 (with \), and
4373 # we should not choose a depcomp mode which is confused by this.
4374 #
4375 # We need to recreate these files for each test, as the compiler may
4376 # overwrite some of them when testing with obscure command lines.
4377 # This happens at least with the AIX C compiler.
4378 : > sub/conftest.c
4379 for i in 1 2 3 4 5 6; do
4380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4381 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4382 # Solaris 8's {/usr,}/bin/sh.
4383 touch sub/conftst$i.h
4384 done
4385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4387 case $depmode in
4388 nosideeffect)
4389 # after this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested
4391 if test "x$enable_dependency_tracking" = xyes; then
4392 continue
4393 else
4394 break
4395 fi
4396 ;;
4397 none) break ;;
4398 esac
4399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4400 # mode. It turns out that the SunPro C++ compiler does not properly
4401 # handle `-M -o', and we need to detect this.
4402 if depmode=$depmode \
4403 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4404 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4405 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4406 >/dev/null 2>conftest.err &&
4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410 # icc doesn't choke on unknown options, it will just issue warnings
4411 # or remarks (even with -Werror). So we grep stderr for any message
4412 # that says an option was ignored or not supported.
4413 # When given -MP, icc 7.0 and 7.1 complain thusly:
4414 # icc: Command line warning: ignoring option '-M'; no argument required
4415 # The diagnosis changed in icc 8.0:
4416 # icc: Command line remark: option '-MP' not supported
4417 if (grep 'ignoring option' conftest.err ||
4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419 am_cv_CC_dependencies_compiler_type=$depmode
4420 break
4421 fi
4422 fi
4423 done
4425 cd ..
4426 rm -rf conftest.dir
4427 else
4428 am_cv_CC_dependencies_compiler_type=none
4429 fi
4431 fi
4432 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4433 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4438 if
4439 test "x$enable_dependency_tracking" != xno \
4440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4441 am__fastdepCC_TRUE=
4442 am__fastdepCC_FALSE='#'
4443 else
4444 am__fastdepCC_TRUE='#'
4445 am__fastdepCC_FALSE=
4446 fi
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_CC+set}" = set; then
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4480 fi
4481 fi
4482 CC=$ac_cv_prog_CC
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4486 else
4487 { $as_echo "$as_me:$LINENO: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4492 fi
4493 if test -z "$ac_cv_prog_CC"; then
4494 ac_ct_CC=$CC
4495 # Extract the first word of "gcc", so it can be a program name with args.
4496 set dummy gcc; ac_word=$2
4497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="gcc"
4513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4520 fi
4521 fi
4522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523 if test -n "$ac_ct_CC"; then
4524 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4525 $as_echo "$ac_ct_CC" >&6; }
4526 else
4527 { $as_echo "$as_me:$LINENO: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4531 if test "x$ac_ct_CC" = x; then
4532 CC=""
4533 else
4534 case $cross_compiling:$ac_tool_warned in
4535 yes:)
4536 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4537 whose name does not start with the host triplet. If you think this
4538 configuration is useful to you, please write to autoconf@gnu.org." >&5
4539 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4540 whose name does not start with the host triplet. If you think this
4541 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4542 ac_tool_warned=yes ;;
4543 esac
4544 CC=$ac_ct_CC
4545 fi
4546 else
4547 CC="$ac_cv_prog_CC"
4548 fi
4550 if test -z "$CC"; then
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4553 set dummy ${ac_tool_prefix}cc; ac_word=$2
4554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_CC+set}" = set; then
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_CC="${ac_tool_prefix}cc"
4570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4577 fi
4578 fi
4579 CC=$ac_cv_prog_CC
4580 if test -n "$CC"; then
4581 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4582 $as_echo "$CC" >&6; }
4583 else
4584 { $as_echo "$as_me:$LINENO: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4589 fi
4590 fi
4591 if test -z "$CC"; then
4592 # Extract the first word of "cc", so it can be a program name with args.
4593 set dummy cc; ac_word=$2
4594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_prog_CC+set}" = set; then
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4601 else
4602 ac_prog_rejected=no
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4611 ac_prog_rejected=yes
4612 continue
4613 fi
4614 ac_cv_prog_CC="cc"
4615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4622 if test $ac_prog_rejected = yes; then
4623 # We found a bogon in the path, so make sure we never use it.
4624 set dummy $ac_cv_prog_CC
4625 shift
4626 if test $# != 0; then
4627 # We chose a different compiler from the bogus one.
4628 # However, it has the same basename, so the bogon will be chosen
4629 # first if we set CC to just the basename; use the full file name.
4630 shift
4631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4632 fi
4633 fi
4634 fi
4635 fi
4636 CC=$ac_cv_prog_CC
4637 if test -n "$CC"; then
4638 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4639 $as_echo "$CC" >&6; }
4640 else
4641 { $as_echo "$as_me:$LINENO: result: no" >&5
4642 $as_echo "no" >&6; }
4643 fi
4646 fi
4647 if test -z "$CC"; then
4648 if test -n "$ac_tool_prefix"; then
4649 for ac_prog in cl.exe
4650 do
4651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_CC+set}" = set; then
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC="$CC" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4676 fi
4677 fi
4678 CC=$ac_cv_prog_CC
4679 if test -n "$CC"; then
4680 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4681 $as_echo "$CC" >&6; }
4682 else
4683 { $as_echo "$as_me:$LINENO: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4688 test -n "$CC" && break
4689 done
4690 fi
4691 if test -z "$CC"; then
4692 ac_ct_CC=$CC
4693 for ac_prog in cl.exe
4694 do
4695 # Extract the first word of "$ac_prog", so it can be a program name with args.
4696 set dummy $ac_prog; ac_word=$2
4697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$ac_ct_CC"; then
4703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_CC="$ac_prog"
4713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4720 fi
4721 fi
4722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4723 if test -n "$ac_ct_CC"; then
4724 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4725 $as_echo "$ac_ct_CC" >&6; }
4726 else
4727 { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4732 test -n "$ac_ct_CC" && break
4733 done
4735 if test "x$ac_ct_CC" = x; then
4736 CC=""
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4741 whose name does not start with the host triplet. If you think this
4742 configuration is useful to you, please write to autoconf@gnu.org." >&5
4743 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4744 whose name does not start with the host triplet. If you think this
4745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4746 ac_tool_warned=yes ;;
4747 esac
4748 CC=$ac_ct_CC
4749 fi
4750 fi
4752 fi
4755 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4756 See \`config.log' for more details." >&5
4757 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4758 See \`config.log' for more details." >&2;}
4759 { (exit 1); exit 1; }; }
4761 # Provide some information about the compiler.
4762 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4763 set X $ac_compile
4764 ac_compiler=$2
4765 { (ac_try="$ac_compiler --version >&5"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4771 $as_echo "$ac_try_echo") >&5
4772 (eval "$ac_compiler --version >&5") 2>&5
4773 ac_status=$?
4774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }
4776 { (ac_try="$ac_compiler -v >&5"
4777 case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4780 esac
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783 (eval "$ac_compiler -v >&5") 2>&5
4784 ac_status=$?
4785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }
4787 { (ac_try="$ac_compiler -V >&5"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793 $as_echo "$ac_try_echo") >&5
4794 (eval "$ac_compiler -V >&5") 2>&5
4795 ac_status=$?
4796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }
4799 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4802 $as_echo_n "(cached) " >&6
4803 else
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4811 int
4812 main ()
4813 {
4814 #ifndef __GNUC__
4815 choke me
4816 #endif
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (ac_try="$ac_compile"
4824 case "(($ac_try" in
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4827 esac
4828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4829 $as_echo "$ac_try_echo") >&5
4830 (eval "$ac_compile") 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest.$ac_objext; then
4840 ac_compiler_gnu=yes
4841 else
4842 $as_echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4845 ac_compiler_gnu=no
4846 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4851 fi
4852 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4853 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4854 if test $ac_compiler_gnu = yes; then
4855 GCC=yes
4856 else
4857 GCC=
4858 fi
4859 ac_test_CFLAGS=${CFLAGS+set}
4860 ac_save_CFLAGS=$CFLAGS
4861 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4862 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4863 if test "${ac_cv_prog_cc_g+set}" = set; then
4864 $as_echo_n "(cached) " >&6
4865 else
4866 ac_save_c_werror_flag=$ac_c_werror_flag
4867 ac_c_werror_flag=yes
4868 ac_cv_prog_cc_g=no
4869 CFLAGS="-g"
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4877 int
4878 main ()
4879 {
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892 $as_echo "$ac_try_echo") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4903 ac_cv_prog_cc_g=yes
4904 else
4905 $as_echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 CFLAGS=""
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4916 int
4917 main ()
4918 {
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4931 $as_echo "$ac_try_echo") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4942 :
4943 else
4944 $as_echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_c_werror_flag=$ac_save_c_werror_flag
4948 CFLAGS="-g"
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h. */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4956 int
4957 main ()
4958 {
4960 ;
4961 return 0;
4962 }
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4966 case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4969 esac
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_compile") 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && {
4979 test -z "$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 } && test -s conftest.$ac_objext; then
4982 ac_cv_prog_cc_g=yes
4983 else
4984 $as_echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4988 fi
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 fi
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 fi
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 ac_c_werror_flag=$ac_save_c_werror_flag
4998 fi
4999 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5000 $as_echo "$ac_cv_prog_cc_g" >&6; }
5001 if test "$ac_test_CFLAGS" = set; then
5002 CFLAGS=$ac_save_CFLAGS
5003 elif test $ac_cv_prog_cc_g = yes; then
5004 if test "$GCC" = yes; then
5005 CFLAGS="-g -O2"
5006 else
5007 CFLAGS="-g"
5008 fi
5009 else
5010 if test "$GCC" = yes; then
5011 CFLAGS="-O2"
5012 else
5013 CFLAGS=
5014 fi
5015 fi
5016 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5018 if test "${ac_cv_prog_cc_c89+set}" = set; then
5019 $as_echo_n "(cached) " >&6
5020 else
5021 ac_cv_prog_cc_c89=no
5022 ac_save_CC=$CC
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <stdarg.h>
5030 #include <stdio.h>
5031 #include <sys/types.h>
5032 #include <sys/stat.h>
5033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5034 struct buf { int x; };
5035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5036 static char *e (p, i)
5037 char **p;
5038 int i;
5039 {
5040 return p[i];
5041 }
5042 static char *f (char * (*g) (char **, int), char **p, ...)
5043 {
5044 char *s;
5045 va_list v;
5046 va_start (v,p);
5047 s = g (p, va_arg (v,int));
5048 va_end (v);
5049 return s;
5050 }
5052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5053 function prototypes and stuff, but not '\xHH' hex character constants.
5054 These don't provoke an error unfortunately, instead are silently treated
5055 as 'x'. The following induces an error, until -std is added to get
5056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5057 array size at least. It's necessary to write '\x00'==0 to get something
5058 that's true only with -std. */
5059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5061 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5062 inside strings and character constants. */
5063 #define FOO(x) 'x'
5064 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5066 int test (int i, double x);
5067 struct s1 {int (*f) (int a);};
5068 struct s2 {int (*f) (double a);};
5069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5070 int argc;
5071 char **argv;
5072 int
5073 main ()
5074 {
5075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5076 ;
5077 return 0;
5078 }
5079 _ACEOF
5080 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5082 do
5083 CC="$ac_save_CC $ac_arg"
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5086 case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_compile") 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest.$ac_objext; then
5102 ac_cv_prog_cc_c89=$ac_arg
5103 else
5104 $as_echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5108 fi
5110 rm -f core conftest.err conftest.$ac_objext
5111 test "x$ac_cv_prog_cc_c89" != "xno" && break
5112 done
5113 rm -f conftest.$ac_ext
5114 CC=$ac_save_CC
5116 fi
5117 # AC_CACHE_VAL
5118 case "x$ac_cv_prog_cc_c89" in
5119 x)
5120 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5121 $as_echo "none needed" >&6; } ;;
5122 xno)
5123 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5124 $as_echo "unsupported" >&6; } ;;
5125 *)
5126 CC="$CC $ac_cv_prog_cc_c89"
5127 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5129 esac
5132 ac_ext=c
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 depcc="$CC" am_compiler_list=
5140 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5141 $as_echo_n "checking dependency style of $depcc... " >&6; }
5142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146 # We make a subdir and do the tests there. Otherwise we can end up
5147 # making bogus files that we don't know about and never remove. For
5148 # instance it was reported that on HP-UX the gcc test will end up
5149 # making a dummy file named `D' -- because `-MD' means `put the output
5150 # in D'.
5151 mkdir conftest.dir
5152 # Copy depcomp to subdir because otherwise we won't find it if we're
5153 # using a relative directory.
5154 cp "$am_depcomp" conftest.dir
5155 cd conftest.dir
5156 # We will build objects and dependencies in a subdirectory because
5157 # it helps to detect inapplicable dependency modes. For instance
5158 # both Tru64's cc and ICC support -MD to output dependencies as a
5159 # side effect of compilation, but ICC will put the dependencies in
5160 # the current directory while Tru64 will put them in the object
5161 # directory.
5162 mkdir sub
5164 am_cv_CC_dependencies_compiler_type=none
5165 if test "$am_compiler_list" = ""; then
5166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5167 fi
5168 for depmode in $am_compiler_list; do
5169 # Setup a source with many dependencies, because some compilers
5170 # like to wrap large dependency lists on column 80 (with \), and
5171 # we should not choose a depcomp mode which is confused by this.
5172 #
5173 # We need to recreate these files for each test, as the compiler may
5174 # overwrite some of them when testing with obscure command lines.
5175 # This happens at least with the AIX C compiler.
5176 : > sub/conftest.c
5177 for i in 1 2 3 4 5 6; do
5178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5180 # Solaris 8's {/usr,}/bin/sh.
5181 touch sub/conftst$i.h
5182 done
5183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5185 case $depmode in
5186 nosideeffect)
5187 # after this tag, mechanisms are not by side-effect, so they'll
5188 # only be used when explicitly requested
5189 if test "x$enable_dependency_tracking" = xyes; then
5190 continue
5191 else
5192 break
5193 fi
5194 ;;
5195 none) break ;;
5196 esac
5197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5198 # mode. It turns out that the SunPro C++ compiler does not properly
5199 # handle `-M -o', and we need to detect this.
5200 if depmode=$depmode \
5201 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5202 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5203 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5204 >/dev/null 2>conftest.err &&
5205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5206 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5208 # icc doesn't choke on unknown options, it will just issue warnings
5209 # or remarks (even with -Werror). So we grep stderr for any message
5210 # that says an option was ignored or not supported.
5211 # When given -MP, icc 7.0 and 7.1 complain thusly:
5212 # icc: Command line warning: ignoring option '-M'; no argument required
5213 # The diagnosis changed in icc 8.0:
5214 # icc: Command line remark: option '-MP' not supported
5215 if (grep 'ignoring option' conftest.err ||
5216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5217 am_cv_CC_dependencies_compiler_type=$depmode
5218 break
5219 fi
5220 fi
5221 done
5223 cd ..
5224 rm -rf conftest.dir
5225 else
5226 am_cv_CC_dependencies_compiler_type=none
5227 fi
5229 fi
5230 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5231 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5232 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5236 if
5237 test "x$enable_dependency_tracking" != xno \
5238 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5239 am__fastdepCC_TRUE=
5240 am__fastdepCC_FALSE='#'
5241 else
5242 am__fastdepCC_TRUE='#'
5243 am__fastdepCC_FALSE=
5244 fi
5248 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5250 ac_ext=m
5251 ac_cpp='$OBJCPP $CPPFLAGS'
5252 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5255 if test -n "$ac_tool_prefix"; then
5256 for ac_prog in gcc objcc objc cc CC
5257 do
5258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_OBJC+set}" = set; then
5263 $as_echo_n "(cached) " >&6
5264 else
5265 if test -n "$OBJC"; then
5266 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279 done
5280 done
5281 IFS=$as_save_IFS
5283 fi
5284 fi
5285 OBJC=$ac_cv_prog_OBJC
5286 if test -n "$OBJC"; then
5287 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5288 $as_echo "$OBJC" >&6; }
5289 else
5290 { $as_echo "$as_me:$LINENO: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5295 test -n "$OBJC" && break
5296 done
5297 fi
5298 if test -z "$OBJC"; then
5299 ac_ct_OBJC=$OBJC
5300 for ac_prog in gcc objcc objc cc CC
5301 do
5302 # Extract the first word of "$ac_prog", so it can be a program name with args.
5303 set dummy $ac_prog; ac_word=$2
5304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if test -n "$ac_ct_OBJC"; then
5310 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323 done
5324 done
5325 IFS=$as_save_IFS
5327 fi
5328 fi
5329 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5330 if test -n "$ac_ct_OBJC"; then
5331 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5332 $as_echo "$ac_ct_OBJC" >&6; }
5333 else
5334 { $as_echo "$as_me:$LINENO: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5339 test -n "$ac_ct_OBJC" && break
5340 done
5342 if test "x$ac_ct_OBJC" = x; then
5343 OBJC="gcc"
5344 else
5345 case $cross_compiling:$ac_tool_warned in
5346 yes:)
5347 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5348 whose name does not start with the host triplet. If you think this
5349 configuration is useful to you, please write to autoconf@gnu.org." >&5
5350 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5351 whose name does not start with the host triplet. If you think this
5352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5353 ac_tool_warned=yes ;;
5354 esac
5355 OBJC=$ac_ct_OBJC
5356 fi
5357 fi
5359 # Provide some information about the compiler.
5360 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5361 set X $ac_compile
5362 ac_compiler=$2
5363 { (ac_try="$ac_compiler --version >&5"
5364 case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5369 $as_echo "$ac_try_echo") >&5
5370 (eval "$ac_compiler --version >&5") 2>&5
5371 ac_status=$?
5372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }
5374 { (ac_try="$ac_compiler -v >&5"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380 $as_echo "$ac_try_echo") >&5
5381 (eval "$ac_compiler -v >&5") 2>&5
5382 ac_status=$?
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }
5385 { (ac_try="$ac_compiler -V >&5"
5386 case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389 esac
5390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391 $as_echo "$ac_try_echo") >&5
5392 (eval "$ac_compiler -V >&5") 2>&5
5393 ac_status=$?
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }
5397 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5398 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5399 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5409 int
5410 main ()
5411 {
5412 #ifndef __GNUC__
5413 choke me
5414 #endif
5416 ;
5417 return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (ac_try="$ac_compile"
5422 case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425 esac
5426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427 $as_echo "$ac_try_echo") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_objc_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest.$ac_objext; then
5438 ac_compiler_gnu=yes
5439 else
5440 $as_echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 ac_compiler_gnu=no
5444 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5449 fi
5450 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5451 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5452 if test $ac_compiler_gnu = yes; then
5453 GOBJC=yes
5454 else
5455 GOBJC=
5456 fi
5457 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5458 ac_save_OBJCFLAGS=$OBJCFLAGS
5459 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5460 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5461 if test "${ac_cv_prog_objc_g+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5463 else
5464 ac_save_objc_werror_flag=$ac_objc_werror_flag
5465 ac_objc_werror_flag=yes
5466 ac_cv_prog_objc_g=no
5467 OBJCFLAGS="-g"
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5475 int
5476 main ()
5477 {
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5490 $as_echo "$ac_try_echo") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_objc_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_cv_prog_objc_g=yes
5502 else
5503 $as_echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 OBJCFLAGS=""
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5514 int
5515 main ()
5516 {
5518 ;
5519 return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527 esac
5528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5529 $as_echo "$ac_try_echo") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_objc_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 :
5541 else
5542 $as_echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_objc_werror_flag=$ac_save_objc_werror_flag
5546 OBJCFLAGS="-g"
5547 cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h. */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5554 int
5555 main ()
5556 {
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5564 case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567 esac
5568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5569 $as_echo "$ac_try_echo") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && {
5577 test -z "$ac_objc_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.$ac_objext; then
5580 ac_cv_prog_objc_g=yes
5581 else
5582 $as_echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5586 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 fi
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 fi
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 ac_objc_werror_flag=$ac_save_objc_werror_flag
5596 fi
5597 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5598 $as_echo "$ac_cv_prog_objc_g" >&6; }
5599 if test "$ac_test_OBJCFLAGS" = set; then
5600 OBJCFLAGS=$ac_save_OBJCFLAGS
5601 elif test $ac_cv_prog_objc_g = yes; then
5602 if test "$GOBJC" = yes; then
5603 OBJCFLAGS="-g -O2"
5604 else
5605 OBJCFLAGS="-g"
5606 fi
5607 else
5608 if test "$GOBJC" = yes; then
5609 OBJCFLAGS="-O2"
5610 else
5611 OBJCFLAGS=
5612 fi
5613 fi
5614 ac_ext=c
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5621 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5622 if test "${ac_cv_path_SED+set}" = set; then
5623 $as_echo_n "(cached) " >&6
5624 else
5625 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5626 for ac_i in 1 2 3 4 5 6 7; do
5627 ac_script="$ac_script$as_nl$ac_script"
5628 done
5629 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5630 $as_unset ac_script || ac_script=
5631 if test -z "$SED"; then
5632 ac_path_SED_found=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_prog in sed gsed; do
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5642 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5643 # Check for GNU ac_path_SED and select it if it is found.
5644 # Check for GNU $ac_path_SED
5645 case `"$ac_path_SED" --version 2>&1` in
5646 *GNU*)
5647 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5648 *)
5649 ac_count=0
5650 $as_echo_n 0123456789 >"conftest.in"
5651 while :
5652 do
5653 cat "conftest.in" "conftest.in" >"conftest.tmp"
5654 mv "conftest.tmp" "conftest.in"
5655 cp "conftest.in" "conftest.nl"
5656 $as_echo '' >> "conftest.nl"
5657 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659 ac_count=`expr $ac_count + 1`
5660 if test $ac_count -gt ${ac_path_SED_max-0}; then
5661 # Best one so far, save it but keep looking for a better one
5662 ac_cv_path_SED="$ac_path_SED"
5663 ac_path_SED_max=$ac_count
5664 fi
5665 # 10*(2^10) chars as input seems more than enough
5666 test $ac_count -gt 10 && break
5667 done
5668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669 esac
5671 $ac_path_SED_found && break 3
5672 done
5673 done
5674 done
5675 IFS=$as_save_IFS
5676 if test -z "$ac_cv_path_SED"; then
5677 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5678 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5679 { (exit 1); exit 1; }; }
5680 fi
5681 else
5682 ac_cv_path_SED=$SED
5683 fi
5685 fi
5686 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5687 $as_echo "$ac_cv_path_SED" >&6; }
5688 SED="$ac_cv_path_SED"
5689 rm -f conftest.sed
5691 # By default we simply use the C compiler to build assembly code.
5693 test "${CCAS+set}" = set || CCAS=$CC
5694 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5698 ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5704 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5705 # On Suns, sometimes $CPP names a directory.
5706 if test -n "$CPP" && test -d "$CPP"; then
5707 CPP=
5708 fi
5709 if test -z "$CPP"; then
5710 if test "${ac_cv_prog_CPP+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5712 else
5713 # Double quotes because CPP needs to be expanded
5714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5715 do
5716 ac_preproc_ok=false
5717 for ac_c_preproc_warn_flag in '' yes
5718 do
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #ifdef __STDC__
5732 # include <limits.h>
5733 #else
5734 # include <assert.h>
5735 #endif
5736 Syntax error
5737 _ACEOF
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } >/dev/null && {
5752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 }; then
5755 :
5756 else
5757 $as_echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 # Broken: fails on valid input.
5761 continue
5762 fi
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #include <ac_nonexistent.h>
5775 _ACEOF
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5782 $as_echo "$ac_try_echo") >&5
5783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } >/dev/null && {
5790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 }; then
5793 # Broken: success on invalid input.
5794 continue
5795 else
5796 $as_echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 # Passes both tests.
5800 ac_preproc_ok=:
5801 break
5802 fi
5804 rm -f conftest.err conftest.$ac_ext
5806 done
5807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5808 rm -f conftest.err conftest.$ac_ext
5809 if $ac_preproc_ok; then
5810 break
5811 fi
5813 done
5814 ac_cv_prog_CPP=$CPP
5816 fi
5817 CPP=$ac_cv_prog_CPP
5818 else
5819 ac_cv_prog_CPP=$CPP
5820 fi
5821 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5822 $as_echo "$CPP" >&6; }
5823 ac_preproc_ok=false
5824 for ac_c_preproc_warn_flag in '' yes
5825 do
5826 # Use a header file that comes with gcc, so configuring glibc
5827 # with a fresh cross-compiler works.
5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 # <limits.h> exists even on freestanding compilers.
5830 # On the NeXT, cc -E runs the code through the compiler's parser,
5831 # not just through cpp. "Syntax error" is here to catch this case.
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #ifdef __STDC__
5839 # include <limits.h>
5840 #else
5841 # include <assert.h>
5842 #endif
5843 Syntax error
5844 _ACEOF
5845 if { (ac_try="$ac_cpp conftest.$ac_ext"
5846 case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849 esac
5850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5851 $as_echo "$ac_try_echo") >&5
5852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null && {
5859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 }; then
5862 :
5863 else
5864 $as_echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 # Broken: fails on valid input.
5868 continue
5869 fi
5871 rm -f conftest.err conftest.$ac_ext
5873 # OK, works on sane cases. Now check whether nonexistent headers
5874 # can be detected and how.
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <ac_nonexistent.h>
5882 _ACEOF
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5884 case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887 esac
5888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5889 $as_echo "$ac_try_echo") >&5
5890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5891 ac_status=$?
5892 grep -v '^ *+' conftest.er1 >conftest.err
5893 rm -f conftest.er1
5894 cat conftest.err >&5
5895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } >/dev/null && {
5897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5898 test ! -s conftest.err
5899 }; then
5900 # Broken: success on invalid input.
5901 continue
5902 else
5903 $as_echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 # Passes both tests.
5907 ac_preproc_ok=:
5908 break
5909 fi
5911 rm -f conftest.err conftest.$ac_ext
5913 done
5914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915 rm -f conftest.err conftest.$ac_ext
5916 if $ac_preproc_ok; then
5917 :
5918 else
5919 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5920 See \`config.log' for more details." >&5
5921 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5922 See \`config.log' for more details." >&2;}
5923 { (exit 1); exit 1; }; }
5924 fi
5926 ac_ext=c
5927 ac_cpp='$CPP $CPPFLAGS'
5928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5933 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5934 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5935 if test "${ac_cv_path_GREP+set}" = set; then
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -z "$GREP"; then
5939 ac_path_GREP_found=false
5940 # Loop through the user's path and test for each of PROGNAME-LIST
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5943 do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_prog in grep ggrep; do
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5949 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5950 # Check for GNU ac_path_GREP and select it if it is found.
5951 # Check for GNU $ac_path_GREP
5952 case `"$ac_path_GREP" --version 2>&1` in
5953 *GNU*)
5954 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5955 *)
5956 ac_count=0
5957 $as_echo_n 0123456789 >"conftest.in"
5958 while :
5959 do
5960 cat "conftest.in" "conftest.in" >"conftest.tmp"
5961 mv "conftest.tmp" "conftest.in"
5962 cp "conftest.in" "conftest.nl"
5963 $as_echo 'GREP' >> "conftest.nl"
5964 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5966 ac_count=`expr $ac_count + 1`
5967 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5968 # Best one so far, save it but keep looking for a better one
5969 ac_cv_path_GREP="$ac_path_GREP"
5970 ac_path_GREP_max=$ac_count
5971 fi
5972 # 10*(2^10) chars as input seems more than enough
5973 test $ac_count -gt 10 && break
5974 done
5975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5976 esac
5978 $ac_path_GREP_found && break 3
5979 done
5980 done
5981 done
5982 IFS=$as_save_IFS
5983 if test -z "$ac_cv_path_GREP"; then
5984 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5985 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5986 { (exit 1); exit 1; }; }
5987 fi
5988 else
5989 ac_cv_path_GREP=$GREP
5990 fi
5992 fi
5993 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5994 $as_echo "$ac_cv_path_GREP" >&6; }
5995 GREP="$ac_cv_path_GREP"
5998 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5999 $as_echo_n "checking for egrep... " >&6; }
6000 if test "${ac_cv_path_EGREP+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6004 then ac_cv_path_EGREP="$GREP -E"
6005 else
6006 if test -z "$EGREP"; then
6007 ac_path_EGREP_found=false
6008 # Loop through the user's path and test for each of PROGNAME-LIST
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_prog in egrep; do
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6017 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6018 # Check for GNU ac_path_EGREP and select it if it is found.
6019 # Check for GNU $ac_path_EGREP
6020 case `"$ac_path_EGREP" --version 2>&1` in
6021 *GNU*)
6022 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6023 *)
6024 ac_count=0
6025 $as_echo_n 0123456789 >"conftest.in"
6026 while :
6027 do
6028 cat "conftest.in" "conftest.in" >"conftest.tmp"
6029 mv "conftest.tmp" "conftest.in"
6030 cp "conftest.in" "conftest.nl"
6031 $as_echo 'EGREP' >> "conftest.nl"
6032 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6034 ac_count=`expr $ac_count + 1`
6035 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6036 # Best one so far, save it but keep looking for a better one
6037 ac_cv_path_EGREP="$ac_path_EGREP"
6038 ac_path_EGREP_max=$ac_count
6039 fi
6040 # 10*(2^10) chars as input seems more than enough
6041 test $ac_count -gt 10 && break
6042 done
6043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6044 esac
6046 $ac_path_EGREP_found && break 3
6047 done
6048 done
6049 done
6050 IFS=$as_save_IFS
6051 if test -z "$ac_cv_path_EGREP"; then
6052 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6053 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6054 { (exit 1); exit 1; }; }
6055 fi
6056 else
6057 ac_cv_path_EGREP=$EGREP
6058 fi
6060 fi
6061 fi
6062 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6063 $as_echo "$ac_cv_path_EGREP" >&6; }
6064 EGREP="$ac_cv_path_EGREP"
6067 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6068 $as_echo_n "checking for ANSI C header files... " >&6; }
6069 if test "${ac_cv_header_stdc+set}" = set; then
6070 $as_echo_n "(cached) " >&6
6071 else
6072 cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h. */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 #include <stdlib.h>
6079 #include <stdarg.h>
6080 #include <string.h>
6081 #include <float.h>
6083 int
6084 main ()
6085 {
6087 ;
6088 return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6098 $as_echo "$ac_try_echo") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 ac_cv_header_stdc=yes
6110 else
6111 $as_echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_cv_header_stdc=no
6115 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 #include <string.h>
6129 _ACEOF
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 $EGREP "memchr" >/dev/null 2>&1; then
6132 :
6133 else
6134 ac_cv_header_stdc=no
6135 fi
6136 rm -f conftest*
6138 fi
6140 if test $ac_cv_header_stdc = yes; then
6141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 #include <stdlib.h>
6150 _ACEOF
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "free" >/dev/null 2>&1; then
6153 :
6154 else
6155 ac_cv_header_stdc=no
6156 fi
6157 rm -f conftest*
6159 fi
6161 if test $ac_cv_header_stdc = yes; then
6162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163 if test "$cross_compiling" = yes; then
6164 :
6165 else
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <ctype.h>
6173 #include <stdlib.h>
6174 #if ((' ' & 0x0FF) == 0x020)
6175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6177 #else
6178 # define ISLOWER(c) \
6179 (('a' <= (c) && (c) <= 'i') \
6180 || ('j' <= (c) && (c) <= 'r') \
6181 || ('s' <= (c) && (c) <= 'z'))
6182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6183 #endif
6185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6186 int
6187 main ()
6188 {
6189 int i;
6190 for (i = 0; i < 256; i++)
6191 if (XOR (islower (i), ISLOWER (i))
6192 || toupper (i) != TOUPPER (i))
6193 return 2;
6194 return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6199 case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202 esac
6203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6204 $as_echo "$ac_try_echo") >&5
6205 (eval "$ac_link") 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209 { (case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212 esac
6213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6214 $as_echo "$ac_try_echo") >&5
6215 (eval "$ac_try") 2>&5
6216 ac_status=$?
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 :
6220 else
6221 $as_echo "$as_me: program exited with status $ac_status" >&5
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ( exit $ac_status )
6226 ac_cv_header_stdc=no
6227 fi
6228 rm -rf conftest.dSYM
6229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6230 fi
6233 fi
6234 fi
6235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6236 $as_echo "$ac_cv_header_stdc" >&6; }
6237 if test $ac_cv_header_stdc = yes; then
6239 cat >>confdefs.h <<\_ACEOF
6240 #define STDC_HEADERS 1
6241 _ACEOF
6243 fi
6245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6256 inttypes.h stdint.h unistd.h
6257 do
6258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6260 $as_echo_n "checking for $ac_header... " >&6; }
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 $as_echo_n "(cached) " >&6
6263 else
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6272 #include <$ac_header>
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6276 case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279 esac
6280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6281 $as_echo "$ac_try_echo") >&5
6282 (eval "$ac_compile") 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.$ac_objext; then
6292 eval "$as_ac_Header=yes"
6293 else
6294 $as_echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 eval "$as_ac_Header=no"
6298 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 fi
6302 ac_res=`eval 'as_val=${'$as_ac_Header'}
6303 $as_echo "$as_val"'`
6304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6305 $as_echo "$ac_res" >&6; }
6306 if test `eval 'as_val=${'$as_ac_Header'}
6307 $as_echo "$as_val"'` = yes; then
6308 cat >>confdefs.h <<_ACEOF
6309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6310 _ACEOF
6312 fi
6314 done
6317 # The cast to long int works around a bug in the HP C Compiler
6318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6320 # This bug is HP SR number 8606223364.
6321 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6322 $as_echo_n "checking size of void *... " >&6; }
6323 if test "${ac_cv_sizeof_void_p+set}" = set; then
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test "$cross_compiling" = yes; then
6327 # Depending upon the size, compute the lo and hi bounds.
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6335 int
6336 main ()
6337 {
6338 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6339 test_array [0] = 0
6341 ;
6342 return 0;
6343 }
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (ac_try="$ac_compile"
6347 case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350 esac
6351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352 $as_echo "$ac_try_echo") >&5
6353 (eval "$ac_compile") 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest.$ac_objext; then
6363 ac_lo=0 ac_mid=0
6364 while :; do
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6372 int
6373 main ()
6374 {
6375 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6376 test_array [0] = 0
6378 ;
6379 return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6384 case "(($ac_try" in
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387 esac
6388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6389 $as_echo "$ac_try_echo") >&5
6390 (eval "$ac_compile") 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && {
6397 test -z "$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 } && test -s conftest.$ac_objext; then
6400 ac_hi=$ac_mid; break
6401 else
6402 $as_echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_lo=`expr $ac_mid + 1`
6406 if test $ac_lo -le $ac_mid; then
6407 ac_lo= ac_hi=
6408 break
6409 fi
6410 ac_mid=`expr 2 '*' $ac_mid + 1`
6411 fi
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 done
6415 else
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6426 int
6427 main ()
6428 {
6429 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6430 test_array [0] = 0
6432 ;
6433 return 0;
6434 }
6435 _ACEOF
6436 rm -f conftest.$ac_objext
6437 if { (ac_try="$ac_compile"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6443 $as_echo "$ac_try_echo") >&5
6444 (eval "$ac_compile") 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } && {
6451 test -z "$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 } && test -s conftest.$ac_objext; then
6454 ac_hi=-1 ac_mid=-1
6455 while :; do
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h. */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6463 int
6464 main ()
6465 {
6466 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6467 test_array [0] = 0
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6475 case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478 esac
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 ac_lo=$ac_mid; break
6492 else
6493 $as_echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_hi=`expr '(' $ac_mid ')' - 1`
6497 if test $ac_mid -le $ac_hi; then
6498 ac_lo= ac_hi=
6499 break
6500 fi
6501 ac_mid=`expr 2 '*' $ac_mid`
6502 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 done
6506 else
6507 $as_echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_lo= ac_hi=
6511 fi
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 # Binary search between lo and hi bounds.
6518 while test "x$ac_lo" != "x$ac_hi"; do
6519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 int
6528 main ()
6529 {
6530 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6531 test_array [0] = 0
6533 ;
6534 return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 ac_hi=$ac_mid
6556 else
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_lo=`expr '(' $ac_mid ')' + 1`
6561 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 done
6565 case $ac_lo in
6566 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6567 '') if test "$ac_cv_type_void_p" = yes; then
6568 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6569 See \`config.log' for more details." >&5
6570 $as_echo "$as_me: error: cannot compute sizeof (void *)
6571 See \`config.log' for more details." >&2;}
6572 { (exit 77); exit 77; }; }
6573 else
6574 ac_cv_sizeof_void_p=0
6575 fi ;;
6576 esac
6577 else
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 $ac_includes_default
6585 static long int longval () { return (long int) (sizeof (void *)); }
6586 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6587 #include <stdio.h>
6588 #include <stdlib.h>
6589 int
6590 main ()
6591 {
6593 FILE *f = fopen ("conftest.val", "w");
6594 if (! f)
6595 return 1;
6596 if (((long int) (sizeof (void *))) < 0)
6597 {
6598 long int i = longval ();
6599 if (i != ((long int) (sizeof (void *))))
6600 return 1;
6601 fprintf (f, "%ld", i);
6602 }
6603 else
6604 {
6605 unsigned long int i = ulongval ();
6606 if (i != ((long int) (sizeof (void *))))
6607 return 1;
6608 fprintf (f, "%lu", i);
6609 }
6610 /* Do not output a trailing newline, as this causes \r\n confusion
6611 on some platforms. */
6612 return ferror (f) || fclose (f) != 0;
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 rm -f conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6620 case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_link") 2>&5
6627 ac_status=$?
6628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6630 { (case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633 esac
6634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6635 $as_echo "$ac_try_echo") >&5
6636 (eval "$ac_try") 2>&5
6637 ac_status=$?
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_sizeof_void_p=`cat conftest.val`
6641 else
6642 $as_echo "$as_me: program exited with status $ac_status" >&5
6643 $as_echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ( exit $ac_status )
6647 if test "$ac_cv_type_void_p" = yes; then
6648 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6649 See \`config.log' for more details." >&5
6650 $as_echo "$as_me: error: cannot compute sizeof (void *)
6651 See \`config.log' for more details." >&2;}
6652 { (exit 77); exit 77; }; }
6653 else
6654 ac_cv_sizeof_void_p=0
6655 fi
6656 fi
6657 rm -rf conftest.dSYM
6658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6659 fi
6660 rm -f conftest.val
6661 fi
6662 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6663 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6667 cat >>confdefs.h <<_ACEOF
6668 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6669 _ACEOF
6672 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6673 $as_echo_n "checking for ANSI C header files... " >&6; }
6674 if test "${ac_cv_header_stdc+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 #include <stdlib.h>
6684 #include <stdarg.h>
6685 #include <string.h>
6686 #include <float.h>
6688 int
6689 main ()
6690 {
6692 ;
6693 return 0;
6694 }
6695 _ACEOF
6696 rm -f conftest.$ac_objext
6697 if { (ac_try="$ac_compile"
6698 case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701 esac
6702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703 $as_echo "$ac_try_echo") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_header_stdc=yes
6715 else
6716 $as_echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_cv_header_stdc=no
6720 fi
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 if test $ac_cv_header_stdc = yes; then
6725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 #include <string.h>
6734 _ACEOF
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 $EGREP "memchr" >/dev/null 2>&1; then
6737 :
6738 else
6739 ac_cv_header_stdc=no
6740 fi
6741 rm -f conftest*
6743 fi
6745 if test $ac_cv_header_stdc = yes; then
6746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <stdlib.h>
6755 _ACEOF
6756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6757 $EGREP "free" >/dev/null 2>&1; then
6758 :
6759 else
6760 ac_cv_header_stdc=no
6761 fi
6762 rm -f conftest*
6764 fi
6766 if test $ac_cv_header_stdc = yes; then
6767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6768 if test "$cross_compiling" = yes; then
6769 :
6770 else
6771 cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h. */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6777 #include <ctype.h>
6778 #include <stdlib.h>
6779 #if ((' ' & 0x0FF) == 0x020)
6780 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6781 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6782 #else
6783 # define ISLOWER(c) \
6784 (('a' <= (c) && (c) <= 'i') \
6785 || ('j' <= (c) && (c) <= 'r') \
6786 || ('s' <= (c) && (c) <= 'z'))
6787 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6788 #endif
6790 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6791 int
6792 main ()
6793 {
6794 int i;
6795 for (i = 0; i < 256; i++)
6796 if (XOR (islower (i), ISLOWER (i))
6797 || toupper (i) != TOUPPER (i))
6798 return 2;
6799 return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest$ac_exeext
6803 if { (ac_try="$ac_link"
6804 case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807 esac
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_link") 2>&5
6811 ac_status=$?
6812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6814 { (case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6817 esac
6818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6819 $as_echo "$ac_try_echo") >&5
6820 (eval "$ac_try") 2>&5
6821 ac_status=$?
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 :
6825 else
6826 $as_echo "$as_me: program exited with status $ac_status" >&5
6827 $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 ( exit $ac_status )
6831 ac_cv_header_stdc=no
6832 fi
6833 rm -rf conftest.dSYM
6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6835 fi
6838 fi
6839 fi
6840 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6841 $as_echo "$ac_cv_header_stdc" >&6; }
6842 if test $ac_cv_header_stdc = yes; then
6844 cat >>confdefs.h <<\_ACEOF
6845 #define STDC_HEADERS 1
6846 _ACEOF
6848 fi
6850 # Make sure we can run config.sub.
6851 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6852 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6853 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6854 { (exit 1); exit 1; }; }
6856 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6857 $as_echo_n "checking build system type... " >&6; }
6858 if test "${ac_cv_build+set}" = set; then
6859 $as_echo_n "(cached) " >&6
6860 else
6861 ac_build_alias=$build_alias
6862 test "x$ac_build_alias" = x &&
6863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6864 test "x$ac_build_alias" = x &&
6865 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6866 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6867 { (exit 1); exit 1; }; }
6868 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6869 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6870 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6871 { (exit 1); exit 1; }; }
6873 fi
6874 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6875 $as_echo "$ac_cv_build" >&6; }
6876 case $ac_cv_build in
6877 *-*-*) ;;
6878 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6879 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6880 { (exit 1); exit 1; }; };;
6881 esac
6882 build=$ac_cv_build
6883 ac_save_IFS=$IFS; IFS='-'
6884 set x $ac_cv_build
6885 shift
6886 build_cpu=$1
6887 build_vendor=$2
6888 shift; shift
6889 # Remember, the first character of IFS is used to create $*,
6890 # except with old shells:
6891 build_os=$*
6892 IFS=$ac_save_IFS
6893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6896 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6897 $as_echo_n "checking host system type... " >&6; }
6898 if test "${ac_cv_host+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6900 else
6901 if test "x$host_alias" = x; then
6902 ac_cv_host=$ac_cv_build
6903 else
6904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6905 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6906 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6907 { (exit 1); exit 1; }; }
6908 fi
6910 fi
6911 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6912 $as_echo "$ac_cv_host" >&6; }
6913 case $ac_cv_host in
6914 *-*-*) ;;
6915 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6916 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6917 { (exit 1); exit 1; }; };;
6918 esac
6919 host=$ac_cv_host
6920 ac_save_IFS=$IFS; IFS='-'
6921 set x $ac_cv_host
6922 shift
6923 host_cpu=$1
6924 host_vendor=$2
6925 shift; shift
6926 # Remember, the first character of IFS is used to create $*,
6927 # except with old shells:
6928 host_os=$*
6929 IFS=$ac_save_IFS
6930 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6935 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6937 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6938 $as_echo_n "checking dependency style of $depcc... " >&6; }
6939 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6943 # We make a subdir and do the tests there. Otherwise we can end up
6944 # making bogus files that we don't know about and never remove. For
6945 # instance it was reported that on HP-UX the gcc test will end up
6946 # making a dummy file named `D' -- because `-MD' means `put the output
6947 # in D'.
6948 mkdir conftest.dir
6949 # Copy depcomp to subdir because otherwise we won't find it if we're
6950 # using a relative directory.
6951 cp "$am_depcomp" conftest.dir
6952 cd conftest.dir
6953 # We will build objects and dependencies in a subdirectory because
6954 # it helps to detect inapplicable dependency modes. For instance
6955 # both Tru64's cc and ICC support -MD to output dependencies as a
6956 # side effect of compilation, but ICC will put the dependencies in
6957 # the current directory while Tru64 will put them in the object
6958 # directory.
6959 mkdir sub
6961 am_cv_OBJC_dependencies_compiler_type=none
6962 if test "$am_compiler_list" = ""; then
6963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6964 fi
6965 for depmode in $am_compiler_list; do
6966 # Setup a source with many dependencies, because some compilers
6967 # like to wrap large dependency lists on column 80 (with \), and
6968 # we should not choose a depcomp mode which is confused by this.
6969 #
6970 # We need to recreate these files for each test, as the compiler may
6971 # overwrite some of them when testing with obscure command lines.
6972 # This happens at least with the AIX C compiler.
6973 : > sub/conftest.c
6974 for i in 1 2 3 4 5 6; do
6975 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6976 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6977 # Solaris 8's {/usr,}/bin/sh.
6978 touch sub/conftst$i.h
6979 done
6980 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6982 case $depmode in
6983 nosideeffect)
6984 # after this tag, mechanisms are not by side-effect, so they'll
6985 # only be used when explicitly requested
6986 if test "x$enable_dependency_tracking" = xyes; then
6987 continue
6988 else
6989 break
6990 fi
6991 ;;
6992 none) break ;;
6993 esac
6994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6995 # mode. It turns out that the SunPro C++ compiler does not properly
6996 # handle `-M -o', and we need to detect this.
6997 if depmode=$depmode \
6998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7001 >/dev/null 2>conftest.err &&
7002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7005 # icc doesn't choke on unknown options, it will just issue warnings
7006 # or remarks (even with -Werror). So we grep stderr for any message
7007 # that says an option was ignored or not supported.
7008 # When given -MP, icc 7.0 and 7.1 complain thusly:
7009 # icc: Command line warning: ignoring option '-M'; no argument required
7010 # The diagnosis changed in icc 8.0:
7011 # icc: Command line remark: option '-MP' not supported
7012 if (grep 'ignoring option' conftest.err ||
7013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7014 am_cv_OBJC_dependencies_compiler_type=$depmode
7015 break
7016 fi
7017 fi
7018 done
7020 cd ..
7021 rm -rf conftest.dir
7022 else
7023 am_cv_OBJC_dependencies_compiler_type=none
7024 fi
7026 fi
7027 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7028 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7029 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7033 if
7034 test "x$enable_dependency_tracking" != xno \
7035 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7036 am__fastdepOBJC_TRUE=
7037 am__fastdepOBJC_FALSE='#'
7038 else
7039 am__fastdepOBJC_TRUE='#'
7040 am__fastdepOBJC_FALSE=
7041 fi
7045 # Extract the first word of "pod2man", so it can be a program name with args.
7046 set dummy pod2man; ac_word=$2
7047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_path_POD2MAN+set}" = set; then
7050 $as_echo_n "(cached) " >&6
7051 else
7052 case $POD2MAN in
7053 [\\/]* | ?:[\\/]*)
7054 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7055 ;;
7056 *)
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7072 ;;
7073 esac
7074 fi
7075 POD2MAN=$ac_cv_path_POD2MAN
7076 if test -n "$POD2MAN"; then
7077 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7078 $as_echo "$POD2MAN" >&6; }
7079 else
7080 { $as_echo "$as_me:$LINENO: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7085 # Extract the first word of "pod2html", so it can be a program name with args.
7086 set dummy pod2html; ac_word=$2
7087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if test "${ac_cv_path_POD2HTML+set}" = set; then
7090 $as_echo_n "(cached) " >&6
7091 else
7092 case $POD2HTML in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7112 ;;
7113 esac
7114 fi
7115 POD2HTML=$ac_cv_path_POD2HTML
7116 if test -n "$POD2HTML"; then
7117 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7118 $as_echo "$POD2HTML" >&6; }
7119 else
7120 { $as_echo "$as_me:$LINENO: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7127 # Check whether --enable-strict-warn was given.
7128 if test "${enable_strict_warn+set}" = set; then
7129 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7130 enable_strictwarn=yes
7131 fi
7132 fi
7134 # Check whether --enable-translator was given.
7135 if test "${enable_translator+set}" = set; then
7136 enableval=$enable_translator; true
7137 else
7138 enable_translator=yes
7139 fi
7141 # Check whether --enable-optimized was given.
7142 if test "${enable_optimized+set}" = set; then
7143 enableval=$enable_optimized; true
7144 else
7145 enable_optimized=yes
7146 fi
7148 # Check whether --enable-profiled was given.
7149 if test "${enable_profiled+set}" = set; then
7150 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7151 enable_profiled=yes;
7152 fi
7153 fi
7155 # Check whether --enable-trace was given.
7156 if test "${enable_trace+set}" = set; then
7157 enableval=$enable_trace; if test "$enableval" == "yes"; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define ENABLE_TRACE_IO 1
7161 _ACEOF
7163 fi
7164 fi
7166 # Check whether --enable-watch was given.
7167 if test "${enable_watch+set}" = set; then
7168 enableval=$enable_watch; if test "$enableval" == "yes"; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define ENABLE_WATCH 1
7172 _ACEOF
7174 fi
7175 fi
7177 # Check whether --enable-sh4stats was given.
7178 if test "${enable_sh4stats+set}" = set; then
7179 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7181 cat >>confdefs.h <<\_ACEOF
7182 #define ENABLE_SH4STATS 1
7183 _ACEOF
7185 fi
7186 fi
7189 # Check whether --with-osmesa was given.
7190 if test "${with_osmesa+set}" = set; then
7191 withval=$with_osmesa;
7192 else
7193 with_osmesa=no
7194 fi
7197 # Check whether --with-gtk was given.
7198 if test "${with_gtk+set}" = set; then
7199 withval=$with_gtk; with_gtk=yes
7200 else
7201 with_gtk=x11
7202 fi
7205 # Check whether --with-esd was given.
7206 if test "${with_esd+set}" = set; then
7207 withval=$with_esd;
7208 fi
7211 # Check whether --with-pulse was given.
7212 if test "${with_pulse+set}" = set; then
7213 withval=$with_pulse;
7214 fi
7217 CFLAGS="-g -fexceptions"
7218 OBJCFLAGS="-g -fexceptions"
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_EXCEPTIONS 1
7222 _ACEOF
7226 _GCC_VERSION=`$CC --version | $SED -ne '/(GCC)/p'`
7227 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7228 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7229 $as_echo_n "checking CC version... " >&6; }
7230 if test -n "$_GCC_VERSION"; then
7231 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7232 $as_echo "GCC" >&6; }
7233 CCOPT="-O2 -msse2 -mfpmath=sse"
7234 CFLAGS="$CFLAGS -fno-strict-aliasing"
7235 elif test -n "$_ICC_VERSION"; then
7236 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7237 $as_echo "ICC" >&6; }
7238 CCOPT="$CFLAGS -fast"
7239 else
7240 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7241 $as_echo "Unknown" >&6; }
7242 CCOPT="$CFLAGS -O2"
7243 fi
7246 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7247 $as_echo_n "checking OBJC version... " >&6; }
7248 if test -n "$OBJC"; then
7249 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7250 if test -n "$_GOBJC_VERSION"; then
7251 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7252 $as_echo "GCC" >&6; }
7253 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7254 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7255 else
7256 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7257 $as_echo "Unknown" >&6; }
7258 OBJCOPT="-O2"
7259 fi
7260 else
7261 { $as_echo "$as_me:$LINENO: result: None" >&5
7262 $as_echo "None" >&6; }
7264 fi
7267 if test "x$enable_optimized" = "xyes"; then
7268 CFLAGS="$CFLAGS $CCOPT"
7269 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7270 if test "x$enable_profiled" != "xyes"; then
7271 CFLAGS="$CFLAGS -fomit-frame-pointer"
7272 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7273 fi
7274 else
7275 CFLAGS="$CFLAGS -g3"
7276 OBJCFLAGS="$OBJCFLAGS -g3"
7277 fi
7279 if test "x$enable_profiled" = "xyes"; then
7280 CFLAGS="$CFLAGS -pg"
7281 LDFLAGS="$LDFLAGS -pg";
7282 OBJCFLAGS="$OBJCFLAGS -pg";
7283 fi
7285 if test "x$enable_strictwarn" = "xyes"; then
7286 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7287 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7288 fi
7291 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
7292 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
7293 if test "$cross_compiling" = yes; then
7294 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7295 See \`config.log' for more details." >&5
7296 $as_echo "$as_me: error: cannot run test program while cross compiling
7297 See \`config.log' for more details." >&2;}
7298 { (exit 1); exit 1; }; }
7299 else
7300 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7308 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
7310 int main(int argc, char *argv[])
7311 {
7312 return foo( 1, 2 ) == 3 ? 0 : 1;
7313 }
7314 _ACEOF
7315 rm -f conftest$ac_exeext
7316 if { (ac_try="$ac_link"
7317 case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320 esac
7321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7322 $as_echo "$ac_try_echo") >&5
7323 (eval "$ac_link") 2>&5
7324 ac_status=$?
7325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7327 { (case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7332 $as_echo "$ac_try_echo") >&5
7333 (eval "$ac_try") 2>&5
7334 ac_status=$?
7335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7338 { $as_echo "$as_me:$LINENO: result: yes" >&5
7339 $as_echo "yes" >&6; }
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_FASTCALL 1
7344 _ACEOF
7347 else
7348 $as_echo "$as_me: program exited with status $ac_status" >&5
7349 $as_echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ( exit $ac_status )
7354 { $as_echo "$as_me:$LINENO: result: no" >&5
7355 $as_echo "no" >&6; }
7357 fi
7358 rm -rf conftest.dSYM
7359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7360 fi
7365 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
7366 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
7367 if test "$cross_compiling" = yes; then
7368 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7369 See \`config.log' for more details." >&5
7370 $as_echo "$as_me: error: cannot run test program while cross compiling
7371 See \`config.log' for more details." >&2;}
7372 { (exit 1); exit 1; }; }
7373 else
7374 cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h. */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7382 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
7383 int __attribute__((noinline)) foo( int arg, void *exc )
7384 {
7385 if( arg < 2 ) {
7386 *(((void **)__builtin_frame_address(0))+1) = exc;
7387 }
7388 return 0;
7389 }
7391 int main(int argc, char *argv[])
7392 {
7393 goto *first_arg(&&start, &&except);
7395 start:
7396 return foo( argc, &&except ) + 1;
7398 except:
7399 return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7404 case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407 esac
7408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7409 $as_echo "$ac_try_echo") >&5
7410 (eval "$ac_link") 2>&5
7411 ac_status=$?
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7414 { (case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417 esac
7418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419 $as_echo "$ac_try_echo") >&5
7420 (eval "$ac_try") 2>&5
7421 ac_status=$?
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7425 { $as_echo "$as_me:$LINENO: result: yes" >&5
7426 $as_echo "yes" >&6; }
7429 cat >>confdefs.h <<\_ACEOF
7430 #define HAVE_FRAME_ADDRESS 1
7431 _ACEOF
7434 else
7435 $as_echo "$as_me: program exited with status $ac_status" >&5
7436 $as_echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ( exit $ac_status )
7441 { $as_echo "$as_me:$LINENO: result: no" >&5
7442 $as_echo "no" >&6; }
7443 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
7444 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
7445 fi
7446 rm -rf conftest.dSYM
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7448 fi
7455 ac_ext=m
7456 ac_cpp='$OBJCPP $CPPFLAGS'
7457 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7463 ac_ext=m
7464 ac_cpp='$OBJCPP $CPPFLAGS'
7465 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7468 { $as_echo "$as_me:$LINENO: checking how to run the Objective C preprocessor" >&5
7469 $as_echo_n "checking how to run the Objective C preprocessor... " >&6; }
7470 if test -z "$OBJCPP"; then
7471 if test "${ac_cv_prog_OBJCPP+set}" = set; then
7472 $as_echo_n "(cached) " >&6
7473 else
7474 # Double quotes because OBJCPP needs to be expanded
7475 for OBJCPP in "$OBJC -E" "/lib/cpp"
7476 do
7477 ac_preproc_ok=false
7478 for ac_objc_preproc_warn_flag in '' yes
7479 do
7480 # Use a header file that comes with gcc, so configuring glibc
7481 # with a fresh cross-compiler works.
7482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7483 # <limits.h> exists even on freestanding compilers.
7484 # On the NeXT, cc -E runs the code through the compiler's parser,
7485 # not just through cpp. "Syntax error" is here to catch this case.
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 #ifdef __STDC__
7493 # include <limits.h>
7494 #else
7495 # include <assert.h>
7496 #endif
7497 Syntax error
7498 _ACEOF
7499 if { (ac_try="$ac_cpp conftest.$ac_ext"
7500 case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7503 esac
7504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7505 $as_echo "$ac_try_echo") >&5
7506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } >/dev/null && {
7513 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7514 test ! -s conftest.err
7515 }; then
7516 :
7517 else
7518 $as_echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 # Broken: fails on valid input.
7522 continue
7523 fi
7525 rm -f conftest.err conftest.$ac_ext
7527 # OK, works on sane cases. Now check whether nonexistent headers
7528 # can be detected and how.
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h. */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 #include <ac_nonexistent.h>
7536 _ACEOF
7537 if { (ac_try="$ac_cpp conftest.$ac_ext"
7538 case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } >/dev/null && {
7551 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7552 test ! -s conftest.err
7553 }; then
7554 # Broken: success on invalid input.
7555 continue
7556 else
7557 $as_echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 # Passes both tests.
7561 ac_preproc_ok=:
7562 break
7563 fi
7565 rm -f conftest.err conftest.$ac_ext
7567 done
7568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7569 rm -f conftest.err conftest.$ac_ext
7570 if $ac_preproc_ok; then
7571 break
7572 fi
7574 done
7575 ac_cv_prog_OBJCPP=$OBJCPP
7577 fi
7578 OBJCPP=$ac_cv_prog_OBJCPP
7579 else
7580 ac_cv_prog_OBJCPP=$OBJCPP
7581 fi
7582 { $as_echo "$as_me:$LINENO: result: $OBJCPP" >&5
7583 $as_echo "$OBJCPP" >&6; }
7584 ac_preproc_ok=false
7585 for ac_objc_preproc_warn_flag in '' yes
7586 do
7587 # Use a header file that comes with gcc, so configuring glibc
7588 # with a fresh cross-compiler works.
7589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7590 # <limits.h> exists even on freestanding compilers.
7591 # On the NeXT, cc -E runs the code through the compiler's parser,
7592 # not just through cpp. "Syntax error" is here to catch this case.
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 #ifdef __STDC__
7600 # include <limits.h>
7601 #else
7602 # include <assert.h>
7603 #endif
7604 Syntax error
7605 _ACEOF
7606 if { (ac_try="$ac_cpp conftest.$ac_ext"
7607 case "(($ac_try" in
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7610 esac
7611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7612 $as_echo "$ac_try_echo") >&5
7613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } >/dev/null && {
7620 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7621 test ! -s conftest.err
7622 }; then
7623 :
7624 else
7625 $as_echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 # Broken: fails on valid input.
7629 continue
7630 fi
7632 rm -f conftest.err conftest.$ac_ext
7634 # OK, works on sane cases. Now check whether nonexistent headers
7635 # can be detected and how.
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7642 #include <ac_nonexistent.h>
7643 _ACEOF
7644 if { (ac_try="$ac_cpp conftest.$ac_ext"
7645 case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648 esac
7649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7650 $as_echo "$ac_try_echo") >&5
7651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } >/dev/null && {
7658 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7659 test ! -s conftest.err
7660 }; then
7661 # Broken: success on invalid input.
7662 continue
7663 else
7664 $as_echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 # Passes both tests.
7668 ac_preproc_ok=:
7669 break
7670 fi
7672 rm -f conftest.err conftest.$ac_ext
7674 done
7675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7676 rm -f conftest.err conftest.$ac_ext
7677 if $ac_preproc_ok; then
7678 :
7679 else
7680 { { $as_echo "$as_me:$LINENO: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
7681 See \`config.log' for more details." >&5
7682 $as_echo "$as_me: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
7683 See \`config.log' for more details." >&2;}
7684 { (exit 1); exit 1; }; }
7685 fi
7687 ac_ext=m
7688 ac_cpp='$OBJCPP $CPPFLAGS'
7689 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7694 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7695 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7696 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7697 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7698 $as_echo_n "(cached) " >&6
7699 fi
7700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7701 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7702 else
7703 # Is the header compilable?
7704 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
7705 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 #include <Cocoa/Cocoa.h>
7714 _ACEOF
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7717 case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720 esac
7721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7722 $as_echo "$ac_try_echo") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } && {
7730 test -z "$ac_objc_werror_flag" ||
7731 test ! -s conftest.err
7732 } && test -s conftest.$ac_objext; then
7733 ac_header_compiler=yes
7734 else
7735 $as_echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7738 ac_header_compiler=no
7739 fi
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7743 $as_echo "$ac_header_compiler" >&6; }
7745 # Is the header present?
7746 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
7747 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #include <Cocoa/Cocoa.h>
7755 _ACEOF
7756 if { (ac_try="$ac_cpp conftest.$ac_ext"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } >/dev/null && {
7770 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7771 test ! -s conftest.err
7772 }; then
7773 ac_header_preproc=yes
7774 else
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_header_preproc=no
7779 fi
7781 rm -f conftest.err conftest.$ac_ext
7782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7783 $as_echo "$ac_header_preproc" >&6; }
7785 # So? What about this header?
7786 case $ac_header_compiler:$ac_header_preproc:$ac_objc_preproc_warn_flag in
7787 yes:no: )
7788 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7789 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7790 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
7791 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
7792 ac_header_preproc=yes
7793 ;;
7794 no:yes:* )
7795 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
7796 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
7797 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
7798 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
7799 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
7800 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
7801 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
7802 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7803 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
7804 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
7805 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
7806 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
7808 ;;
7809 esac
7810 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7811 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7812 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7813 $as_echo_n "(cached) " >&6
7814 else
7815 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
7816 fi
7817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7818 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7820 fi
7821 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
7823 HAVE_COCOA='yes'
7824 APPLE_BUILD='yes'
7825 LIBS="$LIBS -framework AppKit"
7826 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"
7827 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7828 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_COCOA 1
7832 _ACEOF
7835 cat >>confdefs.h <<\_ACEOF
7836 #define APPLE_BUILD 1
7837 _ACEOF
7839 if test "x$with_gtk" = "xx11"; then
7840 with_gtk=no
7841 fi
7843 fi
7849 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7850 GUI_COCOA_TRUE=
7851 GUI_COCOA_FALSE='#'
7852 else
7853 GUI_COCOA_TRUE='#'
7854 GUI_COCOA_FALSE=
7855 fi
7857 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define OSX_BUNDLE 1
7861 _ACEOF
7863 fi
7865 ac_ext=c
7866 ac_cpp='$CPP $CPPFLAGS'
7867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7874 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7875 if test -n "$ac_tool_prefix"; then
7876 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7881 $as_echo_n "(cached) " >&6
7882 else
7883 case $PKG_CONFIG in
7884 [\\/]* | ?:[\\/]*)
7885 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7886 ;;
7887 *)
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7903 ;;
7904 esac
7905 fi
7906 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7907 if test -n "$PKG_CONFIG"; then
7908 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7909 $as_echo "$PKG_CONFIG" >&6; }
7910 else
7911 { $as_echo "$as_me:$LINENO: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7916 fi
7917 if test -z "$ac_cv_path_PKG_CONFIG"; then
7918 ac_pt_PKG_CONFIG=$PKG_CONFIG
7919 # Extract the first word of "pkg-config", so it can be a program name with args.
7920 set dummy pkg-config; ac_word=$2
7921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7925 else
7926 case $ac_pt_PKG_CONFIG in
7927 [\\/]* | ?:[\\/]*)
7928 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7929 ;;
7930 *)
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7939 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7946 ;;
7947 esac
7948 fi
7949 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7950 if test -n "$ac_pt_PKG_CONFIG"; then
7951 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7952 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7953 else
7954 { $as_echo "$as_me:$LINENO: result: no" >&5
7955 $as_echo "no" >&6; }
7956 fi
7958 if test "x$ac_pt_PKG_CONFIG" = x; then
7959 PKG_CONFIG=""
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7964 whose name does not start with the host triplet. If you think this
7965 configuration is useful to you, please write to autoconf@gnu.org." >&5
7966 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7967 whose name does not start with the host triplet. If you think this
7968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7969 ac_tool_warned=yes ;;
7970 esac
7971 PKG_CONFIG=$ac_pt_PKG_CONFIG
7972 fi
7973 else
7974 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7975 fi
7977 fi
7978 if test -n "$PKG_CONFIG"; then
7979 _pkg_min_version=0.9.0
7980 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7981 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7982 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7983 { $as_echo "$as_me:$LINENO: result: yes" >&5
7984 $as_echo "yes" >&6; }
7985 else
7986 { $as_echo "$as_me:$LINENO: result: no" >&5
7987 $as_echo "no" >&6; }
7988 PKG_CONFIG=""
7989 fi
7991 fi
7993 pkg_failed=no
7994 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
7995 $as_echo_n "checking for LIBPNG... " >&6; }
7997 if test -n "$LIBPNG_CFLAGS"; then
7998 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
7999 elif test -n "$PKG_CONFIG"; then
8000 if test -n "$PKG_CONFIG" && \
8001 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8002 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8003 ac_status=$?
8004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; then
8006 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8007 else
8008 pkg_failed=yes
8009 fi
8010 else
8011 pkg_failed=untried
8012 fi
8013 if test -n "$LIBPNG_LIBS"; then
8014 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8015 elif test -n "$PKG_CONFIG"; then
8016 if test -n "$PKG_CONFIG" && \
8017 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8018 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8019 ac_status=$?
8020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; then
8022 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8023 else
8024 pkg_failed=yes
8025 fi
8026 else
8027 pkg_failed=untried
8028 fi
8032 if test $pkg_failed = yes; then
8034 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8035 _pkg_short_errors_supported=yes
8036 else
8037 _pkg_short_errors_supported=no
8038 fi
8039 if test $_pkg_short_errors_supported = yes; then
8040 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8041 else
8042 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8043 fi
8044 # Put the nasty error message in config.log where it belongs
8045 echo "$LIBPNG_PKG_ERRORS" >&5
8047 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8049 $LIBPNG_PKG_ERRORS
8051 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8052 installed software in a non-standard prefix.
8054 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8055 and LIBPNG_LIBS to avoid the need to call pkg-config.
8056 See the pkg-config man page for more details.
8057 " >&5
8058 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8060 $LIBPNG_PKG_ERRORS
8062 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8063 installed software in a non-standard prefix.
8065 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8066 and LIBPNG_LIBS to avoid the need to call pkg-config.
8067 See the pkg-config man page for more details.
8068 " >&2;}
8069 { (exit 1); exit 1; }; }
8070 elif test $pkg_failed = untried; then
8071 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8072 is in your PATH or set the PKG_CONFIG environment variable to the full
8073 path to pkg-config.
8075 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8076 and LIBPNG_LIBS to avoid the need to call pkg-config.
8077 See the pkg-config man page for more details.
8079 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8080 See \`config.log' for more details." >&5
8081 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8082 is in your PATH or set the PKG_CONFIG environment variable to the full
8083 path to pkg-config.
8085 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8086 and LIBPNG_LIBS to avoid the need to call pkg-config.
8087 See the pkg-config man page for more details.
8089 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8090 See \`config.log' for more details." >&2;}
8091 { (exit 1); exit 1; }; }
8092 else
8093 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8094 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8095 { $as_echo "$as_me:$LINENO: result: yes" >&5
8096 $as_echo "yes" >&6; }
8097 :
8098 fi
8101 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8102 $as_echo_n "checking for uncompress in -lz... " >&6; }
8103 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8104 $as_echo_n "(cached) " >&6
8105 else
8106 ac_check_lib_save_LIBS=$LIBS
8107 LIBS="-lz $LIBS"
8108 cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h. */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8115 /* Override any GCC internal prototype to avoid an error.
8116 Use char because int might match the return type of a GCC
8117 builtin and then its argument prototype would still apply. */
8118 #ifdef __cplusplus
8119 extern "C"
8120 #endif
8121 char uncompress ();
8122 int
8123 main ()
8124 {
8125 return uncompress ();
8126 ;
8127 return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137 $as_echo "$ac_try_echo") >&5
8138 (eval "$ac_link") 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest$ac_exeext && {
8148 test "$cross_compiling" = yes ||
8149 $as_test_x conftest$ac_exeext
8150 }; then
8151 ac_cv_lib_z_uncompress=yes
8152 else
8153 $as_echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_cv_lib_z_uncompress=no
8157 fi
8159 rm -rf conftest.dSYM
8160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8163 fi
8164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8165 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8166 if test $ac_cv_lib_z_uncompress = yes; then
8167 cat >>confdefs.h <<_ACEOF
8168 #define HAVE_LIBZ 1
8169 _ACEOF
8171 LIBS="-lz $LIBS"
8173 else
8175 echo "Zlib (libz.so) could not be found, but is required."
8176 exit 1
8177 fi
8180 if test "x$with_gtk" = "xno"; then
8182 pkg_failed=no
8183 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8184 $as_echo_n "checking for GLIB... " >&6; }
8186 if test -n "$GLIB_CFLAGS"; then
8187 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8188 elif test -n "$PKG_CONFIG"; then
8189 if test -n "$PKG_CONFIG" && \
8190 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8191 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8192 ac_status=$?
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; then
8195 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8196 else
8197 pkg_failed=yes
8198 fi
8199 else
8200 pkg_failed=untried
8201 fi
8202 if test -n "$GLIB_LIBS"; then
8203 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8204 elif test -n "$PKG_CONFIG"; then
8205 if test -n "$PKG_CONFIG" && \
8206 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8207 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8208 ac_status=$?
8209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; then
8211 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8212 else
8213 pkg_failed=yes
8214 fi
8215 else
8216 pkg_failed=untried
8217 fi
8221 if test $pkg_failed = yes; then
8223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8224 _pkg_short_errors_supported=yes
8225 else
8226 _pkg_short_errors_supported=no
8227 fi
8228 if test $_pkg_short_errors_supported = yes; then
8229 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8230 else
8231 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8232 fi
8233 # Put the nasty error message in config.log where it belongs
8234 echo "$GLIB_PKG_ERRORS" >&5
8236 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8238 $GLIB_PKG_ERRORS
8240 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8241 installed software in a non-standard prefix.
8243 Alternatively, you may set the environment variables GLIB_CFLAGS
8244 and GLIB_LIBS to avoid the need to call pkg-config.
8245 See the pkg-config man page for more details.
8246 " >&5
8247 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8249 $GLIB_PKG_ERRORS
8251 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8252 installed software in a non-standard prefix.
8254 Alternatively, you may set the environment variables GLIB_CFLAGS
8255 and GLIB_LIBS to avoid the need to call pkg-config.
8256 See the pkg-config man page for more details.
8257 " >&2;}
8258 { (exit 1); exit 1; }; }
8259 elif test $pkg_failed = untried; then
8260 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8261 is in your PATH or set the PKG_CONFIG environment variable to the full
8262 path to pkg-config.
8264 Alternatively, you may set the environment variables GLIB_CFLAGS
8265 and GLIB_LIBS to avoid the need to call pkg-config.
8266 See the pkg-config man page for more details.
8268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8269 See \`config.log' for more details." >&5
8270 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8271 is in your PATH or set the PKG_CONFIG environment variable to the full
8272 path to pkg-config.
8274 Alternatively, you may set the environment variables GLIB_CFLAGS
8275 and GLIB_LIBS to avoid the need to call pkg-config.
8276 See the pkg-config man page for more details.
8278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8279 See \`config.log' for more details." >&2;}
8280 { (exit 1); exit 1; }; }
8281 else
8282 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8283 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8284 { $as_echo "$as_me:$LINENO: result: yes" >&5
8285 $as_echo "yes" >&6; }
8286 :
8287 fi
8288 else
8290 pkg_failed=no
8291 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8292 $as_echo_n "checking for GTK... " >&6; }
8294 if test -n "$GTK_CFLAGS"; then
8295 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8296 elif test -n "$PKG_CONFIG"; then
8297 if test -n "$PKG_CONFIG" && \
8298 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8299 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8300 ac_status=$?
8301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; then
8303 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8304 else
8305 pkg_failed=yes
8306 fi
8307 else
8308 pkg_failed=untried
8309 fi
8310 if test -n "$GTK_LIBS"; then
8311 pkg_cv_GTK_LIBS="$GTK_LIBS"
8312 elif test -n "$PKG_CONFIG"; then
8313 if test -n "$PKG_CONFIG" && \
8314 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8315 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8316 ac_status=$?
8317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; then
8319 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8320 else
8321 pkg_failed=yes
8322 fi
8323 else
8324 pkg_failed=untried
8325 fi
8329 if test $pkg_failed = yes; then
8331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8332 _pkg_short_errors_supported=yes
8333 else
8334 _pkg_short_errors_supported=no
8335 fi
8336 if test $_pkg_short_errors_supported = yes; then
8337 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8338 else
8339 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8340 fi
8341 # Put the nasty error message in config.log where it belongs
8342 echo "$GTK_PKG_ERRORS" >&5
8344 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8346 $GTK_PKG_ERRORS
8348 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8349 installed software in a non-standard prefix.
8351 Alternatively, you may set the environment variables GTK_CFLAGS
8352 and GTK_LIBS to avoid the need to call pkg-config.
8353 See the pkg-config man page for more details.
8354 " >&5
8355 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8357 $GTK_PKG_ERRORS
8359 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8360 installed software in a non-standard prefix.
8362 Alternatively, you may set the environment variables GTK_CFLAGS
8363 and GTK_LIBS to avoid the need to call pkg-config.
8364 See the pkg-config man page for more details.
8365 " >&2;}
8366 { (exit 1); exit 1; }; }
8367 elif test $pkg_failed = untried; then
8368 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8369 is in your PATH or set the PKG_CONFIG environment variable to the full
8370 path to pkg-config.
8372 Alternatively, you may set the environment variables GTK_CFLAGS
8373 and GTK_LIBS to avoid the need to call pkg-config.
8374 See the pkg-config man page for more details.
8376 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8377 See \`config.log' for more details." >&5
8378 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8379 is in your PATH or set the PKG_CONFIG environment variable to the full
8380 path to pkg-config.
8382 Alternatively, you may set the environment variables GTK_CFLAGS
8383 and GTK_LIBS to avoid the need to call pkg-config.
8384 See the pkg-config man page for more details.
8386 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8387 See \`config.log' for more details." >&2;}
8388 { (exit 1); exit 1; }; }
8389 else
8390 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8391 GTK_LIBS=$pkg_cv_GTK_LIBS
8392 { $as_echo "$as_me:$LINENO: result: yes" >&5
8393 $as_echo "yes" >&6; }
8395 HAVE_GTK='yes'
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_GTK 1
8399 _ACEOF
8402 fi
8404 LIBS="$LIBS $GTK_LIBS"
8405 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
8406 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
8407 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
8408 $as_echo_n "(cached) " >&6
8409 else
8410 cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h. */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
8417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8418 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
8420 /* System header to define __stub macros and hopefully few prototypes,
8421 which can conflict with char gdk_x11_display_get_xdisplay (); below.
8422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8423 <limits.h> exists even on freestanding compilers. */
8425 #ifdef __STDC__
8426 # include <limits.h>
8427 #else
8428 # include <assert.h>
8429 #endif
8431 #undef gdk_x11_display_get_xdisplay
8433 /* Override any GCC internal prototype to avoid an error.
8434 Use char because int might match the return type of a GCC
8435 builtin and then its argument prototype would still apply. */
8436 #ifdef __cplusplus
8437 extern "C"
8438 #endif
8439 char gdk_x11_display_get_xdisplay ();
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
8444 choke me
8445 #endif
8447 int
8448 main ()
8449 {
8450 return gdk_x11_display_get_xdisplay ();
8451 ;
8452 return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (ac_try="$ac_link"
8457 case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460 esac
8461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8462 $as_echo "$ac_try_echo") >&5
8463 (eval "$ac_link") 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest$ac_exeext && {
8473 test "$cross_compiling" = yes ||
8474 $as_test_x conftest$ac_exeext
8475 }; then
8476 ac_cv_func_gdk_x11_display_get_xdisplay=yes
8477 else
8478 $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_func_gdk_x11_display_get_xdisplay=no
8482 fi
8484 rm -rf conftest.dSYM
8485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8486 conftest$ac_exeext conftest.$ac_ext
8487 fi
8488 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
8489 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
8490 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
8492 HAVE_GTK_X11='yes'
8494 cat >>confdefs.h <<\_ACEOF
8495 #define HAVE_GTK_X11 1
8496 _ACEOF
8498 fi
8500 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
8501 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
8502 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
8503 $as_echo_n "(cached) " >&6
8504 else
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
8512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8513 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
8515 /* System header to define __stub macros and hopefully few prototypes,
8516 which can conflict with char gdk_quartz_window_get_nsview (); below.
8517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8518 <limits.h> exists even on freestanding compilers. */
8520 #ifdef __STDC__
8521 # include <limits.h>
8522 #else
8523 # include <assert.h>
8524 #endif
8526 #undef gdk_quartz_window_get_nsview
8528 /* Override any GCC internal prototype to avoid an error.
8529 Use char because int might match the return type of a GCC
8530 builtin and then its argument prototype would still apply. */
8531 #ifdef __cplusplus
8532 extern "C"
8533 #endif
8534 char gdk_quartz_window_get_nsview ();
8535 /* The GNU C library defines this for functions which it implements
8536 to always fail with ENOSYS. Some functions are actually named
8537 something starting with __ and the normal name is an alias. */
8538 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
8539 choke me
8540 #endif
8542 int
8543 main ()
8544 {
8545 return gdk_quartz_window_get_nsview ();
8546 ;
8547 return 0;
8548 }
8549 _ACEOF
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (ac_try="$ac_link"
8552 case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555 esac
8556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8557 $as_echo "$ac_try_echo") >&5
8558 (eval "$ac_link") 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && {
8565 test -z "$ac_c_werror_flag" ||
8566 test ! -s conftest.err
8567 } && test -s conftest$ac_exeext && {
8568 test "$cross_compiling" = yes ||
8569 $as_test_x conftest$ac_exeext
8570 }; then
8571 ac_cv_func_gdk_quartz_window_get_nsview=yes
8572 else
8573 $as_echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_cv_func_gdk_quartz_window_get_nsview=no
8577 fi
8579 rm -rf conftest.dSYM
8580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8581 conftest$ac_exeext conftest.$ac_ext
8582 fi
8583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
8584 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
8585 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
8587 HAVE_GTK_OSX='yes'
8589 cat >>confdefs.h <<\_ACEOF
8590 #define HAVE_GTK_OSX 1
8591 _ACEOF
8593 fi
8595 fi
8599 if test "$HAVE_GTK" = 'yes'; then
8600 GUI_GTK_TRUE=
8601 GUI_GTK_FALSE='#'
8602 else
8603 GUI_GTK_TRUE='#'
8604 GUI_GTK_FALSE=
8605 fi
8608 if test "x$with_osmesa" != xno; then
8612 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
8613 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
8614 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8616 else
8617 ac_check_lib_save_LIBS=$LIBS
8618 LIBS="-lOSMesa $LIBS"
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8626 /* Override any GCC internal prototype to avoid an error.
8627 Use char because int might match the return type of a GCC
8628 builtin and then its argument prototype would still apply. */
8629 #ifdef __cplusplus
8630 extern "C"
8631 #endif
8632 char OSMesaCreateContext ();
8633 int
8634 main ()
8635 {
8636 return OSMesaCreateContext ();
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (ac_try="$ac_link"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8648 $as_echo "$ac_try_echo") >&5
8649 (eval "$ac_link") 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest$ac_exeext && {
8659 test "$cross_compiling" = yes ||
8660 $as_test_x conftest$ac_exeext
8661 }; then
8662 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
8663 else
8664 $as_echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_cv_lib_OSMesa_OSMesaCreateContext=no
8668 fi
8670 rm -rf conftest.dSYM
8671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8672 conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8674 fi
8675 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
8676 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
8677 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_LIBOSMESA 1
8680 _ACEOF
8682 LIBS="-lOSMesa $LIBS"
8684 else
8685 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
8686 See \`config.log' for more details." >&5
8687 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
8688 See \`config.log' for more details." >&2;}
8689 { (exit 1); exit 1; }; }
8690 fi
8692 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8693 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8694 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8695 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8696 $as_echo_n "(cached) " >&6
8697 fi
8698 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8699 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8700 else
8701 # Is the header compilable?
8702 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
8703 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
8704 cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h. */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8711 #include <GL/osmesa.h>
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8715 case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718 esac
8719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8720 $as_echo "$ac_try_echo") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_header_compiler=yes
8732 else
8733 $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ac_header_compiler=no
8737 fi
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8741 $as_echo "$ac_header_compiler" >&6; }
8743 # Is the header present?
8744 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
8745 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
8746 cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h. */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8752 #include <GL/osmesa.h>
8753 _ACEOF
8754 if { (ac_try="$ac_cpp conftest.$ac_ext"
8755 case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8758 esac
8759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8760 $as_echo "$ac_try_echo") >&5
8761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } >/dev/null && {
8768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 }; then
8771 ac_header_preproc=yes
8772 else
8773 $as_echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_header_preproc=no
8777 fi
8779 rm -f conftest.err conftest.$ac_ext
8780 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8781 $as_echo "$ac_header_preproc" >&6; }
8783 # So? What about this header?
8784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8785 yes:no: )
8786 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
8787 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8788 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
8789 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
8790 ac_header_preproc=yes
8791 ;;
8792 no:yes:* )
8793 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
8794 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
8795 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
8796 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
8797 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
8798 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
8799 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
8800 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
8801 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
8802 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
8803 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
8804 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
8806 ;;
8807 esac
8808 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8809 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8810 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8811 $as_echo_n "(cached) " >&6
8812 else
8813 ac_cv_header_GL_osmesa_h=$ac_header_preproc
8814 fi
8815 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8816 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8818 fi
8819 if test $ac_cv_header_GL_osmesa_h = yes; then
8820 :
8821 else
8822 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
8823 See \`config.log' for more details." >&5
8824 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
8825 See \`config.log' for more details." >&2;}
8826 { (exit 1); exit 1; }; }
8827 fi
8830 HAVE_OSMESA='yes'
8831 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
8833 cat >>confdefs.h <<\_ACEOF
8834 #define HAVE_OSMESA 1
8835 _ACEOF
8837 else
8840 if test "x$APPLE_BUILD" != 'xyes'; then
8842 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
8843 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
8844 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8846 else
8847 ac_check_lib_save_LIBS=$LIBS
8848 LIBS="-lGL $LIBS"
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 char glVertex3f ();
8863 int
8864 main ()
8865 {
8866 return glVertex3f ();
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_link") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest$ac_exeext && {
8889 test "$cross_compiling" = yes ||
8890 $as_test_x conftest$ac_exeext
8891 }; then
8892 ac_cv_lib_GL_glVertex3f=yes
8893 else
8894 $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_lib_GL_glVertex3f=no
8898 fi
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8904 fi
8905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
8906 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
8907 if test $ac_cv_lib_GL_glVertex3f = yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_LIBGL 1
8910 _ACEOF
8912 LIBS="-lGL $LIBS"
8914 else
8916 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
8917 See \`config.log' for more details." >&5
8918 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
8919 See \`config.log' for more details." >&2;}
8920 { (exit 1); exit 1; }; }
8921 fi
8923 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8924 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
8925 $as_echo_n "checking for GL/gl.h... " >&6; }
8926 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8927 $as_echo_n "(cached) " >&6
8928 fi
8929 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
8930 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
8931 else
8932 # Is the header compilable?
8933 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
8934 $as_echo_n "checking GL/gl.h usability... " >&6; }
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h. */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941 $ac_includes_default
8942 #include <GL/gl.h>
8943 _ACEOF
8944 rm -f conftest.$ac_objext
8945 if { (ac_try="$ac_compile"
8946 case "(($ac_try" in
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8949 esac
8950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8951 $as_echo "$ac_try_echo") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8962 ac_header_compiler=yes
8963 else
8964 $as_echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_header_compiler=no
8968 fi
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8972 $as_echo "$ac_header_compiler" >&6; }
8974 # Is the header present?
8975 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
8976 $as_echo_n "checking GL/gl.h presence... " >&6; }
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h. */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8983 #include <GL/gl.h>
8984 _ACEOF
8985 if { (ac_try="$ac_cpp conftest.$ac_ext"
8986 case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989 esac
8990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8991 $as_echo "$ac_try_echo") >&5
8992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev/null && {
8999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9001 }; then
9002 ac_header_preproc=yes
9003 else
9004 $as_echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_header_preproc=no
9008 fi
9010 rm -f conftest.err conftest.$ac_ext
9011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9012 $as_echo "$ac_header_preproc" >&6; }
9014 # So? What about this header?
9015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9016 yes:no: )
9017 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9018 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9019 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9020 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9021 ac_header_preproc=yes
9022 ;;
9023 no:yes:* )
9024 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9025 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9026 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9027 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9028 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9029 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9030 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9031 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9032 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9033 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9034 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9035 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9037 ;;
9038 esac
9039 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9040 $as_echo_n "checking for GL/gl.h... " >&6; }
9041 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9042 $as_echo_n "(cached) " >&6
9043 else
9044 ac_cv_header_GL_gl_h=$ac_header_preproc
9045 fi
9046 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9047 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9049 fi
9050 if test $ac_cv_header_GL_gl_h = yes; then
9051 :
9052 else
9054 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9055 See \`config.log' for more details." >&5
9056 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9057 See \`config.log' for more details." >&2;}
9058 { (exit 1); exit 1; }; }
9059 fi
9062 else
9063 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9064 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9065 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9066 $as_echo_n "(cached) " >&6
9067 else
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9076 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9078 /* System header to define __stub macros and hopefully few prototypes,
9079 which can conflict with char NSOpenGLGetVersion (); below.
9080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9081 <limits.h> exists even on freestanding compilers. */
9083 #ifdef __STDC__
9084 # include <limits.h>
9085 #else
9086 # include <assert.h>
9087 #endif
9089 #undef NSOpenGLGetVersion
9091 /* Override any GCC internal prototype to avoid an error.
9092 Use char because int might match the return type of a GCC
9093 builtin and then its argument prototype would still apply. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 char NSOpenGLGetVersion ();
9098 /* The GNU C library defines this for functions which it implements
9099 to always fail with ENOSYS. Some functions are actually named
9100 something starting with __ and the normal name is an alias. */
9101 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9102 choke me
9103 #endif
9105 int
9106 main ()
9107 {
9108 return NSOpenGLGetVersion ();
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (ac_try="$ac_link"
9115 case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118 esac
9119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9120 $as_echo "$ac_try_echo") >&5
9121 (eval "$ac_link") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest$ac_exeext && {
9131 test "$cross_compiling" = yes ||
9132 $as_test_x conftest$ac_exeext
9133 }; then
9134 ac_cv_func_NSOpenGLGetVersion=yes
9135 else
9136 $as_echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_cv_func_NSOpenGLGetVersion=no
9140 fi
9142 rm -rf conftest.dSYM
9143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9144 conftest$ac_exeext conftest.$ac_ext
9145 fi
9146 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9147 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9148 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
9150 HAVE_NSGL='yes'
9151 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9153 cat >>confdefs.h <<\_ACEOF
9154 #define HAVE_NSGL 1
9155 _ACEOF
9157 fi
9159 fi
9161 if test "x$HAVE_GTK_X11" = "xyes"; then
9162 if test "x$APPLE_BUILD" = "xyes"; then
9163 LIBS="$LIBS -L/usr/X11/lib -lGL"
9164 fi
9165 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9166 $as_echo_n "checking for glXQueryVersion... " >&6; }
9167 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9168 $as_echo_n "(cached) " >&6
9169 else
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h. */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9178 #define glXQueryVersion innocuous_glXQueryVersion
9180 /* System header to define __stub macros and hopefully few prototypes,
9181 which can conflict with char glXQueryVersion (); below.
9182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9183 <limits.h> exists even on freestanding compilers. */
9185 #ifdef __STDC__
9186 # include <limits.h>
9187 #else
9188 # include <assert.h>
9189 #endif
9191 #undef glXQueryVersion
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 char glXQueryVersion ();
9200 /* The GNU C library defines this for functions which it implements
9201 to always fail with ENOSYS. Some functions are actually named
9202 something starting with __ and the normal name is an alias. */
9203 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9204 choke me
9205 #endif
9207 int
9208 main ()
9209 {
9210 return glXQueryVersion ();
9211 ;
9212 return 0;
9213 }
9214 _ACEOF
9215 rm -f conftest.$ac_objext conftest$ac_exeext
9216 if { (ac_try="$ac_link"
9217 case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220 esac
9221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9222 $as_echo "$ac_try_echo") >&5
9223 (eval "$ac_link") 2>conftest.er1
9224 ac_status=$?
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
9227 cat conftest.err >&5
9228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } && {
9230 test -z "$ac_c_werror_flag" ||
9231 test ! -s conftest.err
9232 } && test -s conftest$ac_exeext && {
9233 test "$cross_compiling" = yes ||
9234 $as_test_x conftest$ac_exeext
9235 }; then
9236 ac_cv_func_glXQueryVersion=yes
9237 else
9238 $as_echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9241 ac_cv_func_glXQueryVersion=no
9242 fi
9244 rm -rf conftest.dSYM
9245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9246 conftest$ac_exeext conftest.$ac_ext
9247 fi
9248 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9249 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9250 if test $ac_cv_func_glXQueryVersion = yes; then
9252 HAVE_GLX='yes'
9253 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9255 cat >>confdefs.h <<\_ACEOF
9256 #define HAVE_GLX 1
9257 _ACEOF
9259 fi
9261 fi
9264 fi
9271 if test "x$HAVE_OSMESA" = "xyes"; then
9272 VIDEO_OSMESA_TRUE=
9273 VIDEO_OSMESA_FALSE='#'
9274 else
9275 VIDEO_OSMESA_TRUE='#'
9276 VIDEO_OSMESA_FALSE=
9277 fi
9281 if test "x$HAVE_GLX" = "xyes"; then
9282 VIDEO_GLX_TRUE=
9283 VIDEO_GLX_FALSE='#'
9284 else
9285 VIDEO_GLX_TRUE='#'
9286 VIDEO_GLX_FALSE=
9287 fi
9291 if test "x$HAVE_NSGL" = "xyes"; then
9292 VIDEO_NSGL_TRUE=
9293 VIDEO_NSGL_FALSE='#'
9294 else
9295 VIDEO_NSGL_TRUE='#'
9296 VIDEO_NSGL_FALSE=
9297 fi
9300 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9301 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9302 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9303 $as_echo_n "(cached) " >&6
9304 else
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h. */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9313 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9315 /* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char glGenFramebuffersEXT (); below.
9317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9318 <limits.h> exists even on freestanding compilers. */
9320 #ifdef __STDC__
9321 # include <limits.h>
9322 #else
9323 # include <assert.h>
9324 #endif
9326 #undef glGenFramebuffersEXT
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char glGenFramebuffersEXT ();
9335 /* The GNU C library defines this for functions which it implements
9336 to always fail with ENOSYS. Some functions are actually named
9337 something starting with __ and the normal name is an alias. */
9338 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9339 choke me
9340 #endif
9342 int
9343 main ()
9344 {
9345 return glGenFramebuffersEXT ();
9346 ;
9347 return 0;
9348 }
9349 _ACEOF
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (ac_try="$ac_link"
9352 case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9355 esac
9356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9357 $as_echo "$ac_try_echo") >&5
9358 (eval "$ac_link") 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest$ac_exeext && {
9368 test "$cross_compiling" = yes ||
9369 $as_test_x conftest$ac_exeext
9370 }; then
9371 ac_cv_func_glGenFramebuffersEXT=yes
9372 else
9373 $as_echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 ac_cv_func_glGenFramebuffersEXT=no
9377 fi
9379 rm -rf conftest.dSYM
9380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9381 conftest$ac_exeext conftest.$ac_ext
9382 fi
9383 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
9384 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
9385 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
9387 cat >>confdefs.h <<\_ACEOF
9388 #define HAVE_OPENGL_FBO 1
9389 _ACEOF
9391 fi
9393 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
9394 $as_echo_n "checking for glCreateShader... " >&6; }
9395 if test "${ac_cv_func_glCreateShader+set}" = set; then
9396 $as_echo_n "(cached) " >&6
9397 else
9398 cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h. */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
9405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9406 #define glCreateShader innocuous_glCreateShader
9408 /* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char glCreateShader (); below.
9410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411 <limits.h> exists even on freestanding compilers. */
9413 #ifdef __STDC__
9414 # include <limits.h>
9415 #else
9416 # include <assert.h>
9417 #endif
9419 #undef glCreateShader
9421 /* Override any GCC internal prototype to avoid an error.
9422 Use char because int might match the return type of a GCC
9423 builtin and then its argument prototype would still apply. */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 char glCreateShader ();
9428 /* The GNU C library defines this for functions which it implements
9429 to always fail with ENOSYS. Some functions are actually named
9430 something starting with __ and the normal name is an alias. */
9431 #if defined __stub_glCreateShader || defined __stub___glCreateShader
9432 choke me
9433 #endif
9435 int
9436 main ()
9437 {
9438 return glCreateShader ();
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9445 case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448 esac
9449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9450 $as_echo "$ac_try_echo") >&5
9451 (eval "$ac_link") 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest$ac_exeext && {
9461 test "$cross_compiling" = yes ||
9462 $as_test_x conftest$ac_exeext
9463 }; then
9464 ac_cv_func_glCreateShader=yes
9465 else
9466 $as_echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_cv_func_glCreateShader=no
9470 fi
9472 rm -rf conftest.dSYM
9473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9474 conftest$ac_exeext conftest.$ac_ext
9475 fi
9476 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
9477 $as_echo "$ac_cv_func_glCreateShader" >&6; }
9478 if test $ac_cv_func_glCreateShader = yes; then
9480 cat >>confdefs.h <<\_ACEOF
9481 #define HAVE_OPENGL_SHADER 1
9482 _ACEOF
9484 fi
9486 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
9487 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
9488 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
9489 $as_echo_n "(cached) " >&6
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char glCreateShaderObjectARB (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9506 #ifdef __STDC__
9507 # include <limits.h>
9508 #else
9509 # include <assert.h>
9510 #endif
9512 #undef glCreateShaderObjectARB
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char glCreateShaderObjectARB ();
9521 /* The GNU C library defines this for functions which it implements
9522 to always fail with ENOSYS. Some functions are actually named
9523 something starting with __ and the normal name is an alias. */
9524 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
9525 choke me
9526 #endif
9528 int
9529 main ()
9530 {
9531 return glCreateShaderObjectARB ();
9532 ;
9533 return 0;
9534 }
9535 _ACEOF
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9538 case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541 esac
9542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9543 $as_echo "$ac_try_echo") >&5
9544 (eval "$ac_link") 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest$ac_exeext && {
9554 test "$cross_compiling" = yes ||
9555 $as_test_x conftest$ac_exeext
9556 }; then
9557 ac_cv_func_glCreateShaderObjectARB=yes
9558 else
9559 $as_echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_func_glCreateShaderObjectARB=no
9563 fi
9565 rm -rf conftest.dSYM
9566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9567 conftest$ac_exeext conftest.$ac_ext
9568 fi
9569 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
9570 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
9571 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
9573 cat >>confdefs.h <<\_ACEOF
9574 #define HAVE_OPENGL_SHADER_ARB 1
9575 _ACEOF
9577 fi
9579 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
9580 $as_echo_n "checking for glClampColorARB... " >&6; }
9581 if test "${ac_cv_func_glClampColorARB+set}" = set; then
9582 $as_echo_n "(cached) " >&6
9583 else
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
9591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9592 #define glClampColorARB innocuous_glClampColorARB
9594 /* System header to define __stub macros and hopefully few prototypes,
9595 which can conflict with char glClampColorARB (); below.
9596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9597 <limits.h> exists even on freestanding compilers. */
9599 #ifdef __STDC__
9600 # include <limits.h>
9601 #else
9602 # include <assert.h>
9603 #endif
9605 #undef glClampColorARB
9607 /* Override any GCC internal prototype to avoid an error.
9608 Use char because int might match the return type of a GCC
9609 builtin and then its argument prototype would still apply. */
9610 #ifdef __cplusplus
9611 extern "C"
9612 #endif
9613 char glClampColorARB ();
9614 /* The GNU C library defines this for functions which it implements
9615 to always fail with ENOSYS. Some functions are actually named
9616 something starting with __ and the normal name is an alias. */
9617 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
9618 choke me
9619 #endif
9621 int
9622 main ()
9623 {
9624 return glClampColorARB ();
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9631 case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636 $as_echo "$ac_try_echo") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest$ac_exeext
9649 }; then
9650 ac_cv_func_glClampColorARB=yes
9651 else
9652 $as_echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_func_glClampColorARB=no
9656 fi
9658 rm -rf conftest.dSYM
9659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660 conftest$ac_exeext conftest.$ac_ext
9661 fi
9662 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
9663 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
9664 if test $ac_cv_func_glClampColorARB = yes; then
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_OPENGL_CLAMP_COLOR 1
9668 _ACEOF
9670 fi
9675 if test "x$enable_translator" != "xno"; then
9676 case $host_cpu in
9677 i386|i486|i586|i686|x86_64)
9678 SH4_TRANSLATOR="x86"
9680 cat >>confdefs.h <<_ACEOF
9681 #define SH4_TRANSLATOR TARGET_X86
9682 _ACEOF
9683 ;;
9684 esac
9685 fi
9688 if test "$SH4_TRANSLATOR" = "x86"; then
9689 BUILD_SH4X86_TRUE=
9690 BUILD_SH4X86_FALSE='#'
9691 else
9692 BUILD_SH4X86_TRUE='#'
9693 BUILD_SH4X86_FALSE=
9694 fi
9697 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9698 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9699 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9700 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9701 $as_echo_n "(cached) " >&6
9702 fi
9703 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
9704 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
9705 else
9706 # Is the header compilable?
9707 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
9708 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 $ac_includes_default
9716 #include <CoreAudio/CoreAudio.h>
9717 _ACEOF
9718 rm -f conftest.$ac_objext
9719 if { (ac_try="$ac_compile"
9720 case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723 esac
9724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9725 $as_echo "$ac_try_echo") >&5
9726 (eval "$ac_compile") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest.$ac_objext; then
9736 ac_header_compiler=yes
9737 else
9738 $as_echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_header_compiler=no
9742 fi
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9746 $as_echo "$ac_header_compiler" >&6; }
9748 # Is the header present?
9749 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
9750 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 #include <CoreAudio/CoreAudio.h>
9758 _ACEOF
9759 if { (ac_try="$ac_cpp conftest.$ac_ext"
9760 case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763 esac
9764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9765 $as_echo "$ac_try_echo") >&5
9766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } >/dev/null && {
9773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9775 }; then
9776 ac_header_preproc=yes
9777 else
9778 $as_echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_header_preproc=no
9782 fi
9784 rm -f conftest.err conftest.$ac_ext
9785 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9786 $as_echo "$ac_header_preproc" >&6; }
9788 # So? What about this header?
9789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9790 yes:no: )
9791 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9792 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9793 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
9794 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
9795 ac_header_preproc=yes
9796 ;;
9797 no:yes:* )
9798 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
9799 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
9800 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
9801 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
9802 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
9803 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
9804 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
9805 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9806 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
9807 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
9808 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
9809 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
9811 ;;
9812 esac
9813 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9814 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9815 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9816 $as_echo_n "(cached) " >&6
9817 else
9818 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
9819 fi
9820 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
9821 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
9823 fi
9824 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
9826 HAVE_CORE_AUDIO=yes
9827 LIBS="$LIBS -framework CoreAudio"
9828 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_CORE_AUDIO 1
9832 _ACEOF
9834 else
9835 true
9836 fi
9841 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
9842 AUDIO_OSX_TRUE=
9843 AUDIO_OSX_FALSE='#'
9844 else
9845 AUDIO_OSX_TRUE='#'
9846 AUDIO_OSX_FALSE=
9847 fi
9850 if test "x$with_pulse" != "xno"; then
9852 pkg_failed=no
9853 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
9854 $as_echo_n "checking for PULSE... " >&6; }
9856 if test -n "$PULSE_CFLAGS"; then
9857 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
9858 elif test -n "$PKG_CONFIG"; then
9859 if test -n "$PKG_CONFIG" && \
9860 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
9861 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
9862 ac_status=$?
9863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; then
9865 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
9866 else
9867 pkg_failed=yes
9868 fi
9869 else
9870 pkg_failed=untried
9871 fi
9872 if test -n "$PULSE_LIBS"; then
9873 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
9874 elif test -n "$PKG_CONFIG"; then
9875 if test -n "$PKG_CONFIG" && \
9876 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
9877 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
9878 ac_status=$?
9879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; then
9881 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
9882 else
9883 pkg_failed=yes
9884 fi
9885 else
9886 pkg_failed=untried
9887 fi
9891 if test $pkg_failed = yes; then
9893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9894 _pkg_short_errors_supported=yes
9895 else
9896 _pkg_short_errors_supported=no
9897 fi
9898 if test $_pkg_short_errors_supported = yes; then
9899 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
9900 else
9901 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
9902 fi
9903 # Put the nasty error message in config.log where it belongs
9904 echo "$PULSE_PKG_ERRORS" >&5
9906 { $as_echo "$as_me:$LINENO: result: no" >&5
9907 $as_echo "no" >&6; }
9909 if test "x$with_pulse" = "xyes"; then
9910 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
9911 See \`config.log' for more details." >&5
9912 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
9913 See \`config.log' for more details." >&2;}
9914 { (exit 1); exit 1; }; }
9915 fi
9917 elif test $pkg_failed = untried; then
9919 if test "x$with_pulse" = "xyes"; then
9920 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
9921 See \`config.log' for more details." >&5
9922 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
9923 See \`config.log' for more details." >&2;}
9924 { (exit 1); exit 1; }; }
9925 fi
9927 else
9928 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
9929 PULSE_LIBS=$pkg_cv_PULSE_LIBS
9930 { $as_echo "$as_me:$LINENO: result: yes" >&5
9931 $as_echo "yes" >&6; }
9933 HAVE_PULSE='yes'
9934 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_PULSE 1
9938 _ACEOF
9941 fi
9942 fi
9945 if test "$HAVE_PULSE" = 'yes' ; then
9946 AUDIO_PULSE_TRUE=
9947 AUDIO_PULSE_FALSE='#'
9948 else
9949 AUDIO_PULSE_TRUE='#'
9950 AUDIO_PULSE_FALSE=
9951 fi
9954 if test "x$with_esd" != "xno"; then
9956 pkg_failed=no
9957 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
9958 $as_echo_n "checking for ESOUND... " >&6; }
9960 if test -n "$ESOUND_CFLAGS"; then
9961 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
9962 elif test -n "$PKG_CONFIG"; then
9963 if test -n "$PKG_CONFIG" && \
9964 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9965 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9966 ac_status=$?
9967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; then
9969 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
9970 else
9971 pkg_failed=yes
9972 fi
9973 else
9974 pkg_failed=untried
9975 fi
9976 if test -n "$ESOUND_LIBS"; then
9977 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
9978 elif test -n "$PKG_CONFIG"; then
9979 if test -n "$PKG_CONFIG" && \
9980 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9981 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9982 ac_status=$?
9983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; then
9985 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
9986 else
9987 pkg_failed=yes
9988 fi
9989 else
9990 pkg_failed=untried
9991 fi
9995 if test $pkg_failed = yes; then
9997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9998 _pkg_short_errors_supported=yes
9999 else
10000 _pkg_short_errors_supported=no
10001 fi
10002 if test $_pkg_short_errors_supported = yes; then
10003 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10004 else
10005 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10006 fi
10007 # Put the nasty error message in config.log where it belongs
10008 echo "$ESOUND_PKG_ERRORS" >&5
10010 { $as_echo "$as_me:$LINENO: result: no" >&5
10011 $as_echo "no" >&6; }
10013 if test "x$with_esd" = "xyes"; then
10014 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10015 See \`config.log' for more details." >&5
10016 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10017 See \`config.log' for more details." >&2;}
10018 { (exit 1); exit 1; }; }
10019 fi
10021 elif test $pkg_failed = untried; then
10023 if test "x$with_esd" = "xyes"; then
10024 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10025 See \`config.log' for more details." >&5
10026 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10027 See \`config.log' for more details." >&2;}
10028 { (exit 1); exit 1; }; }
10029 fi
10031 else
10032 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10033 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10034 { $as_echo "$as_me:$LINENO: result: yes" >&5
10035 $as_echo "yes" >&6; }
10037 HAVE_ESOUND='yes'
10038 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_ESOUND 1
10042 _ACEOF
10045 fi
10046 fi
10049 if test "$HAVE_ESOUND" = 'yes' ; then
10050 AUDIO_ESOUND_TRUE=
10051 AUDIO_ESOUND_FALSE='#'
10052 else
10053 AUDIO_ESOUND_TRUE='#'
10054 AUDIO_ESOUND_FALSE=
10055 fi
10059 pkg_failed=no
10060 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10061 $as_echo_n "checking for ALSA... " >&6; }
10063 if test -n "$ALSA_CFLAGS"; then
10064 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10065 elif test -n "$PKG_CONFIG"; then
10066 if test -n "$PKG_CONFIG" && \
10067 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10068 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10069 ac_status=$?
10070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; then
10072 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10073 else
10074 pkg_failed=yes
10075 fi
10076 else
10077 pkg_failed=untried
10078 fi
10079 if test -n "$ALSA_LIBS"; then
10080 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10081 elif test -n "$PKG_CONFIG"; then
10082 if test -n "$PKG_CONFIG" && \
10083 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10084 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10085 ac_status=$?
10086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; then
10088 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10089 else
10090 pkg_failed=yes
10091 fi
10092 else
10093 pkg_failed=untried
10094 fi
10098 if test $pkg_failed = yes; then
10100 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10101 _pkg_short_errors_supported=yes
10102 else
10103 _pkg_short_errors_supported=no
10104 fi
10105 if test $_pkg_short_errors_supported = yes; then
10106 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10107 else
10108 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10109 fi
10110 # Put the nasty error message in config.log where it belongs
10111 echo "$ALSA_PKG_ERRORS" >&5
10113 { $as_echo "$as_me:$LINENO: result: no" >&5
10114 $as_echo "no" >&6; }
10115 true
10116 elif test $pkg_failed = untried; then
10117 true
10118 else
10119 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10120 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10121 { $as_echo "$as_me:$LINENO: result: yes" >&5
10122 $as_echo "yes" >&6; }
10124 HAVE_ALSA='yes'
10125 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10127 cat >>confdefs.h <<\_ACEOF
10128 #define HAVE_ALSA 1
10129 _ACEOF
10131 fi
10134 if test "$HAVE_ALSA" = 'yes' ; then
10135 AUDIO_ALSA_TRUE=
10136 AUDIO_ALSA_FALSE='#'
10137 else
10138 AUDIO_ALSA_TRUE='#'
10139 AUDIO_ALSA_FALSE=
10140 fi
10144 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10145 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10146 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10147 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10148 $as_echo_n "(cached) " >&6
10149 fi
10150 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10151 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10152 else
10153 # Is the header compilable?
10154 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10155 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10163 #include <linux/cdrom.h>
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (ac_try="$ac_compile"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172 $as_echo "$ac_try_echo") >&5
10173 (eval "$ac_compile") 2>conftest.er1
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } && {
10180 test -z "$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 } && test -s conftest.$ac_objext; then
10183 ac_header_compiler=yes
10184 else
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_header_compiler=no
10189 fi
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10193 $as_echo "$ac_header_compiler" >&6; }
10195 # Is the header present?
10196 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10197 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <linux/cdrom.h>
10205 _ACEOF
10206 if { (ac_try="$ac_cpp conftest.$ac_ext"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212 $as_echo "$ac_try_echo") >&5
10213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } >/dev/null && {
10220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10221 test ! -s conftest.err
10222 }; then
10223 ac_header_preproc=yes
10224 else
10225 $as_echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ac_header_preproc=no
10229 fi
10231 rm -f conftest.err conftest.$ac_ext
10232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10233 $as_echo "$ac_header_preproc" >&6; }
10235 # So? What about this header?
10236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10237 yes:no: )
10238 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10239 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10240 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10241 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10242 ac_header_preproc=yes
10243 ;;
10244 no:yes:* )
10245 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10246 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10247 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10248 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10250 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10251 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10252 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10253 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10254 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10255 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10256 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
10258 ;;
10259 esac
10260 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10261 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10262 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10263 $as_echo_n "(cached) " >&6
10264 else
10265 ac_cv_header_linux_cdrom_h=$ac_header_preproc
10266 fi
10267 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10268 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10270 fi
10271 if test $ac_cv_header_linux_cdrom_h = yes; then
10272 CDROM_DRIVER=linux
10273 else
10274 true
10275 fi
10278 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10279 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10280 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10281 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10283 fi
10284 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10285 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10286 else
10287 # Is the header compilable?
10288 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
10289 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
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. */
10296 $ac_includes_default
10297 #include <IOKit/IOKitLib.h>
10298 _ACEOF
10299 rm -f conftest.$ac_objext
10300 if { (ac_try="$ac_compile"
10301 case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304 esac
10305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306 $as_echo "$ac_try_echo") >&5
10307 (eval "$ac_compile") 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest.$ac_objext; then
10317 ac_header_compiler=yes
10318 else
10319 $as_echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_header_compiler=no
10323 fi
10325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10327 $as_echo "$ac_header_compiler" >&6; }
10329 # Is the header present?
10330 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
10331 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <IOKit/IOKitLib.h>
10339 _ACEOF
10340 if { (ac_try="$ac_cpp conftest.$ac_ext"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344 esac
10345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10346 $as_echo "$ac_try_echo") >&5
10347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } >/dev/null && {
10354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10355 test ! -s conftest.err
10356 }; then
10357 ac_header_preproc=yes
10358 else
10359 $as_echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_header_preproc=no
10363 fi
10365 rm -f conftest.err conftest.$ac_ext
10366 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10367 $as_echo "$ac_header_preproc" >&6; }
10369 # So? What about this header?
10370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10371 yes:no: )
10372 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10373 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10374 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
10375 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
10376 ac_header_preproc=yes
10377 ;;
10378 no:yes:* )
10379 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
10380 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
10382 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
10383 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
10384 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
10385 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
10386 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10387 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
10388 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
10389 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
10390 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
10392 ;;
10393 esac
10394 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10395 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10396 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10397 $as_echo_n "(cached) " >&6
10398 else
10399 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
10400 fi
10401 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10402 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10404 fi
10405 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
10407 CDROM_DRIVER=osx
10408 LIBS="$LIBS -framework IOKit"
10409 else
10410 true
10411 fi
10416 if test "x$CDROM_DRIVER" = "xlinux"; then
10417 CDROM_LINUX_TRUE=
10418 CDROM_LINUX_FALSE='#'
10419 else
10420 CDROM_LINUX_TRUE='#'
10421 CDROM_LINUX_FALSE=
10422 fi
10426 if test "x$CDROM_DRIVER" = "xosx"; then
10427 CDROM_OSX_TRUE=
10428 CDROM_OSX_FALSE='#'
10429 else
10430 CDROM_OSX_TRUE='#'
10431 CDROM_OSX_FALSE=
10432 fi
10436 if test "x$CDROM_DRIVER" = "x"; then
10437 CDROM_NONE_TRUE=
10438 CDROM_NONE_FALSE='#'
10439 else
10440 CDROM_NONE_TRUE='#'
10441 CDROM_NONE_FALSE=
10442 fi
10445 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10446 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10447 $as_echo_n "checking for linux/joystick.h... " >&6; }
10448 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10449 $as_echo_n "(cached) " >&6
10450 fi
10451 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10452 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10453 else
10454 # Is the header compilable?
10455 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
10456 $as_echo_n "checking linux/joystick.h usability... " >&6; }
10457 cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 $ac_includes_default
10464 #include <linux/joystick.h>
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10473 $as_echo "$ac_try_echo") >&5
10474 (eval "$ac_compile") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest.$ac_objext; then
10484 ac_header_compiler=yes
10485 else
10486 $as_echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_header_compiler=no
10490 fi
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10494 $as_echo "$ac_header_compiler" >&6; }
10496 # Is the header present?
10497 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
10498 $as_echo_n "checking linux/joystick.h presence... " >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 #include <linux/joystick.h>
10506 _ACEOF
10507 if { (ac_try="$ac_cpp conftest.$ac_ext"
10508 case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10511 esac
10512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10513 $as_echo "$ac_try_echo") >&5
10514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } >/dev/null && {
10521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10522 test ! -s conftest.err
10523 }; then
10524 ac_header_preproc=yes
10525 else
10526 $as_echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_header_preproc=no
10530 fi
10532 rm -f conftest.err conftest.$ac_ext
10533 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10534 $as_echo "$ac_header_preproc" >&6; }
10536 # So? What about this header?
10537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10538 yes:no: )
10539 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
10540 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10541 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
10542 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
10543 ac_header_preproc=yes
10544 ;;
10545 no:yes:* )
10546 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
10547 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
10548 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
10549 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
10550 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
10551 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
10552 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
10553 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
10554 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
10555 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
10556 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
10557 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
10559 ;;
10560 esac
10561 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10562 $as_echo_n "checking for linux/joystick.h... " >&6; }
10563 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10564 $as_echo_n "(cached) " >&6
10565 else
10566 ac_cv_header_linux_joystick_h=$ac_header_preproc
10567 fi
10568 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10569 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10571 fi
10572 if test $ac_cv_header_linux_joystick_h = yes; then
10574 HAVE_LINUX_JOYSTICK_H=yes
10576 cat >>confdefs.h <<\_ACEOF
10577 #define HAVE_LINUX_JOYSTICK 1
10578 _ACEOF
10580 else
10581 echo "Linux Joystick support not found, building without it."
10582 fi
10587 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
10588 JOY_LINUX_TRUE=
10589 JOY_LINUX_FALSE='#'
10590 else
10591 JOY_LINUX_TRUE='#'
10592 JOY_LINUX_FALSE=
10593 fi
10596 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
10597 set dummy sh-elf-gcc; ac_word=$2
10598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10599 $as_echo_n "checking for $ac_word... " >&6; }
10600 if test "${ac_cv_path_SHCC+set}" = set; then
10601 $as_echo_n "(cached) " >&6
10602 else
10603 case $SHCC in
10604 [\\/]* | ?:[\\/]*)
10605 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
10606 ;;
10607 *)
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10615 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
10616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 break 2
10618 fi
10619 done
10620 done
10621 IFS=$as_save_IFS
10623 ;;
10624 esac
10625 fi
10626 SHCC=$ac_cv_path_SHCC
10627 if test -n "$SHCC"; then
10628 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
10629 $as_echo "$SHCC" >&6; }
10630 else
10631 { $as_echo "$as_me:$LINENO: result: no" >&5
10632 $as_echo "no" >&6; }
10633 fi
10636 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
10637 set dummy sh-elf-ld; ac_word=$2
10638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10639 $as_echo_n "checking for $ac_word... " >&6; }
10640 if test "${ac_cv_path_SHLD+set}" = set; then
10641 $as_echo_n "(cached) " >&6
10642 else
10643 case $SHLD in
10644 [\\/]* | ?:[\\/]*)
10645 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
10646 ;;
10647 *)
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10650 do
10651 IFS=$as_save_IFS
10652 test -z "$as_dir" && as_dir=.
10653 for ac_exec_ext in '' $ac_executable_extensions; do
10654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10655 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
10656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10657 break 2
10658 fi
10659 done
10660 done
10661 IFS=$as_save_IFS
10663 ;;
10664 esac
10665 fi
10666 SHLD=$ac_cv_path_SHLD
10667 if test -n "$SHLD"; then
10668 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
10669 $as_echo "$SHLD" >&6; }
10670 else
10671 { $as_echo "$as_me:$LINENO: result: no" >&5
10672 $as_echo "no" >&6; }
10673 fi
10676 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
10677 set dummy sh-elf-objcopy; ac_word=$2
10678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
10681 $as_echo_n "(cached) " >&6
10682 else
10683 case $SHOBJCOPY in
10684 [\\/]* | ?:[\\/]*)
10685 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
10686 ;;
10687 *)
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10690 do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
10696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10698 fi
10699 done
10700 done
10701 IFS=$as_save_IFS
10703 ;;
10704 esac
10705 fi
10706 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
10707 if test -n "$SHOBJCOPY"; then
10708 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
10709 $as_echo "$SHOBJCOPY" >&6; }
10710 else
10711 { $as_echo "$as_me:$LINENO: result: no" >&5
10712 $as_echo "no" >&6; }
10713 fi
10716 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
10717 set dummy arm-elf-gcc; ac_word=$2
10718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if test "${ac_cv_path_ARMCC+set}" = set; then
10721 $as_echo_n "(cached) " >&6
10722 else
10723 case $ARMCC in
10724 [\\/]* | ?:[\\/]*)
10725 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
10726 ;;
10727 *)
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10730 do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10735 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
10736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10738 fi
10739 done
10740 done
10741 IFS=$as_save_IFS
10743 ;;
10744 esac
10745 fi
10746 ARMCC=$ac_cv_path_ARMCC
10747 if test -n "$ARMCC"; then
10748 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
10749 $as_echo "$ARMCC" >&6; }
10750 else
10751 { $as_echo "$as_me:$LINENO: result: no" >&5
10752 $as_echo "no" >&6; }
10753 fi
10756 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
10757 set dummy arm-elf-ld; ac_word=$2
10758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if test "${ac_cv_path_ARMLD+set}" = set; then
10761 $as_echo_n "(cached) " >&6
10762 else
10763 case $ARMLD in
10764 [\\/]* | ?:[\\/]*)
10765 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
10766 ;;
10767 *)
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10770 do
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10775 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
10776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 break 2
10778 fi
10779 done
10780 done
10781 IFS=$as_save_IFS
10783 ;;
10784 esac
10785 fi
10786 ARMLD=$ac_cv_path_ARMLD
10787 if test -n "$ARMLD"; then
10788 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
10789 $as_echo "$ARMLD" >&6; }
10790 else
10791 { $as_echo "$as_me:$LINENO: result: no" >&5
10792 $as_echo "no" >&6; }
10793 fi
10796 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
10797 set dummy arm-elf-objcopy; ac_word=$2
10798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10799 $as_echo_n "checking for $ac_word... " >&6; }
10800 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
10801 $as_echo_n "(cached) " >&6
10802 else
10803 case $ARMOBJCOPY in
10804 [\\/]* | ?:[\\/]*)
10805 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
10806 ;;
10807 *)
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10810 do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10815 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
10816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10818 fi
10819 done
10820 done
10821 IFS=$as_save_IFS
10823 ;;
10824 esac
10825 fi
10826 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
10827 if test -n "$ARMOBJCOPY"; then
10828 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
10829 $as_echo "$ARMOBJCOPY" >&6; }
10830 else
10831 { $as_echo "$as_me:$LINENO: result: no" >&5
10832 $as_echo "no" >&6; }
10833 fi
10837 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
10838 BUILD_SH="no"
10839 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
10840 else
10841 BUILD_SH="yes"
10842 fi
10843 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
10844 BUILD_ARM="no"
10845 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
10846 else
10847 BUILD_ARM="yes"
10848 fi
10851 if test "$BUILD_SH" = "yes"; then
10852 BUILD_SYSTEST_TRUE=
10853 BUILD_SYSTEST_FALSE='#'
10854 else
10855 BUILD_SYSTEST_TRUE='#'
10856 BUILD_SYSTEST_FALSE=
10857 fi
10861 if test "$BUILD_ARM" = "yes"; then
10862 BUILD_ARMTEST_TRUE=
10863 BUILD_ARMTEST_FALSE='#'
10864 else
10865 BUILD_ARMTEST_TRUE='#'
10866 BUILD_ARMTEST_FALSE=
10867 fi
10871 GETTEXT_PACKAGE=lxdream
10874 cat >>confdefs.h <<_ACEOF
10875 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
10876 _ACEOF
10879 ALL_LINGUAS="de es it pt_BR"
10882 for ac_header in locale.h
10883 do
10884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10886 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10887 $as_echo_n "checking for $ac_header... " >&6; }
10888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889 $as_echo_n "(cached) " >&6
10890 fi
10891 ac_res=`eval 'as_val=${'$as_ac_Header'}
10892 $as_echo "$as_val"'`
10893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10894 $as_echo "$ac_res" >&6; }
10895 else
10896 # Is the header compilable?
10897 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10898 $as_echo_n "checking $ac_header usability... " >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 $ac_includes_default
10906 #include <$ac_header>
10907 _ACEOF
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913 esac
10914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10915 $as_echo "$ac_try_echo") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.$ac_objext; then
10926 ac_header_compiler=yes
10927 else
10928 $as_echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_header_compiler=no
10932 fi
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10936 $as_echo "$ac_header_compiler" >&6; }
10938 # Is the header present?
10939 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10940 $as_echo_n "checking $ac_header presence... " >&6; }
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 #include <$ac_header>
10948 _ACEOF
10949 if { (ac_try="$ac_cpp conftest.$ac_ext"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953 esac
10954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955 $as_echo "$ac_try_echo") >&5
10956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } >/dev/null && {
10963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 }; then
10966 ac_header_preproc=yes
10967 else
10968 $as_echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_header_preproc=no
10972 fi
10974 rm -f conftest.err conftest.$ac_ext
10975 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10976 $as_echo "$ac_header_preproc" >&6; }
10978 # So? What about this header?
10979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10980 yes:no: )
10981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10982 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10984 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10985 ac_header_preproc=yes
10986 ;;
10987 no:yes:* )
10988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10989 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10991 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10993 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10995 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10997 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10999 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11001 ;;
11002 esac
11003 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11004 $as_echo_n "checking for $ac_header... " >&6; }
11005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11006 $as_echo_n "(cached) " >&6
11007 else
11008 eval "$as_ac_Header=\$ac_header_preproc"
11009 fi
11010 ac_res=`eval 'as_val=${'$as_ac_Header'}
11011 $as_echo "$as_val"'`
11012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11013 $as_echo "$ac_res" >&6; }
11015 fi
11016 if test `eval 'as_val=${'$as_ac_Header'}
11017 $as_echo "$as_val"'` = yes; then
11018 cat >>confdefs.h <<_ACEOF
11019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11020 _ACEOF
11022 fi
11024 done
11026 if test $ac_cv_header_locale_h = yes; then
11027 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11028 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11029 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11030 $as_echo_n "(cached) " >&6
11031 else
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 #include <locale.h>
11039 int
11040 main ()
11041 {
11042 return LC_MESSAGES
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11052 esac
11053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11054 $as_echo "$ac_try_echo") >&5
11055 (eval "$ac_link") 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext && {
11065 test "$cross_compiling" = yes ||
11066 $as_test_x conftest$ac_exeext
11067 }; then
11068 am_cv_val_LC_MESSAGES=yes
11069 else
11070 $as_echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 am_cv_val_LC_MESSAGES=no
11074 fi
11076 rm -rf conftest.dSYM
11077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11078 conftest$ac_exeext conftest.$ac_ext
11079 fi
11080 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11081 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11082 if test $am_cv_val_LC_MESSAGES = yes; then
11084 cat >>confdefs.h <<\_ACEOF
11085 #define HAVE_LC_MESSAGES 1
11086 _ACEOF
11088 fi
11089 fi
11090 USE_NLS=yes
11093 gt_cv_have_gettext=no
11095 CATOBJEXT=NONE
11096 XGETTEXT=:
11097 INTLLIBS=
11099 if test "${ac_cv_header_libintl_h+set}" = set; then
11100 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11101 $as_echo_n "checking for libintl.h... " >&6; }
11102 if test "${ac_cv_header_libintl_h+set}" = set; then
11103 $as_echo_n "(cached) " >&6
11104 fi
11105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11106 $as_echo "$ac_cv_header_libintl_h" >&6; }
11107 else
11108 # Is the header compilable?
11109 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
11110 $as_echo_n "checking libintl.h usability... " >&6; }
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 $ac_includes_default
11118 #include <libintl.h>
11119 _ACEOF
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.$ac_objext; then
11138 ac_header_compiler=yes
11139 else
11140 $as_echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11144 fi
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 $as_echo "$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
11152 $as_echo_n "checking libintl.h presence... " >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <libintl.h>
11160 _ACEOF
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165 esac
11166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11167 $as_echo "$ac_try_echo") >&5
11168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null && {
11175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 }; then
11178 ac_header_preproc=yes
11179 else
11180 $as_echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_header_preproc=no
11184 fi
11186 rm -f conftest.err conftest.$ac_ext
11187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11188 $as_echo "$ac_header_preproc" >&6; }
11190 # So? What about this header?
11191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11192 yes:no: )
11193 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11194 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11195 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
11196 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
11197 ac_header_preproc=yes
11198 ;;
11199 no:yes:* )
11200 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
11201 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
11202 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
11203 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
11204 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
11205 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
11206 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
11207 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11208 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
11209 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
11210 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
11211 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
11213 ;;
11214 esac
11215 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11216 $as_echo_n "checking for libintl.h... " >&6; }
11217 if test "${ac_cv_header_libintl_h+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11219 else
11220 ac_cv_header_libintl_h=$ac_header_preproc
11221 fi
11222 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11223 $as_echo "$ac_cv_header_libintl_h" >&6; }
11225 fi
11226 if test $ac_cv_header_libintl_h = yes; then
11227 gt_cv_func_dgettext_libintl="no"
11228 libintl_extra_libs=""
11230 #
11231 # First check in libc
11232 #
11233 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
11234 $as_echo_n "checking for ngettext in libc... " >&6; }
11235 if test "${gt_cv_func_ngettext_libc+set}" = set; then
11236 $as_echo_n "(cached) " >&6
11237 else
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h. */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11245 #include <libintl.h>
11247 int
11248 main ()
11249 {
11250 return !ngettext ("","", 1)
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11262 $as_echo "$ac_try_echo") >&5
11263 (eval "$ac_link") 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest$ac_exeext && {
11273 test "$cross_compiling" = yes ||
11274 $as_test_x conftest$ac_exeext
11275 }; then
11276 gt_cv_func_ngettext_libc=yes
11277 else
11278 $as_echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 gt_cv_func_ngettext_libc=no
11282 fi
11284 rm -rf conftest.dSYM
11285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286 conftest$ac_exeext conftest.$ac_ext
11288 fi
11289 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
11290 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
11292 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11293 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
11294 $as_echo_n "checking for dgettext in libc... " >&6; }
11295 if test "${gt_cv_func_dgettext_libc+set}" = set; then
11296 $as_echo_n "(cached) " >&6
11297 else
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11305 #include <libintl.h>
11307 int
11308 main ()
11309 {
11310 return !dgettext ("","")
11311 ;
11312 return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (ac_try="$ac_link"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320 esac
11321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11322 $as_echo "$ac_try_echo") >&5
11323 (eval "$ac_link") 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest$ac_exeext && {
11333 test "$cross_compiling" = yes ||
11334 $as_test_x conftest$ac_exeext
11335 }; then
11336 gt_cv_func_dgettext_libc=yes
11337 else
11338 $as_echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 gt_cv_func_dgettext_libc=no
11342 fi
11344 rm -rf conftest.dSYM
11345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11346 conftest$ac_exeext conftest.$ac_ext
11348 fi
11349 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
11350 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
11351 fi
11353 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11355 for ac_func in bind_textdomain_codeset
11356 do
11357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11359 $as_echo_n "checking for $ac_func... " >&6; }
11360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11361 $as_echo_n "(cached) " >&6
11362 else
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11371 #define $ac_func innocuous_$ac_func
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char $ac_func (); below.
11375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376 <limits.h> exists even on freestanding compilers. */
11378 #ifdef __STDC__
11379 # include <limits.h>
11380 #else
11381 # include <assert.h>
11382 #endif
11384 #undef $ac_func
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char $ac_func ();
11393 /* The GNU C library defines this for functions which it implements
11394 to always fail with ENOSYS. Some functions are actually named
11395 something starting with __ and the normal name is an alias. */
11396 #if defined __stub_$ac_func || defined __stub___$ac_func
11397 choke me
11398 #endif
11400 int
11401 main ()
11402 {
11403 return $ac_func ();
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (ac_try="$ac_link"
11410 case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413 esac
11414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11415 $as_echo "$ac_try_echo") >&5
11416 (eval "$ac_link") 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } && {
11423 test -z "$ac_c_werror_flag" ||
11424 test ! -s conftest.err
11425 } && test -s conftest$ac_exeext && {
11426 test "$cross_compiling" = yes ||
11427 $as_test_x conftest$ac_exeext
11428 }; then
11429 eval "$as_ac_var=yes"
11430 else
11431 $as_echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 eval "$as_ac_var=no"
11435 fi
11437 rm -rf conftest.dSYM
11438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11439 conftest$ac_exeext conftest.$ac_ext
11440 fi
11441 ac_res=`eval 'as_val=${'$as_ac_var'}
11442 $as_echo "$as_val"'`
11443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11444 $as_echo "$ac_res" >&6; }
11445 if test `eval 'as_val=${'$as_ac_var'}
11446 $as_echo "$as_val"'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11449 _ACEOF
11451 fi
11452 done
11454 fi
11456 #
11457 # If we don't have everything we want, check in libintl
11458 #
11459 if test "$gt_cv_func_dgettext_libc" != "yes" \
11460 || test "$gt_cv_func_ngettext_libc" != "yes" \
11461 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11463 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
11464 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11465 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
11466 $as_echo_n "(cached) " >&6
11467 else
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-lintl $LIBS"
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h. */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 char bindtextdomain ();
11484 int
11485 main ()
11486 {
11487 return bindtextdomain ();
11488 ;
11489 return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (ac_try="$ac_link"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497 esac
11498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499 $as_echo "$ac_try_echo") >&5
11500 (eval "$ac_link") 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && {
11507 test -z "$ac_c_werror_flag" ||
11508 test ! -s conftest.err
11509 } && test -s conftest$ac_exeext && {
11510 test "$cross_compiling" = yes ||
11511 $as_test_x conftest$ac_exeext
11512 }; then
11513 ac_cv_lib_intl_bindtextdomain=yes
11514 else
11515 $as_echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 ac_cv_lib_intl_bindtextdomain=no
11519 fi
11521 rm -rf conftest.dSYM
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11525 fi
11526 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
11527 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11528 if test $ac_cv_lib_intl_bindtextdomain = yes; then
11529 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11530 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11531 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11532 $as_echo_n "(cached) " >&6
11533 else
11534 ac_check_lib_save_LIBS=$LIBS
11535 LIBS="-lintl $LIBS"
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char ngettext ();
11550 int
11551 main ()
11552 {
11553 return ngettext ();
11554 ;
11555 return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext conftest$ac_exeext
11559 if { (ac_try="$ac_link"
11560 case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563 esac
11564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11565 $as_echo "$ac_try_echo") >&5
11566 (eval "$ac_link") 2>conftest.er1
11567 ac_status=$?
11568 grep -v '^ *+' conftest.er1 >conftest.err
11569 rm -f conftest.er1
11570 cat conftest.err >&5
11571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && {
11573 test -z "$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11575 } && test -s conftest$ac_exeext && {
11576 test "$cross_compiling" = yes ||
11577 $as_test_x conftest$ac_exeext
11578 }; then
11579 ac_cv_lib_intl_ngettext=yes
11580 else
11581 $as_echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_cv_lib_intl_ngettext=no
11585 fi
11587 rm -rf conftest.dSYM
11588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11589 conftest$ac_exeext conftest.$ac_ext
11590 LIBS=$ac_check_lib_save_LIBS
11591 fi
11592 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
11593 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11594 if test $ac_cv_lib_intl_ngettext = yes; then
11595 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
11596 $as_echo_n "checking for dgettext in -lintl... " >&6; }
11597 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11598 $as_echo_n "(cached) " >&6
11599 else
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lintl $LIBS"
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 char dgettext ();
11616 int
11617 main ()
11618 {
11619 return dgettext ();
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11631 $as_echo "$ac_try_echo") >&5
11632 (eval "$ac_link") 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && {
11639 test -z "$ac_c_werror_flag" ||
11640 test ! -s conftest.err
11641 } && test -s conftest$ac_exeext && {
11642 test "$cross_compiling" = yes ||
11643 $as_test_x conftest$ac_exeext
11644 }; then
11645 ac_cv_lib_intl_dgettext=yes
11646 else
11647 $as_echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 ac_cv_lib_intl_dgettext=no
11651 fi
11653 rm -rf conftest.dSYM
11654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
11659 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11660 if test $ac_cv_lib_intl_dgettext = yes; then
11661 gt_cv_func_dgettext_libintl=yes
11662 fi
11664 fi
11666 fi
11669 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11670 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
11671 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11672 { $as_echo "$as_me:$LINENO: result: " >&5
11673 $as_echo "" >&6; }
11674 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11675 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11676 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11677 $as_echo_n "(cached) " >&6
11678 else
11679 ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-lintl -liconv $LIBS"
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11691 #ifdef __cplusplus
11692 extern "C"
11693 #endif
11694 char ngettext ();
11695 int
11696 main ()
11697 {
11698 return ngettext ();
11699 ;
11700 return 0;
11701 }
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708 esac
11709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710 $as_echo "$ac_try_echo") >&5
11711 (eval "$ac_link") 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest$ac_exeext && {
11721 test "$cross_compiling" = yes ||
11722 $as_test_x conftest$ac_exeext
11723 }; then
11724 ac_cv_lib_intl_ngettext=yes
11725 else
11726 $as_echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 ac_cv_lib_intl_ngettext=no
11730 fi
11732 rm -rf conftest.dSYM
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11736 fi
11737 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
11738 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11739 if test $ac_cv_lib_intl_ngettext = yes; then
11740 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
11741 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
11742 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
11743 $as_echo_n "(cached) " >&6
11744 else
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-lintl -liconv $LIBS"
11747 cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h. */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char dcgettext ();
11761 int
11762 main ()
11763 {
11764 return dcgettext ();
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774 esac
11775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776 $as_echo "$ac_try_echo") >&5
11777 (eval "$ac_link") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest$ac_exeext && {
11787 test "$cross_compiling" = yes ||
11788 $as_test_x conftest$ac_exeext
11789 }; then
11790 ac_cv_lib_intl_dcgettext=yes
11791 else
11792 $as_echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_cv_lib_intl_dcgettext=no
11796 fi
11798 rm -rf conftest.dSYM
11799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11800 conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11802 fi
11803 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
11804 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
11805 if test $ac_cv_lib_intl_dcgettext = yes; then
11806 gt_cv_func_dgettext_libintl=yes
11807 libintl_extra_libs=-liconv
11808 else
11809 :
11810 fi
11812 else
11813 :
11814 fi
11816 fi
11818 #
11819 # If we found libintl, then check in it for bind_textdomain_codeset();
11820 # we'll prefer libc if neither have bind_textdomain_codeset(),
11821 # and both have dgettext and ngettext
11822 #
11823 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11824 glib_save_LIBS="$LIBS"
11825 LIBS="$LIBS -lintl $libintl_extra_libs"
11826 unset ac_cv_func_bind_textdomain_codeset
11828 for ac_func in bind_textdomain_codeset
11829 do
11830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11831 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11832 $as_echo_n "checking for $ac_func... " >&6; }
11833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11834 $as_echo_n "(cached) " >&6
11835 else
11836 cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h. */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11844 #define $ac_func innocuous_$ac_func
11846 /* System header to define __stub macros and hopefully few prototypes,
11847 which can conflict with char $ac_func (); below.
11848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11849 <limits.h> exists even on freestanding compilers. */
11851 #ifdef __STDC__
11852 # include <limits.h>
11853 #else
11854 # include <assert.h>
11855 #endif
11857 #undef $ac_func
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char $ac_func ();
11866 /* The GNU C library defines this for functions which it implements
11867 to always fail with ENOSYS. Some functions are actually named
11868 something starting with __ and the normal name is an alias. */
11869 #if defined __stub_$ac_func || defined __stub___$ac_func
11870 choke me
11871 #endif
11873 int
11874 main ()
11875 {
11876 return $ac_func ();
11877 ;
11878 return 0;
11879 }
11880 _ACEOF
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886 esac
11887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11888 $as_echo "$ac_try_echo") >&5
11889 (eval "$ac_link") 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } && {
11896 test -z "$ac_c_werror_flag" ||
11897 test ! -s conftest.err
11898 } && test -s conftest$ac_exeext && {
11899 test "$cross_compiling" = yes ||
11900 $as_test_x conftest$ac_exeext
11901 }; then
11902 eval "$as_ac_var=yes"
11903 else
11904 $as_echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 eval "$as_ac_var=no"
11908 fi
11910 rm -rf conftest.dSYM
11911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11912 conftest$ac_exeext conftest.$ac_ext
11913 fi
11914 ac_res=`eval 'as_val=${'$as_ac_var'}
11915 $as_echo "$as_val"'`
11916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11917 $as_echo "$ac_res" >&6; }
11918 if test `eval 'as_val=${'$as_ac_var'}
11919 $as_echo "$as_val"'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11922 _ACEOF
11924 fi
11925 done
11927 LIBS="$glib_save_LIBS"
11929 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
11930 gt_cv_func_dgettext_libc=no
11931 else
11932 if test "$gt_cv_func_dgettext_libc" = "yes" \
11933 && test "$gt_cv_func_ngettext_libc" = "yes"; then
11934 gt_cv_func_dgettext_libintl=no
11935 fi
11936 fi
11937 fi
11938 fi
11940 if test "$gt_cv_func_dgettext_libc" = "yes" \
11941 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
11942 gt_cv_have_gettext=yes
11943 fi
11945 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
11946 INTLLIBS="-lintl $libintl_extra_libs"
11947 fi
11949 if test "$gt_cv_have_gettext" = "yes"; then
11951 cat >>confdefs.h <<\_ACEOF
11952 #define HAVE_GETTEXT 1
11953 _ACEOF
11955 # Extract the first word of "msgfmt", so it can be a program name with args.
11956 set dummy msgfmt; ac_word=$2
11957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if test "${ac_cv_path_MSGFMT+set}" = set; then
11960 $as_echo_n "(cached) " >&6
11961 else
11962 case "$MSGFMT" in
11963 /*)
11964 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11965 ;;
11966 *)
11967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11968 for ac_dir in $PATH; do
11969 test -z "$ac_dir" && ac_dir=.
11970 if test -f $ac_dir/$ac_word; then
11971 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11972 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11973 break
11974 fi
11975 fi
11976 done
11977 IFS="$ac_save_ifs"
11978 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11979 ;;
11980 esac
11981 fi
11982 MSGFMT="$ac_cv_path_MSGFMT"
11983 if test "$MSGFMT" != "no"; then
11984 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11985 $as_echo "$MSGFMT" >&6; }
11986 else
11987 { $as_echo "$as_me:$LINENO: result: no" >&5
11988 $as_echo "no" >&6; }
11989 fi
11990 if test "$MSGFMT" != "no"; then
11991 glib_save_LIBS="$LIBS"
11992 LIBS="$LIBS $INTLLIBS"
11994 for ac_func in dcgettext
11995 do
11996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11998 $as_echo_n "checking for $ac_func... " >&6; }
11999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12000 $as_echo_n "(cached) " >&6
12001 else
12002 cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h. */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12010 #define $ac_func innocuous_$ac_func
12012 /* System header to define __stub macros and hopefully few prototypes,
12013 which can conflict with char $ac_func (); below.
12014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015 <limits.h> exists even on freestanding compilers. */
12017 #ifdef __STDC__
12018 # include <limits.h>
12019 #else
12020 # include <assert.h>
12021 #endif
12023 #undef $ac_func
12025 /* Override any GCC internal prototype to avoid an error.
12026 Use char because int might match the return type of a GCC
12027 builtin and then its argument prototype would still apply. */
12028 #ifdef __cplusplus
12029 extern "C"
12030 #endif
12031 char $ac_func ();
12032 /* The GNU C library defines this for functions which it implements
12033 to always fail with ENOSYS. Some functions are actually named
12034 something starting with __ and the normal name is an alias. */
12035 #if defined __stub_$ac_func || defined __stub___$ac_func
12036 choke me
12037 #endif
12039 int
12040 main ()
12041 {
12042 return $ac_func ();
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (ac_try="$ac_link"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12052 esac
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055 (eval "$ac_link") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest$ac_exeext && {
12065 test "$cross_compiling" = yes ||
12066 $as_test_x conftest$ac_exeext
12067 }; then
12068 eval "$as_ac_var=yes"
12069 else
12070 $as_echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 eval "$as_ac_var=no"
12074 fi
12076 rm -rf conftest.dSYM
12077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12078 conftest$ac_exeext conftest.$ac_ext
12079 fi
12080 ac_res=`eval 'as_val=${'$as_ac_var'}
12081 $as_echo "$as_val"'`
12082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12083 $as_echo "$ac_res" >&6; }
12084 if test `eval 'as_val=${'$as_ac_var'}
12085 $as_echo "$as_val"'` = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12088 _ACEOF
12090 fi
12091 done
12093 MSGFMT_OPTS=
12094 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
12095 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
12096 cat >conftest.foo <<_ACEOF
12098 msgid ""
12099 msgstr ""
12100 "Content-Type: text/plain; charset=UTF-8\n"
12101 "Project-Id-Version: test 1.0\n"
12102 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12103 "Last-Translator: test <foo@bar.xx>\n"
12104 "Language-Team: C <LL@li.org>\n"
12105 "MIME-Version: 1.0\n"
12106 "Content-Transfer-Encoding: 8bit\n"
12108 _ACEOF
12109 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
12110 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12111 ac_status=$?
12112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; then
12114 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
12115 $as_echo "yes" >&6; }
12116 else { $as_echo "$as_me:$LINENO: result: no" >&5
12117 $as_echo "no" >&6; }
12118 echo "$as_me: failed input was:" >&5
12119 sed 's/^/| /' conftest.foo >&5
12120 fi
12122 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12123 set dummy gmsgfmt; ac_word=$2
12124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12127 $as_echo_n "(cached) " >&6
12128 else
12129 case $GMSGFMT in
12130 [\\/]* | ?:[\\/]*)
12131 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12132 ;;
12133 *)
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12144 fi
12145 done
12146 done
12147 IFS=$as_save_IFS
12149 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12150 ;;
12151 esac
12152 fi
12153 GMSGFMT=$ac_cv_path_GMSGFMT
12154 if test -n "$GMSGFMT"; then
12155 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12156 $as_echo "$GMSGFMT" >&6; }
12157 else
12158 { $as_echo "$as_me:$LINENO: result: no" >&5
12159 $as_echo "no" >&6; }
12160 fi
12163 # Extract the first word of "xgettext", so it can be a program name with args.
12164 set dummy xgettext; ac_word=$2
12165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12166 $as_echo_n "checking for $ac_word... " >&6; }
12167 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12168 $as_echo_n "(cached) " >&6
12169 else
12170 case "$XGETTEXT" in
12171 /*)
12172 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12173 ;;
12174 *)
12175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12176 for ac_dir in $PATH; do
12177 test -z "$ac_dir" && ac_dir=.
12178 if test -f $ac_dir/$ac_word; then
12179 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12180 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12181 break
12182 fi
12183 fi
12184 done
12185 IFS="$ac_save_ifs"
12186 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12187 ;;
12188 esac
12189 fi
12190 XGETTEXT="$ac_cv_path_XGETTEXT"
12191 if test "$XGETTEXT" != ":"; then
12192 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12193 $as_echo "$XGETTEXT" >&6; }
12194 else
12195 { $as_echo "$as_me:$LINENO: result: no" >&5
12196 $as_echo "no" >&6; }
12197 fi
12199 cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h. */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12206 int
12207 main ()
12208 {
12209 extern int _nl_msg_cat_cntr;
12210 return _nl_msg_cat_cntr
12211 ;
12212 return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext conftest$ac_exeext
12216 if { (ac_try="$ac_link"
12217 case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12220 esac
12221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12222 $as_echo "$ac_try_echo") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext && {
12233 test "$cross_compiling" = yes ||
12234 $as_test_x conftest$ac_exeext
12235 }; then
12236 CATOBJEXT=.gmo
12237 DATADIRNAME=share
12238 else
12239 $as_echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12242 case $host in
12243 *-*-solaris*)
12244 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
12245 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
12246 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12248 else
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
12256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12257 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
12259 /* System header to define __stub macros and hopefully few prototypes,
12260 which can conflict with char bind_textdomain_codeset (); below.
12261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262 <limits.h> exists even on freestanding compilers. */
12264 #ifdef __STDC__
12265 # include <limits.h>
12266 #else
12267 # include <assert.h>
12268 #endif
12270 #undef bind_textdomain_codeset
12272 /* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12275 #ifdef __cplusplus
12276 extern "C"
12277 #endif
12278 char bind_textdomain_codeset ();
12279 /* The GNU C library defines this for functions which it implements
12280 to always fail with ENOSYS. Some functions are actually named
12281 something starting with __ and the normal name is an alias. */
12282 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
12283 choke me
12284 #endif
12286 int
12287 main ()
12288 {
12289 return bind_textdomain_codeset ();
12290 ;
12291 return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (ac_try="$ac_link"
12296 case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299 esac
12300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12301 $as_echo "$ac_try_echo") >&5
12302 (eval "$ac_link") 2>conftest.er1
12303 ac_status=$?
12304 grep -v '^ *+' conftest.er1 >conftest.err
12305 rm -f conftest.er1
12306 cat conftest.err >&5
12307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest$ac_exeext && {
12312 test "$cross_compiling" = yes ||
12313 $as_test_x conftest$ac_exeext
12314 }; then
12315 ac_cv_func_bind_textdomain_codeset=yes
12316 else
12317 $as_echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_cv_func_bind_textdomain_codeset=no
12321 fi
12323 rm -rf conftest.dSYM
12324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12325 conftest$ac_exeext conftest.$ac_ext
12326 fi
12327 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
12328 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
12329 if test $ac_cv_func_bind_textdomain_codeset = yes; then
12330 CATOBJEXT=.gmo
12331 DATADIRNAME=share
12332 else
12333 CATOBJEXT=.mo
12334 DATADIRNAME=lib
12335 fi
12337 ;;
12338 *)
12339 CATOBJEXT=.mo
12340 DATADIRNAME=lib
12341 ;;
12342 esac
12343 fi
12345 rm -rf conftest.dSYM
12346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS="$glib_save_LIBS"
12349 INSTOBJEXT=.mo
12350 else
12351 gt_cv_have_gettext=no
12352 fi
12353 fi
12355 fi
12359 if test "$gt_cv_have_gettext" = "yes" ; then
12361 cat >>confdefs.h <<\_ACEOF
12362 #define ENABLE_NLS 1
12363 _ACEOF
12365 fi
12367 if test "$XGETTEXT" != ":"; then
12368 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12369 : ;
12370 else
12371 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12372 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12373 XGETTEXT=":"
12374 fi
12375 fi
12377 # We need to process the po/ directory.
12378 POSUB=po
12380 ac_config_commands="$ac_config_commands default-1"
12383 for lang in $ALL_LINGUAS; do
12384 GMOFILES="$GMOFILES $lang.gmo"
12385 POFILES="$POFILES $lang.po"
12386 done
12400 if test "$gt_cv_have_gettext" = "yes"; then
12401 if test "x$ALL_LINGUAS" = "x"; then
12402 LINGUAS=
12403 else
12404 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12405 $as_echo_n "checking for catalogs to be installed... " >&6; }
12406 NEW_LINGUAS=
12407 for presentlang in $ALL_LINGUAS; do
12408 useit=no
12409 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12410 desiredlanguages="$LINGUAS"
12411 else
12412 desiredlanguages="$ALL_LINGUAS"
12413 fi
12414 for desiredlang in $desiredlanguages; do
12415 # Use the presentlang catalog if desiredlang is
12416 # a. equal to presentlang, or
12417 # b. a variant of presentlang (because in this case,
12418 # presentlang can be used as a fallback for messages
12419 # which are not translated in the desiredlang catalog).
12420 case "$desiredlang" in
12421 "$presentlang"*) useit=yes;;
12422 esac
12423 done
12424 if test $useit = yes; then
12425 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12426 fi
12427 done
12428 LINGUAS=$NEW_LINGUAS
12429 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
12430 $as_echo "$LINGUAS" >&6; }
12431 fi
12433 if test -n "$LINGUAS"; then
12434 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12435 fi
12436 fi
12438 MKINSTALLDIRS=
12439 if test -n "$ac_aux_dir"; then
12440 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12441 fi
12442 if test -z "$MKINSTALLDIRS"; then
12443 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12444 fi
12447 test -d po || mkdir po
12448 if test "x$srcdir" != "x."; then
12449 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12450 posrcprefix="$srcdir/"
12451 else
12452 posrcprefix="../$srcdir/"
12453 fi
12454 else
12455 posrcprefix="../"
12456 fi
12457 rm -f po/POTFILES
12458 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12459 < $srcdir/po/POTFILES.in > po/POTFILES
12462 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
12464 cat >confcache <<\_ACEOF
12465 # This file is a shell script that caches the results of configure
12466 # tests run on this system so they can be shared between configure
12467 # scripts and configure runs, see configure's option --config-cache.
12468 # It is not useful on other systems. If it contains results you don't
12469 # want to keep, you may remove or edit it.
12470 #
12471 # config.status only pays attention to the cache file if you give it
12472 # the --recheck option to rerun configure.
12473 #
12474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12476 # following values.
12478 _ACEOF
12480 # The following way of writing the cache mishandles newlines in values,
12481 # but we know of no workaround that is simple, portable, and efficient.
12482 # So, we kill variables containing newlines.
12483 # Ultrix sh set writes to stderr and can't be redirected directly,
12484 # and sets the high bit in the cache file unless we assign to the vars.
12485 (
12486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12487 eval ac_val=\$$ac_var
12488 case $ac_val in #(
12489 *${as_nl}*)
12490 case $ac_var in #(
12491 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12492 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12493 esac
12494 case $ac_var in #(
12495 _ | IFS | as_nl) ;; #(
12496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12497 *) $as_unset $ac_var ;;
12498 esac ;;
12499 esac
12500 done
12502 (set) 2>&1 |
12503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12504 *${as_nl}ac_space=\ *)
12505 # `set' does not quote correctly, so add quotes (double-quote
12506 # substitution turns \\\\ into \\, and sed turns \\ into \).
12507 sed -n \
12508 "s/'/'\\\\''/g;
12509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12510 ;; #(
12511 *)
12512 # `set' quotes correctly as required by POSIX, so do not add quotes.
12513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12514 ;;
12515 esac |
12516 sort
12517 ) |
12518 sed '
12519 /^ac_cv_env_/b end
12520 t clear
12521 :clear
12522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12523 t end
12524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12525 :end' >>confcache
12526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12527 if test -w "$cache_file"; then
12528 test "x$cache_file" != "x/dev/null" &&
12529 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12530 $as_echo "$as_me: updating cache $cache_file" >&6;}
12531 cat confcache >$cache_file
12532 else
12533 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12535 fi
12536 fi
12537 rm -f confcache
12539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12540 # Let make expand exec_prefix.
12541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12543 DEFS=-DHAVE_CONFIG_H
12545 ac_libobjs=
12546 ac_ltlibobjs=
12547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12548 # 1. Remove the extension, and $U if already installed.
12549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12550 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12552 # will be set to the directory where LIBOBJS objects are built.
12553 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12554 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12555 done
12556 LIBOBJS=$ac_libobjs
12558 LTLIBOBJS=$ac_ltlibobjs
12561 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12562 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12563 Usually this means the macro was only invoked conditionally." >&5
12564 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12565 Usually this means the macro was only invoked conditionally." >&2;}
12566 { (exit 1); exit 1; }; }
12567 fi
12568 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12569 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12570 Usually this means the macro was only invoked conditionally." >&5
12571 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12572 Usually this means the macro was only invoked conditionally." >&2;}
12573 { (exit 1); exit 1; }; }
12574 fi
12575 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12576 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12577 Usually this means the macro was only invoked conditionally." >&5
12578 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12579 Usually this means the macro was only invoked conditionally." >&2;}
12580 { (exit 1); exit 1; }; }
12581 fi
12582 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12583 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12584 Usually this means the macro was only invoked conditionally." >&5
12585 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12586 Usually this means the macro was only invoked conditionally." >&2;}
12587 { (exit 1); exit 1; }; }
12588 fi
12589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12590 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12591 Usually this means the macro was only invoked conditionally." >&5
12592 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12593 Usually this means the macro was only invoked conditionally." >&2;}
12594 { (exit 1); exit 1; }; }
12595 fi
12596 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
12597 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
12598 Usually this means the macro was only invoked conditionally." >&5
12599 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
12600 Usually this means the macro was only invoked conditionally." >&2;}
12601 { (exit 1); exit 1; }; }
12602 fi
12603 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
12604 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
12605 Usually this means the macro was only invoked conditionally." >&5
12606 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
12607 Usually this means the macro was only invoked conditionally." >&2;}
12608 { (exit 1); exit 1; }; }
12609 fi
12610 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
12611 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
12612 Usually this means the macro was only invoked conditionally." >&5
12613 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
12614 Usually this means the macro was only invoked conditionally." >&2;}
12615 { (exit 1); exit 1; }; }
12616 fi
12617 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
12618 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
12619 Usually this means the macro was only invoked conditionally." >&5
12620 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
12621 Usually this means the macro was only invoked conditionally." >&2;}
12622 { (exit 1); exit 1; }; }
12623 fi
12624 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
12625 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
12626 Usually this means the macro was only invoked conditionally." >&5
12627 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
12628 Usually this means the macro was only invoked conditionally." >&2;}
12629 { (exit 1); exit 1; }; }
12630 fi
12631 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
12632 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
12633 Usually this means the macro was only invoked conditionally." >&5
12634 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
12635 Usually this means the macro was only invoked conditionally." >&2;}
12636 { (exit 1); exit 1; }; }
12637 fi
12638 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
12639 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
12640 Usually this means the macro was only invoked conditionally." >&5
12641 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
12642 Usually this means the macro was only invoked conditionally." >&2;}
12643 { (exit 1); exit 1; }; }
12644 fi
12645 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
12646 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
12647 Usually this means the macro was only invoked conditionally." >&5
12648 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
12649 Usually this means the macro was only invoked conditionally." >&2;}
12650 { (exit 1); exit 1; }; }
12651 fi
12652 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
12653 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
12654 Usually this means the macro was only invoked conditionally." >&5
12655 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
12656 Usually this means the macro was only invoked conditionally." >&2;}
12657 { (exit 1); exit 1; }; }
12658 fi
12659 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
12660 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
12661 Usually this means the macro was only invoked conditionally." >&5
12662 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
12663 Usually this means the macro was only invoked conditionally." >&2;}
12664 { (exit 1); exit 1; }; }
12665 fi
12666 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
12667 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
12668 Usually this means the macro was only invoked conditionally." >&5
12669 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
12670 Usually this means the macro was only invoked conditionally." >&2;}
12671 { (exit 1); exit 1; }; }
12672 fi
12673 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
12674 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
12675 Usually this means the macro was only invoked conditionally." >&5
12676 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
12677 Usually this means the macro was only invoked conditionally." >&2;}
12678 { (exit 1); exit 1; }; }
12679 fi
12680 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
12681 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
12682 Usually this means the macro was only invoked conditionally." >&5
12683 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
12684 Usually this means the macro was only invoked conditionally." >&2;}
12685 { (exit 1); exit 1; }; }
12686 fi
12687 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
12688 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
12689 Usually this means the macro was only invoked conditionally." >&5
12690 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
12691 Usually this means the macro was only invoked conditionally." >&2;}
12692 { (exit 1); exit 1; }; }
12693 fi
12694 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
12695 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
12696 Usually this means the macro was only invoked conditionally." >&5
12697 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
12698 Usually this means the macro was only invoked conditionally." >&2;}
12699 { (exit 1); exit 1; }; }
12700 fi
12701 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
12702 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
12703 Usually this means the macro was only invoked conditionally." >&5
12704 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
12705 Usually this means the macro was only invoked conditionally." >&2;}
12706 { (exit 1); exit 1; }; }
12707 fi
12708 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
12709 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
12710 Usually this means the macro was only invoked conditionally." >&5
12711 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
12712 Usually this means the macro was only invoked conditionally." >&2;}
12713 { (exit 1); exit 1; }; }
12714 fi
12716 : ${CONFIG_STATUS=./config.status}
12717 ac_write_fail=0
12718 ac_clean_files_save=$ac_clean_files
12719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12720 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12721 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12722 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12723 #! $SHELL
12724 # Generated by $as_me.
12725 # Run this file to recreate the current configuration.
12726 # Compiler output produced by configure, useful for debugging
12727 # configure, is in config.log if it exists.
12729 debug=false
12730 ac_cs_recheck=false
12731 ac_cs_silent=false
12732 SHELL=\${CONFIG_SHELL-$SHELL}
12733 _ACEOF
12735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12736 ## --------------------- ##
12737 ## M4sh Initialization. ##
12738 ## --------------------- ##
12740 # Be more Bourne compatible
12741 DUALCASE=1; export DUALCASE # for MKS sh
12742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12743 emulate sh
12744 NULLCMD=:
12745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12746 # is contrary to our usage. Disable this feature.
12747 alias -g '${1+"$@"}'='"$@"'
12748 setopt NO_GLOB_SUBST
12749 else
12750 case `(set -o) 2>/dev/null` in
12751 *posix*) set -o posix ;;
12752 esac
12754 fi
12759 # PATH needs CR
12760 # Avoid depending upon Character Ranges.
12761 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12762 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12763 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12764 as_cr_digits='0123456789'
12765 as_cr_alnum=$as_cr_Letters$as_cr_digits
12767 as_nl='
12768 '
12769 export as_nl
12770 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12771 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12774 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12775 as_echo='printf %s\n'
12776 as_echo_n='printf %s'
12777 else
12778 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12779 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12780 as_echo_n='/usr/ucb/echo -n'
12781 else
12782 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12783 as_echo_n_body='eval
12784 arg=$1;
12785 case $arg in
12786 *"$as_nl"*)
12787 expr "X$arg" : "X\\(.*\\)$as_nl";
12788 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12789 esac;
12790 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12791 '
12792 export as_echo_n_body
12793 as_echo_n='sh -c $as_echo_n_body as_echo'
12794 fi
12795 export as_echo_body
12796 as_echo='sh -c $as_echo_body as_echo'
12797 fi
12799 # The user is always right.
12800 if test "${PATH_SEPARATOR+set}" != set; then
12801 PATH_SEPARATOR=:
12802 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12803 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12804 PATH_SEPARATOR=';'
12805 }
12806 fi
12808 # Support unset when possible.
12809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12810 as_unset=unset
12811 else
12812 as_unset=false
12813 fi
12816 # IFS
12817 # We need space, tab and new line, in precisely that order. Quoting is
12818 # there to prevent editors from complaining about space-tab.
12819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12820 # splitting by setting IFS to empty value.)
12821 IFS=" "" $as_nl"
12823 # Find who we are. Look in the path if we contain no directory separator.
12824 case $0 in
12825 *[\\/]* ) as_myself=$0 ;;
12826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12832 done
12833 IFS=$as_save_IFS
12835 ;;
12836 esac
12837 # We did not find ourselves, most probably we were run as `sh COMMAND'
12838 # in which case we are not to be found in the path.
12839 if test "x$as_myself" = x; then
12840 as_myself=$0
12841 fi
12842 if test ! -f "$as_myself"; then
12843 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12844 { (exit 1); exit 1; }
12845 fi
12847 # Work around bugs in pre-3.0 UWIN ksh.
12848 for as_var in ENV MAIL MAILPATH
12849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12850 done
12851 PS1='$ '
12852 PS2='> '
12853 PS4='+ '
12855 # NLS nuisances.
12856 LC_ALL=C
12857 export LC_ALL
12858 LANGUAGE=C
12859 export LANGUAGE
12861 # Required to use basename.
12862 if expr a : '\(a\)' >/dev/null 2>&1 &&
12863 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12864 as_expr=expr
12865 else
12866 as_expr=false
12867 fi
12869 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12870 as_basename=basename
12871 else
12872 as_basename=false
12873 fi
12876 # Name of the executable.
12877 as_me=`$as_basename -- "$0" ||
12878 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12879 X"$0" : 'X\(//\)$' \| \
12880 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12881 $as_echo X/"$0" |
12882 sed '/^.*\/\([^/][^/]*\)\/*$/{
12883 s//\1/
12884 q
12885 }
12886 /^X\/\(\/\/\)$/{
12887 s//\1/
12888 q
12889 }
12890 /^X\/\(\/\).*/{
12891 s//\1/
12892 q
12893 }
12894 s/.*/./; q'`
12896 # CDPATH.
12897 $as_unset CDPATH
12901 as_lineno_1=$LINENO
12902 as_lineno_2=$LINENO
12903 test "x$as_lineno_1" != "x$as_lineno_2" &&
12904 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12906 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12907 # uniformly replaced by the line number. The first 'sed' inserts a
12908 # line-number line after each line using $LINENO; the second 'sed'
12909 # does the real work. The second script uses 'N' to pair each
12910 # line-number line with the line containing $LINENO, and appends
12911 # trailing '-' during substitution so that $LINENO is not a special
12912 # case at line end.
12913 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12914 # scripts with optimization help from Paolo Bonzini. Blame Lee
12915 # E. McMahon (1931-1989) for sed's syntax. :-)
12916 sed -n '
12917 p
12918 /[$]LINENO/=
12919 ' <$as_myself |
12920 sed '
12921 s/[$]LINENO.*/&-/
12922 t lineno
12923 b
12924 :lineno
12925 N
12926 :loop
12927 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12928 t loop
12929 s/-\n.*//
12930 ' >$as_me.lineno &&
12931 chmod +x "$as_me.lineno" ||
12932 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12933 { (exit 1); exit 1; }; }
12935 # Don't try to exec as it changes $[0], causing all sort of problems
12936 # (the dirname of $[0] is not the place where we might find the
12937 # original and so on. Autoconf is especially sensitive to this).
12938 . "./$as_me.lineno"
12939 # Exit status is that of the last command.
12940 exit
12941 }
12944 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12945 as_dirname=dirname
12946 else
12947 as_dirname=false
12948 fi
12950 ECHO_C= ECHO_N= ECHO_T=
12951 case `echo -n x` in
12952 -n*)
12953 case `echo 'x\c'` in
12954 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12955 *) ECHO_C='\c';;
12956 esac;;
12957 *)
12958 ECHO_N='-n';;
12959 esac
12960 if expr a : '\(a\)' >/dev/null 2>&1 &&
12961 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12962 as_expr=expr
12963 else
12964 as_expr=false
12965 fi
12967 rm -f conf$$ conf$$.exe conf$$.file
12968 if test -d conf$$.dir; then
12969 rm -f conf$$.dir/conf$$.file
12970 else
12971 rm -f conf$$.dir
12972 mkdir conf$$.dir 2>/dev/null
12973 fi
12974 if (echo >conf$$.file) 2>/dev/null; then
12975 if ln -s conf$$.file conf$$ 2>/dev/null; then
12976 as_ln_s='ln -s'
12977 # ... but there are two gotchas:
12978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12980 # In both cases, we have to default to `cp -p'.
12981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12982 as_ln_s='cp -p'
12983 elif ln conf$$.file conf$$ 2>/dev/null; then
12984 as_ln_s=ln
12985 else
12986 as_ln_s='cp -p'
12987 fi
12988 else
12989 as_ln_s='cp -p'
12990 fi
12991 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12992 rmdir conf$$.dir 2>/dev/null
12994 if mkdir -p . 2>/dev/null; then
12995 as_mkdir_p=:
12996 else
12997 test -d ./-p && rmdir ./-p
12998 as_mkdir_p=false
12999 fi
13001 if test -x / >/dev/null 2>&1; then
13002 as_test_x='test -x'
13003 else
13004 if ls -dL / >/dev/null 2>&1; then
13005 as_ls_L_option=L
13006 else
13007 as_ls_L_option=
13008 fi
13009 as_test_x='
13010 eval sh -c '\''
13011 if test -d "$1"; then
13012 test -d "$1/.";
13013 else
13014 case $1 in
13015 -*)set "./$1";;
13016 esac;
13017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13018 ???[sx]*):;;*)false;;esac;fi
13019 '\'' sh
13020 '
13021 fi
13022 as_executable_p=$as_test_x
13024 # Sed expression to map a string onto a valid CPP name.
13025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13027 # Sed expression to map a string onto a valid variable name.
13028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13031 exec 6>&1
13033 # Save the log message, to keep $[0] and so on meaningful, and to
13034 # report actual input values of CONFIG_FILES etc. instead of their
13035 # values after options handling.
13036 ac_log="
13037 This file was extended by $as_me, which was
13038 generated by GNU Autoconf 2.62. Invocation command line was
13040 CONFIG_FILES = $CONFIG_FILES
13041 CONFIG_HEADERS = $CONFIG_HEADERS
13042 CONFIG_LINKS = $CONFIG_LINKS
13043 CONFIG_COMMANDS = $CONFIG_COMMANDS
13044 $ $0 $@
13046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13047 "
13049 _ACEOF
13051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13052 # Files that config.status was made for.
13053 config_files="$ac_config_files"
13054 config_headers="$ac_config_headers"
13055 config_commands="$ac_config_commands"
13057 _ACEOF
13059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13060 ac_cs_usage="\
13061 \`$as_me' instantiates files from templates according to the
13062 current configuration.
13064 Usage: $0 [OPTIONS] [FILE]...
13066 -h, --help print this help, then exit
13067 -V, --version print version number and configuration settings, then exit
13068 -q, --quiet do not print progress messages
13069 -d, --debug don't remove temporary files
13070 --recheck update $as_me by reconfiguring in the same conditions
13071 --file=FILE[:TEMPLATE]
13072 instantiate the configuration file FILE
13073 --header=FILE[:TEMPLATE]
13074 instantiate the configuration header FILE
13076 Configuration files:
13077 $config_files
13079 Configuration headers:
13080 $config_headers
13082 Configuration commands:
13083 $config_commands
13085 Report bugs to <bug-autoconf@gnu.org>."
13087 _ACEOF
13088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13089 ac_cs_version="\\
13090 config.status
13091 configured by $0, generated by GNU Autoconf 2.62,
13092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13094 Copyright (C) 2008 Free Software Foundation, Inc.
13095 This config.status script is free software; the Free Software Foundation
13096 gives unlimited permission to copy, distribute and modify it."
13098 ac_pwd='$ac_pwd'
13099 srcdir='$srcdir'
13100 INSTALL='$INSTALL'
13101 AWK='$AWK'
13102 test -n "\$AWK" || AWK=awk
13103 _ACEOF
13105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13106 # The default lists apply if the user does not specify any file.
13107 ac_need_defaults=:
13108 while test $# != 0
13109 do
13110 case $1 in
13111 --*=*)
13112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13113 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13114 ac_shift=:
13115 ;;
13116 *)
13117 ac_option=$1
13118 ac_optarg=$2
13119 ac_shift=shift
13120 ;;
13121 esac
13123 case $ac_option in
13124 # Handling of the options.
13125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13126 ac_cs_recheck=: ;;
13127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13128 $as_echo "$ac_cs_version"; exit ;;
13129 --debug | --debu | --deb | --de | --d | -d )
13130 debug=: ;;
13131 --file | --fil | --fi | --f )
13132 $ac_shift
13133 case $ac_optarg in
13134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13135 esac
13136 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13137 ac_need_defaults=false;;
13138 --header | --heade | --head | --hea )
13139 $ac_shift
13140 case $ac_optarg in
13141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13142 esac
13143 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13144 ac_need_defaults=false;;
13145 --he | --h)
13146 # Conflict between --help and --header
13147 { $as_echo "$as_me: error: ambiguous option: $1
13148 Try \`$0 --help' for more information." >&2
13149 { (exit 1); exit 1; }; };;
13150 --help | --hel | -h )
13151 $as_echo "$ac_cs_usage"; exit ;;
13152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13154 ac_cs_silent=: ;;
13156 # This is an error.
13157 -*) { $as_echo "$as_me: error: unrecognized option: $1
13158 Try \`$0 --help' for more information." >&2
13159 { (exit 1); exit 1; }; } ;;
13161 *) ac_config_targets="$ac_config_targets $1"
13162 ac_need_defaults=false ;;
13164 esac
13165 shift
13166 done
13168 ac_configure_extra_args=
13170 if $ac_cs_silent; then
13171 exec 6>/dev/null
13172 ac_configure_extra_args="$ac_configure_extra_args --silent"
13173 fi
13175 _ACEOF
13176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13177 if \$ac_cs_recheck; then
13178 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13179 shift
13180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13181 CONFIG_SHELL='$SHELL'
13182 export CONFIG_SHELL
13183 exec "\$@"
13184 fi
13186 _ACEOF
13187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188 exec 5>>config.log
13189 {
13190 echo
13191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13192 ## Running $as_me. ##
13193 _ASBOX
13194 $as_echo "$ac_log"
13195 } >&5
13197 _ACEOF
13198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13199 #
13200 # INIT-COMMANDS
13201 #
13202 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13205 _ACEOF
13207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13209 # Handling of arguments.
13210 for ac_config_target in $ac_config_targets
13211 do
13212 case $ac_config_target in
13213 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13214 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13215 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13217 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13218 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13219 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13220 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
13222 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13223 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13224 { (exit 1); exit 1; }; };;
13225 esac
13226 done
13229 # If the user did not use the arguments to specify the items to instantiate,
13230 # then the envvar interface is used. Set only those that are not.
13231 # We use the long form for the default assignment because of an extremely
13232 # bizarre bug on SunOS 4.1.3.
13233 if $ac_need_defaults; then
13234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13237 fi
13239 # Have a temporary directory for convenience. Make it in the build tree
13240 # simply because there is no reason against having it here, and in addition,
13241 # creating and moving files from /tmp can sometimes cause problems.
13242 # Hook for its removal unless debugging.
13243 # Note that there is a small window in which the directory will not be cleaned:
13244 # after its creation but before its name has been assigned to `$tmp'.
13245 $debug ||
13246 {
13247 tmp=
13248 trap 'exit_status=$?
13249 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13250 ' 0
13251 trap '{ (exit 1); exit 1; }' 1 2 13 15
13252 }
13253 # Create a (secure) tmp directory for tmp files.
13255 {
13256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13257 test -n "$tmp" && test -d "$tmp"
13258 } ||
13259 {
13260 tmp=./conf$$-$RANDOM
13261 (umask 077 && mkdir "$tmp")
13262 } ||
13263 {
13264 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13265 { (exit 1); exit 1; }
13266 }
13268 # Set up the scripts for CONFIG_FILES section.
13269 # No need to generate them if there are no CONFIG_FILES.
13270 # This happens for instance with `./config.status config.h'.
13271 if test -n "$CONFIG_FILES"; then
13274 ac_cr='
13275 '
13276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13278 ac_cs_awk_cr='\\r'
13279 else
13280 ac_cs_awk_cr=$ac_cr
13281 fi
13283 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13284 _ACEOF
13287 {
13288 echo "cat >conf$$subs.awk <<_ACEOF" &&
13289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13290 echo "_ACEOF"
13291 } >conf$$subs.sh ||
13292 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13293 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13294 { (exit 1); exit 1; }; }
13295 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13296 ac_delim='%!_!# '
13297 for ac_last_try in false false false false false :; do
13298 . ./conf$$subs.sh ||
13299 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13300 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13301 { (exit 1); exit 1; }; }
13303 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13304 break
13305 elif $ac_last_try; then
13306 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13307 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13308 { (exit 1); exit 1; }; }
13309 else
13310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13311 fi
13312 done
13313 rm -f conf$$subs.sh
13315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13316 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13317 _ACEOF
13318 sed -n '
13319 h
13320 s/^/S["/; s/!.*/"]=/
13321 p
13322 g
13323 s/^[^!]*!//
13324 :repl
13325 t repl
13326 s/'"$ac_delim"'$//
13327 t delim
13328 :nl
13329 h
13330 s/\(.\{148\}\).*/\1/
13331 t more1
13332 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13333 p
13334 n
13335 b repl
13336 :more1
13337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13338 p
13339 g
13340 s/.\{148\}//
13341 t nl
13342 :delim
13343 h
13344 s/\(.\{148\}\).*/\1/
13345 t more2
13346 s/["\\]/\\&/g; s/^/"/; s/$/"/
13347 p
13348 b
13349 :more2
13350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13351 p
13352 g
13353 s/.\{148\}//
13354 t delim
13355 ' <conf$$subs.awk | sed '
13356 /^[^""]/{
13357 N
13358 s/\n//
13359 }
13360 ' >>$CONFIG_STATUS || ac_write_fail=1
13361 rm -f conf$$subs.awk
13362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13363 _ACAWK
13364 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13365 for (key in S) S_is_set[key] = 1
13366 FS = ""
13368 }
13369 {
13370 line = $ 0
13371 nfields = split(line, field, "@")
13372 substed = 0
13373 len = length(field[1])
13374 for (i = 2; i < nfields; i++) {
13375 key = field[i]
13376 keylen = length(key)
13377 if (S_is_set[key]) {
13378 value = S[key]
13379 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13380 len += length(value) + length(field[++i])
13381 substed = 1
13382 } else
13383 len += 1 + keylen
13384 }
13386 print line
13387 }
13389 _ACAWK
13390 _ACEOF
13391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13392 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13393 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13394 else
13395 cat
13396 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13397 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13398 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13399 { (exit 1); exit 1; }; }
13400 _ACEOF
13402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13404 # trailing colons and then remove the whole line if VPATH becomes empty
13405 # (actually we leave an empty line to preserve line numbers).
13406 if test "x$srcdir" = x.; then
13407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13408 s/:*\$(srcdir):*/:/
13409 s/:*\${srcdir}:*/:/
13410 s/:*@srcdir@:*/:/
13411 s/^\([^=]*=[ ]*\):*/\1/
13412 s/:*$//
13413 s/^[^=]*=[ ]*$//
13414 }'
13415 fi
13417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13418 fi # test -n "$CONFIG_FILES"
13420 # Set up the scripts for CONFIG_HEADERS section.
13421 # No need to generate them if there are no CONFIG_HEADERS.
13422 # This happens for instance with `./config.status Makefile'.
13423 if test -n "$CONFIG_HEADERS"; then
13424 cat >"$tmp/defines.awk" <<\_ACAWK ||
13425 BEGIN {
13426 _ACEOF
13428 # Transform confdefs.h into an awk script `defines.awk', embedded as
13429 # here-document in config.status, that substitutes the proper values into
13430 # config.h.in to produce config.h.
13432 # Create a delimiter string that does not exist in confdefs.h, to ease
13433 # handling of long lines.
13434 ac_delim='%!_!# '
13435 for ac_last_try in false false :; do
13436 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13437 if test -z "$ac_t"; then
13438 break
13439 elif $ac_last_try; then
13440 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13441 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13442 { (exit 1); exit 1; }; }
13443 else
13444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13445 fi
13446 done
13448 # For the awk script, D is an array of macro values keyed by name,
13449 # likewise P contains macro parameters if any. Preserve backslash
13450 # newline sequences.
13452 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13453 sed -n '
13454 s/.\{148\}/&'"$ac_delim"'/g
13455 t rset
13456 :rset
13457 s/^[ ]*#[ ]*define[ ][ ]*/ /
13458 t def
13459 d
13460 :def
13461 s/\\$//
13462 t bsnl
13463 s/["\\]/\\&/g
13464 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13465 D["\1"]=" \3"/p
13466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13467 d
13468 :bsnl
13469 s/["\\]/\\&/g
13470 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13471 D["\1"]=" \3\\\\\\n"\\/p
13472 t cont
13473 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13474 t cont
13475 d
13476 :cont
13477 n
13478 s/.\{148\}/&'"$ac_delim"'/g
13479 t clear
13480 :clear
13481 s/\\$//
13482 t bsnlc
13483 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13484 d
13485 :bsnlc
13486 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13487 b cont
13488 ' <confdefs.h | sed '
13489 s/'"$ac_delim"'/"\\\
13490 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13493 for (key in D) D_is_set[key] = 1
13494 FS = ""
13495 }
13496 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13497 line = \$ 0
13498 split(line, arg, " ")
13499 if (arg[1] == "#") {
13500 defundef = arg[2]
13501 mac1 = arg[3]
13502 } else {
13503 defundef = substr(arg[1], 2)
13504 mac1 = arg[2]
13505 }
13506 split(mac1, mac2, "(") #)
13507 macro = mac2[1]
13508 if (D_is_set[macro]) {
13509 # Preserve the white space surrounding the "#".
13510 prefix = substr(line, 1, index(line, defundef) - 1)
13511 print prefix "define", macro P[macro] D[macro]
13512 next
13513 } else {
13514 # Replace #undef with comments. This is necessary, for example,
13515 # in the case of _POSIX_SOURCE, which is predefined and required
13516 # on some systems where configure will not decide to define it.
13517 if (defundef == "undef") {
13518 print "/*", line, "*/"
13519 next
13520 }
13521 }
13522 }
13523 { print }
13524 _ACAWK
13525 _ACEOF
13526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13527 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13528 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13529 { (exit 1); exit 1; }; }
13530 fi # test -n "$CONFIG_HEADERS"
13533 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13534 shift
13535 for ac_tag
13536 do
13537 case $ac_tag in
13538 :[FHLC]) ac_mode=$ac_tag; continue;;
13539 esac
13540 case $ac_mode$ac_tag in
13541 :[FHL]*:*);;
13542 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13543 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13544 { (exit 1); exit 1; }; };;
13545 :[FH]-) ac_tag=-:-;;
13546 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13547 esac
13548 ac_save_IFS=$IFS
13549 IFS=:
13550 set x $ac_tag
13551 IFS=$ac_save_IFS
13552 shift
13553 ac_file=$1
13554 shift
13556 case $ac_mode in
13557 :L) ac_source=$1;;
13558 :[FH])
13559 ac_file_inputs=
13560 for ac_f
13561 do
13562 case $ac_f in
13563 -) ac_f="$tmp/stdin";;
13564 *) # Look for the file first in the build tree, then in the source tree
13565 # (if the path is not absolute). The absolute path cannot be DOS-style,
13566 # because $ac_f cannot contain `:'.
13567 test -f "$ac_f" ||
13568 case $ac_f in
13569 [\\/$]*) false;;
13570 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13571 esac ||
13572 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13573 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13574 { (exit 1); exit 1; }; };;
13575 esac
13576 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13577 ac_file_inputs="$ac_file_inputs '$ac_f'"
13578 done
13580 # Let's still pretend it is `configure' which instantiates (i.e., don't
13581 # use $as_me), people would be surprised to read:
13582 # /* config.h. Generated by config.status. */
13583 configure_input='Generated from '`
13584 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13585 `' by configure.'
13586 if test x"$ac_file" != x-; then
13587 configure_input="$ac_file. $configure_input"
13588 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13589 $as_echo "$as_me: creating $ac_file" >&6;}
13590 fi
13591 # Neutralize special characters interpreted by sed in replacement strings.
13592 case $configure_input in #(
13593 *\&* | *\|* | *\\* )
13594 ac_sed_conf_input=`$as_echo "$configure_input" |
13595 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13596 *) ac_sed_conf_input=$configure_input;;
13597 esac
13599 case $ac_tag in
13600 *:-:* | *:-) cat >"$tmp/stdin" \
13601 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13602 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13603 { (exit 1); exit 1; }; } ;;
13604 esac
13605 ;;
13606 esac
13608 ac_dir=`$as_dirname -- "$ac_file" ||
13609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13610 X"$ac_file" : 'X\(//\)[^/]' \| \
13611 X"$ac_file" : 'X\(//\)$' \| \
13612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13613 $as_echo X"$ac_file" |
13614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13615 s//\1/
13616 q
13617 }
13618 /^X\(\/\/\)[^/].*/{
13619 s//\1/
13620 q
13621 }
13622 /^X\(\/\/\)$/{
13623 s//\1/
13624 q
13625 }
13626 /^X\(\/\).*/{
13627 s//\1/
13628 q
13629 }
13630 s/.*/./; q'`
13631 { as_dir="$ac_dir"
13632 case $as_dir in #(
13633 -*) as_dir=./$as_dir;;
13634 esac
13635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13636 as_dirs=
13637 while :; do
13638 case $as_dir in #(
13639 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13640 *) as_qdir=$as_dir;;
13641 esac
13642 as_dirs="'$as_qdir' $as_dirs"
13643 as_dir=`$as_dirname -- "$as_dir" ||
13644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13645 X"$as_dir" : 'X\(//\)[^/]' \| \
13646 X"$as_dir" : 'X\(//\)$' \| \
13647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13648 $as_echo X"$as_dir" |
13649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13650 s//\1/
13651 q
13652 }
13653 /^X\(\/\/\)[^/].*/{
13654 s//\1/
13655 q
13656 }
13657 /^X\(\/\/\)$/{
13658 s//\1/
13659 q
13660 }
13661 /^X\(\/\).*/{
13662 s//\1/
13663 q
13664 }
13665 s/.*/./; q'`
13666 test -d "$as_dir" && break
13667 done
13668 test -z "$as_dirs" || eval "mkdir $as_dirs"
13669 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13670 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13671 { (exit 1); exit 1; }; }; }
13672 ac_builddir=.
13674 case "$ac_dir" in
13675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13676 *)
13677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13678 # A ".." for each directory in $ac_dir_suffix.
13679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13680 case $ac_top_builddir_sub in
13681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13683 esac ;;
13684 esac
13685 ac_abs_top_builddir=$ac_pwd
13686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13687 # for backward compatibility:
13688 ac_top_builddir=$ac_top_build_prefix
13690 case $srcdir in
13691 .) # We are building in place.
13692 ac_srcdir=.
13693 ac_top_srcdir=$ac_top_builddir_sub
13694 ac_abs_top_srcdir=$ac_pwd ;;
13695 [\\/]* | ?:[\\/]* ) # Absolute name.
13696 ac_srcdir=$srcdir$ac_dir_suffix;
13697 ac_top_srcdir=$srcdir
13698 ac_abs_top_srcdir=$srcdir ;;
13699 *) # Relative name.
13700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13701 ac_top_srcdir=$ac_top_build_prefix$srcdir
13702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13703 esac
13704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13707 case $ac_mode in
13708 :F)
13709 #
13710 # CONFIG_FILE
13711 #
13713 case $INSTALL in
13714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13716 esac
13717 _ACEOF
13719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13720 # If the template does not know about datarootdir, expand it.
13721 # FIXME: This hack should be removed a few years after 2.60.
13722 ac_datarootdir_hack=; ac_datarootdir_seen=
13724 ac_sed_dataroot='
13725 /datarootdir/ {
13726 p
13727 q
13728 }
13729 /@datadir@/p
13730 /@docdir@/p
13731 /@infodir@/p
13732 /@localedir@/p
13733 /@mandir@/p
13734 '
13735 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13736 *datarootdir*) ac_datarootdir_seen=yes;;
13737 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13738 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13739 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13740 _ACEOF
13741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13742 ac_datarootdir_hack='
13743 s&@datadir@&$datadir&g
13744 s&@docdir@&$docdir&g
13745 s&@infodir@&$infodir&g
13746 s&@localedir@&$localedir&g
13747 s&@mandir@&$mandir&g
13748 s&\\\${datarootdir}&$datarootdir&g' ;;
13749 esac
13750 _ACEOF
13752 # Neutralize VPATH when `$srcdir' = `.'.
13753 # Shell code in configure.ac might set extrasub.
13754 # FIXME: do we really want to maintain this feature?
13755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13756 ac_sed_extra="$ac_vpsub
13757 $extrasub
13758 _ACEOF
13759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13760 :t
13761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13762 s|@configure_input@|$ac_sed_conf_input|;t t
13763 s&@top_builddir@&$ac_top_builddir_sub&;t t
13764 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13765 s&@srcdir@&$ac_srcdir&;t t
13766 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13767 s&@top_srcdir@&$ac_top_srcdir&;t t
13768 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13769 s&@builddir@&$ac_builddir&;t t
13770 s&@abs_builddir@&$ac_abs_builddir&;t t
13771 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13772 s&@INSTALL@&$ac_INSTALL&;t t
13773 $ac_datarootdir_hack
13774 "
13775 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13776 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13777 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13778 { (exit 1); exit 1; }; }
13780 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13781 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13782 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13783 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13784 which seems to be undefined. Please make sure it is defined." >&5
13785 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13786 which seems to be undefined. Please make sure it is defined." >&2;}
13788 rm -f "$tmp/stdin"
13789 case $ac_file in
13790 -) cat "$tmp/out" && rm -f "$tmp/out";;
13791 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13792 esac \
13793 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13794 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13795 { (exit 1); exit 1; }; }
13796 ;;
13797 :H)
13798 #
13799 # CONFIG_HEADER
13800 #
13801 if test x"$ac_file" != x-; then
13802 {
13803 $as_echo "/* $configure_input */" \
13804 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13805 } >"$tmp/config.h" \
13806 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13807 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13808 { (exit 1); exit 1; }; }
13809 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13810 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13811 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13812 else
13813 rm -f "$ac_file"
13814 mv "$tmp/config.h" "$ac_file" \
13815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13817 { (exit 1); exit 1; }; }
13818 fi
13819 else
13820 $as_echo "/* $configure_input */" \
13821 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13822 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13823 $as_echo "$as_me: error: could not create -" >&2;}
13824 { (exit 1); exit 1; }; }
13825 fi
13826 # Compute "$ac_file"'s index in $config_headers.
13827 _am_stamp_count=1
13828 for _am_header in $config_headers :; do
13829 case $_am_header in
13830 "$ac_file" | "$ac_file":* )
13831 break ;;
13832 * )
13833 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13834 esac
13835 done
13836 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
13837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13838 X"$ac_file" : 'X\(//\)[^/]' \| \
13839 X"$ac_file" : 'X\(//\)$' \| \
13840 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13841 $as_echo X"$ac_file" |
13842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13843 s//\1/
13844 q
13845 }
13846 /^X\(\/\/\)[^/].*/{
13847 s//\1/
13848 q
13849 }
13850 /^X\(\/\/\)$/{
13851 s//\1/
13852 q
13853 }
13854 /^X\(\/\).*/{
13855 s//\1/
13856 q
13857 }
13858 s/.*/./; q'`/stamp-h$_am_stamp_count
13859 ;;
13861 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13862 $as_echo "$as_me: executing $ac_file commands" >&6;}
13863 ;;
13864 esac
13867 case $ac_file$ac_mode in
13868 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13869 # Strip MF so we end up with the name of the file.
13870 mf=`echo "$mf" | sed -e 's/:.*$//'`
13871 # Check whether this is an Automake generated Makefile or not.
13872 # We used to match only the files named `Makefile.in', but
13873 # some people rename them; so instead we look at the file content.
13874 # Grep'ing the first line is not enough: some people post-process
13875 # each Makefile.in and add a new line on top of each file to say so.
13876 # So let's grep whole file.
13877 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13878 dirpart=`$as_dirname -- "$mf" ||
13879 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13880 X"$mf" : 'X\(//\)[^/]' \| \
13881 X"$mf" : 'X\(//\)$' \| \
13882 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13883 $as_echo X"$mf" |
13884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13885 s//\1/
13886 q
13887 }
13888 /^X\(\/\/\)[^/].*/{
13889 s//\1/
13890 q
13891 }
13892 /^X\(\/\/\)$/{
13893 s//\1/
13894 q
13895 }
13896 /^X\(\/\).*/{
13897 s//\1/
13898 q
13899 }
13900 s/.*/./; q'`
13901 else
13902 continue
13903 fi
13904 # Extract the definition of DEPDIR, am__include, and am__quote
13905 # from the Makefile without running `make'.
13906 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13907 test -z "$DEPDIR" && continue
13908 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13909 test -z "am__include" && continue
13910 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13911 # When using ansi2knr, U may be empty or an underscore; expand it
13912 U=`sed -n 's/^U = //p' < "$mf"`
13913 # Find all dependency output files, they are included files with
13914 # $(DEPDIR) in their names. We invoke sed twice because it is the
13915 # simplest approach to changing $(DEPDIR) to its actual value in the
13916 # expansion.
13917 for file in `sed -n "
13918 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13919 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13920 # Make sure the directory exists.
13921 test -f "$dirpart/$file" && continue
13922 fdir=`$as_dirname -- "$file" ||
13923 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13924 X"$file" : 'X\(//\)[^/]' \| \
13925 X"$file" : 'X\(//\)$' \| \
13926 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13927 $as_echo X"$file" |
13928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13929 s//\1/
13930 q
13931 }
13932 /^X\(\/\/\)[^/].*/{
13933 s//\1/
13934 q
13935 }
13936 /^X\(\/\/\)$/{
13937 s//\1/
13938 q
13939 }
13940 /^X\(\/\).*/{
13941 s//\1/
13942 q
13943 }
13944 s/.*/./; q'`
13945 { as_dir=$dirpart/$fdir
13946 case $as_dir in #(
13947 -*) as_dir=./$as_dir;;
13948 esac
13949 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13950 as_dirs=
13951 while :; do
13952 case $as_dir in #(
13953 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13954 *) as_qdir=$as_dir;;
13955 esac
13956 as_dirs="'$as_qdir' $as_dirs"
13957 as_dir=`$as_dirname -- "$as_dir" ||
13958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13959 X"$as_dir" : 'X\(//\)[^/]' \| \
13960 X"$as_dir" : 'X\(//\)$' \| \
13961 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13962 $as_echo X"$as_dir" |
13963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13964 s//\1/
13965 q
13966 }
13967 /^X\(\/\/\)[^/].*/{
13968 s//\1/
13969 q
13970 }
13971 /^X\(\/\/\)$/{
13972 s//\1/
13973 q
13974 }
13975 /^X\(\/\).*/{
13976 s//\1/
13977 q
13978 }
13979 s/.*/./; q'`
13980 test -d "$as_dir" && break
13981 done
13982 test -z "$as_dirs" || eval "mkdir $as_dirs"
13983 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13984 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13985 { (exit 1); exit 1; }; }; }
13986 # echo "creating $dirpart/$file"
13987 echo '# dummy' > "$dirpart/$file"
13988 done
13989 done
13990 ;;
13991 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
13992 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
13993 esac ;;
13995 esac
13996 done # for ac_tag
13999 { (exit 0); exit 0; }
14000 _ACEOF
14001 chmod +x $CONFIG_STATUS
14002 ac_clean_files=$ac_clean_files_save
14004 test $ac_write_fail = 0 ||
14005 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14006 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14007 { (exit 1); exit 1; }; }
14010 # configure is writing to config.log, and then calls config.status.
14011 # config.status does its own redirection, appending to config.log.
14012 # Unfortunately, on DOS this fails, as config.log is still kept open
14013 # by configure, so config.status won't be able to write to it; its
14014 # output is simply discarded. So we exec the FD to /dev/null,
14015 # effectively closing config.log, so it can be properly (re)opened and
14016 # appended to by config.status. When coming back to configure, we
14017 # need to make the FD available again.
14018 if test "$no_create" != yes; then
14019 ac_cs_success=:
14020 ac_config_status_args=
14021 test "$silent" = yes &&
14022 ac_config_status_args="$ac_config_status_args --quiet"
14023 exec 5>/dev/null
14024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14025 exec 5>>config.log
14026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14027 # would make configure fail if this is the last instruction.
14028 $ac_cs_success || { (exit 1); exit 1; }
14029 fi
14030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14031 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14032 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14033 fi
14035 { as_dir=test/sh4
14036 case $as_dir in #(
14037 -*) as_dir=./$as_dir;;
14038 esac
14039 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14040 as_dirs=
14041 while :; do
14042 case $as_dir in #(
14043 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14044 *) as_qdir=$as_dir;;
14045 esac
14046 as_dirs="'$as_qdir' $as_dirs"
14047 as_dir=`$as_dirname -- "$as_dir" ||
14048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14049 X"$as_dir" : 'X\(//\)[^/]' \| \
14050 X"$as_dir" : 'X\(//\)$' \| \
14051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14052 $as_echo X"$as_dir" |
14053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14054 s//\1/
14055 q
14056 }
14057 /^X\(\/\/\)[^/].*/{
14058 s//\1/
14059 q
14060 }
14061 /^X\(\/\/\)$/{
14062 s//\1/
14063 q
14064 }
14065 /^X\(\/\).*/{
14066 s//\1/
14067 q
14068 }
14069 s/.*/./; q'`
14070 test -d "$as_dir" && break
14071 done
14072 test -z "$as_dirs" || eval "mkdir $as_dirs"
14073 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14074 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14075 { (exit 1); exit 1; }; }; }
14078 echo
14079 echo "Configuration complete"
14080 echo
14082 if test "x$HAVE_GTK" = x; then
14083 if test "x$HAVE_COCOA" = x; then
14084 echo " User interface: none"
14085 else
14086 echo " User interface: Cocoa"
14087 fi
14088 else
14089 echo " User interface: GTK"
14090 fi
14092 if test "x$SH4_TRANSLATOR" = "x"; then
14093 echo " SH4 translator: None (emulation core only)"
14094 else
14095 echo " SH4 translator: $SH4_TRANSLATOR"
14096 fi
14098 if test "x$VIDEO_DRIVERS" = "x"; then
14099 echo " Video drivers: none (no supported GL found)"
14100 else
14101 echo " Video drivers: $VIDEO_DRIVERS"
14102 fi
14104 if test "x$AUDIO_DRIVERS" = "x"; then
14105 echo " Audio drivers: none (no supported output devices found)"
14106 else
14107 echo " Audio drivers: $AUDIO_DRIVERS"
14108 fi
14110 if test "x$CDROM_DRIVER" = "x"; then
14111 echo " CD-ROM driver: none (no supported cd-rom devices found)"
14112 else
14113 echo " CD-ROM driver: $CDROM_DRIVER"
14114 fi
.