filename | configure |
changeset | 1266:e6079b9c69ba |
prev | 1255:d63f73cc586f |
next | 1284:0db0a5e72698 |
author | nkeynes |
date | Wed Mar 21 14:45:27 2012 +1000 (12 years ago) |
permissions | -rwxr-xr-x |
last change | Make sure we destroy the render buffers as part of the GL shutdown (fixes bug with render buffers not being recreated when we re-init the GL). |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
252 fi
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
273 fi
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
336 fi
338 fi
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
668 AWK
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 MAINTAINER_MODE_TRUE
675 MAINTAINER_MODE_FALSE
676 MAINT
677 build
678 build_cpu
679 build_vendor
680 build_os
681 host
682 host_cpu
683 host_vendor
684 host_os
685 ANT
686 ANDROID_ABI
687 ANDROID_SDK_HOME
688 ANDROID_NDK_HOME
689 ANDROID_SDK_VERSION
690 ANDROID_NDK_VERSION
691 ANDROID_GDBSERVER
692 GUI_ANDROID_TRUE
693 GUI_ANDROID_FALSE
694 CC
695 CFLAGS
696 LDFLAGS
697 CPPFLAGS
698 ac_ct_CC
699 EXEEXT
700 OBJEXT
701 DEPDIR
702 am__include
703 am__quote
704 AMDEP_TRUE
705 AMDEP_FALSE
706 AMDEPBACKSLASH
707 CCDEPMODE
708 am__fastdepCC_TRUE
709 am__fastdepCC_FALSE
710 CPP
711 CC
712 CFLAGS
713 CPPFLAGS
714 CC_FOR_BUILD
715 ac_ct_CC_FOR_BUILD
716 CC_FOR_BUILDDEPMODE
717 am__fastdepCC_FOR_BUILD_TRUE
718 am__fastdepCC_FOR_BUILD_FALSE
719 CPP
720 CPPFLAGS
721 CPP_FOR_BUILD
722 BUILD_EXEEXT
723 BUILD_OBJEXT
724 CFLAGS_FOR_BUILD
725 CPPFLAGS_FOR_BUILD
726 OBJC
727 OBJCFLAGS
728 ac_ct_OBJC
729 SED
730 CCAS
731 CCASFLAGS
732 RANLIB
733 GREP
734 EGREP
735 OBJCDEPMODE
736 am__fastdepOBJC_TRUE
737 am__fastdepOBJC_FALSE
738 POD2MAN
739 POD2HTML
740 GUI_COCOA_TRUE
741 GUI_COCOA_FALSE
742 SOEXT
743 PLUGINCFLAGS
744 PLUGINLDFLAGS
745 LXDREAMLDFLAGS
746 BUILD_PLUGINS_TRUE
747 BUILD_PLUGINS_FALSE
748 LXDREAMCPPFLAGS
749 PKG_CONFIG
750 LIBPNG_CFLAGS
751 LIBPNG_LIBS
752 GLIB_CFLAGS
753 GLIB_LIBS
754 GTK_CFLAGS
755 GTK_LIBS
756 GLIB_FOR_BUILD_CFLAGS
757 GLIB_FOR_BUILD_LIBS
758 GUI_GTK_TRUE
759 GUI_GTK_FALSE
760 LIBISOFS_CFLAGS
761 LIBISOFS_LIBS
762 LIBGL_CFLAGS
763 LIBGL_LIBS
764 VIDEO_OSMESA_TRUE
765 VIDEO_OSMESA_FALSE
766 VIDEO_GLX_TRUE
767 VIDEO_GLX_FALSE
768 VIDEO_NSGL_TRUE
769 VIDEO_NSGL_FALSE
770 BUILD_SH4X86_TRUE
771 BUILD_SH4X86_FALSE
772 AUDIO_OSX_TRUE
773 AUDIO_OSX_FALSE
774 SDL_CFLAGS
775 SDL_LIBS
776 AUDIO_SDL_TRUE
777 AUDIO_SDL_FALSE
778 PULSE_CFLAGS
779 PULSE_LIBS
780 AUDIO_PULSE_TRUE
781 AUDIO_PULSE_FALSE
782 ESOUND_CFLAGS
783 ESOUND_LIBS
784 AUDIO_ESOUND_TRUE
785 AUDIO_ESOUND_FALSE
786 ALSA_CFLAGS
787 ALSA_LIBS
788 AUDIO_ALSA_TRUE
789 AUDIO_ALSA_FALSE
790 CDROM_LINUX_TRUE
791 CDROM_LINUX_FALSE
792 CDROM_OSX_TRUE
793 CDROM_OSX_FALSE
794 CDROM_NONE_TRUE
795 CDROM_NONE_FALSE
796 JOY_LINUX_TRUE
797 JOY_LINUX_FALSE
798 INPUT_LIRC_TRUE
799 INPUT_LIRC_FALSE
800 SHCC
801 SHLD
802 SHOBJCOPY
803 ARMCC
804 ARMLD
805 ARMOBJCOPY
806 BUILD_SYSTEST_TRUE
807 BUILD_SYSTEST_FALSE
808 BUILD_ARMTEST_TRUE
809 BUILD_ARMTEST_FALSE
810 LXDREAM_LIBS
811 GETTEXT_PACKAGE
812 USE_NLS
813 MSGFMT
814 MSGFMT_OPTS
815 GMSGFMT
816 XGETTEXT
817 CATALOGS
818 CATOBJEXT
819 DATADIRNAME
820 GMOFILES
821 INSTOBJEXT
822 INTLLIBS
823 PO_IN_DATADIR_TRUE
824 PO_IN_DATADIR_FALSE
825 POFILES
826 POSUB
827 MKINSTALLDIRS
828 LIBOBJS
829 LTLIBOBJS'
830 ac_subst_files=''
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CPP
840 CC
841 CFLAGS
842 CPPFLAGS
843 CPP
844 CPPFLAGS
845 OBJC
846 OBJCFLAGS
847 CCAS
848 CCASFLAGS
849 PKG_CONFIG
850 LIBPNG_CFLAGS
851 LIBPNG_LIBS
852 GLIB_CFLAGS
853 GLIB_LIBS
854 GTK_CFLAGS
855 GTK_LIBS
856 GLIB_FOR_BUILD_CFLAGS
857 GLIB_FOR_BUILD_LIBS
858 LIBISOFS_CFLAGS
859 LIBISOFS_LIBS
860 LIBGL_CFLAGS
861 LIBGL_LIBS
862 SDL_CFLAGS
863 SDL_LIBS
864 PULSE_CFLAGS
865 PULSE_LIBS
866 ESOUND_CFLAGS
867 ESOUND_LIBS
868 ALSA_CFLAGS
869 ALSA_LIBS'
872 # Initialize some variables set by options.
873 ac_init_help=
874 ac_init_version=false
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_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
977 { (exit 1); exit 1; }; }
978 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
979 eval enable_$ac_feature=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
991 -enable-* | --enable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_$ac_feature=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_$ac_package=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1227 ;;
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 ;;
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 { echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1253 fi
1255 # Be sure to have absolute directory names.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1268 done
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286 fi
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 { echo "$as_me: error: Working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$0" ||
1309 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$0" : 'X\(//\)[^/]' \| \
1311 X"$0" : 'X\(//\)$' \| \
1312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1313 echo X"$0" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1427 cat <<\_ACEOF
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1440 if test -n "$ac_init_help"; then
1442 cat <<\_ACEOF
1444 Optional Features:
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-maintainer-mode enable make rules and dependencies not useful
1448 (and sometimes confusing) to the casual installer
1449 --disable-dependency-tracking speeds up one-time build
1450 --enable-dependency-tracking do not reject slow dependency extractors
1451 --enable-strict-warn Enable strict compilation warnings
1452 --disable-translator Disable the SH4 translator (Enabled by default)
1453 --disable-optimized Disable compile-time optimizations (Enabled by
1454 default)
1455 --enable-shared Build drivers as shared libraries (Enabled if
1456 available)
1457 --enable-profiled Enable profiling build
1458 --enable-trace Enable generation of IO traces (warning: hurts
1459 performance)
1460 --enable-watch Enable watchpoints in the debugger (warning: hurts
1461 performance)
1462 --enable-sh4stats Enable statistics on executed sh4 instructions
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-android=SDK Specify the location of the Android SDK
1468 --with-android-ndk=NDK Specify the location of the Android NDK
1469 --with-android-version Specify target Android SDK version
1470 --with-android-version Specify target Android NDK version
1471 --with-android-abi Specify target Android ABI
1472 --with-osmesa Build with the osmesa GL library (software
1473 rendering)
1474 --with-gtk Build with the GTK UI. Default on X11 systems
1475 --with-esd Build with support for the ESounD audio system
1476 --with-pulse Build with support for the PulseAudio audio system
1477 --with-sdl Build with support for SDL audio
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CPP C preprocessor
1488 OBJC Objective C compiler command
1489 OBJCFLAGS Objective C compiler flags
1490 CCAS assembler compiler command (defaults to CC)
1491 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1492 PKG_CONFIG path to pkg-config utility
1493 LIBPNG_CFLAGS
1494 C compiler flags for LIBPNG, overriding pkg-config
1495 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1496 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1497 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1498 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1499 GTK_LIBS linker flags for GTK, overriding pkg-config
1500 GLIB_FOR_BUILD_CFLAGS
1501 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1502 GLIB_FOR_BUILD_LIBS
1503 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1504 LIBISOFS_CFLAGS
1505 C compiler flags for LIBISOFS, overriding pkg-config
1506 LIBISOFS_LIBS
1507 linker flags for LIBISOFS, overriding pkg-config
1508 LIBGL_CFLAGS
1509 C compiler flags for LIBGL, overriding pkg-config
1510 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1511 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1512 SDL_LIBS linker flags for SDL, overriding pkg-config
1513 PULSE_CFLAGS
1514 C compiler flags for PULSE, overriding pkg-config
1515 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1516 ESOUND_CFLAGS
1517 C compiler flags for ESOUND, overriding pkg-config
1518 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1519 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1520 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 _ACEOF
1526 ac_status=$?
1527 fi
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" || continue
1533 ac_builddir=.
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *)
1538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1551 case $srcdir in
1552 .) # We are building in place.
1553 ac_srcdir=.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1560 *) # Relative name.
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1575 else
1576 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 fi || ac_status=$?
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1579 done
1580 fi
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584 cat <<\_ACEOF
1585 configure
1586 generated by GNU Autoconf 2.61
1588 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1589 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593 exit
1594 fi
1595 cat >config.log <<_ACEOF
1596 This file contains any messages produced by compilers while
1597 running configure, to aid debugging if configure makes a mistake.
1599 It was created by $as_me, which was
1600 generated by GNU Autoconf 2.61. Invocation command line was
1602 $ $0 $@
1604 _ACEOF
1605 exec 5>>config.log
1606 {
1607 cat <<_ASUNAME
1608 ## --------- ##
1609 ## Platform. ##
1610 ## --------- ##
1612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1619 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1621 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1622 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1624 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1625 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1626 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1627 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 _ASUNAME
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634 IFS=$as_save_IFS
1635 test -z "$as_dir" && as_dir=.
1636 echo "PATH: $as_dir"
1637 done
1638 IFS=$as_save_IFS
1640 } >&5
1642 cat >&5 <<_ACEOF
1645 ## ----------- ##
1646 ## Core tests. ##
1647 ## ----------- ##
1649 _ACEOF
1652 # Keep a trace of the command line.
1653 # Strip out --no-create and --no-recursion so they do not pile up.
1654 # Strip out --silent because we don't want to record it for future runs.
1655 # Also quote any args containing shell meta-characters.
1656 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_configure_args=
1658 ac_configure_args0=
1659 ac_configure_args1=
1660 ac_must_keep_next=false
1661 for ac_pass in 1 2
1662 do
1663 for ac_arg
1664 do
1665 case $ac_arg in
1666 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668 | -silent | --silent | --silen | --sile | --sil)
1669 continue ;;
1670 *\'*)
1671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 esac
1673 case $ac_pass in
1674 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1675 2)
1676 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1677 if test $ac_must_keep_next = true; then
1678 ac_must_keep_next=false # Got value, back to normal.
1679 else
1680 case $ac_arg in
1681 *=* | --config-cache | -C | -disable-* | --disable-* \
1682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1684 | -with-* | --with-* | -without-* | --without-* | --x)
1685 case "$ac_configure_args0 " in
1686 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 esac
1688 ;;
1689 -* ) ac_must_keep_next=true ;;
1690 esac
1691 fi
1692 ac_configure_args="$ac_configure_args '$ac_arg'"
1693 ;;
1694 esac
1695 done
1696 done
1697 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1698 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700 # When interrupted or exit'd, cleanup temporary files, and complete
1701 # config.log. We remove comments because anyway the quotes in there
1702 # would cause problems or look ugly.
1703 # WARNING: Use '\'' to represent an apostrophe within the trap.
1704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1705 trap 'exit_status=$?
1706 # Save into config.log some information that might help in debugging.
1707 {
1708 echo
1710 cat <<\_ASBOX
1711 ## ---------------- ##
1712 ## Cache variables. ##
1713 ## ---------------- ##
1714 _ASBOX
1715 echo
1716 # The following way of writing the cache mishandles newlines in values,
1717 (
1718 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719 eval ac_val=\$$ac_var
1720 case $ac_val in #(
1721 *${as_nl}*)
1722 case $ac_var in #(
1723 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 esac
1726 case $ac_var in #(
1727 _ | IFS | as_nl) ;; #(
1728 *) $as_unset $ac_var ;;
1729 esac ;;
1730 esac
1731 done
1732 (set) 2>&1 |
1733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734 *${as_nl}ac_space=\ *)
1735 sed -n \
1736 "s/'\''/'\''\\\\'\'''\''/g;
1737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 ;; #(
1739 *)
1740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741 ;;
1742 esac |
1743 sort
1744 )
1745 echo
1747 cat <<\_ASBOX
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1751 _ASBOX
1752 echo
1753 for ac_var in $ac_subst_vars
1754 do
1755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 echo "$ac_var='\''$ac_val'\''"
1760 done | sort
1761 echo
1763 if test -n "$ac_subst_files"; then
1764 cat <<\_ASBOX
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1768 _ASBOX
1769 echo
1770 for ac_var in $ac_subst_files
1771 do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 esac
1776 echo "$ac_var='\''$ac_val'\''"
1777 done | sort
1778 echo
1779 fi
1781 if test -s confdefs.h; then
1782 cat <<\_ASBOX
1783 ## ----------- ##
1784 ## confdefs.h. ##
1785 ## ----------- ##
1786 _ASBOX
1787 echo
1788 cat confdefs.h
1789 echo
1790 fi
1791 test "$ac_signal" != 0 &&
1792 echo "$as_me: caught signal $ac_signal"
1793 echo "$as_me: exit $exit_status"
1794 } >&5
1795 rm -f core *.core core.conftest.* &&
1796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 exit $exit_status
1798 ' 0
1799 for ac_signal in 1 2 13 15; do
1800 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1801 done
1802 ac_signal=0
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1807 # Predefined preprocessor variables.
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1816 _ACEOF
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1821 _ACEOF
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1826 _ACEOF
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1831 _ACEOF
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837 set x "$CONFIG_SITE"
1838 elif test "x$prefix" != xNONE; then
1839 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1840 else
1841 set x "$ac_default_prefix/share/config.site" \
1842 "$ac_default_prefix/etc/config.site"
1843 fi
1844 shift
1845 for ac_site_file
1846 do
1847 if test -r "$ac_site_file"; then
1848 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 echo "$as_me: loading site script $ac_site_file" >&6;}
1850 sed 's/^/| /' "$ac_site_file" >&5
1851 . "$ac_site_file"
1852 fi
1853 done
1855 if test -r "$cache_file"; then
1856 # Some versions of bash will fail to source /dev/null (special
1857 # files actually), so we avoid doing that.
1858 if test -f "$cache_file"; then
1859 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 echo "$as_me: loading cache $cache_file" >&6;}
1861 case $cache_file in
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
1864 esac
1865 fi
1866 else
1867 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 echo "$as_me: creating cache $cache_file" >&6;}
1869 >$cache_file
1870 fi
1872 # Check that the precious variables saved in the cache have kept the same
1873 # value.
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877 eval ac_new_set=\$ac_env_${ac_var}_set
1878 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879 eval ac_new_val=\$ac_env_${ac_var}_value
1880 case $ac_old_set,$ac_new_set in
1881 set,)
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1885 ,set)
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1889 ,);;
1890 *)
1891 if test "x$ac_old_val" != "x$ac_new_val"; then
1892 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1893 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1894 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1895 echo "$as_me: former value: $ac_old_val" >&2;}
1896 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1897 echo "$as_me: current value: $ac_new_val" >&2;}
1898 ac_cache_corrupted=:
1899 fi;;
1900 esac
1901 # Pass precious variables to config.status.
1902 if test "$ac_new_set" = set; then
1903 case $ac_new_val in
1904 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 *) ac_arg=$ac_var=$ac_new_val ;;
1906 esac
1907 case " $ac_configure_args " in
1908 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1909 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1910 esac
1911 fi
1912 done
1913 if $ac_cache_corrupted; then
1914 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1915 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1916 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1917 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1918 { (exit 1); exit 1; }; }
1919 fi
1937 ac_ext=c
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944 am__api_version="1.9"
1945 ac_aux_dir=
1946 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1947 if test -f "$ac_dir/install-sh"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 break
1951 elif test -f "$ac_dir/install.sh"; then
1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 break
1955 elif test -f "$ac_dir/shtool"; then
1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 break
1959 fi
1960 done
1961 if test -z "$ac_aux_dir"; then
1962 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1964 { (exit 1); exit 1; }; }
1965 fi
1967 # These three variables are undocumented and unsupported,
1968 # and are intended to be withdrawn in a future Autoconf release.
1969 # They can cause serious problems if a builder's source tree is in a directory
1970 # whose full name contains unusual characters.
1971 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1972 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1973 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976 # Find a good install program. We prefer a C program (faster),
1977 # so one script is as good as another. But avoid the broken or
1978 # incompatible versions:
1979 # SysV /etc/install, /usr/sbin/install
1980 # SunOS /usr/etc/install
1981 # IRIX /sbin/install
1982 # AIX /bin/install
1983 # AmigaOS /C/install, which installs bootblocks on floppy discs
1984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987 # OS/2's system install, which has a completely different semantic
1988 # ./install, which can be erroneously created by make from ./install.sh.
1989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1991 if test -z "$INSTALL"; then
1992 if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2001 case $as_dir/ in
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 /usr/ucb/* ) ;;
2006 *)
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2009 # by default.
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2016 :
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2020 :
2021 else
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 break 3
2024 fi
2025 fi
2026 done
2027 done
2028 ;;
2029 esac
2030 done
2031 IFS=$as_save_IFS
2034 fi
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2037 else
2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
2040 # break other packages using the cache if that directory is
2041 # removed, or if the value is a relative name.
2042 INSTALL=$ac_install_sh
2043 fi
2044 fi
2045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6; }
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2056 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2058 # Just in case
2059 sleep 1
2060 echo timestamp > conftest.file
2061 # Do `set' in a subshell so we don't clobber the current shell's
2062 # arguments. Must try -L first in case configure is actually a
2063 # symlink; some systems play weird games with the mod time of symlinks
2064 # (eg FreeBSD returns the mod time of the symlink's containing
2065 # directory).
2066 if (
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2069 # -L didn't work.
2070 set X `ls -t $srcdir/configure conftest.file`
2071 fi
2072 rm -f conftest.file
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&5
2082 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083 alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2085 fi
2087 test "$2" = conftest.file
2088 )
2089 then
2090 # Ok.
2091 :
2092 else
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094 Check your system clock" >&5
2095 echo "$as_me: error: newly created file is older than distributed files!
2096 Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099 { echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6; }
2101 test "$program_prefix" != NONE &&
2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2103 # Use a double $ so make ignores it.
2104 test "$program_suffix" != NONE &&
2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2106 # Double any \ or $. echo might interpret backslashes.
2107 # By default was `s,x,x', remove it if useless.
2108 cat <<\_ACEOF >conftest.sed
2109 s/[\\$]/&&/g;s/;s,x,x,$//
2110 _ACEOF
2111 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2112 rm -f conftest.sed
2114 # expand $ac_aux_dir to an absolute path
2115 am_aux_dir=`cd $ac_aux_dir && pwd`
2117 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118 # Use eval to expand $SHELL
2119 if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2121 else
2122 am_missing_run=
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125 fi
2127 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2128 # We used to keeping the `.' as first argument, in order to
2129 # allow $(mkdir_p) to be used without argument. As in
2130 # $(mkdir_p) $(somedir)
2131 # where $(somedir) is conditionally defined. However this is wrong
2132 # for two reasons:
2133 # 1. if the package is installed by a user who cannot write `.'
2134 # make install will fail,
2135 # 2. the above comment should most certainly read
2136 # $(mkdir_p) $(DESTDIR)$(somedir)
2137 # so it does not work when $(somedir) is undefined and
2138 # $(DESTDIR) is not.
2139 # To support the latter case, we have to write
2140 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2141 # so the `.' trick is pointless.
2142 mkdir_p='mkdir -p --'
2143 else
2144 # On NextStep and OpenStep, the `mkdir' command does not
2145 # recognize any option. It will interpret all options as
2146 # directories to create, and then abort because `.' already
2147 # exists.
2148 for d in ./-p ./--version;
2149 do
2150 test -d $d && rmdir $d
2151 done
2152 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2153 if test -f "$ac_aux_dir/mkinstalldirs"; then
2154 mkdir_p='$(mkinstalldirs)'
2155 else
2156 mkdir_p='$(install_sh) -d'
2157 fi
2158 fi
2160 for ac_prog in gawk mawk nawk awk
2161 do
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_AWK+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$AWK"; then
2170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_AWK="$ac_prog"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 break 2
2182 fi
2183 done
2184 done
2185 IFS=$as_save_IFS
2187 fi
2188 fi
2189 AWK=$ac_cv_prog_AWK
2190 if test -n "$AWK"; then
2191 { echo "$as_me:$LINENO: result: $AWK" >&5
2192 echo "${ECHO_T}$AWK" >&6; }
2193 else
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2196 fi
2199 test -n "$AWK" && break
2200 done
2202 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2203 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2204 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2205 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 cat >conftest.make <<\_ACEOF
2209 SHELL = /bin/sh
2210 all:
2211 @echo '@@@%%%=$(MAKE)=@@@%%%'
2212 _ACEOF
2213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2214 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2215 *@@@%%%=?*=@@@%%%*)
2216 eval ac_cv_prog_make_${ac_make}_set=yes;;
2217 *)
2218 eval ac_cv_prog_make_${ac_make}_set=no;;
2219 esac
2220 rm -f conftest.make
2221 fi
2222 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2223 { echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6; }
2225 SET_MAKE=
2226 else
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2229 SET_MAKE="MAKE=${MAKE-make}"
2230 fi
2232 rm -rf .tst 2>/dev/null
2233 mkdir .tst 2>/dev/null
2234 if test -d .tst; then
2235 am__leading_dot=.
2236 else
2237 am__leading_dot=_
2238 fi
2239 rmdir .tst 2>/dev/null
2241 # test to see if srcdir already configured
2242 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2243 test -f $srcdir/config.status; then
2244 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2245 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2249 # test whether we have cygpath
2250 if test -z "$CYGPATH_W"; then
2251 if (cygpath --version) >/dev/null 2>/dev/null; then
2252 CYGPATH_W='cygpath -w'
2253 else
2254 CYGPATH_W=echo
2255 fi
2256 fi
2259 # Define the identity of the package.
2260 PACKAGE=lxdream
2261 VERSION=0.9.1
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE "$PACKAGE"
2266 _ACEOF
2269 cat >>confdefs.h <<_ACEOF
2270 #define VERSION "$VERSION"
2271 _ACEOF
2273 # Some tools Automake needs.
2275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2287 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2289 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2291 # Installed binaries are usually stripped using `strip' when the user
2292 # run `make install-strip'. However `strip' might not be the right
2293 # tool to use in cross-compilation environments, therefore Automake
2294 # will honor the `STRIP' environment variable to overrule this program.
2295 if test "$cross_compiling" != no; then
2296 if test -n "$ac_tool_prefix"; then
2297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2298 set dummy ${ac_tool_prefix}strip; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_STRIP+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 if test -n "$STRIP"; then
2305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2317 fi
2318 done
2319 done
2320 IFS=$as_save_IFS
2322 fi
2323 fi
2324 STRIP=$ac_cv_prog_STRIP
2325 if test -n "$STRIP"; then
2326 { echo "$as_me:$LINENO: result: $STRIP" >&5
2327 echo "${ECHO_T}$STRIP" >&6; }
2328 else
2329 { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2331 fi
2334 fi
2335 if test -z "$ac_cv_prog_STRIP"; then
2336 ac_ct_STRIP=$STRIP
2337 # Extract the first word of "strip", so it can be a program name with args.
2338 set dummy strip; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$ac_ct_STRIP"; then
2345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_ac_ct_STRIP="strip"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2357 fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2362 fi
2363 fi
2364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2365 if test -n "$ac_ct_STRIP"; then
2366 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2367 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2368 else
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2373 if test "x$ac_ct_STRIP" = x; then
2374 STRIP=":"
2375 else
2376 case $cross_compiling:$ac_tool_warned in
2377 yes:)
2378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet. If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&5
2381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet. If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2384 ac_tool_warned=yes ;;
2385 esac
2386 STRIP=$ac_ct_STRIP
2387 fi
2388 else
2389 STRIP="$ac_cv_prog_STRIP"
2390 fi
2392 fi
2393 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2395 # We need awk for the "check" target. The system "awk" is bad on
2396 # some platforms.
2397 # Always define AMTAR for backward compatibility.
2399 AMTAR=${AMTAR-"${am_missing_run}tar"}
2401 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2407 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2408 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2409 # Check whether --enable-maintainer-mode was given.
2410 if test "${enable_maintainer_mode+set}" = set; then
2411 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2412 else
2413 USE_MAINTAINER_MODE=no
2414 fi
2416 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2417 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2420 if test $USE_MAINTAINER_MODE = yes; then
2421 MAINTAINER_MODE_TRUE=
2422 MAINTAINER_MODE_FALSE='#'
2423 else
2424 MAINTAINER_MODE_TRUE='#'
2425 MAINTAINER_MODE_FALSE=
2426 fi
2428 MAINT=$MAINTAINER_MODE_TRUE
2431 ac_config_headers="$ac_config_headers config.h"
2434 # Make sure we can run config.sub.
2435 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2436 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2437 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2438 { (exit 1); exit 1; }; }
2440 { echo "$as_me:$LINENO: checking build system type" >&5
2441 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2442 if test "${ac_cv_build+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 ac_build_alias=$build_alias
2446 test "x$ac_build_alias" = x &&
2447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448 test "x$ac_build_alias" = x &&
2449 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2450 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2451 { (exit 1); exit 1; }; }
2452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2453 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2454 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2455 { (exit 1); exit 1; }; }
2457 fi
2458 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2459 echo "${ECHO_T}$ac_cv_build" >&6; }
2460 case $ac_cv_build in
2461 *-*-*) ;;
2462 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2463 echo "$as_me: error: invalid value of canonical build" >&2;}
2464 { (exit 1); exit 1; }; };;
2465 esac
2466 build=$ac_cv_build
2467 ac_save_IFS=$IFS; IFS='-'
2468 set x $ac_cv_build
2469 shift
2470 build_cpu=$1
2471 build_vendor=$2
2472 shift; shift
2473 # Remember, the first character of IFS is used to create $*,
2474 # except with old shells:
2475 build_os=$*
2476 IFS=$ac_save_IFS
2477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480 { echo "$as_me:$LINENO: checking host system type" >&5
2481 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2482 if test "${ac_cv_host+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test "x$host_alias" = x; then
2486 ac_cv_host=$ac_cv_build
2487 else
2488 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2489 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2490 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2491 { (exit 1); exit 1; }; }
2492 fi
2494 fi
2495 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2496 echo "${ECHO_T}$ac_cv_host" >&6; }
2497 case $ac_cv_host in
2498 *-*-*) ;;
2499 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2500 echo "$as_me: error: invalid value of canonical host" >&2;}
2501 { (exit 1); exit 1; }; };;
2502 esac
2503 host=$ac_cv_host
2504 ac_save_IFS=$IFS; IFS='-'
2505 set x $ac_cv_host
2506 shift
2507 host_cpu=$1
2508 host_vendor=$2
2509 shift; shift
2510 # Remember, the first character of IFS is used to create $*,
2511 # except with old shells:
2512 host_os=$*
2513 IFS=$ac_save_IFS
2514 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2525 # LX_ANDROID_BUILD
2526 # Defines --with-android, --with-android-ndk, and --with-android-version
2527 # If specified, checks for a working install, and sets build parameters
2528 # appropriately for an Android host.
2534 # Check whether --with-android was given.
2535 if test "${with_android+set}" = set; then
2536 withval=$with_android;
2537 fi
2540 # Check whether --with-android-ndk was given.
2541 if test "${with_android_ndk+set}" = set; then
2542 withval=$with_android_ndk;
2543 fi
2546 # Check whether --with-android-version was given.
2547 if test "${with_android_version+set}" = set; then
2548 withval=$with_android_version;
2549 else
2550 with_android_version="android-11"
2551 fi
2554 # Check whether --with-android-ndk-version was given.
2555 if test "${with_android_ndk_version+set}" = set; then
2556 withval=$with_android_ndk_version;
2557 else
2558 with_ndk_version="android-9"
2559 fi
2562 # Check whether --with-android-abi was given.
2563 if test "${with_android_abi+set}" = set; then
2564 withval=$with_android_abi;
2565 else
2566 ANDROID_ABI="armeabi-v7a"
2567 fi
2570 if test "x$with_android" != "x"; then
2571 if test "$with_android" = "yes"; then
2572 { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
2573 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
2574 { (exit 1); exit 1; }; }
2575 fi
2576 if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
2577 { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
2578 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
2579 { (exit 1); exit 1; }; }
2580 fi
2582 ANDROID_SDK_HOME="$with_android"
2583 ANDROID_NDK_HOME="$with_android_ndk"
2584 ANDROID_SDK_VERSION="$with_android_version"
2585 ANDROID_NDK_VERSION="$with_ndk_version"
2587 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
2588 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
2589 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
2590 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 test "$cross_compiling" = yes &&
2594 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2595 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2596 { (exit 1); exit 1; }; }
2597 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
2598 eval "$as_ac_File=yes"
2599 else
2600 eval "$as_ac_File=no"
2601 fi
2602 fi
2603 ac_res=`eval echo '${'$as_ac_File'}'`
2604 { echo "$as_me:$LINENO: result: $ac_res" >&5
2605 echo "${ECHO_T}$ac_res" >&6; }
2606 if test `eval echo '${'$as_ac_File'}'` = yes; then
2607 :
2608 else
2609 { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
2610 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
2611 { (exit 1); exit 1; }; }
2612 fi
2614 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
2615 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
2616 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
2617 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 test "$cross_compiling" = yes &&
2621 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2622 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2623 { (exit 1); exit 1; }; }
2624 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
2625 eval "$as_ac_File=yes"
2626 else
2627 eval "$as_ac_File=no"
2628 fi
2629 fi
2630 ac_res=`eval echo '${'$as_ac_File'}'`
2631 { echo "$as_me:$LINENO: result: $ac_res" >&5
2632 echo "${ECHO_T}$ac_res" >&6; }
2633 if test `eval echo '${'$as_ac_File'}'` = yes; then
2634 :
2635 else
2636 { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
2637 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
2638 { (exit 1); exit 1; }; }
2639 fi
2641 as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
2642 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
2643 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
2644 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 test "$cross_compiling" = yes &&
2648 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2649 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2650 { (exit 1); exit 1; }; }
2651 if test -r "$ANDROID_NDK_HOME/toolchains"; then
2652 eval "$as_ac_File=yes"
2653 else
2654 eval "$as_ac_File=no"
2655 fi
2656 fi
2657 ac_res=`eval echo '${'$as_ac_File'}'`
2658 { echo "$as_me:$LINENO: result: $ac_res" >&5
2659 echo "${ECHO_T}$ac_res" >&6; }
2660 if test `eval echo '${'$as_ac_File'}'` = yes; then
2661 :
2662 else
2663 { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
2664 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
2665 { (exit 1); exit 1; }; }
2666 fi
2669 TARGETFLAGS="-ffunction-sections -funwind-tables -fomit-frame-pointer -DANDROID -Wa,--noexecstack"
2671 case $ANDROID_ABI in
2672 armeabi | armeabi-v7a)
2673 host_alias="arm-linux-androideabi"
2674 host_cpu="arm"
2675 host_vendor="unknown";
2676 host_os="linux-androideabi"
2677 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
2678 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
2679 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
2680 TARGETFLAGS="$TARGETFLAGS -fstack-protector -finline-limit=64 -fno-strict-aliasing -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__"
2681 if test "x$with_abi" = "armeabi"; then
2682 TARGETFLAGS="$TARGETFLAGS -march=armv5te -mtune=xscale -msoft-float"
2683 else
2684 TARGETFLAGS="$TARGETFLAGS -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfp"
2685 fi
2686 ;;
2687 x86)
2688 host_alias="i686-android-linux"
2689 host_cpu="i686"
2690 host_vendor="android"
2691 host_os="linux"
2692 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
2693 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
2694 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
2695 TARGETFLAGS="$TARGETFLAGS -finline-limit=300 -fno-rtti -funswitch-loops -fstrict-aliasing"
2696 ;;
2697 *)
2698 { { echo "$as_me:$LINENO: error: Unsupported android ABI $ANDROID_ABI" >&5
2699 echo "$as_me: error: Unsupported android ABI $ANDROID_ABI" >&2;}
2700 { (exit 1); exit 1; }; }
2701 ;;
2702 esac
2704 # Extract the first word of "ant ", so it can be a program name with args.
2705 set dummy ant ; ac_word=$2
2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708 if test "${ac_cv_path_ANT+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 case $ANT in
2712 [\\/]* | ?:[\\/]*)
2713 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
2714 ;;
2715 *)
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2731 ;;
2732 esac
2733 fi
2734 ANT=$ac_cv_path_ANT
2735 if test -n "$ANT"; then
2736 { echo "$as_me:$LINENO: result: $ANT" >&5
2737 echo "${ECHO_T}$ANT" >&6; }
2738 else
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2741 fi
2745 CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
2746 CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
2747 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2748 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2749 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2750 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2751 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2752 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2753 CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
2754 LDFLAGS="-nostdlib -Wl,--no-undefined -L${ANDROID_SYSROOT}/usr/lib -Wl,-rpath-link,${ANDROID_SYSROOT}/usr/lib -Wl,-allow-shlib-undefined -Wl,-z,noexecstack $LDFLAGS"
2755 LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
2764 ANDROID_BUILD=yes
2765 cross_compiling=yes
2766 fi
2770 if test "$ANDROID_BUILD" = "yes"; then
2771 GUI_ANDROID_TRUE=
2772 GUI_ANDROID_FALSE='#'
2773 else
2774 GUI_ANDROID_TRUE='#'
2775 GUI_ANDROID_FALSE=
2776 fi
2781 DEPDIR="${am__leading_dot}deps"
2783 ac_config_commands="$ac_config_commands depfiles"
2786 am_make=${MAKE-make}
2787 cat > confinc << 'END'
2788 am__doit:
2789 @echo done
2790 .PHONY: am__doit
2791 END
2792 # If we don't find an include directive, just comment out the code.
2793 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2794 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2795 am__include="#"
2796 am__quote=
2797 _am_result=none
2798 # First try GNU make style include.
2799 echo "include confinc" > confmf
2800 # We grep out `Entering directory' and `Leaving directory'
2801 # messages which can occur if `w' ends up in MAKEFLAGS.
2802 # In particular we don't look at `^make:' because GNU make might
2803 # be invoked under some other name (usually "gmake"), in which
2804 # case it prints its new name instead of `make'.
2805 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2806 am__include=include
2807 am__quote=
2808 _am_result=GNU
2809 fi
2810 # Now try BSD make style include.
2811 if test "$am__include" = "#"; then
2812 echo '.include "confinc"' > confmf
2813 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2814 am__include=.include
2815 am__quote="\""
2816 _am_result=BSD
2817 fi
2818 fi
2821 { echo "$as_me:$LINENO: result: $_am_result" >&5
2822 echo "${ECHO_T}$_am_result" >&6; }
2823 rm -f confinc confmf
2825 # Check whether --enable-dependency-tracking was given.
2826 if test "${enable_dependency_tracking+set}" = set; then
2827 enableval=$enable_dependency_tracking;
2828 fi
2830 if test "x$enable_dependency_tracking" != xno; then
2831 am_depcomp="$ac_aux_dir/depcomp"
2832 AMDEPBACKSLASH='\'
2833 fi
2836 if test "x$enable_dependency_tracking" != xno; then
2837 AMDEP_TRUE=
2838 AMDEP_FALSE='#'
2839 else
2840 AMDEP_TRUE='#'
2841 AMDEP_FALSE=
2842 fi
2846 ac_ext=c
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 { echo "$as_me:$LINENO: result: $CC" >&5
2882 echo "${ECHO_T}$CC" >&6; }
2883 else
2884 { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2886 fi
2889 fi
2890 if test -z "$ac_cv_prog_CC"; then
2891 ac_ct_CC=$CC
2892 # Extract the first word of "gcc", so it can be a program name with args.
2893 set dummy gcc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CC="gcc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2917 fi
2918 fi
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2922 echo "${ECHO_T}$ac_ct_CC" >&6; }
2923 else
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2926 fi
2928 if test "x$ac_ct_CC" = x; then
2929 CC=""
2930 else
2931 case $cross_compiling:$ac_tool_warned in
2932 yes:)
2933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2934 whose name does not start with the host triplet. If you think this
2935 configuration is useful to you, please write to autoconf@gnu.org." >&5
2936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2937 whose name does not start with the host triplet. If you think this
2938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2939 ac_tool_warned=yes ;;
2940 esac
2941 CC=$ac_ct_CC
2942 fi
2943 else
2944 CC="$ac_cv_prog_CC"
2945 fi
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}cc; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}cc"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2980 else
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2983 fi
2986 fi
2987 fi
2988 if test -z "$CC"; then
2989 # Extract the first word of "cc", so it can be a program name with args.
2990 set dummy cc; ac_word=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 ac_prog_rejected=no
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3008 ac_prog_rejected=yes
3009 continue
3010 fi
3011 ac_cv_prog_CC="cc"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3019 if test $ac_prog_rejected = yes; then
3020 # We found a bogon in the path, so make sure we never use it.
3021 set dummy $ac_cv_prog_CC
3022 shift
3023 if test $# != 0; then
3024 # We chose a different compiler from the bogus one.
3025 # However, it has the same basename, so the bogon will be chosen
3026 # first if we set CC to just the basename; use the full file name.
3027 shift
3028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3029 fi
3030 fi
3031 fi
3032 fi
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035 { echo "$as_me:$LINENO: result: $CC" >&5
3036 echo "${ECHO_T}$CC" >&6; }
3037 else
3038 { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3040 fi
3043 fi
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 for ac_prog in cl.exe
3047 do
3048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077 { echo "$as_me:$LINENO: result: $CC" >&5
3078 echo "${ECHO_T}$CC" >&6; }
3079 else
3080 { echo "$as_me:$LINENO: result: no" >&5
3081 echo "${ECHO_T}no" >&6; }
3082 fi
3085 test -n "$CC" && break
3086 done
3087 fi
3088 if test -z "$CC"; then
3089 ac_ct_CC=$CC
3090 for ac_prog in cl.exe
3091 do
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_CC="$ac_prog"
3110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3117 fi
3118 fi
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3122 echo "${ECHO_T}$ac_ct_CC" >&6; }
3123 else
3124 { echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6; }
3126 fi
3129 test -n "$ac_ct_CC" && break
3130 done
3132 if test "x$ac_ct_CC" = x; then
3133 CC=""
3134 else
3135 case $cross_compiling:$ac_tool_warned in
3136 yes:)
3137 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3138 whose name does not start with the host triplet. If you think this
3139 configuration is useful to you, please write to autoconf@gnu.org." >&5
3140 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3141 whose name does not start with the host triplet. If you think this
3142 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3143 ac_tool_warned=yes ;;
3144 esac
3145 CC=$ac_ct_CC
3146 fi
3147 fi
3149 fi
3152 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: no acceptable C compiler found in \$PATH
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3158 # Provide some information about the compiler.
3159 echo "$as_me:$LINENO: checking for C compiler version" >&5
3160 ac_compiler=`set X $ac_compile; echo $2`
3161 { (ac_try="$ac_compiler --version >&5"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compiler --version >&5") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3171 { (ac_try="$ac_compiler -v >&5"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compiler -v >&5") 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }
3181 { (ac_try="$ac_compiler -V >&5"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compiler -V >&5") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3199 int
3200 main ()
3201 {
3203 ;
3204 return 0;
3205 }
3206 _ACEOF
3207 ac_clean_files_save=$ac_clean_files
3208 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3209 # Try to create an executable without -o first, disregard a.out.
3210 # It will help us diagnose broken compilers, and finding out an intuition
3211 # of exeext.
3212 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3213 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3214 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3215 #
3216 # List of possible output files, starting from the most likely.
3217 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3218 # only as a last resort. b.out is created by i960 compilers.
3219 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3220 #
3221 # The IRIX 6 linker writes into existing files which may not be
3222 # executable, retaining their permissions. Remove them first so a
3223 # subsequent execution test works.
3224 ac_rmfiles=
3225 for ac_file in $ac_files
3226 do
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3229 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3230 esac
3231 done
3232 rm -f $ac_rmfiles
3234 if { (ac_try="$ac_link_default"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_link_default") 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; then
3244 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3246 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3247 # so that the user can short-circuit this test for compilers unknown to
3248 # Autoconf.
3249 for ac_file in $ac_files ''
3250 do
3251 test -f "$ac_file" || continue
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3254 ;;
3255 [ab].out )
3256 # We found the default executable, but exeext='' is most
3257 # certainly right.
3258 break;;
3259 *.* )
3260 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3261 then :; else
3262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263 fi
3264 # We set ac_cv_exeext here because the later test for it is not
3265 # safe: cross compilers may not add the suffix if given an `-o'
3266 # argument, so we may need to know it at that point already.
3267 # Even if this section looks crufty: it has the advantage of
3268 # actually working.
3269 break;;
3270 * )
3271 break;;
3272 esac
3273 done
3274 test "$ac_cv_exeext" = no && ac_cv_exeext=
3276 else
3277 ac_file=''
3278 fi
3280 { echo "$as_me:$LINENO: result: $ac_file" >&5
3281 echo "${ECHO_T}$ac_file" >&6; }
3282 if test -z "$ac_file"; then
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: C compiler cannot create executables
3289 See \`config.log' for more details." >&2;}
3290 { (exit 77); exit 77; }; }
3291 fi
3293 ac_exeext=$ac_cv_exeext
3295 # Check that the compiler produces executables we can run. If not, either
3296 # the compiler is broken, or we cross compile.
3297 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3298 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3299 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3300 # If not cross compiling, check that we can run a simple program.
3301 if test "$cross_compiling" != yes; then
3302 if { ac_try='./$ac_file'
3303 { (case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_try") 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 cross_compiling=no
3313 else
3314 if test "$cross_compiling" = maybe; then
3315 cross_compiling=yes
3316 else
3317 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3318 If you meant to cross compile, use \`--host'.
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: cannot run C compiled programs.
3321 If you meant to cross compile, use \`--host'.
3322 See \`config.log' for more details." >&2;}
3323 { (exit 1); exit 1; }; }
3324 fi
3325 fi
3326 fi
3327 { echo "$as_me:$LINENO: result: yes" >&5
3328 echo "${ECHO_T}yes" >&6; }
3330 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3331 ac_clean_files=$ac_clean_files_save
3332 # Check that the compiler produces executables we can run. If not, either
3333 # the compiler is broken, or we cross compile.
3334 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3335 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3336 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3337 echo "${ECHO_T}$cross_compiling" >&6; }
3339 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3340 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3341 if { (ac_try="$ac_link"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_link") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; then
3351 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353 # work properly (i.e., refer to `conftest.exe'), while it won't with
3354 # `rm'.
3355 for ac_file in conftest.exe conftest conftest.*; do
3356 test -f "$ac_file" || continue
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3359 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 break;;
3361 * ) break;;
3362 esac
3363 done
3364 else
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }
3370 fi
3372 rm -f conftest$ac_cv_exeext
3373 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3374 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3376 rm -f conftest.$ac_ext
3377 EXEEXT=$ac_cv_exeext
3378 ac_exeext=$EXEEXT
3379 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3380 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3381 if test "${ac_cv_objext+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3391 int
3392 main ()
3393 {
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.o conftest.obj
3400 if { (ac_try="$ac_compile"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_compile") 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; then
3410 for ac_file in conftest.o conftest.obj conftest.*; do
3411 test -f "$ac_file" || continue;
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3415 break;;
3416 esac
3417 done
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3423 See \`config.log' for more details." >&5
3424 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3425 See \`config.log' for more details." >&2;}
3426 { (exit 1); exit 1; }; }
3427 fi
3429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3430 fi
3431 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3432 echo "${ECHO_T}$ac_cv_objext" >&6; }
3433 OBJEXT=$ac_cv_objext
3434 ac_objext=$OBJEXT
3435 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3447 int
3448 main ()
3449 {
3450 #ifndef __GNUC__
3451 choke me
3452 #endif
3454 ;
3455 return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (ac_try="$ac_compile"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_compile") 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } && {
3472 test -z "$ac_c_werror_flag" ||
3473 test ! -s conftest.err
3474 } && test -s conftest.$ac_objext; then
3475 ac_compiler_gnu=yes
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 ac_compiler_gnu=no
3481 fi
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3486 fi
3487 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3488 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3489 GCC=`test $ac_compiler_gnu = yes && echo yes`
3490 ac_test_CFLAGS=${CFLAGS+set}
3491 ac_save_CFLAGS=$CFLAGS
3492 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3493 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_cc_g+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497 ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3499 ac_cv_prog_cc_g=no
3500 CFLAGS="-g"
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3508 int
3509 main ()
3510 {
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 ac_cv_prog_cc_g=yes
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 CFLAGS=""
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3546 int
3547 main ()
3548 {
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 :
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3577 CFLAGS="-g"
3578 cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h. */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3585 int
3586 main ()
3587 {
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3610 ac_cv_prog_cc_g=yes
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3616 fi
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3626 fi
3627 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3628 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3629 if test "$ac_test_CFLAGS" = set; then
3630 CFLAGS=$ac_save_CFLAGS
3631 elif test $ac_cv_prog_cc_g = yes; then
3632 if test "$GCC" = yes; then
3633 CFLAGS="-g -O2"
3634 else
3635 CFLAGS="-g"
3636 fi
3637 else
3638 if test "$GCC" = yes; then
3639 CFLAGS="-O2"
3640 else
3641 CFLAGS=
3642 fi
3643 fi
3644 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3645 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3646 if test "${ac_cv_prog_cc_c89+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 ac_cv_prog_cc_c89=no
3650 ac_save_CC=$CC
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 #include <stdarg.h>
3658 #include <stdio.h>
3659 #include <sys/types.h>
3660 #include <sys/stat.h>
3661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3662 struct buf { int x; };
3663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664 static char *e (p, i)
3665 char **p;
3666 int i;
3667 {
3668 return p[i];
3669 }
3670 static char *f (char * (*g) (char **, int), char **p, ...)
3671 {
3672 char *s;
3673 va_list v;
3674 va_start (v,p);
3675 s = g (p, va_arg (v,int));
3676 va_end (v);
3677 return s;
3678 }
3680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3681 function prototypes and stuff, but not '\xHH' hex character constants.
3682 These don't provoke an error unfortunately, instead are silently treated
3683 as 'x'. The following induces an error, until -std is added to get
3684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3685 array size at least. It's necessary to write '\x00'==0 to get something
3686 that's true only with -std. */
3687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690 inside strings and character constants. */
3691 #define FOO(x) 'x'
3692 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694 int test (int i, double x);
3695 struct s1 {int (*f) (int a);};
3696 struct s2 {int (*f) (double a);};
3697 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 int argc;
3699 char **argv;
3700 int
3701 main ()
3702 {
3703 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 do
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3729 ac_cv_prog_cc_c89=$ac_arg
3730 else
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3735 fi
3737 rm -f core conftest.err conftest.$ac_objext
3738 test "x$ac_cv_prog_cc_c89" != "xno" && break
3739 done
3740 rm -f conftest.$ac_ext
3741 CC=$ac_save_CC
3743 fi
3744 # AC_CACHE_VAL
3745 case "x$ac_cv_prog_cc_c89" in
3746 x)
3747 { echo "$as_me:$LINENO: result: none needed" >&5
3748 echo "${ECHO_T}none needed" >&6; } ;;
3749 xno)
3750 { echo "$as_me:$LINENO: result: unsupported" >&5
3751 echo "${ECHO_T}unsupported" >&6; } ;;
3752 *)
3753 CC="$CC $ac_cv_prog_cc_c89"
3754 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3755 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3756 esac
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 depcc="$CC" am_compiler_list=
3767 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3768 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3769 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3773 # We make a subdir and do the tests there. Otherwise we can end up
3774 # making bogus files that we don't know about and never remove. For
3775 # instance it was reported that on HP-UX the gcc test will end up
3776 # making a dummy file named `D' -- because `-MD' means `put the output
3777 # in D'.
3778 mkdir conftest.dir
3779 # Copy depcomp to subdir because otherwise we won't find it if we're
3780 # using a relative directory.
3781 cp "$am_depcomp" conftest.dir
3782 cd conftest.dir
3783 # We will build objects and dependencies in a subdirectory because
3784 # it helps to detect inapplicable dependency modes. For instance
3785 # both Tru64's cc and ICC support -MD to output dependencies as a
3786 # side effect of compilation, but ICC will put the dependencies in
3787 # the current directory while Tru64 will put them in the object
3788 # directory.
3789 mkdir sub
3791 am_cv_CC_dependencies_compiler_type=none
3792 if test "$am_compiler_list" = ""; then
3793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3794 fi
3795 for depmode in $am_compiler_list; do
3796 # Setup a source with many dependencies, because some compilers
3797 # like to wrap large dependency lists on column 80 (with \), and
3798 # we should not choose a depcomp mode which is confused by this.
3799 #
3800 # We need to recreate these files for each test, as the compiler may
3801 # overwrite some of them when testing with obscure command lines.
3802 # This happens at least with the AIX C compiler.
3803 : > sub/conftest.c
3804 for i in 1 2 3 4 5 6; do
3805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3807 # Solaris 8's {/usr,}/bin/sh.
3808 touch sub/conftst$i.h
3809 done
3810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3812 case $depmode in
3813 nosideeffect)
3814 # after this tag, mechanisms are not by side-effect, so they'll
3815 # only be used when explicitly requested
3816 if test "x$enable_dependency_tracking" = xyes; then
3817 continue
3818 else
3819 break
3820 fi
3821 ;;
3822 none) break ;;
3823 esac
3824 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825 # mode. It turns out that the SunPro C++ compiler does not properly
3826 # handle `-M -o', and we need to detect this.
3827 if depmode=$depmode \
3828 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3831 >/dev/null 2>conftest.err &&
3832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835 # icc doesn't choke on unknown options, it will just issue warnings
3836 # or remarks (even with -Werror). So we grep stderr for any message
3837 # that says an option was ignored or not supported.
3838 # When given -MP, icc 7.0 and 7.1 complain thusly:
3839 # icc: Command line warning: ignoring option '-M'; no argument required
3840 # The diagnosis changed in icc 8.0:
3841 # icc: Command line remark: option '-MP' not supported
3842 if (grep 'ignoring option' conftest.err ||
3843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844 am_cv_CC_dependencies_compiler_type=$depmode
3845 break
3846 fi
3847 fi
3848 done
3850 cd ..
3851 rm -rf conftest.dir
3852 else
3853 am_cv_CC_dependencies_compiler_type=none
3854 fi
3856 fi
3857 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3858 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3863 if
3864 test "x$enable_dependency_tracking" != xno \
3865 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3866 am__fastdepCC_TRUE=
3867 am__fastdepCC_FALSE='#'
3868 else
3869 am__fastdepCC_TRUE='#'
3870 am__fastdepCC_FALSE=
3871 fi
3876 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3877 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3878 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 ac_check_lib_save_LIBS=$LIBS
3882 LIBS="-lcposix $LIBS"
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3890 /* Override any GCC internal prototype to avoid an error.
3891 Use char because int might match the return type of a GCC
3892 builtin and then its argument prototype would still apply. */
3893 #ifdef __cplusplus
3894 extern "C"
3895 #endif
3896 char strerror ();
3897 int
3898 main ()
3899 {
3900 return strerror ();
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (ac_try="$ac_link"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_link") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest$ac_exeext &&
3922 $as_test_x conftest$ac_exeext; then
3923 ac_cv_lib_cposix_strerror=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_lib_cposix_strerror=no
3929 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3932 conftest$ac_exeext conftest.$ac_ext
3933 LIBS=$ac_check_lib_save_LIBS
3934 fi
3935 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3936 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3937 if test $ac_cv_lib_cposix_strerror = yes; then
3938 LIBS="$LIBS -lcposix"
3939 fi
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3953 if test "${ac_cv_prog_CC+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970 done
3971 done
3972 IFS=$as_save_IFS
3974 fi
3975 fi
3976 CC=$ac_cv_prog_CC
3977 if test -n "$CC"; then
3978 { echo "$as_me:$LINENO: result: $CC" >&5
3979 echo "${ECHO_T}$CC" >&6; }
3980 else
3981 { echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6; }
3983 fi
3986 fi
3987 if test -z "$ac_cv_prog_CC"; then
3988 ac_ct_CC=$CC
3989 # Extract the first word of "gcc", so it can be a program name with args.
3990 set dummy gcc; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 if test -n "$ac_ct_CC"; then
3997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_ac_ct_CC="gcc"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010 done
4011 done
4012 IFS=$as_save_IFS
4014 fi
4015 fi
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4019 echo "${ECHO_T}$ac_ct_CC" >&6; }
4020 else
4021 { echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6; }
4023 fi
4025 if test "x$ac_ct_CC" = x; then
4026 CC=""
4027 else
4028 case $cross_compiling:$ac_tool_warned in
4029 yes:)
4030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4031 whose name does not start with the host triplet. If you think this
4032 configuration is useful to you, please write to autoconf@gnu.org." >&5
4033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4034 whose name does not start with the host triplet. If you think this
4035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4036 ac_tool_warned=yes ;;
4037 esac
4038 CC=$ac_ct_CC
4039 fi
4040 else
4041 CC="$ac_cv_prog_CC"
4042 fi
4044 if test -z "$CC"; then
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}cc; ac_word=$2
4048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4050 if test "${ac_cv_prog_CC+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_CC="${ac_tool_prefix}cc"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4066 fi
4067 done
4068 done
4069 IFS=$as_save_IFS
4071 fi
4072 fi
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075 { echo "$as_me:$LINENO: result: $CC" >&5
4076 echo "${ECHO_T}$CC" >&6; }
4077 else
4078 { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4080 fi
4083 fi
4084 fi
4085 if test -z "$CC"; then
4086 # Extract the first word of "cc", so it can be a program name with args.
4087 set dummy cc; ac_word=$2
4088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4090 if test "${ac_cv_prog_CC+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093 if test -n "$CC"; then
4094 ac_cv_prog_CC="$CC" # Let the user override the test.
4095 else
4096 ac_prog_rejected=no
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4105 ac_prog_rejected=yes
4106 continue
4107 fi
4108 ac_cv_prog_CC="cc"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4111 fi
4112 done
4113 done
4114 IFS=$as_save_IFS
4116 if test $ac_prog_rejected = yes; then
4117 # We found a bogon in the path, so make sure we never use it.
4118 set dummy $ac_cv_prog_CC
4119 shift
4120 if test $# != 0; then
4121 # We chose a different compiler from the bogus one.
4122 # However, it has the same basename, so the bogon will be chosen
4123 # first if we set CC to just the basename; use the full file name.
4124 shift
4125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4126 fi
4127 fi
4128 fi
4129 fi
4130 CC=$ac_cv_prog_CC
4131 if test -n "$CC"; then
4132 { echo "$as_me:$LINENO: result: $CC" >&5
4133 echo "${ECHO_T}$CC" >&6; }
4134 else
4135 { echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6; }
4137 fi
4140 fi
4141 if test -z "$CC"; then
4142 if test -n "$ac_tool_prefix"; then
4143 for ac_prog in cl.exe
4144 do
4145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4170 fi
4171 fi
4172 CC=$ac_cv_prog_CC
4173 if test -n "$CC"; then
4174 { echo "$as_me:$LINENO: result: $CC" >&5
4175 echo "${ECHO_T}$CC" >&6; }
4176 else
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4179 fi
4182 test -n "$CC" && break
4183 done
4184 fi
4185 if test -z "$CC"; then
4186 ac_ct_CC=$CC
4187 for ac_prog in cl.exe
4188 do
4189 # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 if test -n "$ac_ct_CC"; then
4197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_ac_ct_CC="$ac_prog"
4207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4209 fi
4210 done
4211 done
4212 IFS=$as_save_IFS
4214 fi
4215 fi
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4219 echo "${ECHO_T}$ac_ct_CC" >&6; }
4220 else
4221 { echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6; }
4223 fi
4226 test -n "$ac_ct_CC" && break
4227 done
4229 if test "x$ac_ct_CC" = x; then
4230 CC=""
4231 else
4232 case $cross_compiling:$ac_tool_warned in
4233 yes:)
4234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4235 whose name does not start with the host triplet. If you think this
4236 configuration is useful to you, please write to autoconf@gnu.org." >&5
4237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4238 whose name does not start with the host triplet. If you think this
4239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4240 ac_tool_warned=yes ;;
4241 esac
4242 CC=$ac_ct_CC
4243 fi
4244 fi
4246 fi
4249 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4250 See \`config.log' for more details." >&5
4251 echo "$as_me: error: no acceptable C compiler found in \$PATH
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4255 # Provide some information about the compiler.
4256 echo "$as_me:$LINENO: checking for C compiler version" >&5
4257 ac_compiler=`set X $ac_compile; echo $2`
4258 { (ac_try="$ac_compiler --version >&5"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compiler --version >&5") 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }
4268 { (ac_try="$ac_compiler -v >&5"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_compiler -v >&5") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }
4278 { (ac_try="$ac_compiler -V >&5"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_compiler -V >&5") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }
4289 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h. */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4301 int
4302 main ()
4303 {
4304 #ifndef __GNUC__
4305 choke me
4306 #endif
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 rm -f conftest.$ac_objext
4313 if { (ac_try="$ac_compile"
4314 case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_compile") 2>conftest.er1
4320 ac_status=$?
4321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && {
4326 test -z "$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4328 } && test -s conftest.$ac_objext; then
4329 ac_compiler_gnu=yes
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 ac_compiler_gnu=no
4335 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4340 fi
4341 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4342 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4343 GCC=`test $ac_compiler_gnu = yes && echo yes`
4344 ac_test_CFLAGS=${CFLAGS+set}
4345 ac_save_CFLAGS=$CFLAGS
4346 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4347 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4348 if test "${ac_cv_prog_cc_g+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 ac_save_c_werror_flag=$ac_c_werror_flag
4352 ac_c_werror_flag=yes
4353 ac_cv_prog_cc_g=no
4354 CFLAGS="-g"
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h. */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4362 int
4363 main ()
4364 {
4366 ;
4367 return 0;
4368 }
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (ac_try="$ac_compile"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_compile") 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } && {
4384 test -z "$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 } && test -s conftest.$ac_objext; then
4387 ac_cv_prog_cc_g=yes
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 CFLAGS=""
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4400 int
4401 main ()
4402 {
4404 ;
4405 return 0;
4406 }
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (ac_try="$ac_compile"
4410 case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413 esac
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_compile") 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4425 :
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4431 CFLAGS="-g"
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4439 int
4440 main ()
4441 {
4443 ;
4444 return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4449 case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_cv_prog_cc_g=yes
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4470 fi
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 fi
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 ac_c_werror_flag=$ac_save_c_werror_flag
4480 fi
4481 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4482 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4483 if test "$ac_test_CFLAGS" = set; then
4484 CFLAGS=$ac_save_CFLAGS
4485 elif test $ac_cv_prog_cc_g = yes; then
4486 if test "$GCC" = yes; then
4487 CFLAGS="-g -O2"
4488 else
4489 CFLAGS="-g"
4490 fi
4491 else
4492 if test "$GCC" = yes; then
4493 CFLAGS="-O2"
4494 else
4495 CFLAGS=
4496 fi
4497 fi
4498 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4499 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_cc_c89+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 ac_cv_prog_cc_c89=no
4504 ac_save_CC=$CC
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 #include <stdarg.h>
4512 #include <stdio.h>
4513 #include <sys/types.h>
4514 #include <sys/stat.h>
4515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4516 struct buf { int x; };
4517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4518 static char *e (p, i)
4519 char **p;
4520 int i;
4521 {
4522 return p[i];
4523 }
4524 static char *f (char * (*g) (char **, int), char **p, ...)
4525 {
4526 char *s;
4527 va_list v;
4528 va_start (v,p);
4529 s = g (p, va_arg (v,int));
4530 va_end (v);
4531 return s;
4532 }
4534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4535 function prototypes and stuff, but not '\xHH' hex character constants.
4536 These don't provoke an error unfortunately, instead are silently treated
4537 as 'x'. The following induces an error, until -std is added to get
4538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4539 array size at least. It's necessary to write '\x00'==0 to get something
4540 that's true only with -std. */
4541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4544 inside strings and character constants. */
4545 #define FOO(x) 'x'
4546 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4548 int test (int i, double x);
4549 struct s1 {int (*f) (int a);};
4550 struct s2 {int (*f) (double a);};
4551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4552 int argc;
4553 char **argv;
4554 int
4555 main ()
4556 {
4557 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4564 do
4565 CC="$ac_save_CC $ac_arg"
4566 rm -f conftest.$ac_objext
4567 if { (ac_try="$ac_compile"
4568 case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_c_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest.$ac_objext; then
4583 ac_cv_prog_cc_c89=$ac_arg
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4589 fi
4591 rm -f core conftest.err conftest.$ac_objext
4592 test "x$ac_cv_prog_cc_c89" != "xno" && break
4593 done
4594 rm -f conftest.$ac_ext
4595 CC=$ac_save_CC
4597 fi
4598 # AC_CACHE_VAL
4599 case "x$ac_cv_prog_cc_c89" in
4600 x)
4601 { echo "$as_me:$LINENO: result: none needed" >&5
4602 echo "${ECHO_T}none needed" >&6; } ;;
4603 xno)
4604 { echo "$as_me:$LINENO: result: unsupported" >&5
4605 echo "${ECHO_T}unsupported" >&6; } ;;
4606 *)
4607 CC="$CC $ac_cv_prog_cc_c89"
4608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4609 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4610 esac
4613 ac_ext=c
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 depcc="$CC" am_compiler_list=
4621 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4623 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627 # We make a subdir and do the tests there. Otherwise we can end up
4628 # making bogus files that we don't know about and never remove. For
4629 # instance it was reported that on HP-UX the gcc test will end up
4630 # making a dummy file named `D' -- because `-MD' means `put the output
4631 # in D'.
4632 mkdir conftest.dir
4633 # Copy depcomp to subdir because otherwise we won't find it if we're
4634 # using a relative directory.
4635 cp "$am_depcomp" conftest.dir
4636 cd conftest.dir
4637 # We will build objects and dependencies in a subdirectory because
4638 # it helps to detect inapplicable dependency modes. For instance
4639 # both Tru64's cc and ICC support -MD to output dependencies as a
4640 # side effect of compilation, but ICC will put the dependencies in
4641 # the current directory while Tru64 will put them in the object
4642 # directory.
4643 mkdir sub
4645 am_cv_CC_dependencies_compiler_type=none
4646 if test "$am_compiler_list" = ""; then
4647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4648 fi
4649 for depmode in $am_compiler_list; do
4650 # Setup a source with many dependencies, because some compilers
4651 # like to wrap large dependency lists on column 80 (with \), and
4652 # we should not choose a depcomp mode which is confused by this.
4653 #
4654 # We need to recreate these files for each test, as the compiler may
4655 # overwrite some of them when testing with obscure command lines.
4656 # This happens at least with the AIX C compiler.
4657 : > sub/conftest.c
4658 for i in 1 2 3 4 5 6; do
4659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4661 # Solaris 8's {/usr,}/bin/sh.
4662 touch sub/conftst$i.h
4663 done
4664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4666 case $depmode in
4667 nosideeffect)
4668 # after this tag, mechanisms are not by side-effect, so they'll
4669 # only be used when explicitly requested
4670 if test "x$enable_dependency_tracking" = xyes; then
4671 continue
4672 else
4673 break
4674 fi
4675 ;;
4676 none) break ;;
4677 esac
4678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4679 # mode. It turns out that the SunPro C++ compiler does not properly
4680 # handle `-M -o', and we need to detect this.
4681 if depmode=$depmode \
4682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4685 >/dev/null 2>conftest.err &&
4686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4689 # icc doesn't choke on unknown options, it will just issue warnings
4690 # or remarks (even with -Werror). So we grep stderr for any message
4691 # that says an option was ignored or not supported.
4692 # When given -MP, icc 7.0 and 7.1 complain thusly:
4693 # icc: Command line warning: ignoring option '-M'; no argument required
4694 # The diagnosis changed in icc 8.0:
4695 # icc: Command line remark: option '-MP' not supported
4696 if (grep 'ignoring option' conftest.err ||
4697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4698 am_cv_CC_dependencies_compiler_type=$depmode
4699 break
4700 fi
4701 fi
4702 done
4704 cd ..
4705 rm -rf conftest.dir
4706 else
4707 am_cv_CC_dependencies_compiler_type=none
4708 fi
4710 fi
4711 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4712 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4713 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4717 if
4718 test "x$enable_dependency_tracking" != xno \
4719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4720 am__fastdepCC_TRUE=
4721 am__fastdepCC_FALSE='#'
4722 else
4723 am__fastdepCC_TRUE='#'
4724 am__fastdepCC_FALSE=
4725 fi
4728 ac_ext=c
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 if test -n "$CC"; then
4742 ac_cv_prog_CC="$CC" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4759 fi
4760 fi
4761 CC=$ac_cv_prog_CC
4762 if test -n "$CC"; then
4763 { echo "$as_me:$LINENO: result: $CC" >&5
4764 echo "${ECHO_T}$CC" >&6; }
4765 else
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4768 fi
4771 fi
4772 if test -z "$ac_cv_prog_CC"; then
4773 ac_ct_CC=$CC
4774 # Extract the first word of "gcc", so it can be a program name with args.
4775 set dummy gcc; ac_word=$2
4776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 if test -n "$ac_ct_CC"; then
4782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_CC="gcc"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4799 fi
4800 fi
4801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4802 if test -n "$ac_ct_CC"; then
4803 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4804 echo "${ECHO_T}$ac_ct_CC" >&6; }
4805 else
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4808 fi
4810 if test "x$ac_ct_CC" = x; then
4811 CC=""
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4816 whose name does not start with the host triplet. If you think this
4817 configuration is useful to you, please write to autoconf@gnu.org." >&5
4818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4819 whose name does not start with the host triplet. If you think this
4820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4821 ac_tool_warned=yes ;;
4822 esac
4823 CC=$ac_ct_CC
4824 fi
4825 else
4826 CC="$ac_cv_prog_CC"
4827 fi
4829 if test -z "$CC"; then
4830 if test -n "$ac_tool_prefix"; then
4831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4832 set dummy ${ac_tool_prefix}cc; ac_word=$2
4833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4835 if test "${ac_cv_prog_CC+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 if test -n "$CC"; then
4839 ac_cv_prog_CC="$CC" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_CC="${ac_tool_prefix}cc"
4849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4851 fi
4852 done
4853 done
4854 IFS=$as_save_IFS
4856 fi
4857 fi
4858 CC=$ac_cv_prog_CC
4859 if test -n "$CC"; then
4860 { echo "$as_me:$LINENO: result: $CC" >&5
4861 echo "${ECHO_T}$CC" >&6; }
4862 else
4863 { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4865 fi
4868 fi
4869 fi
4870 if test -z "$CC"; then
4871 # Extract the first word of "cc", so it can be a program name with args.
4872 set dummy cc; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_prog_CC+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 if test -n "$CC"; then
4879 ac_cv_prog_CC="$CC" # Let the user override the test.
4880 else
4881 ac_prog_rejected=no
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4890 ac_prog_rejected=yes
4891 continue
4892 fi
4893 ac_cv_prog_CC="cc"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897 done
4898 done
4899 IFS=$as_save_IFS
4901 if test $ac_prog_rejected = yes; then
4902 # We found a bogon in the path, so make sure we never use it.
4903 set dummy $ac_cv_prog_CC
4904 shift
4905 if test $# != 0; then
4906 # We chose a different compiler from the bogus one.
4907 # However, it has the same basename, so the bogon will be chosen
4908 # first if we set CC to just the basename; use the full file name.
4909 shift
4910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4911 fi
4912 fi
4913 fi
4914 fi
4915 CC=$ac_cv_prog_CC
4916 if test -n "$CC"; then
4917 { echo "$as_me:$LINENO: result: $CC" >&5
4918 echo "${ECHO_T}$CC" >&6; }
4919 else
4920 { echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6; }
4922 fi
4925 fi
4926 if test -z "$CC"; then
4927 if test -n "$ac_tool_prefix"; then
4928 for ac_prog in cl.exe
4929 do
4930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_prog_CC+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 if test -n "$CC"; then
4938 ac_cv_prog_CC="$CC" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4950 fi
4951 done
4952 done
4953 IFS=$as_save_IFS
4955 fi
4956 fi
4957 CC=$ac_cv_prog_CC
4958 if test -n "$CC"; then
4959 { echo "$as_me:$LINENO: result: $CC" >&5
4960 echo "${ECHO_T}$CC" >&6; }
4961 else
4962 { echo "$as_me:$LINENO: result: no" >&5
4963 echo "${ECHO_T}no" >&6; }
4964 fi
4967 test -n "$CC" && break
4968 done
4969 fi
4970 if test -z "$CC"; then
4971 ac_ct_CC=$CC
4972 for ac_prog in cl.exe
4973 do
4974 # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 if test -n "$ac_ct_CC"; then
4982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_ac_ct_CC="$ac_prog"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4994 fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4999 fi
5000 fi
5001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5002 if test -n "$ac_ct_CC"; then
5003 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5004 echo "${ECHO_T}$ac_ct_CC" >&6; }
5005 else
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5008 fi
5011 test -n "$ac_ct_CC" && break
5012 done
5014 if test "x$ac_ct_CC" = x; then
5015 CC=""
5016 else
5017 case $cross_compiling:$ac_tool_warned in
5018 yes:)
5019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5020 whose name does not start with the host triplet. If you think this
5021 configuration is useful to you, please write to autoconf@gnu.org." >&5
5022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet. If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5025 ac_tool_warned=yes ;;
5026 esac
5027 CC=$ac_ct_CC
5028 fi
5029 fi
5031 fi
5034 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5035 See \`config.log' for more details." >&5
5036 echo "$as_me: error: no acceptable C compiler found in \$PATH
5037 See \`config.log' for more details." >&2;}
5038 { (exit 1); exit 1; }; }
5040 # Provide some information about the compiler.
5041 echo "$as_me:$LINENO: checking for C compiler version" >&5
5042 ac_compiler=`set X $ac_compile; echo $2`
5043 { (ac_try="$ac_compiler --version >&5"
5044 case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047 esac
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compiler --version >&5") 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }
5053 { (ac_try="$ac_compiler -v >&5"
5054 case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_compiler -v >&5") 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }
5063 { (ac_try="$ac_compiler -V >&5"
5064 case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067 esac
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_compiler -V >&5") 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5074 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5086 int
5087 main ()
5088 {
5089 #ifndef __GNUC__
5090 choke me
5091 #endif
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5114 ac_compiler_gnu=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 ac_compiler_gnu=no
5120 fi
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5125 fi
5126 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5128 GCC=`test $ac_compiler_gnu = yes && echo yes`
5129 ac_test_CFLAGS=${CFLAGS+set}
5130 ac_save_CFLAGS=$CFLAGS
5131 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5133 if test "${ac_cv_prog_cc_g+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 ac_save_c_werror_flag=$ac_c_werror_flag
5137 ac_c_werror_flag=yes
5138 ac_cv_prog_cc_g=no
5139 CFLAGS="-g"
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5147 int
5148 main ()
5149 {
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (ac_try="$ac_compile"
5157 case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5160 esac
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_compile") 2>conftest.er1
5163 ac_status=$?
5164 grep -v '^ *+' conftest.er1 >conftest.err
5165 rm -f conftest.er1
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && {
5169 test -z "$ac_c_werror_flag" ||
5170 test ! -s conftest.err
5171 } && test -s conftest.$ac_objext; then
5172 ac_cv_prog_cc_g=yes
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 CFLAGS=""
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5185 int
5186 main ()
5187 {
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
5210 :
5211 else
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_c_werror_flag=$ac_save_c_werror_flag
5216 CFLAGS="-g"
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5224 int
5225 main ()
5226 {
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (ac_try="$ac_compile"
5234 case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237 esac
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_compile") 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && {
5246 test -z "$ac_c_werror_flag" ||
5247 test ! -s conftest.err
5248 } && test -s conftest.$ac_objext; then
5249 ac_cv_prog_cc_g=yes
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5255 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 fi
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_c_werror_flag=$ac_save_c_werror_flag
5265 fi
5266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5268 if test "$ac_test_CFLAGS" = set; then
5269 CFLAGS=$ac_save_CFLAGS
5270 elif test $ac_cv_prog_cc_g = yes; then
5271 if test "$GCC" = yes; then
5272 CFLAGS="-g -O2"
5273 else
5274 CFLAGS="-g"
5275 fi
5276 else
5277 if test "$GCC" = yes; then
5278 CFLAGS="-O2"
5279 else
5280 CFLAGS=
5281 fi
5282 fi
5283 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5284 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5285 if test "${ac_cv_prog_cc_c89+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 ac_cv_prog_cc_c89=no
5289 ac_save_CC=$CC
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 #include <stdarg.h>
5297 #include <stdio.h>
5298 #include <sys/types.h>
5299 #include <sys/stat.h>
5300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5301 struct buf { int x; };
5302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5303 static char *e (p, i)
5304 char **p;
5305 int i;
5306 {
5307 return p[i];
5308 }
5309 static char *f (char * (*g) (char **, int), char **p, ...)
5310 {
5311 char *s;
5312 va_list v;
5313 va_start (v,p);
5314 s = g (p, va_arg (v,int));
5315 va_end (v);
5316 return s;
5317 }
5319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5320 function prototypes and stuff, but not '\xHH' hex character constants.
5321 These don't provoke an error unfortunately, instead are silently treated
5322 as 'x'. The following induces an error, until -std is added to get
5323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5324 array size at least. It's necessary to write '\x00'==0 to get something
5325 that's true only with -std. */
5326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5329 inside strings and character constants. */
5330 #define FOO(x) 'x'
5331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5333 int test (int i, double x);
5334 struct s1 {int (*f) (int a);};
5335 struct s2 {int (*f) (double a);};
5336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5337 int argc;
5338 char **argv;
5339 int
5340 main ()
5341 {
5342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5349 do
5350 CC="$ac_save_CC $ac_arg"
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5353 case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5368 ac_cv_prog_cc_c89=$ac_arg
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5374 fi
5376 rm -f core conftest.err conftest.$ac_objext
5377 test "x$ac_cv_prog_cc_c89" != "xno" && break
5378 done
5379 rm -f conftest.$ac_ext
5380 CC=$ac_save_CC
5382 fi
5383 # AC_CACHE_VAL
5384 case "x$ac_cv_prog_cc_c89" in
5385 x)
5386 { echo "$as_me:$LINENO: result: none needed" >&5
5387 echo "${ECHO_T}none needed" >&6; } ;;
5388 xno)
5389 { echo "$as_me:$LINENO: result: unsupported" >&5
5390 echo "${ECHO_T}unsupported" >&6; } ;;
5391 *)
5392 CC="$CC $ac_cv_prog_cc_c89"
5393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5394 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5395 esac
5398 ac_ext=c
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 depcc="$CC" am_compiler_list=
5406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5412 # We make a subdir and do the tests there. Otherwise we can end up
5413 # making bogus files that we don't know about and never remove. For
5414 # instance it was reported that on HP-UX the gcc test will end up
5415 # making a dummy file named `D' -- because `-MD' means `put the output
5416 # in D'.
5417 mkdir conftest.dir
5418 # Copy depcomp to subdir because otherwise we won't find it if we're
5419 # using a relative directory.
5420 cp "$am_depcomp" conftest.dir
5421 cd conftest.dir
5422 # We will build objects and dependencies in a subdirectory because
5423 # it helps to detect inapplicable dependency modes. For instance
5424 # both Tru64's cc and ICC support -MD to output dependencies as a
5425 # side effect of compilation, but ICC will put the dependencies in
5426 # the current directory while Tru64 will put them in the object
5427 # directory.
5428 mkdir sub
5430 am_cv_CC_dependencies_compiler_type=none
5431 if test "$am_compiler_list" = ""; then
5432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5433 fi
5434 for depmode in $am_compiler_list; do
5435 # Setup a source with many dependencies, because some compilers
5436 # like to wrap large dependency lists on column 80 (with \), and
5437 # we should not choose a depcomp mode which is confused by this.
5438 #
5439 # We need to recreate these files for each test, as the compiler may
5440 # overwrite some of them when testing with obscure command lines.
5441 # This happens at least with the AIX C compiler.
5442 : > sub/conftest.c
5443 for i in 1 2 3 4 5 6; do
5444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5446 # Solaris 8's {/usr,}/bin/sh.
5447 touch sub/conftst$i.h
5448 done
5449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5451 case $depmode in
5452 nosideeffect)
5453 # after this tag, mechanisms are not by side-effect, so they'll
5454 # only be used when explicitly requested
5455 if test "x$enable_dependency_tracking" = xyes; then
5456 continue
5457 else
5458 break
5459 fi
5460 ;;
5461 none) break ;;
5462 esac
5463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5464 # mode. It turns out that the SunPro C++ compiler does not properly
5465 # handle `-M -o', and we need to detect this.
5466 if depmode=$depmode \
5467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5470 >/dev/null 2>conftest.err &&
5471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5474 # icc doesn't choke on unknown options, it will just issue warnings
5475 # or remarks (even with -Werror). So we grep stderr for any message
5476 # that says an option was ignored or not supported.
5477 # When given -MP, icc 7.0 and 7.1 complain thusly:
5478 # icc: Command line warning: ignoring option '-M'; no argument required
5479 # The diagnosis changed in icc 8.0:
5480 # icc: Command line remark: option '-MP' not supported
5481 if (grep 'ignoring option' conftest.err ||
5482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5483 am_cv_CC_dependencies_compiler_type=$depmode
5484 break
5485 fi
5486 fi
5487 done
5489 cd ..
5490 rm -rf conftest.dir
5491 else
5492 am_cv_CC_dependencies_compiler_type=none
5493 fi
5495 fi
5496 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5502 if
5503 test "x$enable_dependency_tracking" != xno \
5504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5505 am__fastdepCC_TRUE=
5506 am__fastdepCC_FALSE='#'
5507 else
5508 am__fastdepCC_TRUE='#'
5509 am__fastdepCC_FALSE=
5510 fi
5514 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5516 ac_ext=c
5517 ac_cpp='$CPP $CPPFLAGS'
5518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5522 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5523 # On Suns, sometimes $CPP names a directory.
5524 if test -n "$CPP" && test -d "$CPP"; then
5525 CPP=
5526 fi
5527 if test -z "$CPP"; then
5528 if test "${ac_cv_prog_CPP+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531 # Double quotes because CPP needs to be expanded
5532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5533 do
5534 ac_preproc_ok=false
5535 for ac_c_preproc_warn_flag in '' yes
5536 do
5537 # Use a header file that comes with gcc, so configuring glibc
5538 # with a fresh cross-compiler works.
5539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5540 # <limits.h> exists even on freestanding compilers.
5541 # On the NeXT, cc -E runs the code through the compiler's parser,
5542 # not just through cpp. "Syntax error" is here to catch this case.
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h. */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 #ifdef __STDC__
5550 # include <limits.h>
5551 #else
5552 # include <assert.h>
5553 #endif
5554 Syntax error
5555 _ACEOF
5556 if { (ac_try="$ac_cpp conftest.$ac_ext"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } >/dev/null && {
5569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 }; then
5572 :
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 # Broken: fails on valid input.
5578 continue
5579 fi
5581 rm -f conftest.err conftest.$ac_ext
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
5585 cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h. */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #include <ac_nonexistent.h>
5592 _ACEOF
5593 if { (ac_try="$ac_cpp conftest.$ac_ext"
5594 case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } >/dev/null && {
5606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 }; then
5609 # Broken: success on invalid input.
5610 continue
5611 else
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 # Passes both tests.
5616 ac_preproc_ok=:
5617 break
5618 fi
5620 rm -f conftest.err conftest.$ac_ext
5622 done
5623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624 rm -f conftest.err conftest.$ac_ext
5625 if $ac_preproc_ok; then
5626 break
5627 fi
5629 done
5630 ac_cv_prog_CPP=$CPP
5632 fi
5633 CPP=$ac_cv_prog_CPP
5634 else
5635 ac_cv_prog_CPP=$CPP
5636 fi
5637 { echo "$as_me:$LINENO: result: $CPP" >&5
5638 echo "${ECHO_T}$CPP" >&6; }
5639 ac_preproc_ok=false
5640 for ac_c_preproc_warn_flag in '' yes
5641 do
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #ifdef __STDC__
5655 # include <limits.h>
5656 #else
5657 # include <assert.h>
5658 #endif
5659 Syntax error
5660 _ACEOF
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 }; then
5677 :
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 # Broken: fails on valid input.
5683 continue
5684 fi
5686 rm -f conftest.err conftest.$ac_ext
5688 # OK, works on sane cases. Now check whether nonexistent headers
5689 # can be detected and how.
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <ac_nonexistent.h>
5697 _ACEOF
5698 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null && {
5711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 }; then
5714 # Broken: success on invalid input.
5715 continue
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 # Passes both tests.
5721 ac_preproc_ok=:
5722 break
5723 fi
5725 rm -f conftest.err conftest.$ac_ext
5727 done
5728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5729 rm -f conftest.err conftest.$ac_ext
5730 if $ac_preproc_ok; then
5731 :
5732 else
5733 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5734 See \`config.log' for more details." >&5
5735 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5736 See \`config.log' for more details." >&2;}
5737 { (exit 1); exit 1; }; }
5738 fi
5740 ac_ext=c
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747 ac_main_cc="$CC"
5748 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5750 if test -z "$CC_FOR_BUILD"; then
5751 if test "$#" = yes; then
5752 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5753 See \`config.log' for more details." >&5
5754 echo "$as_me: error: cannot run test program while cross compiling
5755 See \`config.log' for more details." >&2;}
5756 { (exit 1); exit 1; }; }
5757 else
5758 cat >conftest.$ac_ext <<_ACEOF
5759 int main(){return 0;}
5760 _ACEOF
5761 rm -f conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5763 case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 CC_FOR_BUILD="$CC"
5782 else
5783 echo "$as_me: program exited with status $ac_status" >&5
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 fi
5788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5789 fi
5792 fi
5795 ac_ext=c
5796 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5797 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5798 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5800 if test -n "$ac_build_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5802 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 if test -n "$CC_FOR_BUILD"; then
5809 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5826 fi
5827 fi
5828 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5829 if test -n "$CC_FOR_BUILD"; then
5830 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5831 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5832 else
5833 { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5835 fi
5838 fi
5839 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5840 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5841 # Extract the first word of "gcc", so it can be a program name with args.
5842 set dummy gcc; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 if test -n "$ac_ct_CC_FOR_BUILD"; then
5849 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5866 fi
5867 fi
5868 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5869 if test -n "$ac_ct_CC_FOR_BUILD"; then
5870 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5871 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5872 else
5873 { echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6; }
5875 fi
5877 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5878 CC_FOR_BUILD=""
5879 else
5880 case $#:$ac_tool_warned in
5881 yes:)
5882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5883 whose name does not start with the build triplet. If you think this
5884 configuration is useful to you, please write to autoconf@gnu.org." >&5
5885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the build triplet. If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5888 ac_tool_warned=yes ;;
5889 esac
5890 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5891 fi
5892 else
5893 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5894 fi
5896 if test -z "$CC_FOR_BUILD"; then
5897 if test -n "$ac_build_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5899 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 if test -n "$CC_FOR_BUILD"; then
5906 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5923 fi
5924 fi
5925 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5926 if test -n "$CC_FOR_BUILD"; then
5927 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5928 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5929 else
5930 { echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6; }
5932 fi
5935 fi
5936 fi
5937 if test -z "$CC_FOR_BUILD"; then
5938 # Extract the first word of "cc", so it can be a program name with args.
5939 set dummy cc; ac_word=$2
5940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5942 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 if test -n "$CC_FOR_BUILD"; then
5946 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5947 else
5948 ac_prog_rejected=no
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5957 ac_prog_rejected=yes
5958 continue
5959 fi
5960 ac_cv_prog_CC_FOR_BUILD="cc"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5968 if test $ac_prog_rejected = yes; then
5969 # We found a bogon in the path, so make sure we never use it.
5970 set dummy $ac_cv_prog_CC_FOR_BUILD
5971 shift
5972 if test $# != 0; then
5973 # We chose a different compiler from the bogus one.
5974 # However, it has the same basename, so the bogon will be chosen
5975 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5976 shift
5977 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5978 fi
5979 fi
5980 fi
5981 fi
5982 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5983 if test -n "$CC_FOR_BUILD"; then
5984 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5985 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5986 else
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5989 fi
5992 fi
5993 if test -z "$CC_FOR_BUILD"; then
5994 if test -n "$ac_build_tool_prefix"; then
5995 for ac_prog in cl.exe
5996 do
5997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5998 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004 if test -n "$CC_FOR_BUILD"; then
6005 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6017 fi
6018 done
6019 done
6020 IFS=$as_save_IFS
6022 fi
6023 fi
6024 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6025 if test -n "$CC_FOR_BUILD"; then
6026 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
6027 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
6028 else
6029 { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6031 fi
6034 test -n "$CC_FOR_BUILD" && break
6035 done
6036 fi
6037 if test -z "$CC_FOR_BUILD"; then
6038 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6039 for ac_prog in cl.exe
6040 do
6041 # Extract the first word of "$ac_prog", so it can be a program name with args.
6042 set dummy $ac_prog; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 if test -n "$ac_ct_CC_FOR_BUILD"; then
6049 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6066 fi
6067 fi
6068 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6069 if test -n "$ac_ct_CC_FOR_BUILD"; then
6070 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
6071 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
6072 else
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6075 fi
6078 test -n "$ac_ct_CC_FOR_BUILD" && break
6079 done
6081 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6082 CC_FOR_BUILD=""
6083 else
6084 case $#:$ac_tool_warned in
6085 yes:)
6086 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6087 whose name does not start with the build triplet. If you think this
6088 configuration is useful to you, please write to autoconf@gnu.org." >&5
6089 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6090 whose name does not start with the build triplet. If you think this
6091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6095 fi
6096 fi
6098 fi
6101 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6102 See \`config.log' for more details." >&5
6103 echo "$as_me: error: no acceptable C compiler found in \$PATH
6104 See \`config.log' for more details." >&2;}
6105 { (exit 1); exit 1; }; }
6107 # Provide some information about the compiler.
6108 echo "$as_me:$LINENO: checking for C compiler version" >&5
6109 ac_compiler=`set X $ac_build_compile; echo $2`
6110 { (ac_try="$ac_compiler --version >&5"
6111 case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compiler --version >&5") 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6120 { (ac_try="$ac_compiler -v >&5"
6121 case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compiler -v >&5") 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }
6130 { (ac_try="$ac_compiler -V >&5"
6131 case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compiler -V >&5") 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }
6141 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6153 int
6154 main ()
6155 {
6156 #ifndef __GNUC__
6157 choke me
6158 #endif
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_build_objext
6165 if { (ac_try="$ac_build_compile"
6166 case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_build_compile") 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_build_objext; then
6181 ac_build_compiler_gnu=yes
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_build_compiler_gnu=no
6187 fi
6189 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6190 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
6192 fi
6193 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6195 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
6196 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
6197 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6198 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
6199 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
6200 if test "${ac_cv_build_prog_cc_g+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 ac_save_c_werror_flag=$ac_c_werror_flag
6204 ac_c_werror_flag=yes
6205 ac_cv_build_prog_cc_g=no
6206 CFLAGS_FOR_BUILD="-g"
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6214 int
6215 main ()
6216 {
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_build_objext
6223 if { (ac_try="$ac_build_compile"
6224 case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227 esac
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_build_compile") 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && {
6236 test -z "$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 } && test -s conftest.$ac_build_objext; then
6239 ac_cv_build_prog_cc_g=yes
6240 else
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6244 CFLAGS_FOR_BUILD=""
6245 cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6252 int
6253 main ()
6254 {
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 rm -f conftest.$ac_build_objext
6261 if { (ac_try="$ac_build_compile"
6262 case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_build_compile") 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_build_objext; then
6277 :
6278 else
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 ac_c_werror_flag=$ac_save_c_werror_flag
6283 CFLAGS_FOR_BUILD="-g"
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6291 int
6292 main ()
6293 {
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_build_objext
6300 if { (ac_try="$ac_build_compile"
6301 case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_build_compile") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_build_objext; then
6316 ac_cv_build_prog_cc_g=yes
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6322 fi
6324 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6325 fi
6327 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6328 fi
6330 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6331 ac_c_werror_flag=$ac_save_c_werror_flag
6332 fi
6333 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6334 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6335 if test "$ac_test_CFLAGS" = set; then
6336 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6337 elif test $ac_cv_build_prog_cc_g = yes; then
6338 if test "$GCC" = yes; then
6339 CFLAGS_FOR_BUILD="-g -O2"
6340 else
6341 CFLAGS_FOR_BUILD="-g"
6342 fi
6343 else
6344 if test "$GCC" = yes; then
6345 CFLAGS_FOR_BUILD="-O2"
6346 else
6347 CFLAGS_FOR_BUILD=
6348 fi
6349 fi
6350 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6351 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6352 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 ac_cv_build_prog_cc_stdc=no
6356 ac_save_CC=$CC_FOR_BUILD
6357 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 #include <stdarg.h>
6364 #include <stdio.h>
6365 #include <sys/types.h>
6366 #include <sys/stat.h>
6367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6368 struct buf { int x; };
6369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6370 static char *e (p, i)
6371 char **p;
6372 int i;
6373 {
6374 return p[i];
6375 }
6376 static char *f (char * (*g) (char **, int), char **p, ...)
6377 {
6378 char *s;
6379 va_list v;
6380 va_start (v,p);
6381 s = g (p, va_arg (v,int));
6382 va_end (v);
6383 return s;
6384 }
6386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6387 function prototypes and stuff, but not '\xHH' hex character constants.
6388 These don't provoke an error unfortunately, instead are silently treated
6389 as 'x'. The following induces an error, until -std is added to get
6390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6391 array size at least. It's necessary to write '\x00'==0 to get something
6392 that's true only with -std. */
6393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6396 inside strings and character constants. */
6397 #define FOO(x) 'x'
6398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6400 int test (int i, double x);
6401 struct s1 {int (*f) (int a);};
6402 struct s2 {int (*f) (double a);};
6403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6404 int argc;
6405 char **argv;
6406 int
6407 main ()
6408 {
6409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6416 do
6417 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6418 rm -f conftest.$ac_build_objext
6419 if { (ac_try="$ac_build_compile"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_build_compile") 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest.$ac_build_objext; then
6435 ac_cv_build_prog_cc_stdc=$ac_arg
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6441 fi
6443 rm -f core conftest.err conftest.$ac_build_objext
6444 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6445 done
6446 rm -f conftest.$ac_ext
6447 CC_FOR_BUILD=$ac_save_CC
6449 fi
6450 # AC_CACHE_VAL
6451 case "x$ac_cv_build_prog_cc_stdc" in
6452 x)
6453 { echo "$as_me:$LINENO: result: none needed" >&5
6454 echo "${ECHO_T}none needed" >&6; } ;;
6455 xno)
6456 { echo "$as_me:$LINENO: result: unsupported" >&5
6457 echo "${ECHO_T}unsupported" >&6; } ;;
6458 *)
6459 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6460 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6461 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6462 esac
6465 ac_ext=c
6466 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6467 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6468 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6471 depcc="$CC_FOR_BUILD" am_compiler_list=
6473 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6474 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6475 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6479 # We make a subdir and do the tests there. Otherwise we can end up
6480 # making bogus files that we don't know about and never remove. For
6481 # instance it was reported that on HP-UX the gcc test will end up
6482 # making a dummy file named `D' -- because `-MD' means `put the output
6483 # in D'.
6484 mkdir conftest.dir
6485 # Copy depcomp to subdir because otherwise we won't find it if we're
6486 # using a relative directory.
6487 cp "$am_depcomp" conftest.dir
6488 cd conftest.dir
6489 # We will build objects and dependencies in a subdirectory because
6490 # it helps to detect inapplicable dependency modes. For instance
6491 # both Tru64's cc and ICC support -MD to output dependencies as a
6492 # side effect of compilation, but ICC will put the dependencies in
6493 # the current directory while Tru64 will put them in the object
6494 # directory.
6495 mkdir sub
6497 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6498 if test "$am_compiler_list" = ""; then
6499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6500 fi
6501 for depmode in $am_compiler_list; do
6502 # Setup a source with many dependencies, because some compilers
6503 # like to wrap large dependency lists on column 80 (with \), and
6504 # we should not choose a depcomp mode which is confused by this.
6505 #
6506 # We need to recreate these files for each test, as the compiler may
6507 # overwrite some of them when testing with obscure command lines.
6508 # This happens at least with the AIX C compiler.
6509 : > sub/conftest.c
6510 for i in 1 2 3 4 5 6; do
6511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6513 # Solaris 8's {/usr,}/bin/sh.
6514 touch sub/conftst$i.h
6515 done
6516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6518 case $depmode in
6519 nosideeffect)
6520 # after this tag, mechanisms are not by side-effect, so they'll
6521 # only be used when explicitly requested
6522 if test "x$enable_dependency_tracking" = xyes; then
6523 continue
6524 else
6525 break
6526 fi
6527 ;;
6528 none) break ;;
6529 esac
6530 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6531 # mode. It turns out that the SunPro C++ compiler does not properly
6532 # handle `-M -o', and we need to detect this.
6533 if depmode=$depmode \
6534 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6536 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6537 >/dev/null 2>conftest.err &&
6538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6539 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6541 # icc doesn't choke on unknown options, it will just issue warnings
6542 # or remarks (even with -Werror). So we grep stderr for any message
6543 # that says an option was ignored or not supported.
6544 # When given -MP, icc 7.0 and 7.1 complain thusly:
6545 # icc: Command line warning: ignoring option '-M'; no argument required
6546 # The diagnosis changed in icc 8.0:
6547 # icc: Command line remark: option '-MP' not supported
6548 if (grep 'ignoring option' conftest.err ||
6549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6550 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6551 break
6552 fi
6553 fi
6554 done
6556 cd ..
6557 rm -rf conftest.dir
6558 else
6559 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6560 fi
6562 fi
6563 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6564 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6565 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6569 if
6570 test "x$enable_dependency_tracking" != xno \
6571 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6572 am__fastdepCC_FOR_BUILD_TRUE=
6573 am__fastdepCC_FOR_BUILD_FALSE='#'
6574 else
6575 am__fastdepCC_FOR_BUILD_TRUE='#'
6576 am__fastdepCC_FOR_BUILD_FALSE=
6577 fi
6580 case $ac_cv_build_prog_cc_stdc in
6581 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6582 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6583 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6584 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 ac_cv_build_prog_cc_stdc=no
6588 ac_save_CC=$CC_FOR_BUILD
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 #include <stdarg.h>
6596 #include <stdbool.h>
6597 #include <stdlib.h>
6598 #include <wchar.h>
6599 #include <stdio.h>
6601 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6602 #define debug(...) fprintf (stderr, __VA_ARGS__)
6603 #define showlist(...) puts (#__VA_ARGS__)
6604 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6605 static void
6606 test_varargs_macros (void)
6607 {
6608 int x = 1234;
6609 int y = 5678;
6610 debug ("Flag");
6611 debug ("X = %d\n", x);
6612 showlist (The first, second, and third items.);
6613 report (x>y, "x is %d but y is %d", x, y);
6614 }
6616 // Check long long types.
6617 #define BIG64 18446744073709551615ull
6618 #define BIG32 4294967295ul
6619 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6620 #if !BIG_OK
6621 your preprocessor is broken;
6622 #endif
6623 #if BIG_OK
6624 #else
6625 your preprocessor is broken;
6626 #endif
6627 static long long int bignum = -9223372036854775807LL;
6628 static unsigned long long int ubignum = BIG64;
6630 struct incomplete_array
6631 {
6632 int datasize;
6633 double data[];
6634 };
6636 struct named_init {
6637 int number;
6638 const wchar_t *name;
6639 double average;
6640 };
6642 typedef const char *ccp;
6644 static inline int
6645 test_restrict (ccp restrict text)
6646 {
6647 // See if C++-style comments work.
6648 // Iterate through items via the restricted pointer.
6649 // Also check for declarations in for loops.
6650 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6651 continue;
6652 return 0;
6653 }
6655 // Check varargs and va_copy.
6656 static void
6657 test_varargs (const char *format, ...)
6658 {
6659 va_list args;
6660 va_start (args, format);
6661 va_list args_copy;
6662 va_copy (args_copy, args);
6664 const char *str;
6665 int number;
6666 float fnumber;
6668 while (*format)
6669 {
6670 switch (*format++)
6671 {
6672 case 's': // string
6673 str = va_arg (args_copy, const char *);
6674 break;
6675 case 'd': // int
6676 number = va_arg (args_copy, int);
6677 break;
6678 case 'f': // float
6679 fnumber = va_arg (args_copy, double);
6680 break;
6681 default:
6682 break;
6683 }
6684 }
6685 va_end (args_copy);
6686 va_end (args);
6687 }
6689 int
6690 main ()
6691 {
6693 // Check bool.
6694 _Bool success = false;
6696 // Check restrict.
6697 if (test_restrict ("String literal") == 0)
6698 success = true;
6699 char *restrict newvar = "Another string";
6701 // Check varargs.
6702 test_varargs ("s, d' f .", "string", 65, 34.234);
6703 test_varargs_macros ();
6705 // Check flexible array members.
6706 struct incomplete_array *ia =
6707 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6708 ia->datasize = 10;
6709 for (int i = 0; i < ia->datasize; ++i)
6710 ia->data[i] = i * 1.234;
6712 // Check named initializers.
6713 struct named_init ni = {
6714 .number = 34,
6715 .name = L"Test wide string",
6716 .average = 543.34343,
6717 };
6719 ni.number = 58;
6721 int dynamic_array[ni.number];
6722 dynamic_array[ni.number - 1] = 543;
6724 // work around unused variable warnings
6725 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6726 || dynamic_array[ni.number - 1] != 543);
6728 ;
6729 return 0;
6730 }
6731 _ACEOF
6732 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6733 do
6734 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6735 rm -f conftest.$ac_build_objext
6736 if { (ac_try="$ac_build_compile"
6737 case "(($ac_try" in
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6740 esac
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_build_compile") 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } && {
6749 test -z "$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 } && test -s conftest.$ac_build_objext; then
6752 ac_cv_build_prog_cc_stdc=$ac_arg
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6758 fi
6760 rm -f core conftest.err conftest.$ac_build_objext
6761 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6762 done
6763 rm -f conftest.$ac_ext
6764 CC_FOR_BUILD=$ac_save_CC
6766 fi
6767 # AC_CACHE_VAL
6768 case "x$ac_cv_build_prog_cc_stdc" in
6769 x)
6770 { echo "$as_me:$LINENO: result: none needed" >&5
6771 echo "${ECHO_T}none needed" >&6; } ;;
6772 xno)
6773 { echo "$as_me:$LINENO: result: unsupported" >&5
6774 echo "${ECHO_T}unsupported" >&6; } ;;
6775 *)
6776 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6777 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6778 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6779 esac
6780 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6781 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6782 else
6783 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6784 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6785 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 ac_cv_build_prog_cc_stdc=no
6789 ac_save_CC=$CC_FOR_BUILD
6790 cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <stdarg.h>
6797 #include <stdio.h>
6798 #include <sys/types.h>
6799 #include <sys/stat.h>
6800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6801 struct buf { int x; };
6802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6803 static char *e (p, i)
6804 char **p;
6805 int i;
6806 {
6807 return p[i];
6808 }
6809 static char *f (char * (*g) (char **, int), char **p, ...)
6810 {
6811 char *s;
6812 va_list v;
6813 va_start (v,p);
6814 s = g (p, va_arg (v,int));
6815 va_end (v);
6816 return s;
6817 }
6819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6820 function prototypes and stuff, but not '\xHH' hex character constants.
6821 These don't provoke an error unfortunately, instead are silently treated
6822 as 'x'. The following induces an error, until -std is added to get
6823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6824 array size at least. It's necessary to write '\x00'==0 to get something
6825 that's true only with -std. */
6826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6829 inside strings and character constants. */
6830 #define FOO(x) 'x'
6831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6833 int test (int i, double x);
6834 struct s1 {int (*f) (int a);};
6835 struct s2 {int (*f) (double a);};
6836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6837 int argc;
6838 char **argv;
6839 int
6840 main ()
6841 {
6842 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6843 ;
6844 return 0;
6845 }
6846 _ACEOF
6847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6849 do
6850 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6851 rm -f conftest.$ac_build_objext
6852 if { (ac_try="$ac_build_compile"
6853 case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856 esac
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_build_compile") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_build_objext; then
6868 ac_cv_build_prog_cc_stdc=$ac_arg
6869 else
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6874 fi
6876 rm -f core conftest.err conftest.$ac_build_objext
6877 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6878 done
6879 rm -f conftest.$ac_ext
6880 CC_FOR_BUILD=$ac_save_CC
6882 fi
6883 # AC_CACHE_VAL
6884 case "x$ac_cv_build_prog_cc_stdc" in
6885 x)
6886 { echo "$as_me:$LINENO: result: none needed" >&5
6887 echo "${ECHO_T}none needed" >&6; } ;;
6888 xno)
6889 { echo "$as_me:$LINENO: result: unsupported" >&5
6890 echo "${ECHO_T}unsupported" >&6; } ;;
6891 *)
6892 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6893 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6894 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6895 esac
6896 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6897 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6898 else
6899 ac_cv_build_prog_cc_stdc=no
6900 fi
6903 fi
6905 ;;
6906 esac
6907 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6908 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6909 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 fi
6913 case $ac_cv_build_prog_cc_stdc in
6914 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6915 echo "${ECHO_T}unsupported" >&6; } ;;
6916 '') { echo "$as_me:$LINENO: result: none needed" >&5
6917 echo "${ECHO_T}none needed" >&6; } ;;
6918 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6919 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6920 esac
6923 ac_ext=c
6924 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6925 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6926 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6928 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6929 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6930 # On Suns, sometimes $CPP names a directory.
6931 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6932 CPP_FOR_BUILD=
6933 fi
6934 if test -z "$CPP_FOR_BUILD"; then
6935 if test "${ac_cv_build_prog_CPP+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 # Double quotes because CPP needs to be expanded
6939 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6940 do
6941 ac_preproc_ok=false
6942 for ac_c_preproc_warn_flag in '' yes
6943 do
6944 # Use a header file that comes with gcc, so configuring glibc
6945 # with a fresh cross-compiler works.
6946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6947 # <limits.h> exists even on freestanding compilers.
6948 # On the NeXT, cc -E runs the code through the compiler's parser,
6949 # not just through cpp. "Syntax error" is here to catch this case.
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #ifdef __STDC__
6957 # include <limits.h>
6958 #else
6959 # include <assert.h>
6960 #endif
6961 Syntax error
6962 _ACEOF
6963 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6964 case "(($ac_try" in
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6967 esac
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } >/dev/null && {
6976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 }; then
6979 :
6980 else
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 # Broken: fails on valid input.
6985 continue
6986 fi
6988 rm -f conftest.err conftest.$ac_ext
6990 # OK, works on sane cases. Now check whether nonexistent headers
6991 # can be detected and how.
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #include <ac_nonexistent.h>
6999 _ACEOF
7000 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7001 case "(($ac_try" in
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7004 esac
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } >/dev/null && {
7013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7014 test ! -s conftest.err
7015 }; then
7016 # Broken: success on invalid input.
7017 continue
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 # Passes both tests.
7023 ac_preproc_ok=:
7024 break
7025 fi
7027 rm -f conftest.err conftest.$ac_ext
7029 done
7030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7031 rm -f conftest.err conftest.$ac_ext
7032 if $ac_preproc_ok; then
7033 break
7034 fi
7036 done
7037 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7039 fi
7040 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7041 else
7042 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7043 fi
7044 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7045 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
7046 ac_preproc_ok=false
7047 for ac_c_preproc_warn_flag in '' yes
7048 do
7049 # Use a header file that comes with gcc, so configuring glibc
7050 # with a fresh cross-compiler works.
7051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052 # <limits.h> exists even on freestanding compilers.
7053 # On the NeXT, cc -E runs the code through the compiler's parser,
7054 # not just through cpp. "Syntax error" is here to catch this case.
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #ifdef __STDC__
7062 # include <limits.h>
7063 #else
7064 # include <assert.h>
7065 #endif
7066 Syntax error
7067 _ACEOF
7068 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7069 case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072 esac
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } >/dev/null && {
7081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 }; then
7084 :
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 # Broken: fails on valid input.
7090 continue
7091 fi
7093 rm -f conftest.err conftest.$ac_ext
7095 # OK, works on sane cases. Now check whether nonexistent headers
7096 # can be detected and how.
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #include <ac_nonexistent.h>
7104 _ACEOF
7105 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7106 case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null && {
7118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 }; then
7121 # Broken: success on invalid input.
7122 continue
7123 else
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 # Passes both tests.
7128 ac_preproc_ok=:
7129 break
7130 fi
7132 rm -f conftest.err conftest.$ac_ext
7134 done
7135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136 rm -f conftest.err conftest.$ac_ext
7137 if $ac_preproc_ok; then
7138 :
7139 else
7140 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7141 See \`config.log' for more details." >&5
7142 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7143 See \`config.log' for more details." >&2;}
7144 { (exit 1); exit 1; }; }
7145 fi
7147 ac_ext=c
7148 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7149 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7150 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
7156 BUILD_EXEEXT=$ac_build_exeext
7157 BUILD_OBJEXT=$ac_build_objext
7159 ac_ext=m
7160 ac_cpp='$OBJCPP $CPPFLAGS'
7161 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7164 if test -n "$ac_tool_prefix"; then
7165 for ac_prog in gcc objcc objc cc CC
7166 do
7167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_prog_OBJC+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 if test -n "$OBJC"; then
7175 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7192 fi
7193 fi
7194 OBJC=$ac_cv_prog_OBJC
7195 if test -n "$OBJC"; then
7196 { echo "$as_me:$LINENO: result: $OBJC" >&5
7197 echo "${ECHO_T}$OBJC" >&6; }
7198 else
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7201 fi
7204 test -n "$OBJC" && break
7205 done
7206 fi
7207 if test -z "$OBJC"; then
7208 ac_ct_OBJC=$OBJC
7209 for ac_prog in gcc objcc objc cc CC
7210 do
7211 # Extract the first word of "$ac_prog", so it can be a program name with args.
7212 set dummy $ac_prog; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218 if test -n "$ac_ct_OBJC"; then
7219 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232 done
7233 done
7234 IFS=$as_save_IFS
7236 fi
7237 fi
7238 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7239 if test -n "$ac_ct_OBJC"; then
7240 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7241 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
7242 else
7243 { echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6; }
7245 fi
7248 test -n "$ac_ct_OBJC" && break
7249 done
7251 if test "x$ac_ct_OBJC" = x; then
7252 OBJC="gcc"
7253 else
7254 case $cross_compiling:$ac_tool_warned in
7255 yes:)
7256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7257 whose name does not start with the host triplet. If you think this
7258 configuration is useful to you, please write to autoconf@gnu.org." >&5
7259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7260 whose name does not start with the host triplet. If you think this
7261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264 OBJC=$ac_ct_OBJC
7265 fi
7266 fi
7268 # Provide some information about the compiler.
7269 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7270 ac_compiler=`set X $ac_compile; echo $2`
7271 { (ac_try="$ac_compiler --version >&5"
7272 case "(($ac_try" in
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compiler --version >&5") 2>&5
7278 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }
7281 { (ac_try="$ac_compiler -v >&5"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_compiler -v >&5") 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }
7291 { (ac_try="$ac_compiler -V >&5"
7292 case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7295 esac
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_compiler -V >&5") 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }
7302 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7303 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7304 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307 cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h. */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7314 int
7315 main ()
7316 {
7317 #ifndef __GNUC__
7318 choke me
7319 #endif
7321 ;
7322 return 0;
7323 }
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7327 case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_objc_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_compiler_gnu=yes
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_compiler_gnu=no
7348 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7353 fi
7354 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7355 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7356 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7357 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7358 ac_save_OBJCFLAGS=$OBJCFLAGS
7359 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7360 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7361 if test "${ac_cv_prog_objc_g+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 ac_save_objc_werror_flag=$ac_objc_werror_flag
7365 ac_objc_werror_flag=yes
7366 ac_cv_prog_objc_g=no
7367 OBJCFLAGS="-g"
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7375 int
7376 main ()
7377 {
7379 ;
7380 return 0;
7381 }
7382 _ACEOF
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7385 case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_objc_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 ac_cv_prog_objc_g=yes
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 OBJCFLAGS=""
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h. */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7413 int
7414 main ()
7415 {
7417 ;
7418 return 0;
7419 }
7420 _ACEOF
7421 rm -f conftest.$ac_objext
7422 if { (ac_try="$ac_compile"
7423 case "(($ac_try" in
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_compile") 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && {
7435 test -z "$ac_objc_werror_flag" ||
7436 test ! -s conftest.err
7437 } && test -s conftest.$ac_objext; then
7438 :
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_objc_werror_flag=$ac_save_objc_werror_flag
7444 OBJCFLAGS="-g"
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7452 int
7453 main ()
7454 {
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (ac_try="$ac_compile"
7462 case "(($ac_try" in
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_compile") 2>conftest.er1
7468 ac_status=$?
7469 grep -v '^ *+' conftest.er1 >conftest.err
7470 rm -f conftest.er1
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_objc_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest.$ac_objext; then
7477 ac_cv_prog_objc_g=yes
7478 else
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7483 fi
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 fi
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 fi
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 ac_objc_werror_flag=$ac_save_objc_werror_flag
7493 fi
7494 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7495 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7496 if test "$ac_test_OBJCFLAGS" = set; then
7497 OBJCFLAGS=$ac_save_OBJCFLAGS
7498 elif test $ac_cv_prog_objc_g = yes; then
7499 if test "$GOBJC" = yes; then
7500 OBJCFLAGS="-g -O2"
7501 else
7502 OBJCFLAGS="-g"
7503 fi
7504 else
7505 if test "$GOBJC" = yes; then
7506 OBJCFLAGS="-O2"
7507 else
7508 OBJCFLAGS=
7509 fi
7510 fi
7511 ac_ext=c
7512 ac_cpp='$CPP $CPPFLAGS'
7513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7517 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7518 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7519 if test "${ac_cv_path_SED+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7523 for ac_i in 1 2 3 4 5 6 7; do
7524 ac_script="$ac_script$as_nl$ac_script"
7525 done
7526 echo "$ac_script" | sed 99q >conftest.sed
7527 $as_unset ac_script || ac_script=
7528 # Extract the first word of "sed gsed" to use in msg output
7529 if test -z "$SED"; then
7530 set dummy sed gsed; ac_prog_name=$2
7531 if test "${ac_cv_path_SED+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 ac_path_SED_found=false
7535 # Loop through the user's path and test for each of PROGNAME-LIST
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_prog in sed gsed; do
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7544 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7545 # Check for GNU ac_path_SED and select it if it is found.
7546 # Check for GNU $ac_path_SED
7547 case `"$ac_path_SED" --version 2>&1` in
7548 *GNU*)
7549 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7550 *)
7551 ac_count=0
7552 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7553 while :
7554 do
7555 cat "conftest.in" "conftest.in" >"conftest.tmp"
7556 mv "conftest.tmp" "conftest.in"
7557 cp "conftest.in" "conftest.nl"
7558 echo '' >> "conftest.nl"
7559 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7561 ac_count=`expr $ac_count + 1`
7562 if test $ac_count -gt ${ac_path_SED_max-0}; then
7563 # Best one so far, save it but keep looking for a better one
7564 ac_cv_path_SED="$ac_path_SED"
7565 ac_path_SED_max=$ac_count
7566 fi
7567 # 10*(2^10) chars as input seems more than enough
7568 test $ac_count -gt 10 && break
7569 done
7570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7571 esac
7574 $ac_path_SED_found && break 3
7575 done
7576 done
7578 done
7579 IFS=$as_save_IFS
7582 fi
7584 SED="$ac_cv_path_SED"
7585 if test -z "$SED"; then
7586 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7587 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7588 { (exit 1); exit 1; }; }
7589 fi
7591 else
7592 ac_cv_path_SED=$SED
7593 fi
7595 fi
7596 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7597 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7598 SED="$ac_cv_path_SED"
7599 rm -f conftest.sed
7601 # By default we simply use the C compiler to build assembly code.
7603 test "${CCAS+set}" = set || CCAS=$CC
7604 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7608 if test -n "$ac_tool_prefix"; then
7609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_prog_RANLIB+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616 if test -n "$RANLIB"; then
7617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7629 fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7634 fi
7635 fi
7636 RANLIB=$ac_cv_prog_RANLIB
7637 if test -n "$RANLIB"; then
7638 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7639 echo "${ECHO_T}$RANLIB" >&6; }
7640 else
7641 { echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6; }
7643 fi
7646 fi
7647 if test -z "$ac_cv_prog_RANLIB"; then
7648 ac_ct_RANLIB=$RANLIB
7649 # Extract the first word of "ranlib", so it can be a program name with args.
7650 set dummy ranlib; ac_word=$2
7651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7653 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 if test -n "$ac_ct_RANLIB"; then
7657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_prog_ac_ct_RANLIB="ranlib"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670 done
7671 done
7672 IFS=$as_save_IFS
7674 fi
7675 fi
7676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7677 if test -n "$ac_ct_RANLIB"; then
7678 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7679 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7680 else
7681 { echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6; }
7683 fi
7685 if test "x$ac_ct_RANLIB" = x; then
7686 RANLIB=":"
7687 else
7688 case $cross_compiling:$ac_tool_warned in
7689 yes:)
7690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7691 whose name does not start with the host triplet. If you think this
7692 configuration is useful to you, please write to autoconf@gnu.org." >&5
7693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7694 whose name does not start with the host triplet. If you think this
7695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698 RANLIB=$ac_ct_RANLIB
7699 fi
7700 else
7701 RANLIB="$ac_cv_prog_RANLIB"
7702 fi
7705 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7706 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7707 if test "${ac_cv_path_GREP+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 # Extract the first word of "grep ggrep" to use in msg output
7711 if test -z "$GREP"; then
7712 set dummy grep ggrep; ac_prog_name=$2
7713 if test "${ac_cv_path_GREP+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 ac_path_GREP_found=false
7717 # Loop through the user's path and test for each of PROGNAME-LIST
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7720 do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_prog in grep ggrep; do
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7726 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7727 # Check for GNU ac_path_GREP and select it if it is found.
7728 # Check for GNU $ac_path_GREP
7729 case `"$ac_path_GREP" --version 2>&1` in
7730 *GNU*)
7731 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7732 *)
7733 ac_count=0
7734 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7735 while :
7736 do
7737 cat "conftest.in" "conftest.in" >"conftest.tmp"
7738 mv "conftest.tmp" "conftest.in"
7739 cp "conftest.in" "conftest.nl"
7740 echo 'GREP' >> "conftest.nl"
7741 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7743 ac_count=`expr $ac_count + 1`
7744 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7745 # Best one so far, save it but keep looking for a better one
7746 ac_cv_path_GREP="$ac_path_GREP"
7747 ac_path_GREP_max=$ac_count
7748 fi
7749 # 10*(2^10) chars as input seems more than enough
7750 test $ac_count -gt 10 && break
7751 done
7752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7753 esac
7756 $ac_path_GREP_found && break 3
7757 done
7758 done
7760 done
7761 IFS=$as_save_IFS
7764 fi
7766 GREP="$ac_cv_path_GREP"
7767 if test -z "$GREP"; then
7768 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7769 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7770 { (exit 1); exit 1; }; }
7771 fi
7773 else
7774 ac_cv_path_GREP=$GREP
7775 fi
7778 fi
7779 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7780 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7781 GREP="$ac_cv_path_GREP"
7784 { echo "$as_me:$LINENO: checking for egrep" >&5
7785 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_EGREP+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7790 then ac_cv_path_EGREP="$GREP -E"
7791 else
7792 # Extract the first word of "egrep" to use in msg output
7793 if test -z "$EGREP"; then
7794 set dummy egrep; ac_prog_name=$2
7795 if test "${ac_cv_path_EGREP+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798 ac_path_EGREP_found=false
7799 # Loop through the user's path and test for each of PROGNAME-LIST
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7802 do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_prog in egrep; do
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7808 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7809 # Check for GNU ac_path_EGREP and select it if it is found.
7810 # Check for GNU $ac_path_EGREP
7811 case `"$ac_path_EGREP" --version 2>&1` in
7812 *GNU*)
7813 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7814 *)
7815 ac_count=0
7816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7817 while :
7818 do
7819 cat "conftest.in" "conftest.in" >"conftest.tmp"
7820 mv "conftest.tmp" "conftest.in"
7821 cp "conftest.in" "conftest.nl"
7822 echo 'EGREP' >> "conftest.nl"
7823 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7825 ac_count=`expr $ac_count + 1`
7826 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7827 # Best one so far, save it but keep looking for a better one
7828 ac_cv_path_EGREP="$ac_path_EGREP"
7829 ac_path_EGREP_max=$ac_count
7830 fi
7831 # 10*(2^10) chars as input seems more than enough
7832 test $ac_count -gt 10 && break
7833 done
7834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7835 esac
7838 $ac_path_EGREP_found && break 3
7839 done
7840 done
7842 done
7843 IFS=$as_save_IFS
7846 fi
7848 EGREP="$ac_cv_path_EGREP"
7849 if test -z "$EGREP"; then
7850 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7851 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7852 { (exit 1); exit 1; }; }
7853 fi
7855 else
7856 ac_cv_path_EGREP=$EGREP
7857 fi
7860 fi
7861 fi
7862 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7863 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7864 EGREP="$ac_cv_path_EGREP"
7867 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7868 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7869 if test "${ac_cv_header_stdc+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 #include <stdlib.h>
7879 #include <stdarg.h>
7880 #include <string.h>
7881 #include <float.h>
7883 int
7884 main ()
7885 {
7887 ;
7888 return 0;
7889 }
7890 _ACEOF
7891 rm -f conftest.$ac_objext
7892 if { (ac_try="$ac_compile"
7893 case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_compile") 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest.$ac_objext; then
7908 ac_cv_header_stdc=yes
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 ac_cv_header_stdc=no
7914 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 if test $ac_cv_header_stdc = yes; then
7919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <string.h>
7928 _ACEOF
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "memchr" >/dev/null 2>&1; then
7931 :
7932 else
7933 ac_cv_header_stdc=no
7934 fi
7935 rm -f conftest*
7937 fi
7939 if test $ac_cv_header_stdc = yes; then
7940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <stdlib.h>
7949 _ACEOF
7950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7951 $EGREP "free" >/dev/null 2>&1; then
7952 :
7953 else
7954 ac_cv_header_stdc=no
7955 fi
7956 rm -f conftest*
7958 fi
7960 if test $ac_cv_header_stdc = yes; then
7961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7962 if test "$cross_compiling" = yes; then
7963 :
7964 else
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 #include <ctype.h>
7972 #include <stdlib.h>
7973 #if ((' ' & 0x0FF) == 0x020)
7974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7976 #else
7977 # define ISLOWER(c) \
7978 (('a' <= (c) && (c) <= 'i') \
7979 || ('j' <= (c) && (c) <= 'r') \
7980 || ('s' <= (c) && (c) <= 'z'))
7981 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7982 #endif
7984 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7985 int
7986 main ()
7987 {
7988 int i;
7989 for (i = 0; i < 256; i++)
7990 if (XOR (islower (i), ISLOWER (i))
7991 || toupper (i) != TOUPPER (i))
7992 return 2;
7993 return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest$ac_exeext
7997 if { (ac_try="$ac_link"
7998 case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_link") 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 :
8017 else
8018 echo "$as_me: program exited with status $ac_status" >&5
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 ( exit $ac_status )
8023 ac_cv_header_stdc=no
8024 fi
8025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8026 fi
8029 fi
8030 fi
8031 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8032 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8033 if test $ac_cv_header_stdc = yes; then
8035 cat >>confdefs.h <<\_ACEOF
8036 #define STDC_HEADERS 1
8037 _ACEOF
8039 fi
8041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8051 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8052 inttypes.h stdint.h unistd.h
8053 do
8054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 $ac_includes_default
8068 #include <$ac_header>
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest.$ac_objext; then
8087 eval "$as_ac_Header=yes"
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 eval "$as_ac_Header=no"
8093 fi
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 fi
8097 ac_res=`eval echo '${'$as_ac_Header'}'`
8098 { echo "$as_me:$LINENO: result: $ac_res" >&5
8099 echo "${ECHO_T}$ac_res" >&6; }
8100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8101 cat >>confdefs.h <<_ACEOF
8102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8103 _ACEOF
8105 fi
8107 done
8110 { echo "$as_me:$LINENO: checking for void *" >&5
8111 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8112 if test "${ac_cv_type_void_p+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 typedef void * ac__type_new_;
8123 int
8124 main ()
8125 {
8126 if ((ac__type_new_ *) 0)
8127 return 0;
8128 if (sizeof (ac__type_new_))
8129 return 0;
8130 ;
8131 return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext
8135 if { (ac_try="$ac_compile"
8136 case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_compile") 2>conftest.er1
8142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && {
8148 test -z "$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8150 } && test -s conftest.$ac_objext; then
8151 ac_cv_type_void_p=yes
8152 else
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_cv_type_void_p=no
8157 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 fi
8161 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8162 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8164 # The cast to long int works around a bug in the HP C Compiler
8165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8167 # This bug is HP SR number 8606223364.
8168 { echo "$as_me:$LINENO: checking size of void *" >&5
8169 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8170 if test "${ac_cv_sizeof_void_p+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173 if test "$cross_compiling" = yes; then
8174 # Depending upon the size, compute the lo and hi bounds.
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 typedef void * ac__type_sizeof_;
8183 int
8184 main ()
8185 {
8186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8187 test_array [0] = 0
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_lo=0 ac_mid=0
8211 while :; do
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h. */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 $ac_includes_default
8219 typedef void * ac__type_sizeof_;
8220 int
8221 main ()
8222 {
8223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8224 test_array [0] = 0
8226 ;
8227 return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8232 case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest.$ac_objext; then
8247 ac_hi=$ac_mid; break
8248 else
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8252 ac_lo=`expr $ac_mid + 1`
8253 if test $ac_lo -le $ac_mid; then
8254 ac_lo= ac_hi=
8255 break
8256 fi
8257 ac_mid=`expr 2 '*' $ac_mid + 1`
8258 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 done
8262 else
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 typedef void * ac__type_sizeof_;
8274 int
8275 main ()
8276 {
8277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8278 test_array [0] = 0
8280 ;
8281 return 0;
8282 }
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8286 case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then
8301 ac_hi=-1 ac_mid=-1
8302 while :; do
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h. */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 $ac_includes_default
8310 typedef void * ac__type_sizeof_;
8311 int
8312 main ()
8313 {
8314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8315 test_array [0] = 0
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8323 case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_compile") 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && {
8335 test -z "$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8337 } && test -s conftest.$ac_objext; then
8338 ac_lo=$ac_mid; break
8339 else
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_hi=`expr '(' $ac_mid ')' - 1`
8344 if test $ac_mid -le $ac_hi; then
8345 ac_lo= ac_hi=
8346 break
8347 fi
8348 ac_mid=`expr 2 '*' $ac_mid`
8349 fi
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 done
8353 else
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 ac_lo= ac_hi=
8358 fi
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 fi
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 # Binary search between lo and hi bounds.
8365 while test "x$ac_lo" != "x$ac_hi"; do
8366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 typedef void * ac__type_sizeof_;
8375 int
8376 main ()
8377 {
8378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8379 test_array [0] = 0
8381 ;
8382 return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8387 case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && {
8399 test -z "$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 } && test -s conftest.$ac_objext; then
8402 ac_hi=$ac_mid
8403 else
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8407 ac_lo=`expr '(' $ac_mid ')' + 1`
8408 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 done
8412 case $ac_lo in
8413 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8414 '') if test "$ac_cv_type_void_p" = yes; then
8415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8416 See \`config.log' for more details." >&5
8417 echo "$as_me: error: cannot compute sizeof (void *)
8418 See \`config.log' for more details." >&2;}
8419 { (exit 77); exit 77; }; }
8420 else
8421 ac_cv_sizeof_void_p=0
8422 fi ;;
8423 esac
8424 else
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 typedef void * ac__type_sizeof_;
8433 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8434 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8435 #include <stdio.h>
8436 #include <stdlib.h>
8437 int
8438 main ()
8439 {
8441 FILE *f = fopen ("conftest.val", "w");
8442 if (! f)
8443 return 1;
8444 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8445 {
8446 long int i = longval ();
8447 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8448 return 1;
8449 fprintf (f, "%ld\n", i);
8450 }
8451 else
8452 {
8453 unsigned long int i = ulongval ();
8454 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8455 return 1;
8456 fprintf (f, "%lu\n", i);
8457 }
8458 return ferror (f) || fclose (f) != 0;
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest$ac_exeext
8465 if { (ac_try="$ac_link"
8466 case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_link") 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8475 { (case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478 esac
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_try") 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_sizeof_void_p=`cat conftest.val`
8485 else
8486 echo "$as_me: program exited with status $ac_status" >&5
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ( exit $ac_status )
8491 if test "$ac_cv_type_void_p" = yes; then
8492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8493 See \`config.log' for more details." >&5
8494 echo "$as_me: error: cannot compute sizeof (void *)
8495 See \`config.log' for more details." >&2;}
8496 { (exit 77); exit 77; }; }
8497 else
8498 ac_cv_sizeof_void_p=0
8499 fi
8500 fi
8501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8502 fi
8503 rm -f conftest.val
8504 fi
8505 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8506 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8510 cat >>confdefs.h <<_ACEOF
8511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8512 _ACEOF
8515 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8517 if test "${ac_cv_header_stdc+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 #include <stdlib.h>
8527 #include <stdarg.h>
8528 #include <string.h>
8529 #include <float.h>
8531 int
8532 main ()
8533 {
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8541 case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.$ac_objext; then
8556 ac_cv_header_stdc=yes
8557 else
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_cv_header_stdc=no
8562 fi
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 if test $ac_cv_header_stdc = yes; then
8567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 #include <string.h>
8576 _ACEOF
8577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578 $EGREP "memchr" >/dev/null 2>&1; then
8579 :
8580 else
8581 ac_cv_header_stdc=no
8582 fi
8583 rm -f conftest*
8585 fi
8587 if test $ac_cv_header_stdc = yes; then
8588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 #include <stdlib.h>
8597 _ACEOF
8598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8599 $EGREP "free" >/dev/null 2>&1; then
8600 :
8601 else
8602 ac_cv_header_stdc=no
8603 fi
8604 rm -f conftest*
8606 fi
8608 if test $ac_cv_header_stdc = yes; then
8609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8610 if test "$cross_compiling" = yes; then
8611 :
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 #include <ctype.h>
8620 #include <stdlib.h>
8621 #if ((' ' & 0x0FF) == 0x020)
8622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8624 #else
8625 # define ISLOWER(c) \
8626 (('a' <= (c) && (c) <= 'i') \
8627 || ('j' <= (c) && (c) <= 'r') \
8628 || ('s' <= (c) && (c) <= 'z'))
8629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8630 #endif
8632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8633 int
8634 main ()
8635 {
8636 int i;
8637 for (i = 0; i < 256; i++)
8638 if (XOR (islower (i), ISLOWER (i))
8639 || toupper (i) != TOUPPER (i))
8640 return 2;
8641 return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest$ac_exeext
8645 if { (ac_try="$ac_link"
8646 case "(($ac_try" in
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8649 esac
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_link") 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8655 { (case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658 esac
8659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_try") 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 :
8665 else
8666 echo "$as_me: program exited with status $ac_status" >&5
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ( exit $ac_status )
8671 ac_cv_header_stdc=no
8672 fi
8673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8674 fi
8677 fi
8678 fi
8679 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8680 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8681 if test $ac_cv_header_stdc = yes; then
8683 cat >>confdefs.h <<\_ACEOF
8684 #define STDC_HEADERS 1
8685 _ACEOF
8687 fi
8691 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8693 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8694 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8695 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8699 # We make a subdir and do the tests there. Otherwise we can end up
8700 # making bogus files that we don't know about and never remove. For
8701 # instance it was reported that on HP-UX the gcc test will end up
8702 # making a dummy file named `D' -- because `-MD' means `put the output
8703 # in D'.
8704 mkdir conftest.dir
8705 # Copy depcomp to subdir because otherwise we won't find it if we're
8706 # using a relative directory.
8707 cp "$am_depcomp" conftest.dir
8708 cd conftest.dir
8709 # We will build objects and dependencies in a subdirectory because
8710 # it helps to detect inapplicable dependency modes. For instance
8711 # both Tru64's cc and ICC support -MD to output dependencies as a
8712 # side effect of compilation, but ICC will put the dependencies in
8713 # the current directory while Tru64 will put them in the object
8714 # directory.
8715 mkdir sub
8717 am_cv_OBJC_dependencies_compiler_type=none
8718 if test "$am_compiler_list" = ""; then
8719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8720 fi
8721 for depmode in $am_compiler_list; do
8722 # Setup a source with many dependencies, because some compilers
8723 # like to wrap large dependency lists on column 80 (with \), and
8724 # we should not choose a depcomp mode which is confused by this.
8725 #
8726 # We need to recreate these files for each test, as the compiler may
8727 # overwrite some of them when testing with obscure command lines.
8728 # This happens at least with the AIX C compiler.
8729 : > sub/conftest.c
8730 for i in 1 2 3 4 5 6; do
8731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8733 # Solaris 8's {/usr,}/bin/sh.
8734 touch sub/conftst$i.h
8735 done
8736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8738 case $depmode in
8739 nosideeffect)
8740 # after this tag, mechanisms are not by side-effect, so they'll
8741 # only be used when explicitly requested
8742 if test "x$enable_dependency_tracking" = xyes; then
8743 continue
8744 else
8745 break
8746 fi
8747 ;;
8748 none) break ;;
8749 esac
8750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8751 # mode. It turns out that the SunPro C++ compiler does not properly
8752 # handle `-M -o', and we need to detect this.
8753 if depmode=$depmode \
8754 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8756 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8757 >/dev/null 2>conftest.err &&
8758 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8759 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8760 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8761 # icc doesn't choke on unknown options, it will just issue warnings
8762 # or remarks (even with -Werror). So we grep stderr for any message
8763 # that says an option was ignored or not supported.
8764 # When given -MP, icc 7.0 and 7.1 complain thusly:
8765 # icc: Command line warning: ignoring option '-M'; no argument required
8766 # The diagnosis changed in icc 8.0:
8767 # icc: Command line remark: option '-MP' not supported
8768 if (grep 'ignoring option' conftest.err ||
8769 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8770 am_cv_OBJC_dependencies_compiler_type=$depmode
8771 break
8772 fi
8773 fi
8774 done
8776 cd ..
8777 rm -rf conftest.dir
8778 else
8779 am_cv_OBJC_dependencies_compiler_type=none
8780 fi
8782 fi
8783 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8784 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8785 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8789 if
8790 test "x$enable_dependency_tracking" != xno \
8791 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8792 am__fastdepOBJC_TRUE=
8793 am__fastdepOBJC_FALSE='#'
8794 else
8795 am__fastdepOBJC_TRUE='#'
8796 am__fastdepOBJC_FALSE=
8797 fi
8801 # Extract the first word of "pod2man", so it can be a program name with args.
8802 set dummy pod2man; ac_word=$2
8803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8805 if test "${ac_cv_path_POD2MAN+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808 case $POD2MAN in
8809 [\\/]* | ?:[\\/]*)
8810 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8811 ;;
8812 *)
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in $PATH
8815 do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8820 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824 done
8825 done
8826 IFS=$as_save_IFS
8828 ;;
8829 esac
8830 fi
8831 POD2MAN=$ac_cv_path_POD2MAN
8832 if test -n "$POD2MAN"; then
8833 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8834 echo "${ECHO_T}$POD2MAN" >&6; }
8835 else
8836 { echo "$as_me:$LINENO: result: no" >&5
8837 echo "${ECHO_T}no" >&6; }
8838 fi
8841 # Extract the first word of "pod2html", so it can be a program name with args.
8842 set dummy pod2html; ac_word=$2
8843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8845 if test "${ac_cv_path_POD2HTML+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 case $POD2HTML in
8849 [\\/]* | ?:[\\/]*)
8850 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8851 ;;
8852 *)
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 for as_dir in $PATH
8855 do
8856 IFS=$as_save_IFS
8857 test -z "$as_dir" && as_dir=.
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8860 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8862 break 2
8863 fi
8864 done
8865 done
8866 IFS=$as_save_IFS
8868 ;;
8869 esac
8870 fi
8871 POD2HTML=$ac_cv_path_POD2HTML
8872 if test -n "$POD2HTML"; then
8873 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8874 echo "${ECHO_T}$POD2HTML" >&6; }
8875 else
8876 { echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6; }
8878 fi
8883 cat >>confdefs.h <<_ACEOF
8884 #define BUILD_SED_PROG "${SED}"
8885 _ACEOF
8888 cat >>confdefs.h <<_ACEOF
8889 #define BUILD_CPP_PROG "${CPP}"
8890 _ACEOF
8894 # Check whether --enable-strict-warn was given.
8895 if test "${enable_strict_warn+set}" = set; then
8896 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8897 enable_strictwarn=yes
8898 fi
8899 fi
8901 # Check whether --enable-translator was given.
8902 if test "${enable_translator+set}" = set; then
8903 enableval=$enable_translator; true
8904 else
8905 enable_translator=yes
8906 fi
8908 # Check whether --enable-optimized was given.
8909 if test "${enable_optimized+set}" = set; then
8910 enableval=$enable_optimized; true
8911 else
8912 enable_optimized=yes
8913 fi
8915 # Check whether --enable-shared was given.
8916 if test "${enable_shared+set}" = set; then
8917 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8918 else
8919 enable_shared=cond
8920 fi
8922 # Check whether --enable-profiled was given.
8923 if test "${enable_profiled+set}" = set; then
8924 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8925 enable_profiled=yes;
8926 fi
8927 fi
8929 # Check whether --enable-trace was given.
8930 if test "${enable_trace+set}" = set; then
8931 enableval=$enable_trace; if test "$enableval" == "yes"; then
8933 cat >>confdefs.h <<\_ACEOF
8934 #define ENABLE_TRACE_IO 1
8935 _ACEOF
8937 fi
8938 fi
8940 # Check whether --enable-watch was given.
8941 if test "${enable_watch+set}" = set; then
8942 enableval=$enable_watch; if test "$enableval" == "yes"; then
8944 cat >>confdefs.h <<\_ACEOF
8945 #define ENABLE_WATCH 1
8946 _ACEOF
8948 fi
8949 fi
8951 # Check whether --enable-sh4stats was given.
8952 if test "${enable_sh4stats+set}" = set; then
8953 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8955 cat >>confdefs.h <<\_ACEOF
8956 #define ENABLE_SH4STATS 1
8957 _ACEOF
8959 fi
8960 fi
8963 # Check whether --with-osmesa was given.
8964 if test "${with_osmesa+set}" = set; then
8965 withval=$with_osmesa;
8966 else
8967 with_osmesa=no
8968 fi
8971 # Check whether --with-gtk was given.
8972 if test "${with_gtk+set}" = set; then
8973 withval=$with_gtk; with_gtk=yes
8974 else
8975 with_gtk=x11
8976 fi
8979 # Check whether --with-esd was given.
8980 if test "${with_esd+set}" = set; then
8981 withval=$with_esd;
8982 fi
8985 # Check whether --with-pulse was given.
8986 if test "${with_pulse+set}" = set; then
8987 withval=$with_pulse;
8988 fi
8991 # Check whether --with-sdl was given.
8992 if test "${with_sdl+set}" = set; then
8993 withval=$with_sdl;
8994 fi
8998 if test "$ANDROID_BUILD" = "yes"; then
8999 with_gtk=no;
9000 EXTRA_OUTPUT_FILES="src/android/build.properties"
9001 LIBS="-lEGL -lGLESv2 $LIBS"
9003 cat >>confdefs.h <<\_ACEOF
9004 #define HAVE_GLES2 1
9005 _ACEOF
9007 UI_DRIVER="Android"
9008 VIDEO_DRIVERS="egl"
9009 with_sdl=no
9010 else
9013 ac_ext=m
9014 ac_cpp='$OBJCPP $CPPFLAGS'
9015 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9016 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9017 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9018 if test -n "$ac_tool_prefix"; then
9019 for ac_prog in gcc objcc objc cc CC
9020 do
9021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9025 if test "${ac_cv_prog_OBJC+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 if test -n "$OBJC"; then
9029 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
9030 else
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in $PATH
9033 do
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9038 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
9039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9041 fi
9042 done
9043 done
9044 IFS=$as_save_IFS
9046 fi
9047 fi
9048 OBJC=$ac_cv_prog_OBJC
9049 if test -n "$OBJC"; then
9050 { echo "$as_me:$LINENO: result: $OBJC" >&5
9051 echo "${ECHO_T}$OBJC" >&6; }
9052 else
9053 { echo "$as_me:$LINENO: result: no" >&5
9054 echo "${ECHO_T}no" >&6; }
9055 fi
9058 test -n "$OBJC" && break
9059 done
9060 fi
9061 if test -z "$OBJC"; then
9062 ac_ct_OBJC=$OBJC
9063 for ac_prog in gcc objcc objc cc CC
9064 do
9065 # Extract the first word of "$ac_prog", so it can be a program name with args.
9066 set dummy $ac_prog; ac_word=$2
9067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9069 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 if test -n "$ac_ct_OBJC"; then
9073 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
9074 else
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 for as_dir in $PATH
9077 do
9078 IFS=$as_save_IFS
9079 test -z "$as_dir" && as_dir=.
9080 for ac_exec_ext in '' $ac_executable_extensions; do
9081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9082 ac_cv_prog_ac_ct_OBJC="$ac_prog"
9083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 break 2
9085 fi
9086 done
9087 done
9088 IFS=$as_save_IFS
9090 fi
9091 fi
9092 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
9093 if test -n "$ac_ct_OBJC"; then
9094 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
9095 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
9096 else
9097 { echo "$as_me:$LINENO: result: no" >&5
9098 echo "${ECHO_T}no" >&6; }
9099 fi
9102 test -n "$ac_ct_OBJC" && break
9103 done
9105 if test "x$ac_ct_OBJC" = x; then
9106 OBJC="gcc"
9107 else
9108 case $cross_compiling:$ac_tool_warned in
9109 yes:)
9110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9111 whose name does not start with the host triplet. If you think this
9112 configuration is useful to you, please write to autoconf@gnu.org." >&5
9113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9114 whose name does not start with the host triplet. If you think this
9115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9116 ac_tool_warned=yes ;;
9117 esac
9118 OBJC=$ac_ct_OBJC
9119 fi
9120 fi
9122 # Provide some information about the compiler.
9123 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
9124 ac_compiler=`set X $ac_compile; echo $2`
9125 { (ac_try="$ac_compiler --version >&5"
9126 case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9129 esac
9130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131 (eval "$ac_compiler --version >&5") 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }
9135 { (ac_try="$ac_compiler -v >&5"
9136 case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_compiler -v >&5") 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }
9145 { (ac_try="$ac_compiler -V >&5"
9146 case "(($ac_try" in
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9149 esac
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_compiler -V >&5") 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }
9156 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
9157 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
9158 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9168 int
9169 main ()
9170 {
9171 #ifndef __GNUC__
9172 choke me
9173 #endif
9175 ;
9176 return 0;
9177 }
9178 _ACEOF
9179 rm -f conftest.$ac_objext
9180 if { (ac_try="$ac_compile"
9181 case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184 esac
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_compile") 2>conftest.er1
9187 ac_status=$?
9188 grep -v '^ *+' conftest.er1 >conftest.err
9189 rm -f conftest.er1
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } && {
9193 test -z "$ac_objc_werror_flag" ||
9194 test ! -s conftest.err
9195 } && test -s conftest.$ac_objext; then
9196 ac_compiler_gnu=yes
9197 else
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9201 ac_compiler_gnu=no
9202 fi
9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
9207 fi
9208 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
9209 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
9210 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
9211 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
9212 ac_save_OBJCFLAGS=$OBJCFLAGS
9213 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
9214 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
9215 if test "${ac_cv_prog_objc_g+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218 ac_save_objc_werror_flag=$ac_objc_werror_flag
9219 ac_objc_werror_flag=yes
9220 ac_cv_prog_objc_g=no
9221 OBJCFLAGS="-g"
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9229 int
9230 main ()
9231 {
9233 ;
9234 return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9239 case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_objc_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.$ac_objext; then
9254 ac_cv_prog_objc_g=yes
9255 else
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 OBJCFLAGS=""
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9267 int
9268 main ()
9269 {
9271 ;
9272 return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (ac_try="$ac_compile"
9277 case "(($ac_try" in
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9280 esac
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_compile") 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && {
9289 test -z "$ac_objc_werror_flag" ||
9290 test ! -s conftest.err
9291 } && test -s conftest.$ac_objext; then
9292 :
9293 else
9294 echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9297 ac_objc_werror_flag=$ac_save_objc_werror_flag
9298 OBJCFLAGS="-g"
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9306 int
9307 main ()
9308 {
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext
9315 if { (ac_try="$ac_compile"
9316 case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_compile") 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_objc_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest.$ac_objext; then
9331 ac_cv_prog_objc_g=yes
9332 else
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9337 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 fi
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346 ac_objc_werror_flag=$ac_save_objc_werror_flag
9347 fi
9348 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9349 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9350 if test "$ac_test_OBJCFLAGS" = set; then
9351 OBJCFLAGS=$ac_save_OBJCFLAGS
9352 elif test $ac_cv_prog_objc_g = yes; then
9353 if test "$GOBJC" = yes; then
9354 OBJCFLAGS="-g -O2"
9355 else
9356 OBJCFLAGS="-g"
9357 fi
9358 else
9359 if test "$GOBJC" = yes; then
9360 OBJCFLAGS="-O2"
9361 else
9362 OBJCFLAGS=
9363 fi
9364 fi
9365 ac_ext=c
9366 ac_cpp='$CPP $CPPFLAGS'
9367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9371 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9372 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9373 ac_ext=m
9374 ac_cpp='$OBJCPP $CPPFLAGS'
9375 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9376 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9377 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h. */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 @interface Foo @end
9385 int
9386 main ()
9387 {
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9395 case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_compile") 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_objc_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest.$ac_objext; then
9410 { echo "$as_me:$LINENO: result: yes" >&5
9411 echo "${ECHO_T}yes" >&6; }
9413 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9414 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9415 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h. */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 $ac_includes_default
9426 #include <Cocoa/Cocoa.h>
9427 _ACEOF
9428 rm -f conftest.$ac_objext
9429 if { (ac_try="$ac_compile"
9430 case "(($ac_try" in
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9433 esac
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_compile") 2>conftest.er1
9436 ac_status=$?
9437 grep -v '^ *+' conftest.er1 >conftest.err
9438 rm -f conftest.er1
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } && {
9442 test -z "$ac_objc_werror_flag" ||
9443 test ! -s conftest.err
9444 } && test -s conftest.$ac_objext; then
9445 ac_cv_header_Cocoa_Cocoa_h=yes
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_header_Cocoa_Cocoa_h=no
9451 fi
9453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454 fi
9455 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9456 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9457 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9459 HAVE_COCOA='yes'
9460 APPLE_BUILD='yes'
9461 LIBS="$LIBS -framework AppKit -framework Carbon"
9462 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"
9463 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9464 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9466 cat >>confdefs.h <<\_ACEOF
9467 #define HAVE_COCOA 1
9468 _ACEOF
9471 cat >>confdefs.h <<\_ACEOF
9472 #define APPLE_BUILD 1
9473 _ACEOF
9475 UI_DRIVER="Cocoa"
9476 if test "x$with_gtk" = "xx11"; then
9477 with_gtk=no
9478 fi
9480 fi
9485 { echo "$as_me:$LINENO: checking OBJC version" >&5
9486 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9487 if test -n "$OBJC"; then
9488 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9489 if test -n "$_GOBJC_VERSION"; then
9490 { echo "$as_me:$LINENO: result: GCC" >&5
9491 echo "${ECHO_T}GCC" >&6; }
9492 OBJCOPT="-O2"
9493 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9494 else
9495 { echo "$as_me:$LINENO: result: Unknown" >&5
9496 echo "${ECHO_T}Unknown" >&6; }
9497 OBJCOPT="-O2"
9498 fi
9499 else
9500 { echo "$as_me:$LINENO: result: None" >&5
9501 echo "${ECHO_T}None" >&6; }
9503 fi
9506 ac_ext=m
9507 ac_cpp='$OBJCPP $CPPFLAGS'
9508 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9509 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9510 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9512 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9513 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9514 save_OBJCFLAGS="$OBJCFLAGS"
9515 OBJCFLAGS="-msse2 $OBJCFLAGS"
9516 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 int main() { return 0; }
9524 _ACEOF
9525 rm -f conftest.$ac_objext
9526 if { (ac_try="$ac_compile"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_compile") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_objc_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest.$ac_objext; then
9543 { echo "$as_me:$LINENO: result: yes" >&5
9544 echo "${ECHO_T}yes" >&6; }
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9551 OBJCFLAGS="$save_OBJCFLAGS"
9552 { echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6; }
9555 fi
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 ac_ext=m
9559 ac_cpp='$OBJCPP $CPPFLAGS'
9560 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9561 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9562 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9566 ac_ext=m
9567 ac_cpp='$OBJCPP $CPPFLAGS'
9568 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9569 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9570 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9572 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9573 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9574 save_OBJCFLAGS="$OBJCFLAGS"
9575 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9576 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 int main() { return 0; }
9584 _ACEOF
9585 rm -f conftest.$ac_objext
9586 if { (ac_try="$ac_compile"
9587 case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_compile") 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && {
9599 test -z "$ac_objc_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest.$ac_objext; then
9603 { echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6; }
9606 else
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9611 OBJCFLAGS="$save_OBJCFLAGS"
9612 { echo "$as_me:$LINENO: result: no" >&5
9613 echo "${ECHO_T}no" >&6; }
9615 fi
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 ac_ext=m
9619 ac_cpp='$OBJCPP $CPPFLAGS'
9620 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9626 else
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 { echo "$as_me:$LINENO: result: No" >&5
9631 echo "${ECHO_T}No" >&6; }
9633 fi
9635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9636 ac_ext=c
9637 ac_cpp='$CPP $CPPFLAGS'
9638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9643 fi
9647 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9648 GUI_COCOA_TRUE=
9649 GUI_COCOA_FALSE='#'
9650 else
9651 GUI_COCOA_TRUE='#'
9652 GUI_COCOA_FALSE=
9653 fi
9655 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9657 cat >>confdefs.h <<\_ACEOF
9658 #define OSX_BUNDLE 1
9659 _ACEOF
9661 fi
9663 CFLAGS_FOR_BUILD="-O2 -std=c99"
9664 CFLAGS="-g -fexceptions"
9665 OBJCFLAGS="-g -fexceptions"
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_EXCEPTIONS 1
9669 _ACEOF
9672 STDCFLAG="-std=c99"
9674 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9675 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9676 { echo "$as_me:$LINENO: checking CC version" >&5
9677 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9678 if test -n "$_ICC_VERSION"; then
9679 { echo "$as_me:$LINENO: result: ICC" >&5
9680 echo "${ECHO_T}ICC" >&6; }
9681 CCOPT="$CFLAGS -fast"
9682 CFLAGS="$CFLAGS -fno-strict-aliasing"
9683 elif test -n "$_GCC_VERSION"; then
9684 { echo "$as_me:$LINENO: result: GCC" >&5
9685 echo "${ECHO_T}GCC" >&6; }
9686 CCOPT="-O2"
9687 CFLAGS="$CFLAGS -fno-strict-aliasing"
9688 else
9689 { echo "$as_me:$LINENO: result: Unknown" >&5
9690 echo "${ECHO_T}Unknown" >&6; }
9691 CCOPT="$CFLAGS -O2"
9692 fi
9695 ac_ext=c
9696 ac_cpp='$CPP $CPPFLAGS'
9697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9701 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9702 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9703 save_CFLAGS="$CFLAGS"
9704 CFLAGS="-msse2 $CFLAGS"
9705 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 int main() { return 0; }
9713 _ACEOF
9714 rm -f conftest.$ac_objext
9715 if { (ac_try="$ac_compile"
9716 case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_compile") 2>conftest.er1
9722 ac_status=$?
9723 grep -v '^ *+' conftest.er1 >conftest.err
9724 rm -f conftest.er1
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } && {
9728 test -z "$ac_c_werror_flag" ||
9729 test ! -s conftest.err
9730 } && test -s conftest.$ac_objext; then
9732 { echo "$as_me:$LINENO: result: yes" >&5
9733 echo "${ECHO_T}yes" >&6; }
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9740 CFLAGS="$save_CFLAGS"
9741 { echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6; }
9744 fi
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 ac_ext=c
9748 ac_cpp='$CPP $CPPFLAGS'
9749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9755 ac_ext=c
9756 ac_cpp='$CPP $CPPFLAGS'
9757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9761 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9762 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9763 save_CFLAGS="$CFLAGS"
9764 CFLAGS="-mfpmath=sse $CFLAGS"
9765 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h. */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 int main() { return 0; }
9773 _ACEOF
9774 rm -f conftest.$ac_objext
9775 if { (ac_try="$ac_compile"
9776 case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_compile") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest.$ac_objext; then
9792 { echo "$as_me:$LINENO: result: yes" >&5
9793 echo "${ECHO_T}yes" >&6; }
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9800 CFLAGS="$save_CFLAGS"
9801 { echo "$as_me:$LINENO: result: no" >&5
9802 echo "${ECHO_T}no" >&6; }
9804 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 ac_ext=c
9808 ac_cpp='$CPP $CPPFLAGS'
9809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9815 if test "x$enable_optimized" = "xyes"; then
9816 CFLAGS="$CFLAGS $CCOPT"
9817 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9818 if test "x$enable_profiled" != "xyes"; then
9819 CFLAGS="$CFLAGS -fomit-frame-pointer"
9820 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9821 fi
9822 else
9823 CFLAGS="$CFLAGS -g3"
9824 OBJCFLAGS="$OBJCFLAGS -g3"
9825 fi
9827 if test "x$enable_profiled" = "xyes"; then
9828 CFLAGS="$CFLAGS -pg"
9829 LDFLAGS="$LDFLAGS -pg";
9830 OBJCFLAGS="$OBJCFLAGS -pg";
9831 fi
9833 if test "x$enable_strictwarn" = "xyes"; then
9834 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9835 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9836 fi
9838 if test "x$enable_shared" != "xno"; then
9839 if test "x$APPLE_BUILD" = "xyes"; then
9840 SOEXT="dylib"
9841 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9842 else
9843 SOEXT="so"
9844 PLUGINLDFLAGS="-shared"
9845 fi
9846 PLUGINCFLAGS="-fPIC"
9848 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9849 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9850 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9851 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 fi
9854 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9855 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9856 else
9857 # Is the header compilable?
9858 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9859 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 $ac_includes_default
9867 #include <dlfcn.h>
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (ac_try="$ac_compile"
9871 case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_compile") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } && {
9883 test -z "$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 } && test -s conftest.$ac_objext; then
9886 ac_header_compiler=yes
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_header_compiler=no
9892 fi
9894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9896 echo "${ECHO_T}$ac_header_compiler" >&6; }
9898 # Is the header present?
9899 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9900 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 #include <dlfcn.h>
9908 _ACEOF
9909 if { (ac_try="$ac_cpp conftest.$ac_ext"
9910 case "(($ac_try" in
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } >/dev/null && {
9922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9923 test ! -s conftest.err
9924 }; then
9925 ac_header_preproc=yes
9926 else
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 ac_header_preproc=no
9931 fi
9933 rm -f conftest.err conftest.$ac_ext
9934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9935 echo "${ECHO_T}$ac_header_preproc" >&6; }
9937 # So? What about this header?
9938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9939 yes:no: )
9940 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9941 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9943 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9944 ac_header_preproc=yes
9945 ;;
9946 no:yes:* )
9947 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9948 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9950 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9952 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9954 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9956 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9957 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9958 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9960 ;;
9961 esac
9962 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9963 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9964 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967 ac_cv_header_dlfcn_h=$ac_header_preproc
9968 fi
9969 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9970 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9972 fi
9973 if test $ac_cv_header_dlfcn_h = yes; then
9975 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9976 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9977 if test "${ac_cv_search_dlopen+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980 ac_func_search_save_LIBS=$LIBS
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9988 /* Override any GCC internal prototype to avoid an error.
9989 Use char because int might match the return type of a GCC
9990 builtin and then its argument prototype would still apply. */
9991 #ifdef __cplusplus
9992 extern "C"
9993 #endif
9994 char dlopen ();
9995 int
9996 main ()
9997 {
9998 return dlopen ();
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 for ac_lib in '' dl; do
10004 if test -z "$ac_lib"; then
10005 ac_res="none required"
10006 else
10007 ac_res=-l$ac_lib
10008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10009 fi
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (ac_try="$ac_link"
10012 case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_link") 2>conftest.er1
10018 ac_status=$?
10019 grep -v '^ *+' conftest.er1 >conftest.err
10020 rm -f conftest.er1
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && {
10024 test -z "$ac_c_werror_flag" ||
10025 test ! -s conftest.err
10026 } && test -s conftest$ac_exeext &&
10027 $as_test_x conftest$ac_exeext; then
10028 ac_cv_search_dlopen=$ac_res
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10034 fi
10036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037 conftest$ac_exeext
10038 if test "${ac_cv_search_dlopen+set}" = set; then
10039 break
10040 fi
10041 done
10042 if test "${ac_cv_search_dlopen+set}" = set; then
10043 :
10044 else
10045 ac_cv_search_dlopen=no
10046 fi
10047 rm conftest.$ac_ext
10048 LIBS=$ac_func_search_save_LIBS
10049 fi
10050 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10051 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
10052 ac_res=$ac_cv_search_dlopen
10053 if test "$ac_res" != no; then
10054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10055 have_dlopen=yes
10056 fi
10058 fi
10061 if test "x$have_dlopen" != "xyes"; then
10062 if test "x$enable_shared" == "xyes"; then
10063 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
10064 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
10065 { (exit 1); exit 1; }; }
10066 else
10067 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
10068 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
10069 fi
10070 fi
10072 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
10073 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
10074 old_LDFLAGS="$LDFLAGS"
10075 LDFLAGS="$LDFLAGS -rdynamic"
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 int main() { return 0; }
10083 _ACEOF
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && {
10098 test -z "$ac_c_werror_flag" ||
10099 test ! -s conftest.err
10100 } && test -s conftest$ac_exeext &&
10101 $as_test_x conftest$ac_exeext; then
10103 LXDREAMLDFLAGS="-rdynamic"
10104 { echo "$as_me:$LINENO: result: yes" >&5
10105 echo "${ECHO_T}yes" >&6; }
10107 else
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10112 LXDREAMLDFLAGS=""
10113 { echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6; }
10115 fi
10117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LDFLAGS="$old_LDFLAGS"
10125 fi
10126 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10128 cat >>confdefs.h <<\_ACEOF
10129 #define BUILD_PLUGINS 1
10130 _ACEOF
10132 fi
10135 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10136 BUILD_PLUGINS_TRUE=
10137 BUILD_PLUGINS_FALSE='#'
10138 else
10139 BUILD_PLUGINS_TRUE='#'
10140 BUILD_PLUGINS_FALSE=
10141 fi
10145 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
10146 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
10147 save_CFLAGS="$CFLAGS"
10148 CFLAGS="-Werror $save_CFLAGS"
10149 if test "$cross_compiling" = yes; then
10151 { echo "$as_me:$LINENO: result: no" >&5
10152 echo "${ECHO_T}no" >&6; }
10154 else
10155 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10163 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
10165 int main(int argc, char *argv[])
10166 {
10167 return foo( 1, 2 ) == 3 ? 0 : 1;
10168 }
10169 _ACEOF
10170 rm -f conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10181 { (case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_try") 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10191 { echo "$as_me:$LINENO: result: yes" >&5
10192 echo "${ECHO_T}yes" >&6; }
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_FASTCALL 1
10197 _ACEOF
10200 else
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ( exit $ac_status )
10207 { echo "$as_me:$LINENO: result: no" >&5
10208 echo "${ECHO_T}no" >&6; }
10210 fi
10211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10212 fi
10215 CFLAGS="$save_CFLAGS"
10218 { echo "$as_me:$LINENO: checking support for force inlining" >&5
10219 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
10220 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h. */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10228 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
10230 int main(int argc, char *argv[])
10231 {
10232 return foo( 1, 2 ) == 3 ? 0 : 1;
10233 }
10234 _ACEOF
10235 rm -f conftest.$ac_objext
10236 if { (ac_try="$ac_compile"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_compile") 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && {
10249 test -z "$ac_c_werror_flag" ||
10250 test ! -s conftest.err
10251 } && test -s conftest.$ac_objext; then
10253 FORCEINLINE="__attribute__((always_inline))"
10254 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
10255 echo "${ECHO_T}$FORCEINLINE" >&6; }
10257 else
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10262 FORCEINLINE=""
10263 { echo "$as_me:$LINENO: result: no" >&5
10264 echo "${ECHO_T}no" >&6; }
10266 fi
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271 cat >>confdefs.h <<_ACEOF
10272 #define FORCEINLINE $FORCEINLINE
10273 _ACEOF
10276 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
10277 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
10278 if test "$cross_compiling" = yes; then
10280 { echo "$as_me:$LINENO: result: no" >&5
10281 echo "${ECHO_T}no" >&6; }
10282 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10283 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10284 else
10285 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10294 int __attribute__((noinline)) foo( int arg, void *exc )
10295 {
10296 if( arg < 2 ) {
10297 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10298 }
10299 return 0;
10300 }
10302 int main(int argc, char *argv[])
10303 {
10304 goto *first_arg(&&start, &&except);
10306 start:
10307 return foo( argc, &&except ) + 1;
10309 except:
10310 return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_link") 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10334 { echo "$as_me:$LINENO: result: yes" >&5
10335 echo "${ECHO_T}yes" >&6; }
10338 cat >>confdefs.h <<\_ACEOF
10339 #define HAVE_FRAME_ADDRESS 1
10340 _ACEOF
10343 else
10344 echo "$as_me: program exited with status $ac_status" >&5
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 ( exit $ac_status )
10350 { echo "$as_me:$LINENO: result: no" >&5
10351 echo "${ECHO_T}no" >&6; }
10352 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10353 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10354 fi
10355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10356 fi
10362 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10363 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10364 if test "${ac_cv_search_listen+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 ac_func_search_save_LIBS=$LIBS
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10378 #ifdef __cplusplus
10379 extern "C"
10380 #endif
10381 char listen ();
10382 int
10383 main ()
10384 {
10385 return listen ();
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 for ac_lib in '' socket; do
10391 if test -z "$ac_lib"; then
10392 ac_res="none required"
10393 else
10394 ac_res=-l$ac_lib
10395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10396 fi
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (ac_try="$ac_link"
10399 case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402 esac
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_link") 2>conftest.er1
10405 ac_status=$?
10406 grep -v '^ *+' conftest.er1 >conftest.err
10407 rm -f conftest.er1
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && {
10411 test -z "$ac_c_werror_flag" ||
10412 test ! -s conftest.err
10413 } && test -s conftest$ac_exeext &&
10414 $as_test_x conftest$ac_exeext; then
10415 ac_cv_search_listen=$ac_res
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10421 fi
10423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10424 conftest$ac_exeext
10425 if test "${ac_cv_search_listen+set}" = set; then
10426 break
10427 fi
10428 done
10429 if test "${ac_cv_search_listen+set}" = set; then
10430 :
10431 else
10432 ac_cv_search_listen=no
10433 fi
10434 rm conftest.$ac_ext
10435 LIBS=$ac_func_search_save_LIBS
10436 fi
10437 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10438 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10439 ac_res=$ac_cv_search_listen
10440 if test "$ac_res" != no; then
10441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10443 fi
10445 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10446 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10447 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450 ac_func_search_save_LIBS=$LIBS
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h. */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10458 /* Override any GCC internal prototype to avoid an error.
10459 Use char because int might match the return type of a GCC
10460 builtin and then its argument prototype would still apply. */
10461 #ifdef __cplusplus
10462 extern "C"
10463 #endif
10464 char inet_ntoa ();
10465 int
10466 main ()
10467 {
10468 return inet_ntoa ();
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 for ac_lib in '' nsl; do
10474 if test -z "$ac_lib"; then
10475 ac_res="none required"
10476 else
10477 ac_res=-l$ac_lib
10478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10479 fi
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext &&
10497 $as_test_x conftest$ac_exeext; then
10498 ac_cv_search_inet_ntoa=$ac_res
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10504 fi
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext
10508 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10509 break
10510 fi
10511 done
10512 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10513 :
10514 else
10515 ac_cv_search_inet_ntoa=no
10516 fi
10517 rm conftest.$ac_ext
10518 LIBS=$ac_func_search_save_LIBS
10519 fi
10520 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10521 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10522 ac_res=$ac_cv_search_inet_ntoa
10523 if test "$ac_res" != no; then
10524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10526 fi
10531 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10532 if test -n "$ac_tool_prefix"; then
10533 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10534 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540 case $PKG_CONFIG in
10541 [\\/]* | ?:[\\/]*)
10542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10543 ;;
10544 *)
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10547 do
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10554 break 2
10555 fi
10556 done
10557 done
10558 IFS=$as_save_IFS
10560 ;;
10561 esac
10562 fi
10563 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10564 if test -n "$PKG_CONFIG"; then
10565 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10566 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10567 else
10568 { echo "$as_me:$LINENO: result: no" >&5
10569 echo "${ECHO_T}no" >&6; }
10570 fi
10573 fi
10574 if test -z "$ac_cv_path_PKG_CONFIG"; then
10575 ac_pt_PKG_CONFIG=$PKG_CONFIG
10576 # Extract the first word of "pkg-config", so it can be a program name with args.
10577 set dummy pkg-config; ac_word=$2
10578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10580 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583 case $ac_pt_PKG_CONFIG in
10584 [\\/]* | ?:[\\/]*)
10585 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10586 ;;
10587 *)
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10590 do
10591 IFS=$as_save_IFS
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10595 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 break 2
10598 fi
10599 done
10600 done
10601 IFS=$as_save_IFS
10603 ;;
10604 esac
10605 fi
10606 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10607 if test -n "$ac_pt_PKG_CONFIG"; then
10608 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10609 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10610 else
10611 { echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6; }
10613 fi
10615 if test "x$ac_pt_PKG_CONFIG" = x; then
10616 PKG_CONFIG=""
10617 else
10618 case $cross_compiling:$ac_tool_warned in
10619 yes:)
10620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10621 whose name does not start with the host triplet. If you think this
10622 configuration is useful to you, please write to autoconf@gnu.org." >&5
10623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10624 whose name does not start with the host triplet. If you think this
10625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10626 ac_tool_warned=yes ;;
10627 esac
10628 PKG_CONFIG=$ac_pt_PKG_CONFIG
10629 fi
10630 else
10631 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10632 fi
10634 fi
10635 if test -n "$PKG_CONFIG"; then
10636 _pkg_min_version=0.9.0
10637 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10638 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10639 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10640 { echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6; }
10642 else
10643 { echo "$as_me:$LINENO: result: no" >&5
10644 echo "${ECHO_T}no" >&6; }
10645 PKG_CONFIG=""
10646 fi
10648 fi
10650 pkg_failed=no
10651 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10652 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10654 if test -n "$LIBPNG_CFLAGS"; then
10655 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10656 elif test -n "$PKG_CONFIG"; then
10657 if test -n "$PKG_CONFIG" && \
10658 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10659 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; then
10663 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10664 else
10665 pkg_failed=yes
10666 fi
10667 else
10668 pkg_failed=untried
10669 fi
10670 if test -n "$LIBPNG_LIBS"; then
10671 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10672 elif test -n "$PKG_CONFIG"; then
10673 if test -n "$PKG_CONFIG" && \
10674 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10675 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; then
10679 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10680 else
10681 pkg_failed=yes
10682 fi
10683 else
10684 pkg_failed=untried
10685 fi
10689 if test $pkg_failed = yes; then
10691 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10692 _pkg_short_errors_supported=yes
10693 else
10694 _pkg_short_errors_supported=no
10695 fi
10696 if test $_pkg_short_errors_supported = yes; then
10697 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10698 else
10699 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10700 fi
10701 # Put the nasty error message in config.log where it belongs
10702 echo "$LIBPNG_PKG_ERRORS" >&5
10704 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10706 $LIBPNG_PKG_ERRORS
10708 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10709 installed software in a non-standard prefix.
10711 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10712 and LIBPNG_LIBS to avoid the need to call pkg-config.
10713 See the pkg-config man page for more details.
10714 " >&5
10715 echo "$as_me: error: Package requirements (libpng ) were not met:
10717 $LIBPNG_PKG_ERRORS
10719 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10720 installed software in a non-standard prefix.
10722 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10723 and LIBPNG_LIBS to avoid the need to call pkg-config.
10724 See the pkg-config man page for more details.
10725 " >&2;}
10726 { (exit 1); exit 1; }; }
10727 elif test $pkg_failed = untried; then
10728 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10729 is in your PATH or set the PKG_CONFIG environment variable to the full
10730 path to pkg-config.
10732 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10733 and LIBPNG_LIBS to avoid the need to call pkg-config.
10734 See the pkg-config man page for more details.
10736 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10737 See \`config.log' for more details." >&5
10738 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10739 is in your PATH or set the PKG_CONFIG environment variable to the full
10740 path to pkg-config.
10742 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10743 and LIBPNG_LIBS to avoid the need to call pkg-config.
10744 See the pkg-config man page for more details.
10746 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10747 See \`config.log' for more details." >&2;}
10748 { (exit 1); exit 1; }; }
10749 else
10750 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10751 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10752 { echo "$as_me:$LINENO: result: yes" >&5
10753 echo "${ECHO_T}yes" >&6; }
10754 :
10755 fi
10758 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10759 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10760 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 ac_check_lib_save_LIBS=$LIBS
10764 LIBS="-lz $LIBS"
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h. */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char uncompress ();
10779 int
10780 main ()
10781 {
10782 return uncompress ();
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_link") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest$ac_exeext &&
10804 $as_test_x conftest$ac_exeext; then
10805 ac_cv_lib_z_uncompress=yes
10806 else
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10810 ac_cv_lib_z_uncompress=no
10811 fi
10813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10814 conftest$ac_exeext conftest.$ac_ext
10815 LIBS=$ac_check_lib_save_LIBS
10816 fi
10817 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10818 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10819 if test $ac_cv_lib_z_uncompress = yes; then
10820 cat >>confdefs.h <<_ACEOF
10821 #define HAVE_LIBZ 1
10822 _ACEOF
10824 LIBS="-lz $LIBS"
10826 else
10828 echo "Zlib (libz.so) could not be found, but is required."
10829 exit 1
10830 fi
10833 if test "x$with_gtk" = "xno"; then
10835 pkg_failed=no
10836 { echo "$as_me:$LINENO: checking for GLIB" >&5
10837 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10839 if test -n "$GLIB_CFLAGS"; then
10840 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10841 elif test -n "$PKG_CONFIG"; then
10842 if test -n "$PKG_CONFIG" && \
10843 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10844 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; then
10848 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10849 else
10850 pkg_failed=yes
10851 fi
10852 else
10853 pkg_failed=untried
10854 fi
10855 if test -n "$GLIB_LIBS"; then
10856 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10857 elif test -n "$PKG_CONFIG"; then
10858 if test -n "$PKG_CONFIG" && \
10859 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10860 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; then
10864 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10865 else
10866 pkg_failed=yes
10867 fi
10868 else
10869 pkg_failed=untried
10870 fi
10874 if test $pkg_failed = yes; then
10876 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10877 _pkg_short_errors_supported=yes
10878 else
10879 _pkg_short_errors_supported=no
10880 fi
10881 if test $_pkg_short_errors_supported = yes; then
10882 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10883 else
10884 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10885 fi
10886 # Put the nasty error message in config.log where it belongs
10887 echo "$GLIB_PKG_ERRORS" >&5
10889 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10891 $GLIB_PKG_ERRORS
10893 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10894 installed software in a non-standard prefix.
10896 Alternatively, you may set the environment variables GLIB_CFLAGS
10897 and GLIB_LIBS to avoid the need to call pkg-config.
10898 See the pkg-config man page for more details.
10899 " >&5
10900 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10902 $GLIB_PKG_ERRORS
10904 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10905 installed software in a non-standard prefix.
10907 Alternatively, you may set the environment variables GLIB_CFLAGS
10908 and GLIB_LIBS to avoid the need to call pkg-config.
10909 See the pkg-config man page for more details.
10910 " >&2;}
10911 { (exit 1); exit 1; }; }
10912 elif test $pkg_failed = untried; then
10913 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10914 is in your PATH or set the PKG_CONFIG environment variable to the full
10915 path to pkg-config.
10917 Alternatively, you may set the environment variables GLIB_CFLAGS
10918 and GLIB_LIBS to avoid the need to call pkg-config.
10919 See the pkg-config man page for more details.
10921 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10922 See \`config.log' for more details." >&5
10923 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10924 is in your PATH or set the PKG_CONFIG environment variable to the full
10925 path to pkg-config.
10927 Alternatively, you may set the environment variables GLIB_CFLAGS
10928 and GLIB_LIBS to avoid the need to call pkg-config.
10929 See the pkg-config man page for more details.
10931 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10932 See \`config.log' for more details." >&2;}
10933 { (exit 1); exit 1; }; }
10934 else
10935 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10936 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10937 { echo "$as_me:$LINENO: result: yes" >&5
10938 echo "${ECHO_T}yes" >&6; }
10939 :
10940 fi
10941 else
10943 pkg_failed=no
10944 { echo "$as_me:$LINENO: checking for GTK" >&5
10945 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10947 if test -n "$GTK_CFLAGS"; then
10948 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10949 elif test -n "$PKG_CONFIG"; then
10950 if test -n "$PKG_CONFIG" && \
10951 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10952 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; then
10956 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10957 else
10958 pkg_failed=yes
10959 fi
10960 else
10961 pkg_failed=untried
10962 fi
10963 if test -n "$GTK_LIBS"; then
10964 pkg_cv_GTK_LIBS="$GTK_LIBS"
10965 elif test -n "$PKG_CONFIG"; then
10966 if test -n "$PKG_CONFIG" && \
10967 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10968 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; then
10972 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10973 else
10974 pkg_failed=yes
10975 fi
10976 else
10977 pkg_failed=untried
10978 fi
10982 if test $pkg_failed = yes; then
10984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10985 _pkg_short_errors_supported=yes
10986 else
10987 _pkg_short_errors_supported=no
10988 fi
10989 if test $_pkg_short_errors_supported = yes; then
10990 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10991 else
10992 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10993 fi
10994 # Put the nasty error message in config.log where it belongs
10995 echo "$GTK_PKG_ERRORS" >&5
10997 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10999 $GTK_PKG_ERRORS
11001 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11002 installed software in a non-standard prefix.
11004 Alternatively, you may set the environment variables GTK_CFLAGS
11005 and GTK_LIBS to avoid the need to call pkg-config.
11006 See the pkg-config man page for more details.
11007 " >&5
11008 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
11010 $GTK_PKG_ERRORS
11012 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11013 installed software in a non-standard prefix.
11015 Alternatively, you may set the environment variables GTK_CFLAGS
11016 and GTK_LIBS to avoid the need to call pkg-config.
11017 See the pkg-config man page for more details.
11018 " >&2;}
11019 { (exit 1); exit 1; }; }
11020 elif test $pkg_failed = untried; then
11021 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11022 is in your PATH or set the PKG_CONFIG environment variable to the full
11023 path to pkg-config.
11025 Alternatively, you may set the environment variables GTK_CFLAGS
11026 and GTK_LIBS to avoid the need to call pkg-config.
11027 See the pkg-config man page for more details.
11029 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11030 See \`config.log' for more details." >&5
11031 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11032 is in your PATH or set the PKG_CONFIG environment variable to the full
11033 path to pkg-config.
11035 Alternatively, you may set the environment variables GTK_CFLAGS
11036 and GTK_LIBS to avoid the need to call pkg-config.
11037 See the pkg-config man page for more details.
11039 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11040 See \`config.log' for more details." >&2;}
11041 { (exit 1); exit 1; }; }
11042 else
11043 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
11044 GTK_LIBS=$pkg_cv_GTK_LIBS
11045 { echo "$as_me:$LINENO: result: yes" >&5
11046 echo "${ECHO_T}yes" >&6; }
11048 HAVE_GTK='yes'
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_GTK 1
11052 _ACEOF
11054 UI_DRIVER="GTK"
11056 fi
11058 LIBS="$LIBS $GTK_LIBS"
11059 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
11060 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
11061 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
11071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11072 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
11074 /* System header to define __stub macros and hopefully few prototypes,
11075 which can conflict with char gdk_x11_display_get_xdisplay (); below.
11076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11077 <limits.h> exists even on freestanding compilers. */
11079 #ifdef __STDC__
11080 # include <limits.h>
11081 #else
11082 # include <assert.h>
11083 #endif
11085 #undef gdk_x11_display_get_xdisplay
11087 /* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char gdk_x11_display_get_xdisplay ();
11094 /* The GNU C library defines this for functions which it implements
11095 to always fail with ENOSYS. Some functions are actually named
11096 something starting with __ and the normal name is an alias. */
11097 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
11098 choke me
11099 #endif
11101 int
11102 main ()
11103 {
11104 return gdk_x11_display_get_xdisplay ();
11105 ;
11106 return 0;
11107 }
11108 _ACEOF
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (ac_try="$ac_link"
11111 case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114 esac
11115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_link") 2>conftest.er1
11117 ac_status=$?
11118 grep -v '^ *+' conftest.er1 >conftest.err
11119 rm -f conftest.er1
11120 cat conftest.err >&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } && {
11123 test -z "$ac_c_werror_flag" ||
11124 test ! -s conftest.err
11125 } && test -s conftest$ac_exeext &&
11126 $as_test_x conftest$ac_exeext; then
11127 ac_cv_func_gdk_x11_display_get_xdisplay=yes
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11132 ac_cv_func_gdk_x11_display_get_xdisplay=no
11133 fi
11135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11136 conftest$ac_exeext conftest.$ac_ext
11137 fi
11138 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
11139 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
11140 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
11142 HAVE_GTK_X11='yes'
11144 cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_GTK_X11 1
11146 _ACEOF
11148 fi
11150 GTK_LIBS="$GTK_LIBS -lX11"
11151 LIBS="$LIBS -lX11"
11152 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
11153 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
11154 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h. */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
11164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11165 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
11167 /* System header to define __stub macros and hopefully few prototypes,
11168 which can conflict with char gdk_quartz_window_get_nsview (); below.
11169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11170 <limits.h> exists even on freestanding compilers. */
11172 #ifdef __STDC__
11173 # include <limits.h>
11174 #else
11175 # include <assert.h>
11176 #endif
11178 #undef gdk_quartz_window_get_nsview
11180 /* Override any GCC internal prototype to avoid an error.
11181 Use char because int might match the return type of a GCC
11182 builtin and then its argument prototype would still apply. */
11183 #ifdef __cplusplus
11184 extern "C"
11185 #endif
11186 char gdk_quartz_window_get_nsview ();
11187 /* The GNU C library defines this for functions which it implements
11188 to always fail with ENOSYS. Some functions are actually named
11189 something starting with __ and the normal name is an alias. */
11190 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
11191 choke me
11192 #endif
11194 int
11195 main ()
11196 {
11197 return gdk_quartz_window_get_nsview ();
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 rm -f conftest.$ac_objext conftest$ac_exeext
11203 if { (ac_try="$ac_link"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_link") 2>conftest.er1
11210 ac_status=$?
11211 grep -v '^ *+' conftest.er1 >conftest.err
11212 rm -f conftest.er1
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest$ac_exeext &&
11219 $as_test_x conftest$ac_exeext; then
11220 ac_cv_func_gdk_quartz_window_get_nsview=yes
11221 else
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 ac_cv_func_gdk_quartz_window_get_nsview=no
11226 fi
11228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11229 conftest$ac_exeext conftest.$ac_ext
11230 fi
11231 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
11232 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
11233 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
11235 HAVE_GTK_OSX='yes'
11237 cat >>confdefs.h <<\_ACEOF
11238 #define HAVE_GTK_OSX 1
11239 _ACEOF
11241 fi
11243 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
11244 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
11245 See \`config.log' for more details." >&5
11246 echo "$as_me: error: Unable to identify GTK platform
11247 See \`config.log' for more details." >&2;}
11248 { (exit 1); exit 1; }; }
11249 fi
11250 fi
11254 pkg_failed=no
11255 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
11256 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
11258 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
11259 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
11260 elif test -n "$PKG_CONFIG"; then
11261 if test -n "$PKG_CONFIG" && \
11262 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11263 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; then
11267 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11268 else
11269 pkg_failed=yes
11270 fi
11271 else
11272 pkg_failed=untried
11273 fi
11274 if test -n "$GLIB_FOR_BUILD_LIBS"; then
11275 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
11276 elif test -n "$PKG_CONFIG"; then
11277 if test -n "$PKG_CONFIG" && \
11278 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11279 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; then
11283 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11284 else
11285 pkg_failed=yes
11286 fi
11287 else
11288 pkg_failed=untried
11289 fi
11293 if test $pkg_failed = yes; then
11295 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11296 _pkg_short_errors_supported=yes
11297 else
11298 _pkg_short_errors_supported=no
11299 fi
11300 if test $_pkg_short_errors_supported = yes; then
11301 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11302 else
11303 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11304 fi
11305 # Put the nasty error message in config.log where it belongs
11306 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11308 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11310 $GLIB_FOR_BUILD_PKG_ERRORS
11312 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11313 installed software in a non-standard prefix.
11315 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11316 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11317 See the pkg-config man page for more details.
11318 " >&5
11319 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11321 $GLIB_FOR_BUILD_PKG_ERRORS
11323 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11324 installed software in a non-standard prefix.
11326 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11327 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11328 See the pkg-config man page for more details.
11329 " >&2;}
11330 { (exit 1); exit 1; }; }
11331 elif test $pkg_failed = untried; then
11332 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11333 is in your PATH or set the PKG_CONFIG environment variable to the full
11334 path to pkg-config.
11336 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11337 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11338 See the pkg-config man page for more details.
11340 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11341 See \`config.log' for more details." >&5
11342 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11343 is in your PATH or set the PKG_CONFIG environment variable to the full
11344 path to pkg-config.
11346 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11347 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11348 See the pkg-config man page for more details.
11350 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11351 See \`config.log' for more details." >&2;}
11352 { (exit 1); exit 1; }; }
11353 else
11354 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11355 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11356 { echo "$as_me:$LINENO: result: yes" >&5
11357 echo "${ECHO_T}yes" >&6; }
11358 :
11359 fi
11364 if test "$HAVE_GTK" = 'yes'; then
11365 GUI_GTK_TRUE=
11366 GUI_GTK_FALSE='#'
11367 else
11368 GUI_GTK_TRUE='#'
11369 GUI_GTK_FALSE=
11370 fi
11374 pkg_failed=no
11375 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11376 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11378 if test -n "$LIBISOFS_CFLAGS"; then
11379 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11380 elif test -n "$PKG_CONFIG"; then
11381 if test -n "$PKG_CONFIG" && \
11382 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11383 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; then
11387 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11388 else
11389 pkg_failed=yes
11390 fi
11391 else
11392 pkg_failed=untried
11393 fi
11394 if test -n "$LIBISOFS_LIBS"; then
11395 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11396 elif test -n "$PKG_CONFIG"; then
11397 if test -n "$PKG_CONFIG" && \
11398 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11399 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; then
11403 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11404 else
11405 pkg_failed=yes
11406 fi
11407 else
11408 pkg_failed=untried
11409 fi
11413 if test $pkg_failed = yes; then
11415 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11416 _pkg_short_errors_supported=yes
11417 else
11418 _pkg_short_errors_supported=no
11419 fi
11420 if test $_pkg_short_errors_supported = yes; then
11421 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11422 else
11423 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11424 fi
11425 # Put the nasty error message in config.log where it belongs
11426 echo "$LIBISOFS_PKG_ERRORS" >&5
11428 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11430 $LIBISOFS_PKG_ERRORS
11432 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11433 installed software in a non-standard prefix.
11435 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11436 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11437 See the pkg-config man page for more details.
11438 " >&5
11439 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11441 $LIBISOFS_PKG_ERRORS
11443 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11444 installed software in a non-standard prefix.
11446 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11447 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11448 See the pkg-config man page for more details.
11449 " >&2;}
11450 { (exit 1); exit 1; }; }
11451 elif test $pkg_failed = untried; then
11452 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11453 is in your PATH or set the PKG_CONFIG environment variable to the full
11454 path to pkg-config.
11456 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11457 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11458 See the pkg-config man page for more details.
11460 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11461 See \`config.log' for more details." >&5
11462 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11463 is in your PATH or set the PKG_CONFIG environment variable to the full
11464 path to pkg-config.
11466 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11467 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11468 See the pkg-config man page for more details.
11470 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11471 See \`config.log' for more details." >&2;}
11472 { (exit 1); exit 1; }; }
11473 else
11474 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11475 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11476 { echo "$as_me:$LINENO: result: yes" >&5
11477 echo "${ECHO_T}yes" >&6; }
11478 :
11479 fi
11481 if test "x$with_osmesa" != xno; then
11485 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11486 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11487 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490 ac_check_lib_save_LIBS=$LIBS
11491 LIBS="-lOSMesa $LIBS"
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char OSMesaCreateContext ();
11506 int
11507 main ()
11508 {
11509 return OSMesaCreateContext ();
11510 ;
11511 return 0;
11512 }
11513 _ACEOF
11514 rm -f conftest.$ac_objext conftest$ac_exeext
11515 if { (ac_try="$ac_link"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_link") 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest$ac_exeext &&
11531 $as_test_x conftest$ac_exeext; then
11532 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11533 else
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11538 fi
11540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11545 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11546 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11547 cat >>confdefs.h <<_ACEOF
11548 #define HAVE_LIBOSMESA 1
11549 _ACEOF
11551 LIBS="-lOSMesa $LIBS"
11553 else
11554 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11555 See \`config.log' for more details." >&5
11556 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11557 See \`config.log' for more details." >&2;}
11558 { (exit 1); exit 1; }; }
11559 fi
11561 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11562 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11563 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11564 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 fi
11567 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11568 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11569 else
11570 # Is the header compilable?
11571 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11572 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11580 #include <GL/osmesa.h>
11581 _ACEOF
11582 rm -f conftest.$ac_objext
11583 if { (ac_try="$ac_compile"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_compile") 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } && {
11596 test -z "$ac_c_werror_flag" ||
11597 test ! -s conftest.err
11598 } && test -s conftest.$ac_objext; then
11599 ac_header_compiler=yes
11600 else
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ac_header_compiler=no
11605 fi
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11609 echo "${ECHO_T}$ac_header_compiler" >&6; }
11611 # Is the header present?
11612 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11613 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h. */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 #include <GL/osmesa.h>
11621 _ACEOF
11622 if { (ac_try="$ac_cpp conftest.$ac_ext"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } >/dev/null && {
11635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 }; then
11638 ac_header_preproc=yes
11639 else
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 ac_header_preproc=no
11644 fi
11646 rm -f conftest.err conftest.$ac_ext
11647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11648 echo "${ECHO_T}$ac_header_preproc" >&6; }
11650 # So? What about this header?
11651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11652 yes:no: )
11653 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11654 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11656 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11657 ac_header_preproc=yes
11658 ;;
11659 no:yes:* )
11660 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11661 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11663 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11665 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11666 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11667 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11668 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11669 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11670 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11671 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11673 ;;
11674 esac
11675 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11676 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11677 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11681 fi
11682 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11683 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11685 fi
11686 if test $ac_cv_header_GL_osmesa_h = yes; then
11687 :
11688 else
11689 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11690 See \`config.log' for more details." >&5
11691 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11692 See \`config.log' for more details." >&2;}
11693 { (exit 1); exit 1; }; }
11694 fi
11697 HAVE_OSMESA='yes'
11698 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11700 cat >>confdefs.h <<\_ACEOF
11701 #define HAVE_OSMESA 1
11702 _ACEOF
11704 else
11707 if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
11709 pkg_failed=no
11710 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11711 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11713 if test -n "$LIBGL_CFLAGS"; then
11714 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11715 elif test -n "$PKG_CONFIG"; then
11716 if test -n "$PKG_CONFIG" && \
11717 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11718 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; then
11722 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11723 else
11724 pkg_failed=yes
11725 fi
11726 else
11727 pkg_failed=untried
11728 fi
11729 if test -n "$LIBGL_LIBS"; then
11730 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11731 elif test -n "$PKG_CONFIG"; then
11732 if test -n "$PKG_CONFIG" && \
11733 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11734 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; then
11738 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11739 else
11740 pkg_failed=yes
11741 fi
11742 else
11743 pkg_failed=untried
11744 fi
11748 if test $pkg_failed = yes; then
11750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11751 _pkg_short_errors_supported=yes
11752 else
11753 _pkg_short_errors_supported=no
11754 fi
11755 if test $_pkg_short_errors_supported = yes; then
11756 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11757 else
11758 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11759 fi
11760 # Put the nasty error message in config.log where it belongs
11761 echo "$LIBGL_PKG_ERRORS" >&5
11763 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11765 $LIBGL_PKG_ERRORS
11767 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11768 installed software in a non-standard prefix.
11770 Alternatively, you may set the environment variables LIBGL_CFLAGS
11771 and LIBGL_LIBS to avoid the need to call pkg-config.
11772 See the pkg-config man page for more details.
11773 " >&5
11774 echo "$as_me: error: Package requirements (gl ) were not met:
11776 $LIBGL_PKG_ERRORS
11778 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11779 installed software in a non-standard prefix.
11781 Alternatively, you may set the environment variables LIBGL_CFLAGS
11782 and LIBGL_LIBS to avoid the need to call pkg-config.
11783 See the pkg-config man page for more details.
11784 " >&2;}
11785 { (exit 1); exit 1; }; }
11786 elif test $pkg_failed = untried; then
11787 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11788 is in your PATH or set the PKG_CONFIG environment variable to the full
11789 path to pkg-config.
11791 Alternatively, you may set the environment variables LIBGL_CFLAGS
11792 and LIBGL_LIBS to avoid the need to call pkg-config.
11793 See the pkg-config man page for more details.
11795 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11796 See \`config.log' for more details." >&5
11797 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11798 is in your PATH or set the PKG_CONFIG environment variable to the full
11799 path to pkg-config.
11801 Alternatively, you may set the environment variables LIBGL_CFLAGS
11802 and LIBGL_LIBS to avoid the need to call pkg-config.
11803 See the pkg-config man page for more details.
11805 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11806 See \`config.log' for more details." >&2;}
11807 { (exit 1); exit 1; }; }
11808 else
11809 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11810 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11811 { echo "$as_me:$LINENO: result: yes" >&5
11812 echo "${ECHO_T}yes" >&6; }
11813 :
11814 fi
11815 LIBS="$LIBS $LIBGL_LIBS";
11816 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11817 else
11818 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11819 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11820 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h. */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11831 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11833 /* System header to define __stub macros and hopefully few prototypes,
11834 which can conflict with char NSOpenGLGetVersion (); below.
11835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11836 <limits.h> exists even on freestanding compilers. */
11838 #ifdef __STDC__
11839 # include <limits.h>
11840 #else
11841 # include <assert.h>
11842 #endif
11844 #undef NSOpenGLGetVersion
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11849 #ifdef __cplusplus
11850 extern "C"
11851 #endif
11852 char NSOpenGLGetVersion ();
11853 /* The GNU C library defines this for functions which it implements
11854 to always fail with ENOSYS. Some functions are actually named
11855 something starting with __ and the normal name is an alias. */
11856 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11857 choke me
11858 #endif
11860 int
11861 main ()
11862 {
11863 return NSOpenGLGetVersion ();
11864 ;
11865 return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (ac_try="$ac_link"
11870 case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_link") 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } && {
11882 test -z "$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 } && test -s conftest$ac_exeext &&
11885 $as_test_x conftest$ac_exeext; then
11886 ac_cv_func_NSOpenGLGetVersion=yes
11887 else
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_cv_func_NSOpenGLGetVersion=no
11892 fi
11894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11895 conftest$ac_exeext conftest.$ac_ext
11896 fi
11897 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11898 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11899 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11901 HAVE_NSGL='yes'
11902 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11904 cat >>confdefs.h <<\_ACEOF
11905 #define HAVE_NSGL 1
11906 _ACEOF
11908 fi
11910 fi
11912 if test "x$HAVE_GTK_X11" = "xyes"; then
11913 if test "x$APPLE_BUILD" = "xyes"; then
11914 LIBS="$LIBS -L/usr/X11/lib -lGL"
11915 fi
11916 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11917 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11918 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11929 #define glXQueryVersion innocuous_glXQueryVersion
11931 /* System header to define __stub macros and hopefully few prototypes,
11932 which can conflict with char glXQueryVersion (); below.
11933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934 <limits.h> exists even on freestanding compilers. */
11936 #ifdef __STDC__
11937 # include <limits.h>
11938 #else
11939 # include <assert.h>
11940 #endif
11942 #undef glXQueryVersion
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char glXQueryVersion ();
11951 /* The GNU C library defines this for functions which it implements
11952 to always fail with ENOSYS. Some functions are actually named
11953 something starting with __ and the normal name is an alias. */
11954 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11955 choke me
11956 #endif
11958 int
11959 main ()
11960 {
11961 return glXQueryVersion ();
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_link") 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && {
11980 test -z "$ac_c_werror_flag" ||
11981 test ! -s conftest.err
11982 } && test -s conftest$ac_exeext &&
11983 $as_test_x conftest$ac_exeext; then
11984 ac_cv_func_glXQueryVersion=yes
11985 else
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ac_cv_func_glXQueryVersion=no
11990 fi
11992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11993 conftest$ac_exeext conftest.$ac_ext
11994 fi
11995 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11996 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11997 if test $ac_cv_func_glXQueryVersion = yes; then
11999 HAVE_GLX='yes'
12000 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_GLX 1
12004 _ACEOF
12006 fi
12008 fi
12011 fi
12018 if test "x$HAVE_OSMESA" = "xyes"; then
12019 VIDEO_OSMESA_TRUE=
12020 VIDEO_OSMESA_FALSE='#'
12021 else
12022 VIDEO_OSMESA_TRUE='#'
12023 VIDEO_OSMESA_FALSE=
12024 fi
12028 if test "x$HAVE_GLX" = "xyes"; then
12029 VIDEO_GLX_TRUE=
12030 VIDEO_GLX_FALSE='#'
12031 else
12032 VIDEO_GLX_TRUE='#'
12033 VIDEO_GLX_FALSE=
12034 fi
12038 if test "x$HAVE_NSGL" = "xyes"; then
12039 VIDEO_NSGL_TRUE=
12040 VIDEO_NSGL_FALSE='#'
12041 else
12042 VIDEO_NSGL_TRUE='#'
12043 VIDEO_NSGL_FALSE=
12044 fi
12047 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
12048 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
12049 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
12059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12060 #define glGenFramebuffers innocuous_glGenFramebuffers
12062 /* System header to define __stub macros and hopefully few prototypes,
12063 which can conflict with char glGenFramebuffers (); below.
12064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 <limits.h> exists even on freestanding compilers. */
12067 #ifdef __STDC__
12068 # include <limits.h>
12069 #else
12070 # include <assert.h>
12071 #endif
12073 #undef glGenFramebuffers
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char glGenFramebuffers ();
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
12086 choke me
12087 #endif
12089 int
12090 main ()
12091 {
12092 return glGenFramebuffers ();
12093 ;
12094 return 0;
12095 }
12096 _ACEOF
12097 rm -f conftest.$ac_objext conftest$ac_exeext
12098 if { (ac_try="$ac_link"
12099 case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12102 esac
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_link") 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } && {
12111 test -z "$ac_c_werror_flag" ||
12112 test ! -s conftest.err
12113 } && test -s conftest$ac_exeext &&
12114 $as_test_x conftest$ac_exeext; then
12115 ac_cv_func_glGenFramebuffers=yes
12116 else
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 ac_cv_func_glGenFramebuffers=no
12121 fi
12123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12124 conftest$ac_exeext conftest.$ac_ext
12125 fi
12126 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
12127 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
12128 if test $ac_cv_func_glGenFramebuffers = yes; then
12130 cat >>confdefs.h <<\_ACEOF
12131 #define HAVE_OPENGL_FBO 1
12132 _ACEOF
12134 fi
12136 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
12137 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
12138 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h. */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
12148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12149 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
12151 /* System header to define __stub macros and hopefully few prototypes,
12152 which can conflict with char glGenFramebuffersEXT (); below.
12153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12154 <limits.h> exists even on freestanding compilers. */
12156 #ifdef __STDC__
12157 # include <limits.h>
12158 #else
12159 # include <assert.h>
12160 #endif
12162 #undef glGenFramebuffersEXT
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char glGenFramebuffersEXT ();
12171 /* The GNU C library defines this for functions which it implements
12172 to always fail with ENOSYS. Some functions are actually named
12173 something starting with __ and the normal name is an alias. */
12174 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
12175 choke me
12176 #endif
12178 int
12179 main ()
12180 {
12181 return glGenFramebuffersEXT ();
12182 ;
12183 return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (ac_try="$ac_link"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_link") 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } && {
12200 test -z "$ac_c_werror_flag" ||
12201 test ! -s conftest.err
12202 } && test -s conftest$ac_exeext &&
12203 $as_test_x conftest$ac_exeext; then
12204 ac_cv_func_glGenFramebuffersEXT=yes
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ac_cv_func_glGenFramebuffersEXT=no
12210 fi
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 fi
12215 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
12216 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
12217 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
12219 cat >>confdefs.h <<\_ACEOF
12220 #define HAVE_OPENGL_FBO_EXT 1
12221 _ACEOF
12223 fi
12225 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
12226 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
12227 if test "${ac_cv_func_glCreateShader+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h. */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
12237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12238 #define glCreateShader innocuous_glCreateShader
12240 /* System header to define __stub macros and hopefully few prototypes,
12241 which can conflict with char glCreateShader (); below.
12242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12243 <limits.h> exists even on freestanding compilers. */
12245 #ifdef __STDC__
12246 # include <limits.h>
12247 #else
12248 # include <assert.h>
12249 #endif
12251 #undef glCreateShader
12253 /* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
12256 #ifdef __cplusplus
12257 extern "C"
12258 #endif
12259 char glCreateShader ();
12260 /* The GNU C library defines this for functions which it implements
12261 to always fail with ENOSYS. Some functions are actually named
12262 something starting with __ and the normal name is an alias. */
12263 #if defined __stub_glCreateShader || defined __stub___glCreateShader
12264 choke me
12265 #endif
12267 int
12268 main ()
12269 {
12270 return glCreateShader ();
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_link") 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest$ac_exeext &&
12292 $as_test_x conftest$ac_exeext; then
12293 ac_cv_func_glCreateShader=yes
12294 else
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 ac_cv_func_glCreateShader=no
12299 fi
12301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302 conftest$ac_exeext conftest.$ac_ext
12303 fi
12304 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12305 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12306 if test $ac_cv_func_glCreateShader = yes; then
12308 cat >>confdefs.h <<\_ACEOF
12309 #define HAVE_OPENGL_SHADER 1
12310 _ACEOF
12312 fi
12314 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12315 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12316 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h. */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12325 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12327 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12329 /* System header to define __stub macros and hopefully few prototypes,
12330 which can conflict with char glCreateShaderObjectARB (); below.
12331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12332 <limits.h> exists even on freestanding compilers. */
12334 #ifdef __STDC__
12335 # include <limits.h>
12336 #else
12337 # include <assert.h>
12338 #endif
12340 #undef glCreateShaderObjectARB
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 char glCreateShaderObjectARB ();
12349 /* The GNU C library defines this for functions which it implements
12350 to always fail with ENOSYS. Some functions are actually named
12351 something starting with __ and the normal name is an alias. */
12352 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12353 choke me
12354 #endif
12356 int
12357 main ()
12358 {
12359 return glCreateShaderObjectARB ();
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (ac_try="$ac_link"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_link") 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest$ac_exeext &&
12381 $as_test_x conftest$ac_exeext; then
12382 ac_cv_func_glCreateShaderObjectARB=yes
12383 else
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ac_cv_func_glCreateShaderObjectARB=no
12388 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12391 conftest$ac_exeext conftest.$ac_ext
12392 fi
12393 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12394 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12395 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12397 cat >>confdefs.h <<\_ACEOF
12398 #define HAVE_OPENGL_SHADER_ARB 1
12399 _ACEOF
12401 fi
12403 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12404 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12405 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12416 #define glClampColorARB innocuous_glClampColorARB
12418 /* System header to define __stub macros and hopefully few prototypes,
12419 which can conflict with char glClampColorARB (); below.
12420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12421 <limits.h> exists even on freestanding compilers. */
12423 #ifdef __STDC__
12424 # include <limits.h>
12425 #else
12426 # include <assert.h>
12427 #endif
12429 #undef glClampColorARB
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12434 #ifdef __cplusplus
12435 extern "C"
12436 #endif
12437 char glClampColorARB ();
12438 /* The GNU C library defines this for functions which it implements
12439 to always fail with ENOSYS. Some functions are actually named
12440 something starting with __ and the normal name is an alias. */
12441 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12442 choke me
12443 #endif
12445 int
12446 main ()
12447 {
12448 return glClampColorARB ();
12449 ;
12450 return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (ac_try="$ac_link"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_link") 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest$ac_exeext &&
12470 $as_test_x conftest$ac_exeext; then
12471 ac_cv_func_glClampColorARB=yes
12472 else
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_cv_func_glClampColorARB=no
12477 fi
12479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12480 conftest$ac_exeext conftest.$ac_ext
12481 fi
12482 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12483 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12484 if test $ac_cv_func_glClampColorARB = yes; then
12486 cat >>confdefs.h <<\_ACEOF
12487 #define HAVE_OPENGL_CLAMP_COLOR 1
12488 _ACEOF
12490 fi
12492 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12493 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12494 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12505 #define glClearDepthf innocuous_glClearDepthf
12507 /* System header to define __stub macros and hopefully few prototypes,
12508 which can conflict with char glClearDepthf (); below.
12509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12510 <limits.h> exists even on freestanding compilers. */
12512 #ifdef __STDC__
12513 # include <limits.h>
12514 #else
12515 # include <assert.h>
12516 #endif
12518 #undef glClearDepthf
12520 /* Override any GCC internal prototype to avoid an error.
12521 Use char because int might match the return type of a GCC
12522 builtin and then its argument prototype would still apply. */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 char glClearDepthf ();
12527 /* The GNU C library defines this for functions which it implements
12528 to always fail with ENOSYS. Some functions are actually named
12529 something starting with __ and the normal name is an alias. */
12530 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12531 choke me
12532 #endif
12534 int
12535 main ()
12536 {
12537 return glClearDepthf ();
12538 ;
12539 return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext &&
12559 $as_test_x conftest$ac_exeext; then
12560 ac_cv_func_glClearDepthf=yes
12561 else
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_cv_func_glClearDepthf=no
12566 fi
12568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12569 conftest$ac_exeext conftest.$ac_ext
12570 fi
12571 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12572 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12573 if test $ac_cv_func_glClearDepthf = yes; then
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12577 _ACEOF
12579 fi
12581 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12582 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12583 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12594 #define glAreTexturesResident innocuous_glAreTexturesResident
12596 /* System header to define __stub macros and hopefully few prototypes,
12597 which can conflict with char glAreTexturesResident (); below.
12598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12599 <limits.h> exists even on freestanding compilers. */
12601 #ifdef __STDC__
12602 # include <limits.h>
12603 #else
12604 # include <assert.h>
12605 #endif
12607 #undef glAreTexturesResident
12609 /* Override any GCC internal prototype to avoid an error.
12610 Use char because int might match the return type of a GCC
12611 builtin and then its argument prototype would still apply. */
12612 #ifdef __cplusplus
12613 extern "C"
12614 #endif
12615 char glAreTexturesResident ();
12616 /* The GNU C library defines this for functions which it implements
12617 to always fail with ENOSYS. Some functions are actually named
12618 something starting with __ and the normal name is an alias. */
12619 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12620 choke me
12621 #endif
12623 int
12624 main ()
12625 {
12626 return glAreTexturesResident ();
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest.$ac_objext conftest$ac_exeext
12632 if { (ac_try="$ac_link"
12633 case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12636 esac
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_link") 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } && {
12645 test -z "$ac_c_werror_flag" ||
12646 test ! -s conftest.err
12647 } && test -s conftest$ac_exeext &&
12648 $as_test_x conftest$ac_exeext; then
12649 ac_cv_func_glAreTexturesResident=yes
12650 else
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 ac_cv_func_glAreTexturesResident=no
12655 fi
12657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12658 conftest$ac_exeext conftest.$ac_ext
12659 fi
12660 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12661 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12662 if test $ac_cv_func_glAreTexturesResident = yes; then
12664 cat >>confdefs.h <<\_ACEOF
12665 #define HAVE_OPENGL_TEX_RESIDENT 1
12666 _ACEOF
12668 fi
12670 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
12671 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
12672 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
12682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12683 #define glDrawBuffer innocuous_glDrawBuffer
12685 /* System header to define __stub macros and hopefully few prototypes,
12686 which can conflict with char glDrawBuffer (); below.
12687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12688 <limits.h> exists even on freestanding compilers. */
12690 #ifdef __STDC__
12691 # include <limits.h>
12692 #else
12693 # include <assert.h>
12694 #endif
12696 #undef glDrawBuffer
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char glDrawBuffer ();
12705 /* The GNU C library defines this for functions which it implements
12706 to always fail with ENOSYS. Some functions are actually named
12707 something starting with __ and the normal name is an alias. */
12708 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
12709 choke me
12710 #endif
12712 int
12713 main ()
12714 {
12715 return glDrawBuffer ();
12716 ;
12717 return 0;
12718 }
12719 _ACEOF
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (ac_try="$ac_link"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12725 esac
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 (eval "$ac_link") 2>conftest.er1
12728 ac_status=$?
12729 grep -v '^ *+' conftest.er1 >conftest.err
12730 rm -f conftest.er1
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } && {
12734 test -z "$ac_c_werror_flag" ||
12735 test ! -s conftest.err
12736 } && test -s conftest$ac_exeext &&
12737 $as_test_x conftest$ac_exeext; then
12738 ac_cv_func_glDrawBuffer=yes
12739 else
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12743 ac_cv_func_glDrawBuffer=no
12744 fi
12746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12747 conftest$ac_exeext conftest.$ac_ext
12748 fi
12749 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
12750 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
12751 if test $ac_cv_func_glDrawBuffer = yes; then
12753 cat >>confdefs.h <<\_ACEOF
12754 #define HAVE_OPENGL_DRAW_BUFFER 1
12755 _ACEOF
12757 fi
12759 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12760 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12761 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h. */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12770 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12772 #define glTexEnvi innocuous_glTexEnvi
12774 /* System header to define __stub macros and hopefully few prototypes,
12775 which can conflict with char glTexEnvi (); below.
12776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12777 <limits.h> exists even on freestanding compilers. */
12779 #ifdef __STDC__
12780 # include <limits.h>
12781 #else
12782 # include <assert.h>
12783 #endif
12785 #undef glTexEnvi
12787 /* Override any GCC internal prototype to avoid an error.
12788 Use char because int might match the return type of a GCC
12789 builtin and then its argument prototype would still apply. */
12790 #ifdef __cplusplus
12791 extern "C"
12792 #endif
12793 char glTexEnvi ();
12794 /* The GNU C library defines this for functions which it implements
12795 to always fail with ENOSYS. Some functions are actually named
12796 something starting with __ and the normal name is an alias. */
12797 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12798 choke me
12799 #endif
12801 int
12802 main ()
12803 {
12804 return glTexEnvi ();
12805 ;
12806 return 0;
12807 }
12808 _ACEOF
12809 rm -f conftest.$ac_objext conftest$ac_exeext
12810 if { (ac_try="$ac_link"
12811 case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12814 esac
12815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12816 (eval "$ac_link") 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } && {
12823 test -z "$ac_c_werror_flag" ||
12824 test ! -s conftest.err
12825 } && test -s conftest$ac_exeext &&
12826 $as_test_x conftest$ac_exeext; then
12827 ac_cv_func_glTexEnvi=yes
12828 else
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 ac_cv_func_glTexEnvi=no
12833 fi
12835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12836 conftest$ac_exeext conftest.$ac_ext
12837 fi
12838 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12839 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12840 if test $ac_cv_func_glTexEnvi = yes; then
12842 cat >>confdefs.h <<\_ACEOF
12843 #define HAVE_OPENGL_FIXEDFUNC 1
12844 _ACEOF
12846 fi
12849 if test "x$enable_translator" != "xno"; then
12850 case $host_cpu in
12851 i386|i486|i586|i686|x86_64)
12852 SH4_TRANSLATOR="x86"
12854 cat >>confdefs.h <<_ACEOF
12855 #define SH4_TRANSLATOR TARGET_X86
12856 _ACEOF
12857 ;;
12858 esac
12859 fi
12862 if test "$SH4_TRANSLATOR" = "x86"; then
12863 BUILD_SH4X86_TRUE=
12864 BUILD_SH4X86_FALSE='#'
12865 else
12866 BUILD_SH4X86_TRUE='#'
12867 BUILD_SH4X86_FALSE=
12868 fi
12871 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12872 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12873 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12874 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 fi
12877 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12878 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12879 else
12880 # Is the header compilable?
12881 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12882 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 $ac_includes_default
12890 #include <CoreAudio/CoreAudio.h>
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (ac_try="$ac_compile"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_compile") 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest.$ac_objext; then
12909 ac_header_compiler=yes
12910 else
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 ac_header_compiler=no
12915 fi
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12919 echo "${ECHO_T}$ac_header_compiler" >&6; }
12921 # Is the header present?
12922 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12923 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h. */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 #include <CoreAudio/CoreAudio.h>
12931 _ACEOF
12932 if { (ac_try="$ac_cpp conftest.$ac_ext"
12933 case "(($ac_try" in
12934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12936 esac
12937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12939 ac_status=$?
12940 grep -v '^ *+' conftest.er1 >conftest.err
12941 rm -f conftest.er1
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } >/dev/null && {
12945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12946 test ! -s conftest.err
12947 }; then
12948 ac_header_preproc=yes
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12953 ac_header_preproc=no
12954 fi
12956 rm -f conftest.err conftest.$ac_ext
12957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12958 echo "${ECHO_T}$ac_header_preproc" >&6; }
12960 # So? What about this header?
12961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12962 yes:no: )
12963 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12964 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
12966 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
12967 ac_header_preproc=yes
12968 ;;
12969 no:yes:* )
12970 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
12971 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
12973 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
12975 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
12977 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
12979 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
12981 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
12983 ;;
12984 esac
12985 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12986 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12987 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
12991 fi
12992 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12993 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12995 fi
12996 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
12998 HAVE_CORE_AUDIO=yes
12999 LIBS="$LIBS -framework CoreAudio"
13000 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_CORE_AUDIO 1
13004 _ACEOF
13006 else
13007 true
13008 fi
13013 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
13014 AUDIO_OSX_TRUE=
13015 AUDIO_OSX_FALSE='#'
13016 else
13017 AUDIO_OSX_TRUE='#'
13018 AUDIO_OSX_FALSE=
13019 fi
13022 if test "x$with_sdl" != "xno"; then
13024 pkg_failed=no
13025 { echo "$as_me:$LINENO: checking for SDL" >&5
13026 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
13028 if test -n "$SDL_CFLAGS"; then
13029 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13030 elif test -n "$PKG_CONFIG"; then
13031 if test -n "$PKG_CONFIG" && \
13032 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13033 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; then
13037 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13038 else
13039 pkg_failed=yes
13040 fi
13041 else
13042 pkg_failed=untried
13043 fi
13044 if test -n "$SDL_LIBS"; then
13045 pkg_cv_SDL_LIBS="$SDL_LIBS"
13046 elif test -n "$PKG_CONFIG"; then
13047 if test -n "$PKG_CONFIG" && \
13048 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13049 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; then
13053 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13054 else
13055 pkg_failed=yes
13056 fi
13057 else
13058 pkg_failed=untried
13059 fi
13063 if test $pkg_failed = yes; then
13065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13066 _pkg_short_errors_supported=yes
13067 else
13068 _pkg_short_errors_supported=no
13069 fi
13070 if test $_pkg_short_errors_supported = yes; then
13071 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
13072 else
13073 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
13074 fi
13075 # Put the nasty error message in config.log where it belongs
13076 echo "$SDL_PKG_ERRORS" >&5
13078 { echo "$as_me:$LINENO: result: no" >&5
13079 echo "${ECHO_T}no" >&6; }
13081 if test "x$with_sdl" = "xyes"; then
13082 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13083 See \`config.log' for more details." >&5
13084 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13085 See \`config.log' for more details." >&2;}
13086 { (exit 1); exit 1; }; }
13087 fi
13089 elif test $pkg_failed = untried; then
13091 if test "x$with_sdl" = "xyes"; then
13092 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13093 See \`config.log' for more details." >&5
13094 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13095 See \`config.log' for more details." >&2;}
13096 { (exit 1); exit 1; }; }
13097 fi
13099 else
13100 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13101 SDL_LIBS=$pkg_cv_SDL_LIBS
13102 { echo "$as_me:$LINENO: result: yes" >&5
13103 echo "${ECHO_T}yes" >&6; }
13105 HAVE_SDL='yes'
13106 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
13108 cat >>confdefs.h <<\_ACEOF
13109 #define HAVE_SDL 1
13110 _ACEOF
13113 fi
13114 fi
13117 if test "$HAVE_SDL" = 'yes' ; then
13118 AUDIO_SDL_TRUE=
13119 AUDIO_SDL_FALSE='#'
13120 else
13121 AUDIO_SDL_TRUE='#'
13122 AUDIO_SDL_FALSE=
13123 fi
13126 if test "x$with_pulse" != "xno"; then
13128 pkg_failed=no
13129 { echo "$as_me:$LINENO: checking for PULSE" >&5
13130 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
13132 if test -n "$PULSE_CFLAGS"; then
13133 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
13134 elif test -n "$PKG_CONFIG"; then
13135 if test -n "$PKG_CONFIG" && \
13136 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13137 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; then
13141 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
13142 else
13143 pkg_failed=yes
13144 fi
13145 else
13146 pkg_failed=untried
13147 fi
13148 if test -n "$PULSE_LIBS"; then
13149 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
13150 elif test -n "$PKG_CONFIG"; then
13151 if test -n "$PKG_CONFIG" && \
13152 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13153 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; then
13157 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
13158 else
13159 pkg_failed=yes
13160 fi
13161 else
13162 pkg_failed=untried
13163 fi
13167 if test $pkg_failed = yes; then
13169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13170 _pkg_short_errors_supported=yes
13171 else
13172 _pkg_short_errors_supported=no
13173 fi
13174 if test $_pkg_short_errors_supported = yes; then
13175 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
13176 else
13177 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
13178 fi
13179 # Put the nasty error message in config.log where it belongs
13180 echo "$PULSE_PKG_ERRORS" >&5
13182 { echo "$as_me:$LINENO: result: no" >&5
13183 echo "${ECHO_T}no" >&6; }
13185 if test "x$with_pulse" = "xyes"; then
13186 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13187 See \`config.log' for more details." >&5
13188 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13189 See \`config.log' for more details." >&2;}
13190 { (exit 1); exit 1; }; }
13191 fi
13193 elif test $pkg_failed = untried; then
13195 if test "x$with_pulse" = "xyes"; then
13196 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13197 See \`config.log' for more details." >&5
13198 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13199 See \`config.log' for more details." >&2;}
13200 { (exit 1); exit 1; }; }
13201 fi
13203 else
13204 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
13205 PULSE_LIBS=$pkg_cv_PULSE_LIBS
13206 { echo "$as_me:$LINENO: result: yes" >&5
13207 echo "${ECHO_T}yes" >&6; }
13209 HAVE_PULSE='yes'
13210 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
13212 cat >>confdefs.h <<\_ACEOF
13213 #define HAVE_PULSE 1
13214 _ACEOF
13217 fi
13218 fi
13221 if test "$HAVE_PULSE" = 'yes' ; then
13222 AUDIO_PULSE_TRUE=
13223 AUDIO_PULSE_FALSE='#'
13224 else
13225 AUDIO_PULSE_TRUE='#'
13226 AUDIO_PULSE_FALSE=
13227 fi
13230 if test "x$with_esd" != "xno"; then
13232 pkg_failed=no
13233 { echo "$as_me:$LINENO: checking for ESOUND" >&5
13234 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
13236 if test -n "$ESOUND_CFLAGS"; then
13237 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
13238 elif test -n "$PKG_CONFIG"; then
13239 if test -n "$PKG_CONFIG" && \
13240 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13241 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; then
13245 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
13246 else
13247 pkg_failed=yes
13248 fi
13249 else
13250 pkg_failed=untried
13251 fi
13252 if test -n "$ESOUND_LIBS"; then
13253 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
13254 elif test -n "$PKG_CONFIG"; then
13255 if test -n "$PKG_CONFIG" && \
13256 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13257 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; then
13261 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
13262 else
13263 pkg_failed=yes
13264 fi
13265 else
13266 pkg_failed=untried
13267 fi
13271 if test $pkg_failed = yes; then
13273 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13274 _pkg_short_errors_supported=yes
13275 else
13276 _pkg_short_errors_supported=no
13277 fi
13278 if test $_pkg_short_errors_supported = yes; then
13279 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
13280 else
13281 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
13282 fi
13283 # Put the nasty error message in config.log where it belongs
13284 echo "$ESOUND_PKG_ERRORS" >&5
13286 { echo "$as_me:$LINENO: result: no" >&5
13287 echo "${ECHO_T}no" >&6; }
13289 if test "x$with_esd" = "xyes"; then
13290 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13291 See \`config.log' for more details." >&5
13292 echo "$as_me: error: ESounD audio package could not be found (but was required)
13293 See \`config.log' for more details." >&2;}
13294 { (exit 1); exit 1; }; }
13295 fi
13297 elif test $pkg_failed = untried; then
13299 if test "x$with_esd" = "xyes"; then
13300 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13301 See \`config.log' for more details." >&5
13302 echo "$as_me: error: ESounD audio package could not be found (but was required)
13303 See \`config.log' for more details." >&2;}
13304 { (exit 1); exit 1; }; }
13305 fi
13307 else
13308 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
13309 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
13310 { echo "$as_me:$LINENO: result: yes" >&5
13311 echo "${ECHO_T}yes" >&6; }
13313 HAVE_ESOUND='yes'
13314 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
13316 cat >>confdefs.h <<\_ACEOF
13317 #define HAVE_ESOUND 1
13318 _ACEOF
13321 fi
13322 fi
13325 if test "$HAVE_ESOUND" = 'yes' ; then
13326 AUDIO_ESOUND_TRUE=
13327 AUDIO_ESOUND_FALSE='#'
13328 else
13329 AUDIO_ESOUND_TRUE='#'
13330 AUDIO_ESOUND_FALSE=
13331 fi
13335 pkg_failed=no
13336 { echo "$as_me:$LINENO: checking for ALSA" >&5
13337 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
13339 if test -n "$ALSA_CFLAGS"; then
13340 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13341 elif test -n "$PKG_CONFIG"; then
13342 if test -n "$PKG_CONFIG" && \
13343 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13344 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; then
13348 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13349 else
13350 pkg_failed=yes
13351 fi
13352 else
13353 pkg_failed=untried
13354 fi
13355 if test -n "$ALSA_LIBS"; then
13356 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13357 elif test -n "$PKG_CONFIG"; then
13358 if test -n "$PKG_CONFIG" && \
13359 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13360 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; then
13364 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
13365 else
13366 pkg_failed=yes
13367 fi
13368 else
13369 pkg_failed=untried
13370 fi
13374 if test $pkg_failed = yes; then
13376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13377 _pkg_short_errors_supported=yes
13378 else
13379 _pkg_short_errors_supported=no
13380 fi
13381 if test $_pkg_short_errors_supported = yes; then
13382 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13383 else
13384 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13385 fi
13386 # Put the nasty error message in config.log where it belongs
13387 echo "$ALSA_PKG_ERRORS" >&5
13389 { echo "$as_me:$LINENO: result: no" >&5
13390 echo "${ECHO_T}no" >&6; }
13391 true
13392 elif test $pkg_failed = untried; then
13393 true
13394 else
13395 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13396 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13397 { echo "$as_me:$LINENO: result: yes" >&5
13398 echo "${ECHO_T}yes" >&6; }
13400 HAVE_ALSA='yes'
13401 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13403 cat >>confdefs.h <<\_ACEOF
13404 #define HAVE_ALSA 1
13405 _ACEOF
13407 fi
13410 if test "$HAVE_ALSA" = 'yes' ; then
13411 AUDIO_ALSA_TRUE=
13412 AUDIO_ALSA_FALSE='#'
13413 else
13414 AUDIO_ALSA_TRUE='#'
13415 AUDIO_ALSA_FALSE=
13416 fi
13420 if test "$ANDROID_BUILD" != "yes"; then
13421 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13422 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13423 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13424 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 fi
13427 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13428 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13429 else
13430 # Is the header compilable?
13431 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13432 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 #include <linux/cdrom.h>
13441 _ACEOF
13442 rm -f conftest.$ac_objext
13443 if { (ac_try="$ac_compile"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13450 ac_status=$?
13451 grep -v '^ *+' conftest.er1 >conftest.err
13452 rm -f conftest.er1
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } && {
13456 test -z "$ac_c_werror_flag" ||
13457 test ! -s conftest.err
13458 } && test -s conftest.$ac_objext; then
13459 ac_header_compiler=yes
13460 else
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_header_compiler=no
13465 fi
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13469 echo "${ECHO_T}$ac_header_compiler" >&6; }
13471 # Is the header present?
13472 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13473 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h. */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 #include <linux/cdrom.h>
13481 _ACEOF
13482 if { (ac_try="$ac_cpp conftest.$ac_ext"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } >/dev/null && {
13495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 }; then
13498 ac_header_preproc=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_preproc=no
13504 fi
13506 rm -f conftest.err conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13508 echo "${ECHO_T}$ac_header_preproc" >&6; }
13510 # So? What about this header?
13511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13512 yes:no: )
13513 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13514 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13516 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13517 ac_header_preproc=yes
13518 ;;
13519 no:yes:* )
13520 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13521 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13523 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13525 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13527 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13529 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13530 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13531 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13533 ;;
13534 esac
13535 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13536 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13537 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13541 fi
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13545 fi
13546 if test $ac_cv_header_linux_cdrom_h = yes; then
13548 CDROM_DRIVER=linux
13549 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13550 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13551 old_CFLAGS="$CFLAGS"
13552 CFLAGS="$CFLAGS $STDCFLAG"
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 #include <linux/cdrom.h>
13560 int
13561 main ()
13562 {
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (ac_try="$ac_compile"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest.$ac_objext; then
13585 { echo "$as_me:$LINENO: result: Yes" >&5
13586 echo "${ECHO_T}Yes" >&6; }
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13592 { echo "$as_me:$LINENO: result: No" >&5
13593 echo "${ECHO_T}No" >&6; }
13594 STDCFLAG="-std=gnu99"
13595 fi
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 CFLAGS="$old_CFLAGS"
13600 else
13601 true
13602 fi
13605 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13606 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13607 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13608 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 fi
13611 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13612 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13613 else
13614 # Is the header compilable?
13615 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13616 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h. */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 $ac_includes_default
13624 #include <IOKit/IOKitLib.h>
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631 esac
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_compile") 2>conftest.er1
13634 ac_status=$?
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } && {
13640 test -z "$ac_c_werror_flag" ||
13641 test ! -s conftest.err
13642 } && test -s conftest.$ac_objext; then
13643 ac_header_compiler=yes
13644 else
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_header_compiler=no
13649 fi
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13653 echo "${ECHO_T}$ac_header_compiler" >&6; }
13655 # Is the header present?
13656 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13657 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 #include <IOKit/IOKitLib.h>
13665 _ACEOF
13666 if { (ac_try="$ac_cpp conftest.$ac_ext"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } >/dev/null && {
13679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13680 test ! -s conftest.err
13681 }; then
13682 ac_header_preproc=yes
13683 else
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ac_header_preproc=no
13688 fi
13690 rm -f conftest.err conftest.$ac_ext
13691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13692 echo "${ECHO_T}$ac_header_preproc" >&6; }
13694 # So? What about this header?
13695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13696 yes:no: )
13697 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13698 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13700 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13701 ac_header_preproc=yes
13702 ;;
13703 no:yes:* )
13704 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13705 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13706 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13707 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13708 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13709 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13710 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13711 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13712 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13713 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13715 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13717 ;;
13718 esac
13719 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13720 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13721 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13725 fi
13726 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13727 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13729 fi
13730 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13732 CDROM_DRIVER=osx
13733 LIBS="$LIBS -framework IOKit"
13734 else
13735 true
13736 fi
13739 fi
13742 if test "x$CDROM_DRIVER" = "xlinux"; then
13743 CDROM_LINUX_TRUE=
13744 CDROM_LINUX_FALSE='#'
13745 else
13746 CDROM_LINUX_TRUE='#'
13747 CDROM_LINUX_FALSE=
13748 fi
13752 if test "x$CDROM_DRIVER" = "xosx"; then
13753 CDROM_OSX_TRUE=
13754 CDROM_OSX_FALSE='#'
13755 else
13756 CDROM_OSX_TRUE='#'
13757 CDROM_OSX_FALSE=
13758 fi
13762 if test "x$CDROM_DRIVER" = "x"; then
13763 CDROM_NONE_TRUE=
13764 CDROM_NONE_FALSE='#'
13765 else
13766 CDROM_NONE_TRUE='#'
13767 CDROM_NONE_FALSE=
13768 fi
13770 if test "x$CDROM_DRIVER" = "xlinux"; then
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_LINUX_CDROM 1
13774 _ACEOF
13776 fi
13778 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13779 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13780 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13781 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 fi
13784 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13785 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13786 else
13787 # Is the header compilable?
13788 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13789 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13797 #include <linux/joystick.h>
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (ac_try="$ac_compile"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest.$ac_objext; then
13816 ac_header_compiler=yes
13817 else
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_header_compiler=no
13822 fi
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13826 echo "${ECHO_T}$ac_header_compiler" >&6; }
13828 # Is the header present?
13829 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13830 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h. */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 #include <linux/joystick.h>
13838 _ACEOF
13839 if { (ac_try="$ac_cpp conftest.$ac_ext"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } >/dev/null && {
13852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 }; then
13855 ac_header_preproc=yes
13856 else
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 ac_header_preproc=no
13861 fi
13863 rm -f conftest.err conftest.$ac_ext
13864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13865 echo "${ECHO_T}$ac_header_preproc" >&6; }
13867 # So? What about this header?
13868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13869 yes:no: )
13870 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13871 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13872 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13873 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13874 ac_header_preproc=yes
13875 ;;
13876 no:yes:* )
13877 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13878 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13880 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13882 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13884 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13886 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13888 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13890 ;;
13891 esac
13892 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13893 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13894 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897 ac_cv_header_linux_joystick_h=$ac_header_preproc
13898 fi
13899 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13900 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13902 fi
13903 if test $ac_cv_header_linux_joystick_h = yes; then
13905 HAVE_LINUX_JOYSTICK_H=yes
13907 cat >>confdefs.h <<\_ACEOF
13908 #define HAVE_LINUX_JOYSTICK 1
13909 _ACEOF
13911 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13912 else
13913 echo "Linux Joystick support not found, building without it."
13914 fi
13919 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13920 JOY_LINUX_TRUE=
13921 JOY_LINUX_FALSE='#'
13922 else
13923 JOY_LINUX_TRUE='#'
13924 JOY_LINUX_FALSE=
13925 fi
13928 if test "x$with_lirc" != "xno"; then
13929 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13930 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13931 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13932 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 fi
13935 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13936 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13937 else
13938 # Is the header compilable?
13939 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13940 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
13941 cat >conftest.$ac_ext <<_ACEOF
13942 /* confdefs.h. */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 $ac_includes_default
13948 #include <lirc/lirc_client.h>
13949 _ACEOF
13950 rm -f conftest.$ac_objext
13951 if { (ac_try="$ac_compile"
13952 case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13955 esac
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957 (eval "$ac_compile") 2>conftest.er1
13958 ac_status=$?
13959 grep -v '^ *+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } && {
13964 test -z "$ac_c_werror_flag" ||
13965 test ! -s conftest.err
13966 } && test -s conftest.$ac_objext; then
13967 ac_header_compiler=yes
13968 else
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 ac_header_compiler=no
13973 fi
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13977 echo "${ECHO_T}$ac_header_compiler" >&6; }
13979 # Is the header present?
13980 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13981 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <lirc/lirc_client.h>
13989 _ACEOF
13990 if { (ac_try="$ac_cpp conftest.$ac_ext"
13991 case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } >/dev/null && {
14003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14004 test ! -s conftest.err
14005 }; then
14006 ac_header_preproc=yes
14007 else
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14011 ac_header_preproc=no
14012 fi
14014 rm -f conftest.err conftest.$ac_ext
14015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14016 echo "${ECHO_T}$ac_header_preproc" >&6; }
14018 # So? What about this header?
14019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14020 yes:no: )
14021 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14022 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
14024 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
14025 ac_header_preproc=yes
14026 ;;
14027 no:yes:* )
14028 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14029 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14031 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
14033 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
14035 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14037 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
14039 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
14041 ;;
14042 esac
14043 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14044 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14049 fi
14050 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14051 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
14053 fi
14054 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14056 HAVE_LIRC_CLIENT_H=yes
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_LIRC 1
14060 _ACEOF
14062 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
14064 else
14065 echo "LIRC support not found, building without it."
14066 fi
14069 fi
14072 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
14073 INPUT_LIRC_TRUE=
14074 INPUT_LIRC_FALSE='#'
14075 else
14076 INPUT_LIRC_TRUE='#'
14077 INPUT_LIRC_FALSE=
14078 fi
14081 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
14082 set dummy sh-elf-gcc; ac_word=$2
14083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14085 if test "${ac_cv_path_SHCC+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088 case $SHCC in
14089 [\\/]* | ?:[\\/]*)
14090 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
14091 ;;
14092 *)
14093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14095 do
14096 IFS=$as_save_IFS
14097 test -z "$as_dir" && as_dir=.
14098 for ac_exec_ext in '' $ac_executable_extensions; do
14099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14100 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
14101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14102 break 2
14103 fi
14104 done
14105 done
14106 IFS=$as_save_IFS
14108 ;;
14109 esac
14110 fi
14111 SHCC=$ac_cv_path_SHCC
14112 if test -n "$SHCC"; then
14113 { echo "$as_me:$LINENO: result: $SHCC" >&5
14114 echo "${ECHO_T}$SHCC" >&6; }
14115 else
14116 { echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6; }
14118 fi
14121 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
14122 set dummy sh-elf-ld; ac_word=$2
14123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14125 if test "${ac_cv_path_SHLD+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128 case $SHLD in
14129 [\\/]* | ?:[\\/]*)
14130 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
14131 ;;
14132 *)
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14135 do
14136 IFS=$as_save_IFS
14137 test -z "$as_dir" && as_dir=.
14138 for ac_exec_ext in '' $ac_executable_extensions; do
14139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14140 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
14141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14142 break 2
14143 fi
14144 done
14145 done
14146 IFS=$as_save_IFS
14148 ;;
14149 esac
14150 fi
14151 SHLD=$ac_cv_path_SHLD
14152 if test -n "$SHLD"; then
14153 { echo "$as_me:$LINENO: result: $SHLD" >&5
14154 echo "${ECHO_T}$SHLD" >&6; }
14155 else
14156 { echo "$as_me:$LINENO: result: no" >&5
14157 echo "${ECHO_T}no" >&6; }
14158 fi
14161 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
14162 set dummy sh-elf-objcopy; ac_word=$2
14163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14165 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168 case $SHOBJCOPY in
14169 [\\/]* | ?:[\\/]*)
14170 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
14171 ;;
14172 *)
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174 for as_dir in $PATH
14175 do
14176 IFS=$as_save_IFS
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
14179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14180 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14182 break 2
14183 fi
14184 done
14185 done
14186 IFS=$as_save_IFS
14188 ;;
14189 esac
14190 fi
14191 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
14192 if test -n "$SHOBJCOPY"; then
14193 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
14194 echo "${ECHO_T}$SHOBJCOPY" >&6; }
14195 else
14196 { echo "$as_me:$LINENO: result: no" >&5
14197 echo "${ECHO_T}no" >&6; }
14198 fi
14201 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
14202 set dummy arm-elf-gcc; ac_word=$2
14203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14205 if test "${ac_cv_path_ARMCC+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208 case $ARMCC in
14209 [\\/]* | ?:[\\/]*)
14210 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
14211 ;;
14212 *)
14213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14214 for as_dir in $PATH
14215 do
14216 IFS=$as_save_IFS
14217 test -z "$as_dir" && as_dir=.
14218 for ac_exec_ext in '' $ac_executable_extensions; do
14219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14220 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
14221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14222 break 2
14223 fi
14224 done
14225 done
14226 IFS=$as_save_IFS
14228 ;;
14229 esac
14230 fi
14231 ARMCC=$ac_cv_path_ARMCC
14232 if test -n "$ARMCC"; then
14233 { echo "$as_me:$LINENO: result: $ARMCC" >&5
14234 echo "${ECHO_T}$ARMCC" >&6; }
14235 else
14236 { echo "$as_me:$LINENO: result: no" >&5
14237 echo "${ECHO_T}no" >&6; }
14238 fi
14241 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
14242 set dummy arm-elf-ld; ac_word=$2
14243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14245 if test "${ac_cv_path_ARMLD+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 case $ARMLD in
14249 [\\/]* | ?:[\\/]*)
14250 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
14251 ;;
14252 *)
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14260 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
14261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14262 break 2
14263 fi
14264 done
14265 done
14266 IFS=$as_save_IFS
14268 ;;
14269 esac
14270 fi
14271 ARMLD=$ac_cv_path_ARMLD
14272 if test -n "$ARMLD"; then
14273 { echo "$as_me:$LINENO: result: $ARMLD" >&5
14274 echo "${ECHO_T}$ARMLD" >&6; }
14275 else
14276 { echo "$as_me:$LINENO: result: no" >&5
14277 echo "${ECHO_T}no" >&6; }
14278 fi
14281 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
14282 set dummy arm-elf-objcopy; ac_word=$2
14283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14285 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288 case $ARMOBJCOPY in
14289 [\\/]* | ?:[\\/]*)
14290 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
14291 ;;
14292 *)
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14300 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14303 fi
14304 done
14305 done
14306 IFS=$as_save_IFS
14308 ;;
14309 esac
14310 fi
14311 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
14312 if test -n "$ARMOBJCOPY"; then
14313 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
14314 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
14315 else
14316 { echo "$as_me:$LINENO: result: no" >&5
14317 echo "${ECHO_T}no" >&6; }
14318 fi
14322 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
14323 BUILD_SH="no"
14324 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
14325 else
14326 BUILD_SH="yes"
14327 fi
14328 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
14329 BUILD_ARM="no"
14330 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
14331 else
14332 BUILD_ARM="yes"
14333 fi
14336 if test "$BUILD_SH" = "yes"; then
14337 BUILD_SYSTEST_TRUE=
14338 BUILD_SYSTEST_FALSE='#'
14339 else
14340 BUILD_SYSTEST_TRUE='#'
14341 BUILD_SYSTEST_FALSE=
14342 fi
14346 if test "$BUILD_ARM" = "yes"; then
14347 BUILD_ARMTEST_TRUE=
14348 BUILD_ARMTEST_FALSE='#'
14349 else
14350 BUILD_ARMTEST_TRUE='#'
14351 BUILD_ARMTEST_FALSE=
14352 fi
14355 CFLAGS="$CFLAGS $STDCFLAG"
14357 GETTEXT_PACKAGE=lxdream
14358 LXDREAM_LIBS="$LIBS"
14359 LIBS=""
14363 cat >>confdefs.h <<_ACEOF
14364 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14365 _ACEOF
14368 ALL_LINGUAS="de es it nl pt_BR"
14371 for ac_header in locale.h
14372 do
14373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 fi
14380 ac_res=`eval echo '${'$as_ac_Header'}'`
14381 { echo "$as_me:$LINENO: result: $ac_res" >&5
14382 echo "${ECHO_T}$ac_res" >&6; }
14383 else
14384 # Is the header compilable?
14385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14387 cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h. */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14394 #include <$ac_header>
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (ac_try="$ac_compile"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_compile") 2>conftest.er1
14404 ac_status=$?
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } && {
14410 test -z "$ac_c_werror_flag" ||
14411 test ! -s conftest.err
14412 } && test -s conftest.$ac_objext; then
14413 ac_header_compiler=yes
14414 else
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 ac_header_compiler=no
14419 fi
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14423 echo "${ECHO_T}$ac_header_compiler" >&6; }
14425 # Is the header present?
14426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14428 cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h. */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14434 #include <$ac_header>
14435 _ACEOF
14436 if { (ac_try="$ac_cpp conftest.$ac_ext"
14437 case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14443 ac_status=$?
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } >/dev/null && {
14449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14450 test ! -s conftest.err
14451 }; then
14452 ac_header_preproc=yes
14453 else
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 ac_header_preproc=no
14458 fi
14460 rm -f conftest.err conftest.$ac_ext
14461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14462 echo "${ECHO_T}$ac_header_preproc" >&6; }
14464 # So? What about this header?
14465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14466 yes:no: )
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14471 ac_header_preproc=yes
14472 ;;
14473 no:yes:* )
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14487 ;;
14488 esac
14489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494 eval "$as_ac_Header=\$ac_header_preproc"
14495 fi
14496 ac_res=`eval echo '${'$as_ac_Header'}'`
14497 { echo "$as_me:$LINENO: result: $ac_res" >&5
14498 echo "${ECHO_T}$ac_res" >&6; }
14500 fi
14501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14504 _ACEOF
14506 fi
14508 done
14510 if test $ac_cv_header_locale_h = yes; then
14511 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14512 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14513 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516 cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h. */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 #include <locale.h>
14523 int
14524 main ()
14525 {
14526 return LC_MESSAGES
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (ac_try="$ac_link"
14533 case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_link") 2>conftest.er1
14539 ac_status=$?
14540 grep -v '^ *+' conftest.er1 >conftest.err
14541 rm -f conftest.er1
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } && {
14545 test -z "$ac_c_werror_flag" ||
14546 test ! -s conftest.err
14547 } && test -s conftest$ac_exeext &&
14548 $as_test_x conftest$ac_exeext; then
14549 am_cv_val_LC_MESSAGES=yes
14550 else
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 am_cv_val_LC_MESSAGES=no
14555 fi
14557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14558 conftest$ac_exeext conftest.$ac_ext
14559 fi
14560 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14561 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14562 if test $am_cv_val_LC_MESSAGES = yes; then
14564 cat >>confdefs.h <<\_ACEOF
14565 #define HAVE_LC_MESSAGES 1
14566 _ACEOF
14568 fi
14569 fi
14570 USE_NLS=yes
14573 gt_cv_have_gettext=no
14575 CATOBJEXT=NONE
14576 XGETTEXT=:
14577 INTLLIBS=
14579 if test "${ac_cv_header_libintl_h+set}" = set; then
14580 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14581 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14582 if test "${ac_cv_header_libintl_h+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 fi
14585 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14586 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14587 else
14588 # Is the header compilable?
14589 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14590 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14591 cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h. */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 $ac_includes_default
14598 #include <libintl.h>
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (ac_try="$ac_compile"
14602 case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14605 esac
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_compile") 2>conftest.er1
14608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest.$ac_objext; then
14617 ac_header_compiler=yes
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_header_compiler=no
14623 fi
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14627 echo "${ECHO_T}$ac_header_compiler" >&6; }
14629 # Is the header present?
14630 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14631 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14632 cat >conftest.$ac_ext <<_ACEOF
14633 /* confdefs.h. */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 #include <libintl.h>
14639 _ACEOF
14640 if { (ac_try="$ac_cpp conftest.$ac_ext"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } >/dev/null && {
14653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14654 test ! -s conftest.err
14655 }; then
14656 ac_header_preproc=yes
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 ac_header_preproc=no
14662 fi
14664 rm -f conftest.err conftest.$ac_ext
14665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14666 echo "${ECHO_T}$ac_header_preproc" >&6; }
14668 # So? What about this header?
14669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14670 yes:no: )
14671 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14672 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14674 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14675 ac_header_preproc=yes
14676 ;;
14677 no:yes:* )
14678 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14679 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14680 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14681 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14682 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14683 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14684 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14685 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14687 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14689 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14691 ;;
14692 esac
14693 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14694 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14695 if test "${ac_cv_header_libintl_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 ac_cv_header_libintl_h=$ac_header_preproc
14699 fi
14700 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14701 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14703 fi
14704 if test $ac_cv_header_libintl_h = yes; then
14705 gt_cv_func_dgettext_libintl="no"
14706 libintl_extra_libs=""
14708 #
14709 # First check in libc
14710 #
14711 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14712 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14713 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716 cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h. */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14723 #include <libintl.h>
14725 int
14726 main ()
14727 {
14728 return !ngettext ("","", 1)
14729 ;
14730 return 0;
14731 }
14732 _ACEOF
14733 rm -f conftest.$ac_objext conftest$ac_exeext
14734 if { (ac_try="$ac_link"
14735 case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_link") 2>conftest.er1
14741 ac_status=$?
14742 grep -v '^ *+' conftest.er1 >conftest.err
14743 rm -f conftest.er1
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } && {
14747 test -z "$ac_c_werror_flag" ||
14748 test ! -s conftest.err
14749 } && test -s conftest$ac_exeext &&
14750 $as_test_x conftest$ac_exeext; then
14751 gt_cv_func_ngettext_libc=yes
14752 else
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 gt_cv_func_ngettext_libc=no
14757 fi
14759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14760 conftest$ac_exeext conftest.$ac_ext
14762 fi
14763 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14764 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14766 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14767 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14768 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14769 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14779 #include <libintl.h>
14781 int
14782 main ()
14783 {
14784 return !dgettext ("","")
14785 ;
14786 return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest.$ac_objext conftest$ac_exeext
14790 if { (ac_try="$ac_link"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_link") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && {
14803 test -z "$ac_c_werror_flag" ||
14804 test ! -s conftest.err
14805 } && test -s conftest$ac_exeext &&
14806 $as_test_x conftest$ac_exeext; then
14807 gt_cv_func_dgettext_libc=yes
14808 else
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 gt_cv_func_dgettext_libc=no
14813 fi
14815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14816 conftest$ac_exeext conftest.$ac_ext
14818 fi
14819 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14820 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14821 fi
14823 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14825 for ac_func in bind_textdomain_codeset
14826 do
14827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833 cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h. */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14841 #define $ac_func innocuous_$ac_func
14843 /* System header to define __stub macros and hopefully few prototypes,
14844 which can conflict with char $ac_func (); below.
14845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14846 <limits.h> exists even on freestanding compilers. */
14848 #ifdef __STDC__
14849 # include <limits.h>
14850 #else
14851 # include <assert.h>
14852 #endif
14854 #undef $ac_func
14856 /* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply. */
14859 #ifdef __cplusplus
14860 extern "C"
14861 #endif
14862 char $ac_func ();
14863 /* The GNU C library defines this for functions which it implements
14864 to always fail with ENOSYS. Some functions are actually named
14865 something starting with __ and the normal name is an alias. */
14866 #if defined __stub_$ac_func || defined __stub___$ac_func
14867 choke me
14868 #endif
14870 int
14871 main ()
14872 {
14873 return $ac_func ();
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext conftest$ac_exeext
14879 if { (ac_try="$ac_link"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_link") 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest$ac_exeext &&
14895 $as_test_x conftest$ac_exeext; then
14896 eval "$as_ac_var=yes"
14897 else
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 eval "$as_ac_var=no"
14902 fi
14904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14905 conftest$ac_exeext conftest.$ac_ext
14906 fi
14907 ac_res=`eval echo '${'$as_ac_var'}'`
14908 { echo "$as_me:$LINENO: result: $ac_res" >&5
14909 echo "${ECHO_T}$ac_res" >&6; }
14910 if test `eval echo '${'$as_ac_var'}'` = yes; then
14911 cat >>confdefs.h <<_ACEOF
14912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14913 _ACEOF
14915 fi
14916 done
14918 fi
14920 #
14921 # If we don't have everything we want, check in libintl
14922 #
14923 if test "$gt_cv_func_dgettext_libc" != "yes" \
14924 || test "$gt_cv_func_ngettext_libc" != "yes" \
14925 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14927 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
14928 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
14929 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 else
14932 ac_check_lib_save_LIBS=$LIBS
14933 LIBS="-lintl $LIBS"
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14941 /* Override any GCC internal prototype to avoid an error.
14942 Use char because int might match the return type of a GCC
14943 builtin and then its argument prototype would still apply. */
14944 #ifdef __cplusplus
14945 extern "C"
14946 #endif
14947 char bindtextdomain ();
14948 int
14949 main ()
14950 {
14951 return bindtextdomain ();
14952 ;
14953 return 0;
14954 }
14955 _ACEOF
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (ac_try="$ac_link"
14958 case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14961 esac
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963 (eval "$ac_link") 2>conftest.er1
14964 ac_status=$?
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } && {
14970 test -z "$ac_c_werror_flag" ||
14971 test ! -s conftest.err
14972 } && test -s conftest$ac_exeext &&
14973 $as_test_x conftest$ac_exeext; then
14974 ac_cv_lib_intl_bindtextdomain=yes
14975 else
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 ac_cv_lib_intl_bindtextdomain=no
14980 fi
14982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14983 conftest$ac_exeext conftest.$ac_ext
14984 LIBS=$ac_check_lib_save_LIBS
14985 fi
14986 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
14987 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
14988 if test $ac_cv_lib_intl_bindtextdomain = yes; then
14989 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14990 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14991 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994 ac_check_lib_save_LIBS=$LIBS
14995 LIBS="-lintl $LIBS"
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15003 /* Override any GCC internal prototype to avoid an error.
15004 Use char because int might match the return type of a GCC
15005 builtin and then its argument prototype would still apply. */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 char ngettext ();
15010 int
15011 main ()
15012 {
15013 return ngettext ();
15014 ;
15015 return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (ac_try="$ac_link"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023 esac
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_link") 2>conftest.er1
15026 ac_status=$?
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && {
15032 test -z "$ac_c_werror_flag" ||
15033 test ! -s conftest.err
15034 } && test -s conftest$ac_exeext &&
15035 $as_test_x conftest$ac_exeext; then
15036 ac_cv_lib_intl_ngettext=yes
15037 else
15038 echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15041 ac_cv_lib_intl_ngettext=no
15042 fi
15044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15045 conftest$ac_exeext conftest.$ac_ext
15046 LIBS=$ac_check_lib_save_LIBS
15047 fi
15048 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15049 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15050 if test $ac_cv_lib_intl_ngettext = yes; then
15051 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15052 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
15053 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056 ac_check_lib_save_LIBS=$LIBS
15057 LIBS="-lintl $LIBS"
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h. */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15065 /* Override any GCC internal prototype to avoid an error.
15066 Use char because int might match the return type of a GCC
15067 builtin and then its argument prototype would still apply. */
15068 #ifdef __cplusplus
15069 extern "C"
15070 #endif
15071 char dgettext ();
15072 int
15073 main ()
15074 {
15075 return dgettext ();
15076 ;
15077 return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (ac_try="$ac_link"
15082 case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_link") 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } && {
15094 test -z "$ac_c_werror_flag" ||
15095 test ! -s conftest.err
15096 } && test -s conftest$ac_exeext &&
15097 $as_test_x conftest$ac_exeext; then
15098 ac_cv_lib_intl_dgettext=yes
15099 else
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 ac_cv_lib_intl_dgettext=no
15104 fi
15106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15107 conftest$ac_exeext conftest.$ac_ext
15108 LIBS=$ac_check_lib_save_LIBS
15109 fi
15110 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15111 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
15112 if test $ac_cv_lib_intl_dgettext = yes; then
15113 gt_cv_func_dgettext_libintl=yes
15114 fi
15116 fi
15118 fi
15121 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15122 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
15123 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
15124 { echo "$as_me:$LINENO: result: " >&5
15125 echo "${ECHO_T}" >&6; }
15126 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15127 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
15128 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 else
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lintl -liconv $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h. */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15140 /* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply. */
15143 #ifdef __cplusplus
15144 extern "C"
15145 #endif
15146 char ngettext ();
15147 int
15148 main ()
15149 {
15150 return ngettext ();
15151 ;
15152 return 0;
15153 }
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && {
15169 test -z "$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15171 } && test -s conftest$ac_exeext &&
15172 $as_test_x conftest$ac_exeext; then
15173 ac_cv_lib_intl_ngettext=yes
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ac_cv_lib_intl_ngettext=no
15179 fi
15181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15182 conftest$ac_exeext conftest.$ac_ext
15183 LIBS=$ac_check_lib_save_LIBS
15184 fi
15185 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15186 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15187 if test $ac_cv_lib_intl_ngettext = yes; then
15188 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
15189 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
15190 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193 ac_check_lib_save_LIBS=$LIBS
15194 LIBS="-lintl -liconv $LIBS"
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h. */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15202 /* Override any GCC internal prototype to avoid an error.
15203 Use char because int might match the return type of a GCC
15204 builtin and then its argument prototype would still apply. */
15205 #ifdef __cplusplus
15206 extern "C"
15207 #endif
15208 char dcgettext ();
15209 int
15210 main ()
15211 {
15212 return dcgettext ();
15213 ;
15214 return 0;
15215 }
15216 _ACEOF
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest$ac_exeext &&
15234 $as_test_x conftest$ac_exeext; then
15235 ac_cv_lib_intl_dcgettext=yes
15236 else
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_cv_lib_intl_dcgettext=no
15241 fi
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 conftest$ac_exeext conftest.$ac_ext
15245 LIBS=$ac_check_lib_save_LIBS
15246 fi
15247 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
15248 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
15249 if test $ac_cv_lib_intl_dcgettext = yes; then
15250 gt_cv_func_dgettext_libintl=yes
15251 libintl_extra_libs=-liconv
15252 else
15253 :
15254 fi
15256 else
15257 :
15258 fi
15260 fi
15262 #
15263 # If we found libintl, then check in it for bind_textdomain_codeset();
15264 # we'll prefer libc if neither have bind_textdomain_codeset(),
15265 # and both have dgettext and ngettext
15266 #
15267 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15268 glib_save_LIBS="$LIBS"
15269 LIBS="$LIBS -lintl $libintl_extra_libs"
15270 unset ac_cv_func_bind_textdomain_codeset
15272 for ac_func in bind_textdomain_codeset
15273 do
15274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h. */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15288 #define $ac_func innocuous_$ac_func
15290 /* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char $ac_func (); below.
15292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15293 <limits.h> exists even on freestanding compilers. */
15295 #ifdef __STDC__
15296 # include <limits.h>
15297 #else
15298 # include <assert.h>
15299 #endif
15301 #undef $ac_func
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15306 #ifdef __cplusplus
15307 extern "C"
15308 #endif
15309 char $ac_func ();
15310 /* The GNU C library defines this for functions which it implements
15311 to always fail with ENOSYS. Some functions are actually named
15312 something starting with __ and the normal name is an alias. */
15313 #if defined __stub_$ac_func || defined __stub___$ac_func
15314 choke me
15315 #endif
15317 int
15318 main ()
15319 {
15320 return $ac_func ();
15321 ;
15322 return 0;
15323 }
15324 _ACEOF
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_link") 2>conftest.er1
15333 ac_status=$?
15334 grep -v '^ *+' conftest.er1 >conftest.err
15335 rm -f conftest.er1
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } && {
15339 test -z "$ac_c_werror_flag" ||
15340 test ! -s conftest.err
15341 } && test -s conftest$ac_exeext &&
15342 $as_test_x conftest$ac_exeext; then
15343 eval "$as_ac_var=yes"
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 eval "$as_ac_var=no"
15349 fi
15351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15352 conftest$ac_exeext conftest.$ac_ext
15353 fi
15354 ac_res=`eval echo '${'$as_ac_var'}'`
15355 { echo "$as_me:$LINENO: result: $ac_res" >&5
15356 echo "${ECHO_T}$ac_res" >&6; }
15357 if test `eval echo '${'$as_ac_var'}'` = yes; then
15358 cat >>confdefs.h <<_ACEOF
15359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15360 _ACEOF
15362 fi
15363 done
15365 LIBS="$glib_save_LIBS"
15367 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15368 gt_cv_func_dgettext_libc=no
15369 else
15370 if test "$gt_cv_func_dgettext_libc" = "yes" \
15371 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15372 gt_cv_func_dgettext_libintl=no
15373 fi
15374 fi
15375 fi
15376 fi
15378 if test "$gt_cv_func_dgettext_libc" = "yes" \
15379 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15380 gt_cv_have_gettext=yes
15381 fi
15383 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15384 INTLLIBS="-lintl $libintl_extra_libs"
15385 fi
15387 if test "$gt_cv_have_gettext" = "yes"; then
15389 cat >>confdefs.h <<\_ACEOF
15390 #define HAVE_GETTEXT 1
15391 _ACEOF
15393 # Extract the first word of "msgfmt", so it can be a program name with args.
15394 set dummy msgfmt; ac_word=$2
15395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15397 if test "${ac_cv_path_MSGFMT+set}" = set; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 else
15400 case "$MSGFMT" in
15401 /*)
15402 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15403 ;;
15404 *)
15405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15406 for ac_dir in $PATH; do
15407 test -z "$ac_dir" && ac_dir=.
15408 if test -f $ac_dir/$ac_word; then
15409 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15410 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15411 break
15412 fi
15413 fi
15414 done
15415 IFS="$ac_save_ifs"
15416 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15417 ;;
15418 esac
15419 fi
15420 MSGFMT="$ac_cv_path_MSGFMT"
15421 if test "$MSGFMT" != "no"; then
15422 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15423 echo "${ECHO_T}$MSGFMT" >&6; }
15424 else
15425 { echo "$as_me:$LINENO: result: no" >&5
15426 echo "${ECHO_T}no" >&6; }
15427 fi
15428 if test "$MSGFMT" != "no"; then
15429 glib_save_LIBS="$LIBS"
15430 LIBS="$LIBS $INTLLIBS"
15432 for ac_func in dcgettext
15433 do
15434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h. */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15448 #define $ac_func innocuous_$ac_func
15450 /* System header to define __stub macros and hopefully few prototypes,
15451 which can conflict with char $ac_func (); below.
15452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15453 <limits.h> exists even on freestanding compilers. */
15455 #ifdef __STDC__
15456 # include <limits.h>
15457 #else
15458 # include <assert.h>
15459 #endif
15461 #undef $ac_func
15463 /* Override any GCC internal prototype to avoid an error.
15464 Use char because int might match the return type of a GCC
15465 builtin and then its argument prototype would still apply. */
15466 #ifdef __cplusplus
15467 extern "C"
15468 #endif
15469 char $ac_func ();
15470 /* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473 #if defined __stub_$ac_func || defined __stub___$ac_func
15474 choke me
15475 #endif
15477 int
15478 main ()
15479 {
15480 return $ac_func ();
15481 ;
15482 return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest$ac_exeext &&
15502 $as_test_x conftest$ac_exeext; then
15503 eval "$as_ac_var=yes"
15504 else
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15508 eval "$as_ac_var=no"
15509 fi
15511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15512 conftest$ac_exeext conftest.$ac_ext
15513 fi
15514 ac_res=`eval echo '${'$as_ac_var'}'`
15515 { echo "$as_me:$LINENO: result: $ac_res" >&5
15516 echo "${ECHO_T}$ac_res" >&6; }
15517 if test `eval echo '${'$as_ac_var'}'` = yes; then
15518 cat >>confdefs.h <<_ACEOF
15519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15520 _ACEOF
15522 fi
15523 done
15525 MSGFMT_OPTS=
15526 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15527 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15528 cat >conftest.foo <<_ACEOF
15530 msgid ""
15531 msgstr ""
15532 "Content-Type: text/plain; charset=UTF-8\n"
15533 "Project-Id-Version: test 1.0\n"
15534 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15535 "Last-Translator: test <foo@bar.xx>\n"
15536 "Language-Team: C <LL@li.org>\n"
15537 "MIME-Version: 1.0\n"
15538 "Content-Transfer-Encoding: 8bit\n"
15540 _ACEOF
15541 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15542 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; then
15546 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15547 echo "${ECHO_T}yes" >&6; }
15548 else { echo "$as_me:$LINENO: result: no" >&5
15549 echo "${ECHO_T}no" >&6; }
15550 echo "$as_me: failed input was:" >&5
15551 sed 's/^/| /' conftest.foo >&5
15552 fi
15554 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15555 set dummy gmsgfmt; ac_word=$2
15556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15558 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 else
15561 case $GMSGFMT in
15562 [\\/]* | ?:[\\/]*)
15563 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15564 ;;
15565 *)
15566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15567 for as_dir in $PATH
15568 do
15569 IFS=$as_save_IFS
15570 test -z "$as_dir" && as_dir=.
15571 for ac_exec_ext in '' $ac_executable_extensions; do
15572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15573 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15575 break 2
15576 fi
15577 done
15578 done
15579 IFS=$as_save_IFS
15581 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15582 ;;
15583 esac
15584 fi
15585 GMSGFMT=$ac_cv_path_GMSGFMT
15586 if test -n "$GMSGFMT"; then
15587 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15588 echo "${ECHO_T}$GMSGFMT" >&6; }
15589 else
15590 { echo "$as_me:$LINENO: result: no" >&5
15591 echo "${ECHO_T}no" >&6; }
15592 fi
15595 # Extract the first word of "xgettext", so it can be a program name with args.
15596 set dummy xgettext; ac_word=$2
15597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15599 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 else
15602 case "$XGETTEXT" in
15603 /*)
15604 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15605 ;;
15606 *)
15607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15608 for ac_dir in $PATH; do
15609 test -z "$ac_dir" && ac_dir=.
15610 if test -f $ac_dir/$ac_word; then
15611 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15612 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15613 break
15614 fi
15615 fi
15616 done
15617 IFS="$ac_save_ifs"
15618 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15619 ;;
15620 esac
15621 fi
15622 XGETTEXT="$ac_cv_path_XGETTEXT"
15623 if test "$XGETTEXT" != ":"; then
15624 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15625 echo "${ECHO_T}$XGETTEXT" >&6; }
15626 else
15627 { echo "$as_me:$LINENO: result: no" >&5
15628 echo "${ECHO_T}no" >&6; }
15629 fi
15631 cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h. */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15638 int
15639 main ()
15640 {
15641 extern int _nl_msg_cat_cntr;
15642 return _nl_msg_cat_cntr
15643 ;
15644 return 0;
15645 }
15646 _ACEOF
15647 rm -f conftest.$ac_objext conftest$ac_exeext
15648 if { (ac_try="$ac_link"
15649 case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15652 esac
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_link") 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } && {
15661 test -z "$ac_c_werror_flag" ||
15662 test ! -s conftest.err
15663 } && test -s conftest$ac_exeext &&
15664 $as_test_x conftest$ac_exeext; then
15665 CATOBJEXT=.gmo
15666 DATADIRNAME=share
15667 else
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 case $host in
15672 *-*-solaris*)
15673 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15674 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15675 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 else
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15686 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15688 /* System header to define __stub macros and hopefully few prototypes,
15689 which can conflict with char bind_textdomain_codeset (); below.
15690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15691 <limits.h> exists even on freestanding compilers. */
15693 #ifdef __STDC__
15694 # include <limits.h>
15695 #else
15696 # include <assert.h>
15697 #endif
15699 #undef bind_textdomain_codeset
15701 /* Override any GCC internal prototype to avoid an error.
15702 Use char because int might match the return type of a GCC
15703 builtin and then its argument prototype would still apply. */
15704 #ifdef __cplusplus
15705 extern "C"
15706 #endif
15707 char bind_textdomain_codeset ();
15708 /* The GNU C library defines this for functions which it implements
15709 to always fail with ENOSYS. Some functions are actually named
15710 something starting with __ and the normal name is an alias. */
15711 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15712 choke me
15713 #endif
15715 int
15716 main ()
15717 {
15718 return bind_textdomain_codeset ();
15719 ;
15720 return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (ac_try="$ac_link"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_link") 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest$ac_exeext &&
15740 $as_test_x conftest$ac_exeext; then
15741 ac_cv_func_bind_textdomain_codeset=yes
15742 else
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_cv_func_bind_textdomain_codeset=no
15747 fi
15749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15750 conftest$ac_exeext conftest.$ac_ext
15751 fi
15752 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15753 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15754 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15755 CATOBJEXT=.gmo
15756 DATADIRNAME=share
15757 else
15758 CATOBJEXT=.mo
15759 DATADIRNAME=lib
15760 fi
15762 ;;
15763 *)
15764 CATOBJEXT=.mo
15765 DATADIRNAME=lib
15766 ;;
15767 esac
15768 fi
15770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15771 conftest$ac_exeext conftest.$ac_ext
15772 LIBS="$glib_save_LIBS"
15773 INSTOBJEXT=.mo
15774 else
15775 gt_cv_have_gettext=no
15776 fi
15777 fi
15779 fi
15783 if test "$gt_cv_have_gettext" = "yes" ; then
15785 cat >>confdefs.h <<\_ACEOF
15786 #define ENABLE_NLS 1
15787 _ACEOF
15789 fi
15791 if test "$XGETTEXT" != ":"; then
15792 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15793 : ;
15794 else
15795 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15796 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15797 XGETTEXT=":"
15798 fi
15799 fi
15801 # We need to process the po/ directory.
15802 POSUB=po
15804 ac_config_commands="$ac_config_commands default-1"
15807 for lang in $ALL_LINGUAS; do
15808 GMOFILES="$GMOFILES $lang.gmo"
15809 POFILES="$POFILES $lang.po"
15810 done
15824 if test "$gt_cv_have_gettext" = "yes"; then
15825 if test "x$ALL_LINGUAS" = "x"; then
15826 LINGUAS=
15827 else
15828 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15829 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15830 NEW_LINGUAS=
15831 for presentlang in $ALL_LINGUAS; do
15832 useit=no
15833 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15834 desiredlanguages="$LINGUAS"
15835 else
15836 desiredlanguages="$ALL_LINGUAS"
15837 fi
15838 for desiredlang in $desiredlanguages; do
15839 # Use the presentlang catalog if desiredlang is
15840 # a. equal to presentlang, or
15841 # b. a variant of presentlang (because in this case,
15842 # presentlang can be used as a fallback for messages
15843 # which are not translated in the desiredlang catalog).
15844 case "$desiredlang" in
15845 "$presentlang"*) useit=yes;;
15846 esac
15847 done
15848 if test $useit = yes; then
15849 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15850 fi
15851 done
15852 LINGUAS=$NEW_LINGUAS
15853 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15854 echo "${ECHO_T}$LINGUAS" >&6; }
15855 fi
15857 if test -n "$LINGUAS"; then
15858 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15859 fi
15860 fi
15862 MKINSTALLDIRS=
15863 if test -n "$ac_aux_dir"; then
15864 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15865 fi
15866 if test -z "$MKINSTALLDIRS"; then
15867 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15868 fi
15871 test -d po || mkdir po
15872 if test "x$srcdir" != "x."; then
15873 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15874 posrcprefix="$srcdir/"
15875 else
15876 posrcprefix="../$srcdir/"
15877 fi
15878 else
15879 posrcprefix="../"
15880 fi
15881 rm -f po/POTFILES
15882 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15883 < $srcdir/po/POTFILES.in > po/POTFILES
15886 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15888 cat >confcache <<\_ACEOF
15889 # This file is a shell script that caches the results of configure
15890 # tests run on this system so they can be shared between configure
15891 # scripts and configure runs, see configure's option --config-cache.
15892 # It is not useful on other systems. If it contains results you don't
15893 # want to keep, you may remove or edit it.
15894 #
15895 # config.status only pays attention to the cache file if you give it
15896 # the --recheck option to rerun configure.
15897 #
15898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15900 # following values.
15902 _ACEOF
15904 # The following way of writing the cache mishandles newlines in values,
15905 # but we know of no workaround that is simple, portable, and efficient.
15906 # So, we kill variables containing newlines.
15907 # Ultrix sh set writes to stderr and can't be redirected directly,
15908 # and sets the high bit in the cache file unless we assign to the vars.
15909 (
15910 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15911 eval ac_val=\$$ac_var
15912 case $ac_val in #(
15913 *${as_nl}*)
15914 case $ac_var in #(
15915 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15916 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15917 esac
15918 case $ac_var in #(
15919 _ | IFS | as_nl) ;; #(
15920 *) $as_unset $ac_var ;;
15921 esac ;;
15922 esac
15923 done
15925 (set) 2>&1 |
15926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15927 *${as_nl}ac_space=\ *)
15928 # `set' does not quote correctly, so add quotes (double-quote
15929 # substitution turns \\\\ into \\, and sed turns \\ into \).
15930 sed -n \
15931 "s/'/'\\\\''/g;
15932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15933 ;; #(
15934 *)
15935 # `set' quotes correctly as required by POSIX, so do not add quotes.
15936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15937 ;;
15938 esac |
15939 sort
15940 ) |
15941 sed '
15942 /^ac_cv_env_/b end
15943 t clear
15944 :clear
15945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15946 t end
15947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15948 :end' >>confcache
15949 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15950 if test -w "$cache_file"; then
15951 test "x$cache_file" != "x/dev/null" &&
15952 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15953 echo "$as_me: updating cache $cache_file" >&6;}
15954 cat confcache >$cache_file
15955 else
15956 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15957 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15958 fi
15959 fi
15960 rm -f confcache
15962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15963 # Let make expand exec_prefix.
15964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15966 DEFS=-DHAVE_CONFIG_H
15968 ac_libobjs=
15969 ac_ltlibobjs=
15970 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15971 # 1. Remove the extension, and $U if already installed.
15972 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15973 ac_i=`echo "$ac_i" | sed "$ac_script"`
15974 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15975 # will be set to the directory where LIBOBJS objects are built.
15976 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15977 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15978 done
15979 LIBOBJS=$ac_libobjs
15981 LTLIBOBJS=$ac_ltlibobjs
15984 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15985 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15986 Usually this means the macro was only invoked conditionally." >&5
15987 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15988 Usually this means the macro was only invoked conditionally." >&2;}
15989 { (exit 1); exit 1; }; }
15990 fi
15991 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
15992 { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
15993 Usually this means the macro was only invoked conditionally." >&5
15994 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
15995 Usually this means the macro was only invoked conditionally." >&2;}
15996 { (exit 1); exit 1; }; }
15997 fi
15998 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15999 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16000 Usually this means the macro was only invoked conditionally." >&5
16001 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16002 Usually this means the macro was only invoked conditionally." >&2;}
16003 { (exit 1); exit 1; }; }
16004 fi
16005 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16006 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16007 Usually this means the macro was only invoked conditionally." >&5
16008 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16009 Usually this means the macro was only invoked conditionally." >&2;}
16010 { (exit 1); exit 1; }; }
16011 fi
16012 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16013 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16014 Usually this means the macro was only invoked conditionally." >&5
16015 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16016 Usually this means the macro was only invoked conditionally." >&2;}
16017 { (exit 1); exit 1; }; }
16018 fi
16019 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16020 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16021 Usually this means the macro was only invoked conditionally." >&5
16022 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16023 Usually this means the macro was only invoked conditionally." >&2;}
16024 { (exit 1); exit 1; }; }
16025 fi
16026 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
16027 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16028 Usually this means the macro was only invoked conditionally." >&5
16029 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16030 Usually this means the macro was only invoked conditionally." >&2;}
16031 { (exit 1); exit 1; }; }
16032 fi
16033 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
16034 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
16035 Usually this means the macro was only invoked conditionally." >&5
16036 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
16037 Usually this means the macro was only invoked conditionally." >&2;}
16038 { (exit 1); exit 1; }; }
16039 fi
16040 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
16041 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
16042 Usually this means the macro was only invoked conditionally." >&5
16043 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
16044 Usually this means the macro was only invoked conditionally." >&2;}
16045 { (exit 1); exit 1; }; }
16046 fi
16047 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
16048 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
16049 Usually this means the macro was only invoked conditionally." >&5
16050 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
16051 Usually this means the macro was only invoked conditionally." >&2;}
16052 { (exit 1); exit 1; }; }
16053 fi
16054 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
16055 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
16056 Usually this means the macro was only invoked conditionally." >&5
16057 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
16058 Usually this means the macro was only invoked conditionally." >&2;}
16059 { (exit 1); exit 1; }; }
16060 fi
16061 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
16062 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
16063 Usually this means the macro was only invoked conditionally." >&5
16064 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
16065 Usually this means the macro was only invoked conditionally." >&2;}
16066 { (exit 1); exit 1; }; }
16067 fi
16068 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
16069 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
16070 Usually this means the macro was only invoked conditionally." >&5
16071 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
16072 Usually this means the macro was only invoked conditionally." >&2;}
16073 { (exit 1); exit 1; }; }
16074 fi
16075 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
16076 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
16077 Usually this means the macro was only invoked conditionally." >&5
16078 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
16079 Usually this means the macro was only invoked conditionally." >&2;}
16080 { (exit 1); exit 1; }; }
16081 fi
16082 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
16083 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
16084 Usually this means the macro was only invoked conditionally." >&5
16085 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
16086 Usually this means the macro was only invoked conditionally." >&2;}
16087 { (exit 1); exit 1; }; }
16088 fi
16089 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
16090 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
16091 Usually this means the macro was only invoked conditionally." >&5
16092 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
16093 Usually this means the macro was only invoked conditionally." >&2;}
16094 { (exit 1); exit 1; }; }
16095 fi
16096 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
16097 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
16098 Usually this means the macro was only invoked conditionally." >&5
16099 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
16100 Usually this means the macro was only invoked conditionally." >&2;}
16101 { (exit 1); exit 1; }; }
16102 fi
16103 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
16104 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
16105 Usually this means the macro was only invoked conditionally." >&5
16106 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
16107 Usually this means the macro was only invoked conditionally." >&2;}
16108 { (exit 1); exit 1; }; }
16109 fi
16110 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
16111 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
16112 Usually this means the macro was only invoked conditionally." >&5
16113 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
16114 Usually this means the macro was only invoked conditionally." >&2;}
16115 { (exit 1); exit 1; }; }
16116 fi
16117 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
16118 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
16119 Usually this means the macro was only invoked conditionally." >&5
16120 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
16121 Usually this means the macro was only invoked conditionally." >&2;}
16122 { (exit 1); exit 1; }; }
16123 fi
16124 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
16125 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
16126 Usually this means the macro was only invoked conditionally." >&5
16127 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
16128 Usually this means the macro was only invoked conditionally." >&2;}
16129 { (exit 1); exit 1; }; }
16130 fi
16131 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
16132 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
16133 Usually this means the macro was only invoked conditionally." >&5
16134 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
16135 Usually this means the macro was only invoked conditionally." >&2;}
16136 { (exit 1); exit 1; }; }
16137 fi
16138 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
16139 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
16140 Usually this means the macro was only invoked conditionally." >&5
16141 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
16142 Usually this means the macro was only invoked conditionally." >&2;}
16143 { (exit 1); exit 1; }; }
16144 fi
16145 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
16146 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
16147 Usually this means the macro was only invoked conditionally." >&5
16148 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
16149 Usually this means the macro was only invoked conditionally." >&2;}
16150 { (exit 1); exit 1; }; }
16151 fi
16152 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
16153 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
16154 Usually this means the macro was only invoked conditionally." >&5
16155 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
16156 Usually this means the macro was only invoked conditionally." >&2;}
16157 { (exit 1); exit 1; }; }
16158 fi
16159 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
16160 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
16161 Usually this means the macro was only invoked conditionally." >&5
16162 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
16163 Usually this means the macro was only invoked conditionally." >&2;}
16164 { (exit 1); exit 1; }; }
16165 fi
16166 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
16167 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
16168 Usually this means the macro was only invoked conditionally." >&5
16169 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
16170 Usually this means the macro was only invoked conditionally." >&2;}
16171 { (exit 1); exit 1; }; }
16172 fi
16174 : ${CONFIG_STATUS=./config.status}
16175 ac_clean_files_save=$ac_clean_files
16176 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16177 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16178 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16179 cat >$CONFIG_STATUS <<_ACEOF
16180 #! $SHELL
16181 # Generated by $as_me.
16182 # Run this file to recreate the current configuration.
16183 # Compiler output produced by configure, useful for debugging
16184 # configure, is in config.log if it exists.
16186 debug=false
16187 ac_cs_recheck=false
16188 ac_cs_silent=false
16189 SHELL=\${CONFIG_SHELL-$SHELL}
16190 _ACEOF
16192 cat >>$CONFIG_STATUS <<\_ACEOF
16193 ## --------------------- ##
16194 ## M4sh Initialization. ##
16195 ## --------------------- ##
16197 # Be more Bourne compatible
16198 DUALCASE=1; export DUALCASE # for MKS sh
16199 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16200 emulate sh
16201 NULLCMD=:
16202 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16203 # is contrary to our usage. Disable this feature.
16204 alias -g '${1+"$@"}'='"$@"'
16205 setopt NO_GLOB_SUBST
16206 else
16207 case `(set -o) 2>/dev/null` in
16208 *posix*) set -o posix ;;
16209 esac
16211 fi
16216 # PATH needs CR
16217 # Avoid depending upon Character Ranges.
16218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16221 as_cr_digits='0123456789'
16222 as_cr_alnum=$as_cr_Letters$as_cr_digits
16224 # The user is always right.
16225 if test "${PATH_SEPARATOR+set}" != set; then
16226 echo "#! /bin/sh" >conf$$.sh
16227 echo "exit 0" >>conf$$.sh
16228 chmod +x conf$$.sh
16229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16230 PATH_SEPARATOR=';'
16231 else
16232 PATH_SEPARATOR=:
16233 fi
16234 rm -f conf$$.sh
16235 fi
16237 # Support unset when possible.
16238 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16239 as_unset=unset
16240 else
16241 as_unset=false
16242 fi
16245 # IFS
16246 # We need space, tab and new line, in precisely that order. Quoting is
16247 # there to prevent editors from complaining about space-tab.
16248 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16249 # splitting by setting IFS to empty value.)
16250 as_nl='
16251 '
16252 IFS=" "" $as_nl"
16254 # Find who we are. Look in the path if we contain no directory separator.
16255 case $0 in
16256 *[\\/]* ) as_myself=$0 ;;
16257 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16258 for as_dir in $PATH
16259 do
16260 IFS=$as_save_IFS
16261 test -z "$as_dir" && as_dir=.
16262 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16263 done
16264 IFS=$as_save_IFS
16266 ;;
16267 esac
16268 # We did not find ourselves, most probably we were run as `sh COMMAND'
16269 # in which case we are not to be found in the path.
16270 if test "x$as_myself" = x; then
16271 as_myself=$0
16272 fi
16273 if test ! -f "$as_myself"; then
16274 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16275 { (exit 1); exit 1; }
16276 fi
16278 # Work around bugs in pre-3.0 UWIN ksh.
16279 for as_var in ENV MAIL MAILPATH
16280 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16281 done
16282 PS1='$ '
16283 PS2='> '
16284 PS4='+ '
16286 # NLS nuisances.
16287 for as_var in \
16288 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16289 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16290 LC_TELEPHONE LC_TIME
16291 do
16292 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16293 eval $as_var=C; export $as_var
16294 else
16295 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16296 fi
16297 done
16299 # Required to use basename.
16300 if expr a : '\(a\)' >/dev/null 2>&1 &&
16301 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16302 as_expr=expr
16303 else
16304 as_expr=false
16305 fi
16307 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16308 as_basename=basename
16309 else
16310 as_basename=false
16311 fi
16314 # Name of the executable.
16315 as_me=`$as_basename -- "$0" ||
16316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16317 X"$0" : 'X\(//\)$' \| \
16318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16319 echo X/"$0" |
16320 sed '/^.*\/\([^/][^/]*\)\/*$/{
16321 s//\1/
16322 q
16323 }
16324 /^X\/\(\/\/\)$/{
16325 s//\1/
16326 q
16327 }
16328 /^X\/\(\/\).*/{
16329 s//\1/
16330 q
16331 }
16332 s/.*/./; q'`
16334 # CDPATH.
16335 $as_unset CDPATH
16339 as_lineno_1=$LINENO
16340 as_lineno_2=$LINENO
16341 test "x$as_lineno_1" != "x$as_lineno_2" &&
16342 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16344 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16345 # uniformly replaced by the line number. The first 'sed' inserts a
16346 # line-number line after each line using $LINENO; the second 'sed'
16347 # does the real work. The second script uses 'N' to pair each
16348 # line-number line with the line containing $LINENO, and appends
16349 # trailing '-' during substitution so that $LINENO is not a special
16350 # case at line end.
16351 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16352 # scripts with optimization help from Paolo Bonzini. Blame Lee
16353 # E. McMahon (1931-1989) for sed's syntax. :-)
16354 sed -n '
16355 p
16356 /[$]LINENO/=
16357 ' <$as_myself |
16358 sed '
16359 s/[$]LINENO.*/&-/
16360 t lineno
16361 b
16362 :lineno
16363 N
16364 :loop
16365 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16366 t loop
16367 s/-\n.*//
16368 ' >$as_me.lineno &&
16369 chmod +x "$as_me.lineno" ||
16370 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16371 { (exit 1); exit 1; }; }
16373 # Don't try to exec as it changes $[0], causing all sort of problems
16374 # (the dirname of $[0] is not the place where we might find the
16375 # original and so on. Autoconf is especially sensitive to this).
16376 . "./$as_me.lineno"
16377 # Exit status is that of the last command.
16378 exit
16379 }
16382 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16383 as_dirname=dirname
16384 else
16385 as_dirname=false
16386 fi
16388 ECHO_C= ECHO_N= ECHO_T=
16389 case `echo -n x` in
16390 -n*)
16391 case `echo 'x\c'` in
16392 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16393 *) ECHO_C='\c';;
16394 esac;;
16395 *)
16396 ECHO_N='-n';;
16397 esac
16399 if expr a : '\(a\)' >/dev/null 2>&1 &&
16400 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16401 as_expr=expr
16402 else
16403 as_expr=false
16404 fi
16406 rm -f conf$$ conf$$.exe conf$$.file
16407 if test -d conf$$.dir; then
16408 rm -f conf$$.dir/conf$$.file
16409 else
16410 rm -f conf$$.dir
16411 mkdir conf$$.dir
16412 fi
16413 echo >conf$$.file
16414 if ln -s conf$$.file conf$$ 2>/dev/null; then
16415 as_ln_s='ln -s'
16416 # ... but there are two gotchas:
16417 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16418 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16419 # In both cases, we have to default to `cp -p'.
16420 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16421 as_ln_s='cp -p'
16422 elif ln conf$$.file conf$$ 2>/dev/null; then
16423 as_ln_s=ln
16424 else
16425 as_ln_s='cp -p'
16426 fi
16427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16428 rmdir conf$$.dir 2>/dev/null
16430 if mkdir -p . 2>/dev/null; then
16431 as_mkdir_p=:
16432 else
16433 test -d ./-p && rmdir ./-p
16434 as_mkdir_p=false
16435 fi
16437 if test -x / >/dev/null 2>&1; then
16438 as_test_x='test -x'
16439 else
16440 if ls -dL / >/dev/null 2>&1; then
16441 as_ls_L_option=L
16442 else
16443 as_ls_L_option=
16444 fi
16445 as_test_x='
16446 eval sh -c '\''
16447 if test -d "$1"; then
16448 test -d "$1/.";
16449 else
16450 case $1 in
16451 -*)set "./$1";;
16452 esac;
16453 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16454 ???[sx]*):;;*)false;;esac;fi
16455 '\'' sh
16456 '
16457 fi
16458 as_executable_p=$as_test_x
16460 # Sed expression to map a string onto a valid CPP name.
16461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16463 # Sed expression to map a string onto a valid variable name.
16464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16467 exec 6>&1
16469 # Save the log message, to keep $[0] and so on meaningful, and to
16470 # report actual input values of CONFIG_FILES etc. instead of their
16471 # values after options handling.
16472 ac_log="
16473 This file was extended by $as_me, which was
16474 generated by GNU Autoconf 2.61. Invocation command line was
16476 CONFIG_FILES = $CONFIG_FILES
16477 CONFIG_HEADERS = $CONFIG_HEADERS
16478 CONFIG_LINKS = $CONFIG_LINKS
16479 CONFIG_COMMANDS = $CONFIG_COMMANDS
16480 $ $0 $@
16482 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16483 "
16485 _ACEOF
16487 cat >>$CONFIG_STATUS <<_ACEOF
16488 # Files that config.status was made for.
16489 config_files="$ac_config_files"
16490 config_headers="$ac_config_headers"
16491 config_commands="$ac_config_commands"
16493 _ACEOF
16495 cat >>$CONFIG_STATUS <<\_ACEOF
16496 ac_cs_usage="\
16497 \`$as_me' instantiates files from templates according to the
16498 current configuration.
16500 Usage: $0 [OPTIONS] [FILE]...
16502 -h, --help print this help, then exit
16503 -V, --version print version number and configuration settings, then exit
16504 -q, --quiet do not print progress messages
16505 -d, --debug don't remove temporary files
16506 --recheck update $as_me by reconfiguring in the same conditions
16507 --file=FILE[:TEMPLATE]
16508 instantiate the configuration file FILE
16509 --header=FILE[:TEMPLATE]
16510 instantiate the configuration header FILE
16512 Configuration files:
16513 $config_files
16515 Configuration headers:
16516 $config_headers
16518 Configuration commands:
16519 $config_commands
16521 Report bugs to <bug-autoconf@gnu.org>."
16523 _ACEOF
16524 cat >>$CONFIG_STATUS <<_ACEOF
16525 ac_cs_version="\\
16526 config.status
16527 configured by $0, generated by GNU Autoconf 2.61,
16528 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16530 Copyright (C) 2006 Free Software Foundation, Inc.
16531 This config.status script is free software; the Free Software Foundation
16532 gives unlimited permission to copy, distribute and modify it."
16534 ac_pwd='$ac_pwd'
16535 srcdir='$srcdir'
16536 INSTALL='$INSTALL'
16537 _ACEOF
16539 cat >>$CONFIG_STATUS <<\_ACEOF
16540 # If no file are specified by the user, then we need to provide default
16541 # value. By we need to know if files were specified by the user.
16542 ac_need_defaults=:
16543 while test $# != 0
16544 do
16545 case $1 in
16546 --*=*)
16547 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16548 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16549 ac_shift=:
16550 ;;
16551 *)
16552 ac_option=$1
16553 ac_optarg=$2
16554 ac_shift=shift
16555 ;;
16556 esac
16558 case $ac_option in
16559 # Handling of the options.
16560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16561 ac_cs_recheck=: ;;
16562 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16563 echo "$ac_cs_version"; exit ;;
16564 --debug | --debu | --deb | --de | --d | -d )
16565 debug=: ;;
16566 --file | --fil | --fi | --f )
16567 $ac_shift
16568 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16569 ac_need_defaults=false;;
16570 --header | --heade | --head | --hea )
16571 $ac_shift
16572 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16573 ac_need_defaults=false;;
16574 --he | --h)
16575 # Conflict between --help and --header
16576 { echo "$as_me: error: ambiguous option: $1
16577 Try \`$0 --help' for more information." >&2
16578 { (exit 1); exit 1; }; };;
16579 --help | --hel | -h )
16580 echo "$ac_cs_usage"; exit ;;
16581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16583 ac_cs_silent=: ;;
16585 # This is an error.
16586 -*) { echo "$as_me: error: unrecognized option: $1
16587 Try \`$0 --help' for more information." >&2
16588 { (exit 1); exit 1; }; } ;;
16590 *) ac_config_targets="$ac_config_targets $1"
16591 ac_need_defaults=false ;;
16593 esac
16594 shift
16595 done
16597 ac_configure_extra_args=
16599 if $ac_cs_silent; then
16600 exec 6>/dev/null
16601 ac_configure_extra_args="$ac_configure_extra_args --silent"
16602 fi
16604 _ACEOF
16605 cat >>$CONFIG_STATUS <<_ACEOF
16606 if \$ac_cs_recheck; then
16607 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16608 CONFIG_SHELL=$SHELL
16609 export CONFIG_SHELL
16610 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16611 fi
16613 _ACEOF
16614 cat >>$CONFIG_STATUS <<\_ACEOF
16615 exec 5>>config.log
16616 {
16617 echo
16618 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16619 ## Running $as_me. ##
16620 _ASBOX
16621 echo "$ac_log"
16622 } >&5
16624 _ACEOF
16625 cat >>$CONFIG_STATUS <<_ACEOF
16626 #
16627 # INIT-COMMANDS
16628 #
16629 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16632 _ACEOF
16634 cat >>$CONFIG_STATUS <<\_ACEOF
16636 # Handling of arguments.
16637 for ac_config_target in $ac_config_targets
16638 do
16639 case $ac_config_target in
16640 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16641 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16642 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16643 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16644 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16645 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16646 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16647 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16648 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16650 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16651 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16652 { (exit 1); exit 1; }; };;
16653 esac
16654 done
16657 # If the user did not use the arguments to specify the items to instantiate,
16658 # then the envvar interface is used. Set only those that are not.
16659 # We use the long form for the default assignment because of an extremely
16660 # bizarre bug on SunOS 4.1.3.
16661 if $ac_need_defaults; then
16662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16664 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16665 fi
16667 # Have a temporary directory for convenience. Make it in the build tree
16668 # simply because there is no reason against having it here, and in addition,
16669 # creating and moving files from /tmp can sometimes cause problems.
16670 # Hook for its removal unless debugging.
16671 # Note that there is a small window in which the directory will not be cleaned:
16672 # after its creation but before its name has been assigned to `$tmp'.
16673 $debug ||
16674 {
16675 tmp=
16676 trap 'exit_status=$?
16677 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16678 ' 0
16679 trap '{ (exit 1); exit 1; }' 1 2 13 15
16680 }
16681 # Create a (secure) tmp directory for tmp files.
16683 {
16684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16685 test -n "$tmp" && test -d "$tmp"
16686 } ||
16687 {
16688 tmp=./conf$$-$RANDOM
16689 (umask 077 && mkdir "$tmp")
16690 } ||
16691 {
16692 echo "$me: cannot create a temporary directory in ." >&2
16693 { (exit 1); exit 1; }
16694 }
16696 #
16697 # Set up the sed scripts for CONFIG_FILES section.
16698 #
16700 # No need to generate the scripts if there are no CONFIG_FILES.
16701 # This happens for instance when ./config.status config.h
16702 if test -n "$CONFIG_FILES"; then
16704 _ACEOF
16708 ac_delim='%!_!# '
16709 for ac_last_try in false false false false false :; do
16710 cat >conf$$subs.sed <<_ACEOF
16711 SHELL!$SHELL$ac_delim
16712 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16713 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16714 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16715 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16716 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16717 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16718 exec_prefix!$exec_prefix$ac_delim
16719 prefix!$prefix$ac_delim
16720 program_transform_name!$program_transform_name$ac_delim
16721 bindir!$bindir$ac_delim
16722 sbindir!$sbindir$ac_delim
16723 libexecdir!$libexecdir$ac_delim
16724 datarootdir!$datarootdir$ac_delim
16725 datadir!$datadir$ac_delim
16726 sysconfdir!$sysconfdir$ac_delim
16727 sharedstatedir!$sharedstatedir$ac_delim
16728 localstatedir!$localstatedir$ac_delim
16729 includedir!$includedir$ac_delim
16730 oldincludedir!$oldincludedir$ac_delim
16731 docdir!$docdir$ac_delim
16732 infodir!$infodir$ac_delim
16733 htmldir!$htmldir$ac_delim
16734 dvidir!$dvidir$ac_delim
16735 pdfdir!$pdfdir$ac_delim
16736 psdir!$psdir$ac_delim
16737 libdir!$libdir$ac_delim
16738 localedir!$localedir$ac_delim
16739 mandir!$mandir$ac_delim
16740 DEFS!$DEFS$ac_delim
16741 ECHO_C!$ECHO_C$ac_delim
16742 ECHO_N!$ECHO_N$ac_delim
16743 ECHO_T!$ECHO_T$ac_delim
16744 LIBS!$LIBS$ac_delim
16745 build_alias!$build_alias$ac_delim
16746 host_alias!$host_alias$ac_delim
16747 target_alias!$target_alias$ac_delim
16748 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16749 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16750 INSTALL_DATA!$INSTALL_DATA$ac_delim
16751 CYGPATH_W!$CYGPATH_W$ac_delim
16752 PACKAGE!$PACKAGE$ac_delim
16753 VERSION!$VERSION$ac_delim
16754 ACLOCAL!$ACLOCAL$ac_delim
16755 AUTOCONF!$AUTOCONF$ac_delim
16756 AUTOMAKE!$AUTOMAKE$ac_delim
16757 AUTOHEADER!$AUTOHEADER$ac_delim
16758 MAKEINFO!$MAKEINFO$ac_delim
16759 install_sh!$install_sh$ac_delim
16760 STRIP!$STRIP$ac_delim
16761 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16762 mkdir_p!$mkdir_p$ac_delim
16763 AWK!$AWK$ac_delim
16764 SET_MAKE!$SET_MAKE$ac_delim
16765 am__leading_dot!$am__leading_dot$ac_delim
16766 AMTAR!$AMTAR$ac_delim
16767 am__tar!$am__tar$ac_delim
16768 am__untar!$am__untar$ac_delim
16769 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16770 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16771 MAINT!$MAINT$ac_delim
16772 build!$build$ac_delim
16773 build_cpu!$build_cpu$ac_delim
16774 build_vendor!$build_vendor$ac_delim
16775 build_os!$build_os$ac_delim
16776 host!$host$ac_delim
16777 host_cpu!$host_cpu$ac_delim
16778 host_vendor!$host_vendor$ac_delim
16779 host_os!$host_os$ac_delim
16780 ANT!$ANT$ac_delim
16781 ANDROID_ABI!$ANDROID_ABI$ac_delim
16782 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
16783 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
16784 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
16785 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
16786 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
16787 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
16788 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
16789 CC!$CC$ac_delim
16790 CFLAGS!$CFLAGS$ac_delim
16791 LDFLAGS!$LDFLAGS$ac_delim
16792 CPPFLAGS!$CPPFLAGS$ac_delim
16793 ac_ct_CC!$ac_ct_CC$ac_delim
16794 EXEEXT!$EXEEXT$ac_delim
16795 OBJEXT!$OBJEXT$ac_delim
16796 DEPDIR!$DEPDIR$ac_delim
16797 am__include!$am__include$ac_delim
16798 am__quote!$am__quote$ac_delim
16799 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16800 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16801 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16802 CCDEPMODE!$CCDEPMODE$ac_delim
16803 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16804 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16805 CPP!$CPP$ac_delim
16806 CC!$CC$ac_delim
16807 CFLAGS!$CFLAGS$ac_delim
16808 _ACEOF
16810 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16811 break
16812 elif $ac_last_try; then
16813 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16815 { (exit 1); exit 1; }; }
16816 else
16817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16818 fi
16819 done
16821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16822 if test -n "$ac_eof"; then
16823 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16824 ac_eof=`expr $ac_eof + 1`
16825 fi
16827 cat >>$CONFIG_STATUS <<_ACEOF
16828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16830 _ACEOF
16831 sed '
16832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16833 s/^/s,@/; s/!/@,|#_!!_#|/
16834 :n
16835 t n
16836 s/'"$ac_delim"'$/,g/; t
16837 s/$/\\/; p
16838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16839 ' >>$CONFIG_STATUS <conf$$subs.sed
16840 rm -f conf$$subs.sed
16841 cat >>$CONFIG_STATUS <<_ACEOF
16842 CEOF$ac_eof
16843 _ACEOF
16846 ac_delim='%!_!# '
16847 for ac_last_try in false false false false false :; do
16848 cat >conf$$subs.sed <<_ACEOF
16849 CPPFLAGS!$CPPFLAGS$ac_delim
16850 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16851 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16852 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16853 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16854 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16855 CPP!$CPP$ac_delim
16856 CPPFLAGS!$CPPFLAGS$ac_delim
16857 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16858 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16859 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16860 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16861 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16862 OBJC!$OBJC$ac_delim
16863 OBJCFLAGS!$OBJCFLAGS$ac_delim
16864 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16865 SED!$SED$ac_delim
16866 CCAS!$CCAS$ac_delim
16867 CCASFLAGS!$CCASFLAGS$ac_delim
16868 RANLIB!$RANLIB$ac_delim
16869 GREP!$GREP$ac_delim
16870 EGREP!$EGREP$ac_delim
16871 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16872 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16873 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16874 POD2MAN!$POD2MAN$ac_delim
16875 POD2HTML!$POD2HTML$ac_delim
16876 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16877 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16878 SOEXT!$SOEXT$ac_delim
16879 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16880 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16881 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16882 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
16883 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
16884 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16885 PKG_CONFIG!$PKG_CONFIG$ac_delim
16886 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16887 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16888 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16889 GLIB_LIBS!$GLIB_LIBS$ac_delim
16890 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16891 GTK_LIBS!$GTK_LIBS$ac_delim
16892 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16893 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16894 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16895 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16896 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16897 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16898 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16899 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16900 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16901 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16902 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16903 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16904 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16905 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16906 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16907 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16908 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16909 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16910 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16911 SDL_LIBS!$SDL_LIBS$ac_delim
16912 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16913 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16914 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16915 PULSE_LIBS!$PULSE_LIBS$ac_delim
16916 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16917 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16918 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16919 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16920 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16921 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16922 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16923 ALSA_LIBS!$ALSA_LIBS$ac_delim
16924 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
16925 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
16926 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
16927 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
16928 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
16929 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
16930 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
16931 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
16932 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
16933 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
16934 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
16935 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
16936 SHCC!$SHCC$ac_delim
16937 SHLD!$SHLD$ac_delim
16938 SHOBJCOPY!$SHOBJCOPY$ac_delim
16939 ARMCC!$ARMCC$ac_delim
16940 ARMLD!$ARMLD$ac_delim
16941 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
16942 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
16943 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
16944 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
16945 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
16946 _ACEOF
16948 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16949 break
16950 elif $ac_last_try; then
16951 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16952 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16953 { (exit 1); exit 1; }; }
16954 else
16955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16956 fi
16957 done
16959 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16960 if test -n "$ac_eof"; then
16961 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16962 ac_eof=`expr $ac_eof + 1`
16963 fi
16965 cat >>$CONFIG_STATUS <<_ACEOF
16966 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16968 _ACEOF
16969 sed '
16970 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16971 s/^/s,@/; s/!/@,|#_!!_#|/
16972 :n
16973 t n
16974 s/'"$ac_delim"'$/,g/; t
16975 s/$/\\/; p
16976 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16977 ' >>$CONFIG_STATUS <conf$$subs.sed
16978 rm -f conf$$subs.sed
16979 cat >>$CONFIG_STATUS <<_ACEOF
16980 CEOF$ac_eof
16981 _ACEOF
16984 ac_delim='%!_!# '
16985 for ac_last_try in false false false false false :; do
16986 cat >conf$$subs.sed <<_ACEOF
16987 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
16988 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16989 USE_NLS!$USE_NLS$ac_delim
16990 MSGFMT!$MSGFMT$ac_delim
16991 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
16992 GMSGFMT!$GMSGFMT$ac_delim
16993 XGETTEXT!$XGETTEXT$ac_delim
16994 CATALOGS!$CATALOGS$ac_delim
16995 CATOBJEXT!$CATOBJEXT$ac_delim
16996 DATADIRNAME!$DATADIRNAME$ac_delim
16997 GMOFILES!$GMOFILES$ac_delim
16998 INSTOBJEXT!$INSTOBJEXT$ac_delim
16999 INTLLIBS!$INTLLIBS$ac_delim
17000 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
17001 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
17002 POFILES!$POFILES$ac_delim
17003 POSUB!$POSUB$ac_delim
17004 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17005 LIBOBJS!$LIBOBJS$ac_delim
17006 LTLIBOBJS!$LTLIBOBJS$ac_delim
17007 _ACEOF
17009 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
17010 break
17011 elif $ac_last_try; then
17012 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17013 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17014 { (exit 1); exit 1; }; }
17015 else
17016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17017 fi
17018 done
17020 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17021 if test -n "$ac_eof"; then
17022 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17023 ac_eof=`expr $ac_eof + 1`
17024 fi
17026 cat >>$CONFIG_STATUS <<_ACEOF
17027 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
17028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17029 _ACEOF
17030 sed '
17031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17032 s/^/s,@/; s/!/@,|#_!!_#|/
17033 :n
17034 t n
17035 s/'"$ac_delim"'$/,g/; t
17036 s/$/\\/; p
17037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17038 ' >>$CONFIG_STATUS <conf$$subs.sed
17039 rm -f conf$$subs.sed
17040 cat >>$CONFIG_STATUS <<_ACEOF
17041 :end
17042 s/|#_!!_#|//g
17043 CEOF$ac_eof
17044 _ACEOF
17047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17049 # trailing colons and then remove the whole line if VPATH becomes empty
17050 # (actually we leave an empty line to preserve line numbers).
17051 if test "x$srcdir" = x.; then
17052 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17053 s/:*\$(srcdir):*/:/
17054 s/:*\${srcdir}:*/:/
17055 s/:*@srcdir@:*/:/
17056 s/^\([^=]*=[ ]*\):*/\1/
17057 s/:*$//
17058 s/^[^=]*=[ ]*$//
17059 }'
17060 fi
17062 cat >>$CONFIG_STATUS <<\_ACEOF
17063 fi # test -n "$CONFIG_FILES"
17066 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17067 do
17068 case $ac_tag in
17069 :[FHLC]) ac_mode=$ac_tag; continue;;
17070 esac
17071 case $ac_mode$ac_tag in
17072 :[FHL]*:*);;
17073 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17074 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17075 { (exit 1); exit 1; }; };;
17076 :[FH]-) ac_tag=-:-;;
17077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17078 esac
17079 ac_save_IFS=$IFS
17080 IFS=:
17081 set x $ac_tag
17082 IFS=$ac_save_IFS
17083 shift
17084 ac_file=$1
17085 shift
17087 case $ac_mode in
17088 :L) ac_source=$1;;
17089 :[FH])
17090 ac_file_inputs=
17091 for ac_f
17092 do
17093 case $ac_f in
17094 -) ac_f="$tmp/stdin";;
17095 *) # Look for the file first in the build tree, then in the source tree
17096 # (if the path is not absolute). The absolute path cannot be DOS-style,
17097 # because $ac_f cannot contain `:'.
17098 test -f "$ac_f" ||
17099 case $ac_f in
17100 [\\/$]*) false;;
17101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17102 esac ||
17103 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17104 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17105 { (exit 1); exit 1; }; };;
17106 esac
17107 ac_file_inputs="$ac_file_inputs $ac_f"
17108 done
17110 # Let's still pretend it is `configure' which instantiates (i.e., don't
17111 # use $as_me), people would be surprised to read:
17112 # /* config.h. Generated by config.status. */
17113 configure_input="Generated from "`IFS=:
17114 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17115 if test x"$ac_file" != x-; then
17116 configure_input="$ac_file. $configure_input"
17117 { echo "$as_me:$LINENO: creating $ac_file" >&5
17118 echo "$as_me: creating $ac_file" >&6;}
17119 fi
17121 case $ac_tag in
17122 *:-:* | *:-) cat >"$tmp/stdin";;
17123 esac
17124 ;;
17125 esac
17127 ac_dir=`$as_dirname -- "$ac_file" ||
17128 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17129 X"$ac_file" : 'X\(//\)[^/]' \| \
17130 X"$ac_file" : 'X\(//\)$' \| \
17131 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17132 echo X"$ac_file" |
17133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17134 s//\1/
17135 q
17136 }
17137 /^X\(\/\/\)[^/].*/{
17138 s//\1/
17139 q
17140 }
17141 /^X\(\/\/\)$/{
17142 s//\1/
17143 q
17144 }
17145 /^X\(\/\).*/{
17146 s//\1/
17147 q
17148 }
17149 s/.*/./; q'`
17150 { as_dir="$ac_dir"
17151 case $as_dir in #(
17152 -*) as_dir=./$as_dir;;
17153 esac
17154 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17155 as_dirs=
17156 while :; do
17157 case $as_dir in #(
17158 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17159 *) as_qdir=$as_dir;;
17160 esac
17161 as_dirs="'$as_qdir' $as_dirs"
17162 as_dir=`$as_dirname -- "$as_dir" ||
17163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17164 X"$as_dir" : 'X\(//\)[^/]' \| \
17165 X"$as_dir" : 'X\(//\)$' \| \
17166 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17167 echo X"$as_dir" |
17168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17169 s//\1/
17170 q
17171 }
17172 /^X\(\/\/\)[^/].*/{
17173 s//\1/
17174 q
17175 }
17176 /^X\(\/\/\)$/{
17177 s//\1/
17178 q
17179 }
17180 /^X\(\/\).*/{
17181 s//\1/
17182 q
17183 }
17184 s/.*/./; q'`
17185 test -d "$as_dir" && break
17186 done
17187 test -z "$as_dirs" || eval "mkdir $as_dirs"
17188 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17189 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17190 { (exit 1); exit 1; }; }; }
17191 ac_builddir=.
17193 case "$ac_dir" in
17194 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17195 *)
17196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17197 # A ".." for each directory in $ac_dir_suffix.
17198 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17199 case $ac_top_builddir_sub in
17200 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17201 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17202 esac ;;
17203 esac
17204 ac_abs_top_builddir=$ac_pwd
17205 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17206 # for backward compatibility:
17207 ac_top_builddir=$ac_top_build_prefix
17209 case $srcdir in
17210 .) # We are building in place.
17211 ac_srcdir=.
17212 ac_top_srcdir=$ac_top_builddir_sub
17213 ac_abs_top_srcdir=$ac_pwd ;;
17214 [\\/]* | ?:[\\/]* ) # Absolute name.
17215 ac_srcdir=$srcdir$ac_dir_suffix;
17216 ac_top_srcdir=$srcdir
17217 ac_abs_top_srcdir=$srcdir ;;
17218 *) # Relative name.
17219 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17220 ac_top_srcdir=$ac_top_build_prefix$srcdir
17221 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17222 esac
17223 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17226 case $ac_mode in
17227 :F)
17228 #
17229 # CONFIG_FILE
17230 #
17232 case $INSTALL in
17233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17234 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17235 esac
17236 _ACEOF
17238 cat >>$CONFIG_STATUS <<\_ACEOF
17239 # If the template does not know about datarootdir, expand it.
17240 # FIXME: This hack should be removed a few years after 2.60.
17241 ac_datarootdir_hack=; ac_datarootdir_seen=
17243 case `sed -n '/datarootdir/ {
17244 p
17245 q
17246 }
17247 /@datadir@/p
17248 /@docdir@/p
17249 /@infodir@/p
17250 /@localedir@/p
17251 /@mandir@/p
17252 ' $ac_file_inputs` in
17253 *datarootdir*) ac_datarootdir_seen=yes;;
17254 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17255 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17256 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17257 _ACEOF
17258 cat >>$CONFIG_STATUS <<_ACEOF
17259 ac_datarootdir_hack='
17260 s&@datadir@&$datadir&g
17261 s&@docdir@&$docdir&g
17262 s&@infodir@&$infodir&g
17263 s&@localedir@&$localedir&g
17264 s&@mandir@&$mandir&g
17265 s&\\\${datarootdir}&$datarootdir&g' ;;
17266 esac
17267 _ACEOF
17269 # Neutralize VPATH when `$srcdir' = `.'.
17270 # Shell code in configure.ac might set extrasub.
17271 # FIXME: do we really want to maintain this feature?
17272 cat >>$CONFIG_STATUS <<_ACEOF
17273 sed "$ac_vpsub
17274 $extrasub
17275 _ACEOF
17276 cat >>$CONFIG_STATUS <<\_ACEOF
17277 :t
17278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17279 s&@configure_input@&$configure_input&;t t
17280 s&@top_builddir@&$ac_top_builddir_sub&;t t
17281 s&@srcdir@&$ac_srcdir&;t t
17282 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17283 s&@top_srcdir@&$ac_top_srcdir&;t t
17284 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17285 s&@builddir@&$ac_builddir&;t t
17286 s&@abs_builddir@&$ac_abs_builddir&;t t
17287 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17288 s&@INSTALL@&$ac_INSTALL&;t t
17289 $ac_datarootdir_hack
17290 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
17292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17293 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17295 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17296 which seems to be undefined. Please make sure it is defined." >&5
17297 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17298 which seems to be undefined. Please make sure it is defined." >&2;}
17300 rm -f "$tmp/stdin"
17301 case $ac_file in
17302 -) cat "$tmp/out"; rm -f "$tmp/out";;
17303 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17304 esac
17305 ;;
17306 :H)
17307 #
17308 # CONFIG_HEADER
17309 #
17310 _ACEOF
17312 # Transform confdefs.h into a sed script `conftest.defines', that
17313 # substitutes the proper values into config.h.in to produce config.h.
17314 rm -f conftest.defines conftest.tail
17315 # First, append a space to every undef/define line, to ease matching.
17316 echo 's/$/ /' >conftest.defines
17317 # Then, protect against being on the right side of a sed subst, or in
17318 # an unquoted here document, in config.status. If some macros were
17319 # called several times there might be several #defines for the same
17320 # symbol, which is useless. But do not sort them, since the last
17321 # AC_DEFINE must be honored.
17322 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17323 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17324 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17325 # PARAMS is the parameter list in the macro definition--in most cases, it's
17326 # just an empty string.
17327 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17328 ac_dB='\\)[ (].*,\\1define\\2'
17329 ac_dC=' '
17330 ac_dD=' ,'
17332 uniq confdefs.h |
17333 sed -n '
17334 t rset
17335 :rset
17336 s/^[ ]*#[ ]*define[ ][ ]*//
17337 t ok
17338 d
17339 :ok
17340 s/[\\&,]/\\&/g
17341 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17342 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17343 ' >>conftest.defines
17345 # Remove the space that was appended to ease matching.
17346 # Then replace #undef with comments. This is necessary, for
17347 # example, in the case of _POSIX_SOURCE, which is predefined and required
17348 # on some systems where configure will not decide to define it.
17349 # (The regexp can be short, since the line contains either #define or #undef.)
17350 echo 's/ $//
17351 s,^[ #]*u.*,/* & */,' >>conftest.defines
17353 # Break up conftest.defines:
17354 ac_max_sed_lines=50
17356 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17357 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17358 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17359 # et cetera.
17360 ac_in='$ac_file_inputs'
17361 ac_out='"$tmp/out1"'
17362 ac_nxt='"$tmp/out2"'
17364 while :
17365 do
17366 # Write a here document:
17367 cat >>$CONFIG_STATUS <<_ACEOF
17368 # First, check the format of the line:
17369 cat >"\$tmp/defines.sed" <<\\CEOF
17370 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17371 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17372 b
17373 :def
17374 _ACEOF
17375 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17376 echo 'CEOF
17377 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17378 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17379 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17380 grep . conftest.tail >/dev/null || break
17381 rm -f conftest.defines
17382 mv conftest.tail conftest.defines
17383 done
17384 rm -f conftest.defines conftest.tail
17386 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17387 cat >>$CONFIG_STATUS <<\_ACEOF
17388 if test x"$ac_file" != x-; then
17389 echo "/* $configure_input */" >"$tmp/config.h"
17390 cat "$ac_result" >>"$tmp/config.h"
17391 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17392 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17393 echo "$as_me: $ac_file is unchanged" >&6;}
17394 else
17395 rm -f $ac_file
17396 mv "$tmp/config.h" $ac_file
17397 fi
17398 else
17399 echo "/* $configure_input */"
17400 cat "$ac_result"
17401 fi
17402 rm -f "$tmp/out12"
17403 # Compute $ac_file's index in $config_headers.
17404 _am_stamp_count=1
17405 for _am_header in $config_headers :; do
17406 case $_am_header in
17407 $ac_file | $ac_file:* )
17408 break ;;
17409 * )
17410 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17411 esac
17412 done
17413 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17414 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17415 X$ac_file : 'X\(//\)[^/]' \| \
17416 X$ac_file : 'X\(//\)$' \| \
17417 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17418 echo X$ac_file |
17419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17420 s//\1/
17421 q
17422 }
17423 /^X\(\/\/\)[^/].*/{
17424 s//\1/
17425 q
17426 }
17427 /^X\(\/\/\)$/{
17428 s//\1/
17429 q
17430 }
17431 /^X\(\/\).*/{
17432 s//\1/
17433 q
17434 }
17435 s/.*/./; q'`/stamp-h$_am_stamp_count
17436 ;;
17438 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17439 echo "$as_me: executing $ac_file commands" >&6;}
17440 ;;
17441 esac
17444 case $ac_file$ac_mode in
17445 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17446 # Strip MF so we end up with the name of the file.
17447 mf=`echo "$mf" | sed -e 's/:.*$//'`
17448 # Check whether this is an Automake generated Makefile or not.
17449 # We used to match only the files named `Makefile.in', but
17450 # some people rename them; so instead we look at the file content.
17451 # Grep'ing the first line is not enough: some people post-process
17452 # each Makefile.in and add a new line on top of each file to say so.
17453 # So let's grep whole file.
17454 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17455 dirpart=`$as_dirname -- "$mf" ||
17456 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17457 X"$mf" : 'X\(//\)[^/]' \| \
17458 X"$mf" : 'X\(//\)$' \| \
17459 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17460 echo X"$mf" |
17461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17462 s//\1/
17463 q
17464 }
17465 /^X\(\/\/\)[^/].*/{
17466 s//\1/
17467 q
17468 }
17469 /^X\(\/\/\)$/{
17470 s//\1/
17471 q
17472 }
17473 /^X\(\/\).*/{
17474 s//\1/
17475 q
17476 }
17477 s/.*/./; q'`
17478 else
17479 continue
17480 fi
17481 # Extract the definition of DEPDIR, am__include, and am__quote
17482 # from the Makefile without running `make'.
17483 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17484 test -z "$DEPDIR" && continue
17485 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17486 test -z "am__include" && continue
17487 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17488 # When using ansi2knr, U may be empty or an underscore; expand it
17489 U=`sed -n 's/^U = //p' < "$mf"`
17490 # Find all dependency output files, they are included files with
17491 # $(DEPDIR) in their names. We invoke sed twice because it is the
17492 # simplest approach to changing $(DEPDIR) to its actual value in the
17493 # expansion.
17494 for file in `sed -n "
17495 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17496 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17497 # Make sure the directory exists.
17498 test -f "$dirpart/$file" && continue
17499 fdir=`$as_dirname -- "$file" ||
17500 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17501 X"$file" : 'X\(//\)[^/]' \| \
17502 X"$file" : 'X\(//\)$' \| \
17503 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17504 echo X"$file" |
17505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17506 s//\1/
17507 q
17508 }
17509 /^X\(\/\/\)[^/].*/{
17510 s//\1/
17511 q
17512 }
17513 /^X\(\/\/\)$/{
17514 s//\1/
17515 q
17516 }
17517 /^X\(\/\).*/{
17518 s//\1/
17519 q
17520 }
17521 s/.*/./; q'`
17522 { as_dir=$dirpart/$fdir
17523 case $as_dir in #(
17524 -*) as_dir=./$as_dir;;
17525 esac
17526 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17527 as_dirs=
17528 while :; do
17529 case $as_dir in #(
17530 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17531 *) as_qdir=$as_dir;;
17532 esac
17533 as_dirs="'$as_qdir' $as_dirs"
17534 as_dir=`$as_dirname -- "$as_dir" ||
17535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17536 X"$as_dir" : 'X\(//\)[^/]' \| \
17537 X"$as_dir" : 'X\(//\)$' \| \
17538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17539 echo X"$as_dir" |
17540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17541 s//\1/
17542 q
17543 }
17544 /^X\(\/\/\)[^/].*/{
17545 s//\1/
17546 q
17547 }
17548 /^X\(\/\/\)$/{
17549 s//\1/
17550 q
17551 }
17552 /^X\(\/\).*/{
17553 s//\1/
17554 q
17555 }
17556 s/.*/./; q'`
17557 test -d "$as_dir" && break
17558 done
17559 test -z "$as_dirs" || eval "mkdir $as_dirs"
17560 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17561 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17562 { (exit 1); exit 1; }; }; }
17563 # echo "creating $dirpart/$file"
17564 echo '# dummy' > "$dirpart/$file"
17565 done
17566 done
17567 ;;
17568 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17569 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17570 esac ;;
17572 esac
17573 done # for ac_tag
17576 { (exit 0); exit 0; }
17577 _ACEOF
17578 chmod +x $CONFIG_STATUS
17579 ac_clean_files=$ac_clean_files_save
17582 # configure is writing to config.log, and then calls config.status.
17583 # config.status does its own redirection, appending to config.log.
17584 # Unfortunately, on DOS this fails, as config.log is still kept open
17585 # by configure, so config.status won't be able to write to it; its
17586 # output is simply discarded. So we exec the FD to /dev/null,
17587 # effectively closing config.log, so it can be properly (re)opened and
17588 # appended to by config.status. When coming back to configure, we
17589 # need to make the FD available again.
17590 if test "$no_create" != yes; then
17591 ac_cs_success=:
17592 ac_config_status_args=
17593 test "$silent" = yes &&
17594 ac_config_status_args="$ac_config_status_args --quiet"
17595 exec 5>/dev/null
17596 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17597 exec 5>>config.log
17598 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17599 # would make configure fail if this is the last instruction.
17600 $ac_cs_success || { (exit 1); exit 1; }
17601 fi
17603 { as_dir=test/sh4
17604 case $as_dir in #(
17605 -*) as_dir=./$as_dir;;
17606 esac
17607 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17608 as_dirs=
17609 while :; do
17610 case $as_dir in #(
17611 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17612 *) as_qdir=$as_dir;;
17613 esac
17614 as_dirs="'$as_qdir' $as_dirs"
17615 as_dir=`$as_dirname -- "$as_dir" ||
17616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17617 X"$as_dir" : 'X\(//\)[^/]' \| \
17618 X"$as_dir" : 'X\(//\)$' \| \
17619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17620 echo X"$as_dir" |
17621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17622 s//\1/
17623 q
17624 }
17625 /^X\(\/\/\)[^/].*/{
17626 s//\1/
17627 q
17628 }
17629 /^X\(\/\/\)$/{
17630 s//\1/
17631 q
17632 }
17633 /^X\(\/\).*/{
17634 s//\1/
17635 q
17636 }
17637 s/.*/./; q'`
17638 test -d "$as_dir" && break
17639 done
17640 test -z "$as_dirs" || eval "mkdir $as_dirs"
17641 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17642 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17643 { (exit 1); exit 1; }; }; }
17646 echo
17647 echo "Configuration complete"
17648 echo
17650 if test "x$UI_DRIVER" = x; then
17651 echo " User interface: none"
17652 else
17653 echo " User interface: $UI_DRIVER"
17654 fi
17656 if test "x$SH4_TRANSLATOR" = "x"; then
17657 echo " SH4 translator: none (emulation core only)"
17658 else
17659 echo " SH4 translator: $SH4_TRANSLATOR"
17660 fi
17662 if test "x$VIDEO_DRIVERS" = "x"; then
17663 echo " Video drivers: none (no supported GL found)"
17664 else
17665 echo " Video drivers: $VIDEO_DRIVERS"
17666 fi
17668 if test "x$AUDIO_DRIVERS" = "x"; then
17669 echo " Audio drivers: none (no supported output devices found)"
17670 else
17671 echo " Audio drivers: $AUDIO_DRIVERS"
17672 fi
17674 if test "x$INPUT_DRIVERS" = "x"; then
17675 echo " Input drivers: none (no supported input devices found)"
17676 else
17677 echo " Input drivers: $INPUT_DRIVERS"
17678 fi
17680 if test "x$CDROM_DRIVER" = "x"; then
17681 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17682 else
17683 echo " CD-ROM driver: $CDROM_DRIVER"
17684 fi
.