filename | configure |
changeset | 1074:397d77b6e346 |
prev | 1066:ddffe9d2b332 |
next | 1097:d4807997e450 |
author | nkeynes |
date | Wed Dec 02 10:36:49 2009 +1000 (14 years ago) |
permissions | -rwxr-xr-x |
last change | Add missing SUBV instruction to the emulation core (translation core is ok), along with test cases. Thanks to D. Jeff Dionne for pointing this out. |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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='LTLIBOBJS
639 LIBOBJS
640 MKINSTALLDIRS
641 POSUB
642 POFILES
643 PO_IN_DATADIR_FALSE
644 PO_IN_DATADIR_TRUE
645 INTLLIBS
646 INSTOBJEXT
647 GMOFILES
648 DATADIRNAME
649 CATOBJEXT
650 CATALOGS
651 XGETTEXT
652 GMSGFMT
653 MSGFMT_OPTS
654 MSGFMT
655 USE_NLS
656 GETTEXT_PACKAGE
657 LXDREAM_LIBS
658 BUILD_ARMTEST_FALSE
659 BUILD_ARMTEST_TRUE
660 BUILD_SYSTEST_FALSE
661 BUILD_SYSTEST_TRUE
662 ARMOBJCOPY
663 ARMLD
664 ARMCC
665 SHOBJCOPY
666 SHLD
667 SHCC
668 INPUT_LIRC_FALSE
669 INPUT_LIRC_TRUE
670 JOY_LINUX_FALSE
671 JOY_LINUX_TRUE
672 CDROM_NONE_FALSE
673 CDROM_NONE_TRUE
674 CDROM_OSX_FALSE
675 CDROM_OSX_TRUE
676 CDROM_LINUX_FALSE
677 CDROM_LINUX_TRUE
678 AUDIO_ALSA_FALSE
679 AUDIO_ALSA_TRUE
680 ALSA_LIBS
681 ALSA_CFLAGS
682 AUDIO_ESOUND_FALSE
683 AUDIO_ESOUND_TRUE
684 ESOUND_LIBS
685 ESOUND_CFLAGS
686 AUDIO_PULSE_FALSE
687 AUDIO_PULSE_TRUE
688 PULSE_LIBS
689 PULSE_CFLAGS
690 AUDIO_SDL_FALSE
691 AUDIO_SDL_TRUE
692 SDL_LIBS
693 SDL_CFLAGS
694 AUDIO_OSX_FALSE
695 AUDIO_OSX_TRUE
696 BUILD_SH4X86_FALSE
697 BUILD_SH4X86_TRUE
698 VIDEO_NSGL_FALSE
699 VIDEO_NSGL_TRUE
700 VIDEO_GLX_FALSE
701 VIDEO_GLX_TRUE
702 VIDEO_OSMESA_FALSE
703 VIDEO_OSMESA_TRUE
704 GUI_GTK_FALSE
705 GUI_GTK_TRUE
706 GTK_LIBS
707 GTK_CFLAGS
708 GLIB_LIBS
709 GLIB_CFLAGS
710 LIBPNG_LIBS
711 LIBPNG_CFLAGS
712 PKG_CONFIG
713 LXDREAMCPPFLAGS
714 BUILD_SHARED_FALSE
715 BUILD_SHARED_TRUE
716 LXDREAMLDFLAGS
717 PLUGINLDFLAGS
718 PLUGINCFLAGS
719 SOEXT
720 GUI_COCOA_FALSE
721 GUI_COCOA_TRUE
722 POD2HTML
723 POD2MAN
724 am__fastdepOBJC_FALSE
725 am__fastdepOBJC_TRUE
726 OBJCDEPMODE
727 host_os
728 host_vendor
729 host_cpu
730 host
731 build_os
732 build_vendor
733 build_cpu
734 build
735 EGREP
736 GREP
737 CPP
738 CCASFLAGS
739 CCAS
740 SED
741 ac_ct_OBJC
742 OBJCFLAGS
743 OBJC
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 AMDEPBACKSLASH
748 AMDEP_FALSE
749 AMDEP_TRUE
750 am__quote
751 am__include
752 DEPDIR
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 MAINT
761 MAINTAINER_MODE_FALSE
762 MAINTAINER_MODE_TRUE
763 am__untar
764 am__tar
765 AMTAR
766 am__leading_dot
767 SET_MAKE
768 AWK
769 mkdir_p
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 INSTALL_DATA
782 INSTALL_SCRIPT
783 INSTALL_PROGRAM
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_maintainer_mode
825 enable_dependency_tracking
826 enable_strict_warn
827 enable_translator
828 enable_optimized
829 enable_shared
830 enable_profiled
831 enable_trace
832 enable_watch
833 enable_sh4stats
834 with_osmesa
835 with_gtk
836 with_esd
837 with_pulse
838 with_sdl
839 '
840 ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 OBJC
849 OBJCFLAGS
850 CCAS
851 CCASFLAGS
852 CPP
853 PKG_CONFIG
854 LIBPNG_CFLAGS
855 LIBPNG_LIBS
856 GLIB_CFLAGS
857 GLIB_LIBS
858 GTK_CFLAGS
859 GTK_LIBS
860 SDL_CFLAGS
861 SDL_LIBS
862 PULSE_CFLAGS
863 PULSE_LIBS
864 ESOUND_CFLAGS
865 ESOUND_LIBS
866 ALSA_CFLAGS
867 ALSA_LIBS'
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
918 ac_prev=
919 ac_dashdash=
920 for ac_option
921 do
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
925 ac_prev=
926 continue
927 fi
929 case $ac_option in
930 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 *) ac_optarg=yes ;;
932 esac
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
937 --)
938 ac_dashdash=yes ;;
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
957 --config-cache | -C)
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
977 { (exit 1); exit 1; }; }
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=\$ac_optarg ;;
1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018 | --exec | --exe | --ex)
1019 ac_prev=exec_prefix ;;
1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022 | --exec=* | --exe=* | --ex=*)
1023 exec_prefix=$ac_optarg ;;
1025 -gas | --gas | --ga | --g)
1026 # Obsolete; use --with-gas.
1027 with_gas=yes ;;
1029 -help | --help | --hel | --he | -h)
1030 ac_init_help=long ;;
1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032 ac_init_help=recursive ;;
1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034 ac_init_help=short ;;
1036 -host | --host | --hos | --ho)
1037 ac_prev=host_alias ;;
1038 -host=* | --host=* | --hos=* | --ho=*)
1039 host_alias=$ac_optarg ;;
1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 ac_prev=htmldir ;;
1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 | --ht=*)
1045 htmldir=$ac_optarg ;;
1047 -includedir | --includedir | --includedi | --included | --include \
1048 | --includ | --inclu | --incl | --inc)
1049 ac_prev=includedir ;;
1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051 | --includ=* | --inclu=* | --incl=* | --inc=*)
1052 includedir=$ac_optarg ;;
1054 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 ac_prev=infodir ;;
1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057 infodir=$ac_optarg ;;
1059 -libdir | --libdir | --libdi | --libd)
1060 ac_prev=libdir ;;
1061 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062 libdir=$ac_optarg ;;
1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065 | --libexe | --libex | --libe)
1066 ac_prev=libexecdir ;;
1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068 | --libexe=* | --libex=* | --libe=*)
1069 libexecdir=$ac_optarg ;;
1071 -localedir | --localedir | --localedi | --localed | --locale)
1072 ac_prev=localedir ;;
1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074 localedir=$ac_optarg ;;
1076 -localstatedir | --localstatedir | --localstatedi | --localstated \
1077 | --localstate | --localstat | --localsta | --localst | --locals)
1078 ac_prev=localstatedir ;;
1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081 localstatedir=$ac_optarg ;;
1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 ac_prev=mandir ;;
1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086 mandir=$ac_optarg ;;
1088 -nfp | --nfp | --nf)
1089 # Obsolete; use --without-fp.
1090 with_fp=no ;;
1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093 | --no-cr | --no-c | -n)
1094 no_create=yes ;;
1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 no_recursion=yes ;;
1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102 | --oldin | --oldi | --old | --ol | --o)
1103 ac_prev=oldincludedir ;;
1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107 oldincludedir=$ac_optarg ;;
1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 ac_prev=prefix ;;
1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112 prefix=$ac_optarg ;;
1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115 | --program-pre | --program-pr | --program-p)
1116 ac_prev=program_prefix ;;
1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119 program_prefix=$ac_optarg ;;
1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122 | --program-suf | --program-su | --program-s)
1123 ac_prev=program_suffix ;;
1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126 program_suffix=$ac_optarg ;;
1128 -program-transform-name | --program-transform-name \
1129 | --program-transform-nam | --program-transform-na \
1130 | --program-transform-n | --program-transform- \
1131 | --program-transform | --program-transfor \
1132 | --program-transfo | --program-transf \
1133 | --program-trans | --program-tran \
1134 | --progr-tra | --program-tr | --program-t)
1135 ac_prev=program_transform_name ;;
1136 -program-transform-name=* | --program-transform-name=* \
1137 | --program-transform-nam=* | --program-transform-na=* \
1138 | --program-transform-n=* | --program-transform-=* \
1139 | --program-transform=* | --program-transfor=* \
1140 | --program-transfo=* | --program-transf=* \
1141 | --program-trans=* | --program-tran=* \
1142 | --progr-tra=* | --program-tr=* | --program-t=*)
1143 program_transform_name=$ac_optarg ;;
1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 ac_prev=pdfdir ;;
1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148 pdfdir=$ac_optarg ;;
1150 -psdir | --psdir | --psdi | --psd | --ps)
1151 ac_prev=psdir ;;
1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 psdir=$ac_optarg ;;
1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156 | -silent | --silent | --silen | --sile | --sil)
1157 silent=yes ;;
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 ac_prev=sbindir ;;
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 | --sbi=* | --sb=*)
1163 sbindir=$ac_optarg ;;
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1168 | --sha | --sh)
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 | --sha=* | --sh=*)
1174 sharedstatedir=$ac_optarg ;;
1176 -site | --site | --sit)
1177 ac_prev=site ;;
1178 -site=* | --site=* | --sit=*)
1179 site=$ac_optarg ;;
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 ac_prev=srcdir ;;
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 verbose=yes ;;
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1204 -with-* | --with-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=\$ac_optarg ;;
1221 -without-* | --without-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1256 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258 { (exit 1); exit 1; }; }
1259 ;;
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266 { (exit 1); exit 1; }; }
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 ;;
1278 esac
1279 done
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1284 { (exit 1); exit 1; }; }
1285 fi
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
1290 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1291 { (exit 1); exit 1; }; } ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1294 fi
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1301 do
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
1310 case $ac_val in
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 esac
1314 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1315 { (exit 1); exit 1; }; }
1316 done
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1330 If a cross compiler is detected then cross compile mode will be used." >&2
1331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334 fi
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339 test "$silent" = yes && exec 6>/dev/null
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1346 { (exit 1); exit 1; }; }
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1349 { (exit 1); exit 1; }; }
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1382 fi
1383 else
1384 ac_srcdir_defaulted=no
1385 fi
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1389 { (exit 1); exit 1; }; }
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1394 { (exit 1); exit 1; }; }
1395 pwd)`
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399 fi
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1403 case $srcdir in
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 esac
1406 for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 done
1413 #
1414 # Report the --help message.
1415 #
1416 if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1419 cat <<_ACEOF
1420 \`configure' configures this package to adapt to many kinds of systems.
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE. See below for descriptions of some of the useful variables.
1427 Defaults for the options are specified in brackets.
1429 Configuration:
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print \`checking...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440 Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 [PREFIX]
1446 By default, \`make install' will install all the files in
1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449 for instance \`--prefix=\$HOME'.
1451 For better control, use the options below.
1453 Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1473 _ACEOF
1475 cat <<\_ACEOF
1477 Program names:
1478 --program-prefix=PREFIX prepend PREFIX to installed program names
1479 --program-suffix=SUFFIX append SUFFIX to installed program names
1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482 System types:
1483 --build=BUILD configure for building on BUILD [guessed]
1484 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485 _ACEOF
1486 fi
1488 if test -n "$ac_init_help"; then
1490 cat <<\_ACEOF
1492 Optional Features:
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --enable-maintainer-mode enable make rules and dependencies not useful
1497 (and sometimes confusing) to the casual installer
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1500 --enable-strict-warn Enable strict compilation warnings
1501 --disable-translator Disable the SH4 translator (Enabled by default)
1502 --disable-optimized Disable compile-time optimizations (Enabled by
1503 default)
1504 --enable-shared Build drivers as shared libraries (Enabled if
1505 available)
1506 --enable-profiled Enable profiling build
1507 --enable-trace Enable generation of IO traces (warning: hurts
1508 performance)
1509 --enable-watch Enable watchpoints in the debugger (warning: hurts
1510 performance)
1511 --enable-sh4stats Enable statistics on executed sh4 instructions
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-osmesa Build with the osmesa GL library (software
1517 rendering)
1518 --with-gtk Build with the GTK UI. Default on X11 systems
1519 --with-esd Build with support for the ESounD audio system
1520 --with-pulse Build with support for the PulseAudio audio system
1521 --with-sdl Build with support for SDL audio
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 OBJC Objective C compiler command
1532 OBJCFLAGS Objective C compiler flags
1533 CCAS assembler compiler command (defaults to CC)
1534 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1535 CPP C preprocessor
1536 PKG_CONFIG path to pkg-config utility
1537 LIBPNG_CFLAGS
1538 C compiler flags for LIBPNG, overriding pkg-config
1539 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1540 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1541 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1542 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1543 GTK_LIBS linker flags for GTK, overriding pkg-config
1544 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1545 SDL_LIBS linker flags for SDL, overriding pkg-config
1546 PULSE_CFLAGS
1547 C compiler flags for PULSE, overriding pkg-config
1548 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1549 ESOUND_CFLAGS
1550 C compiler flags for ESOUND, overriding pkg-config
1551 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1552 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1553 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1558 _ACEOF
1559 ac_status=$?
1560 fi
1562 if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565 test -d "$ac_dir" ||
1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567 continue
1568 ac_builddir=.
1570 case "$ac_dir" in
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *)
1573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1574 # A ".." for each directory in $ac_dir_suffix.
1575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 esac ;;
1580 esac
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1586 case $srcdir in
1587 .) # We are building in place.
1588 ac_srcdir=.
1589 ac_top_srcdir=$ac_top_builddir_sub
1590 ac_abs_top_srcdir=$ac_pwd ;;
1591 [\\/]* | ?:[\\/]* ) # Absolute name.
1592 ac_srcdir=$srcdir$ac_dir_suffix;
1593 ac_top_srcdir=$srcdir
1594 ac_abs_top_srcdir=$srcdir ;;
1595 *) # Relative name.
1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 esac
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602 cd "$ac_dir" || { ac_status=$?; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1610 else
1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 fi || ac_status=$?
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1614 done
1615 fi
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1619 cat <<\_ACEOF
1620 configure
1621 generated by GNU Autoconf 2.63
1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1624 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628 exit
1629 fi
1630 cat >config.log <<_ACEOF
1631 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake.
1634 It was created by $as_me, which was
1635 generated by GNU Autoconf 2.63. Invocation command line was
1637 $ $0 $@
1639 _ACEOF
1640 exec 5>>config.log
1641 {
1642 cat <<_ASUNAME
1643 ## --------- ##
1644 ## Platform. ##
1645 ## --------- ##
1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1654 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1656 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1657 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1659 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1660 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1661 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1662 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1664 _ASUNAME
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 $as_echo "PATH: $as_dir"
1672 done
1673 IFS=$as_save_IFS
1675 } >&5
1677 cat >&5 <<_ACEOF
1680 ## ----------- ##
1681 ## Core tests. ##
1682 ## ----------- ##
1684 _ACEOF
1687 # Keep a trace of the command line.
1688 # Strip out --no-create and --no-recursion so they do not pile up.
1689 # Strip out --silent because we don't want to record it for future runs.
1690 # Also quote any args containing shell meta-characters.
1691 # Make two passes to allow for proper duplicate-argument suppression.
1692 ac_configure_args=
1693 ac_configure_args0=
1694 ac_configure_args1=
1695 ac_must_keep_next=false
1696 for ac_pass in 1 2
1697 do
1698 for ac_arg
1699 do
1700 case $ac_arg in
1701 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1703 | -silent | --silent | --silen | --sile | --sil)
1704 continue ;;
1705 *\'*)
1706 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 esac
1708 case $ac_pass in
1709 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710 2)
1711 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1712 if test $ac_must_keep_next = true; then
1713 ac_must_keep_next=false # Got value, back to normal.
1714 else
1715 case $ac_arg in
1716 *=* | --config-cache | -C | -disable-* | --disable-* \
1717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1719 | -with-* | --with-* | -without-* | --without-* | --x)
1720 case "$ac_configure_args0 " in
1721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1722 esac
1723 ;;
1724 -* ) ac_must_keep_next=true ;;
1725 esac
1726 fi
1727 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 ;;
1729 esac
1730 done
1731 done
1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1735 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log. We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1740 trap 'exit_status=$?
1741 # Save into config.log some information that might help in debugging.
1742 {
1743 echo
1745 cat <<\_ASBOX
1746 ## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##
1749 _ASBOX
1750 echo
1751 # The following way of writing the cache mishandles newlines in values,
1752 (
1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754 eval ac_val=\$$ac_var
1755 case $ac_val in #(
1756 *${as_nl}*)
1757 case $ac_var in #(
1758 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1760 esac
1761 case $ac_var in #(
1762 _ | IFS | as_nl) ;; #(
1763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1764 *) $as_unset $ac_var ;;
1765 esac ;;
1766 esac
1767 done
1768 (set) 2>&1 |
1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1770 *${as_nl}ac_space=\ *)
1771 sed -n \
1772 "s/'\''/'\''\\\\'\'''\''/g;
1773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1774 ;; #(
1775 *)
1776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1777 ;;
1778 esac |
1779 sort
1780 )
1781 echo
1783 cat <<\_ASBOX
1784 ## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##
1787 _ASBOX
1788 echo
1789 for ac_var in $ac_subst_vars
1790 do
1791 eval ac_val=\$$ac_var
1792 case $ac_val in
1793 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 esac
1795 $as_echo "$ac_var='\''$ac_val'\''"
1796 done | sort
1797 echo
1799 if test -n "$ac_subst_files"; then
1800 cat <<\_ASBOX
1801 ## ------------------- ##
1802 ## File substitutions. ##
1803 ## ------------------- ##
1804 _ASBOX
1805 echo
1806 for ac_var in $ac_subst_files
1807 do
1808 eval ac_val=\$$ac_var
1809 case $ac_val in
1810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 esac
1812 $as_echo "$ac_var='\''$ac_val'\''"
1813 done | sort
1814 echo
1815 fi
1817 if test -s confdefs.h; then
1818 cat <<\_ASBOX
1819 ## ----------- ##
1820 ## confdefs.h. ##
1821 ## ----------- ##
1822 _ASBOX
1823 echo
1824 cat confdefs.h
1825 echo
1826 fi
1827 test "$ac_signal" != 0 &&
1828 $as_echo "$as_me: caught signal $ac_signal"
1829 $as_echo "$as_me: exit $exit_status"
1830 } >&5
1831 rm -f core *.core core.conftest.* &&
1832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1833 exit $exit_status
1834 ' 0
1835 for ac_signal in 1 2 13 15; do
1836 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1837 done
1838 ac_signal=0
1840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1841 rm -f -r conftest* confdefs.h
1843 # Predefined preprocessor variables.
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_NAME "$PACKAGE_NAME"
1847 _ACEOF
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1852 _ACEOF
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1857 _ACEOF
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_STRING "$PACKAGE_STRING"
1862 _ACEOF
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1867 _ACEOF
1870 # Let the site file select an alternate cache file if it wants to.
1871 # Prefer an explicitly selected file to automatically selected ones.
1872 ac_site_file1=NONE
1873 ac_site_file2=NONE
1874 if test -n "$CONFIG_SITE"; then
1875 ac_site_file1=$CONFIG_SITE
1876 elif test "x$prefix" != xNONE; then
1877 ac_site_file1=$prefix/share/config.site
1878 ac_site_file2=$prefix/etc/config.site
1879 else
1880 ac_site_file1=$ac_default_prefix/share/config.site
1881 ac_site_file2=$ac_default_prefix/etc/config.site
1882 fi
1883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1884 do
1885 test "x$ac_site_file" = xNONE && continue
1886 if test -r "$ac_site_file"; then
1887 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5
1890 . "$ac_site_file"
1891 fi
1892 done
1894 if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special
1896 # files actually), so we avoid doing that.
1897 if test -f "$cache_file"; then
1898 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 $as_echo "$as_me: loading cache $cache_file" >&6;}
1900 case $cache_file in
1901 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902 *) . "./$cache_file";;
1903 esac
1904 fi
1905 else
1906 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 $as_echo "$as_me: creating cache $cache_file" >&6;}
1908 >$cache_file
1909 fi
1911 # Check that the precious variables saved in the cache have kept the same
1912 # value.
1913 ac_cache_corrupted=false
1914 for ac_var in $ac_precious_vars; do
1915 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916 eval ac_new_set=\$ac_env_${ac_var}_set
1917 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918 eval ac_new_val=\$ac_env_${ac_var}_value
1919 case $ac_old_set,$ac_new_set in
1920 set,)
1921 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923 ac_cache_corrupted=: ;;
1924 ,set)
1925 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927 ac_cache_corrupted=: ;;
1928 ,);;
1929 *)
1930 if test "x$ac_old_val" != "x$ac_new_val"; then
1931 # differences in whitespace do not lead to failure.
1932 ac_old_val_w=`echo x $ac_old_val`
1933 ac_new_val_w=`echo x $ac_new_val`
1934 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1935 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1936 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1937 ac_cache_corrupted=:
1938 else
1939 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1940 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1941 eval $ac_var=\$ac_old_val
1942 fi
1943 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1944 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1945 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1946 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1947 fi;;
1948 esac
1949 # Pass precious variables to config.status.
1950 if test "$ac_new_set" = set; then
1951 case $ac_new_val in
1952 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 *) ac_arg=$ac_var=$ac_new_val ;;
1954 esac
1955 case " $ac_configure_args " in
1956 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1957 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1958 esac
1959 fi
1960 done
1961 if $ac_cache_corrupted; then
1962 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1964 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1969 fi
1987 ac_ext=c
1988 ac_cpp='$CPP $CPPFLAGS'
1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994 am__api_version="1.9"
1995 ac_aux_dir=
1996 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1997 if test -f "$ac_dir/install-sh"; then
1998 ac_aux_dir=$ac_dir
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2000 break
2001 elif test -f "$ac_dir/install.sh"; then
2002 ac_aux_dir=$ac_dir
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2004 break
2005 elif test -f "$ac_dir/shtool"; then
2006 ac_aux_dir=$ac_dir
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2008 break
2009 fi
2010 done
2011 if test -z "$ac_aux_dir"; then
2012 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2013 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2014 { (exit 1); exit 1; }; }
2015 fi
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2026 # Find a good install program. We prefer a C program (faster),
2027 # so one script is as good as another. But avoid the broken or
2028 # incompatible versions:
2029 # SysV /etc/install, /usr/sbin/install
2030 # SunOS /usr/etc/install
2031 # IRIX /sbin/install
2032 # AIX /bin/install
2033 # AmigaOS /C/install, which installs bootblocks on floppy discs
2034 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2035 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2036 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2037 # OS/2's system install, which has a completely different semantic
2038 # ./install, which can be erroneously created by make from ./install.sh.
2039 # Reject install programs that cannot install multiple files.
2040 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2042 if test -z "$INSTALL"; then
2043 if test "${ac_cv_path_install+set}" = set; then
2044 $as_echo_n "(cached) " >&6
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 # Account for people who put trailing slashes in PATH elements.
2052 case $as_dir/ in
2053 ./ | .// | /cC/* | \
2054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2056 /usr/ucb/* ) ;;
2057 *)
2058 # OSF1 and SCO ODT 3.0 have their own names for install.
2059 # Don't use installbsd from OSF since it installs stuff as root
2060 # by default.
2061 for ac_prog in ginstall scoinst install; do
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2064 if test $ac_prog = install &&
2065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066 # AIX install. It has an incompatible calling convention.
2067 :
2068 elif test $ac_prog = install &&
2069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070 # program-specific install script used by HP pwplus--don't use.
2071 :
2072 else
2073 rm -rf conftest.one conftest.two conftest.dir
2074 echo one > conftest.one
2075 echo two > conftest.two
2076 mkdir conftest.dir
2077 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2078 test -s conftest.one && test -s conftest.two &&
2079 test -s conftest.dir/conftest.one &&
2080 test -s conftest.dir/conftest.two
2081 then
2082 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2083 break 3
2084 fi
2085 fi
2086 fi
2087 done
2088 done
2089 ;;
2090 esac
2092 done
2093 IFS=$as_save_IFS
2095 rm -rf conftest.one conftest.two conftest.dir
2097 fi
2098 if test "${ac_cv_path_install+set}" = set; then
2099 INSTALL=$ac_cv_path_install
2100 else
2101 # As a last resort, use the slow shell script. Don't cache a
2102 # value for INSTALL within a source directory, because that will
2103 # break other packages using the cache if that directory is
2104 # removed, or if the value is a relative name.
2105 INSTALL=$ac_install_sh
2106 fi
2107 fi
2108 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2109 $as_echo "$INSTALL" >&6; }
2111 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2112 # It thinks the first close brace ends the variable substitution.
2113 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2115 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2117 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2119 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2120 $as_echo_n "checking whether build environment is sane... " >&6; }
2121 # Just in case
2122 sleep 1
2123 echo timestamp > conftest.file
2124 # Do `set' in a subshell so we don't clobber the current shell's
2125 # arguments. Must try -L first in case configure is actually a
2126 # symlink; some systems play weird games with the mod time of symlinks
2127 # (eg FreeBSD returns the mod time of the symlink's containing
2128 # directory).
2129 if (
2130 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2131 if test "$*" = "X"; then
2132 # -L didn't work.
2133 set X `ls -t $srcdir/configure conftest.file`
2134 fi
2135 rm -f conftest.file
2136 if test "$*" != "X $srcdir/configure conftest.file" \
2137 && test "$*" != "X conftest.file $srcdir/configure"; then
2139 # If neither matched, then we have a broken ls. This can happen
2140 # if, for instance, CONFIG_SHELL is bash and it inherits a
2141 # broken ls alias from the environment. This has actually
2142 # happened. Such a system could not be considered "sane".
2143 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2144 alias in your environment" >&5
2145 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2146 alias in your environment" >&2;}
2147 { (exit 1); exit 1; }; }
2148 fi
2150 test "$2" = conftest.file
2151 )
2152 then
2153 # Ok.
2154 :
2155 else
2156 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2157 Check your system clock" >&5
2158 $as_echo "$as_me: error: newly created file is older than distributed files!
2159 Check your system clock" >&2;}
2160 { (exit 1); exit 1; }; }
2161 fi
2162 { $as_echo "$as_me:$LINENO: result: yes" >&5
2163 $as_echo "yes" >&6; }
2164 test "$program_prefix" != NONE &&
2165 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2166 # Use a double $ so make ignores it.
2167 test "$program_suffix" != NONE &&
2168 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2169 # Double any \ or $.
2170 # By default was `s,x,x', remove it if useless.
2171 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2172 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2174 # expand $ac_aux_dir to an absolute path
2175 am_aux_dir=`cd $ac_aux_dir && pwd`
2177 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2178 # Use eval to expand $SHELL
2179 if eval "$MISSING --run true"; then
2180 am_missing_run="$MISSING --run "
2181 else
2182 am_missing_run=
2183 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2184 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2185 fi
2187 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2188 # We used to keeping the `.' as first argument, in order to
2189 # allow $(mkdir_p) to be used without argument. As in
2190 # $(mkdir_p) $(somedir)
2191 # where $(somedir) is conditionally defined. However this is wrong
2192 # for two reasons:
2193 # 1. if the package is installed by a user who cannot write `.'
2194 # make install will fail,
2195 # 2. the above comment should most certainly read
2196 # $(mkdir_p) $(DESTDIR)$(somedir)
2197 # so it does not work when $(somedir) is undefined and
2198 # $(DESTDIR) is not.
2199 # To support the latter case, we have to write
2200 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2201 # so the `.' trick is pointless.
2202 mkdir_p='mkdir -p --'
2203 else
2204 # On NextStep and OpenStep, the `mkdir' command does not
2205 # recognize any option. It will interpret all options as
2206 # directories to create, and then abort because `.' already
2207 # exists.
2208 for d in ./-p ./--version;
2209 do
2210 test -d $d && rmdir $d
2211 done
2212 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2213 if test -f "$ac_aux_dir/mkinstalldirs"; then
2214 mkdir_p='$(mkinstalldirs)'
2215 else
2216 mkdir_p='$(install_sh) -d'
2217 fi
2218 fi
2220 for ac_prog in gawk mawk nawk awk
2221 do
2222 # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 $as_echo_n "checking for $ac_word... " >&6; }
2226 if test "${ac_cv_prog_AWK+set}" = set; then
2227 $as_echo_n "(cached) " >&6
2228 else
2229 if test -n "$AWK"; then
2230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2239 ac_cv_prog_AWK="$ac_prog"
2240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241 break 2
2242 fi
2243 done
2244 done
2245 IFS=$as_save_IFS
2247 fi
2248 fi
2249 AWK=$ac_cv_prog_AWK
2250 if test -n "$AWK"; then
2251 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2252 $as_echo "$AWK" >&6; }
2253 else
2254 { $as_echo "$as_me:$LINENO: result: no" >&5
2255 $as_echo "no" >&6; }
2256 fi
2259 test -n "$AWK" && break
2260 done
2262 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2263 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2264 set x ${MAKE-make}
2265 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2266 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2267 $as_echo_n "(cached) " >&6
2268 else
2269 cat >conftest.make <<\_ACEOF
2270 SHELL = /bin/sh
2271 all:
2272 @echo '@@@%%%=$(MAKE)=@@@%%%'
2273 _ACEOF
2274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2275 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2276 *@@@%%%=?*=@@@%%%*)
2277 eval ac_cv_prog_make_${ac_make}_set=yes;;
2278 *)
2279 eval ac_cv_prog_make_${ac_make}_set=no;;
2280 esac
2281 rm -f conftest.make
2282 fi
2283 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2284 { $as_echo "$as_me:$LINENO: result: yes" >&5
2285 $as_echo "yes" >&6; }
2286 SET_MAKE=
2287 else
2288 { $as_echo "$as_me:$LINENO: result: no" >&5
2289 $as_echo "no" >&6; }
2290 SET_MAKE="MAKE=${MAKE-make}"
2291 fi
2293 rm -rf .tst 2>/dev/null
2294 mkdir .tst 2>/dev/null
2295 if test -d .tst; then
2296 am__leading_dot=.
2297 else
2298 am__leading_dot=_
2299 fi
2300 rmdir .tst 2>/dev/null
2302 # test to see if srcdir already configured
2303 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2304 test -f $srcdir/config.status; then
2305 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2306 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2307 { (exit 1); exit 1; }; }
2308 fi
2310 # test whether we have cygpath
2311 if test -z "$CYGPATH_W"; then
2312 if (cygpath --version) >/dev/null 2>/dev/null; then
2313 CYGPATH_W='cygpath -w'
2314 else
2315 CYGPATH_W=echo
2316 fi
2317 fi
2320 # Define the identity of the package.
2321 PACKAGE=lxdream
2322 VERSION=0.9.1
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE "$PACKAGE"
2327 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define VERSION "$VERSION"
2332 _ACEOF
2334 # Some tools Automake needs.
2336 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2339 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2342 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2345 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2348 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2350 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2352 # Installed binaries are usually stripped using `strip' when the user
2353 # run `make install-strip'. However `strip' might not be the right
2354 # tool to use in cross-compilation environments, therefore Automake
2355 # will honor the `STRIP' environment variable to overrule this program.
2356 if test "$cross_compiling" != no; then
2357 if test -n "$ac_tool_prefix"; then
2358 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2359 set dummy ${ac_tool_prefix}strip; ac_word=$2
2360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if test "${ac_cv_prog_STRIP+set}" = set; then
2363 $as_echo_n "(cached) " >&6
2364 else
2365 if test -n "$STRIP"; then
2366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2383 fi
2384 fi
2385 STRIP=$ac_cv_prog_STRIP
2386 if test -n "$STRIP"; then
2387 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2388 $as_echo "$STRIP" >&6; }
2389 else
2390 { $as_echo "$as_me:$LINENO: result: no" >&5
2391 $as_echo "no" >&6; }
2392 fi
2395 fi
2396 if test -z "$ac_cv_prog_STRIP"; then
2397 ac_ct_STRIP=$STRIP
2398 # Extract the first word of "strip", so it can be a program name with args.
2399 set dummy strip; ac_word=$2
2400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 $as_echo_n "checking for $ac_word... " >&6; }
2402 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2403 $as_echo_n "(cached) " >&6
2404 else
2405 if test -n "$ac_ct_STRIP"; then
2406 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_ac_ct_STRIP="strip"
2416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419 done
2420 done
2421 IFS=$as_save_IFS
2423 fi
2424 fi
2425 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2426 if test -n "$ac_ct_STRIP"; then
2427 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2428 $as_echo "$ac_ct_STRIP" >&6; }
2429 else
2430 { $as_echo "$as_me:$LINENO: result: no" >&5
2431 $as_echo "no" >&6; }
2432 fi
2434 if test "x$ac_ct_STRIP" = x; then
2435 STRIP=":"
2436 else
2437 case $cross_compiling:$ac_tool_warned in
2438 yes:)
2439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2441 ac_tool_warned=yes ;;
2442 esac
2443 STRIP=$ac_ct_STRIP
2444 fi
2445 else
2446 STRIP="$ac_cv_prog_STRIP"
2447 fi
2449 fi
2450 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2452 # We need awk for the "check" target. The system "awk" is bad on
2453 # some platforms.
2454 # Always define AMTAR for backward compatibility.
2456 AMTAR=${AMTAR-"${am_missing_run}tar"}
2458 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2464 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2465 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2466 # Check whether --enable-maintainer-mode was given.
2467 if test "${enable_maintainer_mode+set}" = set; then
2468 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2469 else
2470 USE_MAINTAINER_MODE=no
2471 fi
2473 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2474 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2477 if test $USE_MAINTAINER_MODE = yes; then
2478 MAINTAINER_MODE_TRUE=
2479 MAINTAINER_MODE_FALSE='#'
2480 else
2481 MAINTAINER_MODE_TRUE='#'
2482 MAINTAINER_MODE_FALSE=
2483 fi
2485 MAINT=$MAINTAINER_MODE_TRUE
2488 ac_config_headers="$ac_config_headers config.h"
2491 DEPDIR="${am__leading_dot}deps"
2493 ac_config_commands="$ac_config_commands depfiles"
2496 am_make=${MAKE-make}
2497 cat > confinc << 'END'
2498 am__doit:
2499 @echo done
2500 .PHONY: am__doit
2501 END
2502 # If we don't find an include directive, just comment out the code.
2503 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2504 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2505 am__include="#"
2506 am__quote=
2507 _am_result=none
2508 # First try GNU make style include.
2509 echo "include confinc" > confmf
2510 # We grep out `Entering directory' and `Leaving directory'
2511 # messages which can occur if `w' ends up in MAKEFLAGS.
2512 # In particular we don't look at `^make:' because GNU make might
2513 # be invoked under some other name (usually "gmake"), in which
2514 # case it prints its new name instead of `make'.
2515 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2516 am__include=include
2517 am__quote=
2518 _am_result=GNU
2519 fi
2520 # Now try BSD make style include.
2521 if test "$am__include" = "#"; then
2522 echo '.include "confinc"' > confmf
2523 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2524 am__include=.include
2525 am__quote="\""
2526 _am_result=BSD
2527 fi
2528 fi
2531 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2532 $as_echo "$_am_result" >&6; }
2533 rm -f confinc confmf
2535 # Check whether --enable-dependency-tracking was given.
2536 if test "${enable_dependency_tracking+set}" = set; then
2537 enableval=$enable_dependency_tracking;
2538 fi
2540 if test "x$enable_dependency_tracking" != xno; then
2541 am_depcomp="$ac_aux_dir/depcomp"
2542 AMDEPBACKSLASH='\'
2543 fi
2546 if test "x$enable_dependency_tracking" != xno; then
2547 AMDEP_TRUE=
2548 AMDEP_FALSE='#'
2549 else
2550 AMDEP_TRUE='#'
2551 AMDEP_FALSE=
2552 fi
2556 ac_ext=c
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2593 else
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2599 fi
2600 if test -z "$ac_cv_prog_CC"; then
2601 ac_ct_CC=$CC
2602 # Extract the first word of "gcc", so it can be a program name with args.
2603 set dummy gcc; ac_word=$2
2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_ac_ct_CC="gcc"
2620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2627 fi
2628 fi
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 $as_echo "$ac_ct_CC" >&6; }
2633 else
2634 { $as_echo "$as_me:$LINENO: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2638 if test "x$ac_ct_CC" = x; then
2639 CC=""
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642 yes:)
2643 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647 CC=$ac_ct_CC
2648 fi
2649 else
2650 CC="$ac_cv_prog_CC"
2651 fi
2653 if test -z "$CC"; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
2657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_CC+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_CC="${ac_tool_prefix}cc"
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2680 fi
2681 fi
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2685 $as_echo "$CC" >&6; }
2686 else
2687 { $as_echo "$as_me:$LINENO: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2692 fi
2693 fi
2694 if test -z "$CC"; then
2695 # Extract the first word of "cc", so it can be a program name with args.
2696 set dummy cc; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 ac_prog_rejected=no
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714 ac_prog_rejected=yes
2715 continue
2716 fi
2717 ac_cv_prog_CC="cc"
2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2725 if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2728 shift
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2733 shift
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2735 fi
2736 fi
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744 { $as_echo "$as_me:$LINENO: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2749 fi
2750 if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
2752 for ac_prog in cl.exe
2753 do
2754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2784 $as_echo "$CC" >&6; }
2785 else
2786 { $as_echo "$as_me:$LINENO: result: no" >&5
2787 $as_echo "no" >&6; }
2788 fi
2791 test -n "$CC" && break
2792 done
2793 fi
2794 if test -z "$CC"; then
2795 ac_ct_CC=$CC
2796 for ac_prog in cl.exe
2797 do
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="$ac_prog"
2816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2823 fi
2824 fi
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828 $as_echo "$ac_ct_CC" >&6; }
2829 else
2830 { $as_echo "$as_me:$LINENO: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2835 test -n "$ac_ct_CC" && break
2836 done
2838 if test "x$ac_ct_CC" = x; then
2839 CC=""
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2846 esac
2847 CC=$ac_ct_CC
2848 fi
2849 fi
2851 fi
2854 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2857 See \`config.log' for more details." >&5
2858 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }; }
2862 # Provide some information about the compiler.
2863 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2864 set X $ac_compile
2865 ac_compiler=$2
2866 { (ac_try="$ac_compiler --version >&5"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compiler --version >&5") 2>&5
2874 ac_status=$?
2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -v >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler -v >&5") 2>&5
2885 ac_status=$?
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2888 { (ac_try="$ac_compiler -V >&5"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compiler -V >&5") 2>&5
2896 ac_status=$?
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2907 int
2908 main ()
2909 {
2911 ;
2912 return 0;
2913 }
2914 _ACEOF
2915 ac_clean_files_save=$ac_clean_files
2916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2917 # Try to create an executable without -o first, disregard a.out.
2918 # It will help us diagnose broken compilers, and finding out an intuition
2919 # of exeext.
2920 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2921 $as_echo_n "checking for C compiler default output file name... " >&6; }
2922 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2924 # The possible output files:
2925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2927 ac_rmfiles=
2928 for ac_file in $ac_files
2929 do
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2933 esac
2934 done
2935 rm -f $ac_rmfiles
2937 if { (ac_try="$ac_link_default"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943 $as_echo "$ac_try_echo") >&5
2944 (eval "$ac_link_default") 2>&5
2945 ac_status=$?
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; then
2948 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2949 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2950 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2951 # so that the user can short-circuit this test for compilers unknown to
2952 # Autoconf.
2953 for ac_file in $ac_files ''
2954 do
2955 test -f "$ac_file" || continue
2956 case $ac_file in
2957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2958 ;;
2959 [ab].out )
2960 # We found the default executable, but exeext='' is most
2961 # certainly right.
2962 break;;
2963 *.* )
2964 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2965 then :; else
2966 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 fi
2968 # We set ac_cv_exeext here because the later test for it is not
2969 # safe: cross compilers may not add the suffix if given an `-o'
2970 # argument, so we may need to know it at that point already.
2971 # Even if this section looks crufty: it has the advantage of
2972 # actually working.
2973 break;;
2974 * )
2975 break;;
2976 esac
2977 done
2978 test "$ac_cv_exeext" = no && ac_cv_exeext=
2980 else
2981 ac_file=''
2982 fi
2984 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2985 $as_echo "$ac_file" >&6; }
2986 if test -z "$ac_file"; then
2987 $as_echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2993 See \`config.log' for more details." >&5
2994 $as_echo "$as_me: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&2;}
2996 { (exit 77); exit 77; }; }; }
2997 fi
2999 ac_exeext=$ac_cv_exeext
3001 # Check that the compiler produces executables we can run. If not, either
3002 # the compiler is broken, or we cross compile.
3003 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3004 $as_echo_n "checking whether the C compiler works... " >&6; }
3005 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3006 # If not cross compiling, check that we can run a simple program.
3007 if test "$cross_compiling" != yes; then
3008 if { ac_try='./$ac_file'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3014 $as_echo "$ac_try_echo") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 cross_compiling=no
3020 else
3021 if test "$cross_compiling" = maybe; then
3022 cross_compiling=yes
3023 else
3024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3027 If you meant to cross compile, use \`--host'.
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: cannot run C compiled programs.
3030 If you meant to cross compile, use \`--host'.
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }; }
3033 fi
3034 fi
3035 fi
3036 { $as_echo "$as_me:$LINENO: result: yes" >&5
3037 $as_echo "yes" >&6; }
3039 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3040 ac_clean_files=$ac_clean_files_save
3041 # Check that the compiler produces executables we can run. If not, either
3042 # the compiler is broken, or we cross compile.
3043 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3044 $as_echo_n "checking whether we are cross compiling... " >&6; }
3045 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3046 $as_echo "$cross_compiling" >&6; }
3048 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3049 $as_echo_n "checking for suffix of executables... " >&6; }
3050 if { (ac_try="$ac_link"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3056 $as_echo "$ac_try_echo") >&5
3057 (eval "$ac_link") 2>&5
3058 ac_status=$?
3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; then
3061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3062 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3063 # work properly (i.e., refer to `conftest.exe'), while it won't with
3064 # `rm'.
3065 for ac_file in conftest.exe conftest conftest.*; do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 break;;
3071 * ) break;;
3072 esac
3073 done
3074 else
3075 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&5
3079 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }; }
3082 fi
3084 rm -f conftest$ac_cv_exeext
3085 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3086 $as_echo "$ac_cv_exeext" >&6; }
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3090 ac_exeext=$EXEEXT
3091 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3092 $as_echo_n "checking for suffix of object files... " >&6; }
3093 if test "${ac_cv_objext+set}" = set; then
3094 $as_echo_n "(cached) " >&6
3095 else
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3103 int
3104 main ()
3105 {
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.o conftest.obj
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118 $as_echo "$ac_try_echo") >&5
3119 (eval "$ac_compile") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; then
3123 for ac_file in conftest.o conftest.obj conftest.*; do
3124 test -f "$ac_file" || continue;
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3128 break;;
3129 esac
3130 done
3131 else
3132 $as_echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3138 See \`config.log' for more details." >&5
3139 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }; }
3142 fi
3144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3145 fi
3146 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3147 $as_echo "$ac_cv_objext" >&6; }
3148 OBJEXT=$ac_cv_objext
3149 ac_objext=$OBJEXT
3150 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3151 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3153 $as_echo_n "(cached) " >&6
3154 else
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3162 int
3163 main ()
3164 {
3165 #ifndef __GNUC__
3166 choke me
3167 #endif
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180 $as_echo "$ac_try_echo") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 ac_compiler_gnu=yes
3192 else
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 ac_compiler_gnu=no
3197 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3202 fi
3203 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3205 if test $ac_compiler_gnu = yes; then
3206 GCC=yes
3207 else
3208 GCC=
3209 fi
3210 ac_test_CFLAGS=${CFLAGS+set}
3211 ac_save_CFLAGS=$CFLAGS
3212 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3214 if test "${ac_cv_prog_cc_g+set}" = set; then
3215 $as_echo_n "(cached) " >&6
3216 else
3217 ac_save_c_werror_flag=$ac_c_werror_flag
3218 ac_c_werror_flag=yes
3219 ac_cv_prog_cc_g=no
3220 CFLAGS="-g"
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 int
3229 main ()
3230 {
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243 $as_echo "$ac_try_echo") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3254 ac_cv_prog_cc_g=yes
3255 else
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 CFLAGS=""
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3267 int
3268 main ()
3269 {
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 :
3294 else
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3299 CFLAGS="-g"
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3307 int
3308 main ()
3309 {
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && {
3330 test -z "$ac_c_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
3333 ac_cv_prog_cc_g=yes
3334 else
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3339 fi
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 fi
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3349 fi
3350 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3351 $as_echo "$ac_cv_prog_cc_g" >&6; }
3352 if test "$ac_test_CFLAGS" = set; then
3353 CFLAGS=$ac_save_CFLAGS
3354 elif test $ac_cv_prog_cc_g = yes; then
3355 if test "$GCC" = yes; then
3356 CFLAGS="-g -O2"
3357 else
3358 CFLAGS="-g"
3359 fi
3360 else
3361 if test "$GCC" = yes; then
3362 CFLAGS="-O2"
3363 else
3364 CFLAGS=
3365 fi
3366 fi
3367 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369 if test "${ac_cv_prog_cc_c89+set}" = set; then
3370 $as_echo_n "(cached) " >&6
3371 else
3372 ac_cv_prog_cc_c89=no
3373 ac_save_CC=$CC
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <stdarg.h>
3381 #include <stdio.h>
3382 #include <sys/types.h>
3383 #include <sys/stat.h>
3384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3385 struct buf { int x; };
3386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387 static char *e (p, i)
3388 char **p;
3389 int i;
3390 {
3391 return p[i];
3392 }
3393 static char *f (char * (*g) (char **, int), char **p, ...)
3394 {
3395 char *s;
3396 va_list v;
3397 va_start (v,p);
3398 s = g (p, va_arg (v,int));
3399 va_end (v);
3400 return s;
3401 }
3403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3404 function prototypes and stuff, but not '\xHH' hex character constants.
3405 These don't provoke an error unfortunately, instead are silently treated
3406 as 'x'. The following induces an error, until -std is added to get
3407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3408 array size at least. It's necessary to write '\x00'==0 to get something
3409 that's true only with -std. */
3410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413 inside strings and character constants. */
3414 #define FOO(x) 'x'
3415 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3417 int test (int i, double x);
3418 struct s1 {int (*f) (int a);};
3419 struct s2 {int (*f) (double a);};
3420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421 int argc;
3422 char **argv;
3423 int
3424 main ()
3425 {
3426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433 do
3434 CC="$ac_save_CC $ac_arg"
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3453 ac_cv_prog_cc_c89=$ac_arg
3454 else
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3459 fi
3461 rm -f core conftest.err conftest.$ac_objext
3462 test "x$ac_cv_prog_cc_c89" != "xno" && break
3463 done
3464 rm -f conftest.$ac_ext
3465 CC=$ac_save_CC
3467 fi
3468 # AC_CACHE_VAL
3469 case "x$ac_cv_prog_cc_c89" in
3470 x)
3471 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3472 $as_echo "none needed" >&6; } ;;
3473 xno)
3474 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3475 $as_echo "unsupported" >&6; } ;;
3476 *)
3477 CC="$CC $ac_cv_prog_cc_c89"
3478 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3480 esac
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 depcc="$CC" am_compiler_list=
3491 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3492 $as_echo_n "checking dependency style of $depcc... " >&6; }
3493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3497 # We make a subdir and do the tests there. Otherwise we can end up
3498 # making bogus files that we don't know about and never remove. For
3499 # instance it was reported that on HP-UX the gcc test will end up
3500 # making a dummy file named `D' -- because `-MD' means `put the output
3501 # in D'.
3502 mkdir conftest.dir
3503 # Copy depcomp to subdir because otherwise we won't find it if we're
3504 # using a relative directory.
3505 cp "$am_depcomp" conftest.dir
3506 cd conftest.dir
3507 # We will build objects and dependencies in a subdirectory because
3508 # it helps to detect inapplicable dependency modes. For instance
3509 # both Tru64's cc and ICC support -MD to output dependencies as a
3510 # side effect of compilation, but ICC will put the dependencies in
3511 # the current directory while Tru64 will put them in the object
3512 # directory.
3513 mkdir sub
3515 am_cv_CC_dependencies_compiler_type=none
3516 if test "$am_compiler_list" = ""; then
3517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3518 fi
3519 for depmode in $am_compiler_list; do
3520 # Setup a source with many dependencies, because some compilers
3521 # like to wrap large dependency lists on column 80 (with \), and
3522 # we should not choose a depcomp mode which is confused by this.
3523 #
3524 # We need to recreate these files for each test, as the compiler may
3525 # overwrite some of them when testing with obscure command lines.
3526 # This happens at least with the AIX C compiler.
3527 : > sub/conftest.c
3528 for i in 1 2 3 4 5 6; do
3529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3531 # Solaris 8's {/usr,}/bin/sh.
3532 touch sub/conftst$i.h
3533 done
3534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3536 case $depmode in
3537 nosideeffect)
3538 # after this tag, mechanisms are not by side-effect, so they'll
3539 # only be used when explicitly requested
3540 if test "x$enable_dependency_tracking" = xyes; then
3541 continue
3542 else
3543 break
3544 fi
3545 ;;
3546 none) break ;;
3547 esac
3548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3549 # mode. It turns out that the SunPro C++ compiler does not properly
3550 # handle `-M -o', and we need to detect this.
3551 if depmode=$depmode \
3552 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3554 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3555 >/dev/null 2>conftest.err &&
3556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3557 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3559 # icc doesn't choke on unknown options, it will just issue warnings
3560 # or remarks (even with -Werror). So we grep stderr for any message
3561 # that says an option was ignored or not supported.
3562 # When given -MP, icc 7.0 and 7.1 complain thusly:
3563 # icc: Command line warning: ignoring option '-M'; no argument required
3564 # The diagnosis changed in icc 8.0:
3565 # icc: Command line remark: option '-MP' not supported
3566 if (grep 'ignoring option' conftest.err ||
3567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3568 am_cv_CC_dependencies_compiler_type=$depmode
3569 break
3570 fi
3571 fi
3572 done
3574 cd ..
3575 rm -rf conftest.dir
3576 else
3577 am_cv_CC_dependencies_compiler_type=none
3578 fi
3580 fi
3581 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3582 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3587 if
3588 test "x$enable_dependency_tracking" != xno \
3589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3590 am__fastdepCC_TRUE=
3591 am__fastdepCC_FALSE='#'
3592 else
3593 am__fastdepCC_TRUE='#'
3594 am__fastdepCC_FALSE=
3595 fi
3600 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3601 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3602 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3603 $as_echo_n "(cached) " >&6
3604 else
3605 ac_check_lib_save_LIBS=$LIBS
3606 LIBS="-lcposix $LIBS"
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3614 /* Override any GCC internal prototype to avoid an error.
3615 Use char because int might match the return type of a GCC
3616 builtin and then its argument prototype would still apply. */
3617 #ifdef __cplusplus
3618 extern "C"
3619 #endif
3620 char strerror ();
3621 int
3622 main ()
3623 {
3624 return strerror ();
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 rm -f conftest.$ac_objext conftest$ac_exeext
3630 if { (ac_try="$ac_link"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636 $as_echo "$ac_try_echo") >&5
3637 (eval "$ac_link") 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } && {
3644 test -z "$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3646 } && test -s conftest$ac_exeext && {
3647 test "$cross_compiling" = yes ||
3648 $as_test_x conftest$ac_exeext
3649 }; then
3650 ac_cv_lib_cposix_strerror=yes
3651 else
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 ac_cv_lib_cposix_strerror=no
3656 fi
3658 rm -rf conftest.dSYM
3659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3660 conftest$ac_exeext conftest.$ac_ext
3661 LIBS=$ac_check_lib_save_LIBS
3662 fi
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3664 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3665 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3666 LIBS="$LIBS -lcposix"
3667 fi
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if test "${ac_cv_prog_CC+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -n "$CC"; then
3685 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698 done
3699 done
3700 IFS=$as_save_IFS
3702 fi
3703 fi
3704 CC=$ac_cv_prog_CC
3705 if test -n "$CC"; then
3706 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3708 else
3709 { $as_echo "$as_me:$LINENO: result: no" >&5
3710 $as_echo "no" >&6; }
3711 fi
3714 fi
3715 if test -z "$ac_cv_prog_CC"; then
3716 ac_ct_CC=$CC
3717 # Extract the first word of "gcc", so it can be a program name with args.
3718 set dummy gcc; ac_word=$2
3719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -n "$ac_ct_CC"; then
3725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_ac_ct_CC="gcc"
3735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738 done
3739 done
3740 IFS=$as_save_IFS
3742 fi
3743 fi
3744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3745 if test -n "$ac_ct_CC"; then
3746 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3747 $as_echo "$ac_ct_CC" >&6; }
3748 else
3749 { $as_echo "$as_me:$LINENO: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3753 if test "x$ac_ct_CC" = x; then
3754 CC=""
3755 else
3756 case $cross_compiling:$ac_tool_warned in
3757 yes:)
3758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3761 esac
3762 CC=$ac_ct_CC
3763 fi
3764 else
3765 CC="$ac_cv_prog_CC"
3766 fi
3768 if test -z "$CC"; then
3769 if test -n "$ac_tool_prefix"; then
3770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}cc; ac_word=$2
3772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_CC+set}" = set; then
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC="$CC" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_CC="${ac_tool_prefix}cc"
3788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
3790 fi
3791 done
3792 done
3793 IFS=$as_save_IFS
3795 fi
3796 fi
3797 CC=$ac_cv_prog_CC
3798 if test -n "$CC"; then
3799 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3801 else
3802 { $as_echo "$as_me:$LINENO: result: no" >&5
3803 $as_echo "no" >&6; }
3804 fi
3807 fi
3808 fi
3809 if test -z "$CC"; then
3810 # Extract the first word of "cc", so it can be a program name with args.
3811 set dummy cc; ac_word=$2
3812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_CC+set}" = set; then
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 ac_prog_rejected=no
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3829 ac_prog_rejected=yes
3830 continue
3831 fi
3832 ac_cv_prog_CC="cc"
3833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
3836 done
3837 done
3838 IFS=$as_save_IFS
3840 if test $ac_prog_rejected = yes; then
3841 # We found a bogon in the path, so make sure we never use it.
3842 set dummy $ac_cv_prog_CC
3843 shift
3844 if test $# != 0; then
3845 # We chose a different compiler from the bogus one.
3846 # However, it has the same basename, so the bogon will be chosen
3847 # first if we set CC to just the basename; use the full file name.
3848 shift
3849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3850 fi
3851 fi
3852 fi
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3858 else
3859 { $as_echo "$as_me:$LINENO: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3864 fi
3865 if test -z "$CC"; then
3866 if test -n "$ac_tool_prefix"; then
3867 for ac_prog in cl.exe
3868 do
3869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if test "${ac_cv_prog_CC+set}" = set; then
3874 $as_echo_n "(cached) " >&6
3875 else
3876 if test -n "$CC"; then
3877 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890 done
3891 done
3892 IFS=$as_save_IFS
3894 fi
3895 fi
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3900 else
3901 { $as_echo "$as_me:$LINENO: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3906 test -n "$CC" && break
3907 done
3908 fi
3909 if test -z "$CC"; then
3910 ac_ct_CC=$CC
3911 for ac_prog in cl.exe
3912 do
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3919 else
3920 if test -n "$ac_ct_CC"; then
3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930 ac_cv_prog_ac_ct_CC="$ac_prog"
3931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934 done
3935 done
3936 IFS=$as_save_IFS
3938 fi
3939 fi
3940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3941 if test -n "$ac_ct_CC"; then
3942 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3943 $as_echo "$ac_ct_CC" >&6; }
3944 else
3945 { $as_echo "$as_me:$LINENO: result: no" >&5
3946 $as_echo "no" >&6; }
3947 fi
3950 test -n "$ac_ct_CC" && break
3951 done
3953 if test "x$ac_ct_CC" = x; then
3954 CC=""
3955 else
3956 case $cross_compiling:$ac_tool_warned in
3957 yes:)
3958 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3961 esac
3962 CC=$ac_ct_CC
3963 fi
3964 fi
3966 fi
3969 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3972 See \`config.log' for more details." >&5
3973 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3974 See \`config.log' for more details." >&2;}
3975 { (exit 1); exit 1; }; }; }
3977 # Provide some information about the compiler.
3978 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3979 set X $ac_compile
3980 ac_compiler=$2
3981 { (ac_try="$ac_compiler --version >&5"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3987 $as_echo "$ac_try_echo") >&5
3988 (eval "$ac_compiler --version >&5") 2>&5
3989 ac_status=$?
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }
3992 { (ac_try="$ac_compiler -v >&5"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_compiler -v >&5") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }
4003 { (ac_try="$ac_compiler -V >&5"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4009 $as_echo "$ac_try_echo") >&5
4010 (eval "$ac_compiler -V >&5") 2>&5
4011 ac_status=$?
4012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4015 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4016 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4019 else
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4027 int
4028 main ()
4029 {
4030 #ifndef __GNUC__
4031 choke me
4032 #endif
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4045 $as_echo "$ac_try_echo") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
4056 ac_compiler_gnu=yes
4057 else
4058 $as_echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 ac_compiler_gnu=no
4062 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067 fi
4068 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4071 GCC=yes
4072 else
4073 GCC=
4074 fi
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h. */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4093 int
4094 main ()
4095 {
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4119 ac_cv_prog_cc_g=yes
4120 else
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 CFLAGS=""
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4132 int
4133 main ()
4134 {
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && {
4155 test -z "$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 } && test -s conftest.$ac_objext; then
4158 :
4159 else
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ac_c_werror_flag=$ac_save_c_werror_flag
4164 CFLAGS="-g"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4172 int
4173 main ()
4174 {
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4182 case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4187 $as_echo "$ac_try_echo") >&5
4188 (eval "$ac_compile") 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
4197 } && test -s conftest.$ac_objext; then
4198 ac_cv_prog_cc_g=yes
4199 else
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4204 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_c_werror_flag=$ac_save_c_werror_flag
4214 fi
4215 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4216 $as_echo "$ac_cv_prog_cc_g" >&6; }
4217 if test "$ac_test_CFLAGS" = set; then
4218 CFLAGS=$ac_save_CFLAGS
4219 elif test $ac_cv_prog_cc_g = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="-g -O2"
4222 else
4223 CFLAGS="-g"
4224 fi
4225 else
4226 if test "$GCC" = yes; then
4227 CFLAGS="-O2"
4228 else
4229 CFLAGS=
4230 fi
4231 fi
4232 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4234 if test "${ac_cv_prog_cc_c89+set}" = set; then
4235 $as_echo_n "(cached) " >&6
4236 else
4237 ac_cv_prog_cc_c89=no
4238 ac_save_CC=$CC
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 #include <stdarg.h>
4246 #include <stdio.h>
4247 #include <sys/types.h>
4248 #include <sys/stat.h>
4249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4250 struct buf { int x; };
4251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4252 static char *e (p, i)
4253 char **p;
4254 int i;
4255 {
4256 return p[i];
4257 }
4258 static char *f (char * (*g) (char **, int), char **p, ...)
4259 {
4260 char *s;
4261 va_list v;
4262 va_start (v,p);
4263 s = g (p, va_arg (v,int));
4264 va_end (v);
4265 return s;
4266 }
4268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4269 function prototypes and stuff, but not '\xHH' hex character constants.
4270 These don't provoke an error unfortunately, instead are silently treated
4271 as 'x'. The following induces an error, until -std is added to get
4272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4273 array size at least. It's necessary to write '\x00'==0 to get something
4274 that's true only with -std. */
4275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4278 inside strings and character constants. */
4279 #define FOO(x) 'x'
4280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4286 int argc;
4287 char **argv;
4288 int
4289 main ()
4290 {
4291 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4298 do
4299 CC="$ac_save_CC $ac_arg"
4300 rm -f conftest.$ac_objext
4301 if { (ac_try="$ac_compile"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4307 $as_echo "$ac_try_echo") >&5
4308 (eval "$ac_compile") 2>conftest.er1
4309 ac_status=$?
4310 grep -v '^ *+' conftest.er1 >conftest.err
4311 rm -f conftest.er1
4312 cat conftest.err >&5
4313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest.$ac_objext; then
4318 ac_cv_prog_cc_c89=$ac_arg
4319 else
4320 $as_echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4324 fi
4326 rm -f core conftest.err conftest.$ac_objext
4327 test "x$ac_cv_prog_cc_c89" != "xno" && break
4328 done
4329 rm -f conftest.$ac_ext
4330 CC=$ac_save_CC
4332 fi
4333 # AC_CACHE_VAL
4334 case "x$ac_cv_prog_cc_c89" in
4335 x)
4336 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4337 $as_echo "none needed" >&6; } ;;
4338 xno)
4339 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4340 $as_echo "unsupported" >&6; } ;;
4341 *)
4342 CC="$CC $ac_cv_prog_cc_c89"
4343 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4345 esac
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354 depcc="$CC" am_compiler_list=
4356 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4357 $as_echo_n "checking dependency style of $depcc... " >&6; }
4358 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4362 # We make a subdir and do the tests there. Otherwise we can end up
4363 # making bogus files that we don't know about and never remove. For
4364 # instance it was reported that on HP-UX the gcc test will end up
4365 # making a dummy file named `D' -- because `-MD' means `put the output
4366 # in D'.
4367 mkdir conftest.dir
4368 # Copy depcomp to subdir because otherwise we won't find it if we're
4369 # using a relative directory.
4370 cp "$am_depcomp" conftest.dir
4371 cd conftest.dir
4372 # We will build objects and dependencies in a subdirectory because
4373 # it helps to detect inapplicable dependency modes. For instance
4374 # both Tru64's cc and ICC support -MD to output dependencies as a
4375 # side effect of compilation, but ICC will put the dependencies in
4376 # the current directory while Tru64 will put them in the object
4377 # directory.
4378 mkdir sub
4380 am_cv_CC_dependencies_compiler_type=none
4381 if test "$am_compiler_list" = ""; then
4382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4383 fi
4384 for depmode in $am_compiler_list; do
4385 # Setup a source with many dependencies, because some compilers
4386 # like to wrap large dependency lists on column 80 (with \), and
4387 # we should not choose a depcomp mode which is confused by this.
4388 #
4389 # We need to recreate these files for each test, as the compiler may
4390 # overwrite some of them when testing with obscure command lines.
4391 # This happens at least with the AIX C compiler.
4392 : > sub/conftest.c
4393 for i in 1 2 3 4 5 6; do
4394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4396 # Solaris 8's {/usr,}/bin/sh.
4397 touch sub/conftst$i.h
4398 done
4399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4401 case $depmode in
4402 nosideeffect)
4403 # after this tag, mechanisms are not by side-effect, so they'll
4404 # only be used when explicitly requested
4405 if test "x$enable_dependency_tracking" = xyes; then
4406 continue
4407 else
4408 break
4409 fi
4410 ;;
4411 none) break ;;
4412 esac
4413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4414 # mode. It turns out that the SunPro C++ compiler does not properly
4415 # handle `-M -o', and we need to detect this.
4416 if depmode=$depmode \
4417 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4419 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4420 >/dev/null 2>conftest.err &&
4421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424 # icc doesn't choke on unknown options, it will just issue warnings
4425 # or remarks (even with -Werror). So we grep stderr for any message
4426 # that says an option was ignored or not supported.
4427 # When given -MP, icc 7.0 and 7.1 complain thusly:
4428 # icc: Command line warning: ignoring option '-M'; no argument required
4429 # The diagnosis changed in icc 8.0:
4430 # icc: Command line remark: option '-MP' not supported
4431 if (grep 'ignoring option' conftest.err ||
4432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433 am_cv_CC_dependencies_compiler_type=$depmode
4434 break
4435 fi
4436 fi
4437 done
4439 cd ..
4440 rm -rf conftest.dir
4441 else
4442 am_cv_CC_dependencies_compiler_type=none
4443 fi
4445 fi
4446 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4447 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4452 if
4453 test "x$enable_dependency_tracking" != xno \
4454 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4455 am__fastdepCC_TRUE=
4456 am__fastdepCC_FALSE='#'
4457 else
4458 am__fastdepCC_TRUE='#'
4459 am__fastdepCC_FALSE=
4460 fi
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468 if test -n "$ac_tool_prefix"; then
4469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if test "${ac_cv_prog_CC+set}" = set; then
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$CC"; then
4477 ac_cv_prog_CC="$CC" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490 done
4491 done
4492 IFS=$as_save_IFS
4494 fi
4495 fi
4496 CC=$ac_cv_prog_CC
4497 if test -n "$CC"; then
4498 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4499 $as_echo "$CC" >&6; }
4500 else
4501 { $as_echo "$as_me:$LINENO: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4506 fi
4507 if test -z "$ac_cv_prog_CC"; then
4508 ac_ct_CC=$CC
4509 # Extract the first word of "gcc", so it can be a program name with args.
4510 set dummy gcc; ac_word=$2
4511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$ac_ct_CC"; then
4517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_ac_ct_CC="gcc"
4527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4534 fi
4535 fi
4536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4537 if test -n "$ac_ct_CC"; then
4538 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4539 $as_echo "$ac_ct_CC" >&6; }
4540 else
4541 { $as_echo "$as_me:$LINENO: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4545 if test "x$ac_ct_CC" = x; then
4546 CC=""
4547 else
4548 case $cross_compiling:$ac_tool_warned in
4549 yes:)
4550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4553 esac
4554 CC=$ac_ct_CC
4555 fi
4556 else
4557 CC="$ac_cv_prog_CC"
4558 fi
4560 if test -z "$CC"; then
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4563 set dummy ${ac_tool_prefix}cc; ac_word=$2
4564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_CC+set}" = set; then
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$CC"; then
4570 ac_cv_prog_CC="$CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_CC="${ac_tool_prefix}cc"
4580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4587 fi
4588 fi
4589 CC=$ac_cv_prog_CC
4590 if test -n "$CC"; then
4591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4592 $as_echo "$CC" >&6; }
4593 else
4594 { $as_echo "$as_me:$LINENO: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4599 fi
4600 fi
4601 if test -z "$CC"; then
4602 # Extract the first word of "cc", so it can be a program name with args.
4603 set dummy cc; ac_word=$2
4604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_CC+set}" = set; then
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4611 else
4612 ac_prog_rejected=no
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4621 ac_prog_rejected=yes
4622 continue
4623 fi
4624 ac_cv_prog_CC="cc"
4625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4632 if test $ac_prog_rejected = yes; then
4633 # We found a bogon in the path, so make sure we never use it.
4634 set dummy $ac_cv_prog_CC
4635 shift
4636 if test $# != 0; then
4637 # We chose a different compiler from the bogus one.
4638 # However, it has the same basename, so the bogon will be chosen
4639 # first if we set CC to just the basename; use the full file name.
4640 shift
4641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4642 fi
4643 fi
4644 fi
4645 fi
4646 CC=$ac_cv_prog_CC
4647 if test -n "$CC"; then
4648 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4649 $as_echo "$CC" >&6; }
4650 else
4651 { $as_echo "$as_me:$LINENO: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4656 fi
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in cl.exe
4660 do
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_CC+set}" = set; then
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$CC"; then
4669 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4686 fi
4687 fi
4688 CC=$ac_cv_prog_CC
4689 if test -n "$CC"; then
4690 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4691 $as_echo "$CC" >&6; }
4692 else
4693 { $as_echo "$as_me:$LINENO: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4698 test -n "$CC" && break
4699 done
4700 fi
4701 if test -z "$CC"; then
4702 ac_ct_CC=$CC
4703 for ac_prog in cl.exe
4704 do
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if test -n "$ac_ct_CC"; then
4713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_ac_ct_CC="$ac_prog"
4723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4730 fi
4731 fi
4732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4733 if test -n "$ac_ct_CC"; then
4734 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4735 $as_echo "$ac_ct_CC" >&6; }
4736 else
4737 { $as_echo "$as_me:$LINENO: result: no" >&5
4738 $as_echo "no" >&6; }
4739 fi
4742 test -n "$ac_ct_CC" && break
4743 done
4745 if test "x$ac_ct_CC" = x; then
4746 CC=""
4747 else
4748 case $cross_compiling:$ac_tool_warned in
4749 yes:)
4750 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4752 ac_tool_warned=yes ;;
4753 esac
4754 CC=$ac_ct_CC
4755 fi
4756 fi
4758 fi
4761 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4763 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4764 See \`config.log' for more details." >&5
4765 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4766 See \`config.log' for more details." >&2;}
4767 { (exit 1); exit 1; }; }; }
4769 # Provide some information about the compiler.
4770 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4771 set X $ac_compile
4772 ac_compiler=$2
4773 { (ac_try="$ac_compiler --version >&5"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780 (eval "$ac_compiler --version >&5") 2>&5
4781 ac_status=$?
4782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }
4784 { (ac_try="$ac_compiler -v >&5"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4790 $as_echo "$ac_try_echo") >&5
4791 (eval "$ac_compiler -v >&5") 2>&5
4792 ac_status=$?
4793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }
4795 { (ac_try="$ac_compiler -V >&5"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801 $as_echo "$ac_try_echo") >&5
4802 (eval "$ac_compiler -V >&5") 2>&5
4803 ac_status=$?
4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }
4807 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4809 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4819 int
4820 main ()
4821 {
4822 #ifndef __GNUC__
4823 choke me
4824 #endif
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 rm -f conftest.$ac_objext
4831 if { (ac_try="$ac_compile"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4837 $as_echo "$ac_try_echo") >&5
4838 (eval "$ac_compile") 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest.$ac_objext; then
4848 ac_compiler_gnu=yes
4849 else
4850 $as_echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 ac_compiler_gnu=no
4854 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4859 fi
4860 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4862 if test $ac_compiler_gnu = yes; then
4863 GCC=yes
4864 else
4865 GCC=
4866 fi
4867 ac_test_CFLAGS=${CFLAGS+set}
4868 ac_save_CFLAGS=$CFLAGS
4869 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4871 if test "${ac_cv_prog_cc_g+set}" = set; then
4872 $as_echo_n "(cached) " >&6
4873 else
4874 ac_save_c_werror_flag=$ac_c_werror_flag
4875 ac_c_werror_flag=yes
4876 ac_cv_prog_cc_g=no
4877 CFLAGS="-g"
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4885 int
4886 main ()
4887 {
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 rm -f conftest.$ac_objext
4894 if { (ac_try="$ac_compile"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4900 $as_echo "$ac_try_echo") >&5
4901 (eval "$ac_compile") 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest.$ac_objext; then
4911 ac_cv_prog_cc_g=yes
4912 else
4913 $as_echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 CFLAGS=""
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4924 int
4925 main ()
4926 {
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4934 case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937 esac
4938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4939 $as_echo "$ac_try_echo") >&5
4940 (eval "$ac_compile") 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } && {
4947 test -z "$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4949 } && test -s conftest.$ac_objext; then
4950 :
4951 else
4952 $as_echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 ac_c_werror_flag=$ac_save_c_werror_flag
4956 CFLAGS="-g"
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4964 int
4965 main ()
4966 {
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (ac_try="$ac_compile"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4979 $as_echo "$ac_try_echo") >&5
4980 (eval "$ac_compile") 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } && {
4987 test -z "$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 } && test -s conftest.$ac_objext; then
4990 ac_cv_prog_cc_g=yes
4991 else
4992 $as_echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4996 fi
4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 ac_c_werror_flag=$ac_save_c_werror_flag
5006 fi
5007 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5008 $as_echo "$ac_cv_prog_cc_g" >&6; }
5009 if test "$ac_test_CFLAGS" = set; then
5010 CFLAGS=$ac_save_CFLAGS
5011 elif test $ac_cv_prog_cc_g = yes; then
5012 if test "$GCC" = yes; then
5013 CFLAGS="-g -O2"
5014 else
5015 CFLAGS="-g"
5016 fi
5017 else
5018 if test "$GCC" = yes; then
5019 CFLAGS="-O2"
5020 else
5021 CFLAGS=
5022 fi
5023 fi
5024 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5025 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5026 if test "${ac_cv_prog_cc_c89+set}" = set; then
5027 $as_echo_n "(cached) " >&6
5028 else
5029 ac_cv_prog_cc_c89=no
5030 ac_save_CC=$CC
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <stdarg.h>
5038 #include <stdio.h>
5039 #include <sys/types.h>
5040 #include <sys/stat.h>
5041 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5042 struct buf { int x; };
5043 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5044 static char *e (p, i)
5045 char **p;
5046 int i;
5047 {
5048 return p[i];
5049 }
5050 static char *f (char * (*g) (char **, int), char **p, ...)
5051 {
5052 char *s;
5053 va_list v;
5054 va_start (v,p);
5055 s = g (p, va_arg (v,int));
5056 va_end (v);
5057 return s;
5058 }
5060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5061 function prototypes and stuff, but not '\xHH' hex character constants.
5062 These don't provoke an error unfortunately, instead are silently treated
5063 as 'x'. The following induces an error, until -std is added to get
5064 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5065 array size at least. It's necessary to write '\x00'==0 to get something
5066 that's true only with -std. */
5067 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5069 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5070 inside strings and character constants. */
5071 #define FOO(x) 'x'
5072 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5074 int test (int i, double x);
5075 struct s1 {int (*f) (int a);};
5076 struct s2 {int (*f) (double a);};
5077 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5078 int argc;
5079 char **argv;
5080 int
5081 main ()
5082 {
5083 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5089 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5090 do
5091 CC="$ac_save_CC $ac_arg"
5092 rm -f conftest.$ac_objext
5093 if { (ac_try="$ac_compile"
5094 case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097 esac
5098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5099 $as_echo "$ac_try_echo") >&5
5100 (eval "$ac_compile") 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } && {
5107 test -z "$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest.$ac_objext; then
5110 ac_cv_prog_cc_c89=$ac_arg
5111 else
5112 $as_echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5116 fi
5118 rm -f core conftest.err conftest.$ac_objext
5119 test "x$ac_cv_prog_cc_c89" != "xno" && break
5120 done
5121 rm -f conftest.$ac_ext
5122 CC=$ac_save_CC
5124 fi
5125 # AC_CACHE_VAL
5126 case "x$ac_cv_prog_cc_c89" in
5127 x)
5128 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5129 $as_echo "none needed" >&6; } ;;
5130 xno)
5131 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5132 $as_echo "unsupported" >&6; } ;;
5133 *)
5134 CC="$CC $ac_cv_prog_cc_c89"
5135 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5136 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5137 esac
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 depcc="$CC" am_compiler_list=
5148 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5149 $as_echo_n "checking dependency style of $depcc... " >&6; }
5150 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5154 # We make a subdir and do the tests there. Otherwise we can end up
5155 # making bogus files that we don't know about and never remove. For
5156 # instance it was reported that on HP-UX the gcc test will end up
5157 # making a dummy file named `D' -- because `-MD' means `put the output
5158 # in D'.
5159 mkdir conftest.dir
5160 # Copy depcomp to subdir because otherwise we won't find it if we're
5161 # using a relative directory.
5162 cp "$am_depcomp" conftest.dir
5163 cd conftest.dir
5164 # We will build objects and dependencies in a subdirectory because
5165 # it helps to detect inapplicable dependency modes. For instance
5166 # both Tru64's cc and ICC support -MD to output dependencies as a
5167 # side effect of compilation, but ICC will put the dependencies in
5168 # the current directory while Tru64 will put them in the object
5169 # directory.
5170 mkdir sub
5172 am_cv_CC_dependencies_compiler_type=none
5173 if test "$am_compiler_list" = ""; then
5174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5175 fi
5176 for depmode in $am_compiler_list; do
5177 # Setup a source with many dependencies, because some compilers
5178 # like to wrap large dependency lists on column 80 (with \), and
5179 # we should not choose a depcomp mode which is confused by this.
5180 #
5181 # We need to recreate these files for each test, as the compiler may
5182 # overwrite some of them when testing with obscure command lines.
5183 # This happens at least with the AIX C compiler.
5184 : > sub/conftest.c
5185 for i in 1 2 3 4 5 6; do
5186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5188 # Solaris 8's {/usr,}/bin/sh.
5189 touch sub/conftst$i.h
5190 done
5191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5193 case $depmode in
5194 nosideeffect)
5195 # after this tag, mechanisms are not by side-effect, so they'll
5196 # only be used when explicitly requested
5197 if test "x$enable_dependency_tracking" = xyes; then
5198 continue
5199 else
5200 break
5201 fi
5202 ;;
5203 none) break ;;
5204 esac
5205 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5206 # mode. It turns out that the SunPro C++ compiler does not properly
5207 # handle `-M -o', and we need to detect this.
5208 if depmode=$depmode \
5209 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5210 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5211 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5212 >/dev/null 2>conftest.err &&
5213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5214 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5216 # icc doesn't choke on unknown options, it will just issue warnings
5217 # or remarks (even with -Werror). So we grep stderr for any message
5218 # that says an option was ignored or not supported.
5219 # When given -MP, icc 7.0 and 7.1 complain thusly:
5220 # icc: Command line warning: ignoring option '-M'; no argument required
5221 # The diagnosis changed in icc 8.0:
5222 # icc: Command line remark: option '-MP' not supported
5223 if (grep 'ignoring option' conftest.err ||
5224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5225 am_cv_CC_dependencies_compiler_type=$depmode
5226 break
5227 fi
5228 fi
5229 done
5231 cd ..
5232 rm -rf conftest.dir
5233 else
5234 am_cv_CC_dependencies_compiler_type=none
5235 fi
5237 fi
5238 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5239 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5240 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5244 if
5245 test "x$enable_dependency_tracking" != xno \
5246 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5247 am__fastdepCC_TRUE=
5248 am__fastdepCC_FALSE='#'
5249 else
5250 am__fastdepCC_TRUE='#'
5251 am__fastdepCC_FALSE=
5252 fi
5256 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5258 ac_ext=m
5259 ac_cpp='$OBJCPP $CPPFLAGS'
5260 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in gcc objcc objc cc CC
5265 do
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_prog_OBJC+set}" = set; then
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if test -n "$OBJC"; then
5274 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287 done
5288 done
5289 IFS=$as_save_IFS
5291 fi
5292 fi
5293 OBJC=$ac_cv_prog_OBJC
5294 if test -n "$OBJC"; then
5295 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5296 $as_echo "$OBJC" >&6; }
5297 else
5298 { $as_echo "$as_me:$LINENO: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5303 test -n "$OBJC" && break
5304 done
5305 fi
5306 if test -z "$OBJC"; then
5307 ac_ct_OBJC=$OBJC
5308 for ac_prog in gcc objcc objc cc CC
5309 do
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$ac_ct_OBJC"; then
5318 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5335 fi
5336 fi
5337 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5338 if test -n "$ac_ct_OBJC"; then
5339 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5340 $as_echo "$ac_ct_OBJC" >&6; }
5341 else
5342 { $as_echo "$as_me:$LINENO: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5347 test -n "$ac_ct_OBJC" && break
5348 done
5350 if test "x$ac_ct_OBJC" = x; then
5351 OBJC="gcc"
5352 else
5353 case $cross_compiling:$ac_tool_warned in
5354 yes:)
5355 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5358 esac
5359 OBJC=$ac_ct_OBJC
5360 fi
5361 fi
5363 # Provide some information about the compiler.
5364 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5365 set X $ac_compile
5366 ac_compiler=$2
5367 { (ac_try="$ac_compiler --version >&5"
5368 case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371 esac
5372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373 $as_echo "$ac_try_echo") >&5
5374 (eval "$ac_compiler --version >&5") 2>&5
5375 ac_status=$?
5376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }
5378 { (ac_try="$ac_compiler -v >&5"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384 $as_echo "$ac_try_echo") >&5
5385 (eval "$ac_compiler -v >&5") 2>&5
5386 ac_status=$?
5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }
5389 { (ac_try="$ac_compiler -V >&5"
5390 case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393 esac
5394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5395 $as_echo "$ac_try_echo") >&5
5396 (eval "$ac_compiler -V >&5") 2>&5
5397 ac_status=$?
5398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }
5401 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5402 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5403 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5404 $as_echo_n "(cached) " >&6
5405 else
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5413 int
5414 main ()
5415 {
5416 #ifndef __GNUC__
5417 choke me
5418 #endif
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5431 $as_echo "$ac_try_echo") >&5
5432 (eval "$ac_compile") 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && {
5439 test -z "$ac_objc_werror_flag" ||
5440 test ! -s conftest.err
5441 } && test -s conftest.$ac_objext; then
5442 ac_compiler_gnu=yes
5443 else
5444 $as_echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_compiler_gnu=no
5448 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5453 fi
5454 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5455 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5456 if test $ac_compiler_gnu = yes; then
5457 GOBJC=yes
5458 else
5459 GOBJC=
5460 fi
5461 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5462 ac_save_OBJCFLAGS=$OBJCFLAGS
5463 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5464 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5465 if test "${ac_cv_prog_objc_g+set}" = set; then
5466 $as_echo_n "(cached) " >&6
5467 else
5468 ac_save_objc_werror_flag=$ac_objc_werror_flag
5469 ac_objc_werror_flag=yes
5470 ac_cv_prog_objc_g=no
5471 OBJCFLAGS="-g"
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5479 int
5480 main ()
5481 {
5483 ;
5484 return 0;
5485 }
5486 _ACEOF
5487 rm -f conftest.$ac_objext
5488 if { (ac_try="$ac_compile"
5489 case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5494 $as_echo "$ac_try_echo") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_objc_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.$ac_objext; then
5505 ac_cv_prog_objc_g=yes
5506 else
5507 $as_echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 OBJCFLAGS=""
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5518 int
5519 main ()
5520 {
5522 ;
5523 return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5533 $as_echo "$ac_try_echo") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && {
5541 test -z "$ac_objc_werror_flag" ||
5542 test ! -s conftest.err
5543 } && test -s conftest.$ac_objext; then
5544 :
5545 else
5546 $as_echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_objc_werror_flag=$ac_save_objc_werror_flag
5550 OBJCFLAGS="-g"
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5558 int
5559 main ()
5560 {
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573 $as_echo "$ac_try_echo") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_objc_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 ac_cv_prog_objc_g=yes
5585 else
5586 $as_echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5590 fi
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 fi
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 ac_objc_werror_flag=$ac_save_objc_werror_flag
5600 fi
5601 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5602 $as_echo "$ac_cv_prog_objc_g" >&6; }
5603 if test "$ac_test_OBJCFLAGS" = set; then
5604 OBJCFLAGS=$ac_save_OBJCFLAGS
5605 elif test $ac_cv_prog_objc_g = yes; then
5606 if test "$GOBJC" = yes; then
5607 OBJCFLAGS="-g -O2"
5608 else
5609 OBJCFLAGS="-g"
5610 fi
5611 else
5612 if test "$GOBJC" = yes; then
5613 OBJCFLAGS="-O2"
5614 else
5615 OBJCFLAGS=
5616 fi
5617 fi
5618 ac_ext=c
5619 ac_cpp='$CPP $CPPFLAGS'
5620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5626 if test "${ac_cv_path_SED+set}" = set; then
5627 $as_echo_n "(cached) " >&6
5628 else
5629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5630 for ac_i in 1 2 3 4 5 6 7; do
5631 ac_script="$ac_script$as_nl$ac_script"
5632 done
5633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5634 $as_unset ac_script || ac_script=
5635 if test -z "$SED"; then
5636 ac_path_SED_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in sed gsed; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5646 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5647 # Check for GNU ac_path_SED and select it if it is found.
5648 # Check for GNU $ac_path_SED
5649 case `"$ac_path_SED" --version 2>&1` in
5650 *GNU*)
5651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5652 *)
5653 ac_count=0
5654 $as_echo_n 0123456789 >"conftest.in"
5655 while :
5656 do
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 $as_echo '' >> "conftest.nl"
5661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 ac_count=`expr $ac_count + 1`
5664 if test $ac_count -gt ${ac_path_SED_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_SED="$ac_path_SED"
5667 ac_path_SED_max=$ac_count
5668 fi
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5675 $ac_path_SED_found && break 3
5676 done
5677 done
5678 done
5679 IFS=$as_save_IFS
5680 if test -z "$ac_cv_path_SED"; then
5681 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5682 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5683 { (exit 1); exit 1; }; }
5684 fi
5685 else
5686 ac_cv_path_SED=$SED
5687 fi
5689 fi
5690 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5691 $as_echo "$ac_cv_path_SED" >&6; }
5692 SED="$ac_cv_path_SED"
5693 rm -f conftest.sed
5695 # By default we simply use the C compiler to build assembly code.
5697 test "${CCAS+set}" = set || CCAS=$CC
5698 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5702 ac_ext=c
5703 ac_cpp='$CPP $CPPFLAGS'
5704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5707 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5708 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5709 # On Suns, sometimes $CPP names a directory.
5710 if test -n "$CPP" && test -d "$CPP"; then
5711 CPP=
5712 fi
5713 if test -z "$CPP"; then
5714 if test "${ac_cv_prog_CPP+set}" = set; then
5715 $as_echo_n "(cached) " >&6
5716 else
5717 # Double quotes because CPP needs to be expanded
5718 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5719 do
5720 ac_preproc_ok=false
5721 for ac_c_preproc_warn_flag in '' yes
5722 do
5723 # Use a header file that comes with gcc, so configuring glibc
5724 # with a fresh cross-compiler works.
5725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5726 # <limits.h> exists even on freestanding compilers.
5727 # On the NeXT, cc -E runs the code through the compiler's parser,
5728 # not just through cpp. "Syntax error" is here to catch this case.
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #ifdef __STDC__
5736 # include <limits.h>
5737 #else
5738 # include <assert.h>
5739 #endif
5740 Syntax error
5741 _ACEOF
5742 if { (ac_try="$ac_cpp conftest.$ac_ext"
5743 case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746 esac
5747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5748 $as_echo "$ac_try_echo") >&5
5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5750 ac_status=$?
5751 grep -v '^ *+' conftest.er1 >conftest.err
5752 rm -f conftest.er1
5753 cat conftest.err >&5
5754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } >/dev/null && {
5756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5757 test ! -s conftest.err
5758 }; then
5759 :
5760 else
5761 $as_echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 # Broken: fails on valid input.
5765 continue
5766 fi
5768 rm -f conftest.err conftest.$ac_ext
5770 # OK, works on sane cases. Now check whether nonexistent headers
5771 # can be detected and how.
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <ac_nonexistent.h>
5779 _ACEOF
5780 if { (ac_try="$ac_cpp conftest.$ac_ext"
5781 case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784 esac
5785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5786 $as_echo "$ac_try_echo") >&5
5787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } >/dev/null && {
5794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 }; then
5797 # Broken: success on invalid input.
5798 continue
5799 else
5800 $as_echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 # Passes both tests.
5804 ac_preproc_ok=:
5805 break
5806 fi
5808 rm -f conftest.err conftest.$ac_ext
5810 done
5811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5812 rm -f conftest.err conftest.$ac_ext
5813 if $ac_preproc_ok; then
5814 break
5815 fi
5817 done
5818 ac_cv_prog_CPP=$CPP
5820 fi
5821 CPP=$ac_cv_prog_CPP
5822 else
5823 ac_cv_prog_CPP=$CPP
5824 fi
5825 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5826 $as_echo "$CPP" >&6; }
5827 ac_preproc_ok=false
5828 for ac_c_preproc_warn_flag in '' yes
5829 do
5830 # Use a header file that comes with gcc, so configuring glibc
5831 # with a fresh cross-compiler works.
5832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5833 # <limits.h> exists even on freestanding compilers.
5834 # On the NeXT, cc -E runs the code through the compiler's parser,
5835 # not just through cpp. "Syntax error" is here to catch this case.
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 #ifdef __STDC__
5843 # include <limits.h>
5844 #else
5845 # include <assert.h>
5846 #endif
5847 Syntax error
5848 _ACEOF
5849 if { (ac_try="$ac_cpp conftest.$ac_ext"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5855 $as_echo "$ac_try_echo") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev/null && {
5863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 }; then
5866 :
5867 else
5868 $as_echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 # Broken: fails on valid input.
5872 continue
5873 fi
5875 rm -f conftest.err conftest.$ac_ext
5877 # OK, works on sane cases. Now check whether nonexistent headers
5878 # can be detected and how.
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <ac_nonexistent.h>
5886 _ACEOF
5887 if { (ac_try="$ac_cpp conftest.$ac_ext"
5888 case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891 esac
5892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5893 $as_echo "$ac_try_echo") >&5
5894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } >/dev/null && {
5901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5903 }; then
5904 # Broken: success on invalid input.
5905 continue
5906 else
5907 $as_echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 # Passes both tests.
5911 ac_preproc_ok=:
5912 break
5913 fi
5915 rm -f conftest.err conftest.$ac_ext
5917 done
5918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5919 rm -f conftest.err conftest.$ac_ext
5920 if $ac_preproc_ok; then
5921 :
5922 else
5923 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5926 See \`config.log' for more details." >&5
5927 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5928 See \`config.log' for more details." >&2;}
5929 { (exit 1); exit 1; }; }; }
5930 fi
5932 ac_ext=c
5933 ac_cpp='$CPP $CPPFLAGS'
5934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5939 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5940 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5941 if test "${ac_cv_path_GREP+set}" = set; then
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -z "$GREP"; then
5945 ac_path_GREP_found=false
5946 # Loop through the user's path and test for each of PROGNAME-LIST
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5949 do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_prog in grep ggrep; do
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5955 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5956 # Check for GNU ac_path_GREP and select it if it is found.
5957 # Check for GNU $ac_path_GREP
5958 case `"$ac_path_GREP" --version 2>&1` in
5959 *GNU*)
5960 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5961 *)
5962 ac_count=0
5963 $as_echo_n 0123456789 >"conftest.in"
5964 while :
5965 do
5966 cat "conftest.in" "conftest.in" >"conftest.tmp"
5967 mv "conftest.tmp" "conftest.in"
5968 cp "conftest.in" "conftest.nl"
5969 $as_echo 'GREP' >> "conftest.nl"
5970 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5972 ac_count=`expr $ac_count + 1`
5973 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5974 # Best one so far, save it but keep looking for a better one
5975 ac_cv_path_GREP="$ac_path_GREP"
5976 ac_path_GREP_max=$ac_count
5977 fi
5978 # 10*(2^10) chars as input seems more than enough
5979 test $ac_count -gt 10 && break
5980 done
5981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5982 esac
5984 $ac_path_GREP_found && break 3
5985 done
5986 done
5987 done
5988 IFS=$as_save_IFS
5989 if test -z "$ac_cv_path_GREP"; then
5990 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5991 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5992 { (exit 1); exit 1; }; }
5993 fi
5994 else
5995 ac_cv_path_GREP=$GREP
5996 fi
5998 fi
5999 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6000 $as_echo "$ac_cv_path_GREP" >&6; }
6001 GREP="$ac_cv_path_GREP"
6004 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6005 $as_echo_n "checking for egrep... " >&6; }
6006 if test "${ac_cv_path_EGREP+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6010 then ac_cv_path_EGREP="$GREP -E"
6011 else
6012 if test -z "$EGREP"; then
6013 ac_path_EGREP_found=false
6014 # Loop through the user's path and test for each of PROGNAME-LIST
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6017 do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_prog in egrep; do
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6023 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6024 # Check for GNU ac_path_EGREP and select it if it is found.
6025 # Check for GNU $ac_path_EGREP
6026 case `"$ac_path_EGREP" --version 2>&1` in
6027 *GNU*)
6028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6029 *)
6030 ac_count=0
6031 $as_echo_n 0123456789 >"conftest.in"
6032 while :
6033 do
6034 cat "conftest.in" "conftest.in" >"conftest.tmp"
6035 mv "conftest.tmp" "conftest.in"
6036 cp "conftest.in" "conftest.nl"
6037 $as_echo 'EGREP' >> "conftest.nl"
6038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6040 ac_count=`expr $ac_count + 1`
6041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6042 # Best one so far, save it but keep looking for a better one
6043 ac_cv_path_EGREP="$ac_path_EGREP"
6044 ac_path_EGREP_max=$ac_count
6045 fi
6046 # 10*(2^10) chars as input seems more than enough
6047 test $ac_count -gt 10 && break
6048 done
6049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6050 esac
6052 $ac_path_EGREP_found && break 3
6053 done
6054 done
6055 done
6056 IFS=$as_save_IFS
6057 if test -z "$ac_cv_path_EGREP"; then
6058 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6059 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6060 { (exit 1); exit 1; }; }
6061 fi
6062 else
6063 ac_cv_path_EGREP=$EGREP
6064 fi
6066 fi
6067 fi
6068 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6069 $as_echo "$ac_cv_path_EGREP" >&6; }
6070 EGREP="$ac_cv_path_EGREP"
6073 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6074 $as_echo_n "checking for ANSI C header files... " >&6; }
6075 if test "${ac_cv_header_stdc+set}" = set; then
6076 $as_echo_n "(cached) " >&6
6077 else
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 #include <stdlib.h>
6085 #include <stdarg.h>
6086 #include <string.h>
6087 #include <float.h>
6089 int
6090 main ()
6091 {
6093 ;
6094 return 0;
6095 }
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.$ac_objext; then
6115 ac_cv_header_stdc=yes
6116 else
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6120 ac_cv_header_stdc=no
6121 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 if test $ac_cv_header_stdc = yes; then
6126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <string.h>
6135 _ACEOF
6136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6137 $EGREP "memchr" >/dev/null 2>&1; then
6138 :
6139 else
6140 ac_cv_header_stdc=no
6141 fi
6142 rm -f conftest*
6144 fi
6146 if test $ac_cv_header_stdc = yes; then
6147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <stdlib.h>
6156 _ACEOF
6157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6158 $EGREP "free" >/dev/null 2>&1; then
6159 :
6160 else
6161 ac_cv_header_stdc=no
6162 fi
6163 rm -f conftest*
6165 fi
6167 if test $ac_cv_header_stdc = yes; then
6168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6169 if test "$cross_compiling" = yes; then
6170 :
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <ctype.h>
6179 #include <stdlib.h>
6180 #if ((' ' & 0x0FF) == 0x020)
6181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6183 #else
6184 # define ISLOWER(c) \
6185 (('a' <= (c) && (c) <= 'i') \
6186 || ('j' <= (c) && (c) <= 'r') \
6187 || ('s' <= (c) && (c) <= 'z'))
6188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6189 #endif
6191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6192 int
6193 main ()
6194 {
6195 int i;
6196 for (i = 0; i < 256; i++)
6197 if (XOR (islower (i), ISLOWER (i))
6198 || toupper (i) != TOUPPER (i))
6199 return 2;
6200 return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest$ac_exeext
6204 if { (ac_try="$ac_link"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_link") 2>&5
6212 ac_status=$?
6213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6215 { (case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218 esac
6219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6220 $as_echo "$ac_try_echo") >&5
6221 (eval "$ac_try") 2>&5
6222 ac_status=$?
6223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 :
6226 else
6227 $as_echo "$as_me: program exited with status $ac_status" >&5
6228 $as_echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ( exit $ac_status )
6232 ac_cv_header_stdc=no
6233 fi
6234 rm -rf conftest.dSYM
6235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6236 fi
6239 fi
6240 fi
6241 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6242 $as_echo "$ac_cv_header_stdc" >&6; }
6243 if test $ac_cv_header_stdc = yes; then
6245 cat >>confdefs.h <<\_ACEOF
6246 #define STDC_HEADERS 1
6247 _ACEOF
6249 fi
6251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6262 inttypes.h stdint.h unistd.h
6263 do
6264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6266 $as_echo_n "checking for $ac_header... " >&6; }
6267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6268 $as_echo_n "(cached) " >&6
6269 else
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 $ac_includes_default
6278 #include <$ac_header>
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (ac_try="$ac_compile"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6287 $as_echo "$ac_try_echo") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest.$ac_objext; then
6298 eval "$as_ac_Header=yes"
6299 else
6300 $as_echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 eval "$as_ac_Header=no"
6304 fi
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 ac_res=`eval 'as_val=${'$as_ac_Header'}
6309 $as_echo "$as_val"'`
6310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6311 $as_echo "$ac_res" >&6; }
6312 as_val=`eval 'as_val=${'$as_ac_Header'}
6313 $as_echo "$as_val"'`
6314 if test "x$as_val" = x""yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6319 fi
6321 done
6324 # The cast to long int works around a bug in the HP C Compiler
6325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6327 # This bug is HP SR number 8606223364.
6328 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6329 $as_echo_n "checking size of void *... " >&6; }
6330 if test "${ac_cv_sizeof_void_p+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test "$cross_compiling" = yes; then
6334 # Depending upon the size, compute the lo and hi bounds.
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6342 int
6343 main ()
6344 {
6345 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6346 test_array [0] = 0
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6370 ac_lo=0 ac_mid=0
6371 while :; do
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 $ac_includes_default
6379 int
6380 main ()
6381 {
6382 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6383 test_array [0] = 0
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6391 case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394 esac
6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396 $as_echo "$ac_try_echo") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_hi=$ac_mid; break
6408 else
6409 $as_echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_lo=`expr $ac_mid + 1`
6413 if test $ac_lo -le $ac_mid; then
6414 ac_lo= ac_hi=
6415 break
6416 fi
6417 ac_mid=`expr 2 '*' $ac_mid + 1`
6418 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 done
6422 else
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6433 int
6434 main ()
6435 {
6436 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6437 test_array [0] = 0
6439 ;
6440 return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (ac_try="$ac_compile"
6445 case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448 esac
6449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6450 $as_echo "$ac_try_echo") >&5
6451 (eval "$ac_compile") 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } && {
6458 test -z "$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6460 } && test -s conftest.$ac_objext; then
6461 ac_hi=-1 ac_mid=-1
6462 while :; do
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6470 int
6471 main ()
6472 {
6473 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6474 test_array [0] = 0
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 ac_lo=$ac_mid; break
6499 else
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 ac_hi=`expr '(' $ac_mid ')' - 1`
6504 if test $ac_mid -le $ac_hi; then
6505 ac_lo= ac_hi=
6506 break
6507 fi
6508 ac_mid=`expr 2 '*' $ac_mid`
6509 fi
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 done
6513 else
6514 $as_echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_lo= ac_hi=
6518 fi
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 fi
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 # Binary search between lo and hi bounds.
6525 while test "x$ac_lo" != "x$ac_hi"; do
6526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6534 int
6535 main ()
6536 {
6537 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6538 test_array [0] = 0
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_hi=$ac_mid
6563 else
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_lo=`expr '(' $ac_mid ')' + 1`
6568 fi
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 done
6572 case $ac_lo in
6573 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6574 '') if test "$ac_cv_type_void_p" = yes; then
6575 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6577 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6578 See \`config.log' for more details." >&5
6579 $as_echo "$as_me: error: cannot compute sizeof (void *)
6580 See \`config.log' for more details." >&2;}
6581 { (exit 77); exit 77; }; }; }
6582 else
6583 ac_cv_sizeof_void_p=0
6584 fi ;;
6585 esac
6586 else
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6594 static long int longval () { return (long int) (sizeof (void *)); }
6595 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6596 #include <stdio.h>
6597 #include <stdlib.h>
6598 int
6599 main ()
6600 {
6602 FILE *f = fopen ("conftest.val", "w");
6603 if (! f)
6604 return 1;
6605 if (((long int) (sizeof (void *))) < 0)
6606 {
6607 long int i = longval ();
6608 if (i != ((long int) (sizeof (void *))))
6609 return 1;
6610 fprintf (f, "%ld", i);
6611 }
6612 else
6613 {
6614 unsigned long int i = ulongval ();
6615 if (i != ((long int) (sizeof (void *))))
6616 return 1;
6617 fprintf (f, "%lu", i);
6618 }
6619 /* Do not output a trailing newline, as this causes \r\n confusion
6620 on some platforms. */
6621 return ferror (f) || fclose (f) != 0;
6623 ;
6624 return 0;
6625 }
6626 _ACEOF
6627 rm -f conftest$ac_exeext
6628 if { (ac_try="$ac_link"
6629 case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632 esac
6633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6634 $as_echo "$ac_try_echo") >&5
6635 (eval "$ac_link") 2>&5
6636 ac_status=$?
6637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642 esac
6643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6644 $as_echo "$ac_try_echo") >&5
6645 (eval "$ac_try") 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_cv_sizeof_void_p=`cat conftest.val`
6650 else
6651 $as_echo "$as_me: program exited with status $ac_status" >&5
6652 $as_echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6655 ( exit $ac_status )
6656 if test "$ac_cv_type_void_p" = yes; then
6657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6660 See \`config.log' for more details." >&5
6661 $as_echo "$as_me: error: cannot compute sizeof (void *)
6662 See \`config.log' for more details." >&2;}
6663 { (exit 77); exit 77; }; }; }
6664 else
6665 ac_cv_sizeof_void_p=0
6666 fi
6667 fi
6668 rm -rf conftest.dSYM
6669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6670 fi
6671 rm -f conftest.val
6672 fi
6673 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6674 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6678 cat >>confdefs.h <<_ACEOF
6679 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6680 _ACEOF
6683 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6684 $as_echo_n "checking for ANSI C header files... " >&6; }
6685 if test "${ac_cv_header_stdc+set}" = set; then
6686 $as_echo_n "(cached) " >&6
6687 else
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 #include <stdlib.h>
6695 #include <stdarg.h>
6696 #include <string.h>
6697 #include <float.h>
6699 int
6700 main ()
6701 {
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_compile") 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest.$ac_objext; then
6725 ac_cv_header_stdc=yes
6726 else
6727 $as_echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 ac_cv_header_stdc=no
6731 fi
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 if test $ac_cv_header_stdc = yes; then
6736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <string.h>
6745 _ACEOF
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747 $EGREP "memchr" >/dev/null 2>&1; then
6748 :
6749 else
6750 ac_cv_header_stdc=no
6751 fi
6752 rm -f conftest*
6754 fi
6756 if test $ac_cv_header_stdc = yes; then
6757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <stdlib.h>
6766 _ACEOF
6767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6768 $EGREP "free" >/dev/null 2>&1; then
6769 :
6770 else
6771 ac_cv_header_stdc=no
6772 fi
6773 rm -f conftest*
6775 fi
6777 if test $ac_cv_header_stdc = yes; then
6778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6779 if test "$cross_compiling" = yes; then
6780 :
6781 else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #include <ctype.h>
6789 #include <stdlib.h>
6790 #if ((' ' & 0x0FF) == 0x020)
6791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793 #else
6794 # define ISLOWER(c) \
6795 (('a' <= (c) && (c) <= 'i') \
6796 || ('j' <= (c) && (c) <= 'r') \
6797 || ('s' <= (c) && (c) <= 'z'))
6798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6799 #endif
6801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802 int
6803 main ()
6804 {
6805 int i;
6806 for (i = 0; i < 256; i++)
6807 if (XOR (islower (i), ISLOWER (i))
6808 || toupper (i) != TOUPPER (i))
6809 return 2;
6810 return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest$ac_exeext
6814 if { (ac_try="$ac_link"
6815 case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818 esac
6819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6820 $as_echo "$ac_try_echo") >&5
6821 (eval "$ac_link") 2>&5
6822 ac_status=$?
6823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6825 { (case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6830 $as_echo "$ac_try_echo") >&5
6831 (eval "$ac_try") 2>&5
6832 ac_status=$?
6833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 :
6836 else
6837 $as_echo "$as_me: program exited with status $ac_status" >&5
6838 $as_echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 ( exit $ac_status )
6842 ac_cv_header_stdc=no
6843 fi
6844 rm -rf conftest.dSYM
6845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6846 fi
6849 fi
6850 fi
6851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6852 $as_echo "$ac_cv_header_stdc" >&6; }
6853 if test $ac_cv_header_stdc = yes; then
6855 cat >>confdefs.h <<\_ACEOF
6856 #define STDC_HEADERS 1
6857 _ACEOF
6859 fi
6861 # Make sure we can run config.sub.
6862 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6863 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6864 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6865 { (exit 1); exit 1; }; }
6867 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6868 $as_echo_n "checking build system type... " >&6; }
6869 if test "${ac_cv_build+set}" = set; then
6870 $as_echo_n "(cached) " >&6
6871 else
6872 ac_build_alias=$build_alias
6873 test "x$ac_build_alias" = x &&
6874 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6875 test "x$ac_build_alias" = x &&
6876 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6877 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6878 { (exit 1); exit 1; }; }
6879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6880 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6881 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6882 { (exit 1); exit 1; }; }
6884 fi
6885 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6886 $as_echo "$ac_cv_build" >&6; }
6887 case $ac_cv_build in
6888 *-*-*) ;;
6889 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6890 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6891 { (exit 1); exit 1; }; };;
6892 esac
6893 build=$ac_cv_build
6894 ac_save_IFS=$IFS; IFS='-'
6895 set x $ac_cv_build
6896 shift
6897 build_cpu=$1
6898 build_vendor=$2
6899 shift; shift
6900 # Remember, the first character of IFS is used to create $*,
6901 # except with old shells:
6902 build_os=$*
6903 IFS=$ac_save_IFS
6904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6907 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6908 $as_echo_n "checking host system type... " >&6; }
6909 if test "${ac_cv_host+set}" = set; then
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test "x$host_alias" = x; then
6913 ac_cv_host=$ac_cv_build
6914 else
6915 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6916 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6917 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6918 { (exit 1); exit 1; }; }
6919 fi
6921 fi
6922 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6923 $as_echo "$ac_cv_host" >&6; }
6924 case $ac_cv_host in
6925 *-*-*) ;;
6926 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6927 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6928 { (exit 1); exit 1; }; };;
6929 esac
6930 host=$ac_cv_host
6931 ac_save_IFS=$IFS; IFS='-'
6932 set x $ac_cv_host
6933 shift
6934 host_cpu=$1
6935 host_vendor=$2
6936 shift; shift
6937 # Remember, the first character of IFS is used to create $*,
6938 # except with old shells:
6939 host_os=$*
6940 IFS=$ac_save_IFS
6941 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6946 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6948 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6949 $as_echo_n "checking dependency style of $depcc... " >&6; }
6950 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6951 $as_echo_n "(cached) " >&6
6952 else
6953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6954 # We make a subdir and do the tests there. Otherwise we can end up
6955 # making bogus files that we don't know about and never remove. For
6956 # instance it was reported that on HP-UX the gcc test will end up
6957 # making a dummy file named `D' -- because `-MD' means `put the output
6958 # in D'.
6959 mkdir conftest.dir
6960 # Copy depcomp to subdir because otherwise we won't find it if we're
6961 # using a relative directory.
6962 cp "$am_depcomp" conftest.dir
6963 cd conftest.dir
6964 # We will build objects and dependencies in a subdirectory because
6965 # it helps to detect inapplicable dependency modes. For instance
6966 # both Tru64's cc and ICC support -MD to output dependencies as a
6967 # side effect of compilation, but ICC will put the dependencies in
6968 # the current directory while Tru64 will put them in the object
6969 # directory.
6970 mkdir sub
6972 am_cv_OBJC_dependencies_compiler_type=none
6973 if test "$am_compiler_list" = ""; then
6974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6975 fi
6976 for depmode in $am_compiler_list; do
6977 # Setup a source with many dependencies, because some compilers
6978 # like to wrap large dependency lists on column 80 (with \), and
6979 # we should not choose a depcomp mode which is confused by this.
6980 #
6981 # We need to recreate these files for each test, as the compiler may
6982 # overwrite some of them when testing with obscure command lines.
6983 # This happens at least with the AIX C compiler.
6984 : > sub/conftest.c
6985 for i in 1 2 3 4 5 6; do
6986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6988 # Solaris 8's {/usr,}/bin/sh.
6989 touch sub/conftst$i.h
6990 done
6991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6993 case $depmode in
6994 nosideeffect)
6995 # after this tag, mechanisms are not by side-effect, so they'll
6996 # only be used when explicitly requested
6997 if test "x$enable_dependency_tracking" = xyes; then
6998 continue
6999 else
7000 break
7001 fi
7002 ;;
7003 none) break ;;
7004 esac
7005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7006 # mode. It turns out that the SunPro C++ compiler does not properly
7007 # handle `-M -o', and we need to detect this.
7008 if depmode=$depmode \
7009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7012 >/dev/null 2>conftest.err &&
7013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7016 # icc doesn't choke on unknown options, it will just issue warnings
7017 # or remarks (even with -Werror). So we grep stderr for any message
7018 # that says an option was ignored or not supported.
7019 # When given -MP, icc 7.0 and 7.1 complain thusly:
7020 # icc: Command line warning: ignoring option '-M'; no argument required
7021 # The diagnosis changed in icc 8.0:
7022 # icc: Command line remark: option '-MP' not supported
7023 if (grep 'ignoring option' conftest.err ||
7024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7025 am_cv_OBJC_dependencies_compiler_type=$depmode
7026 break
7027 fi
7028 fi
7029 done
7031 cd ..
7032 rm -rf conftest.dir
7033 else
7034 am_cv_OBJC_dependencies_compiler_type=none
7035 fi
7037 fi
7038 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7039 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7040 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7044 if
7045 test "x$enable_dependency_tracking" != xno \
7046 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7047 am__fastdepOBJC_TRUE=
7048 am__fastdepOBJC_FALSE='#'
7049 else
7050 am__fastdepOBJC_TRUE='#'
7051 am__fastdepOBJC_FALSE=
7052 fi
7056 # Extract the first word of "pod2man", so it can be a program name with args.
7057 set dummy pod2man; ac_word=$2
7058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_path_POD2MAN+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7062 else
7063 case $POD2MAN in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7083 ;;
7084 esac
7085 fi
7086 POD2MAN=$ac_cv_path_POD2MAN
7087 if test -n "$POD2MAN"; then
7088 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7089 $as_echo "$POD2MAN" >&6; }
7090 else
7091 { $as_echo "$as_me:$LINENO: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7096 # Extract the first word of "pod2html", so it can be a program name with args.
7097 set dummy pod2html; ac_word=$2
7098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_path_POD2HTML+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7102 else
7103 case $POD2HTML in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7106 ;;
7107 *)
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7123 ;;
7124 esac
7125 fi
7126 POD2HTML=$ac_cv_path_POD2HTML
7127 if test -n "$POD2HTML"; then
7128 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7129 $as_echo "$POD2HTML" >&6; }
7130 else
7131 { $as_echo "$as_me:$LINENO: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7138 # Check whether --enable-strict-warn was given.
7139 if test "${enable_strict_warn+set}" = set; then
7140 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7141 enable_strictwarn=yes
7142 fi
7143 fi
7145 # Check whether --enable-translator was given.
7146 if test "${enable_translator+set}" = set; then
7147 enableval=$enable_translator; true
7148 else
7149 enable_translator=yes
7150 fi
7152 # Check whether --enable-optimized was given.
7153 if test "${enable_optimized+set}" = set; then
7154 enableval=$enable_optimized; true
7155 else
7156 enable_optimized=yes
7157 fi
7159 # Check whether --enable-shared was given.
7160 if test "${enable_shared+set}" = set; then
7161 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
7162 else
7163 enable_shared=cond
7164 fi
7166 # Check whether --enable-profiled was given.
7167 if test "${enable_profiled+set}" = set; then
7168 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7169 enable_profiled=yes;
7170 fi
7171 fi
7173 # Check whether --enable-trace was given.
7174 if test "${enable_trace+set}" = set; then
7175 enableval=$enable_trace; if test "$enableval" == "yes"; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_TRACE_IO 1
7179 _ACEOF
7181 fi
7182 fi
7184 # Check whether --enable-watch was given.
7185 if test "${enable_watch+set}" = set; then
7186 enableval=$enable_watch; if test "$enableval" == "yes"; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define ENABLE_WATCH 1
7190 _ACEOF
7192 fi
7193 fi
7195 # Check whether --enable-sh4stats was given.
7196 if test "${enable_sh4stats+set}" = set; then
7197 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7199 cat >>confdefs.h <<\_ACEOF
7200 #define ENABLE_SH4STATS 1
7201 _ACEOF
7203 fi
7204 fi
7207 # Check whether --with-osmesa was given.
7208 if test "${with_osmesa+set}" = set; then
7209 withval=$with_osmesa;
7210 else
7211 with_osmesa=no
7212 fi
7215 # Check whether --with-gtk was given.
7216 if test "${with_gtk+set}" = set; then
7217 withval=$with_gtk; with_gtk=yes
7218 else
7219 with_gtk=x11
7220 fi
7223 # Check whether --with-esd was given.
7224 if test "${with_esd+set}" = set; then
7225 withval=$with_esd;
7226 fi
7229 # Check whether --with-pulse was given.
7230 if test "${with_pulse+set}" = set; then
7231 withval=$with_pulse;
7232 fi
7235 # Check whether --with-sdl was given.
7236 if test "${with_sdl+set}" = set; then
7237 withval=$with_sdl;
7238 fi
7245 ac_ext=m
7246 ac_cpp='$OBJCPP $CPPFLAGS'
7247 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7250 if test -n "$ac_tool_prefix"; then
7251 for ac_prog in gcc objcc objc cc CC
7252 do
7253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if test "${ac_cv_prog_OBJC+set}" = set; then
7258 $as_echo_n "(cached) " >&6
7259 else
7260 if test -n "$OBJC"; then
7261 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7273 fi
7274 done
7275 done
7276 IFS=$as_save_IFS
7278 fi
7279 fi
7280 OBJC=$ac_cv_prog_OBJC
7281 if test -n "$OBJC"; then
7282 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7283 $as_echo "$OBJC" >&6; }
7284 else
7285 { $as_echo "$as_me:$LINENO: result: no" >&5
7286 $as_echo "no" >&6; }
7287 fi
7290 test -n "$OBJC" && break
7291 done
7292 fi
7293 if test -z "$OBJC"; then
7294 ac_ct_OBJC=$OBJC
7295 for ac_prog in gcc objcc objc cc CC
7296 do
7297 # Extract the first word of "$ac_prog", so it can be a program name with args.
7298 set dummy $ac_prog; ac_word=$2
7299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7302 $as_echo_n "(cached) " >&6
7303 else
7304 if test -n "$ac_ct_OBJC"; then
7305 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7322 fi
7323 fi
7324 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7325 if test -n "$ac_ct_OBJC"; then
7326 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7327 $as_echo "$ac_ct_OBJC" >&6; }
7328 else
7329 { $as_echo "$as_me:$LINENO: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7334 test -n "$ac_ct_OBJC" && break
7335 done
7337 if test "x$ac_ct_OBJC" = x; then
7338 OBJC="gcc"
7339 else
7340 case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346 OBJC=$ac_ct_OBJC
7347 fi
7348 fi
7350 # Provide some information about the compiler.
7351 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7352 set X $ac_compile
7353 ac_compiler=$2
7354 { (ac_try="$ac_compiler --version >&5"
7355 case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_compiler --version >&5") 2>&5
7362 ac_status=$?
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }
7365 { (ac_try="$ac_compiler -v >&5"
7366 case "(($ac_try" in
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7369 esac
7370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7371 $as_echo "$ac_try_echo") >&5
7372 (eval "$ac_compiler -v >&5") 2>&5
7373 ac_status=$?
7374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }
7376 { (ac_try="$ac_compiler -V >&5"
7377 case "(($ac_try" in
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7380 esac
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_compiler -V >&5") 2>&5
7384 ac_status=$?
7385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }
7388 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7389 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7390 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7391 $as_echo_n "(cached) " >&6
7392 else
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7400 int
7401 main ()
7402 {
7403 #ifndef __GNUC__
7404 choke me
7405 #endif
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7418 $as_echo "$ac_try_echo") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_objc_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7429 ac_compiler_gnu=yes
7430 else
7431 $as_echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 ac_compiler_gnu=no
7435 fi
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7440 fi
7441 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7442 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7443 if test $ac_compiler_gnu = yes; then
7444 GOBJC=yes
7445 else
7446 GOBJC=
7447 fi
7448 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7449 ac_save_OBJCFLAGS=$OBJCFLAGS
7450 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7451 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7452 if test "${ac_cv_prog_objc_g+set}" = set; then
7453 $as_echo_n "(cached) " >&6
7454 else
7455 ac_save_objc_werror_flag=$ac_objc_werror_flag
7456 ac_objc_werror_flag=yes
7457 ac_cv_prog_objc_g=no
7458 OBJCFLAGS="-g"
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7466 int
7467 main ()
7468 {
7470 ;
7471 return 0;
7472 }
7473 _ACEOF
7474 rm -f conftest.$ac_objext
7475 if { (ac_try="$ac_compile"
7476 case "(($ac_try" in
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7479 esac
7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481 $as_echo "$ac_try_echo") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_objc_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 ac_cv_prog_objc_g=yes
7493 else
7494 $as_echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 OBJCFLAGS=""
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h. */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7505 int
7506 main ()
7507 {
7509 ;
7510 return 0;
7511 }
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7515 case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7518 esac
7519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7520 $as_echo "$ac_try_echo") >&5
7521 (eval "$ac_compile") 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } && {
7528 test -z "$ac_objc_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
7531 :
7532 else
7533 $as_echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7536 ac_objc_werror_flag=$ac_save_objc_werror_flag
7537 OBJCFLAGS="-g"
7538 cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h. */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7545 int
7546 main ()
7547 {
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560 $as_echo "$ac_try_echo") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_objc_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_cv_prog_objc_g=yes
7572 else
7573 $as_echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7577 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 fi
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 fi
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 ac_objc_werror_flag=$ac_save_objc_werror_flag
7587 fi
7588 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7589 $as_echo "$ac_cv_prog_objc_g" >&6; }
7590 if test "$ac_test_OBJCFLAGS" = set; then
7591 OBJCFLAGS=$ac_save_OBJCFLAGS
7592 elif test $ac_cv_prog_objc_g = yes; then
7593 if test "$GOBJC" = yes; then
7594 OBJCFLAGS="-g -O2"
7595 else
7596 OBJCFLAGS="-g"
7597 fi
7598 else
7599 if test "$GOBJC" = yes; then
7600 OBJCFLAGS="-O2"
7601 else
7602 OBJCFLAGS=
7603 fi
7604 fi
7605 ac_ext=c
7606 ac_cpp='$CPP $CPPFLAGS'
7607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7612 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7613 ac_ext=m
7614 ac_cpp='$OBJCPP $CPPFLAGS'
7615 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7616 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7617 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 @interface Foo @end
7625 int
7626 main ()
7627 {
7629 ;
7630 return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7635 case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7638 esac
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641 (eval "$ac_compile") 2>conftest.er1
7642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
7646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_objc_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
7651 { $as_echo "$as_me:$LINENO: result: yes" >&5
7652 $as_echo "yes" >&6; }
7654 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7655 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7656 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7657 $as_echo_n "(cached) " >&6
7658 else
7659 cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h. */
7661 _ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 $ac_includes_default
7667 #include <Cocoa/Cocoa.h>
7668 _ACEOF
7669 rm -f conftest.$ac_objext
7670 if { (ac_try="$ac_compile"
7671 case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674 esac
7675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7676 $as_echo "$ac_try_echo") >&5
7677 (eval "$ac_compile") 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } && {
7684 test -z "$ac_objc_werror_flag" ||
7685 test ! -s conftest.err
7686 } && test -s conftest.$ac_objext; then
7687 ac_cv_header_Cocoa_Cocoa_h=yes
7688 else
7689 $as_echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 ac_cv_header_Cocoa_Cocoa_h=no
7693 fi
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 fi
7697 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7698 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7699 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
7701 HAVE_COCOA='yes'
7702 APPLE_BUILD='yes'
7703 LIBS="$LIBS -framework AppKit -framework Carbon"
7704 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"
7705 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7706 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7708 cat >>confdefs.h <<\_ACEOF
7709 #define HAVE_COCOA 1
7710 _ACEOF
7713 cat >>confdefs.h <<\_ACEOF
7714 #define APPLE_BUILD 1
7715 _ACEOF
7717 if test "x$with_gtk" = "xx11"; then
7718 with_gtk=no
7719 fi
7721 fi
7726 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7727 $as_echo_n "checking OBJC version... " >&6; }
7728 if test -n "$OBJC"; then
7729 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7730 if test -n "$_GOBJC_VERSION"; then
7731 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7732 $as_echo "GCC" >&6; }
7733 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7734 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7735 else
7736 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7737 $as_echo "Unknown" >&6; }
7738 OBJCOPT="-O2"
7739 fi
7740 else
7741 { $as_echo "$as_me:$LINENO: result: None" >&5
7742 $as_echo "None" >&6; }
7744 fi
7747 else
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 { $as_echo "$as_me:$LINENO: result: No" >&5
7752 $as_echo "No" >&6; }
7754 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7768 GUI_COCOA_TRUE=
7769 GUI_COCOA_FALSE='#'
7770 else
7771 GUI_COCOA_TRUE='#'
7772 GUI_COCOA_FALSE=
7773 fi
7775 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7777 cat >>confdefs.h <<\_ACEOF
7778 #define OSX_BUNDLE 1
7779 _ACEOF
7781 fi
7783 CFLAGS="-g -fexceptions"
7784 OBJCFLAGS="-g -fexceptions"
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_EXCEPTIONS 1
7788 _ACEOF
7791 STDCFLAG="-std=c99"
7793 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7794 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7795 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7796 $as_echo_n "checking CC version... " >&6; }
7797 if test -n "$_ICC_VERSION"; then
7798 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7799 $as_echo "ICC" >&6; }
7800 CCOPT="$CFLAGS -fast"
7801 CFLAGS="$CFLAGS -fno-strict-aliasing"
7802 elif test -n "$_GCC_VERSION"; then
7803 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7804 $as_echo "GCC" >&6; }
7805 CCOPT="-O2 -msse2 -mfpmath=sse"
7806 CFLAGS="$CFLAGS -fno-strict-aliasing"
7807 else
7808 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7809 $as_echo "Unknown" >&6; }
7810 CCOPT="$CFLAGS -O2"
7811 fi
7814 if test "x$enable_optimized" = "xyes"; then
7815 CFLAGS="$CFLAGS $CCOPT"
7816 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7817 if test "x$enable_profiled" != "xyes"; then
7818 CFLAGS="$CFLAGS -fomit-frame-pointer"
7819 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7820 fi
7821 else
7822 CFLAGS="$CFLAGS -g3"
7823 OBJCFLAGS="$OBJCFLAGS -g3"
7824 fi
7826 if test "x$enable_profiled" = "xyes"; then
7827 CFLAGS="$CFLAGS -pg"
7828 LDFLAGS="$LDFLAGS -pg";
7829 OBJCFLAGS="$OBJCFLAGS -pg";
7830 fi
7832 if test "x$enable_strictwarn" = "xyes"; then
7833 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7834 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7835 fi
7837 if test "x$enable_shared" != "xno"; then
7839 cat >>confdefs.h <<\_ACEOF
7840 #define ENABLE_SHARED 1
7841 _ACEOF
7843 if test "x$APPLE_BUILD" = "xyes"; then
7844 SOEXT="dylib"
7845 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
7846 else
7847 SOEXT="so"
7848 PLUGINLDFLAGS="-shared"
7849 fi
7850 PLUGINCFLAGS="-fPIC"
7852 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7853 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7854 $as_echo_n "checking for dlfcn.h... " >&6; }
7855 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7856 $as_echo_n "(cached) " >&6
7857 fi
7858 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7859 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7860 else
7861 # Is the header compilable?
7862 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
7863 $as_echo_n "checking dlfcn.h usability... " >&6; }
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7871 #include <dlfcn.h>
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (ac_try="$ac_compile"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880 $as_echo "$ac_try_echo") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 ac_header_compiler=yes
7892 else
7893 $as_echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_header_compiler=no
7897 fi
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7901 $as_echo "$ac_header_compiler" >&6; }
7903 # Is the header present?
7904 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
7905 $as_echo_n "checking dlfcn.h presence... " >&6; }
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 #include <dlfcn.h>
7913 _ACEOF
7914 if { (ac_try="$ac_cpp conftest.$ac_ext"
7915 case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918 esac
7919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7920 $as_echo "$ac_try_echo") >&5
7921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } >/dev/null && {
7928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 }; then
7931 ac_header_preproc=yes
7932 else
7933 $as_echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 ac_header_preproc=no
7937 fi
7939 rm -f conftest.err conftest.$ac_ext
7940 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7941 $as_echo "$ac_header_preproc" >&6; }
7943 # So? What about this header?
7944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7945 yes:no: )
7946 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
7947 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7948 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
7949 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
7950 ac_header_preproc=yes
7951 ;;
7952 no:yes:* )
7953 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
7954 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
7955 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
7956 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
7957 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
7958 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
7959 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
7960 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
7961 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
7962 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
7963 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
7964 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
7966 ;;
7967 esac
7968 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7969 $as_echo_n "checking for dlfcn.h... " >&6; }
7970 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7971 $as_echo_n "(cached) " >&6
7972 else
7973 ac_cv_header_dlfcn_h=$ac_header_preproc
7974 fi
7975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7976 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7978 fi
7979 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
7981 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7982 $as_echo_n "checking for library containing dlopen... " >&6; }
7983 if test "${ac_cv_search_dlopen+set}" = set; then
7984 $as_echo_n "(cached) " >&6
7985 else
7986 ac_func_search_save_LIBS=$LIBS
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7994 /* Override any GCC internal prototype to avoid an error.
7995 Use char because int might match the return type of a GCC
7996 builtin and then its argument prototype would still apply. */
7997 #ifdef __cplusplus
7998 extern "C"
7999 #endif
8000 char dlopen ();
8001 int
8002 main ()
8003 {
8004 return dlopen ();
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 for ac_lib in '' dl; do
8010 if test -z "$ac_lib"; then
8011 ac_res="none required"
8012 else
8013 ac_res=-l$ac_lib
8014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8015 fi
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8023 $as_echo "$ac_try_echo") >&5
8024 (eval "$ac_link") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest$ac_exeext && {
8034 test "$cross_compiling" = yes ||
8035 $as_test_x conftest$ac_exeext
8036 }; then
8037 ac_cv_search_dlopen=$ac_res
8038 else
8039 $as_echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8043 fi
8045 rm -rf conftest.dSYM
8046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8047 conftest$ac_exeext
8048 if test "${ac_cv_search_dlopen+set}" = set; then
8049 break
8050 fi
8051 done
8052 if test "${ac_cv_search_dlopen+set}" = set; then
8053 :
8054 else
8055 ac_cv_search_dlopen=no
8056 fi
8057 rm conftest.$ac_ext
8058 LIBS=$ac_func_search_save_LIBS
8059 fi
8060 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8061 $as_echo "$ac_cv_search_dlopen" >&6; }
8062 ac_res=$ac_cv_search_dlopen
8063 if test "$ac_res" != no; then
8064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8065 have_dlopen=yes
8066 fi
8068 fi
8071 if test "x$have_dlopen" != "xyes"; then
8072 if test "x$enable_shared" == "xyes"; then
8073 { { $as_echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
8074 $as_echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
8075 { (exit 1); exit 1; }; }
8076 else
8077 { $as_echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
8078 $as_echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
8079 fi
8080 fi
8082 { $as_echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
8083 $as_echo_n "checking if linker accepts -rdynamic... " >&6; }
8084 old_LDFLAGS="$LDFLAGS"
8085 LDFLAGS="$LDFLAGS -rdynamic"
8086 cat >conftest.$ac_ext <<_ACEOF
8087 int main(){ return 0; }
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (ac_try="$ac_link"
8091 case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8094 esac
8095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8096 $as_echo "$ac_try_echo") >&5
8097 (eval "$ac_link") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest$ac_exeext && {
8107 test "$cross_compiling" = yes ||
8108 $as_test_x conftest$ac_exeext
8109 }; then
8111 LXDREAMLDFLAGS="-rdynamic"
8112 { $as_echo "$as_me:$LINENO: result: yes" >&5
8113 $as_echo "yes" >&6; }
8115 else
8116 $as_echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8120 LXDREAMLDFLAGS=""
8121 { $as_echo "$as_me:$LINENO: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8125 rm -rf conftest.dSYM
8126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8127 conftest$ac_exeext conftest.$ac_ext
8128 LDFLAGS="$old_LDFLAGS"
8134 fi
8137 if test "x$have_dlopen" = "xyes"; then
8138 BUILD_SHARED_TRUE=
8139 BUILD_SHARED_FALSE='#'
8140 else
8141 BUILD_SHARED_TRUE='#'
8142 BUILD_SHARED_FALSE=
8143 fi
8147 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
8148 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
8149 if test "$cross_compiling" = yes; then
8150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8152 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8153 See \`config.log' for more details." >&5
8154 $as_echo "$as_me: error: cannot run test program while cross compiling
8155 See \`config.log' for more details." >&2;}
8156 { (exit 1); exit 1; }; }; }
8157 else
8158 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8166 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
8168 int main(int argc, char *argv[])
8169 {
8170 return foo( 1, 2 ) == 3 ? 0 : 1;
8171 }
8172 _ACEOF
8173 rm -f conftest$ac_exeext
8174 if { (ac_try="$ac_link"
8175 case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178 esac
8179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8180 $as_echo "$ac_try_echo") >&5
8181 (eval "$ac_link") 2>&5
8182 ac_status=$?
8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8185 { (case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188 esac
8189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8190 $as_echo "$ac_try_echo") >&5
8191 (eval "$ac_try") 2>&5
8192 ac_status=$?
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8196 { $as_echo "$as_me:$LINENO: result: yes" >&5
8197 $as_echo "yes" >&6; }
8200 cat >>confdefs.h <<\_ACEOF
8201 #define HAVE_FASTCALL 1
8202 _ACEOF
8205 else
8206 $as_echo "$as_me: program exited with status $ac_status" >&5
8207 $as_echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ( exit $ac_status )
8212 { $as_echo "$as_me:$LINENO: result: no" >&5
8213 $as_echo "no" >&6; }
8215 fi
8216 rm -rf conftest.dSYM
8217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8218 fi
8223 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
8224 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
8225 if test "$cross_compiling" = yes; then
8226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8228 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8229 See \`config.log' for more details." >&5
8230 $as_echo "$as_me: error: cannot run test program while cross compiling
8231 See \`config.log' for more details." >&2;}
8232 { (exit 1); exit 1; }; }; }
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8242 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
8243 int __attribute__((noinline)) foo( int arg, void *exc )
8244 {
8245 if( arg < 2 ) {
8246 *(((void **)__builtin_frame_address(0))+1) = exc;
8247 }
8248 return 0;
8249 }
8251 int main(int argc, char *argv[])
8252 {
8253 goto *first_arg(&&start, &&except);
8255 start:
8256 return foo( argc, &&except ) + 1;
8258 except:
8259 return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest$ac_exeext
8263 if { (ac_try="$ac_link"
8264 case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8269 $as_echo "$ac_try_echo") >&5
8270 (eval "$ac_link") 2>&5
8271 ac_status=$?
8272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277 esac
8278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8279 $as_echo "$ac_try_echo") >&5
8280 (eval "$ac_try") 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8285 { $as_echo "$as_me:$LINENO: result: yes" >&5
8286 $as_echo "yes" >&6; }
8289 cat >>confdefs.h <<\_ACEOF
8290 #define HAVE_FRAME_ADDRESS 1
8291 _ACEOF
8294 else
8295 $as_echo "$as_me: program exited with status $ac_status" >&5
8296 $as_echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 ( exit $ac_status )
8301 { $as_echo "$as_me:$LINENO: result: no" >&5
8302 $as_echo "no" >&6; }
8303 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
8304 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
8305 fi
8306 rm -rf conftest.dSYM
8307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8308 fi
8314 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
8315 $as_echo_n "checking for library containing listen... " >&6; }
8316 if test "${ac_cv_search_listen+set}" = set; then
8317 $as_echo_n "(cached) " >&6
8318 else
8319 ac_func_search_save_LIBS=$LIBS
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 /* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 char listen ();
8334 int
8335 main ()
8336 {
8337 return listen ();
8338 ;
8339 return 0;
8340 }
8341 _ACEOF
8342 for ac_lib in '' socket; do
8343 if test -z "$ac_lib"; then
8344 ac_res="none required"
8345 else
8346 ac_res=-l$ac_lib
8347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8348 fi
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8356 $as_echo "$ac_try_echo") >&5
8357 (eval "$ac_link") 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest$ac_exeext && {
8367 test "$cross_compiling" = yes ||
8368 $as_test_x conftest$ac_exeext
8369 }; then
8370 ac_cv_search_listen=$ac_res
8371 else
8372 $as_echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8376 fi
8378 rm -rf conftest.dSYM
8379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8380 conftest$ac_exeext
8381 if test "${ac_cv_search_listen+set}" = set; then
8382 break
8383 fi
8384 done
8385 if test "${ac_cv_search_listen+set}" = set; then
8386 :
8387 else
8388 ac_cv_search_listen=no
8389 fi
8390 rm conftest.$ac_ext
8391 LIBS=$ac_func_search_save_LIBS
8392 fi
8393 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8394 $as_echo "$ac_cv_search_listen" >&6; }
8395 ac_res=$ac_cv_search_listen
8396 if test "$ac_res" != no; then
8397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8399 fi
8401 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8402 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
8403 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8404 $as_echo_n "(cached) " >&6
8405 else
8406 ac_func_search_save_LIBS=$LIBS
8407 cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h. */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 char inet_ntoa ();
8421 int
8422 main ()
8423 {
8424 return inet_ntoa ();
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 for ac_lib in '' nsl; do
8430 if test -z "$ac_lib"; then
8431 ac_res="none required"
8432 else
8433 ac_res=-l$ac_lib
8434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8435 fi
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8438 case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441 esac
8442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8443 $as_echo "$ac_try_echo") >&5
8444 (eval "$ac_link") 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest$ac_exeext && {
8454 test "$cross_compiling" = yes ||
8455 $as_test_x conftest$ac_exeext
8456 }; then
8457 ac_cv_search_inet_ntoa=$ac_res
8458 else
8459 $as_echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8463 fi
8465 rm -rf conftest.dSYM
8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467 conftest$ac_exeext
8468 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8469 break
8470 fi
8471 done
8472 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8473 :
8474 else
8475 ac_cv_search_inet_ntoa=no
8476 fi
8477 rm conftest.$ac_ext
8478 LIBS=$ac_func_search_save_LIBS
8479 fi
8480 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8481 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
8482 ac_res=$ac_cv_search_inet_ntoa
8483 if test "$ac_res" != no; then
8484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8486 fi
8491 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8492 if test -n "$ac_tool_prefix"; then
8493 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8494 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8498 $as_echo_n "(cached) " >&6
8499 else
8500 case $PKG_CONFIG in
8501 [\\/]* | ?:[\\/]*)
8502 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8503 ;;
8504 *)
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516 done
8517 done
8518 IFS=$as_save_IFS
8520 ;;
8521 esac
8522 fi
8523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8524 if test -n "$PKG_CONFIG"; then
8525 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8526 $as_echo "$PKG_CONFIG" >&6; }
8527 else
8528 { $as_echo "$as_me:$LINENO: result: no" >&5
8529 $as_echo "no" >&6; }
8530 fi
8533 fi
8534 if test -z "$ac_cv_path_PKG_CONFIG"; then
8535 ac_pt_PKG_CONFIG=$PKG_CONFIG
8536 # Extract the first word of "pkg-config", so it can be a program name with args.
8537 set dummy pkg-config; ac_word=$2
8538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8541 $as_echo_n "(cached) " >&6
8542 else
8543 case $ac_pt_PKG_CONFIG in
8544 [\\/]* | ?:[\\/]*)
8545 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8546 ;;
8547 *)
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8558 fi
8559 done
8560 done
8561 IFS=$as_save_IFS
8563 ;;
8564 esac
8565 fi
8566 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8567 if test -n "$ac_pt_PKG_CONFIG"; then
8568 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8569 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8570 else
8571 { $as_echo "$as_me:$LINENO: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8575 if test "x$ac_pt_PKG_CONFIG" = x; then
8576 PKG_CONFIG=""
8577 else
8578 case $cross_compiling:$ac_tool_warned in
8579 yes:)
8580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8582 ac_tool_warned=yes ;;
8583 esac
8584 PKG_CONFIG=$ac_pt_PKG_CONFIG
8585 fi
8586 else
8587 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8588 fi
8590 fi
8591 if test -n "$PKG_CONFIG"; then
8592 _pkg_min_version=0.9.0
8593 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8594 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8595 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8596 { $as_echo "$as_me:$LINENO: result: yes" >&5
8597 $as_echo "yes" >&6; }
8598 else
8599 { $as_echo "$as_me:$LINENO: result: no" >&5
8600 $as_echo "no" >&6; }
8601 PKG_CONFIG=""
8602 fi
8604 fi
8606 pkg_failed=no
8607 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8608 $as_echo_n "checking for LIBPNG... " >&6; }
8610 if test -n "$LIBPNG_CFLAGS"; then
8611 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8612 elif test -n "$PKG_CONFIG"; then
8613 if test -n "$PKG_CONFIG" && \
8614 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8615 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8616 ac_status=$?
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; then
8619 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8620 else
8621 pkg_failed=yes
8622 fi
8623 else
8624 pkg_failed=untried
8625 fi
8626 if test -n "$LIBPNG_LIBS"; then
8627 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8628 elif test -n "$PKG_CONFIG"; then
8629 if test -n "$PKG_CONFIG" && \
8630 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8631 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8632 ac_status=$?
8633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; then
8635 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8636 else
8637 pkg_failed=yes
8638 fi
8639 else
8640 pkg_failed=untried
8641 fi
8645 if test $pkg_failed = yes; then
8647 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8648 _pkg_short_errors_supported=yes
8649 else
8650 _pkg_short_errors_supported=no
8651 fi
8652 if test $_pkg_short_errors_supported = yes; then
8653 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8654 else
8655 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8656 fi
8657 # Put the nasty error message in config.log where it belongs
8658 echo "$LIBPNG_PKG_ERRORS" >&5
8660 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8662 $LIBPNG_PKG_ERRORS
8664 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8665 installed software in a non-standard prefix.
8667 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8668 and LIBPNG_LIBS to avoid the need to call pkg-config.
8669 See the pkg-config man page for more details.
8670 " >&5
8671 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8673 $LIBPNG_PKG_ERRORS
8675 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8676 installed software in a non-standard prefix.
8678 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8679 and LIBPNG_LIBS to avoid the need to call pkg-config.
8680 See the pkg-config man page for more details.
8681 " >&2;}
8682 { (exit 1); exit 1; }; }
8683 elif test $pkg_failed = untried; then
8684 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8686 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8687 is in your PATH or set the PKG_CONFIG environment variable to the full
8688 path to pkg-config.
8690 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8691 and LIBPNG_LIBS to avoid the need to call pkg-config.
8692 See the pkg-config man page for more details.
8694 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8695 See \`config.log' for more details." >&5
8696 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8697 is in your PATH or set the PKG_CONFIG environment variable to the full
8698 path to pkg-config.
8700 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8701 and LIBPNG_LIBS to avoid the need to call pkg-config.
8702 See the pkg-config man page for more details.
8704 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8705 See \`config.log' for more details." >&2;}
8706 { (exit 1); exit 1; }; }; }
8707 else
8708 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8709 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8710 { $as_echo "$as_me:$LINENO: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712 :
8713 fi
8716 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8717 $as_echo_n "checking for uncompress in -lz... " >&6; }
8718 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8719 $as_echo_n "(cached) " >&6
8720 else
8721 ac_check_lib_save_LIBS=$LIBS
8722 LIBS="-lz $LIBS"
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 /* Override any GCC internal prototype to avoid an error.
8731 Use char because int might match the return type of a GCC
8732 builtin and then its argument prototype would still apply. */
8733 #ifdef __cplusplus
8734 extern "C"
8735 #endif
8736 char uncompress ();
8737 int
8738 main ()
8739 {
8740 return uncompress ();
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (ac_try="$ac_link"
8747 case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750 esac
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753 (eval "$ac_link") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest$ac_exeext && {
8763 test "$cross_compiling" = yes ||
8764 $as_test_x conftest$ac_exeext
8765 }; then
8766 ac_cv_lib_z_uncompress=yes
8767 else
8768 $as_echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 ac_cv_lib_z_uncompress=no
8772 fi
8774 rm -rf conftest.dSYM
8775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8776 conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8778 fi
8779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8780 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8781 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_LIBZ 1
8784 _ACEOF
8786 LIBS="-lz $LIBS"
8788 else
8790 echo "Zlib (libz.so) could not be found, but is required."
8791 exit 1
8792 fi
8795 if test "x$with_gtk" = "xno"; then
8797 pkg_failed=no
8798 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8799 $as_echo_n "checking for GLIB... " >&6; }
8801 if test -n "$GLIB_CFLAGS"; then
8802 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8803 elif test -n "$PKG_CONFIG"; then
8804 if test -n "$PKG_CONFIG" && \
8805 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8806 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8807 ac_status=$?
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; then
8810 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8811 else
8812 pkg_failed=yes
8813 fi
8814 else
8815 pkg_failed=untried
8816 fi
8817 if test -n "$GLIB_LIBS"; then
8818 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8819 elif test -n "$PKG_CONFIG"; then
8820 if test -n "$PKG_CONFIG" && \
8821 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8822 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8823 ac_status=$?
8824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; then
8826 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8827 else
8828 pkg_failed=yes
8829 fi
8830 else
8831 pkg_failed=untried
8832 fi
8836 if test $pkg_failed = yes; then
8838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8839 _pkg_short_errors_supported=yes
8840 else
8841 _pkg_short_errors_supported=no
8842 fi
8843 if test $_pkg_short_errors_supported = yes; then
8844 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8845 else
8846 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8847 fi
8848 # Put the nasty error message in config.log where it belongs
8849 echo "$GLIB_PKG_ERRORS" >&5
8851 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8853 $GLIB_PKG_ERRORS
8855 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8856 installed software in a non-standard prefix.
8858 Alternatively, you may set the environment variables GLIB_CFLAGS
8859 and GLIB_LIBS to avoid the need to call pkg-config.
8860 See the pkg-config man page for more details.
8861 " >&5
8862 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8864 $GLIB_PKG_ERRORS
8866 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8867 installed software in a non-standard prefix.
8869 Alternatively, you may set the environment variables GLIB_CFLAGS
8870 and GLIB_LIBS to avoid the need to call pkg-config.
8871 See the pkg-config man page for more details.
8872 " >&2;}
8873 { (exit 1); exit 1; }; }
8874 elif test $pkg_failed = untried; then
8875 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8877 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8878 is in your PATH or set the PKG_CONFIG environment variable to the full
8879 path to pkg-config.
8881 Alternatively, you may set the environment variables GLIB_CFLAGS
8882 and GLIB_LIBS to avoid the need to call pkg-config.
8883 See the pkg-config man page for more details.
8885 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8886 See \`config.log' for more details." >&5
8887 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8888 is in your PATH or set the PKG_CONFIG environment variable to the full
8889 path to pkg-config.
8891 Alternatively, you may set the environment variables GLIB_CFLAGS
8892 and GLIB_LIBS to avoid the need to call pkg-config.
8893 See the pkg-config man page for more details.
8895 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8896 See \`config.log' for more details." >&2;}
8897 { (exit 1); exit 1; }; }; }
8898 else
8899 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8900 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8901 { $as_echo "$as_me:$LINENO: result: yes" >&5
8902 $as_echo "yes" >&6; }
8903 :
8904 fi
8905 else
8907 pkg_failed=no
8908 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8909 $as_echo_n "checking for GTK... " >&6; }
8911 if test -n "$GTK_CFLAGS"; then
8912 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8913 elif test -n "$PKG_CONFIG"; then
8914 if test -n "$PKG_CONFIG" && \
8915 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8916 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8917 ac_status=$?
8918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; then
8920 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8921 else
8922 pkg_failed=yes
8923 fi
8924 else
8925 pkg_failed=untried
8926 fi
8927 if test -n "$GTK_LIBS"; then
8928 pkg_cv_GTK_LIBS="$GTK_LIBS"
8929 elif test -n "$PKG_CONFIG"; then
8930 if test -n "$PKG_CONFIG" && \
8931 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8932 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8933 ac_status=$?
8934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; then
8936 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8937 else
8938 pkg_failed=yes
8939 fi
8940 else
8941 pkg_failed=untried
8942 fi
8946 if test $pkg_failed = yes; then
8948 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8949 _pkg_short_errors_supported=yes
8950 else
8951 _pkg_short_errors_supported=no
8952 fi
8953 if test $_pkg_short_errors_supported = yes; then
8954 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8955 else
8956 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8957 fi
8958 # Put the nasty error message in config.log where it belongs
8959 echo "$GTK_PKG_ERRORS" >&5
8961 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8963 $GTK_PKG_ERRORS
8965 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8966 installed software in a non-standard prefix.
8968 Alternatively, you may set the environment variables GTK_CFLAGS
8969 and GTK_LIBS to avoid the need to call pkg-config.
8970 See the pkg-config man page for more details.
8971 " >&5
8972 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8974 $GTK_PKG_ERRORS
8976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8977 installed software in a non-standard prefix.
8979 Alternatively, you may set the environment variables GTK_CFLAGS
8980 and GTK_LIBS to avoid the need to call pkg-config.
8981 See the pkg-config man page for more details.
8982 " >&2;}
8983 { (exit 1); exit 1; }; }
8984 elif test $pkg_failed = untried; then
8985 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8987 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8988 is in your PATH or set the PKG_CONFIG environment variable to the full
8989 path to pkg-config.
8991 Alternatively, you may set the environment variables GTK_CFLAGS
8992 and GTK_LIBS to avoid the need to call pkg-config.
8993 See the pkg-config man page for more details.
8995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8996 See \`config.log' for more details." >&5
8997 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8998 is in your PATH or set the PKG_CONFIG environment variable to the full
8999 path to pkg-config.
9001 Alternatively, you may set the environment variables GTK_CFLAGS
9002 and GTK_LIBS to avoid the need to call pkg-config.
9003 See the pkg-config man page for more details.
9005 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9006 See \`config.log' for more details." >&2;}
9007 { (exit 1); exit 1; }; }; }
9008 else
9009 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
9010 GTK_LIBS=$pkg_cv_GTK_LIBS
9011 { $as_echo "$as_me:$LINENO: result: yes" >&5
9012 $as_echo "yes" >&6; }
9014 HAVE_GTK='yes'
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_GTK 1
9018 _ACEOF
9021 fi
9023 LIBS="$LIBS $GTK_LIBS"
9024 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
9025 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
9026 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
9027 $as_echo_n "(cached) " >&6
9028 else
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
9036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9037 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
9039 /* System header to define __stub macros and hopefully few prototypes,
9040 which can conflict with char gdk_x11_display_get_xdisplay (); below.
9041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9042 <limits.h> exists even on freestanding compilers. */
9044 #ifdef __STDC__
9045 # include <limits.h>
9046 #else
9047 # include <assert.h>
9048 #endif
9050 #undef gdk_x11_display_get_xdisplay
9052 /* Override any GCC internal prototype to avoid an error.
9053 Use char because int might match the return type of a GCC
9054 builtin and then its argument prototype would still apply. */
9055 #ifdef __cplusplus
9056 extern "C"
9057 #endif
9058 char gdk_x11_display_get_xdisplay ();
9059 /* The GNU C library defines this for functions which it implements
9060 to always fail with ENOSYS. Some functions are actually named
9061 something starting with __ and the normal name is an alias. */
9062 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
9063 choke me
9064 #endif
9066 int
9067 main ()
9068 {
9069 return gdk_x11_display_get_xdisplay ();
9070 ;
9071 return 0;
9072 }
9073 _ACEOF
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (ac_try="$ac_link"
9076 case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079 esac
9080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9081 $as_echo "$ac_try_echo") >&5
9082 (eval "$ac_link") 2>conftest.er1
9083 ac_status=$?
9084 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1
9086 cat conftest.err >&5
9087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } && {
9089 test -z "$ac_c_werror_flag" ||
9090 test ! -s conftest.err
9091 } && test -s conftest$ac_exeext && {
9092 test "$cross_compiling" = yes ||
9093 $as_test_x conftest$ac_exeext
9094 }; then
9095 ac_cv_func_gdk_x11_display_get_xdisplay=yes
9096 else
9097 $as_echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 ac_cv_func_gdk_x11_display_get_xdisplay=no
9101 fi
9103 rm -rf conftest.dSYM
9104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9105 conftest$ac_exeext conftest.$ac_ext
9106 fi
9107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
9108 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
9109 if test "x$ac_cv_func_gdk_x11_display_get_xdisplay" = x""yes; then
9111 HAVE_GTK_X11='yes'
9113 cat >>confdefs.h <<\_ACEOF
9114 #define HAVE_GTK_X11 1
9115 _ACEOF
9117 fi
9119 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
9120 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
9121 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
9122 $as_echo_n "(cached) " >&6
9123 else
9124 cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h. */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
9131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9132 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
9134 /* System header to define __stub macros and hopefully few prototypes,
9135 which can conflict with char gdk_quartz_window_get_nsview (); below.
9136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9137 <limits.h> exists even on freestanding compilers. */
9139 #ifdef __STDC__
9140 # include <limits.h>
9141 #else
9142 # include <assert.h>
9143 #endif
9145 #undef gdk_quartz_window_get_nsview
9147 /* Override any GCC internal prototype to avoid an error.
9148 Use char because int might match the return type of a GCC
9149 builtin and then its argument prototype would still apply. */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 char gdk_quartz_window_get_nsview ();
9154 /* The GNU C library defines this for functions which it implements
9155 to always fail with ENOSYS. Some functions are actually named
9156 something starting with __ and the normal name is an alias. */
9157 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
9158 choke me
9159 #endif
9161 int
9162 main ()
9163 {
9164 return gdk_quartz_window_get_nsview ();
9165 ;
9166 return 0;
9167 }
9168 _ACEOF
9169 rm -f conftest.$ac_objext conftest$ac_exeext
9170 if { (ac_try="$ac_link"
9171 case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174 esac
9175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9176 $as_echo "$ac_try_echo") >&5
9177 (eval "$ac_link") 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest$ac_exeext && {
9187 test "$cross_compiling" = yes ||
9188 $as_test_x conftest$ac_exeext
9189 }; then
9190 ac_cv_func_gdk_quartz_window_get_nsview=yes
9191 else
9192 $as_echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_cv_func_gdk_quartz_window_get_nsview=no
9196 fi
9198 rm -rf conftest.dSYM
9199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9200 conftest$ac_exeext conftest.$ac_ext
9201 fi
9202 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
9203 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
9204 if test "x$ac_cv_func_gdk_quartz_window_get_nsview" = x""yes; then
9206 HAVE_GTK_OSX='yes'
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_GTK_OSX 1
9210 _ACEOF
9212 fi
9214 fi
9218 if test "$HAVE_GTK" = 'yes'; then
9219 GUI_GTK_TRUE=
9220 GUI_GTK_FALSE='#'
9221 else
9222 GUI_GTK_TRUE='#'
9223 GUI_GTK_FALSE=
9224 fi
9227 if test "x$with_osmesa" != xno; then
9231 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
9232 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
9233 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
9234 $as_echo_n "(cached) " >&6
9235 else
9236 ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-lOSMesa $LIBS"
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 char OSMesaCreateContext ();
9252 int
9253 main ()
9254 {
9255 return OSMesaCreateContext ();
9256 ;
9257 return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (ac_try="$ac_link"
9262 case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265 esac
9266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9267 $as_echo "$ac_try_echo") >&5
9268 (eval "$ac_link") 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && {
9275 test -z "$ac_c_werror_flag" ||
9276 test ! -s conftest.err
9277 } && test -s conftest$ac_exeext && {
9278 test "$cross_compiling" = yes ||
9279 $as_test_x conftest$ac_exeext
9280 }; then
9281 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
9282 else
9283 $as_echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_cv_lib_OSMesa_OSMesaCreateContext=no
9287 fi
9289 rm -rf conftest.dSYM
9290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9291 conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_check_lib_save_LIBS
9293 fi
9294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
9295 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
9296 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_LIBOSMESA 1
9299 _ACEOF
9301 LIBS="-lOSMesa $LIBS"
9303 else
9304 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9306 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
9307 See \`config.log' for more details." >&5
9308 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
9309 See \`config.log' for more details." >&2;}
9310 { (exit 1); exit 1; }; }; }
9311 fi
9313 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9314 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9315 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9316 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9317 $as_echo_n "(cached) " >&6
9318 fi
9319 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9320 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9321 else
9322 # Is the header compilable?
9323 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
9324 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 $ac_includes_default
9332 #include <GL/osmesa.h>
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9336 case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339 esac
9340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9341 $as_echo "$ac_try_echo") >&5
9342 (eval "$ac_compile") 2>conftest.er1
9343 ac_status=$?
9344 grep -v '^ *+' conftest.er1 >conftest.err
9345 rm -f conftest.er1
9346 cat conftest.err >&5
9347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest.$ac_objext; then
9352 ac_header_compiler=yes
9353 else
9354 $as_echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_header_compiler=no
9358 fi
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362 $as_echo "$ac_header_compiler" >&6; }
9364 # Is the header present?
9365 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9366 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 #include <GL/osmesa.h>
9374 _ACEOF
9375 if { (ac_try="$ac_cpp conftest.$ac_ext"
9376 case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9381 $as_echo "$ac_try_echo") >&5
9382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } >/dev/null && {
9389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 }; then
9392 ac_header_preproc=yes
9393 else
9394 $as_echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_header_preproc=no
9398 fi
9400 rm -f conftest.err conftest.$ac_ext
9401 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9402 $as_echo "$ac_header_preproc" >&6; }
9404 # So? What about this header?
9405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9406 yes:no: )
9407 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9408 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9409 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9410 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9411 ac_header_preproc=yes
9412 ;;
9413 no:yes:* )
9414 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9415 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9416 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9417 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9418 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9419 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9420 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9421 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9422 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9423 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9424 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9425 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9427 ;;
9428 esac
9429 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9430 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9431 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9432 $as_echo_n "(cached) " >&6
9433 else
9434 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9435 fi
9436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9437 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9439 fi
9440 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
9441 :
9442 else
9443 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9445 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9446 See \`config.log' for more details." >&5
9447 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9448 See \`config.log' for more details." >&2;}
9449 { (exit 1); exit 1; }; }; }
9450 fi
9453 HAVE_OSMESA='yes'
9454 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9456 cat >>confdefs.h <<\_ACEOF
9457 #define HAVE_OSMESA 1
9458 _ACEOF
9460 else
9463 if test "x$APPLE_BUILD" != 'xyes'; then
9465 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
9466 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
9467 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
9468 $as_echo_n "(cached) " >&6
9469 else
9470 ac_check_lib_save_LIBS=$LIBS
9471 LIBS="-lGL $LIBS"
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char glVertex3f ();
9486 int
9487 main ()
9488 {
9489 return glVertex3f ();
9490 ;
9491 return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9496 case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9501 $as_echo "$ac_try_echo") >&5
9502 (eval "$ac_link") 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && {
9509 test -z "$ac_c_werror_flag" ||
9510 test ! -s conftest.err
9511 } && test -s conftest$ac_exeext && {
9512 test "$cross_compiling" = yes ||
9513 $as_test_x conftest$ac_exeext
9514 }; then
9515 ac_cv_lib_GL_glVertex3f=yes
9516 else
9517 $as_echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9520 ac_cv_lib_GL_glVertex3f=no
9521 fi
9523 rm -rf conftest.dSYM
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9527 fi
9528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9529 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9530 if test "x$ac_cv_lib_GL_glVertex3f" = x""yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define HAVE_LIBGL 1
9533 _ACEOF
9535 LIBS="-lGL $LIBS"
9537 else
9539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9541 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9542 See \`config.log' for more details." >&5
9543 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9544 See \`config.log' for more details." >&2;}
9545 { (exit 1); exit 1; }; }; }
9546 fi
9548 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9549 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9550 $as_echo_n "checking for GL/gl.h... " >&6; }
9551 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9552 $as_echo_n "(cached) " >&6
9553 fi
9554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9555 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9556 else
9557 # Is the header compilable?
9558 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9559 $as_echo_n "checking GL/gl.h usability... " >&6; }
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h. */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 $ac_includes_default
9567 #include <GL/gl.h>
9568 _ACEOF
9569 rm -f conftest.$ac_objext
9570 if { (ac_try="$ac_compile"
9571 case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574 esac
9575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9576 $as_echo "$ac_try_echo") >&5
9577 (eval "$ac_compile") 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest.$ac_objext; then
9587 ac_header_compiler=yes
9588 else
9589 $as_echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_header_compiler=no
9593 fi
9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9597 $as_echo "$ac_header_compiler" >&6; }
9599 # Is the header present?
9600 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9601 $as_echo_n "checking GL/gl.h presence... " >&6; }
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 #include <GL/gl.h>
9609 _ACEOF
9610 if { (ac_try="$ac_cpp conftest.$ac_ext"
9611 case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614 esac
9615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9616 $as_echo "$ac_try_echo") >&5
9617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } >/dev/null && {
9624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 }; then
9627 ac_header_preproc=yes
9628 else
9629 $as_echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_header_preproc=no
9633 fi
9635 rm -f conftest.err conftest.$ac_ext
9636 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9637 $as_echo "$ac_header_preproc" >&6; }
9639 # So? What about this header?
9640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9641 yes:no: )
9642 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9643 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9644 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9645 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9646 ac_header_preproc=yes
9647 ;;
9648 no:yes:* )
9649 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9650 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9651 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9652 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9653 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9654 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9655 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9656 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9657 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9658 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9659 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9660 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9662 ;;
9663 esac
9664 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9665 $as_echo_n "checking for GL/gl.h... " >&6; }
9666 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9667 $as_echo_n "(cached) " >&6
9668 else
9669 ac_cv_header_GL_gl_h=$ac_header_preproc
9670 fi
9671 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9672 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9674 fi
9675 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
9676 :
9677 else
9679 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9681 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9682 See \`config.log' for more details." >&5
9683 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9684 See \`config.log' for more details." >&2;}
9685 { (exit 1); exit 1; }; }; }
9686 fi
9689 else
9690 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9691 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9692 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9693 $as_echo_n "(cached) " >&6
9694 else
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9703 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9705 /* System header to define __stub macros and hopefully few prototypes,
9706 which can conflict with char NSOpenGLGetVersion (); below.
9707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9708 <limits.h> exists even on freestanding compilers. */
9710 #ifdef __STDC__
9711 # include <limits.h>
9712 #else
9713 # include <assert.h>
9714 #endif
9716 #undef NSOpenGLGetVersion
9718 /* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 char NSOpenGLGetVersion ();
9725 /* The GNU C library defines this for functions which it implements
9726 to always fail with ENOSYS. Some functions are actually named
9727 something starting with __ and the normal name is an alias. */
9728 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9729 choke me
9730 #endif
9732 int
9733 main ()
9734 {
9735 return NSOpenGLGetVersion ();
9736 ;
9737 return 0;
9738 }
9739 _ACEOF
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (ac_try="$ac_link"
9742 case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745 esac
9746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9747 $as_echo "$ac_try_echo") >&5
9748 (eval "$ac_link") 2>conftest.er1
9749 ac_status=$?
9750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
9753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } && {
9755 test -z "$ac_c_werror_flag" ||
9756 test ! -s conftest.err
9757 } && test -s conftest$ac_exeext && {
9758 test "$cross_compiling" = yes ||
9759 $as_test_x conftest$ac_exeext
9760 }; then
9761 ac_cv_func_NSOpenGLGetVersion=yes
9762 else
9763 $as_echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_cv_func_NSOpenGLGetVersion=no
9767 fi
9769 rm -rf conftest.dSYM
9770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9771 conftest$ac_exeext conftest.$ac_ext
9772 fi
9773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9774 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9775 if test "x$ac_cv_func_NSOpenGLGetVersion" = x""yes; then
9777 HAVE_NSGL='yes'
9778 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_NSGL 1
9782 _ACEOF
9784 fi
9786 fi
9788 if test "x$HAVE_GTK_X11" = "xyes"; then
9789 if test "x$APPLE_BUILD" = "xyes"; then
9790 LIBS="$LIBS -L/usr/X11/lib -lGL"
9791 fi
9792 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9793 $as_echo_n "checking for glXQueryVersion... " >&6; }
9794 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9795 $as_echo_n "(cached) " >&6
9796 else
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h. */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9805 #define glXQueryVersion innocuous_glXQueryVersion
9807 /* System header to define __stub macros and hopefully few prototypes,
9808 which can conflict with char glXQueryVersion (); below.
9809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9810 <limits.h> exists even on freestanding compilers. */
9812 #ifdef __STDC__
9813 # include <limits.h>
9814 #else
9815 # include <assert.h>
9816 #endif
9818 #undef glXQueryVersion
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char glXQueryVersion ();
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9831 choke me
9832 #endif
9834 int
9835 main ()
9836 {
9837 return glXQueryVersion ();
9838 ;
9839 return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9844 case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9847 esac
9848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9849 $as_echo "$ac_try_echo") >&5
9850 (eval "$ac_link") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext && {
9860 test "$cross_compiling" = yes ||
9861 $as_test_x conftest$ac_exeext
9862 }; then
9863 ac_cv_func_glXQueryVersion=yes
9864 else
9865 $as_echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_cv_func_glXQueryVersion=no
9869 fi
9871 rm -rf conftest.dSYM
9872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9873 conftest$ac_exeext conftest.$ac_ext
9874 fi
9875 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9876 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9877 if test "x$ac_cv_func_glXQueryVersion" = x""yes; then
9879 HAVE_GLX='yes'
9880 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9882 cat >>confdefs.h <<\_ACEOF
9883 #define HAVE_GLX 1
9884 _ACEOF
9886 fi
9888 fi
9891 fi
9898 if test "x$HAVE_OSMESA" = "xyes"; then
9899 VIDEO_OSMESA_TRUE=
9900 VIDEO_OSMESA_FALSE='#'
9901 else
9902 VIDEO_OSMESA_TRUE='#'
9903 VIDEO_OSMESA_FALSE=
9904 fi
9908 if test "x$HAVE_GLX" = "xyes"; then
9909 VIDEO_GLX_TRUE=
9910 VIDEO_GLX_FALSE='#'
9911 else
9912 VIDEO_GLX_TRUE='#'
9913 VIDEO_GLX_FALSE=
9914 fi
9918 if test "x$HAVE_NSGL" = "xyes"; then
9919 VIDEO_NSGL_TRUE=
9920 VIDEO_NSGL_FALSE='#'
9921 else
9922 VIDEO_NSGL_TRUE='#'
9923 VIDEO_NSGL_FALSE=
9924 fi
9927 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9928 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9929 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9930 $as_echo_n "(cached) " >&6
9931 else
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9940 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9942 /* System header to define __stub macros and hopefully few prototypes,
9943 which can conflict with char glGenFramebuffersEXT (); below.
9944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945 <limits.h> exists even on freestanding compilers. */
9947 #ifdef __STDC__
9948 # include <limits.h>
9949 #else
9950 # include <assert.h>
9951 #endif
9953 #undef glGenFramebuffersEXT
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9958 #ifdef __cplusplus
9959 extern "C"
9960 #endif
9961 char glGenFramebuffersEXT ();
9962 /* The GNU C library defines this for functions which it implements
9963 to always fail with ENOSYS. Some functions are actually named
9964 something starting with __ and the normal name is an alias. */
9965 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9966 choke me
9967 #endif
9969 int
9970 main ()
9971 {
9972 return glGenFramebuffersEXT ();
9973 ;
9974 return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984 $as_echo "$ac_try_echo") >&5
9985 (eval "$ac_link") 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest$ac_exeext && {
9995 test "$cross_compiling" = yes ||
9996 $as_test_x conftest$ac_exeext
9997 }; then
9998 ac_cv_func_glGenFramebuffersEXT=yes
9999 else
10000 $as_echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_cv_func_glGenFramebuffersEXT=no
10004 fi
10006 rm -rf conftest.dSYM
10007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008 conftest$ac_exeext conftest.$ac_ext
10009 fi
10010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
10011 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
10012 if test "x$ac_cv_func_glGenFramebuffersEXT" = x""yes; then
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_OPENGL_FBO 1
10016 _ACEOF
10018 fi
10020 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
10021 $as_echo_n "checking for glCreateShader... " >&6; }
10022 if test "${ac_cv_func_glCreateShader+set}" = set; then
10023 $as_echo_n "(cached) " >&6
10024 else
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h. */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
10032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10033 #define glCreateShader innocuous_glCreateShader
10035 /* System header to define __stub macros and hopefully few prototypes,
10036 which can conflict with char glCreateShader (); below.
10037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10038 <limits.h> exists even on freestanding compilers. */
10040 #ifdef __STDC__
10041 # include <limits.h>
10042 #else
10043 # include <assert.h>
10044 #endif
10046 #undef glCreateShader
10048 /* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 char glCreateShader ();
10055 /* The GNU C library defines this for functions which it implements
10056 to always fail with ENOSYS. Some functions are actually named
10057 something starting with __ and the normal name is an alias. */
10058 #if defined __stub_glCreateShader || defined __stub___glCreateShader
10059 choke me
10060 #endif
10062 int
10063 main ()
10064 {
10065 return glCreateShader ();
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (ac_try="$ac_link"
10072 case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075 esac
10076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10077 $as_echo "$ac_try_echo") >&5
10078 (eval "$ac_link") 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_c_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest$ac_exeext && {
10088 test "$cross_compiling" = yes ||
10089 $as_test_x conftest$ac_exeext
10090 }; then
10091 ac_cv_func_glCreateShader=yes
10092 else
10093 $as_echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_cv_func_glCreateShader=no
10097 fi
10099 rm -rf conftest.dSYM
10100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10101 conftest$ac_exeext conftest.$ac_ext
10102 fi
10103 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
10104 $as_echo "$ac_cv_func_glCreateShader" >&6; }
10105 if test "x$ac_cv_func_glCreateShader" = x""yes; then
10107 cat >>confdefs.h <<\_ACEOF
10108 #define HAVE_OPENGL_SHADER 1
10109 _ACEOF
10111 fi
10113 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
10114 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
10115 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
10116 $as_echo_n "(cached) " >&6
10117 else
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
10125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10126 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
10128 /* System header to define __stub macros and hopefully few prototypes,
10129 which can conflict with char glCreateShaderObjectARB (); below.
10130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10131 <limits.h> exists even on freestanding compilers. */
10133 #ifdef __STDC__
10134 # include <limits.h>
10135 #else
10136 # include <assert.h>
10137 #endif
10139 #undef glCreateShaderObjectARB
10141 /* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 char glCreateShaderObjectARB ();
10148 /* The GNU C library defines this for functions which it implements
10149 to always fail with ENOSYS. Some functions are actually named
10150 something starting with __ and the normal name is an alias. */
10151 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
10152 choke me
10153 #endif
10155 int
10156 main ()
10157 {
10158 return glCreateShaderObjectARB ();
10159 ;
10160 return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168 esac
10169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10170 $as_echo "$ac_try_echo") >&5
10171 (eval "$ac_link") 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest$ac_exeext && {
10181 test "$cross_compiling" = yes ||
10182 $as_test_x conftest$ac_exeext
10183 }; then
10184 ac_cv_func_glCreateShaderObjectARB=yes
10185 else
10186 $as_echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_cv_func_glCreateShaderObjectARB=no
10190 fi
10192 rm -rf conftest.dSYM
10193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10194 conftest$ac_exeext conftest.$ac_ext
10195 fi
10196 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
10197 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
10198 if test "x$ac_cv_func_glCreateShaderObjectARB" = x""yes; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_OPENGL_SHADER_ARB 1
10202 _ACEOF
10204 fi
10206 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
10207 $as_echo_n "checking for glClampColorARB... " >&6; }
10208 if test "${ac_cv_func_glClampColorARB+set}" = set; then
10209 $as_echo_n "(cached) " >&6
10210 else
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
10218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10219 #define glClampColorARB innocuous_glClampColorARB
10221 /* System header to define __stub macros and hopefully few prototypes,
10222 which can conflict with char glClampColorARB (); below.
10223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10224 <limits.h> exists even on freestanding compilers. */
10226 #ifdef __STDC__
10227 # include <limits.h>
10228 #else
10229 # include <assert.h>
10230 #endif
10232 #undef glClampColorARB
10234 /* Override any GCC internal prototype to avoid an error.
10235 Use char because int might match the return type of a GCC
10236 builtin and then its argument prototype would still apply. */
10237 #ifdef __cplusplus
10238 extern "C"
10239 #endif
10240 char glClampColorARB ();
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
10245 choke me
10246 #endif
10248 int
10249 main ()
10250 {
10251 return glClampColorARB ();
10252 ;
10253 return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (ac_try="$ac_link"
10258 case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10261 esac
10262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10263 $as_echo "$ac_try_echo") >&5
10264 (eval "$ac_link") 2>conftest.er1
10265 ac_status=$?
10266 grep -v '^ *+' conftest.er1 >conftest.err
10267 rm -f conftest.er1
10268 cat conftest.err >&5
10269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && {
10271 test -z "$ac_c_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest$ac_exeext && {
10274 test "$cross_compiling" = yes ||
10275 $as_test_x conftest$ac_exeext
10276 }; then
10277 ac_cv_func_glClampColorARB=yes
10278 else
10279 $as_echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_func_glClampColorARB=no
10283 fi
10285 rm -rf conftest.dSYM
10286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10287 conftest$ac_exeext conftest.$ac_ext
10288 fi
10289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
10290 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
10291 if test "x$ac_cv_func_glClampColorARB" = x""yes; then
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_OPENGL_CLAMP_COLOR 1
10295 _ACEOF
10297 fi
10302 if test "x$enable_translator" != "xno"; then
10303 case $host_cpu in
10304 i386|i486|i586|i686|x86_64)
10305 SH4_TRANSLATOR="x86"
10307 cat >>confdefs.h <<_ACEOF
10308 #define SH4_TRANSLATOR TARGET_X86
10309 _ACEOF
10310 ;;
10311 esac
10312 fi
10315 if test "$SH4_TRANSLATOR" = "x86"; then
10316 BUILD_SH4X86_TRUE=
10317 BUILD_SH4X86_FALSE='#'
10318 else
10319 BUILD_SH4X86_TRUE='#'
10320 BUILD_SH4X86_FALSE=
10321 fi
10324 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10325 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10326 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10327 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10328 $as_echo_n "(cached) " >&6
10329 fi
10330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10331 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10332 else
10333 # Is the header compilable?
10334 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10335 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 $ac_includes_default
10343 #include <CoreAudio/CoreAudio.h>
10344 _ACEOF
10345 rm -f conftest.$ac_objext
10346 if { (ac_try="$ac_compile"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350 esac
10351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10352 $as_echo "$ac_try_echo") >&5
10353 (eval "$ac_compile") 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && {
10360 test -z "$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 } && test -s conftest.$ac_objext; then
10363 ac_header_compiler=yes
10364 else
10365 $as_echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ac_header_compiler=no
10369 fi
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10373 $as_echo "$ac_header_compiler" >&6; }
10375 # Is the header present?
10376 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10377 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 #include <CoreAudio/CoreAudio.h>
10385 _ACEOF
10386 if { (ac_try="$ac_cpp conftest.$ac_ext"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10392 $as_echo "$ac_try_echo") >&5
10393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } >/dev/null && {
10400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 }; then
10403 ac_header_preproc=yes
10404 else
10405 $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_header_preproc=no
10409 fi
10411 rm -f conftest.err conftest.$ac_ext
10412 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10413 $as_echo "$ac_header_preproc" >&6; }
10415 # So? What about this header?
10416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10417 yes:no: )
10418 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10419 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10420 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10421 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10422 ac_header_preproc=yes
10423 ;;
10424 no:yes:* )
10425 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10426 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10427 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10428 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10429 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10430 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10431 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10432 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10433 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10434 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10435 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10436 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10438 ;;
10439 esac
10440 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10441 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10442 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10443 $as_echo_n "(cached) " >&6
10444 else
10445 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10446 fi
10447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10448 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10450 fi
10451 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
10453 HAVE_CORE_AUDIO=yes
10454 LIBS="$LIBS -framework CoreAudio"
10455 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_CORE_AUDIO 1
10459 _ACEOF
10461 else
10462 true
10463 fi
10468 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10469 AUDIO_OSX_TRUE=
10470 AUDIO_OSX_FALSE='#'
10471 else
10472 AUDIO_OSX_TRUE='#'
10473 AUDIO_OSX_FALSE=
10474 fi
10477 if test "x$with_sdl" != "xno"; then
10479 pkg_failed=no
10480 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
10481 $as_echo_n "checking for SDL... " >&6; }
10483 if test -n "$SDL_CFLAGS"; then
10484 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10485 elif test -n "$PKG_CONFIG"; then
10486 if test -n "$PKG_CONFIG" && \
10487 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10488 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10489 ac_status=$?
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; then
10492 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10493 else
10494 pkg_failed=yes
10495 fi
10496 else
10497 pkg_failed=untried
10498 fi
10499 if test -n "$SDL_LIBS"; then
10500 pkg_cv_SDL_LIBS="$SDL_LIBS"
10501 elif test -n "$PKG_CONFIG"; then
10502 if test -n "$PKG_CONFIG" && \
10503 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10504 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10505 ac_status=$?
10506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; then
10508 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10509 else
10510 pkg_failed=yes
10511 fi
10512 else
10513 pkg_failed=untried
10514 fi
10518 if test $pkg_failed = yes; then
10520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10521 _pkg_short_errors_supported=yes
10522 else
10523 _pkg_short_errors_supported=no
10524 fi
10525 if test $_pkg_short_errors_supported = yes; then
10526 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10527 else
10528 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10529 fi
10530 # Put the nasty error message in config.log where it belongs
10531 echo "$SDL_PKG_ERRORS" >&5
10533 { $as_echo "$as_me:$LINENO: result: no" >&5
10534 $as_echo "no" >&6; }
10536 if test "x$with_sdl" = "xyes"; then
10537 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10539 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10540 See \`config.log' for more details." >&5
10541 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10542 See \`config.log' for more details." >&2;}
10543 { (exit 1); exit 1; }; }; }
10544 fi
10546 elif test $pkg_failed = untried; then
10548 if test "x$with_sdl" = "xyes"; then
10549 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10551 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10552 See \`config.log' for more details." >&5
10553 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10554 See \`config.log' for more details." >&2;}
10555 { (exit 1); exit 1; }; }; }
10556 fi
10558 else
10559 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10560 SDL_LIBS=$pkg_cv_SDL_LIBS
10561 { $as_echo "$as_me:$LINENO: result: yes" >&5
10562 $as_echo "yes" >&6; }
10564 HAVE_SDL='yes'
10565 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_SDL 1
10569 _ACEOF
10572 fi
10573 fi
10576 if test "$HAVE_SDL" = 'yes' ; then
10577 AUDIO_SDL_TRUE=
10578 AUDIO_SDL_FALSE='#'
10579 else
10580 AUDIO_SDL_TRUE='#'
10581 AUDIO_SDL_FALSE=
10582 fi
10585 if test "x$with_pulse" != "xno"; then
10587 pkg_failed=no
10588 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10589 $as_echo_n "checking for PULSE... " >&6; }
10591 if test -n "$PULSE_CFLAGS"; then
10592 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10593 elif test -n "$PKG_CONFIG"; then
10594 if test -n "$PKG_CONFIG" && \
10595 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10596 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10597 ac_status=$?
10598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; then
10600 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10601 else
10602 pkg_failed=yes
10603 fi
10604 else
10605 pkg_failed=untried
10606 fi
10607 if test -n "$PULSE_LIBS"; then
10608 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10609 elif test -n "$PKG_CONFIG"; then
10610 if test -n "$PKG_CONFIG" && \
10611 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10612 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10613 ac_status=$?
10614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; then
10616 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10617 else
10618 pkg_failed=yes
10619 fi
10620 else
10621 pkg_failed=untried
10622 fi
10626 if test $pkg_failed = yes; then
10628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10629 _pkg_short_errors_supported=yes
10630 else
10631 _pkg_short_errors_supported=no
10632 fi
10633 if test $_pkg_short_errors_supported = yes; then
10634 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10635 else
10636 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10637 fi
10638 # Put the nasty error message in config.log where it belongs
10639 echo "$PULSE_PKG_ERRORS" >&5
10641 { $as_echo "$as_me:$LINENO: result: no" >&5
10642 $as_echo "no" >&6; }
10644 if test "x$with_pulse" = "xyes"; then
10645 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10647 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10648 See \`config.log' for more details." >&5
10649 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10650 See \`config.log' for more details." >&2;}
10651 { (exit 1); exit 1; }; }; }
10652 fi
10654 elif test $pkg_failed = untried; then
10656 if test "x$with_pulse" = "xyes"; then
10657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10659 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10660 See \`config.log' for more details." >&5
10661 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10662 See \`config.log' for more details." >&2;}
10663 { (exit 1); exit 1; }; }; }
10664 fi
10666 else
10667 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10668 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10669 { $as_echo "$as_me:$LINENO: result: yes" >&5
10670 $as_echo "yes" >&6; }
10672 HAVE_PULSE='yes'
10673 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10675 cat >>confdefs.h <<\_ACEOF
10676 #define HAVE_PULSE 1
10677 _ACEOF
10680 fi
10681 fi
10684 if test "$HAVE_PULSE" = 'yes' ; then
10685 AUDIO_PULSE_TRUE=
10686 AUDIO_PULSE_FALSE='#'
10687 else
10688 AUDIO_PULSE_TRUE='#'
10689 AUDIO_PULSE_FALSE=
10690 fi
10693 if test "x$with_esd" != "xno"; then
10695 pkg_failed=no
10696 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10697 $as_echo_n "checking for ESOUND... " >&6; }
10699 if test -n "$ESOUND_CFLAGS"; then
10700 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10701 elif test -n "$PKG_CONFIG"; then
10702 if test -n "$PKG_CONFIG" && \
10703 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10704 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10705 ac_status=$?
10706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; then
10708 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10709 else
10710 pkg_failed=yes
10711 fi
10712 else
10713 pkg_failed=untried
10714 fi
10715 if test -n "$ESOUND_LIBS"; then
10716 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10717 elif test -n "$PKG_CONFIG"; then
10718 if test -n "$PKG_CONFIG" && \
10719 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10720 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10721 ac_status=$?
10722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; then
10724 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10725 else
10726 pkg_failed=yes
10727 fi
10728 else
10729 pkg_failed=untried
10730 fi
10734 if test $pkg_failed = yes; then
10736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10737 _pkg_short_errors_supported=yes
10738 else
10739 _pkg_short_errors_supported=no
10740 fi
10741 if test $_pkg_short_errors_supported = yes; then
10742 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10743 else
10744 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10745 fi
10746 # Put the nasty error message in config.log where it belongs
10747 echo "$ESOUND_PKG_ERRORS" >&5
10749 { $as_echo "$as_me:$LINENO: result: no" >&5
10750 $as_echo "no" >&6; }
10752 if test "x$with_esd" = "xyes"; then
10753 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10755 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10756 See \`config.log' for more details." >&5
10757 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10758 See \`config.log' for more details." >&2;}
10759 { (exit 1); exit 1; }; }; }
10760 fi
10762 elif test $pkg_failed = untried; then
10764 if test "x$with_esd" = "xyes"; then
10765 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10767 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10768 See \`config.log' for more details." >&5
10769 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10770 See \`config.log' for more details." >&2;}
10771 { (exit 1); exit 1; }; }; }
10772 fi
10774 else
10775 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10776 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10777 { $as_echo "$as_me:$LINENO: result: yes" >&5
10778 $as_echo "yes" >&6; }
10780 HAVE_ESOUND='yes'
10781 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_ESOUND 1
10785 _ACEOF
10788 fi
10789 fi
10792 if test "$HAVE_ESOUND" = 'yes' ; then
10793 AUDIO_ESOUND_TRUE=
10794 AUDIO_ESOUND_FALSE='#'
10795 else
10796 AUDIO_ESOUND_TRUE='#'
10797 AUDIO_ESOUND_FALSE=
10798 fi
10802 pkg_failed=no
10803 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10804 $as_echo_n "checking for ALSA... " >&6; }
10806 if test -n "$ALSA_CFLAGS"; then
10807 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10808 elif test -n "$PKG_CONFIG"; then
10809 if test -n "$PKG_CONFIG" && \
10810 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10811 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10812 ac_status=$?
10813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; then
10815 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10816 else
10817 pkg_failed=yes
10818 fi
10819 else
10820 pkg_failed=untried
10821 fi
10822 if test -n "$ALSA_LIBS"; then
10823 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10824 elif test -n "$PKG_CONFIG"; then
10825 if test -n "$PKG_CONFIG" && \
10826 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10827 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10828 ac_status=$?
10829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; then
10831 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10832 else
10833 pkg_failed=yes
10834 fi
10835 else
10836 pkg_failed=untried
10837 fi
10841 if test $pkg_failed = yes; then
10843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10844 _pkg_short_errors_supported=yes
10845 else
10846 _pkg_short_errors_supported=no
10847 fi
10848 if test $_pkg_short_errors_supported = yes; then
10849 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10850 else
10851 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10852 fi
10853 # Put the nasty error message in config.log where it belongs
10854 echo "$ALSA_PKG_ERRORS" >&5
10856 { $as_echo "$as_me:$LINENO: result: no" >&5
10857 $as_echo "no" >&6; }
10858 true
10859 elif test $pkg_failed = untried; then
10860 true
10861 else
10862 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10863 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10864 { $as_echo "$as_me:$LINENO: result: yes" >&5
10865 $as_echo "yes" >&6; }
10867 HAVE_ALSA='yes'
10868 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_ALSA 1
10872 _ACEOF
10874 fi
10877 if test "$HAVE_ALSA" = 'yes' ; then
10878 AUDIO_ALSA_TRUE=
10879 AUDIO_ALSA_FALSE='#'
10880 else
10881 AUDIO_ALSA_TRUE='#'
10882 AUDIO_ALSA_FALSE=
10883 fi
10887 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10888 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10889 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10890 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10891 $as_echo_n "(cached) " >&6
10892 fi
10893 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10894 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10895 else
10896 # Is the header compilable?
10897 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10898 $as_echo_n "checking linux/cdrom.h 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 <linux/cdrom.h>
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 linux/cdrom.h presence" >&5
10940 $as_echo_n "checking linux/cdrom.h 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 <linux/cdrom.h>
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: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10982 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10983 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10984 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10985 ac_header_preproc=yes
10986 ;;
10987 no:yes:* )
10988 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10989 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10990 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10991 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10992 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10993 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10994 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10995 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10996 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10997 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10998 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10999 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
11001 ;;
11002 esac
11003 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
11004 $as_echo_n "checking for linux/cdrom.h... " >&6; }
11005 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
11006 $as_echo_n "(cached) " >&6
11007 else
11008 ac_cv_header_linux_cdrom_h=$ac_header_preproc
11009 fi
11010 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
11011 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
11013 fi
11014 if test "x$ac_cv_header_linux_cdrom_h" = x""yes; then
11016 CDROM_DRIVER=linux
11017 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
11018 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
11019 old_CFLAGS="$CFLAGS"
11020 CFLAGS="$CFLAGS $STDCFLAG"
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <linux/cdrom.h>
11028 int
11029 main ()
11030 {
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext
11037 if { (ac_try="$ac_compile"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_compile") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest.$ac_objext; then
11054 { $as_echo "$as_me:$LINENO: result: Yes" >&5
11055 $as_echo "Yes" >&6; }
11056 else
11057 $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11061 { $as_echo "$as_me:$LINENO: result: No" >&5
11062 $as_echo "No" >&6; }
11063 STDCFLAG="-std=gnu99"
11064 fi
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 CFLAGS="$old_CFLAGS"
11069 else
11070 true
11071 fi
11074 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11075 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11076 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11077 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11078 $as_echo_n "(cached) " >&6
11079 fi
11080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11081 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11082 else
11083 # Is the header compilable?
11084 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
11085 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 $ac_includes_default
11093 #include <IOKit/IOKitLib.h>
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100 esac
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest.$ac_objext; then
11113 ac_header_compiler=yes
11114 else
11115 $as_echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 ac_header_compiler=no
11119 fi
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123 $as_echo "$ac_header_compiler" >&6; }
11125 # Is the header present?
11126 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
11127 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
11128 cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h. */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 #include <IOKit/IOKitLib.h>
11135 _ACEOF
11136 if { (ac_try="$ac_cpp conftest.$ac_ext"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140 esac
11141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11142 $as_echo "$ac_try_echo") >&5
11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } >/dev/null && {
11150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11152 }; then
11153 ac_header_preproc=yes
11154 else
11155 $as_echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ac_header_preproc=no
11159 fi
11161 rm -f conftest.err conftest.$ac_ext
11162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11163 $as_echo "$ac_header_preproc" >&6; }
11165 # So? What about this header?
11166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11167 yes:no: )
11168 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11169 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11170 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
11171 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
11172 ac_header_preproc=yes
11173 ;;
11174 no:yes:* )
11175 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
11176 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
11177 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
11178 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
11179 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
11180 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
11181 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
11182 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11183 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
11184 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
11185 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
11186 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
11188 ;;
11189 esac
11190 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11191 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11192 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11193 $as_echo_n "(cached) " >&6
11194 else
11195 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
11196 fi
11197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11198 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11200 fi
11201 if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then
11203 CDROM_DRIVER=osx
11204 LIBS="$LIBS -framework IOKit"
11205 else
11206 true
11207 fi
11212 if test "x$CDROM_DRIVER" = "xlinux"; then
11213 CDROM_LINUX_TRUE=
11214 CDROM_LINUX_FALSE='#'
11215 else
11216 CDROM_LINUX_TRUE='#'
11217 CDROM_LINUX_FALSE=
11218 fi
11222 if test "x$CDROM_DRIVER" = "xosx"; then
11223 CDROM_OSX_TRUE=
11224 CDROM_OSX_FALSE='#'
11225 else
11226 CDROM_OSX_TRUE='#'
11227 CDROM_OSX_FALSE=
11228 fi
11232 if test "x$CDROM_DRIVER" = "x"; then
11233 CDROM_NONE_TRUE=
11234 CDROM_NONE_FALSE='#'
11235 else
11236 CDROM_NONE_TRUE='#'
11237 CDROM_NONE_FALSE=
11238 fi
11241 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11242 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11243 $as_echo_n "checking for linux/joystick.h... " >&6; }
11244 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11245 $as_echo_n "(cached) " >&6
11246 fi
11247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11248 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11249 else
11250 # Is the header compilable?
11251 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
11252 $as_echo_n "checking linux/joystick.h usability... " >&6; }
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h. */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 $ac_includes_default
11260 #include <linux/joystick.h>
11261 _ACEOF
11262 rm -f conftest.$ac_objext
11263 if { (ac_try="$ac_compile"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267 esac
11268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11269 $as_echo "$ac_try_echo") >&5
11270 (eval "$ac_compile") 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } && {
11277 test -z "$ac_c_werror_flag" ||
11278 test ! -s conftest.err
11279 } && test -s conftest.$ac_objext; then
11280 ac_header_compiler=yes
11281 else
11282 $as_echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_header_compiler=no
11286 fi
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11290 $as_echo "$ac_header_compiler" >&6; }
11292 # Is the header present?
11293 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
11294 $as_echo_n "checking linux/joystick.h presence... " >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h. */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 #include <linux/joystick.h>
11302 _ACEOF
11303 if { (ac_try="$ac_cpp conftest.$ac_ext"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307 esac
11308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11309 $as_echo "$ac_try_echo") >&5
11310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } >/dev/null && {
11317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11318 test ! -s conftest.err
11319 }; then
11320 ac_header_preproc=yes
11321 else
11322 $as_echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_preproc=no
11326 fi
11328 rm -f conftest.err conftest.$ac_ext
11329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11330 $as_echo "$ac_header_preproc" >&6; }
11332 # So? What about this header?
11333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11334 yes:no: )
11335 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
11336 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11337 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
11338 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
11339 ac_header_preproc=yes
11340 ;;
11341 no:yes:* )
11342 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11343 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11344 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11345 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11346 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11347 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11348 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11349 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11350 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11351 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11352 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11353 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11355 ;;
11356 esac
11357 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11358 $as_echo_n "checking for linux/joystick.h... " >&6; }
11359 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_cv_header_linux_joystick_h=$ac_header_preproc
11363 fi
11364 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11365 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11367 fi
11368 if test "x$ac_cv_header_linux_joystick_h" = x""yes; then
11370 HAVE_LINUX_JOYSTICK_H=yes
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_LINUX_JOYSTICK 1
11374 _ACEOF
11376 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
11377 else
11378 echo "Linux Joystick support not found, building without it."
11379 fi
11384 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11385 JOY_LINUX_TRUE=
11386 JOY_LINUX_FALSE='#'
11387 else
11388 JOY_LINUX_TRUE='#'
11389 JOY_LINUX_FALSE=
11390 fi
11393 if test "x$with_lirc" != "xno"; then
11394 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11395 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11396 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11397 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11398 $as_echo_n "(cached) " >&6
11399 fi
11400 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11401 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11402 else
11403 # Is the header compilable?
11404 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
11405 $as_echo_n "checking lirc/lirc_client.h usability... " >&6; }
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 $ac_includes_default
11413 #include <lirc/lirc_client.h>
11414 _ACEOF
11415 rm -f conftest.$ac_objext
11416 if { (ac_try="$ac_compile"
11417 case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420 esac
11421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11422 $as_echo "$ac_try_echo") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest.$ac_objext; then
11433 ac_header_compiler=yes
11434 else
11435 $as_echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_header_compiler=no
11439 fi
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11443 $as_echo "$ac_header_compiler" >&6; }
11445 # Is the header present?
11446 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
11447 $as_echo_n "checking lirc/lirc_client.h presence... " >&6; }
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <lirc/lirc_client.h>
11455 _ACEOF
11456 if { (ac_try="$ac_cpp conftest.$ac_ext"
11457 case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460 esac
11461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11462 $as_echo "$ac_try_echo") >&5
11463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } >/dev/null && {
11470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 }; then
11473 ac_header_preproc=yes
11474 else
11475 $as_echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ac_header_preproc=no
11479 fi
11481 rm -f conftest.err conftest.$ac_ext
11482 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11483 $as_echo "$ac_header_preproc" >&6; }
11485 # So? What about this header?
11486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11487 yes:no: )
11488 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
11489 $as_echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11490 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
11491 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
11492 ac_header_preproc=yes
11493 ;;
11494 no:yes:* )
11495 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
11496 $as_echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
11497 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
11498 $as_echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
11499 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
11500 $as_echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
11501 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
11502 $as_echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
11503 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
11504 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
11505 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
11506 $as_echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
11508 ;;
11509 esac
11510 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11511 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11512 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
11516 fi
11517 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11518 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11520 fi
11521 if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then
11523 HAVE_LIRC_CLIENT_H=yes
11525 cat >>confdefs.h <<\_ACEOF
11526 #define HAVE_LIRC 1
11527 _ACEOF
11529 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
11531 else
11532 echo "LIRC support not found, building without it."
11533 fi
11536 fi
11539 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
11540 INPUT_LIRC_TRUE=
11541 INPUT_LIRC_FALSE='#'
11542 else
11543 INPUT_LIRC_TRUE='#'
11544 INPUT_LIRC_FALSE=
11545 fi
11548 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11549 set dummy sh-elf-gcc; ac_word=$2
11550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11551 $as_echo_n "checking for $ac_word... " >&6; }
11552 if test "${ac_cv_path_SHCC+set}" = set; then
11553 $as_echo_n "(cached) " >&6
11554 else
11555 case $SHCC in
11556 [\\/]* | ?:[\\/]*)
11557 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11558 ;;
11559 *)
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11562 do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11570 fi
11571 done
11572 done
11573 IFS=$as_save_IFS
11575 ;;
11576 esac
11577 fi
11578 SHCC=$ac_cv_path_SHCC
11579 if test -n "$SHCC"; then
11580 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
11581 $as_echo "$SHCC" >&6; }
11582 else
11583 { $as_echo "$as_me:$LINENO: result: no" >&5
11584 $as_echo "no" >&6; }
11585 fi
11588 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11589 set dummy sh-elf-ld; ac_word=$2
11590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if test "${ac_cv_path_SHLD+set}" = set; then
11593 $as_echo_n "(cached) " >&6
11594 else
11595 case $SHLD in
11596 [\\/]* | ?:[\\/]*)
11597 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11598 ;;
11599 *)
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11602 do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11607 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11610 fi
11611 done
11612 done
11613 IFS=$as_save_IFS
11615 ;;
11616 esac
11617 fi
11618 SHLD=$ac_cv_path_SHLD
11619 if test -n "$SHLD"; then
11620 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
11621 $as_echo "$SHLD" >&6; }
11622 else
11623 { $as_echo "$as_me:$LINENO: result: no" >&5
11624 $as_echo "no" >&6; }
11625 fi
11628 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11629 set dummy sh-elf-objcopy; ac_word=$2
11630 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11633 $as_echo_n "(cached) " >&6
11634 else
11635 case $SHOBJCOPY in
11636 [\\/]* | ?:[\\/]*)
11637 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11638 ;;
11639 *)
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11642 do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11647 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11650 fi
11651 done
11652 done
11653 IFS=$as_save_IFS
11655 ;;
11656 esac
11657 fi
11658 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11659 if test -n "$SHOBJCOPY"; then
11660 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11661 $as_echo "$SHOBJCOPY" >&6; }
11662 else
11663 { $as_echo "$as_me:$LINENO: result: no" >&5
11664 $as_echo "no" >&6; }
11665 fi
11668 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11669 set dummy arm-elf-gcc; ac_word=$2
11670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11671 $as_echo_n "checking for $ac_word... " >&6; }
11672 if test "${ac_cv_path_ARMCC+set}" = set; then
11673 $as_echo_n "(cached) " >&6
11674 else
11675 case $ARMCC in
11676 [\\/]* | ?:[\\/]*)
11677 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11678 ;;
11679 *)
11680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11682 do
11683 IFS=$as_save_IFS
11684 test -z "$as_dir" && as_dir=.
11685 for ac_exec_ext in '' $ac_executable_extensions; do
11686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11687 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 break 2
11690 fi
11691 done
11692 done
11693 IFS=$as_save_IFS
11695 ;;
11696 esac
11697 fi
11698 ARMCC=$ac_cv_path_ARMCC
11699 if test -n "$ARMCC"; then
11700 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11701 $as_echo "$ARMCC" >&6; }
11702 else
11703 { $as_echo "$as_me:$LINENO: result: no" >&5
11704 $as_echo "no" >&6; }
11705 fi
11708 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11709 set dummy arm-elf-ld; ac_word=$2
11710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if test "${ac_cv_path_ARMLD+set}" = set; then
11713 $as_echo_n "(cached) " >&6
11714 else
11715 case $ARMLD in
11716 [\\/]* | ?:[\\/]*)
11717 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11718 ;;
11719 *)
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11722 do
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11727 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11728 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 break 2
11730 fi
11731 done
11732 done
11733 IFS=$as_save_IFS
11735 ;;
11736 esac
11737 fi
11738 ARMLD=$ac_cv_path_ARMLD
11739 if test -n "$ARMLD"; then
11740 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11741 $as_echo "$ARMLD" >&6; }
11742 else
11743 { $as_echo "$as_me:$LINENO: result: no" >&5
11744 $as_echo "no" >&6; }
11745 fi
11748 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11749 set dummy arm-elf-objcopy; ac_word=$2
11750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11753 $as_echo_n "(cached) " >&6
11754 else
11755 case $ARMOBJCOPY in
11756 [\\/]* | ?:[\\/]*)
11757 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11758 ;;
11759 *)
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11762 do
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11767 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11769 break 2
11770 fi
11771 done
11772 done
11773 IFS=$as_save_IFS
11775 ;;
11776 esac
11777 fi
11778 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11779 if test -n "$ARMOBJCOPY"; then
11780 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11781 $as_echo "$ARMOBJCOPY" >&6; }
11782 else
11783 { $as_echo "$as_me:$LINENO: result: no" >&5
11784 $as_echo "no" >&6; }
11785 fi
11789 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11790 BUILD_SH="no"
11791 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11792 else
11793 BUILD_SH="yes"
11794 fi
11795 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11796 BUILD_ARM="no"
11797 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11798 else
11799 BUILD_ARM="yes"
11800 fi
11803 if test "$BUILD_SH" = "yes"; then
11804 BUILD_SYSTEST_TRUE=
11805 BUILD_SYSTEST_FALSE='#'
11806 else
11807 BUILD_SYSTEST_TRUE='#'
11808 BUILD_SYSTEST_FALSE=
11809 fi
11813 if test "$BUILD_ARM" = "yes"; then
11814 BUILD_ARMTEST_TRUE=
11815 BUILD_ARMTEST_FALSE='#'
11816 else
11817 BUILD_ARMTEST_TRUE='#'
11818 BUILD_ARMTEST_FALSE=
11819 fi
11822 CFLAGS="$CFLAGS $STDCFLAG"
11824 GETTEXT_PACKAGE=lxdream
11825 LXDREAM_LIBS="$LIBS"
11826 LIBS=""
11830 cat >>confdefs.h <<_ACEOF
11831 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11832 _ACEOF
11835 ALL_LINGUAS="de es it pt_BR"
11838 for ac_header in locale.h
11839 do
11840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11843 $as_echo_n "checking for $ac_header... " >&6; }
11844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 $as_echo_n "(cached) " >&6
11846 fi
11847 ac_res=`eval 'as_val=${'$as_ac_Header'}
11848 $as_echo "$as_val"'`
11849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11850 $as_echo "$ac_res" >&6; }
11851 else
11852 # Is the header compilable?
11853 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11854 $as_echo_n "checking $ac_header usability... " >&6; }
11855 cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h. */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 $ac_includes_default
11862 #include <$ac_header>
11863 _ACEOF
11864 rm -f conftest.$ac_objext
11865 if { (ac_try="$ac_compile"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11871 $as_echo "$ac_try_echo") >&5
11872 (eval "$ac_compile") 2>conftest.er1
11873 ac_status=$?
11874 grep -v '^ *+' conftest.er1 >conftest.err
11875 rm -f conftest.er1
11876 cat conftest.err >&5
11877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } && {
11879 test -z "$ac_c_werror_flag" ||
11880 test ! -s conftest.err
11881 } && test -s conftest.$ac_objext; then
11882 ac_header_compiler=yes
11883 else
11884 $as_echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 ac_header_compiler=no
11888 fi
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11892 $as_echo "$ac_header_compiler" >&6; }
11894 # Is the header present?
11895 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11896 $as_echo_n "checking $ac_header presence... " >&6; }
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h. */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <$ac_header>
11904 _ACEOF
11905 if { (ac_try="$ac_cpp conftest.$ac_ext"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909 esac
11910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11911 $as_echo "$ac_try_echo") >&5
11912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } >/dev/null && {
11919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11921 }; then
11922 ac_header_preproc=yes
11923 else
11924 $as_echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_header_preproc=no
11928 fi
11930 rm -f conftest.err conftest.$ac_ext
11931 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11932 $as_echo "$ac_header_preproc" >&6; }
11934 # So? What about this header?
11935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11936 yes:no: )
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11938 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11941 ac_header_preproc=yes
11942 ;;
11943 no:yes:* )
11944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11945 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11947 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11949 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11951 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11953 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11955 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11957 ;;
11958 esac
11959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 $as_echo_n "checking for $ac_header... " >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 $as_echo_n "(cached) " >&6
11963 else
11964 eval "$as_ac_Header=\$ac_header_preproc"
11965 fi
11966 ac_res=`eval 'as_val=${'$as_ac_Header'}
11967 $as_echo "$as_val"'`
11968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11971 fi
11972 as_val=`eval 'as_val=${'$as_ac_Header'}
11973 $as_echo "$as_val"'`
11974 if test "x$as_val" = x""yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 _ACEOF
11979 fi
11981 done
11983 if test $ac_cv_header_locale_h = yes; then
11984 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11985 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11986 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11987 $as_echo_n "(cached) " >&6
11988 else
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 #include <locale.h>
11996 int
11997 main ()
11998 {
11999 return LC_MESSAGES
12000 ;
12001 return 0;
12002 }
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (ac_try="$ac_link"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009 esac
12010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012 (eval "$ac_link") 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } && {
12019 test -z "$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12021 } && test -s conftest$ac_exeext && {
12022 test "$cross_compiling" = yes ||
12023 $as_test_x conftest$ac_exeext
12024 }; then
12025 am_cv_val_LC_MESSAGES=yes
12026 else
12027 $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 am_cv_val_LC_MESSAGES=no
12031 fi
12033 rm -rf conftest.dSYM
12034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12035 conftest$ac_exeext conftest.$ac_ext
12036 fi
12037 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12038 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12039 if test $am_cv_val_LC_MESSAGES = yes; then
12041 cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_LC_MESSAGES 1
12043 _ACEOF
12045 fi
12046 fi
12047 USE_NLS=yes
12050 gt_cv_have_gettext=no
12052 CATOBJEXT=NONE
12053 XGETTEXT=:
12054 INTLLIBS=
12056 if test "${ac_cv_header_libintl_h+set}" = set; then
12057 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12058 $as_echo_n "checking for libintl.h... " >&6; }
12059 if test "${ac_cv_header_libintl_h+set}" = set; then
12060 $as_echo_n "(cached) " >&6
12061 fi
12062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12063 $as_echo "$ac_cv_header_libintl_h" >&6; }
12064 else
12065 # Is the header compilable?
12066 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
12067 $as_echo_n "checking libintl.h usability... " >&6; }
12068 cat >conftest.$ac_ext <<_ACEOF
12069 /* confdefs.h. */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12074 $ac_includes_default
12075 #include <libintl.h>
12076 _ACEOF
12077 rm -f conftest.$ac_objext
12078 if { (ac_try="$ac_compile"
12079 case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12082 esac
12083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12084 $as_echo "$ac_try_echo") >&5
12085 (eval "$ac_compile") 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && {
12092 test -z "$ac_c_werror_flag" ||
12093 test ! -s conftest.err
12094 } && test -s conftest.$ac_objext; then
12095 ac_header_compiler=yes
12096 else
12097 $as_echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_header_compiler=no
12101 fi
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12105 $as_echo "$ac_header_compiler" >&6; }
12107 # Is the header present?
12108 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
12109 $as_echo_n "checking libintl.h presence... " >&6; }
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h. */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 #include <libintl.h>
12117 _ACEOF
12118 if { (ac_try="$ac_cpp conftest.$ac_ext"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122 esac
12123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12124 $as_echo "$ac_try_echo") >&5
12125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } >/dev/null && {
12132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 }; then
12135 ac_header_preproc=yes
12136 else
12137 $as_echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_header_preproc=no
12141 fi
12143 rm -f conftest.err conftest.$ac_ext
12144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12145 $as_echo "$ac_header_preproc" >&6; }
12147 # So? What about this header?
12148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12149 yes:no: )
12150 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12151 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12152 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
12153 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
12154 ac_header_preproc=yes
12155 ;;
12156 no:yes:* )
12157 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
12158 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
12159 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
12160 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
12161 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
12162 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
12163 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
12164 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12165 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
12166 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
12167 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
12168 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
12170 ;;
12171 esac
12172 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12173 $as_echo_n "checking for libintl.h... " >&6; }
12174 if test "${ac_cv_header_libintl_h+set}" = set; then
12175 $as_echo_n "(cached) " >&6
12176 else
12177 ac_cv_header_libintl_h=$ac_header_preproc
12178 fi
12179 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12180 $as_echo "$ac_cv_header_libintl_h" >&6; }
12182 fi
12183 if test "x$ac_cv_header_libintl_h" = x""yes; then
12184 gt_cv_func_dgettext_libintl="no"
12185 libintl_extra_libs=""
12187 #
12188 # First check in libc
12189 #
12190 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
12191 $as_echo_n "checking for ngettext in libc... " >&6; }
12192 if test "${gt_cv_func_ngettext_libc+set}" = set; then
12193 $as_echo_n "(cached) " >&6
12194 else
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h. */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12202 #include <libintl.h>
12204 int
12205 main ()
12206 {
12207 return !ngettext ("","", 1)
12208 ;
12209 return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217 esac
12218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12219 $as_echo "$ac_try_echo") >&5
12220 (eval "$ac_link") 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest$ac_exeext && {
12230 test "$cross_compiling" = yes ||
12231 $as_test_x conftest$ac_exeext
12232 }; then
12233 gt_cv_func_ngettext_libc=yes
12234 else
12235 $as_echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 gt_cv_func_ngettext_libc=no
12239 fi
12241 rm -rf conftest.dSYM
12242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12245 fi
12246 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
12247 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
12249 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12250 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
12251 $as_echo_n "checking for dgettext in libc... " >&6; }
12252 if test "${gt_cv_func_dgettext_libc+set}" = set; then
12253 $as_echo_n "(cached) " >&6
12254 else
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 #include <libintl.h>
12264 int
12265 main ()
12266 {
12267 return !dgettext ("","")
12268 ;
12269 return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277 esac
12278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12279 $as_echo "$ac_try_echo") >&5
12280 (eval "$ac_link") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext && {
12290 test "$cross_compiling" = yes ||
12291 $as_test_x conftest$ac_exeext
12292 }; then
12293 gt_cv_func_dgettext_libc=yes
12294 else
12295 $as_echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 gt_cv_func_dgettext_libc=no
12299 fi
12301 rm -rf conftest.dSYM
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12305 fi
12306 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
12307 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
12308 fi
12310 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12312 for ac_func in bind_textdomain_codeset
12313 do
12314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12315 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12316 $as_echo_n "checking for $ac_func... " >&6; }
12317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12318 $as_echo_n "(cached) " >&6
12319 else
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h. */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12328 #define $ac_func innocuous_$ac_func
12330 /* System header to define __stub macros and hopefully few prototypes,
12331 which can conflict with char $ac_func (); below.
12332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12333 <limits.h> exists even on freestanding compilers. */
12335 #ifdef __STDC__
12336 # include <limits.h>
12337 #else
12338 # include <assert.h>
12339 #endif
12341 #undef $ac_func
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12346 #ifdef __cplusplus
12347 extern "C"
12348 #endif
12349 char $ac_func ();
12350 /* The GNU C library defines this for functions which it implements
12351 to always fail with ENOSYS. Some functions are actually named
12352 something starting with __ and the normal name is an alias. */
12353 #if defined __stub_$ac_func || defined __stub___$ac_func
12354 choke me
12355 #endif
12357 int
12358 main ()
12359 {
12360 return $ac_func ();
12361 ;
12362 return 0;
12363 }
12364 _ACEOF
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (ac_try="$ac_link"
12367 case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370 esac
12371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12372 $as_echo "$ac_try_echo") >&5
12373 (eval "$ac_link") 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest$ac_exeext && {
12383 test "$cross_compiling" = yes ||
12384 $as_test_x conftest$ac_exeext
12385 }; then
12386 eval "$as_ac_var=yes"
12387 else
12388 $as_echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 eval "$as_ac_var=no"
12392 fi
12394 rm -rf conftest.dSYM
12395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12396 conftest$ac_exeext conftest.$ac_ext
12397 fi
12398 ac_res=`eval 'as_val=${'$as_ac_var'}
12399 $as_echo "$as_val"'`
12400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12401 $as_echo "$ac_res" >&6; }
12402 as_val=`eval 'as_val=${'$as_ac_var'}
12403 $as_echo "$as_val"'`
12404 if test "x$as_val" = x""yes; then
12405 cat >>confdefs.h <<_ACEOF
12406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12407 _ACEOF
12409 fi
12410 done
12412 fi
12414 #
12415 # If we don't have everything we want, check in libintl
12416 #
12417 if test "$gt_cv_func_dgettext_libc" != "yes" \
12418 || test "$gt_cv_func_ngettext_libc" != "yes" \
12419 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12421 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
12422 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12423 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12424 $as_echo_n "(cached) " >&6
12425 else
12426 ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-lintl $LIBS"
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char bindtextdomain ();
12442 int
12443 main ()
12444 {
12445 return bindtextdomain ();
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (ac_try="$ac_link"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12457 $as_echo "$ac_try_echo") >&5
12458 (eval "$ac_link") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest$ac_exeext && {
12468 test "$cross_compiling" = yes ||
12469 $as_test_x conftest$ac_exeext
12470 }; then
12471 ac_cv_lib_intl_bindtextdomain=yes
12472 else
12473 $as_echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_cv_lib_intl_bindtextdomain=no
12477 fi
12479 rm -rf conftest.dSYM
12480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12483 fi
12484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
12485 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12486 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
12487 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12488 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12489 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12490 $as_echo_n "(cached) " >&6
12491 else
12492 ac_check_lib_save_LIBS=$LIBS
12493 LIBS="-lintl $LIBS"
12494 cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h. */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char ngettext ();
12508 int
12509 main ()
12510 {
12511 return ngettext ();
12512 ;
12513 return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521 esac
12522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12523 $as_echo "$ac_try_echo") >&5
12524 (eval "$ac_link") 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest$ac_exeext && {
12534 test "$cross_compiling" = yes ||
12535 $as_test_x conftest$ac_exeext
12536 }; then
12537 ac_cv_lib_intl_ngettext=yes
12538 else
12539 $as_echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ac_cv_lib_intl_ngettext=no
12543 fi
12545 rm -rf conftest.dSYM
12546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12549 fi
12550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12551 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12552 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12553 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12554 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12555 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12556 $as_echo_n "(cached) " >&6
12557 else
12558 ac_check_lib_save_LIBS=$LIBS
12559 LIBS="-lintl $LIBS"
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12570 #ifdef __cplusplus
12571 extern "C"
12572 #endif
12573 char dgettext ();
12574 int
12575 main ()
12576 {
12577 return dgettext ();
12578 ;
12579 return 0;
12580 }
12581 _ACEOF
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (ac_try="$ac_link"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587 esac
12588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12589 $as_echo "$ac_try_echo") >&5
12590 (eval "$ac_link") 2>conftest.er1
12591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
12595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest$ac_exeext && {
12600 test "$cross_compiling" = yes ||
12601 $as_test_x conftest$ac_exeext
12602 }; then
12603 ac_cv_lib_intl_dgettext=yes
12604 else
12605 $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_cv_lib_intl_dgettext=no
12609 fi
12611 rm -rf conftest.dSYM
12612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12615 fi
12616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12617 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12618 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
12619 gt_cv_func_dgettext_libintl=yes
12620 fi
12622 fi
12624 fi
12627 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12628 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12629 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12630 { $as_echo "$as_me:$LINENO: result: " >&5
12631 $as_echo "" >&6; }
12632 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12633 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12634 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12635 $as_echo_n "(cached) " >&6
12636 else
12637 ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-lintl -liconv $LIBS"
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h. */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char ngettext ();
12653 int
12654 main ()
12655 {
12656 return ngettext ();
12657 ;
12658 return 0;
12659 }
12660 _ACEOF
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666 esac
12667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12668 $as_echo "$ac_try_echo") >&5
12669 (eval "$ac_link") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest$ac_exeext && {
12679 test "$cross_compiling" = yes ||
12680 $as_test_x conftest$ac_exeext
12681 }; then
12682 ac_cv_lib_intl_ngettext=yes
12683 else
12684 $as_echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_cv_lib_intl_ngettext=no
12688 fi
12690 rm -rf conftest.dSYM
12691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12692 conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12694 fi
12695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12696 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12697 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12698 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12699 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12700 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12701 $as_echo_n "(cached) " >&6
12702 else
12703 ac_check_lib_save_LIBS=$LIBS
12704 LIBS="-lintl -liconv $LIBS"
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12712 /* Override any GCC internal prototype to avoid an error.
12713 Use char because int might match the return type of a GCC
12714 builtin and then its argument prototype would still apply. */
12715 #ifdef __cplusplus
12716 extern "C"
12717 #endif
12718 char dcgettext ();
12719 int
12720 main ()
12721 {
12722 return dcgettext ();
12723 ;
12724 return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732 esac
12733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12734 $as_echo "$ac_try_echo") >&5
12735 (eval "$ac_link") 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_c_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest$ac_exeext && {
12745 test "$cross_compiling" = yes ||
12746 $as_test_x conftest$ac_exeext
12747 }; then
12748 ac_cv_lib_intl_dcgettext=yes
12749 else
12750 $as_echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12753 ac_cv_lib_intl_dcgettext=no
12754 fi
12756 rm -rf conftest.dSYM
12757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12760 fi
12761 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12762 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12763 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
12764 gt_cv_func_dgettext_libintl=yes
12765 libintl_extra_libs=-liconv
12766 else
12767 :
12768 fi
12770 else
12771 :
12772 fi
12774 fi
12776 #
12777 # If we found libintl, then check in it for bind_textdomain_codeset();
12778 # we'll prefer libc if neither have bind_textdomain_codeset(),
12779 # and both have dgettext and ngettext
12780 #
12781 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12782 glib_save_LIBS="$LIBS"
12783 LIBS="$LIBS -lintl $libintl_extra_libs"
12784 unset ac_cv_func_bind_textdomain_codeset
12786 for ac_func in bind_textdomain_codeset
12787 do
12788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12789 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12790 $as_echo_n "checking for $ac_func... " >&6; }
12791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12792 $as_echo_n "(cached) " >&6
12793 else
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12802 #define $ac_func innocuous_$ac_func
12804 /* System header to define __stub macros and hopefully few prototypes,
12805 which can conflict with char $ac_func (); below.
12806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12807 <limits.h> exists even on freestanding compilers. */
12809 #ifdef __STDC__
12810 # include <limits.h>
12811 #else
12812 # include <assert.h>
12813 #endif
12815 #undef $ac_func
12817 /* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12820 #ifdef __cplusplus
12821 extern "C"
12822 #endif
12823 char $ac_func ();
12824 /* The GNU C library defines this for functions which it implements
12825 to always fail with ENOSYS. Some functions are actually named
12826 something starting with __ and the normal name is an alias. */
12827 #if defined __stub_$ac_func || defined __stub___$ac_func
12828 choke me
12829 #endif
12831 int
12832 main ()
12833 {
12834 return $ac_func ();
12835 ;
12836 return 0;
12837 }
12838 _ACEOF
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (ac_try="$ac_link"
12841 case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12844 esac
12845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12846 $as_echo "$ac_try_echo") >&5
12847 (eval "$ac_link") 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } && {
12854 test -z "$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 } && test -s conftest$ac_exeext && {
12857 test "$cross_compiling" = yes ||
12858 $as_test_x conftest$ac_exeext
12859 }; then
12860 eval "$as_ac_var=yes"
12861 else
12862 $as_echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 eval "$as_ac_var=no"
12866 fi
12868 rm -rf conftest.dSYM
12869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12870 conftest$ac_exeext conftest.$ac_ext
12871 fi
12872 ac_res=`eval 'as_val=${'$as_ac_var'}
12873 $as_echo "$as_val"'`
12874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12875 $as_echo "$ac_res" >&6; }
12876 as_val=`eval 'as_val=${'$as_ac_var'}
12877 $as_echo "$as_val"'`
12878 if test "x$as_val" = x""yes; then
12879 cat >>confdefs.h <<_ACEOF
12880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12881 _ACEOF
12883 fi
12884 done
12886 LIBS="$glib_save_LIBS"
12888 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12889 gt_cv_func_dgettext_libc=no
12890 else
12891 if test "$gt_cv_func_dgettext_libc" = "yes" \
12892 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12893 gt_cv_func_dgettext_libintl=no
12894 fi
12895 fi
12896 fi
12897 fi
12899 if test "$gt_cv_func_dgettext_libc" = "yes" \
12900 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12901 gt_cv_have_gettext=yes
12902 fi
12904 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12905 INTLLIBS="-lintl $libintl_extra_libs"
12906 fi
12908 if test "$gt_cv_have_gettext" = "yes"; then
12910 cat >>confdefs.h <<\_ACEOF
12911 #define HAVE_GETTEXT 1
12912 _ACEOF
12914 # Extract the first word of "msgfmt", so it can be a program name with args.
12915 set dummy msgfmt; ac_word=$2
12916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12917 $as_echo_n "checking for $ac_word... " >&6; }
12918 if test "${ac_cv_path_MSGFMT+set}" = set; then
12919 $as_echo_n "(cached) " >&6
12920 else
12921 case "$MSGFMT" in
12922 /*)
12923 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12924 ;;
12925 *)
12926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12927 for ac_dir in $PATH; do
12928 test -z "$ac_dir" && ac_dir=.
12929 if test -f $ac_dir/$ac_word; then
12930 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12931 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12932 break
12933 fi
12934 fi
12935 done
12936 IFS="$ac_save_ifs"
12937 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12938 ;;
12939 esac
12940 fi
12941 MSGFMT="$ac_cv_path_MSGFMT"
12942 if test "$MSGFMT" != "no"; then
12943 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12944 $as_echo "$MSGFMT" >&6; }
12945 else
12946 { $as_echo "$as_me:$LINENO: result: no" >&5
12947 $as_echo "no" >&6; }
12948 fi
12949 if test "$MSGFMT" != "no"; then
12950 glib_save_LIBS="$LIBS"
12951 LIBS="$LIBS $INTLLIBS"
12953 for ac_func in dcgettext
12954 do
12955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12956 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12957 $as_echo_n "checking for $ac_func... " >&6; }
12958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12959 $as_echo_n "(cached) " >&6
12960 else
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h. */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12969 #define $ac_func innocuous_$ac_func
12971 /* System header to define __stub macros and hopefully few prototypes,
12972 which can conflict with char $ac_func (); below.
12973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12974 <limits.h> exists even on freestanding compilers. */
12976 #ifdef __STDC__
12977 # include <limits.h>
12978 #else
12979 # include <assert.h>
12980 #endif
12982 #undef $ac_func
12984 /* Override any GCC internal prototype to avoid an error.
12985 Use char because int might match the return type of a GCC
12986 builtin and then its argument prototype would still apply. */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 char $ac_func ();
12991 /* The GNU C library defines this for functions which it implements
12992 to always fail with ENOSYS. Some functions are actually named
12993 something starting with __ and the normal name is an alias. */
12994 #if defined __stub_$ac_func || defined __stub___$ac_func
12995 choke me
12996 #endif
12998 int
12999 main ()
13000 {
13001 return $ac_func ();
13002 ;
13003 return 0;
13004 }
13005 _ACEOF
13006 rm -f conftest.$ac_objext conftest$ac_exeext
13007 if { (ac_try="$ac_link"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011 esac
13012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13013 $as_echo "$ac_try_echo") >&5
13014 (eval "$ac_link") 2>conftest.er1
13015 ac_status=$?
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest$ac_exeext && {
13024 test "$cross_compiling" = yes ||
13025 $as_test_x conftest$ac_exeext
13026 }; then
13027 eval "$as_ac_var=yes"
13028 else
13029 $as_echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032 eval "$as_ac_var=no"
13033 fi
13035 rm -rf conftest.dSYM
13036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13037 conftest$ac_exeext conftest.$ac_ext
13038 fi
13039 ac_res=`eval 'as_val=${'$as_ac_var'}
13040 $as_echo "$as_val"'`
13041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13042 $as_echo "$ac_res" >&6; }
13043 as_val=`eval 'as_val=${'$as_ac_var'}
13044 $as_echo "$as_val"'`
13045 if test "x$as_val" = x""yes; then
13046 cat >>confdefs.h <<_ACEOF
13047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13048 _ACEOF
13050 fi
13051 done
13053 MSGFMT_OPTS=
13054 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
13055 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
13056 cat >conftest.foo <<_ACEOF
13058 msgid ""
13059 msgstr ""
13060 "Content-Type: text/plain; charset=UTF-8\n"
13061 "Project-Id-Version: test 1.0\n"
13062 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13063 "Last-Translator: test <foo@bar.xx>\n"
13064 "Language-Team: C <LL@li.org>\n"
13065 "MIME-Version: 1.0\n"
13066 "Content-Transfer-Encoding: 8bit\n"
13068 _ACEOF
13069 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
13070 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13071 ac_status=$?
13072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; then
13074 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
13075 $as_echo "yes" >&6; }
13076 else { $as_echo "$as_me:$LINENO: result: no" >&5
13077 $as_echo "no" >&6; }
13078 echo "$as_me: failed input was:" >&5
13079 sed 's/^/| /' conftest.foo >&5
13080 fi
13082 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13083 set dummy gmsgfmt; ac_word=$2
13084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13085 $as_echo_n "checking for $ac_word... " >&6; }
13086 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13087 $as_echo_n "(cached) " >&6
13088 else
13089 case $GMSGFMT in
13090 [\\/]* | ?:[\\/]*)
13091 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13092 ;;
13093 *)
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13096 do
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13104 fi
13105 done
13106 done
13107 IFS=$as_save_IFS
13109 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13110 ;;
13111 esac
13112 fi
13113 GMSGFMT=$ac_cv_path_GMSGFMT
13114 if test -n "$GMSGFMT"; then
13115 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13116 $as_echo "$GMSGFMT" >&6; }
13117 else
13118 { $as_echo "$as_me:$LINENO: result: no" >&5
13119 $as_echo "no" >&6; }
13120 fi
13123 # Extract the first word of "xgettext", so it can be a program name with args.
13124 set dummy xgettext; ac_word=$2
13125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13129 else
13130 case "$XGETTEXT" in
13131 /*)
13132 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13133 ;;
13134 *)
13135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13136 for ac_dir in $PATH; do
13137 test -z "$ac_dir" && ac_dir=.
13138 if test -f $ac_dir/$ac_word; then
13139 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13140 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13141 break
13142 fi
13143 fi
13144 done
13145 IFS="$ac_save_ifs"
13146 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13147 ;;
13148 esac
13149 fi
13150 XGETTEXT="$ac_cv_path_XGETTEXT"
13151 if test "$XGETTEXT" != ":"; then
13152 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13153 $as_echo "$XGETTEXT" >&6; }
13154 else
13155 { $as_echo "$as_me:$LINENO: result: no" >&5
13156 $as_echo "no" >&6; }
13157 fi
13159 cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h. */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13166 int
13167 main ()
13168 {
13169 extern int _nl_msg_cat_cntr;
13170 return _nl_msg_cat_cntr
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182 $as_echo "$ac_try_echo") >&5
13183 (eval "$ac_link") 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest$ac_exeext && {
13193 test "$cross_compiling" = yes ||
13194 $as_test_x conftest$ac_exeext
13195 }; then
13196 CATOBJEXT=.gmo
13197 DATADIRNAME=share
13198 else
13199 $as_echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13202 case $host in
13203 *-*-solaris*)
13204 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
13205 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
13206 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat >conftest.$ac_ext <<_ACEOF
13210 /* confdefs.h. */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
13216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13217 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
13219 /* System header to define __stub macros and hopefully few prototypes,
13220 which can conflict with char bind_textdomain_codeset (); below.
13221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13222 <limits.h> exists even on freestanding compilers. */
13224 #ifdef __STDC__
13225 # include <limits.h>
13226 #else
13227 # include <assert.h>
13228 #endif
13230 #undef bind_textdomain_codeset
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 char bind_textdomain_codeset ();
13239 /* The GNU C library defines this for functions which it implements
13240 to always fail with ENOSYS. Some functions are actually named
13241 something starting with __ and the normal name is an alias. */
13242 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
13243 choke me
13244 #endif
13246 int
13247 main ()
13248 {
13249 return bind_textdomain_codeset ();
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 rm -f conftest.$ac_objext conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259 esac
13260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13261 $as_echo "$ac_try_echo") >&5
13262 (eval "$ac_link") 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } && {
13269 test -z "$ac_c_werror_flag" ||
13270 test ! -s conftest.err
13271 } && test -s conftest$ac_exeext && {
13272 test "$cross_compiling" = yes ||
13273 $as_test_x conftest$ac_exeext
13274 }; then
13275 ac_cv_func_bind_textdomain_codeset=yes
13276 else
13277 $as_echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_cv_func_bind_textdomain_codeset=no
13281 fi
13283 rm -rf conftest.dSYM
13284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13285 conftest$ac_exeext conftest.$ac_ext
13286 fi
13287 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
13288 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
13289 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
13290 CATOBJEXT=.gmo
13291 DATADIRNAME=share
13292 else
13293 CATOBJEXT=.mo
13294 DATADIRNAME=lib
13295 fi
13297 ;;
13298 *)
13299 CATOBJEXT=.mo
13300 DATADIRNAME=lib
13301 ;;
13302 esac
13303 fi
13305 rm -rf conftest.dSYM
13306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13307 conftest$ac_exeext conftest.$ac_ext
13308 LIBS="$glib_save_LIBS"
13309 INSTOBJEXT=.mo
13310 else
13311 gt_cv_have_gettext=no
13312 fi
13313 fi
13315 fi
13319 if test "$gt_cv_have_gettext" = "yes" ; then
13321 cat >>confdefs.h <<\_ACEOF
13322 #define ENABLE_NLS 1
13323 _ACEOF
13325 fi
13327 if test "$XGETTEXT" != ":"; then
13328 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13329 : ;
13330 else
13331 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13332 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13333 XGETTEXT=":"
13334 fi
13335 fi
13337 # We need to process the po/ directory.
13338 POSUB=po
13340 ac_config_commands="$ac_config_commands default-1"
13343 for lang in $ALL_LINGUAS; do
13344 GMOFILES="$GMOFILES $lang.gmo"
13345 POFILES="$POFILES $lang.po"
13346 done
13360 if test "$gt_cv_have_gettext" = "yes"; then
13361 if test "x$ALL_LINGUAS" = "x"; then
13362 LINGUAS=
13363 else
13364 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13365 $as_echo_n "checking for catalogs to be installed... " >&6; }
13366 NEW_LINGUAS=
13367 for presentlang in $ALL_LINGUAS; do
13368 useit=no
13369 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13370 desiredlanguages="$LINGUAS"
13371 else
13372 desiredlanguages="$ALL_LINGUAS"
13373 fi
13374 for desiredlang in $desiredlanguages; do
13375 # Use the presentlang catalog if desiredlang is
13376 # a. equal to presentlang, or
13377 # b. a variant of presentlang (because in this case,
13378 # presentlang can be used as a fallback for messages
13379 # which are not translated in the desiredlang catalog).
13380 case "$desiredlang" in
13381 "$presentlang"*) useit=yes;;
13382 esac
13383 done
13384 if test $useit = yes; then
13385 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13386 fi
13387 done
13388 LINGUAS=$NEW_LINGUAS
13389 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13390 $as_echo "$LINGUAS" >&6; }
13391 fi
13393 if test -n "$LINGUAS"; then
13394 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13395 fi
13396 fi
13398 MKINSTALLDIRS=
13399 if test -n "$ac_aux_dir"; then
13400 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13401 fi
13402 if test -z "$MKINSTALLDIRS"; then
13403 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13404 fi
13407 test -d po || mkdir po
13408 if test "x$srcdir" != "x."; then
13409 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13410 posrcprefix="$srcdir/"
13411 else
13412 posrcprefix="../$srcdir/"
13413 fi
13414 else
13415 posrcprefix="../"
13416 fi
13417 rm -f po/POTFILES
13418 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13419 < $srcdir/po/POTFILES.in > po/POTFILES
13422 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
13424 cat >confcache <<\_ACEOF
13425 # This file is a shell script that caches the results of configure
13426 # tests run on this system so they can be shared between configure
13427 # scripts and configure runs, see configure's option --config-cache.
13428 # It is not useful on other systems. If it contains results you don't
13429 # want to keep, you may remove or edit it.
13430 #
13431 # config.status only pays attention to the cache file if you give it
13432 # the --recheck option to rerun configure.
13433 #
13434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13436 # following values.
13438 _ACEOF
13440 # The following way of writing the cache mishandles newlines in values,
13441 # but we know of no workaround that is simple, portable, and efficient.
13442 # So, we kill variables containing newlines.
13443 # Ultrix sh set writes to stderr and can't be redirected directly,
13444 # and sets the high bit in the cache file unless we assign to the vars.
13445 (
13446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13447 eval ac_val=\$$ac_var
13448 case $ac_val in #(
13449 *${as_nl}*)
13450 case $ac_var in #(
13451 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13453 esac
13454 case $ac_var in #(
13455 _ | IFS | as_nl) ;; #(
13456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13457 *) $as_unset $ac_var ;;
13458 esac ;;
13459 esac
13460 done
13462 (set) 2>&1 |
13463 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13464 *${as_nl}ac_space=\ *)
13465 # `set' does not quote correctly, so add quotes (double-quote
13466 # substitution turns \\\\ into \\, and sed turns \\ into \).
13467 sed -n \
13468 "s/'/'\\\\''/g;
13469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13470 ;; #(
13471 *)
13472 # `set' quotes correctly as required by POSIX, so do not add quotes.
13473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13474 ;;
13475 esac |
13476 sort
13477 ) |
13478 sed '
13479 /^ac_cv_env_/b end
13480 t clear
13481 :clear
13482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13483 t end
13484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13485 :end' >>confcache
13486 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13487 if test -w "$cache_file"; then
13488 test "x$cache_file" != "x/dev/null" &&
13489 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13490 $as_echo "$as_me: updating cache $cache_file" >&6;}
13491 cat confcache >$cache_file
13492 else
13493 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13494 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13495 fi
13496 fi
13497 rm -f confcache
13499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13500 # Let make expand exec_prefix.
13501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13503 DEFS=-DHAVE_CONFIG_H
13505 ac_libobjs=
13506 ac_ltlibobjs=
13507 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13508 # 1. Remove the extension, and $U if already installed.
13509 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13510 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13511 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13512 # will be set to the directory where LIBOBJS objects are built.
13513 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13514 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13515 done
13516 LIBOBJS=$ac_libobjs
13518 LTLIBOBJS=$ac_ltlibobjs
13521 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13522 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13523 Usually this means the macro was only invoked conditionally." >&5
13524 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13525 Usually this means the macro was only invoked conditionally." >&2;}
13526 { (exit 1); exit 1; }; }
13527 fi
13528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13529 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13530 Usually this means the macro was only invoked conditionally." >&5
13531 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13532 Usually this means the macro was only invoked conditionally." >&2;}
13533 { (exit 1); exit 1; }; }
13534 fi
13535 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13536 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13537 Usually this means the macro was only invoked conditionally." >&5
13538 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13539 Usually this means the macro was only invoked conditionally." >&2;}
13540 { (exit 1); exit 1; }; }
13541 fi
13542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13543 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13544 Usually this means the macro was only invoked conditionally." >&5
13545 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13546 Usually this means the macro was only invoked conditionally." >&2;}
13547 { (exit 1); exit 1; }; }
13548 fi
13549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13550 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13551 Usually this means the macro was only invoked conditionally." >&5
13552 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13553 Usually this means the macro was only invoked conditionally." >&2;}
13554 { (exit 1); exit 1; }; }
13555 fi
13556 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13557 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13558 Usually this means the macro was only invoked conditionally." >&5
13559 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13560 Usually this means the macro was only invoked conditionally." >&2;}
13561 { (exit 1); exit 1; }; }
13562 fi
13563 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13564 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13565 Usually this means the macro was only invoked conditionally." >&5
13566 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13567 Usually this means the macro was only invoked conditionally." >&2;}
13568 { (exit 1); exit 1; }; }
13569 fi
13570 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
13571 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
13572 Usually this means the macro was only invoked conditionally." >&5
13573 $as_echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
13574 Usually this means the macro was only invoked conditionally." >&2;}
13575 { (exit 1); exit 1; }; }
13576 fi
13577 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13578 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13579 Usually this means the macro was only invoked conditionally." >&5
13580 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13581 Usually this means the macro was only invoked conditionally." >&2;}
13582 { (exit 1); exit 1; }; }
13583 fi
13584 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13585 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13586 Usually this means the macro was only invoked conditionally." >&5
13587 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13588 Usually this means the macro was only invoked conditionally." >&2;}
13589 { (exit 1); exit 1; }; }
13590 fi
13591 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13592 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13593 Usually this means the macro was only invoked conditionally." >&5
13594 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13595 Usually this means the macro was only invoked conditionally." >&2;}
13596 { (exit 1); exit 1; }; }
13597 fi
13598 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13599 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13600 Usually this means the macro was only invoked conditionally." >&5
13601 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13602 Usually this means the macro was only invoked conditionally." >&2;}
13603 { (exit 1); exit 1; }; }
13604 fi
13605 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13606 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13607 Usually this means the macro was only invoked conditionally." >&5
13608 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13609 Usually this means the macro was only invoked conditionally." >&2;}
13610 { (exit 1); exit 1; }; }
13611 fi
13612 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13613 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13614 Usually this means the macro was only invoked conditionally." >&5
13615 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13616 Usually this means the macro was only invoked conditionally." >&2;}
13617 { (exit 1); exit 1; }; }
13618 fi
13619 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13620 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13621 Usually this means the macro was only invoked conditionally." >&5
13622 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13623 Usually this means the macro was only invoked conditionally." >&2;}
13624 { (exit 1); exit 1; }; }
13625 fi
13626 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13627 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13628 Usually this means the macro was only invoked conditionally." >&5
13629 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13630 Usually this means the macro was only invoked conditionally." >&2;}
13631 { (exit 1); exit 1; }; }
13632 fi
13633 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13634 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13635 Usually this means the macro was only invoked conditionally." >&5
13636 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13637 Usually this means the macro was only invoked conditionally." >&2;}
13638 { (exit 1); exit 1; }; }
13639 fi
13640 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13641 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13642 Usually this means the macro was only invoked conditionally." >&5
13643 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13644 Usually this means the macro was only invoked conditionally." >&2;}
13645 { (exit 1); exit 1; }; }
13646 fi
13647 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13648 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13649 Usually this means the macro was only invoked conditionally." >&5
13650 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13651 Usually this means the macro was only invoked conditionally." >&2;}
13652 { (exit 1); exit 1; }; }
13653 fi
13654 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13655 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13656 Usually this means the macro was only invoked conditionally." >&5
13657 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13658 Usually this means the macro was only invoked conditionally." >&2;}
13659 { (exit 1); exit 1; }; }
13660 fi
13661 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13662 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13663 Usually this means the macro was only invoked conditionally." >&5
13664 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13665 Usually this means the macro was only invoked conditionally." >&2;}
13666 { (exit 1); exit 1; }; }
13667 fi
13668 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13669 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13670 Usually this means the macro was only invoked conditionally." >&5
13671 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13672 Usually this means the macro was only invoked conditionally." >&2;}
13673 { (exit 1); exit 1; }; }
13674 fi
13675 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
13676 { { $as_echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
13677 Usually this means the macro was only invoked conditionally." >&5
13678 $as_echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
13679 Usually this means the macro was only invoked conditionally." >&2;}
13680 { (exit 1); exit 1; }; }
13681 fi
13682 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13683 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13684 Usually this means the macro was only invoked conditionally." >&5
13685 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13686 Usually this means the macro was only invoked conditionally." >&2;}
13687 { (exit 1); exit 1; }; }
13688 fi
13689 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13690 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13691 Usually this means the macro was only invoked conditionally." >&5
13692 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13693 Usually this means the macro was only invoked conditionally." >&2;}
13694 { (exit 1); exit 1; }; }
13695 fi
13697 : ${CONFIG_STATUS=./config.status}
13698 ac_write_fail=0
13699 ac_clean_files_save=$ac_clean_files
13700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13701 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13702 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13703 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704 #! $SHELL
13705 # Generated by $as_me.
13706 # Run this file to recreate the current configuration.
13707 # Compiler output produced by configure, useful for debugging
13708 # configure, is in config.log if it exists.
13710 debug=false
13711 ac_cs_recheck=false
13712 ac_cs_silent=false
13713 SHELL=\${CONFIG_SHELL-$SHELL}
13714 _ACEOF
13716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13717 ## --------------------- ##
13718 ## M4sh Initialization. ##
13719 ## --------------------- ##
13721 # Be more Bourne compatible
13722 DUALCASE=1; export DUALCASE # for MKS sh
13723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13724 emulate sh
13725 NULLCMD=:
13726 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13727 # is contrary to our usage. Disable this feature.
13728 alias -g '${1+"$@"}'='"$@"'
13729 setopt NO_GLOB_SUBST
13730 else
13731 case `(set -o) 2>/dev/null` in
13732 *posix*) set -o posix ;;
13733 esac
13735 fi
13740 # PATH needs CR
13741 # Avoid depending upon Character Ranges.
13742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13745 as_cr_digits='0123456789'
13746 as_cr_alnum=$as_cr_Letters$as_cr_digits
13748 as_nl='
13749 '
13750 export as_nl
13751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13755 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13756 as_echo='printf %s\n'
13757 as_echo_n='printf %s'
13758 else
13759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13761 as_echo_n='/usr/ucb/echo -n'
13762 else
13763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13764 as_echo_n_body='eval
13765 arg=$1;
13766 case $arg in
13767 *"$as_nl"*)
13768 expr "X$arg" : "X\\(.*\\)$as_nl";
13769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13770 esac;
13771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13772 '
13773 export as_echo_n_body
13774 as_echo_n='sh -c $as_echo_n_body as_echo'
13775 fi
13776 export as_echo_body
13777 as_echo='sh -c $as_echo_body as_echo'
13778 fi
13780 # The user is always right.
13781 if test "${PATH_SEPARATOR+set}" != set; then
13782 PATH_SEPARATOR=:
13783 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13784 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13785 PATH_SEPARATOR=';'
13786 }
13787 fi
13789 # Support unset when possible.
13790 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13791 as_unset=unset
13792 else
13793 as_unset=false
13794 fi
13797 # IFS
13798 # We need space, tab and new line, in precisely that order. Quoting is
13799 # there to prevent editors from complaining about space-tab.
13800 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13801 # splitting by setting IFS to empty value.)
13802 IFS=" "" $as_nl"
13804 # Find who we are. Look in the path if we contain no directory separator.
13805 case $0 in
13806 *[\\/]* ) as_myself=$0 ;;
13807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13809 do
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13813 done
13814 IFS=$as_save_IFS
13816 ;;
13817 esac
13818 # We did not find ourselves, most probably we were run as `sh COMMAND'
13819 # in which case we are not to be found in the path.
13820 if test "x$as_myself" = x; then
13821 as_myself=$0
13822 fi
13823 if test ! -f "$as_myself"; then
13824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13825 { (exit 1); exit 1; }
13826 fi
13828 # Work around bugs in pre-3.0 UWIN ksh.
13829 for as_var in ENV MAIL MAILPATH
13830 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13831 done
13832 PS1='$ '
13833 PS2='> '
13834 PS4='+ '
13836 # NLS nuisances.
13837 LC_ALL=C
13838 export LC_ALL
13839 LANGUAGE=C
13840 export LANGUAGE
13842 # Required to use basename.
13843 if expr a : '\(a\)' >/dev/null 2>&1 &&
13844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13845 as_expr=expr
13846 else
13847 as_expr=false
13848 fi
13850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13851 as_basename=basename
13852 else
13853 as_basename=false
13854 fi
13857 # Name of the executable.
13858 as_me=`$as_basename -- "$0" ||
13859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13860 X"$0" : 'X\(//\)$' \| \
13861 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13862 $as_echo X/"$0" |
13863 sed '/^.*\/\([^/][^/]*\)\/*$/{
13864 s//\1/
13865 q
13866 }
13867 /^X\/\(\/\/\)$/{
13868 s//\1/
13869 q
13870 }
13871 /^X\/\(\/\).*/{
13872 s//\1/
13873 q
13874 }
13875 s/.*/./; q'`
13877 # CDPATH.
13878 $as_unset CDPATH
13882 as_lineno_1=$LINENO
13883 as_lineno_2=$LINENO
13884 test "x$as_lineno_1" != "x$as_lineno_2" &&
13885 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13887 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13888 # uniformly replaced by the line number. The first 'sed' inserts a
13889 # line-number line after each line using $LINENO; the second 'sed'
13890 # does the real work. The second script uses 'N' to pair each
13891 # line-number line with the line containing $LINENO, and appends
13892 # trailing '-' during substitution so that $LINENO is not a special
13893 # case at line end.
13894 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13895 # scripts with optimization help from Paolo Bonzini. Blame Lee
13896 # E. McMahon (1931-1989) for sed's syntax. :-)
13897 sed -n '
13898 p
13899 /[$]LINENO/=
13900 ' <$as_myself |
13901 sed '
13902 s/[$]LINENO.*/&-/
13903 t lineno
13904 b
13905 :lineno
13906 N
13907 :loop
13908 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13909 t loop
13910 s/-\n.*//
13911 ' >$as_me.lineno &&
13912 chmod +x "$as_me.lineno" ||
13913 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13914 { (exit 1); exit 1; }; }
13916 # Don't try to exec as it changes $[0], causing all sort of problems
13917 # (the dirname of $[0] is not the place where we might find the
13918 # original and so on. Autoconf is especially sensitive to this).
13919 . "./$as_me.lineno"
13920 # Exit status is that of the last command.
13921 exit
13922 }
13925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13926 as_dirname=dirname
13927 else
13928 as_dirname=false
13929 fi
13931 ECHO_C= ECHO_N= ECHO_T=
13932 case `echo -n x` in
13933 -n*)
13934 case `echo 'x\c'` in
13935 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13936 *) ECHO_C='\c';;
13937 esac;;
13938 *)
13939 ECHO_N='-n';;
13940 esac
13941 if expr a : '\(a\)' >/dev/null 2>&1 &&
13942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13943 as_expr=expr
13944 else
13945 as_expr=false
13946 fi
13948 rm -f conf$$ conf$$.exe conf$$.file
13949 if test -d conf$$.dir; then
13950 rm -f conf$$.dir/conf$$.file
13951 else
13952 rm -f conf$$.dir
13953 mkdir conf$$.dir 2>/dev/null
13954 fi
13955 if (echo >conf$$.file) 2>/dev/null; then
13956 if ln -s conf$$.file conf$$ 2>/dev/null; then
13957 as_ln_s='ln -s'
13958 # ... but there are two gotchas:
13959 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13960 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13961 # In both cases, we have to default to `cp -p'.
13962 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13963 as_ln_s='cp -p'
13964 elif ln conf$$.file conf$$ 2>/dev/null; then
13965 as_ln_s=ln
13966 else
13967 as_ln_s='cp -p'
13968 fi
13969 else
13970 as_ln_s='cp -p'
13971 fi
13972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13973 rmdir conf$$.dir 2>/dev/null
13975 if mkdir -p . 2>/dev/null; then
13976 as_mkdir_p=:
13977 else
13978 test -d ./-p && rmdir ./-p
13979 as_mkdir_p=false
13980 fi
13982 if test -x / >/dev/null 2>&1; then
13983 as_test_x='test -x'
13984 else
13985 if ls -dL / >/dev/null 2>&1; then
13986 as_ls_L_option=L
13987 else
13988 as_ls_L_option=
13989 fi
13990 as_test_x='
13991 eval sh -c '\''
13992 if test -d "$1"; then
13993 test -d "$1/.";
13994 else
13995 case $1 in
13996 -*)set "./$1";;
13997 esac;
13998 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13999 ???[sx]*):;;*)false;;esac;fi
14000 '\'' sh
14001 '
14002 fi
14003 as_executable_p=$as_test_x
14005 # Sed expression to map a string onto a valid CPP name.
14006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14008 # Sed expression to map a string onto a valid variable name.
14009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14012 exec 6>&1
14014 # Save the log message, to keep $[0] and so on meaningful, and to
14015 # report actual input values of CONFIG_FILES etc. instead of their
14016 # values after options handling.
14017 ac_log="
14018 This file was extended by $as_me, which was
14019 generated by GNU Autoconf 2.63. Invocation command line was
14021 CONFIG_FILES = $CONFIG_FILES
14022 CONFIG_HEADERS = $CONFIG_HEADERS
14023 CONFIG_LINKS = $CONFIG_LINKS
14024 CONFIG_COMMANDS = $CONFIG_COMMANDS
14025 $ $0 $@
14027 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14028 "
14030 _ACEOF
14032 case $ac_config_files in *"
14033 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14034 esac
14036 case $ac_config_headers in *"
14037 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14038 esac
14041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14042 # Files that config.status was made for.
14043 config_files="$ac_config_files"
14044 config_headers="$ac_config_headers"
14045 config_commands="$ac_config_commands"
14047 _ACEOF
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14050 ac_cs_usage="\
14051 \`$as_me' instantiates files from templates according to the
14052 current configuration.
14054 Usage: $0 [OPTION]... [FILE]...
14056 -h, --help print this help, then exit
14057 -V, --version print version number and configuration settings, then exit
14058 -q, --quiet, --silent
14059 do not print progress messages
14060 -d, --debug don't remove temporary files
14061 --recheck update $as_me by reconfiguring in the same conditions
14062 --file=FILE[:TEMPLATE]
14063 instantiate the configuration file FILE
14064 --header=FILE[:TEMPLATE]
14065 instantiate the configuration header FILE
14067 Configuration files:
14068 $config_files
14070 Configuration headers:
14071 $config_headers
14073 Configuration commands:
14074 $config_commands
14076 Report bugs to <bug-autoconf@gnu.org>."
14078 _ACEOF
14079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14080 ac_cs_version="\\
14081 config.status
14082 configured by $0, generated by GNU Autoconf 2.63,
14083 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14085 Copyright (C) 2008 Free Software Foundation, Inc.
14086 This config.status script is free software; the Free Software Foundation
14087 gives unlimited permission to copy, distribute and modify it."
14089 ac_pwd='$ac_pwd'
14090 srcdir='$srcdir'
14091 INSTALL='$INSTALL'
14092 AWK='$AWK'
14093 test -n "\$AWK" || AWK=awk
14094 _ACEOF
14096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14097 # The default lists apply if the user does not specify any file.
14098 ac_need_defaults=:
14099 while test $# != 0
14100 do
14101 case $1 in
14102 --*=*)
14103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14105 ac_shift=:
14106 ;;
14107 *)
14108 ac_option=$1
14109 ac_optarg=$2
14110 ac_shift=shift
14111 ;;
14112 esac
14114 case $ac_option in
14115 # Handling of the options.
14116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14117 ac_cs_recheck=: ;;
14118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14119 $as_echo "$ac_cs_version"; exit ;;
14120 --debug | --debu | --deb | --de | --d | -d )
14121 debug=: ;;
14122 --file | --fil | --fi | --f )
14123 $ac_shift
14124 case $ac_optarg in
14125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14126 esac
14127 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14128 ac_need_defaults=false;;
14129 --header | --heade | --head | --hea )
14130 $ac_shift
14131 case $ac_optarg in
14132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14133 esac
14134 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14135 ac_need_defaults=false;;
14136 --he | --h)
14137 # Conflict between --help and --header
14138 { $as_echo "$as_me: error: ambiguous option: $1
14139 Try \`$0 --help' for more information." >&2
14140 { (exit 1); exit 1; }; };;
14141 --help | --hel | -h )
14142 $as_echo "$ac_cs_usage"; exit ;;
14143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14145 ac_cs_silent=: ;;
14147 # This is an error.
14148 -*) { $as_echo "$as_me: error: unrecognized option: $1
14149 Try \`$0 --help' for more information." >&2
14150 { (exit 1); exit 1; }; } ;;
14152 *) ac_config_targets="$ac_config_targets $1"
14153 ac_need_defaults=false ;;
14155 esac
14156 shift
14157 done
14159 ac_configure_extra_args=
14161 if $ac_cs_silent; then
14162 exec 6>/dev/null
14163 ac_configure_extra_args="$ac_configure_extra_args --silent"
14164 fi
14166 _ACEOF
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 if \$ac_cs_recheck; then
14169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14170 shift
14171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14172 CONFIG_SHELL='$SHELL'
14173 export CONFIG_SHELL
14174 exec "\$@"
14175 fi
14177 _ACEOF
14178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14179 exec 5>>config.log
14180 {
14181 echo
14182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14183 ## Running $as_me. ##
14184 _ASBOX
14185 $as_echo "$ac_log"
14186 } >&5
14188 _ACEOF
14189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14190 #
14191 # INIT-COMMANDS
14192 #
14193 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14196 _ACEOF
14198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14200 # Handling of arguments.
14201 for ac_config_target in $ac_config_targets
14202 do
14203 case $ac_config_target in
14204 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14205 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14206 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14207 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14208 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14209 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14210 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14211 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
14213 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14214 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14215 { (exit 1); exit 1; }; };;
14216 esac
14217 done
14220 # If the user did not use the arguments to specify the items to instantiate,
14221 # then the envvar interface is used. Set only those that are not.
14222 # We use the long form for the default assignment because of an extremely
14223 # bizarre bug on SunOS 4.1.3.
14224 if $ac_need_defaults; then
14225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14228 fi
14230 # Have a temporary directory for convenience. Make it in the build tree
14231 # simply because there is no reason against having it here, and in addition,
14232 # creating and moving files from /tmp can sometimes cause problems.
14233 # Hook for its removal unless debugging.
14234 # Note that there is a small window in which the directory will not be cleaned:
14235 # after its creation but before its name has been assigned to `$tmp'.
14236 $debug ||
14237 {
14238 tmp=
14239 trap 'exit_status=$?
14240 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14241 ' 0
14242 trap '{ (exit 1); exit 1; }' 1 2 13 15
14243 }
14244 # Create a (secure) tmp directory for tmp files.
14246 {
14247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14248 test -n "$tmp" && test -d "$tmp"
14249 } ||
14250 {
14251 tmp=./conf$$-$RANDOM
14252 (umask 077 && mkdir "$tmp")
14253 } ||
14254 {
14255 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14256 { (exit 1); exit 1; }
14257 }
14259 # Set up the scripts for CONFIG_FILES section.
14260 # No need to generate them if there are no CONFIG_FILES.
14261 # This happens for instance with `./config.status config.h'.
14262 if test -n "$CONFIG_FILES"; then
14265 ac_cr='
14266 '
14267 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14268 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14269 ac_cs_awk_cr='\\r'
14270 else
14271 ac_cs_awk_cr=$ac_cr
14272 fi
14274 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14275 _ACEOF
14278 {
14279 echo "cat >conf$$subs.awk <<_ACEOF" &&
14280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14281 echo "_ACEOF"
14282 } >conf$$subs.sh ||
14283 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14284 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14285 { (exit 1); exit 1; }; }
14286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14287 ac_delim='%!_!# '
14288 for ac_last_try in false false false false false :; do
14289 . ./conf$$subs.sh ||
14290 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14291 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14292 { (exit 1); exit 1; }; }
14294 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14295 if test $ac_delim_n = $ac_delim_num; then
14296 break
14297 elif $ac_last_try; then
14298 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14299 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14300 { (exit 1); exit 1; }; }
14301 else
14302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14303 fi
14304 done
14305 rm -f conf$$subs.sh
14307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14308 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14309 _ACEOF
14310 sed -n '
14311 h
14312 s/^/S["/; s/!.*/"]=/
14313 p
14314 g
14315 s/^[^!]*!//
14316 :repl
14317 t repl
14318 s/'"$ac_delim"'$//
14319 t delim
14320 :nl
14321 h
14322 s/\(.\{148\}\).*/\1/
14323 t more1
14324 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14325 p
14326 n
14327 b repl
14328 :more1
14329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14330 p
14331 g
14332 s/.\{148\}//
14333 t nl
14334 :delim
14335 h
14336 s/\(.\{148\}\).*/\1/
14337 t more2
14338 s/["\\]/\\&/g; s/^/"/; s/$/"/
14339 p
14340 b
14341 :more2
14342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14343 p
14344 g
14345 s/.\{148\}//
14346 t delim
14347 ' <conf$$subs.awk | sed '
14348 /^[^""]/{
14349 N
14350 s/\n//
14351 }
14352 ' >>$CONFIG_STATUS || ac_write_fail=1
14353 rm -f conf$$subs.awk
14354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14355 _ACAWK
14356 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14357 for (key in S) S_is_set[key] = 1
14358 FS = ""
14360 }
14361 {
14362 line = $ 0
14363 nfields = split(line, field, "@")
14364 substed = 0
14365 len = length(field[1])
14366 for (i = 2; i < nfields; i++) {
14367 key = field[i]
14368 keylen = length(key)
14369 if (S_is_set[key]) {
14370 value = S[key]
14371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14372 len += length(value) + length(field[++i])
14373 substed = 1
14374 } else
14375 len += 1 + keylen
14376 }
14378 print line
14379 }
14381 _ACAWK
14382 _ACEOF
14383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14386 else
14387 cat
14388 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14389 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14390 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14391 { (exit 1); exit 1; }; }
14392 _ACEOF
14394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14396 # trailing colons and then remove the whole line if VPATH becomes empty
14397 # (actually we leave an empty line to preserve line numbers).
14398 if test "x$srcdir" = x.; then
14399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14400 s/:*\$(srcdir):*/:/
14401 s/:*\${srcdir}:*/:/
14402 s/:*@srcdir@:*/:/
14403 s/^\([^=]*=[ ]*\):*/\1/
14404 s/:*$//
14405 s/^[^=]*=[ ]*$//
14406 }'
14407 fi
14409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14410 fi # test -n "$CONFIG_FILES"
14412 # Set up the scripts for CONFIG_HEADERS section.
14413 # No need to generate them if there are no CONFIG_HEADERS.
14414 # This happens for instance with `./config.status Makefile'.
14415 if test -n "$CONFIG_HEADERS"; then
14416 cat >"$tmp/defines.awk" <<\_ACAWK ||
14417 BEGIN {
14418 _ACEOF
14420 # Transform confdefs.h into an awk script `defines.awk', embedded as
14421 # here-document in config.status, that substitutes the proper values into
14422 # config.h.in to produce config.h.
14424 # Create a delimiter string that does not exist in confdefs.h, to ease
14425 # handling of long lines.
14426 ac_delim='%!_!# '
14427 for ac_last_try in false false :; do
14428 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14429 if test -z "$ac_t"; then
14430 break
14431 elif $ac_last_try; then
14432 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14433 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14434 { (exit 1); exit 1; }; }
14435 else
14436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14437 fi
14438 done
14440 # For the awk script, D is an array of macro values keyed by name,
14441 # likewise P contains macro parameters if any. Preserve backslash
14442 # newline sequences.
14444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14445 sed -n '
14446 s/.\{148\}/&'"$ac_delim"'/g
14447 t rset
14448 :rset
14449 s/^[ ]*#[ ]*define[ ][ ]*/ /
14450 t def
14451 d
14452 :def
14453 s/\\$//
14454 t bsnl
14455 s/["\\]/\\&/g
14456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14457 D["\1"]=" \3"/p
14458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14459 d
14460 :bsnl
14461 s/["\\]/\\&/g
14462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14463 D["\1"]=" \3\\\\\\n"\\/p
14464 t cont
14465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14466 t cont
14467 d
14468 :cont
14469 n
14470 s/.\{148\}/&'"$ac_delim"'/g
14471 t clear
14472 :clear
14473 s/\\$//
14474 t bsnlc
14475 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14476 d
14477 :bsnlc
14478 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14479 b cont
14480 ' <confdefs.h | sed '
14481 s/'"$ac_delim"'/"\\\
14482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14485 for (key in D) D_is_set[key] = 1
14486 FS = ""
14487 }
14488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14489 line = \$ 0
14490 split(line, arg, " ")
14491 if (arg[1] == "#") {
14492 defundef = arg[2]
14493 mac1 = arg[3]
14494 } else {
14495 defundef = substr(arg[1], 2)
14496 mac1 = arg[2]
14497 }
14498 split(mac1, mac2, "(") #)
14499 macro = mac2[1]
14500 prefix = substr(line, 1, index(line, defundef) - 1)
14501 if (D_is_set[macro]) {
14502 # Preserve the white space surrounding the "#".
14503 print prefix "define", macro P[macro] D[macro]
14504 next
14505 } else {
14506 # Replace #undef with comments. This is necessary, for example,
14507 # in the case of _POSIX_SOURCE, which is predefined and required
14508 # on some systems where configure will not decide to define it.
14509 if (defundef == "undef") {
14510 print "/*", prefix defundef, macro, "*/"
14511 next
14512 }
14513 }
14514 }
14515 { print }
14516 _ACAWK
14517 _ACEOF
14518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14520 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14521 { (exit 1); exit 1; }; }
14522 fi # test -n "$CONFIG_HEADERS"
14525 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14526 shift
14527 for ac_tag
14528 do
14529 case $ac_tag in
14530 :[FHLC]) ac_mode=$ac_tag; continue;;
14531 esac
14532 case $ac_mode$ac_tag in
14533 :[FHL]*:*);;
14534 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14535 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14536 { (exit 1); exit 1; }; };;
14537 :[FH]-) ac_tag=-:-;;
14538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14539 esac
14540 ac_save_IFS=$IFS
14541 IFS=:
14542 set x $ac_tag
14543 IFS=$ac_save_IFS
14544 shift
14545 ac_file=$1
14546 shift
14548 case $ac_mode in
14549 :L) ac_source=$1;;
14550 :[FH])
14551 ac_file_inputs=
14552 for ac_f
14553 do
14554 case $ac_f in
14555 -) ac_f="$tmp/stdin";;
14556 *) # Look for the file first in the build tree, then in the source tree
14557 # (if the path is not absolute). The absolute path cannot be DOS-style,
14558 # because $ac_f cannot contain `:'.
14559 test -f "$ac_f" ||
14560 case $ac_f in
14561 [\\/$]*) false;;
14562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14563 esac ||
14564 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14565 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14566 { (exit 1); exit 1; }; };;
14567 esac
14568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14569 ac_file_inputs="$ac_file_inputs '$ac_f'"
14570 done
14572 # Let's still pretend it is `configure' which instantiates (i.e., don't
14573 # use $as_me), people would be surprised to read:
14574 # /* config.h. Generated by config.status. */
14575 configure_input='Generated from '`
14576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14577 `' by configure.'
14578 if test x"$ac_file" != x-; then
14579 configure_input="$ac_file. $configure_input"
14580 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14581 $as_echo "$as_me: creating $ac_file" >&6;}
14582 fi
14583 # Neutralize special characters interpreted by sed in replacement strings.
14584 case $configure_input in #(
14585 *\&* | *\|* | *\\* )
14586 ac_sed_conf_input=`$as_echo "$configure_input" |
14587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14588 *) ac_sed_conf_input=$configure_input;;
14589 esac
14591 case $ac_tag in
14592 *:-:* | *:-) cat >"$tmp/stdin" \
14593 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14594 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14595 { (exit 1); exit 1; }; } ;;
14596 esac
14597 ;;
14598 esac
14600 ac_dir=`$as_dirname -- "$ac_file" ||
14601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14602 X"$ac_file" : 'X\(//\)[^/]' \| \
14603 X"$ac_file" : 'X\(//\)$' \| \
14604 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14605 $as_echo X"$ac_file" |
14606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14607 s//\1/
14608 q
14609 }
14610 /^X\(\/\/\)[^/].*/{
14611 s//\1/
14612 q
14613 }
14614 /^X\(\/\/\)$/{
14615 s//\1/
14616 q
14617 }
14618 /^X\(\/\).*/{
14619 s//\1/
14620 q
14621 }
14622 s/.*/./; q'`
14623 { as_dir="$ac_dir"
14624 case $as_dir in #(
14625 -*) as_dir=./$as_dir;;
14626 esac
14627 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14628 as_dirs=
14629 while :; do
14630 case $as_dir in #(
14631 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14632 *) as_qdir=$as_dir;;
14633 esac
14634 as_dirs="'$as_qdir' $as_dirs"
14635 as_dir=`$as_dirname -- "$as_dir" ||
14636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14637 X"$as_dir" : 'X\(//\)[^/]' \| \
14638 X"$as_dir" : 'X\(//\)$' \| \
14639 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14640 $as_echo X"$as_dir" |
14641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14642 s//\1/
14643 q
14644 }
14645 /^X\(\/\/\)[^/].*/{
14646 s//\1/
14647 q
14648 }
14649 /^X\(\/\/\)$/{
14650 s//\1/
14651 q
14652 }
14653 /^X\(\/\).*/{
14654 s//\1/
14655 q
14656 }
14657 s/.*/./; q'`
14658 test -d "$as_dir" && break
14659 done
14660 test -z "$as_dirs" || eval "mkdir $as_dirs"
14661 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14662 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14663 { (exit 1); exit 1; }; }; }
14664 ac_builddir=.
14666 case "$ac_dir" in
14667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14668 *)
14669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14670 # A ".." for each directory in $ac_dir_suffix.
14671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14672 case $ac_top_builddir_sub in
14673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14675 esac ;;
14676 esac
14677 ac_abs_top_builddir=$ac_pwd
14678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14679 # for backward compatibility:
14680 ac_top_builddir=$ac_top_build_prefix
14682 case $srcdir in
14683 .) # We are building in place.
14684 ac_srcdir=.
14685 ac_top_srcdir=$ac_top_builddir_sub
14686 ac_abs_top_srcdir=$ac_pwd ;;
14687 [\\/]* | ?:[\\/]* ) # Absolute name.
14688 ac_srcdir=$srcdir$ac_dir_suffix;
14689 ac_top_srcdir=$srcdir
14690 ac_abs_top_srcdir=$srcdir ;;
14691 *) # Relative name.
14692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14693 ac_top_srcdir=$ac_top_build_prefix$srcdir
14694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14695 esac
14696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14699 case $ac_mode in
14700 :F)
14701 #
14702 # CONFIG_FILE
14703 #
14705 case $INSTALL in
14706 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14707 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14708 esac
14709 _ACEOF
14711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14712 # If the template does not know about datarootdir, expand it.
14713 # FIXME: This hack should be removed a few years after 2.60.
14714 ac_datarootdir_hack=; ac_datarootdir_seen=
14716 ac_sed_dataroot='
14717 /datarootdir/ {
14718 p
14719 q
14720 }
14721 /@datadir@/p
14722 /@docdir@/p
14723 /@infodir@/p
14724 /@localedir@/p
14725 /@mandir@/p
14726 '
14727 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14728 *datarootdir*) ac_datarootdir_seen=yes;;
14729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14730 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14731 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14732 _ACEOF
14733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14734 ac_datarootdir_hack='
14735 s&@datadir@&$datadir&g
14736 s&@docdir@&$docdir&g
14737 s&@infodir@&$infodir&g
14738 s&@localedir@&$localedir&g
14739 s&@mandir@&$mandir&g
14740 s&\\\${datarootdir}&$datarootdir&g' ;;
14741 esac
14742 _ACEOF
14744 # Neutralize VPATH when `$srcdir' = `.'.
14745 # Shell code in configure.ac might set extrasub.
14746 # FIXME: do we really want to maintain this feature?
14747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14748 ac_sed_extra="$ac_vpsub
14749 $extrasub
14750 _ACEOF
14751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14752 :t
14753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14754 s|@configure_input@|$ac_sed_conf_input|;t t
14755 s&@top_builddir@&$ac_top_builddir_sub&;t t
14756 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14757 s&@srcdir@&$ac_srcdir&;t t
14758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14759 s&@top_srcdir@&$ac_top_srcdir&;t t
14760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14761 s&@builddir@&$ac_builddir&;t t
14762 s&@abs_builddir@&$ac_abs_builddir&;t t
14763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14764 s&@INSTALL@&$ac_INSTALL&;t t
14765 $ac_datarootdir_hack
14766 "
14767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14768 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14769 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14770 { (exit 1); exit 1; }; }
14772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14773 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14774 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14775 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14776 which seems to be undefined. Please make sure it is defined." >&5
14777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14778 which seems to be undefined. Please make sure it is defined." >&2;}
14780 rm -f "$tmp/stdin"
14781 case $ac_file in
14782 -) cat "$tmp/out" && rm -f "$tmp/out";;
14783 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14784 esac \
14785 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14786 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14787 { (exit 1); exit 1; }; }
14788 ;;
14789 :H)
14790 #
14791 # CONFIG_HEADER
14792 #
14793 if test x"$ac_file" != x-; then
14794 {
14795 $as_echo "/* $configure_input */" \
14796 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14797 } >"$tmp/config.h" \
14798 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14799 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14800 { (exit 1); exit 1; }; }
14801 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14802 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14803 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14804 else
14805 rm -f "$ac_file"
14806 mv "$tmp/config.h" "$ac_file" \
14807 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14808 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14809 { (exit 1); exit 1; }; }
14810 fi
14811 else
14812 $as_echo "/* $configure_input */" \
14813 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14814 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14815 $as_echo "$as_me: error: could not create -" >&2;}
14816 { (exit 1); exit 1; }; }
14817 fi
14818 # Compute "$ac_file"'s index in $config_headers.
14819 _am_stamp_count=1
14820 for _am_header in $config_headers :; do
14821 case $_am_header in
14822 "$ac_file" | "$ac_file":* )
14823 break ;;
14824 * )
14825 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14826 esac
14827 done
14828 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14830 X"$ac_file" : 'X\(//\)[^/]' \| \
14831 X"$ac_file" : 'X\(//\)$' \| \
14832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14833 $as_echo X"$ac_file" |
14834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14835 s//\1/
14836 q
14837 }
14838 /^X\(\/\/\)[^/].*/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\/\)$/{
14843 s//\1/
14844 q
14845 }
14846 /^X\(\/\).*/{
14847 s//\1/
14848 q
14849 }
14850 s/.*/./; q'`/stamp-h$_am_stamp_count
14851 ;;
14853 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14854 $as_echo "$as_me: executing $ac_file commands" >&6;}
14855 ;;
14856 esac
14859 case $ac_file$ac_mode in
14860 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14861 # Strip MF so we end up with the name of the file.
14862 mf=`echo "$mf" | sed -e 's/:.*$//'`
14863 # Check whether this is an Automake generated Makefile or not.
14864 # We used to match only the files named `Makefile.in', but
14865 # some people rename them; so instead we look at the file content.
14866 # Grep'ing the first line is not enough: some people post-process
14867 # each Makefile.in and add a new line on top of each file to say so.
14868 # So let's grep whole file.
14869 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14870 dirpart=`$as_dirname -- "$mf" ||
14871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14872 X"$mf" : 'X\(//\)[^/]' \| \
14873 X"$mf" : 'X\(//\)$' \| \
14874 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14875 $as_echo X"$mf" |
14876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14877 s//\1/
14878 q
14879 }
14880 /^X\(\/\/\)[^/].*/{
14881 s//\1/
14882 q
14883 }
14884 /^X\(\/\/\)$/{
14885 s//\1/
14886 q
14887 }
14888 /^X\(\/\).*/{
14889 s//\1/
14890 q
14891 }
14892 s/.*/./; q'`
14893 else
14894 continue
14895 fi
14896 # Extract the definition of DEPDIR, am__include, and am__quote
14897 # from the Makefile without running `make'.
14898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14899 test -z "$DEPDIR" && continue
14900 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14901 test -z "am__include" && continue
14902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14903 # When using ansi2knr, U may be empty or an underscore; expand it
14904 U=`sed -n 's/^U = //p' < "$mf"`
14905 # Find all dependency output files, they are included files with
14906 # $(DEPDIR) in their names. We invoke sed twice because it is the
14907 # simplest approach to changing $(DEPDIR) to its actual value in the
14908 # expansion.
14909 for file in `sed -n "
14910 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14911 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14912 # Make sure the directory exists.
14913 test -f "$dirpart/$file" && continue
14914 fdir=`$as_dirname -- "$file" ||
14915 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14916 X"$file" : 'X\(//\)[^/]' \| \
14917 X"$file" : 'X\(//\)$' \| \
14918 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14919 $as_echo X"$file" |
14920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14921 s//\1/
14922 q
14923 }
14924 /^X\(\/\/\)[^/].*/{
14925 s//\1/
14926 q
14927 }
14928 /^X\(\/\/\)$/{
14929 s//\1/
14930 q
14931 }
14932 /^X\(\/\).*/{
14933 s//\1/
14934 q
14935 }
14936 s/.*/./; q'`
14937 { as_dir=$dirpart/$fdir
14938 case $as_dir in #(
14939 -*) as_dir=./$as_dir;;
14940 esac
14941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14942 as_dirs=
14943 while :; do
14944 case $as_dir in #(
14945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14946 *) as_qdir=$as_dir;;
14947 esac
14948 as_dirs="'$as_qdir' $as_dirs"
14949 as_dir=`$as_dirname -- "$as_dir" ||
14950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14951 X"$as_dir" : 'X\(//\)[^/]' \| \
14952 X"$as_dir" : 'X\(//\)$' \| \
14953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14954 $as_echo X"$as_dir" |
14955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14956 s//\1/
14957 q
14958 }
14959 /^X\(\/\/\)[^/].*/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\/\)$/{
14964 s//\1/
14965 q
14966 }
14967 /^X\(\/\).*/{
14968 s//\1/
14969 q
14970 }
14971 s/.*/./; q'`
14972 test -d "$as_dir" && break
14973 done
14974 test -z "$as_dirs" || eval "mkdir $as_dirs"
14975 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14976 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14977 { (exit 1); exit 1; }; }; }
14978 # echo "creating $dirpart/$file"
14979 echo '# dummy' > "$dirpart/$file"
14980 done
14981 done
14982 ;;
14983 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14984 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14985 esac ;;
14987 esac
14988 done # for ac_tag
14991 { (exit 0); exit 0; }
14992 _ACEOF
14993 chmod +x $CONFIG_STATUS
14994 ac_clean_files=$ac_clean_files_save
14996 test $ac_write_fail = 0 ||
14997 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14998 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14999 { (exit 1); exit 1; }; }
15002 # configure is writing to config.log, and then calls config.status.
15003 # config.status does its own redirection, appending to config.log.
15004 # Unfortunately, on DOS this fails, as config.log is still kept open
15005 # by configure, so config.status won't be able to write to it; its
15006 # output is simply discarded. So we exec the FD to /dev/null,
15007 # effectively closing config.log, so it can be properly (re)opened and
15008 # appended to by config.status. When coming back to configure, we
15009 # need to make the FD available again.
15010 if test "$no_create" != yes; then
15011 ac_cs_success=:
15012 ac_config_status_args=
15013 test "$silent" = yes &&
15014 ac_config_status_args="$ac_config_status_args --quiet"
15015 exec 5>/dev/null
15016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15017 exec 5>>config.log
15018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15019 # would make configure fail if this is the last instruction.
15020 $ac_cs_success || { (exit 1); exit 1; }
15021 fi
15022 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15023 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15024 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15025 fi
15027 { as_dir=test/sh4
15028 case $as_dir in #(
15029 -*) as_dir=./$as_dir;;
15030 esac
15031 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15032 as_dirs=
15033 while :; do
15034 case $as_dir in #(
15035 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15036 *) as_qdir=$as_dir;;
15037 esac
15038 as_dirs="'$as_qdir' $as_dirs"
15039 as_dir=`$as_dirname -- "$as_dir" ||
15040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$as_dir" : 'X\(//\)[^/]' \| \
15042 X"$as_dir" : 'X\(//\)$' \| \
15043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15044 $as_echo X"$as_dir" |
15045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\(\/\/\)[^/].*/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)$/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\).*/{
15058 s//\1/
15059 q
15060 }
15061 s/.*/./; q'`
15062 test -d "$as_dir" && break
15063 done
15064 test -z "$as_dirs" || eval "mkdir $as_dirs"
15065 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15066 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15067 { (exit 1); exit 1; }; }; }
15070 echo
15071 echo "Configuration complete"
15072 echo
15074 if test "x$HAVE_GTK" = x; then
15075 if test "x$HAVE_COCOA" = x; then
15076 echo " User interface: none"
15077 else
15078 echo " User interface: Cocoa"
15079 fi
15080 else
15081 echo " User interface: GTK"
15082 fi
15084 if test "x$SH4_TRANSLATOR" = "x"; then
15085 echo " SH4 translator: None (emulation core only)"
15086 else
15087 echo " SH4 translator: $SH4_TRANSLATOR"
15088 fi
15090 if test "x$VIDEO_DRIVERS" = "x"; then
15091 echo " Video drivers: none (no supported GL found)"
15092 else
15093 echo " Video drivers: $VIDEO_DRIVERS"
15094 fi
15096 if test "x$AUDIO_DRIVERS" = "x"; then
15097 echo " Audio drivers: none (no supported output devices found)"
15098 else
15099 echo " Audio drivers: $AUDIO_DRIVERS"
15100 fi
15102 if test "x$INPUT_DRIVERS" = "x"; then
15103 echo " Input drivers: none (no supported input devices found)"
15104 else
15105 echo " Input drivers: $INPUT_DRIVERS"
15106 fi
15108 if test "x$CDROM_DRIVER" = "x"; then
15109 echo " CD-ROM driver: none (no supported cd-rom devices found)"
15110 else
15111 echo " CD-ROM driver: $CDROM_DRIVER"
15112 fi
.