filename | configure |
changeset | 866:86cd01c2b2d3 |
prev | 804:567a684e1e7a |
next | 882:ada7d14a8ad9 |
author | nkeynes |
date | Fri Oct 10 00:13:39 2008 +0000 (15 years ago) |
permissions | -rwxr-xr-x |
last change | Skip the texcache render-buffer alloc for now (due to various texture-format complications), and write the buffer straight back to vram after rendering. |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
229 test \$exitcode = 0) || { (exit 1); exit 1; }
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
271 fi
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
292 fi
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
344 test $exitcode = 0) || { (exit 1); exit 1; }
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
355 fi
357 fi
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
379 fi
381 fi
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 CYGPATH_W
679 PACKAGE
680 VERSION
681 ACLOCAL
682 AUTOCONF
683 AUTOMAKE
684 AUTOHEADER
685 MAKEINFO
686 install_sh
687 STRIP
688 INSTALL_STRIP_PROGRAM
689 mkdir_p
690 AWK
691 SET_MAKE
692 am__leading_dot
693 AMTAR
694 am__tar
695 am__untar
696 MAINTAINER_MODE_TRUE
697 MAINTAINER_MODE_FALSE
698 MAINT
699 CC
700 CFLAGS
701 LDFLAGS
702 CPPFLAGS
703 ac_ct_CC
704 EXEEXT
705 OBJEXT
706 DEPDIR
707 am__include
708 am__quote
709 AMDEP_TRUE
710 AMDEP_FALSE
711 AMDEPBACKSLASH
712 CCDEPMODE
713 am__fastdepCC_TRUE
714 am__fastdepCC_FALSE
715 CCAS
716 CCASFLAGS
717 CPP
718 GREP
719 EGREP
720 build
721 build_cpu
722 build_vendor
723 build_os
724 host
725 host_cpu
726 host_vendor
727 host_os
728 POD2MAN
729 POD2HTML
730 GUI_COCOA_TRUE
731 GUI_COCOA_FALSE
732 PKG_CONFIG
733 LIBPNG_CFLAGS
734 LIBPNG_LIBS
735 GLIB_CFLAGS
736 GLIB_LIBS
737 GTK_CFLAGS
738 GTK_LIBS
739 GUI_GTK_TRUE
740 GUI_GTK_FALSE
741 VIDEO_OSMESA_TRUE
742 VIDEO_OSMESA_FALSE
743 VIDEO_GLX_TRUE
744 VIDEO_GLX_FALSE
745 VIDEO_NSGL_TRUE
746 VIDEO_NSGL_FALSE
747 BUILD_SH4X86_TRUE
748 BUILD_SH4X86_FALSE
749 AUDIO_OSX_TRUE
750 AUDIO_OSX_FALSE
751 PULSE_CFLAGS
752 PULSE_LIBS
753 AUDIO_PULSE_TRUE
754 AUDIO_PULSE_FALSE
755 ESOUND_CFLAGS
756 ESOUND_LIBS
757 AUDIO_ESOUND_TRUE
758 AUDIO_ESOUND_FALSE
759 ALSA_CFLAGS
760 ALSA_LIBS
761 AUDIO_ALSA_TRUE
762 AUDIO_ALSA_FALSE
763 CDROM_LINUX_TRUE
764 CDROM_LINUX_FALSE
765 CDROM_OSX_TRUE
766 CDROM_OSX_FALSE
767 CDROM_NONE_TRUE
768 CDROM_NONE_FALSE
769 JOY_LINUX_TRUE
770 JOY_LINUX_FALSE
771 SHCC
772 SHLD
773 SHOBJCOPY
774 ARMCC
775 ARMLD
776 ARMOBJCOPY
777 BUILD_SYSTEST_TRUE
778 BUILD_SYSTEST_FALSE
779 BUILD_ARMTEST_TRUE
780 BUILD_ARMTEST_FALSE
781 GETTEXT_PACKAGE
782 USE_NLS
783 MSGFMT
784 MSGFMT_OPTS
785 GMSGFMT
786 XGETTEXT
787 CATALOGS
788 CATOBJEXT
789 DATADIRNAME
790 GMOFILES
791 INSTOBJEXT
792 INTLLIBS
793 PO_IN_DATADIR_TRUE
794 PO_IN_DATADIR_FALSE
795 POFILES
796 POSUB
797 MKINSTALLDIRS
798 LIBOBJS
799 LTLIBOBJS'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_maintainer_mode
804 enable_dependency_tracking
805 enable_strict_warn
806 enable_translator
807 enable_trace
808 enable_watch
809 enable_sh4stats
810 with_osmesa
811 with_gtk
812 with_esd
813 with_pulse
814 '
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CC
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 CCAS
824 CCASFLAGS
825 CPP
826 PKG_CONFIG
827 LIBPNG_CFLAGS
828 LIBPNG_LIBS
829 GLIB_CFLAGS
830 GLIB_LIBS
831 GTK_CFLAGS
832 GTK_LIBS
833 PULSE_CFLAGS
834 PULSE_LIBS
835 ESOUND_CFLAGS
836 ESOUND_LIBS
837 ALSA_CFLAGS
838 ALSA_LIBS'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
928 --config-cache | -C)
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1230 ;;
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 ;;
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1256 fi
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1265 fi
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1272 do
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1353 fi
1354 else
1355 ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures this package to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1446 cat <<\_ACEOF
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1457 fi
1459 if test -n "$ac_init_help"; then
1461 cat <<\_ACEOF
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-maintainer-mode enable make rules and dependencies not useful
1468 (and sometimes confusing) to the casual installer
1469 --disable-dependency-tracking speeds up one-time build
1470 --enable-dependency-tracking do not reject slow dependency extractors
1471 --enable-strict-warn Enable strict compilation warnings
1472 --disable-translator Disable the SH4 translator (Enable by default)
1473 --enable-trace Enable generation of IO traces (warning: hurts
1474 performance)
1475 --enable-watch Enable watchpoints in the debugger (warning: hurts
1476 performance)
1477 --enable-sh4stats Enable statistics on executed sh4 instructions
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-osmesa Build with the osmesa GL library (software
1483 rendering)
1484 --with-gtk Build with the GTK UI. Default on X11 systems
1485 --with-esd Build with support for the ESounD audio system
1486 --with-pulse Build with support for the PulseAudio audio system
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CCAS assembler compiler command (defaults to CC)
1497 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1498 CPP C preprocessor
1499 PKG_CONFIG path to pkg-config utility
1500 LIBPNG_CFLAGS
1501 C compiler flags for LIBPNG, overriding pkg-config
1502 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1503 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1504 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1505 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1506 GTK_LIBS linker flags for GTK, overriding pkg-config
1507 PULSE_CFLAGS
1508 C compiler flags for PULSE, overriding pkg-config
1509 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1510 ESOUND_CFLAGS
1511 C compiler flags for ESOUND, overriding pkg-config
1512 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1513 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1514 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 configure
1582 generated by GNU Autoconf 2.62
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589 exit
1590 fi
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.62. Invocation command line was
1598 $ $0 $@
1600 _ACEOF
1601 exec 5>>config.log
1602 {
1603 cat <<_ASUNAME
1604 ## --------- ##
1605 ## Platform. ##
1606 ## --------- ##
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1621 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1625 _ASUNAME
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 $as_echo "PATH: $as_dir"
1633 done
1634 IFS=$as_save_IFS
1636 } >&5
1638 cat >&5 <<_ACEOF
1641 ## ----------- ##
1642 ## Core tests. ##
1643 ## ----------- ##
1645 _ACEOF
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_configure_args=
1654 ac_configure_args0=
1655 ac_configure_args1=
1656 ac_must_keep_next=false
1657 for ac_pass in 1 2
1658 do
1659 for ac_arg
1660 do
1661 case $ac_arg in
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1665 continue ;;
1666 *\'*)
1667 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 esac
1669 case $ac_pass in
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 2)
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1675 else
1676 case $ac_arg in
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683 esac
1684 ;;
1685 -* ) ac_must_keep_next=true ;;
1686 esac
1687 fi
1688 ac_configure_args="$ac_configure_args '$ac_arg'"
1689 ;;
1690 esac
1691 done
1692 done
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log. We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1703 {
1704 echo
1706 cat <<\_ASBOX
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1710 _ASBOX
1711 echo
1712 # The following way of writing the cache mishandles newlines in values,
1713 (
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1716 case $ac_val in #(
1717 *${as_nl}*)
1718 case $ac_var in #(
1719 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721 esac
1722 case $ac_var in #(
1723 _ | IFS | as_nl) ;; #(
1724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1725 *) $as_unset $ac_var ;;
1726 esac ;;
1727 esac
1728 done
1729 (set) 2>&1 |
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
1732 sed -n \
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 ;; #(
1736 *)
1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738 ;;
1739 esac |
1740 sort
1741 )
1742 echo
1744 cat <<\_ASBOX
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1748 _ASBOX
1749 echo
1750 for ac_var in $ac_subst_vars
1751 do
1752 eval ac_val=\$$ac_var
1753 case $ac_val in
1754 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 esac
1756 $as_echo "$ac_var='\''$ac_val'\''"
1757 done | sort
1758 echo
1760 if test -n "$ac_subst_files"; then
1761 cat <<\_ASBOX
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1765 _ASBOX
1766 echo
1767 for ac_var in $ac_subst_files
1768 do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 $as_echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1776 fi
1778 if test -s confdefs.h; then
1779 cat <<\_ASBOX
1780 ## ----------- ##
1781 ## confdefs.h. ##
1782 ## ----------- ##
1783 _ASBOX
1784 echo
1785 cat confdefs.h
1786 echo
1787 fi
1788 test "$ac_signal" != 0 &&
1789 $as_echo "$as_me: caught signal $ac_signal"
1790 $as_echo "$as_me: exit $exit_status"
1791 } >&5
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794 exit $exit_status
1795 ' 0
1796 for ac_signal in 1 2 13 15; do
1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 done
1799 ac_signal=0
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1804 # Predefined preprocessor variables.
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 _ACEOF
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 _ACEOF
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 _ACEOF
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 _ACEOF
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer an explicitly selected file to automatically selected ones.
1833 ac_site_file1=NONE
1834 ac_site_file2=NONE
1835 if test -n "$CONFIG_SITE"; then
1836 ac_site_file1=$CONFIG_SITE
1837 elif test "x$prefix" != xNONE; then
1838 ac_site_file1=$prefix/share/config.site
1839 ac_site_file2=$prefix/etc/config.site
1840 else
1841 ac_site_file1=$ac_default_prefix/share/config.site
1842 ac_site_file2=$ac_default_prefix/etc/config.site
1843 fi
1844 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1845 do
1846 test "x$ac_site_file" = xNONE && continue
1847 if test -r "$ac_site_file"; then
1848 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 $as_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 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 $as_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 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 $as_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 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1885 ,set)
1886 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 $as_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 # differences in whitespace do not lead to failure.
1893 ac_old_val_w=`echo x $ac_old_val`
1894 ac_new_val_w=`echo x $ac_new_val`
1895 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898 ac_cache_corrupted=:
1899 else
1900 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1901 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1902 eval $ac_var=\$ac_old_val
1903 fi
1904 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1905 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1906 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1907 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1908 fi;;
1909 esac
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1912 case $ac_new_val in
1913 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1915 esac
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919 esac
1920 fi
1921 done
1922 if $ac_cache_corrupted; then
1923 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1924 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1927 { (exit 1); exit 1; }; }
1928 fi
1946 ac_ext=c
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 am__api_version="1.9"
1954 ac_aux_dir=
1955 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1956 if test -f "$ac_dir/install-sh"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install-sh -c"
1959 break
1960 elif test -f "$ac_dir/install.sh"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/install.sh -c"
1963 break
1964 elif test -f "$ac_dir/shtool"; then
1965 ac_aux_dir=$ac_dir
1966 ac_install_sh="$ac_aux_dir/shtool install -c"
1967 break
1968 fi
1969 done
1970 if test -z "$ac_aux_dir"; then
1971 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1972 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1973 { (exit 1); exit 1; }; }
1974 fi
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1985 # Find a good install program. We prefer a C program (faster),
1986 # so one script is as good as another. But avoid the broken or
1987 # incompatible versions:
1988 # SysV /etc/install, /usr/sbin/install
1989 # SunOS /usr/etc/install
1990 # IRIX /sbin/install
1991 # AIX /bin/install
1992 # AmigaOS /C/install, which installs bootblocks on floppy discs
1993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1996 # OS/2's system install, which has a completely different semantic
1997 # ./install, which can be erroneously created by make from ./install.sh.
1998 # Reject install programs that cannot install multiple files.
1999 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2000 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2001 if test -z "$INSTALL"; then
2002 if test "${ac_cv_path_install+set}" = set; then
2003 $as_echo_n "(cached) " >&6
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 # Account for people who put trailing slashes in PATH elements.
2011 case $as_dir/ in
2012 ./ | .// | /cC/* | \
2013 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2014 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2015 /usr/ucb/* ) ;;
2016 *)
2017 # OSF1 and SCO ODT 3.0 have their own names for install.
2018 # Don't use installbsd from OSF since it installs stuff as root
2019 # by default.
2020 for ac_prog in ginstall scoinst install; do
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2023 if test $ac_prog = install &&
2024 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2025 # AIX install. It has an incompatible calling convention.
2026 :
2027 elif test $ac_prog = install &&
2028 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029 # program-specific install script used by HP pwplus--don't use.
2030 :
2031 else
2032 rm -rf conftest.one conftest.two conftest.dir
2033 echo one > conftest.one
2034 echo two > conftest.two
2035 mkdir conftest.dir
2036 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2037 test -s conftest.one && test -s conftest.two &&
2038 test -s conftest.dir/conftest.one &&
2039 test -s conftest.dir/conftest.two
2040 then
2041 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2042 break 3
2043 fi
2044 fi
2045 fi
2046 done
2047 done
2048 ;;
2049 esac
2051 done
2052 IFS=$as_save_IFS
2054 rm -rf conftest.one conftest.two conftest.dir
2056 fi
2057 if test "${ac_cv_path_install+set}" = set; then
2058 INSTALL=$ac_cv_path_install
2059 else
2060 # As a last resort, use the slow shell script. Don't cache a
2061 # value for INSTALL within a source directory, because that will
2062 # break other packages using the cache if that directory is
2063 # removed, or if the value is a relative name.
2064 INSTALL=$ac_install_sh
2065 fi
2066 fi
2067 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2068 $as_echo "$INSTALL" >&6; }
2070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2071 # It thinks the first close brace ends the variable substitution.
2072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2078 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2079 $as_echo_n "checking whether build environment is sane... " >&6; }
2080 # Just in case
2081 sleep 1
2082 echo timestamp > conftest.file
2083 # Do `set' in a subshell so we don't clobber the current shell's
2084 # arguments. Must try -L first in case configure is actually a
2085 # symlink; some systems play weird games with the mod time of symlinks
2086 # (eg FreeBSD returns the mod time of the symlink's containing
2087 # directory).
2088 if (
2089 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2090 if test "$*" = "X"; then
2091 # -L didn't work.
2092 set X `ls -t $srcdir/configure conftest.file`
2093 fi
2094 rm -f conftest.file
2095 if test "$*" != "X $srcdir/configure conftest.file" \
2096 && test "$*" != "X conftest.file $srcdir/configure"; then
2098 # If neither matched, then we have a broken ls. This can happen
2099 # if, for instance, CONFIG_SHELL is bash and it inherits a
2100 # broken ls alias from the environment. This has actually
2101 # happened. Such a system could not be considered "sane".
2102 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2103 alias in your environment" >&5
2104 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2105 alias in your environment" >&2;}
2106 { (exit 1); exit 1; }; }
2107 fi
2109 test "$2" = conftest.file
2110 )
2111 then
2112 # Ok.
2113 :
2114 else
2115 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2116 Check your system clock" >&5
2117 $as_echo "$as_me: error: newly created file is older than distributed files!
2118 Check your system clock" >&2;}
2119 { (exit 1); exit 1; }; }
2120 fi
2121 { $as_echo "$as_me:$LINENO: result: yes" >&5
2122 $as_echo "yes" >&6; }
2123 test "$program_prefix" != NONE &&
2124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2125 # Use a double $ so make ignores it.
2126 test "$program_suffix" != NONE &&
2127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2128 # Double any \ or $.
2129 # By default was `s,x,x', remove it if useless.
2130 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2131 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2133 # expand $ac_aux_dir to an absolute path
2134 am_aux_dir=`cd $ac_aux_dir && pwd`
2136 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2137 # Use eval to expand $SHELL
2138 if eval "$MISSING --run true"; then
2139 am_missing_run="$MISSING --run "
2140 else
2141 am_missing_run=
2142 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2143 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2144 fi
2146 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2147 # We used to keeping the `.' as first argument, in order to
2148 # allow $(mkdir_p) to be used without argument. As in
2149 # $(mkdir_p) $(somedir)
2150 # where $(somedir) is conditionally defined. However this is wrong
2151 # for two reasons:
2152 # 1. if the package is installed by a user who cannot write `.'
2153 # make install will fail,
2154 # 2. the above comment should most certainly read
2155 # $(mkdir_p) $(DESTDIR)$(somedir)
2156 # so it does not work when $(somedir) is undefined and
2157 # $(DESTDIR) is not.
2158 # To support the latter case, we have to write
2159 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2160 # so the `.' trick is pointless.
2161 mkdir_p='mkdir -p --'
2162 else
2163 # On NextStep and OpenStep, the `mkdir' command does not
2164 # recognize any option. It will interpret all options as
2165 # directories to create, and then abort because `.' already
2166 # exists.
2167 for d in ./-p ./--version;
2168 do
2169 test -d $d && rmdir $d
2170 done
2171 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2172 if test -f "$ac_aux_dir/mkinstalldirs"; then
2173 mkdir_p='$(mkinstalldirs)'
2174 else
2175 mkdir_p='$(install_sh) -d'
2176 fi
2177 fi
2179 for ac_prog in gawk mawk nawk awk
2180 do
2181 # Extract the first word of "$ac_prog", so it can be a program name with args.
2182 set dummy $ac_prog; ac_word=$2
2183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 $as_echo_n "checking for $ac_word... " >&6; }
2185 if test "${ac_cv_prog_AWK+set}" = set; then
2186 $as_echo_n "(cached) " >&6
2187 else
2188 if test -n "$AWK"; then
2189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_AWK="$ac_prog"
2199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2201 fi
2202 done
2203 done
2204 IFS=$as_save_IFS
2206 fi
2207 fi
2208 AWK=$ac_cv_prog_AWK
2209 if test -n "$AWK"; then
2210 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2211 $as_echo "$AWK" >&6; }
2212 else
2213 { $as_echo "$as_me:$LINENO: result: no" >&5
2214 $as_echo "no" >&6; }
2215 fi
2218 test -n "$AWK" && break
2219 done
2221 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2222 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2223 set x ${MAKE-make}
2224 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2225 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2226 $as_echo_n "(cached) " >&6
2227 else
2228 cat >conftest.make <<\_ACEOF
2229 SHELL = /bin/sh
2230 all:
2231 @echo '@@@%%%=$(MAKE)=@@@%%%'
2232 _ACEOF
2233 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2234 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2235 *@@@%%%=?*=@@@%%%*)
2236 eval ac_cv_prog_make_${ac_make}_set=yes;;
2237 *)
2238 eval ac_cv_prog_make_${ac_make}_set=no;;
2239 esac
2240 rm -f conftest.make
2241 fi
2242 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2243 { $as_echo "$as_me:$LINENO: result: yes" >&5
2244 $as_echo "yes" >&6; }
2245 SET_MAKE=
2246 else
2247 { $as_echo "$as_me:$LINENO: result: no" >&5
2248 $as_echo "no" >&6; }
2249 SET_MAKE="MAKE=${MAKE-make}"
2250 fi
2252 rm -rf .tst 2>/dev/null
2253 mkdir .tst 2>/dev/null
2254 if test -d .tst; then
2255 am__leading_dot=.
2256 else
2257 am__leading_dot=_
2258 fi
2259 rmdir .tst 2>/dev/null
2261 # test to see if srcdir already configured
2262 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2263 test -f $srcdir/config.status; then
2264 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2265 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2266 { (exit 1); exit 1; }; }
2267 fi
2269 # test whether we have cygpath
2270 if test -z "$CYGPATH_W"; then
2271 if (cygpath --version) >/dev/null 2>/dev/null; then
2272 CYGPATH_W='cygpath -w'
2273 else
2274 CYGPATH_W=echo
2275 fi
2276 fi
2279 # Define the identity of the package.
2280 PACKAGE=lxdream
2281 VERSION=0.8.4
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE "$PACKAGE"
2286 _ACEOF
2289 cat >>confdefs.h <<_ACEOF
2290 #define VERSION "$VERSION"
2291 _ACEOF
2293 # Some tools Automake needs.
2295 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2298 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2301 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2304 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2307 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2311 # Installed binaries are usually stripped using `strip' when the user
2312 # run `make install-strip'. However `strip' might not be the right
2313 # tool to use in cross-compilation environments, therefore Automake
2314 # will honor the `STRIP' environment variable to overrule this program.
2315 if test "$cross_compiling" != no; then
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}strip; ac_word=$2
2319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 $as_echo_n "checking for $ac_word... " >&6; }
2321 if test "${ac_cv_prog_STRIP+set}" = set; then
2322 $as_echo_n "(cached) " >&6
2323 else
2324 if test -n "$STRIP"; then
2325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2337 fi
2338 done
2339 done
2340 IFS=$as_save_IFS
2342 fi
2343 fi
2344 STRIP=$ac_cv_prog_STRIP
2345 if test -n "$STRIP"; then
2346 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2347 $as_echo "$STRIP" >&6; }
2348 else
2349 { $as_echo "$as_me:$LINENO: result: no" >&5
2350 $as_echo "no" >&6; }
2351 fi
2354 fi
2355 if test -z "$ac_cv_prog_STRIP"; then
2356 ac_ct_STRIP=$STRIP
2357 # Extract the first word of "strip", so it can be a program name with args.
2358 set dummy strip; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test -n "$ac_ct_STRIP"; then
2365 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_ac_ct_STRIP="strip"
2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2377 fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2382 fi
2383 fi
2384 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2385 if test -n "$ac_ct_STRIP"; then
2386 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2387 $as_echo "$ac_ct_STRIP" >&6; }
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 fi
2393 if test "x$ac_ct_STRIP" = x; then
2394 STRIP=":"
2395 else
2396 case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&5
2401 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406 STRIP=$ac_ct_STRIP
2407 fi
2408 else
2409 STRIP="$ac_cv_prog_STRIP"
2410 fi
2412 fi
2413 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2415 # We need awk for the "check" target. The system "awk" is bad on
2416 # some platforms.
2417 # Always define AMTAR for backward compatibility.
2419 AMTAR=${AMTAR-"${am_missing_run}tar"}
2421 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2427 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2428 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2429 # Check whether --enable-maintainer-mode was given.
2430 if test "${enable_maintainer_mode+set}" = set; then
2431 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2432 else
2433 USE_MAINTAINER_MODE=no
2434 fi
2436 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2437 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2440 if test $USE_MAINTAINER_MODE = yes; then
2441 MAINTAINER_MODE_TRUE=
2442 MAINTAINER_MODE_FALSE='#'
2443 else
2444 MAINTAINER_MODE_TRUE='#'
2445 MAINTAINER_MODE_FALSE=
2446 fi
2448 MAINT=$MAINTAINER_MODE_TRUE
2451 ac_config_headers="$ac_config_headers config.h"
2454 DEPDIR="${am__leading_dot}deps"
2456 ac_config_commands="$ac_config_commands depfiles"
2459 am_make=${MAKE-make}
2460 cat > confinc << 'END'
2461 am__doit:
2462 @echo done
2463 .PHONY: am__doit
2464 END
2465 # If we don't find an include directive, just comment out the code.
2466 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2467 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2468 am__include="#"
2469 am__quote=
2470 _am_result=none
2471 # First try GNU make style include.
2472 echo "include confinc" > confmf
2473 # We grep out `Entering directory' and `Leaving directory'
2474 # messages which can occur if `w' ends up in MAKEFLAGS.
2475 # In particular we don't look at `^make:' because GNU make might
2476 # be invoked under some other name (usually "gmake"), in which
2477 # case it prints its new name instead of `make'.
2478 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2479 am__include=include
2480 am__quote=
2481 _am_result=GNU
2482 fi
2483 # Now try BSD make style include.
2484 if test "$am__include" = "#"; then
2485 echo '.include "confinc"' > confmf
2486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2487 am__include=.include
2488 am__quote="\""
2489 _am_result=BSD
2490 fi
2491 fi
2494 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2495 $as_echo "$_am_result" >&6; }
2496 rm -f confinc confmf
2498 # Check whether --enable-dependency-tracking was given.
2499 if test "${enable_dependency_tracking+set}" = set; then
2500 enableval=$enable_dependency_tracking;
2501 fi
2503 if test "x$enable_dependency_tracking" != xno; then
2504 am_depcomp="$ac_aux_dir/depcomp"
2505 AMDEPBACKSLASH='\'
2506 fi
2509 if test "x$enable_dependency_tracking" != xno; then
2510 AMDEP_TRUE=
2511 AMDEP_FALSE='#'
2512 else
2513 AMDEP_TRUE='#'
2514 AMDEP_FALSE=
2515 fi
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2556 else
2557 { $as_echo "$as_me:$LINENO: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2562 fi
2563 if test -z "$ac_cv_prog_CC"; then
2564 ac_ct_CC=$CC
2565 # Extract the first word of "gcc", so it can be a program name with args.
2566 set dummy gcc; ac_word=$2
2567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_ac_ct_CC="gcc"
2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2590 fi
2591 fi
2592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2593 if test -n "$ac_ct_CC"; then
2594 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2595 $as_echo "$ac_ct_CC" >&6; }
2596 else
2597 { $as_echo "$as_me:$LINENO: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2601 if test "x$ac_ct_CC" = x; then
2602 CC=""
2603 else
2604 case $cross_compiling:$ac_tool_warned in
2605 yes:)
2606 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2607 whose name does not start with the host triplet. If you think this
2608 configuration is useful to you, please write to autoconf@gnu.org." >&5
2609 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2610 whose name does not start with the host triplet. If you think this
2611 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2612 ac_tool_warned=yes ;;
2613 esac
2614 CC=$ac_ct_CC
2615 fi
2616 else
2617 CC="$ac_cv_prog_CC"
2618 fi
2620 if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}cc; ac_word=$2
2624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if test "${ac_cv_prog_CC+set}" = set; then
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 ac_cv_prog_CC="${ac_tool_prefix}cc"
2640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2647 fi
2648 fi
2649 CC=$ac_cv_prog_CC
2650 if test -n "$CC"; then
2651 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2652 $as_echo "$CC" >&6; }
2653 else
2654 { $as_echo "$as_me:$LINENO: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2659 fi
2660 fi
2661 if test -z "$CC"; then
2662 # Extract the first word of "cc", so it can be a program name with args.
2663 set dummy cc; ac_word=$2
2664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_CC+set}" = set; then
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 else
2672 ac_prog_rejected=no
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2681 ac_prog_rejected=yes
2682 continue
2683 fi
2684 ac_cv_prog_CC="cc"
2685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2692 if test $ac_prog_rejected = yes; then
2693 # We found a bogon in the path, so make sure we never use it.
2694 set dummy $ac_cv_prog_CC
2695 shift
2696 if test $# != 0; then
2697 # We chose a different compiler from the bogus one.
2698 # However, it has the same basename, so the bogon will be chosen
2699 # first if we set CC to just the basename; use the full file name.
2700 shift
2701 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2702 fi
2703 fi
2704 fi
2705 fi
2706 CC=$ac_cv_prog_CC
2707 if test -n "$CC"; then
2708 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2709 $as_echo "$CC" >&6; }
2710 else
2711 { $as_echo "$as_me:$LINENO: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2716 fi
2717 if test -z "$CC"; then
2718 if test -n "$ac_tool_prefix"; then
2719 for ac_prog in cl.exe
2720 do
2721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_CC+set}" = set; then
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742 done
2743 done
2744 IFS=$as_save_IFS
2746 fi
2747 fi
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2752 else
2753 { $as_echo "$as_me:$LINENO: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2758 test -n "$CC" && break
2759 done
2760 fi
2761 if test -z "$CC"; then
2762 ac_ct_CC=$CC
2763 for ac_prog in cl.exe
2764 do
2765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2766 set dummy $ac_prog; ac_word=$2
2767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$ac_ct_CC"; then
2773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_ac_ct_CC="$ac_prog"
2783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2790 fi
2791 fi
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 $as_echo "$ac_ct_CC" >&6; }
2796 else
2797 { $as_echo "$as_me:$LINENO: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2802 test -n "$ac_ct_CC" && break
2803 done
2805 if test "x$ac_ct_CC" = x; then
2806 CC=""
2807 else
2808 case $cross_compiling:$ac_tool_warned in
2809 yes:)
2810 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2811 whose name does not start with the host triplet. If you think this
2812 configuration is useful to you, please write to autoconf@gnu.org." >&5
2813 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2814 whose name does not start with the host triplet. If you think this
2815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2816 ac_tool_warned=yes ;;
2817 esac
2818 CC=$ac_ct_CC
2819 fi
2820 fi
2822 fi
2825 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2826 See \`config.log' for more details." >&5
2827 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2828 See \`config.log' for more details." >&2;}
2829 { (exit 1); exit 1; }; }
2831 # Provide some information about the compiler.
2832 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2833 set X $ac_compile
2834 ac_compiler=$2
2835 { (ac_try="$ac_compiler --version >&5"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2841 $as_echo "$ac_try_echo") >&5
2842 (eval "$ac_compiler --version >&5") 2>&5
2843 ac_status=$?
2844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }
2846 { (ac_try="$ac_compiler -v >&5"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2852 $as_echo "$ac_try_echo") >&5
2853 (eval "$ac_compiler -v >&5") 2>&5
2854 ac_status=$?
2855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857 { (ac_try="$ac_compiler -V >&5"
2858 case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2863 $as_echo "$ac_try_echo") >&5
2864 (eval "$ac_compiler -V >&5") 2>&5
2865 ac_status=$?
2866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2876 int
2877 main ()
2878 {
2880 ;
2881 return 0;
2882 }
2883 _ACEOF
2884 ac_clean_files_save=$ac_clean_files
2885 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2886 # Try to create an executable without -o first, disregard a.out.
2887 # It will help us diagnose broken compilers, and finding out an intuition
2888 # of exeext.
2889 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2890 $as_echo_n "checking for C compiler default output file name... " >&6; }
2891 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2893 # The possible output files:
2894 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2896 ac_rmfiles=
2897 for ac_file in $ac_files
2898 do
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2901 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2902 esac
2903 done
2904 rm -f $ac_rmfiles
2906 if { (ac_try="$ac_link_default"
2907 case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2912 $as_echo "$ac_try_echo") >&5
2913 (eval "$ac_link_default") 2>&5
2914 ac_status=$?
2915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2918 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2919 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2920 # so that the user can short-circuit this test for compilers unknown to
2921 # Autoconf.
2922 for ac_file in $ac_files ''
2923 do
2924 test -f "$ac_file" || continue
2925 case $ac_file in
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2927 ;;
2928 [ab].out )
2929 # We found the default executable, but exeext='' is most
2930 # certainly right.
2931 break;;
2932 *.* )
2933 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2934 then :; else
2935 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936 fi
2937 # We set ac_cv_exeext here because the later test for it is not
2938 # safe: cross compilers may not add the suffix if given an `-o'
2939 # argument, so we may need to know it at that point already.
2940 # Even if this section looks crufty: it has the advantage of
2941 # actually working.
2942 break;;
2943 * )
2944 break;;
2945 esac
2946 done
2947 test "$ac_cv_exeext" = no && ac_cv_exeext=
2949 else
2950 ac_file=''
2951 fi
2953 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2954 $as_echo "$ac_file" >&6; }
2955 if test -z "$ac_file"; then
2956 $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2960 See \`config.log' for more details." >&5
2961 $as_echo "$as_me: error: C compiler cannot create executables
2962 See \`config.log' for more details." >&2;}
2963 { (exit 77); exit 77; }; }
2964 fi
2966 ac_exeext=$ac_cv_exeext
2968 # Check that the compiler produces executables we can run. If not, either
2969 # the compiler is broken, or we cross compile.
2970 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2971 $as_echo_n "checking whether the C compiler works... " >&6; }
2972 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2973 # If not cross compiling, check that we can run a simple program.
2974 if test "$cross_compiling" != yes; then
2975 if { ac_try='./$ac_file'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981 $as_echo "$ac_try_echo") >&5
2982 (eval "$ac_try") 2>&5
2983 ac_status=$?
2984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 cross_compiling=no
2987 else
2988 if test "$cross_compiling" = maybe; then
2989 cross_compiling=yes
2990 else
2991 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2992 If you meant to cross compile, use \`--host'.
2993 See \`config.log' for more details." >&5
2994 $as_echo "$as_me: error: cannot run C compiled programs.
2995 If you meant to cross compile, use \`--host'.
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998 fi
2999 fi
3000 fi
3001 { $as_echo "$as_me:$LINENO: result: yes" >&5
3002 $as_echo "yes" >&6; }
3004 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3005 ac_clean_files=$ac_clean_files_save
3006 # Check that the compiler produces executables we can run. If not, either
3007 # the compiler is broken, or we cross compile.
3008 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3009 $as_echo_n "checking whether we are cross compiling... " >&6; }
3010 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3011 $as_echo "$cross_compiling" >&6; }
3013 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3014 $as_echo_n "checking for suffix of executables... " >&6; }
3015 if { (ac_try="$ac_link"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021 $as_echo "$ac_try_echo") >&5
3022 (eval "$ac_link") 2>&5
3023 ac_status=$?
3024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; then
3026 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3027 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3028 # work properly (i.e., refer to `conftest.exe'), while it won't with
3029 # `rm'.
3030 for ac_file in conftest.exe conftest conftest.*; do
3031 test -f "$ac_file" || continue
3032 case $ac_file in
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3035 break;;
3036 * ) break;;
3037 esac
3038 done
3039 else
3040 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3041 See \`config.log' for more details." >&5
3042 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3045 fi
3047 rm -f conftest$ac_cv_exeext
3048 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3049 $as_echo "$ac_cv_exeext" >&6; }
3051 rm -f conftest.$ac_ext
3052 EXEEXT=$ac_cv_exeext
3053 ac_exeext=$EXEEXT
3054 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3055 $as_echo_n "checking for suffix of object files... " >&6; }
3056 if test "${ac_cv_objext+set}" = set; then
3057 $as_echo_n "(cached) " >&6
3058 else
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 int
3067 main ()
3068 {
3070 ;
3071 return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.o conftest.obj
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3081 $as_echo "$ac_try_echo") >&5
3082 (eval "$ac_compile") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 for ac_file in conftest.o conftest.obj conftest.*; do
3087 test -f "$ac_file" || continue;
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3091 break;;
3092 esac
3093 done
3094 else
3095 $as_echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details." >&5
3100 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3103 fi
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 fi
3107 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3108 $as_echo "$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3110 ac_objext=$OBJEXT
3111 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3114 $as_echo_n "(cached) " >&6
3115 else
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3123 int
3124 main ()
3125 {
3126 #ifndef __GNUC__
3127 choke me
3128 #endif
3130 ;
3131 return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141 $as_echo "$ac_try_echo") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 ac_compiler_gnu=yes
3153 else
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 ac_compiler_gnu=no
3158 fi
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163 fi
3164 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3165 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3166 if test $ac_compiler_gnu = yes; then
3167 GCC=yes
3168 else
3169 GCC=
3170 fi
3171 ac_test_CFLAGS=${CFLAGS+set}
3172 ac_save_CFLAGS=$CFLAGS
3173 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3174 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3175 if test "${ac_cv_prog_cc_g+set}" = set; then
3176 $as_echo_n "(cached) " >&6
3177 else
3178 ac_save_c_werror_flag=$ac_c_werror_flag
3179 ac_c_werror_flag=yes
3180 ac_cv_prog_cc_g=no
3181 CFLAGS="-g"
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3189 int
3190 main ()
3191 {
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3204 $as_echo "$ac_try_echo") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3215 ac_cv_prog_cc_g=yes
3216 else
3217 $as_echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 CFLAGS=""
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 int
3229 main ()
3230 {
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243 $as_echo "$ac_try_echo") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3254 :
3255 else
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3260 CFLAGS="-g"
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3268 int
3269 main ()
3270 {
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.$ac_objext
3277 if { (ac_try="$ac_compile"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3283 $as_echo "$ac_try_echo") >&5
3284 (eval "$ac_compile") 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } && {
3291 test -z "$ac_c_werror_flag" ||
3292 test ! -s conftest.err
3293 } && test -s conftest.$ac_objext; then
3294 ac_cv_prog_cc_g=yes
3295 else
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3300 fi
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 fi
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 fi
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 ac_c_werror_flag=$ac_save_c_werror_flag
3310 fi
3311 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3312 $as_echo "$ac_cv_prog_cc_g" >&6; }
3313 if test "$ac_test_CFLAGS" = set; then
3314 CFLAGS=$ac_save_CFLAGS
3315 elif test $ac_cv_prog_cc_g = yes; then
3316 if test "$GCC" = yes; then
3317 CFLAGS="-g -O2"
3318 else
3319 CFLAGS="-g"
3320 fi
3321 else
3322 if test "$GCC" = yes; then
3323 CFLAGS="-O2"
3324 else
3325 CFLAGS=
3326 fi
3327 fi
3328 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3329 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3330 if test "${ac_cv_prog_cc_c89+set}" = set; then
3331 $as_echo_n "(cached) " >&6
3332 else
3333 ac_cv_prog_cc_c89=no
3334 ac_save_CC=$CC
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <stdarg.h>
3342 #include <stdio.h>
3343 #include <sys/types.h>
3344 #include <sys/stat.h>
3345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3346 struct buf { int x; };
3347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3348 static char *e (p, i)
3349 char **p;
3350 int i;
3351 {
3352 return p[i];
3353 }
3354 static char *f (char * (*g) (char **, int), char **p, ...)
3355 {
3356 char *s;
3357 va_list v;
3358 va_start (v,p);
3359 s = g (p, va_arg (v,int));
3360 va_end (v);
3361 return s;
3362 }
3364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3365 function prototypes and stuff, but not '\xHH' hex character constants.
3366 These don't provoke an error unfortunately, instead are silently treated
3367 as 'x'. The following induces an error, until -std is added to get
3368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3369 array size at least. It's necessary to write '\x00'==0 to get something
3370 that's true only with -std. */
3371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3373 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3374 inside strings and character constants. */
3375 #define FOO(x) 'x'
3376 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3378 int test (int i, double x);
3379 struct s1 {int (*f) (int a);};
3380 struct s2 {int (*f) (double a);};
3381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3382 int argc;
3383 char **argv;
3384 int
3385 main ()
3386 {
3387 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394 do
3395 CC="$ac_save_CC $ac_arg"
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3403 $as_echo "$ac_try_echo") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } && {
3411 test -z "$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 } && test -s conftest.$ac_objext; then
3414 ac_cv_prog_cc_c89=$ac_arg
3415 else
3416 $as_echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3420 fi
3422 rm -f core conftest.err conftest.$ac_objext
3423 test "x$ac_cv_prog_cc_c89" != "xno" && break
3424 done
3425 rm -f conftest.$ac_ext
3426 CC=$ac_save_CC
3428 fi
3429 # AC_CACHE_VAL
3430 case "x$ac_cv_prog_cc_c89" in
3431 x)
3432 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3433 $as_echo "none needed" >&6; } ;;
3434 xno)
3435 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3436 $as_echo "unsupported" >&6; } ;;
3437 *)
3438 CC="$CC $ac_cv_prog_cc_c89"
3439 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3440 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3441 esac
3444 ac_ext=c
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450 depcc="$CC" am_compiler_list=
3452 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3453 $as_echo_n "checking dependency style of $depcc... " >&6; }
3454 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3458 # We make a subdir and do the tests there. Otherwise we can end up
3459 # making bogus files that we don't know about and never remove. For
3460 # instance it was reported that on HP-UX the gcc test will end up
3461 # making a dummy file named `D' -- because `-MD' means `put the output
3462 # in D'.
3463 mkdir conftest.dir
3464 # Copy depcomp to subdir because otherwise we won't find it if we're
3465 # using a relative directory.
3466 cp "$am_depcomp" conftest.dir
3467 cd conftest.dir
3468 # We will build objects and dependencies in a subdirectory because
3469 # it helps to detect inapplicable dependency modes. For instance
3470 # both Tru64's cc and ICC support -MD to output dependencies as a
3471 # side effect of compilation, but ICC will put the dependencies in
3472 # the current directory while Tru64 will put them in the object
3473 # directory.
3474 mkdir sub
3476 am_cv_CC_dependencies_compiler_type=none
3477 if test "$am_compiler_list" = ""; then
3478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3479 fi
3480 for depmode in $am_compiler_list; do
3481 # Setup a source with many dependencies, because some compilers
3482 # like to wrap large dependency lists on column 80 (with \), and
3483 # we should not choose a depcomp mode which is confused by this.
3484 #
3485 # We need to recreate these files for each test, as the compiler may
3486 # overwrite some of them when testing with obscure command lines.
3487 # This happens at least with the AIX C compiler.
3488 : > sub/conftest.c
3489 for i in 1 2 3 4 5 6; do
3490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3491 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3492 # Solaris 8's {/usr,}/bin/sh.
3493 touch sub/conftst$i.h
3494 done
3495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3497 case $depmode in
3498 nosideeffect)
3499 # after this tag, mechanisms are not by side-effect, so they'll
3500 # only be used when explicitly requested
3501 if test "x$enable_dependency_tracking" = xyes; then
3502 continue
3503 else
3504 break
3505 fi
3506 ;;
3507 none) break ;;
3508 esac
3509 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3510 # mode. It turns out that the SunPro C++ compiler does not properly
3511 # handle `-M -o', and we need to detect this.
3512 if depmode=$depmode \
3513 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3515 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3516 >/dev/null 2>conftest.err &&
3517 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3518 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3519 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3520 # icc doesn't choke on unknown options, it will just issue warnings
3521 # or remarks (even with -Werror). So we grep stderr for any message
3522 # that says an option was ignored or not supported.
3523 # When given -MP, icc 7.0 and 7.1 complain thusly:
3524 # icc: Command line warning: ignoring option '-M'; no argument required
3525 # The diagnosis changed in icc 8.0:
3526 # icc: Command line remark: option '-MP' not supported
3527 if (grep 'ignoring option' conftest.err ||
3528 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3529 am_cv_CC_dependencies_compiler_type=$depmode
3530 break
3531 fi
3532 fi
3533 done
3535 cd ..
3536 rm -rf conftest.dir
3537 else
3538 am_cv_CC_dependencies_compiler_type=none
3539 fi
3541 fi
3542 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3543 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3544 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3548 if
3549 test "x$enable_dependency_tracking" != xno \
3550 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3551 am__fastdepCC_TRUE=
3552 am__fastdepCC_FALSE='#'
3553 else
3554 am__fastdepCC_TRUE='#'
3555 am__fastdepCC_FALSE=
3556 fi
3561 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3562 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3563 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3564 $as_echo_n "(cached) " >&6
3565 else
3566 ac_check_lib_save_LIBS=$LIBS
3567 LIBS="-lcposix $LIBS"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3575 /* Override any GCC internal prototype to avoid an error.
3576 Use char because int might match the return type of a GCC
3577 builtin and then its argument prototype would still apply. */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 char strerror ();
3582 int
3583 main ()
3584 {
3585 return strerror ();
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext conftest$ac_exeext
3591 if { (ac_try="$ac_link"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597 $as_echo "$ac_try_echo") >&5
3598 (eval "$ac_link") 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && {
3605 test -z "$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 } && test -s conftest$ac_exeext && {
3608 test "$cross_compiling" = yes ||
3609 $as_test_x conftest$ac_exeext
3610 }; then
3611 ac_cv_lib_cposix_strerror=yes
3612 else
3613 $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_cv_lib_cposix_strerror=no
3617 fi
3619 rm -rf conftest.dSYM
3620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3621 conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3623 fi
3624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3625 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3626 if test $ac_cv_lib_cposix_strerror = yes; then
3627 LIBS="$LIBS -lcposix"
3628 fi
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_CC+set}" = set; then
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -n "$CC"; then
3646 ac_cv_prog_CC="$CC" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670 { $as_echo "$as_me:$LINENO: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3675 fi
3676 if test -z "$ac_cv_prog_CC"; then
3677 ac_ct_CC=$CC
3678 # Extract the first word of "gcc", so it can be a program name with args.
3679 set dummy gcc; ac_word=$2
3680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -n "$ac_ct_CC"; then
3686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_prog_ac_ct_CC="gcc"
3696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3703 fi
3704 fi
3705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3706 if test -n "$ac_ct_CC"; then
3707 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3708 $as_echo "$ac_ct_CC" >&6; }
3709 else
3710 { $as_echo "$as_me:$LINENO: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3714 if test "x$ac_ct_CC" = x; then
3715 CC=""
3716 else
3717 case $cross_compiling:$ac_tool_warned in
3718 yes:)
3719 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3720 whose name does not start with the host triplet. If you think this
3721 configuration is useful to you, please write to autoconf@gnu.org." >&5
3722 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3723 whose name does not start with the host triplet. If you think this
3724 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3725 ac_tool_warned=yes ;;
3726 esac
3727 CC=$ac_ct_CC
3728 fi
3729 else
3730 CC="$ac_cv_prog_CC"
3731 fi
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3736 set dummy ${ac_tool_prefix}cc; ac_word=$2
3737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_CC+set}" = set; then
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_CC="${ac_tool_prefix}cc"
3753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3760 fi
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767 { $as_echo "$as_me:$LINENO: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3772 fi
3773 fi
3774 if test -z "$CC"; then
3775 # Extract the first word of "cc", so it can be a program name with args.
3776 set dummy cc; ac_word=$2
3777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if test "${ac_cv_prog_CC+set}" = set; then
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3784 else
3785 ac_prog_rejected=no
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3794 ac_prog_rejected=yes
3795 continue
3796 fi
3797 ac_cv_prog_CC="cc"
3798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3805 if test $ac_prog_rejected = yes; then
3806 # We found a bogon in the path, so make sure we never use it.
3807 set dummy $ac_cv_prog_CC
3808 shift
3809 if test $# != 0; then
3810 # We chose a different compiler from the bogus one.
3811 # However, it has the same basename, so the bogon will be chosen
3812 # first if we set CC to just the basename; use the full file name.
3813 shift
3814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3815 fi
3816 fi
3817 fi
3818 fi
3819 CC=$ac_cv_prog_CC
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3823 else
3824 { $as_echo "$as_me:$LINENO: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3829 fi
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 for ac_prog in cl.exe
3833 do
3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_CC+set}" = set; then
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855 done
3856 done
3857 IFS=$as_save_IFS
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3865 else
3866 { $as_echo "$as_me:$LINENO: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3871 test -n "$CC" && break
3872 done
3873 fi
3874 if test -z "$CC"; then
3875 ac_ct_CC=$CC
3876 for ac_prog in cl.exe
3877 do
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$ac_ct_CC"; then
3886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_ac_ct_CC="$ac_prog"
3896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3903 fi
3904 fi
3905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3906 if test -n "$ac_ct_CC"; then
3907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3908 $as_echo "$ac_ct_CC" >&6; }
3909 else
3910 { $as_echo "$as_me:$LINENO: result: no" >&5
3911 $as_echo "no" >&6; }
3912 fi
3915 test -n "$ac_ct_CC" && break
3916 done
3918 if test "x$ac_ct_CC" = x; then
3919 CC=""
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922 yes:)
3923 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3924 whose name does not start with the host triplet. If you think this
3925 configuration is useful to you, please write to autoconf@gnu.org." >&5
3926 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3927 whose name does not start with the host triplet. If you think this
3928 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3929 ac_tool_warned=yes ;;
3930 esac
3931 CC=$ac_ct_CC
3932 fi
3933 fi
3935 fi
3938 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3939 See \`config.log' for more details." >&5
3940 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3941 See \`config.log' for more details." >&2;}
3942 { (exit 1); exit 1; }; }
3944 # Provide some information about the compiler.
3945 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3946 set X $ac_compile
3947 ac_compiler=$2
3948 { (ac_try="$ac_compiler --version >&5"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3954 $as_echo "$ac_try_echo") >&5
3955 (eval "$ac_compiler --version >&5") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }
3959 { (ac_try="$ac_compiler -v >&5"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966 (eval "$ac_compiler -v >&5") 2>&5
3967 ac_status=$?
3968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }
3970 { (ac_try="$ac_compiler -V >&5"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3976 $as_echo "$ac_try_echo") >&5
3977 (eval "$ac_compiler -V >&5") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }
3982 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3985 $as_echo_n "(cached) " >&6
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3994 int
3995 main ()
3996 {
3997 #ifndef __GNUC__
3998 choke me
3999 #endif
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4012 $as_echo "$ac_try_echo") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest.$ac_objext; then
4023 ac_compiler_gnu=yes
4024 else
4025 $as_echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_compiler_gnu=no
4029 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4034 fi
4035 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4036 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4037 if test $ac_compiler_gnu = yes; then
4038 GCC=yes
4039 else
4040 GCC=
4041 fi
4042 ac_test_CFLAGS=${CFLAGS+set}
4043 ac_save_CFLAGS=$CFLAGS
4044 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4045 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4046 if test "${ac_cv_prog_cc_g+set}" = set; then
4047 $as_echo_n "(cached) " >&6
4048 else
4049 ac_save_c_werror_flag=$ac_c_werror_flag
4050 ac_c_werror_flag=yes
4051 ac_cv_prog_cc_g=no
4052 CFLAGS="-g"
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4060 int
4061 main ()
4062 {
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4070 case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 ac_cv_prog_cc_g=yes
4087 else
4088 $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 CFLAGS=""
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4099 int
4100 main ()
4101 {
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (ac_try="$ac_compile"
4109 case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4114 $as_echo "$ac_try_echo") >&5
4115 (eval "$ac_compile") 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } && {
4122 test -z "$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4124 } && test -s conftest.$ac_objext; then
4125 :
4126 else
4127 $as_echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_c_werror_flag=$ac_save_c_werror_flag
4131 CFLAGS="-g"
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4139 int
4140 main ()
4141 {
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4154 $as_echo "$ac_try_echo") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 } && test -s conftest.$ac_objext; then
4165 ac_cv_prog_cc_g=yes
4166 else
4167 $as_echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4171 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4181 fi
4182 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4183 $as_echo "$ac_cv_prog_cc_g" >&6; }
4184 if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186 elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4188 CFLAGS="-g -O2"
4189 else
4190 CFLAGS="-g"
4191 fi
4192 else
4193 if test "$GCC" = yes; then
4194 CFLAGS="-O2"
4195 else
4196 CFLAGS=
4197 fi
4198 fi
4199 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201 if test "${ac_cv_prog_cc_c89+set}" = set; then
4202 $as_echo_n "(cached) " >&6
4203 else
4204 ac_cv_prog_cc_c89=no
4205 ac_save_CC=$CC
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <stdarg.h>
4213 #include <stdio.h>
4214 #include <sys/types.h>
4215 #include <sys/stat.h>
4216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4217 struct buf { int x; };
4218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4219 static char *e (p, i)
4220 char **p;
4221 int i;
4222 {
4223 return p[i];
4224 }
4225 static char *f (char * (*g) (char **, int), char **p, ...)
4226 {
4227 char *s;
4228 va_list v;
4229 va_start (v,p);
4230 s = g (p, va_arg (v,int));
4231 va_end (v);
4232 return s;
4233 }
4235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4236 function prototypes and stuff, but not '\xHH' hex character constants.
4237 These don't provoke an error unfortunately, instead are silently treated
4238 as 'x'. The following induces an error, until -std is added to get
4239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4240 array size at least. It's necessary to write '\x00'==0 to get something
4241 that's true only with -std. */
4242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4244 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4245 inside strings and character constants. */
4246 #define FOO(x) 'x'
4247 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4249 int test (int i, double x);
4250 struct s1 {int (*f) (int a);};
4251 struct s2 {int (*f) (double a);};
4252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4253 int argc;
4254 char **argv;
4255 int
4256 main ()
4257 {
4258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4264 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4265 do
4266 CC="$ac_save_CC $ac_arg"
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4274 $as_echo "$ac_try_echo") >&5
4275 (eval "$ac_compile") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest.$ac_objext; then
4285 ac_cv_prog_cc_c89=$ac_arg
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4291 fi
4293 rm -f core conftest.err conftest.$ac_objext
4294 test "x$ac_cv_prog_cc_c89" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4299 fi
4300 # AC_CACHE_VAL
4301 case "x$ac_cv_prog_cc_c89" in
4302 x)
4303 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4304 $as_echo "none needed" >&6; } ;;
4305 xno)
4306 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4307 $as_echo "unsupported" >&6; } ;;
4308 *)
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4312 esac
4315 ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 depcc="$CC" am_compiler_list=
4323 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4324 $as_echo_n "checking dependency style of $depcc... " >&6; }
4325 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4329 # We make a subdir and do the tests there. Otherwise we can end up
4330 # making bogus files that we don't know about and never remove. For
4331 # instance it was reported that on HP-UX the gcc test will end up
4332 # making a dummy file named `D' -- because `-MD' means `put the output
4333 # in D'.
4334 mkdir conftest.dir
4335 # Copy depcomp to subdir because otherwise we won't find it if we're
4336 # using a relative directory.
4337 cp "$am_depcomp" conftest.dir
4338 cd conftest.dir
4339 # We will build objects and dependencies in a subdirectory because
4340 # it helps to detect inapplicable dependency modes. For instance
4341 # both Tru64's cc and ICC support -MD to output dependencies as a
4342 # side effect of compilation, but ICC will put the dependencies in
4343 # the current directory while Tru64 will put them in the object
4344 # directory.
4345 mkdir sub
4347 am_cv_CC_dependencies_compiler_type=none
4348 if test "$am_compiler_list" = ""; then
4349 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4350 fi
4351 for depmode in $am_compiler_list; do
4352 # Setup a source with many dependencies, because some compilers
4353 # like to wrap large dependency lists on column 80 (with \), and
4354 # we should not choose a depcomp mode which is confused by this.
4355 #
4356 # We need to recreate these files for each test, as the compiler may
4357 # overwrite some of them when testing with obscure command lines.
4358 # This happens at least with the AIX C compiler.
4359 : > sub/conftest.c
4360 for i in 1 2 3 4 5 6; do
4361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4362 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4363 # Solaris 8's {/usr,}/bin/sh.
4364 touch sub/conftst$i.h
4365 done
4366 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4368 case $depmode in
4369 nosideeffect)
4370 # after this tag, mechanisms are not by side-effect, so they'll
4371 # only be used when explicitly requested
4372 if test "x$enable_dependency_tracking" = xyes; then
4373 continue
4374 else
4375 break
4376 fi
4377 ;;
4378 none) break ;;
4379 esac
4380 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4381 # mode. It turns out that the SunPro C++ compiler does not properly
4382 # handle `-M -o', and we need to detect this.
4383 if depmode=$depmode \
4384 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4386 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4387 >/dev/null 2>conftest.err &&
4388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4389 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4391 # icc doesn't choke on unknown options, it will just issue warnings
4392 # or remarks (even with -Werror). So we grep stderr for any message
4393 # that says an option was ignored or not supported.
4394 # When given -MP, icc 7.0 and 7.1 complain thusly:
4395 # icc: Command line warning: ignoring option '-M'; no argument required
4396 # The diagnosis changed in icc 8.0:
4397 # icc: Command line remark: option '-MP' not supported
4398 if (grep 'ignoring option' conftest.err ||
4399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4400 am_cv_CC_dependencies_compiler_type=$depmode
4401 break
4402 fi
4403 fi
4404 done
4406 cd ..
4407 rm -rf conftest.dir
4408 else
4409 am_cv_CC_dependencies_compiler_type=none
4410 fi
4412 fi
4413 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4414 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4415 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4419 if
4420 test "x$enable_dependency_tracking" != xno \
4421 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4422 am__fastdepCC_TRUE=
4423 am__fastdepCC_FALSE='#'
4424 else
4425 am__fastdepCC_TRUE='#'
4426 am__fastdepCC_FALSE=
4427 fi
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_CC+set}" = set; then
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$CC"; then
4444 ac_cv_prog_CC="$CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4461 fi
4462 fi
4463 CC=$ac_cv_prog_CC
4464 if test -n "$CC"; then
4465 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4466 $as_echo "$CC" >&6; }
4467 else
4468 { $as_echo "$as_me:$LINENO: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4473 fi
4474 if test -z "$ac_cv_prog_CC"; then
4475 ac_ct_CC=$CC
4476 # Extract the first word of "gcc", so it can be a program name with args.
4477 set dummy gcc; ac_word=$2
4478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$ac_ct_CC"; then
4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_CC="gcc"
4494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4501 fi
4502 fi
4503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4504 if test -n "$ac_ct_CC"; then
4505 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4506 $as_echo "$ac_ct_CC" >&6; }
4507 else
4508 { $as_echo "$as_me:$LINENO: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4512 if test "x$ac_ct_CC" = x; then
4513 CC=""
4514 else
4515 case $cross_compiling:$ac_tool_warned in
4516 yes:)
4517 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4518 whose name does not start with the host triplet. If you think this
4519 configuration is useful to you, please write to autoconf@gnu.org." >&5
4520 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4521 whose name does not start with the host triplet. If you think this
4522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 CC=$ac_ct_CC
4526 fi
4527 else
4528 CC="$ac_cv_prog_CC"
4529 fi
4531 if test -z "$CC"; then
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4534 set dummy ${ac_tool_prefix}cc; ac_word=$2
4535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CC+set}" = set; then
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$CC"; then
4541 ac_cv_prog_CC="$CC" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CC="${ac_tool_prefix}cc"
4551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4558 fi
4559 fi
4560 CC=$ac_cv_prog_CC
4561 if test -n "$CC"; then
4562 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4563 $as_echo "$CC" >&6; }
4564 else
4565 { $as_echo "$as_me:$LINENO: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4570 fi
4571 fi
4572 if test -z "$CC"; then
4573 # Extract the first word of "cc", so it can be a program name with args.
4574 set dummy cc; ac_word=$2
4575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC="$CC" # Let the user override the test.
4582 else
4583 ac_prog_rejected=no
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4592 ac_prog_rejected=yes
4593 continue
4594 fi
4595 ac_cv_prog_CC="cc"
4596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4603 if test $ac_prog_rejected = yes; then
4604 # We found a bogon in the path, so make sure we never use it.
4605 set dummy $ac_cv_prog_CC
4606 shift
4607 if test $# != 0; then
4608 # We chose a different compiler from the bogus one.
4609 # However, it has the same basename, so the bogon will be chosen
4610 # first if we set CC to just the basename; use the full file name.
4611 shift
4612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4613 fi
4614 fi
4615 fi
4616 fi
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4621 else
4622 { $as_echo "$as_me:$LINENO: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4627 fi
4628 if test -z "$CC"; then
4629 if test -n "$ac_tool_prefix"; then
4630 for ac_prog in cl.exe
4631 do
4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4657 fi
4658 fi
4659 CC=$ac_cv_prog_CC
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4663 else
4664 { $as_echo "$as_me:$LINENO: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4669 test -n "$CC" && break
4670 done
4671 fi
4672 if test -z "$CC"; then
4673 ac_ct_CC=$CC
4674 for ac_prog in cl.exe
4675 do
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_ac_ct_CC="$ac_prog"
4694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4701 fi
4702 fi
4703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704 if test -n "$ac_ct_CC"; then
4705 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4706 $as_echo "$ac_ct_CC" >&6; }
4707 else
4708 { $as_echo "$as_me:$LINENO: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4713 test -n "$ac_ct_CC" && break
4714 done
4716 if test "x$ac_ct_CC" = x; then
4717 CC=""
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4722 whose name does not start with the host triplet. If you think this
4723 configuration is useful to you, please write to autoconf@gnu.org." >&5
4724 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4725 whose name does not start with the host triplet. If you think this
4726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 CC=$ac_ct_CC
4730 fi
4731 fi
4733 fi
4736 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4737 See \`config.log' for more details." >&5
4738 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; }
4742 # Provide some information about the compiler.
4743 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4744 set X $ac_compile
4745 ac_compiler=$2
4746 { (ac_try="$ac_compiler --version >&5"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752 $as_echo "$ac_try_echo") >&5
4753 (eval "$ac_compiler --version >&5") 2>&5
4754 ac_status=$?
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }
4757 { (ac_try="$ac_compiler -v >&5"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4763 $as_echo "$ac_try_echo") >&5
4764 (eval "$ac_compiler -v >&5") 2>&5
4765 ac_status=$?
4766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }
4768 { (ac_try="$ac_compiler -V >&5"
4769 case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_compiler -V >&5") 2>&5
4776 ac_status=$?
4777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }
4780 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4781 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4782 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4783 $as_echo_n "(cached) " >&6
4784 else
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4792 int
4793 main ()
4794 {
4795 #ifndef __GNUC__
4796 choke me
4797 #endif
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4810 $as_echo "$ac_try_echo") >&5
4811 (eval "$ac_compile") 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && {
4818 test -z "$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 } && test -s conftest.$ac_objext; then
4821 ac_compiler_gnu=yes
4822 else
4823 $as_echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_compiler_gnu=no
4827 fi
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4832 fi
4833 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4835 if test $ac_compiler_gnu = yes; then
4836 GCC=yes
4837 else
4838 GCC=
4839 fi
4840 ac_test_CFLAGS=${CFLAGS+set}
4841 ac_save_CFLAGS=$CFLAGS
4842 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4844 if test "${ac_cv_prog_cc_g+set}" = set; then
4845 $as_echo_n "(cached) " >&6
4846 else
4847 ac_save_c_werror_flag=$ac_c_werror_flag
4848 ac_c_werror_flag=yes
4849 ac_cv_prog_cc_g=no
4850 CFLAGS="-g"
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4858 int
4859 main ()
4860 {
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (ac_try="$ac_compile"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874 (eval "$ac_compile") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } && {
4881 test -z "$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 } && test -s conftest.$ac_objext; then
4884 ac_cv_prog_cc_g=yes
4885 else
4886 $as_echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 CFLAGS=""
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4897 int
4898 main ()
4899 {
4901 ;
4902 return 0;
4903 }
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912 $as_echo "$ac_try_echo") >&5
4913 (eval "$ac_compile") 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } && {
4920 test -z "$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 } && test -s conftest.$ac_objext; then
4923 :
4924 else
4925 $as_echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ac_c_werror_flag=$ac_save_c_werror_flag
4929 CFLAGS="-g"
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4937 int
4938 main ()
4939 {
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (ac_try="$ac_compile"
4947 case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950 esac
4951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4952 $as_echo "$ac_try_echo") >&5
4953 (eval "$ac_compile") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && {
4960 test -z "$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 } && test -s conftest.$ac_objext; then
4963 ac_cv_prog_cc_g=yes
4964 else
4965 $as_echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4969 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 ac_c_werror_flag=$ac_save_c_werror_flag
4979 fi
4980 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4981 $as_echo "$ac_cv_prog_cc_g" >&6; }
4982 if test "$ac_test_CFLAGS" = set; then
4983 CFLAGS=$ac_save_CFLAGS
4984 elif test $ac_cv_prog_cc_g = yes; then
4985 if test "$GCC" = yes; then
4986 CFLAGS="-g -O2"
4987 else
4988 CFLAGS="-g"
4989 fi
4990 else
4991 if test "$GCC" = yes; then
4992 CFLAGS="-O2"
4993 else
4994 CFLAGS=
4995 fi
4996 fi
4997 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4998 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4999 if test "${ac_cv_prog_cc_c89+set}" = set; then
5000 $as_echo_n "(cached) " >&6
5001 else
5002 ac_cv_prog_cc_c89=no
5003 ac_save_CC=$CC
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 #include <stdarg.h>
5011 #include <stdio.h>
5012 #include <sys/types.h>
5013 #include <sys/stat.h>
5014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5015 struct buf { int x; };
5016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5017 static char *e (p, i)
5018 char **p;
5019 int i;
5020 {
5021 return p[i];
5022 }
5023 static char *f (char * (*g) (char **, int), char **p, ...)
5024 {
5025 char *s;
5026 va_list v;
5027 va_start (v,p);
5028 s = g (p, va_arg (v,int));
5029 va_end (v);
5030 return s;
5031 }
5033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5034 function prototypes and stuff, but not '\xHH' hex character constants.
5035 These don't provoke an error unfortunately, instead are silently treated
5036 as 'x'. The following induces an error, until -std is added to get
5037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5038 array size at least. It's necessary to write '\x00'==0 to get something
5039 that's true only with -std. */
5040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5043 inside strings and character constants. */
5044 #define FOO(x) 'x'
5045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5047 int test (int i, double x);
5048 struct s1 {int (*f) (int a);};
5049 struct s2 {int (*f) (double a);};
5050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5051 int argc;
5052 char **argv;
5053 int
5054 main ()
5055 {
5056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5063 do
5064 CC="$ac_save_CC $ac_arg"
5065 rm -f conftest.$ac_objext
5066 if { (ac_try="$ac_compile"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5072 $as_echo "$ac_try_echo") >&5
5073 (eval "$ac_compile") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } && {
5080 test -z "$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 } && test -s conftest.$ac_objext; then
5083 ac_cv_prog_cc_c89=$ac_arg
5084 else
5085 $as_echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5089 fi
5091 rm -f core conftest.err conftest.$ac_objext
5092 test "x$ac_cv_prog_cc_c89" != "xno" && break
5093 done
5094 rm -f conftest.$ac_ext
5095 CC=$ac_save_CC
5097 fi
5098 # AC_CACHE_VAL
5099 case "x$ac_cv_prog_cc_c89" in
5100 x)
5101 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5102 $as_echo "none needed" >&6; } ;;
5103 xno)
5104 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5105 $as_echo "unsupported" >&6; } ;;
5106 *)
5107 CC="$CC $ac_cv_prog_cc_c89"
5108 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5109 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5110 esac
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 depcc="$CC" am_compiler_list=
5121 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5122 $as_echo_n "checking dependency style of $depcc... " >&6; }
5123 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5127 # We make a subdir and do the tests there. Otherwise we can end up
5128 # making bogus files that we don't know about and never remove. For
5129 # instance it was reported that on HP-UX the gcc test will end up
5130 # making a dummy file named `D' -- because `-MD' means `put the output
5131 # in D'.
5132 mkdir conftest.dir
5133 # Copy depcomp to subdir because otherwise we won't find it if we're
5134 # using a relative directory.
5135 cp "$am_depcomp" conftest.dir
5136 cd conftest.dir
5137 # We will build objects and dependencies in a subdirectory because
5138 # it helps to detect inapplicable dependency modes. For instance
5139 # both Tru64's cc and ICC support -MD to output dependencies as a
5140 # side effect of compilation, but ICC will put the dependencies in
5141 # the current directory while Tru64 will put them in the object
5142 # directory.
5143 mkdir sub
5145 am_cv_CC_dependencies_compiler_type=none
5146 if test "$am_compiler_list" = ""; then
5147 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5148 fi
5149 for depmode in $am_compiler_list; do
5150 # Setup a source with many dependencies, because some compilers
5151 # like to wrap large dependency lists on column 80 (with \), and
5152 # we should not choose a depcomp mode which is confused by this.
5153 #
5154 # We need to recreate these files for each test, as the compiler may
5155 # overwrite some of them when testing with obscure command lines.
5156 # This happens at least with the AIX C compiler.
5157 : > sub/conftest.c
5158 for i in 1 2 3 4 5 6; do
5159 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5160 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5161 # Solaris 8's {/usr,}/bin/sh.
5162 touch sub/conftst$i.h
5163 done
5164 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5166 case $depmode in
5167 nosideeffect)
5168 # after this tag, mechanisms are not by side-effect, so they'll
5169 # only be used when explicitly requested
5170 if test "x$enable_dependency_tracking" = xyes; then
5171 continue
5172 else
5173 break
5174 fi
5175 ;;
5176 none) break ;;
5177 esac
5178 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5179 # mode. It turns out that the SunPro C++ compiler does not properly
5180 # handle `-M -o', and we need to detect this.
5181 if depmode=$depmode \
5182 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5183 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5184 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5185 >/dev/null 2>conftest.err &&
5186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5187 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5189 # icc doesn't choke on unknown options, it will just issue warnings
5190 # or remarks (even with -Werror). So we grep stderr for any message
5191 # that says an option was ignored or not supported.
5192 # When given -MP, icc 7.0 and 7.1 complain thusly:
5193 # icc: Command line warning: ignoring option '-M'; no argument required
5194 # The diagnosis changed in icc 8.0:
5195 # icc: Command line remark: option '-MP' not supported
5196 if (grep 'ignoring option' conftest.err ||
5197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5198 am_cv_CC_dependencies_compiler_type=$depmode
5199 break
5200 fi
5201 fi
5202 done
5204 cd ..
5205 rm -rf conftest.dir
5206 else
5207 am_cv_CC_dependencies_compiler_type=none
5208 fi
5210 fi
5211 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5217 if
5218 test "x$enable_dependency_tracking" != xno \
5219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5220 am__fastdepCC_TRUE=
5221 am__fastdepCC_FALSE='#'
5222 else
5223 am__fastdepCC_TRUE='#'
5224 am__fastdepCC_FALSE=
5225 fi
5229 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5231 # By default we simply use the C compiler to build assembly code.
5233 test "${CCAS+set}" = set || CCAS=$CC
5234 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5238 ac_ext=c
5239 ac_cpp='$CPP $CPPFLAGS'
5240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5245 # On Suns, sometimes $CPP names a directory.
5246 if test -n "$CPP" && test -d "$CPP"; then
5247 CPP=
5248 fi
5249 if test -z "$CPP"; then
5250 if test "${ac_cv_prog_CPP+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5252 else
5253 # Double quotes because CPP needs to be expanded
5254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5255 do
5256 ac_preproc_ok=false
5257 for ac_c_preproc_warn_flag in '' yes
5258 do
5259 # Use a header file that comes with gcc, so configuring glibc
5260 # with a fresh cross-compiler works.
5261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262 # <limits.h> exists even on freestanding compilers.
5263 # On the NeXT, cc -E runs the code through the compiler's parser,
5264 # not just through cpp. "Syntax error" is here to catch this case.
5265 cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h. */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 #ifdef __STDC__
5272 # include <limits.h>
5273 #else
5274 # include <assert.h>
5275 #endif
5276 Syntax error
5277 _ACEOF
5278 if { (ac_try="$ac_cpp conftest.$ac_ext"
5279 case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282 esac
5283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5284 $as_echo "$ac_try_echo") >&5
5285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } >/dev/null && {
5292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 }; then
5295 :
5296 else
5297 $as_echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 # Broken: fails on valid input.
5301 continue
5302 fi
5304 rm -f conftest.err conftest.$ac_ext
5306 # OK, works on sane cases. Now check whether nonexistent headers
5307 # can be detected and how.
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <ac_nonexistent.h>
5315 _ACEOF
5316 if { (ac_try="$ac_cpp conftest.$ac_ext"
5317 case "(($ac_try" in
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5320 esac
5321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5322 $as_echo "$ac_try_echo") >&5
5323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } >/dev/null && {
5330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5331 test ! -s conftest.err
5332 }; then
5333 # Broken: success on invalid input.
5334 continue
5335 else
5336 $as_echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 # Passes both tests.
5340 ac_preproc_ok=:
5341 break
5342 fi
5344 rm -f conftest.err conftest.$ac_ext
5346 done
5347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5348 rm -f conftest.err conftest.$ac_ext
5349 if $ac_preproc_ok; then
5350 break
5351 fi
5353 done
5354 ac_cv_prog_CPP=$CPP
5356 fi
5357 CPP=$ac_cv_prog_CPP
5358 else
5359 ac_cv_prog_CPP=$CPP
5360 fi
5361 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5362 $as_echo "$CPP" >&6; }
5363 ac_preproc_ok=false
5364 for ac_c_preproc_warn_flag in '' yes
5365 do
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #ifdef __STDC__
5379 # include <limits.h>
5380 #else
5381 # include <assert.h>
5382 #endif
5383 Syntax error
5384 _ACEOF
5385 if { (ac_try="$ac_cpp conftest.$ac_ext"
5386 case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389 esac
5390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391 $as_echo "$ac_try_echo") >&5
5392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } >/dev/null && {
5399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 }; then
5402 :
5403 else
5404 $as_echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 # Broken: fails on valid input.
5408 continue
5409 fi
5411 rm -f conftest.err conftest.$ac_ext
5413 # OK, works on sane cases. Now check whether nonexistent headers
5414 # can be detected and how.
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <ac_nonexistent.h>
5422 _ACEOF
5423 if { (ac_try="$ac_cpp conftest.$ac_ext"
5424 case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427 esac
5428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5429 $as_echo "$ac_try_echo") >&5
5430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } >/dev/null && {
5437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 }; then
5440 # Broken: success on invalid input.
5441 continue
5442 else
5443 $as_echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 # Passes both tests.
5447 ac_preproc_ok=:
5448 break
5449 fi
5451 rm -f conftest.err conftest.$ac_ext
5453 done
5454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5455 rm -f conftest.err conftest.$ac_ext
5456 if $ac_preproc_ok; then
5457 :
5458 else
5459 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5460 See \`config.log' for more details." >&5
5461 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5462 See \`config.log' for more details." >&2;}
5463 { (exit 1); exit 1; }; }
5464 fi
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5473 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5474 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5475 if test "${ac_cv_path_GREP+set}" = set; then
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -z "$GREP"; then
5479 ac_path_GREP_found=false
5480 # Loop through the user's path and test for each of PROGNAME-LIST
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_prog in grep ggrep; do
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5489 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5490 # Check for GNU ac_path_GREP and select it if it is found.
5491 # Check for GNU $ac_path_GREP
5492 case `"$ac_path_GREP" --version 2>&1` in
5493 *GNU*)
5494 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5495 *)
5496 ac_count=0
5497 $as_echo_n 0123456789 >"conftest.in"
5498 while :
5499 do
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 $as_echo 'GREP' >> "conftest.nl"
5504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506 ac_count=`expr $ac_count + 1`
5507 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_GREP="$ac_path_GREP"
5510 ac_path_GREP_max=$ac_count
5511 fi
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5514 done
5515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516 esac
5518 $ac_path_GREP_found && break 3
5519 done
5520 done
5521 done
5522 IFS=$as_save_IFS
5523 if test -z "$ac_cv_path_GREP"; then
5524 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5525 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5526 { (exit 1); exit 1; }; }
5527 fi
5528 else
5529 ac_cv_path_GREP=$GREP
5530 fi
5532 fi
5533 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5534 $as_echo "$ac_cv_path_GREP" >&6; }
5535 GREP="$ac_cv_path_GREP"
5538 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5539 $as_echo_n "checking for egrep... " >&6; }
5540 if test "${ac_cv_path_EGREP+set}" = set; then
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5544 then ac_cv_path_EGREP="$GREP -E"
5545 else
5546 if test -z "$EGREP"; then
5547 ac_path_EGREP_found=false
5548 # Loop through the user's path and test for each of PROGNAME-LIST
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_prog in egrep; do
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5557 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5558 # Check for GNU ac_path_EGREP and select it if it is found.
5559 # Check for GNU $ac_path_EGREP
5560 case `"$ac_path_EGREP" --version 2>&1` in
5561 *GNU*)
5562 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5563 *)
5564 ac_count=0
5565 $as_echo_n 0123456789 >"conftest.in"
5566 while :
5567 do
5568 cat "conftest.in" "conftest.in" >"conftest.tmp"
5569 mv "conftest.tmp" "conftest.in"
5570 cp "conftest.in" "conftest.nl"
5571 $as_echo 'EGREP' >> "conftest.nl"
5572 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5574 ac_count=`expr $ac_count + 1`
5575 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5576 # Best one so far, save it but keep looking for a better one
5577 ac_cv_path_EGREP="$ac_path_EGREP"
5578 ac_path_EGREP_max=$ac_count
5579 fi
5580 # 10*(2^10) chars as input seems more than enough
5581 test $ac_count -gt 10 && break
5582 done
5583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5584 esac
5586 $ac_path_EGREP_found && break 3
5587 done
5588 done
5589 done
5590 IFS=$as_save_IFS
5591 if test -z "$ac_cv_path_EGREP"; then
5592 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5593 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5594 { (exit 1); exit 1; }; }
5595 fi
5596 else
5597 ac_cv_path_EGREP=$EGREP
5598 fi
5600 fi
5601 fi
5602 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5603 $as_echo "$ac_cv_path_EGREP" >&6; }
5604 EGREP="$ac_cv_path_EGREP"
5607 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608 $as_echo_n "checking for ANSI C header files... " >&6; }
5609 if test "${ac_cv_header_stdc+set}" = set; then
5610 $as_echo_n "(cached) " >&6
5611 else
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <stdlib.h>
5619 #include <stdarg.h>
5620 #include <string.h>
5621 #include <float.h>
5623 int
5624 main ()
5625 {
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (ac_try="$ac_compile"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5638 $as_echo "$ac_try_echo") >&5
5639 (eval "$ac_compile") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest.$ac_objext; then
5649 ac_cv_header_stdc=yes
5650 else
5651 $as_echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_cv_header_stdc=no
5655 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 if test $ac_cv_header_stdc = yes; then
5660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #include <string.h>
5669 _ACEOF
5670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5671 $EGREP "memchr" >/dev/null 2>&1; then
5672 :
5673 else
5674 ac_cv_header_stdc=no
5675 fi
5676 rm -f conftest*
5678 fi
5680 if test $ac_cv_header_stdc = yes; then
5681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #include <stdlib.h>
5690 _ACEOF
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692 $EGREP "free" >/dev/null 2>&1; then
5693 :
5694 else
5695 ac_cv_header_stdc=no
5696 fi
5697 rm -f conftest*
5699 fi
5701 if test $ac_cv_header_stdc = yes; then
5702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5703 if test "$cross_compiling" = yes; then
5704 :
5705 else
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #include <ctype.h>
5713 #include <stdlib.h>
5714 #if ((' ' & 0x0FF) == 0x020)
5715 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5716 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5717 #else
5718 # define ISLOWER(c) \
5719 (('a' <= (c) && (c) <= 'i') \
5720 || ('j' <= (c) && (c) <= 'r') \
5721 || ('s' <= (c) && (c) <= 'z'))
5722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5723 #endif
5725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5726 int
5727 main ()
5728 {
5729 int i;
5730 for (i = 0; i < 256; i++)
5731 if (XOR (islower (i), ISLOWER (i))
5732 || toupper (i) != TOUPPER (i))
5733 return 2;
5734 return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_link") 2>&5
5746 ac_status=$?
5747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5754 $as_echo "$ac_try_echo") >&5
5755 (eval "$ac_try") 2>&5
5756 ac_status=$?
5757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 :
5760 else
5761 $as_echo "$as_me: program exited with status $ac_status" >&5
5762 $as_echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ( exit $ac_status )
5766 ac_cv_header_stdc=no
5767 fi
5768 rm -rf conftest.dSYM
5769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5770 fi
5773 fi
5774 fi
5775 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5776 $as_echo "$ac_cv_header_stdc" >&6; }
5777 if test $ac_cv_header_stdc = yes; then
5779 cat >>confdefs.h <<\_ACEOF
5780 #define STDC_HEADERS 1
5781 _ACEOF
5783 fi
5785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5795 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5796 inttypes.h stdint.h unistd.h
5797 do
5798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5800 $as_echo_n "checking for $ac_header... " >&6; }
5801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5812 #include <$ac_header>
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5821 $as_echo "$ac_try_echo") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5832 eval "$as_ac_Header=yes"
5833 else
5834 $as_echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 eval "$as_ac_Header=no"
5838 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 ac_res=`eval 'as_val=${'$as_ac_Header'}
5843 $as_echo "$as_val"'`
5844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5845 $as_echo "$ac_res" >&6; }
5846 if test `eval 'as_val=${'$as_ac_Header'}
5847 $as_echo "$as_val"'` = yes; then
5848 cat >>confdefs.h <<_ACEOF
5849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5850 _ACEOF
5852 fi
5854 done
5857 # The cast to long int works around a bug in the HP C Compiler
5858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5860 # This bug is HP SR number 8606223364.
5861 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5862 $as_echo_n "checking size of void *... " >&6; }
5863 if test "${ac_cv_sizeof_void_p+set}" = set; then
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test "$cross_compiling" = yes; then
5867 # Depending upon the size, compute the lo and hi bounds.
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 $ac_includes_default
5875 int
5876 main ()
5877 {
5878 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5879 test_array [0] = 0
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (ac_try="$ac_compile"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5892 $as_echo "$ac_try_echo") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
5903 ac_lo=0 ac_mid=0
5904 while :; do
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5912 int
5913 main ()
5914 {
5915 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5916 test_array [0] = 0
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (ac_try="$ac_compile"
5924 case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5929 $as_echo "$ac_try_echo") >&5
5930 (eval "$ac_compile") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
5940 ac_hi=$ac_mid; break
5941 else
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_lo=`expr $ac_mid + 1`
5946 if test $ac_lo -le $ac_mid; then
5947 ac_lo= ac_hi=
5948 break
5949 fi
5950 ac_mid=`expr 2 '*' $ac_mid + 1`
5951 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 done
5955 else
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 int
5967 main ()
5968 {
5969 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5970 test_array [0] = 0
5972 ;
5973 return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (ac_try="$ac_compile"
5978 case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983 $as_echo "$ac_try_echo") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5994 ac_hi=-1 ac_mid=-1
5995 while :; do
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6003 int
6004 main ()
6005 {
6006 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6007 test_array [0] = 0
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (ac_try="$ac_compile"
6015 case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018 esac
6019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6020 $as_echo "$ac_try_echo") >&5
6021 (eval "$ac_compile") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest.$ac_objext; then
6031 ac_lo=$ac_mid; break
6032 else
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_hi=`expr '(' $ac_mid ')' - 1`
6037 if test $ac_mid -le $ac_hi; then
6038 ac_lo= ac_hi=
6039 break
6040 fi
6041 ac_mid=`expr 2 '*' $ac_mid`
6042 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 done
6046 else
6047 $as_echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6050 ac_lo= ac_hi=
6051 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 fi
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 # Binary search between lo and hi bounds.
6058 while test "x$ac_lo" != "x$ac_hi"; do
6059 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6067 int
6068 main ()
6069 {
6070 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6071 test_array [0] = 0
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6079 case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082 esac
6083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6084 $as_echo "$ac_try_echo") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest.$ac_objext; then
6095 ac_hi=$ac_mid
6096 else
6097 $as_echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_lo=`expr '(' $ac_mid ')' + 1`
6101 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 done
6105 case $ac_lo in
6106 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6107 '') if test "$ac_cv_type_void_p" = yes; then
6108 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6109 See \`config.log' for more details." >&5
6110 $as_echo "$as_me: error: cannot compute sizeof (void *)
6111 See \`config.log' for more details." >&2;}
6112 { (exit 77); exit 77; }; }
6113 else
6114 ac_cv_sizeof_void_p=0
6115 fi ;;
6116 esac
6117 else
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 $ac_includes_default
6125 static long int longval () { return (long int) (sizeof (void *)); }
6126 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6127 #include <stdio.h>
6128 #include <stdlib.h>
6129 int
6130 main ()
6131 {
6133 FILE *f = fopen ("conftest.val", "w");
6134 if (! f)
6135 return 1;
6136 if (((long int) (sizeof (void *))) < 0)
6137 {
6138 long int i = longval ();
6139 if (i != ((long int) (sizeof (void *))))
6140 return 1;
6141 fprintf (f, "%ld", i);
6142 }
6143 else
6144 {
6145 unsigned long int i = ulongval ();
6146 if (i != ((long int) (sizeof (void *))))
6147 return 1;
6148 fprintf (f, "%lu", i);
6149 }
6150 /* Do not output a trailing newline, as this causes \r\n confusion
6151 on some platforms. */
6152 return ferror (f) || fclose (f) != 0;
6154 ;
6155 return 0;
6156 }
6157 _ACEOF
6158 rm -f conftest$ac_exeext
6159 if { (ac_try="$ac_link"
6160 case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6165 $as_echo "$ac_try_echo") >&5
6166 (eval "$ac_link") 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173 esac
6174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6175 $as_echo "$ac_try_echo") >&5
6176 (eval "$ac_try") 2>&5
6177 ac_status=$?
6178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_sizeof_void_p=`cat conftest.val`
6181 else
6182 $as_echo "$as_me: program exited with status $ac_status" >&5
6183 $as_echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ( exit $ac_status )
6187 if test "$ac_cv_type_void_p" = yes; then
6188 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6189 See \`config.log' for more details." >&5
6190 $as_echo "$as_me: error: cannot compute sizeof (void *)
6191 See \`config.log' for more details." >&2;}
6192 { (exit 77); exit 77; }; }
6193 else
6194 ac_cv_sizeof_void_p=0
6195 fi
6196 fi
6197 rm -rf conftest.dSYM
6198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 rm -f conftest.val
6201 fi
6202 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6203 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6207 cat >>confdefs.h <<_ACEOF
6208 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6209 _ACEOF
6212 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6213 $as_echo_n "checking for ANSI C header files... " >&6; }
6214 if test "${ac_cv_header_stdc+set}" = set; then
6215 $as_echo_n "(cached) " >&6
6216 else
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <stdlib.h>
6224 #include <stdarg.h>
6225 #include <string.h>
6226 #include <float.h>
6228 int
6229 main ()
6230 {
6232 ;
6233 return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6243 $as_echo "$ac_try_echo") >&5
6244 (eval "$ac_compile") 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && {
6251 test -z "$ac_c_werror_flag" ||
6252 test ! -s conftest.err
6253 } && test -s conftest.$ac_objext; then
6254 ac_cv_header_stdc=yes
6255 else
6256 $as_echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_cv_header_stdc=no
6260 fi
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 if test $ac_cv_header_stdc = yes; then
6265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 #include <string.h>
6274 _ACEOF
6275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6276 $EGREP "memchr" >/dev/null 2>&1; then
6277 :
6278 else
6279 ac_cv_header_stdc=no
6280 fi
6281 rm -f conftest*
6283 fi
6285 if test $ac_cv_header_stdc = yes; then
6286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 #include <stdlib.h>
6295 _ACEOF
6296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297 $EGREP "free" >/dev/null 2>&1; then
6298 :
6299 else
6300 ac_cv_header_stdc=no
6301 fi
6302 rm -f conftest*
6304 fi
6306 if test $ac_cv_header_stdc = yes; then
6307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6308 if test "$cross_compiling" = yes; then
6309 :
6310 else
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 #include <ctype.h>
6318 #include <stdlib.h>
6319 #if ((' ' & 0x0FF) == 0x020)
6320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6322 #else
6323 # define ISLOWER(c) \
6324 (('a' <= (c) && (c) <= 'i') \
6325 || ('j' <= (c) && (c) <= 'r') \
6326 || ('s' <= (c) && (c) <= 'z'))
6327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6328 #endif
6330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6331 int
6332 main ()
6333 {
6334 int i;
6335 for (i = 0; i < 256; i++)
6336 if (XOR (islower (i), ISLOWER (i))
6337 || toupper (i) != TOUPPER (i))
6338 return 2;
6339 return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest$ac_exeext
6343 if { (ac_try="$ac_link"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6349 $as_echo "$ac_try_echo") >&5
6350 (eval "$ac_link") 2>&5
6351 ac_status=$?
6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6354 { (case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_try") 2>&5
6361 ac_status=$?
6362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 :
6365 else
6366 $as_echo "$as_me: program exited with status $ac_status" >&5
6367 $as_echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ( exit $ac_status )
6371 ac_cv_header_stdc=no
6372 fi
6373 rm -rf conftest.dSYM
6374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6375 fi
6378 fi
6379 fi
6380 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6381 $as_echo "$ac_cv_header_stdc" >&6; }
6382 if test $ac_cv_header_stdc = yes; then
6384 cat >>confdefs.h <<\_ACEOF
6385 #define STDC_HEADERS 1
6386 _ACEOF
6388 fi
6390 # Make sure we can run config.sub.
6391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6392 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6393 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6394 { (exit 1); exit 1; }; }
6396 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6397 $as_echo_n "checking build system type... " >&6; }
6398 if test "${ac_cv_build+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6400 else
6401 ac_build_alias=$build_alias
6402 test "x$ac_build_alias" = x &&
6403 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6404 test "x$ac_build_alias" = x &&
6405 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6406 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6407 { (exit 1); exit 1; }; }
6408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6409 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6410 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6411 { (exit 1); exit 1; }; }
6413 fi
6414 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6415 $as_echo "$ac_cv_build" >&6; }
6416 case $ac_cv_build in
6417 *-*-*) ;;
6418 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6419 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6420 { (exit 1); exit 1; }; };;
6421 esac
6422 build=$ac_cv_build
6423 ac_save_IFS=$IFS; IFS='-'
6424 set x $ac_cv_build
6425 shift
6426 build_cpu=$1
6427 build_vendor=$2
6428 shift; shift
6429 # Remember, the first character of IFS is used to create $*,
6430 # except with old shells:
6431 build_os=$*
6432 IFS=$ac_save_IFS
6433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6436 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6437 $as_echo_n "checking host system type... " >&6; }
6438 if test "${ac_cv_host+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6440 else
6441 if test "x$host_alias" = x; then
6442 ac_cv_host=$ac_cv_build
6443 else
6444 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6445 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6446 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6447 { (exit 1); exit 1; }; }
6448 fi
6450 fi
6451 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6452 $as_echo "$ac_cv_host" >&6; }
6453 case $ac_cv_host in
6454 *-*-*) ;;
6455 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6456 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6457 { (exit 1); exit 1; }; };;
6458 esac
6459 host=$ac_cv_host
6460 ac_save_IFS=$IFS; IFS='-'
6461 set x $ac_cv_host
6462 shift
6463 host_cpu=$1
6464 host_vendor=$2
6465 shift; shift
6466 # Remember, the first character of IFS is used to create $*,
6467 # except with old shells:
6468 host_os=$*
6469 IFS=$ac_save_IFS
6470 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6474 # Extract the first word of "pod2man", so it can be a program name with args.
6475 set dummy pod2man; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_path_POD2MAN+set}" = set; then
6479 $as_echo_n "(cached) " >&6
6480 else
6481 case $POD2MAN in
6482 [\\/]* | ?:[\\/]*)
6483 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
6484 ;;
6485 *)
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6501 ;;
6502 esac
6503 fi
6504 POD2MAN=$ac_cv_path_POD2MAN
6505 if test -n "$POD2MAN"; then
6506 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
6507 $as_echo "$POD2MAN" >&6; }
6508 else
6509 { $as_echo "$as_me:$LINENO: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6514 # Extract the first word of "pod2html", so it can be a program name with args.
6515 set dummy pod2html; ac_word=$2
6516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if test "${ac_cv_path_POD2HTML+set}" = set; then
6519 $as_echo_n "(cached) " >&6
6520 else
6521 case $POD2HTML in
6522 [\\/]* | ?:[\\/]*)
6523 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
6524 ;;
6525 *)
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
6534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6541 ;;
6542 esac
6543 fi
6544 POD2HTML=$ac_cv_path_POD2HTML
6545 if test -n "$POD2HTML"; then
6546 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
6547 $as_echo "$POD2HTML" >&6; }
6548 else
6549 { $as_echo "$as_me:$LINENO: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6556 # Check whether --enable-strict-warn was given.
6557 if test "${enable_strict_warn+set}" = set; then
6558 enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"
6559 fi
6561 # Check whether --enable-translator was given.
6562 if test "${enable_translator+set}" = set; then
6563 enableval=$enable_translator; true
6564 else
6565 enable_translator=yes
6566 fi
6568 # Check whether --enable-trace was given.
6569 if test "${enable_trace+set}" = set; then
6570 enableval=$enable_trace; if test "$enableval" == "yes"; then
6572 cat >>confdefs.h <<\_ACEOF
6573 #define ENABLE_TRACE_IO 1
6574 _ACEOF
6576 fi
6577 fi
6579 # Check whether --enable-watch was given.
6580 if test "${enable_watch+set}" = set; then
6581 enableval=$enable_watch; if test "$enableval" == "yes"; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define ENABLE_WATCH 1
6585 _ACEOF
6587 fi
6588 fi
6590 # Check whether --enable-sh4stats was given.
6591 if test "${enable_sh4stats+set}" = set; then
6592 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6594 cat >>confdefs.h <<\_ACEOF
6595 #define ENABLE_SH4STATS 1
6596 _ACEOF
6598 fi
6599 fi
6602 # Check whether --with-osmesa was given.
6603 if test "${with_osmesa+set}" = set; then
6604 withval=$with_osmesa;
6605 else
6606 with_osmesa=no
6607 fi
6610 # Check whether --with-gtk was given.
6611 if test "${with_gtk+set}" = set; then
6612 withval=$with_gtk; with_gtk=yes
6613 else
6614 with_gtk=x11
6615 fi
6618 # Check whether --with-esd was given.
6619 if test "${with_esd+set}" = set; then
6620 withval=$with_esd;
6621 fi
6624 # Check whether --with-pulse was given.
6625 if test "${with_pulse+set}" = set; then
6626 withval=$with_pulse;
6627 fi
6631 if test "x$GCC" = "xyes"; then
6632 CFLAGS="$CFLAGS -fno-strict-aliasing"
6633 fi
6636 lxdream_save_cppflags="$CPPFLAGS"
6637 CPPFLAGS="$CPPFLAGS -x objective-c"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 @interface Foo @end
6645 int
6646 main ()
6647 {
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6660 $as_echo "$ac_try_echo") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6673 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6674 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6675 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6676 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6677 $as_echo_n "(cached) " >&6
6678 fi
6679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6680 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6681 else
6682 # Is the header compilable?
6683 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6684 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 $ac_includes_default
6692 #include <Cocoa/Cocoa.h>
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6696 case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699 esac
6700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6701 $as_echo "$ac_try_echo") >&5
6702 (eval "$ac_compile") 2>conftest.er1
6703 ac_status=$?
6704 grep -v '^ *+' conftest.er1 >conftest.err
6705 rm -f conftest.er1
6706 cat conftest.err >&5
6707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && {
6709 test -z "$ac_c_werror_flag" ||
6710 test ! -s conftest.err
6711 } && test -s conftest.$ac_objext; then
6712 ac_header_compiler=yes
6713 else
6714 $as_echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6717 ac_header_compiler=no
6718 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6722 $as_echo "$ac_header_compiler" >&6; }
6724 # Is the header present?
6725 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6726 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 #include <Cocoa/Cocoa.h>
6734 _ACEOF
6735 if { (ac_try="$ac_cpp conftest.$ac_ext"
6736 case "(($ac_try" in
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6739 esac
6740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741 $as_echo "$ac_try_echo") >&5
6742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } >/dev/null && {
6749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 }; then
6752 ac_header_preproc=yes
6753 else
6754 $as_echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6757 ac_header_preproc=no
6758 fi
6760 rm -f conftest.err conftest.$ac_ext
6761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6762 $as_echo "$ac_header_preproc" >&6; }
6764 # So? What about this header?
6765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6766 yes:no: )
6767 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6768 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6769 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6770 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6771 ac_header_preproc=yes
6772 ;;
6773 no:yes:* )
6774 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6775 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6776 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6777 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6778 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6779 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6780 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6781 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6782 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6783 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6784 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6785 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6787 ;;
6788 esac
6789 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6790 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6791 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6793 else
6794 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6795 fi
6796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6797 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6799 fi
6800 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6802 HAVE_COCOA='yes'
6803 APPLE_BUILD='yes'
6804 LIBS="$LIBS -framework AppKit"
6805 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"
6806 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4"
6807 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
6809 cat >>confdefs.h <<\_ACEOF
6810 #define HAVE_COCOA 1
6811 _ACEOF
6814 cat >>confdefs.h <<\_ACEOF
6815 #define APPLE_BUILD 1
6816 _ACEOF
6818 if test "x$with_gtk" = "xx11"; then
6819 with_gtk=no
6820 fi
6822 fi
6827 else
6828 $as_echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 CPPFLAGS="$lxdream_save_cppflags"
6832 fi
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6838 GUI_COCOA_TRUE=
6839 GUI_COCOA_FALSE='#'
6840 else
6841 GUI_COCOA_TRUE='#'
6842 GUI_COCOA_FALSE=
6843 fi
6845 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
6847 cat >>confdefs.h <<\_ACEOF
6848 #define OSX_BUNDLE 1
6849 _ACEOF
6851 fi
6855 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6856 if test -n "$ac_tool_prefix"; then
6857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6858 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6862 $as_echo_n "(cached) " >&6
6863 else
6864 case $PKG_CONFIG in
6865 [\\/]* | ?:[\\/]*)
6866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6867 ;;
6868 *)
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6884 ;;
6885 esac
6886 fi
6887 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6888 if test -n "$PKG_CONFIG"; then
6889 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6890 $as_echo "$PKG_CONFIG" >&6; }
6891 else
6892 { $as_echo "$as_me:$LINENO: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6897 fi
6898 if test -z "$ac_cv_path_PKG_CONFIG"; then
6899 ac_pt_PKG_CONFIG=$PKG_CONFIG
6900 # Extract the first word of "pkg-config", so it can be a program name with args.
6901 set dummy pkg-config; ac_word=$2
6902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6905 $as_echo_n "(cached) " >&6
6906 else
6907 case $ac_pt_PKG_CONFIG in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6927 ;;
6928 esac
6929 fi
6930 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6931 if test -n "$ac_pt_PKG_CONFIG"; then
6932 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6933 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6934 else
6935 { $as_echo "$as_me:$LINENO: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6939 if test "x$ac_pt_PKG_CONFIG" = x; then
6940 PKG_CONFIG=""
6941 else
6942 case $cross_compiling:$ac_tool_warned in
6943 yes:)
6944 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet. If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&5
6947 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6948 whose name does not start with the host triplet. If you think this
6949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6950 ac_tool_warned=yes ;;
6951 esac
6952 PKG_CONFIG=$ac_pt_PKG_CONFIG
6953 fi
6954 else
6955 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6956 fi
6958 fi
6959 if test -n "$PKG_CONFIG"; then
6960 _pkg_min_version=0.9.0
6961 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6962 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6963 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6964 { $as_echo "$as_me:$LINENO: result: yes" >&5
6965 $as_echo "yes" >&6; }
6966 else
6967 { $as_echo "$as_me:$LINENO: result: no" >&5
6968 $as_echo "no" >&6; }
6969 PKG_CONFIG=""
6970 fi
6972 fi
6974 pkg_failed=no
6975 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
6976 $as_echo_n "checking for LIBPNG... " >&6; }
6978 if test -n "$PKG_CONFIG"; then
6979 if test -n "$LIBPNG_CFLAGS"; then
6980 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6981 else
6982 if test -n "$PKG_CONFIG" && \
6983 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6984 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6985 ac_status=$?
6986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; then
6988 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6989 else
6990 pkg_failed=yes
6991 fi
6992 fi
6993 else
6994 pkg_failed=untried
6995 fi
6996 if test -n "$PKG_CONFIG"; then
6997 if test -n "$LIBPNG_LIBS"; then
6998 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6999 else
7000 if test -n "$PKG_CONFIG" && \
7001 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
7002 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
7003 ac_status=$?
7004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; then
7006 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
7007 else
7008 pkg_failed=yes
7009 fi
7010 fi
7011 else
7012 pkg_failed=untried
7013 fi
7017 if test $pkg_failed = yes; then
7019 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7020 _pkg_short_errors_supported=yes
7021 else
7022 _pkg_short_errors_supported=no
7023 fi
7024 if test $_pkg_short_errors_supported = yes; then
7025 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
7026 else
7027 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
7028 fi
7029 # Put the nasty error message in config.log where it belongs
7030 echo "$LIBPNG_PKG_ERRORS" >&5
7032 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
7034 $LIBPNG_PKG_ERRORS
7036 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7037 installed software in a non-standard prefix.
7039 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7040 and LIBPNG_LIBS to avoid the need to call pkg-config.
7041 See the pkg-config man page for more details.
7042 " >&5
7043 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
7045 $LIBPNG_PKG_ERRORS
7047 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7048 installed software in a non-standard prefix.
7050 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7051 and LIBPNG_LIBS to avoid the need to call pkg-config.
7052 See the pkg-config man page for more details.
7053 " >&2;}
7054 { (exit 1); exit 1; }; }
7055 elif test $pkg_failed = untried; then
7056 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7057 is in your PATH or set the PKG_CONFIG environment variable to the full
7058 path to pkg-config.
7060 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7061 and LIBPNG_LIBS to avoid the need to call pkg-config.
7062 See the pkg-config man page for more details.
7064 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7065 See \`config.log' for more details." >&5
7066 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7067 is in your PATH or set the PKG_CONFIG environment variable to the full
7068 path to pkg-config.
7070 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7071 and LIBPNG_LIBS to avoid the need to call pkg-config.
7072 See the pkg-config man page for more details.
7074 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7075 See \`config.log' for more details." >&2;}
7076 { (exit 1); exit 1; }; }
7077 else
7078 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
7079 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
7080 { $as_echo "$as_me:$LINENO: result: yes" >&5
7081 $as_echo "yes" >&6; }
7082 :
7083 fi
7086 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
7087 $as_echo_n "checking for uncompress in -lz... " >&6; }
7088 if test "${ac_cv_lib_z_uncompress+set}" = set; then
7089 $as_echo_n "(cached) " >&6
7090 else
7091 ac_check_lib_save_LIBS=$LIBS
7092 LIBS="-lz $LIBS"
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7100 /* Override any GCC internal prototype to avoid an error.
7101 Use char because int might match the return type of a GCC
7102 builtin and then its argument prototype would still apply. */
7103 #ifdef __cplusplus
7104 extern "C"
7105 #endif
7106 char uncompress ();
7107 int
7108 main ()
7109 {
7110 return uncompress ();
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (ac_try="$ac_link"
7117 case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120 esac
7121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7122 $as_echo "$ac_try_echo") >&5
7123 (eval "$ac_link") 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest$ac_exeext && {
7133 test "$cross_compiling" = yes ||
7134 $as_test_x conftest$ac_exeext
7135 }; then
7136 ac_cv_lib_z_uncompress=yes
7137 else
7138 $as_echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_cv_lib_z_uncompress=no
7142 fi
7144 rm -rf conftest.dSYM
7145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7146 conftest$ac_exeext conftest.$ac_ext
7147 LIBS=$ac_check_lib_save_LIBS
7148 fi
7149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7150 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7151 if test $ac_cv_lib_z_uncompress = yes; then
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_LIBZ 1
7154 _ACEOF
7156 LIBS="-lz $LIBS"
7158 else
7160 echo "Zlib (libz.so) could not be found, but is required."
7161 exit 1
7162 fi
7165 if test "x$with_gtk" = "xno"; then
7167 pkg_failed=no
7168 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7169 $as_echo_n "checking for GLIB... " >&6; }
7171 if test -n "$PKG_CONFIG"; then
7172 if test -n "$GLIB_CFLAGS"; then
7173 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7174 else
7175 if test -n "$PKG_CONFIG" && \
7176 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7177 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7178 ac_status=$?
7179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; then
7181 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7182 else
7183 pkg_failed=yes
7184 fi
7185 fi
7186 else
7187 pkg_failed=untried
7188 fi
7189 if test -n "$PKG_CONFIG"; then
7190 if test -n "$GLIB_LIBS"; then
7191 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7192 else
7193 if test -n "$PKG_CONFIG" && \
7194 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7195 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7196 ac_status=$?
7197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; then
7199 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7200 else
7201 pkg_failed=yes
7202 fi
7203 fi
7204 else
7205 pkg_failed=untried
7206 fi
7210 if test $pkg_failed = yes; then
7212 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7213 _pkg_short_errors_supported=yes
7214 else
7215 _pkg_short_errors_supported=no
7216 fi
7217 if test $_pkg_short_errors_supported = yes; then
7218 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7219 else
7220 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7221 fi
7222 # Put the nasty error message in config.log where it belongs
7223 echo "$GLIB_PKG_ERRORS" >&5
7225 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7227 $GLIB_PKG_ERRORS
7229 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7230 installed software in a non-standard prefix.
7232 Alternatively, you may set the environment variables GLIB_CFLAGS
7233 and GLIB_LIBS to avoid the need to call pkg-config.
7234 See the pkg-config man page for more details.
7235 " >&5
7236 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7238 $GLIB_PKG_ERRORS
7240 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7241 installed software in a non-standard prefix.
7243 Alternatively, you may set the environment variables GLIB_CFLAGS
7244 and GLIB_LIBS to avoid the need to call pkg-config.
7245 See the pkg-config man page for more details.
7246 " >&2;}
7247 { (exit 1); exit 1; }; }
7248 elif test $pkg_failed = untried; then
7249 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7250 is in your PATH or set the PKG_CONFIG environment variable to the full
7251 path to pkg-config.
7253 Alternatively, you may set the environment variables GLIB_CFLAGS
7254 and GLIB_LIBS to avoid the need to call pkg-config.
7255 See the pkg-config man page for more details.
7257 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7258 See \`config.log' for more details." >&5
7259 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7260 is in your PATH or set the PKG_CONFIG environment variable to the full
7261 path to pkg-config.
7263 Alternatively, you may set the environment variables GLIB_CFLAGS
7264 and GLIB_LIBS to avoid the need to call pkg-config.
7265 See the pkg-config man page for more details.
7267 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7268 See \`config.log' for more details." >&2;}
7269 { (exit 1); exit 1; }; }
7270 else
7271 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7272 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7273 { $as_echo "$as_me:$LINENO: result: yes" >&5
7274 $as_echo "yes" >&6; }
7275 :
7276 fi
7277 else
7279 pkg_failed=no
7280 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7281 $as_echo_n "checking for GTK... " >&6; }
7283 if test -n "$PKG_CONFIG"; then
7284 if test -n "$GTK_CFLAGS"; then
7285 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7286 else
7287 if test -n "$PKG_CONFIG" && \
7288 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7289 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7290 ac_status=$?
7291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; then
7293 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7294 else
7295 pkg_failed=yes
7296 fi
7297 fi
7298 else
7299 pkg_failed=untried
7300 fi
7301 if test -n "$PKG_CONFIG"; then
7302 if test -n "$GTK_LIBS"; then
7303 pkg_cv_GTK_LIBS="$GTK_LIBS"
7304 else
7305 if test -n "$PKG_CONFIG" && \
7306 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7307 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7308 ac_status=$?
7309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; then
7311 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7312 else
7313 pkg_failed=yes
7314 fi
7315 fi
7316 else
7317 pkg_failed=untried
7318 fi
7322 if test $pkg_failed = yes; then
7324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7325 _pkg_short_errors_supported=yes
7326 else
7327 _pkg_short_errors_supported=no
7328 fi
7329 if test $_pkg_short_errors_supported = yes; then
7330 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7331 else
7332 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7333 fi
7334 # Put the nasty error message in config.log where it belongs
7335 echo "$GTK_PKG_ERRORS" >&5
7337 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7339 $GTK_PKG_ERRORS
7341 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7342 installed software in a non-standard prefix.
7344 Alternatively, you may set the environment variables GTK_CFLAGS
7345 and GTK_LIBS to avoid the need to call pkg-config.
7346 See the pkg-config man page for more details.
7347 " >&5
7348 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7350 $GTK_PKG_ERRORS
7352 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7353 installed software in a non-standard prefix.
7355 Alternatively, you may set the environment variables GTK_CFLAGS
7356 and GTK_LIBS to avoid the need to call pkg-config.
7357 See the pkg-config man page for more details.
7358 " >&2;}
7359 { (exit 1); exit 1; }; }
7360 elif test $pkg_failed = untried; then
7361 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7362 is in your PATH or set the PKG_CONFIG environment variable to the full
7363 path to pkg-config.
7365 Alternatively, you may set the environment variables GTK_CFLAGS
7366 and GTK_LIBS to avoid the need to call pkg-config.
7367 See the pkg-config man page for more details.
7369 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7370 See \`config.log' for more details." >&5
7371 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7372 is in your PATH or set the PKG_CONFIG environment variable to the full
7373 path to pkg-config.
7375 Alternatively, you may set the environment variables GTK_CFLAGS
7376 and GTK_LIBS to avoid the need to call pkg-config.
7377 See the pkg-config man page for more details.
7379 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7380 See \`config.log' for more details." >&2;}
7381 { (exit 1); exit 1; }; }
7382 else
7383 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7384 GTK_LIBS=$pkg_cv_GTK_LIBS
7385 { $as_echo "$as_me:$LINENO: result: yes" >&5
7386 $as_echo "yes" >&6; }
7388 HAVE_GTK='yes'
7390 cat >>confdefs.h <<\_ACEOF
7391 #define HAVE_GTK 1
7392 _ACEOF
7395 fi
7397 LIBS="$LIBS $GTK_LIBS"
7398 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7399 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7400 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7401 $as_echo_n "(cached) " >&6
7402 else
7403 cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h. */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7409 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7411 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7413 /* System header to define __stub macros and hopefully few prototypes,
7414 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7416 <limits.h> exists even on freestanding compilers. */
7418 #ifdef __STDC__
7419 # include <limits.h>
7420 #else
7421 # include <assert.h>
7422 #endif
7424 #undef gdk_x11_display_get_xdisplay
7426 /* Override any GCC internal prototype to avoid an error.
7427 Use char because int might match the return type of a GCC
7428 builtin and then its argument prototype would still apply. */
7429 #ifdef __cplusplus
7430 extern "C"
7431 #endif
7432 char gdk_x11_display_get_xdisplay ();
7433 /* The GNU C library defines this for functions which it implements
7434 to always fail with ENOSYS. Some functions are actually named
7435 something starting with __ and the normal name is an alias. */
7436 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7437 choke me
7438 #endif
7440 int
7441 main ()
7442 {
7443 return gdk_x11_display_get_xdisplay ();
7444 ;
7445 return 0;
7446 }
7447 _ACEOF
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (ac_try="$ac_link"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7455 $as_echo "$ac_try_echo") >&5
7456 (eval "$ac_link") 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } && {
7463 test -z "$ac_c_werror_flag" ||
7464 test ! -s conftest.err
7465 } && test -s conftest$ac_exeext && {
7466 test "$cross_compiling" = yes ||
7467 $as_test_x conftest$ac_exeext
7468 }; then
7469 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7470 else
7471 $as_echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 ac_cv_func_gdk_x11_display_get_xdisplay=no
7475 fi
7477 rm -rf conftest.dSYM
7478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7479 conftest$ac_exeext conftest.$ac_ext
7480 fi
7481 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7482 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7483 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7485 HAVE_GTK_X11='yes'
7487 cat >>confdefs.h <<\_ACEOF
7488 #define HAVE_GTK_X11 1
7489 _ACEOF
7491 fi
7493 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7494 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7495 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7497 else
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h. */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7506 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7508 /* System header to define __stub macros and hopefully few prototypes,
7509 which can conflict with char gdk_quartz_window_get_nsview (); below.
7510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7511 <limits.h> exists even on freestanding compilers. */
7513 #ifdef __STDC__
7514 # include <limits.h>
7515 #else
7516 # include <assert.h>
7517 #endif
7519 #undef gdk_quartz_window_get_nsview
7521 /* Override any GCC internal prototype to avoid an error.
7522 Use char because int might match the return type of a GCC
7523 builtin and then its argument prototype would still apply. */
7524 #ifdef __cplusplus
7525 extern "C"
7526 #endif
7527 char gdk_quartz_window_get_nsview ();
7528 /* The GNU C library defines this for functions which it implements
7529 to always fail with ENOSYS. Some functions are actually named
7530 something starting with __ and the normal name is an alias. */
7531 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7532 choke me
7533 #endif
7535 int
7536 main ()
7537 {
7538 return gdk_quartz_window_get_nsview ();
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (ac_try="$ac_link"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550 $as_echo "$ac_try_echo") >&5
7551 (eval "$ac_link") 2>conftest.er1
7552 ac_status=$?
7553 grep -v '^ *+' conftest.er1 >conftest.err
7554 rm -f conftest.er1
7555 cat conftest.err >&5
7556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && {
7558 test -z "$ac_c_werror_flag" ||
7559 test ! -s conftest.err
7560 } && test -s conftest$ac_exeext && {
7561 test "$cross_compiling" = yes ||
7562 $as_test_x conftest$ac_exeext
7563 }; then
7564 ac_cv_func_gdk_quartz_window_get_nsview=yes
7565 else
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 ac_cv_func_gdk_quartz_window_get_nsview=no
7570 fi
7572 rm -rf conftest.dSYM
7573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7574 conftest$ac_exeext conftest.$ac_ext
7575 fi
7576 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7577 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7578 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7580 HAVE_GTK_OSX='yes'
7582 cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_GTK_OSX 1
7584 _ACEOF
7586 fi
7588 fi
7592 if test "$HAVE_GTK" = 'yes'; then
7593 GUI_GTK_TRUE=
7594 GUI_GTK_FALSE='#'
7595 else
7596 GUI_GTK_TRUE='#'
7597 GUI_GTK_FALSE=
7598 fi
7601 if test "x$with_osmesa" != xno; then
7605 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7606 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7607 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7608 $as_echo_n "(cached) " >&6
7609 else
7610 ac_check_lib_save_LIBS=$LIBS
7611 LIBS="-lOSMesa $LIBS"
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7619 /* Override any GCC internal prototype to avoid an error.
7620 Use char because int might match the return type of a GCC
7621 builtin and then its argument prototype would still apply. */
7622 #ifdef __cplusplus
7623 extern "C"
7624 #endif
7625 char OSMesaCreateContext ();
7626 int
7627 main ()
7628 {
7629 return OSMesaCreateContext ();
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7636 case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639 esac
7640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7641 $as_echo "$ac_try_echo") >&5
7642 (eval "$ac_link") 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest$ac_exeext && {
7652 test "$cross_compiling" = yes ||
7653 $as_test_x conftest$ac_exeext
7654 }; then
7655 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7656 else
7657 $as_echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7661 fi
7663 rm -rf conftest.dSYM
7664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7665 conftest$ac_exeext conftest.$ac_ext
7666 LIBS=$ac_check_lib_save_LIBS
7667 fi
7668 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7669 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7670 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672 #define HAVE_LIBOSMESA 1
7673 _ACEOF
7675 LIBS="-lOSMesa $LIBS"
7677 else
7678 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7679 See \`config.log' for more details." >&5
7680 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7681 See \`config.log' for more details." >&2;}
7682 { (exit 1); exit 1; }; }
7683 fi
7685 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7686 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7687 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7688 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7689 $as_echo_n "(cached) " >&6
7690 fi
7691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7692 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7693 else
7694 # Is the header compilable?
7695 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7696 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 #include <GL/osmesa.h>
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7708 case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711 esac
7712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713 $as_echo "$ac_try_echo") >&5
7714 (eval "$ac_compile") 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest.$ac_objext; then
7724 ac_header_compiler=yes
7725 else
7726 $as_echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 ac_header_compiler=no
7730 fi
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7734 $as_echo "$ac_header_compiler" >&6; }
7736 # Is the header present?
7737 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7738 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7739 cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h. */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7745 #include <GL/osmesa.h>
7746 _ACEOF
7747 if { (ac_try="$ac_cpp conftest.$ac_ext"
7748 case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7753 $as_echo "$ac_try_echo") >&5
7754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } >/dev/null && {
7761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 }; then
7764 ac_header_preproc=yes
7765 else
7766 $as_echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_header_preproc=no
7770 fi
7772 rm -f conftest.err conftest.$ac_ext
7773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7774 $as_echo "$ac_header_preproc" >&6; }
7776 # So? What about this header?
7777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7778 yes:no: )
7779 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7780 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7781 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7782 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7783 ac_header_preproc=yes
7784 ;;
7785 no:yes:* )
7786 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7787 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7788 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7789 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7790 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7791 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7792 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7793 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7794 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7795 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7796 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7797 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7799 ;;
7800 esac
7801 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7802 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7803 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7804 $as_echo_n "(cached) " >&6
7805 else
7806 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7807 fi
7808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7809 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7811 fi
7812 if test $ac_cv_header_GL_osmesa_h = yes; then
7813 :
7814 else
7815 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7816 See \`config.log' for more details." >&5
7817 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7818 See \`config.log' for more details." >&2;}
7819 { (exit 1); exit 1; }; }
7820 fi
7823 HAVE_OSMESA='yes'
7824 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_OSMESA 1
7828 _ACEOF
7830 else
7833 if test "x$APPLE_BUILD" != 'xyes'; then
7835 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7836 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7837 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7838 $as_echo_n "(cached) " >&6
7839 else
7840 ac_check_lib_save_LIBS=$LIBS
7841 LIBS="-lGL $LIBS"
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7849 /* Override any GCC internal prototype to avoid an error.
7850 Use char because int might match the return type of a GCC
7851 builtin and then its argument prototype would still apply. */
7852 #ifdef __cplusplus
7853 extern "C"
7854 #endif
7855 char glVertex3f ();
7856 int
7857 main ()
7858 {
7859 return glVertex3f ();
7860 ;
7861 return 0;
7862 }
7863 _ACEOF
7864 rm -f conftest.$ac_objext conftest$ac_exeext
7865 if { (ac_try="$ac_link"
7866 case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869 esac
7870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7871 $as_echo "$ac_try_echo") >&5
7872 (eval "$ac_link") 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && {
7879 test -z "$ac_c_werror_flag" ||
7880 test ! -s conftest.err
7881 } && test -s conftest$ac_exeext && {
7882 test "$cross_compiling" = yes ||
7883 $as_test_x conftest$ac_exeext
7884 }; then
7885 ac_cv_lib_GL_glVertex3f=yes
7886 else
7887 $as_echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_lib_GL_glVertex3f=no
7891 fi
7893 rm -rf conftest.dSYM
7894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7895 conftest$ac_exeext conftest.$ac_ext
7896 LIBS=$ac_check_lib_save_LIBS
7897 fi
7898 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7899 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7900 if test $ac_cv_lib_GL_glVertex3f = yes; then
7901 cat >>confdefs.h <<_ACEOF
7902 #define HAVE_LIBGL 1
7903 _ACEOF
7905 LIBS="-lGL $LIBS"
7907 else
7909 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7910 See \`config.log' for more details." >&5
7911 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7912 See \`config.log' for more details." >&2;}
7913 { (exit 1); exit 1; }; }
7914 fi
7916 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7917 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7918 $as_echo_n "checking for GL/gl.h... " >&6; }
7919 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7921 fi
7922 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7923 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7924 else
7925 # Is the header compilable?
7926 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7927 $as_echo_n "checking GL/gl.h usability... " >&6; }
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7935 #include <GL/gl.h>
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (ac_try="$ac_compile"
7939 case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942 esac
7943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7944 $as_echo "$ac_try_echo") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_header_compiler=yes
7956 else
7957 $as_echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 ac_header_compiler=no
7961 fi
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7965 $as_echo "$ac_header_compiler" >&6; }
7967 # Is the header present?
7968 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7969 $as_echo_n "checking GL/gl.h presence... " >&6; }
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 #include <GL/gl.h>
7977 _ACEOF
7978 if { (ac_try="$ac_cpp conftest.$ac_ext"
7979 case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982 esac
7983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7984 $as_echo "$ac_try_echo") >&5
7985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } >/dev/null && {
7992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 }; then
7995 ac_header_preproc=yes
7996 else
7997 $as_echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_header_preproc=no
8001 fi
8003 rm -f conftest.err conftest.$ac_ext
8004 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8005 $as_echo "$ac_header_preproc" >&6; }
8007 # So? What about this header?
8008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8009 yes:no: )
8010 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8011 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8012 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
8013 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
8014 ac_header_preproc=yes
8015 ;;
8016 no:yes:* )
8017 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
8018 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
8019 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
8020 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
8021 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
8022 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
8023 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
8024 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8025 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
8026 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
8027 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
8028 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
8030 ;;
8031 esac
8032 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
8033 $as_echo_n "checking for GL/gl.h... " >&6; }
8034 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8035 $as_echo_n "(cached) " >&6
8036 else
8037 ac_cv_header_GL_gl_h=$ac_header_preproc
8038 fi
8039 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
8040 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
8042 fi
8043 if test $ac_cv_header_GL_gl_h = yes; then
8044 :
8045 else
8047 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8048 See \`config.log' for more details." >&5
8049 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8050 See \`config.log' for more details." >&2;}
8051 { (exit 1); exit 1; }; }
8052 fi
8055 else
8056 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
8057 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
8058 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
8059 $as_echo_n "(cached) " >&6
8060 else
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
8068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8069 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
8071 /* System header to define __stub macros and hopefully few prototypes,
8072 which can conflict with char NSOpenGLGetVersion (); below.
8073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8074 <limits.h> exists even on freestanding compilers. */
8076 #ifdef __STDC__
8077 # include <limits.h>
8078 #else
8079 # include <assert.h>
8080 #endif
8082 #undef NSOpenGLGetVersion
8084 /* Override any GCC internal prototype to avoid an error.
8085 Use char because int might match the return type of a GCC
8086 builtin and then its argument prototype would still apply. */
8087 #ifdef __cplusplus
8088 extern "C"
8089 #endif
8090 char NSOpenGLGetVersion ();
8091 /* The GNU C library defines this for functions which it implements
8092 to always fail with ENOSYS. Some functions are actually named
8093 something starting with __ and the normal name is an alias. */
8094 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
8095 choke me
8096 #endif
8098 int
8099 main ()
8100 {
8101 return NSOpenGLGetVersion ();
8102 ;
8103 return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (ac_try="$ac_link"
8108 case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111 esac
8112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8113 $as_echo "$ac_try_echo") >&5
8114 (eval "$ac_link") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest$ac_exeext && {
8124 test "$cross_compiling" = yes ||
8125 $as_test_x conftest$ac_exeext
8126 }; then
8127 ac_cv_func_NSOpenGLGetVersion=yes
8128 else
8129 $as_echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 ac_cv_func_NSOpenGLGetVersion=no
8133 fi
8135 rm -rf conftest.dSYM
8136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8137 conftest$ac_exeext conftest.$ac_ext
8138 fi
8139 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8140 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8141 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8143 HAVE_NSGL='yes'
8144 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
8146 cat >>confdefs.h <<\_ACEOF
8147 #define HAVE_NSGL 1
8148 _ACEOF
8150 fi
8152 fi
8154 if test "x$HAVE_GTK_X11" = "xyes"; then
8155 if test "x$APPLE_BUILD" = "xyes"; then
8156 LIBS="$LIBS -L/usr/X11/lib -lGL"
8157 fi
8158 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8159 $as_echo_n "checking for glXQueryVersion... " >&6; }
8160 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8161 $as_echo_n "(cached) " >&6
8162 else
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h. */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8171 #define glXQueryVersion innocuous_glXQueryVersion
8173 /* System header to define __stub macros and hopefully few prototypes,
8174 which can conflict with char glXQueryVersion (); below.
8175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8176 <limits.h> exists even on freestanding compilers. */
8178 #ifdef __STDC__
8179 # include <limits.h>
8180 #else
8181 # include <assert.h>
8182 #endif
8184 #undef glXQueryVersion
8186 /* Override any GCC internal prototype to avoid an error.
8187 Use char because int might match the return type of a GCC
8188 builtin and then its argument prototype would still apply. */
8189 #ifdef __cplusplus
8190 extern "C"
8191 #endif
8192 char glXQueryVersion ();
8193 /* The GNU C library defines this for functions which it implements
8194 to always fail with ENOSYS. Some functions are actually named
8195 something starting with __ and the normal name is an alias. */
8196 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8197 choke me
8198 #endif
8200 int
8201 main ()
8202 {
8203 return glXQueryVersion ();
8204 ;
8205 return 0;
8206 }
8207 _ACEOF
8208 rm -f conftest.$ac_objext conftest$ac_exeext
8209 if { (ac_try="$ac_link"
8210 case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213 esac
8214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8215 $as_echo "$ac_try_echo") >&5
8216 (eval "$ac_link") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest$ac_exeext && {
8226 test "$cross_compiling" = yes ||
8227 $as_test_x conftest$ac_exeext
8228 }; then
8229 ac_cv_func_glXQueryVersion=yes
8230 else
8231 $as_echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 ac_cv_func_glXQueryVersion=no
8235 fi
8237 rm -rf conftest.dSYM
8238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8239 conftest$ac_exeext conftest.$ac_ext
8240 fi
8241 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8242 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8243 if test $ac_cv_func_glXQueryVersion = yes; then
8245 HAVE_GLX='yes'
8246 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_GLX 1
8250 _ACEOF
8252 fi
8254 fi
8257 fi
8264 if test "x$HAVE_OSMESA" = "xyes"; then
8265 VIDEO_OSMESA_TRUE=
8266 VIDEO_OSMESA_FALSE='#'
8267 else
8268 VIDEO_OSMESA_TRUE='#'
8269 VIDEO_OSMESA_FALSE=
8270 fi
8274 if test "x$HAVE_GLX" = "xyes"; then
8275 VIDEO_GLX_TRUE=
8276 VIDEO_GLX_FALSE='#'
8277 else
8278 VIDEO_GLX_TRUE='#'
8279 VIDEO_GLX_FALSE=
8280 fi
8284 if test "x$HAVE_NSGL" = "xyes"; then
8285 VIDEO_NSGL_TRUE=
8286 VIDEO_NSGL_FALSE='#'
8287 else
8288 VIDEO_NSGL_TRUE='#'
8289 VIDEO_NSGL_FALSE=
8290 fi
8293 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8294 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8295 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8296 $as_echo_n "(cached) " >&6
8297 else
8298 cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h. */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8306 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8308 /* System header to define __stub macros and hopefully few prototypes,
8309 which can conflict with char glGenFramebuffersEXT (); below.
8310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8311 <limits.h> exists even on freestanding compilers. */
8313 #ifdef __STDC__
8314 # include <limits.h>
8315 #else
8316 # include <assert.h>
8317 #endif
8319 #undef glGenFramebuffersEXT
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char glGenFramebuffersEXT ();
8328 /* The GNU C library defines this for functions which it implements
8329 to always fail with ENOSYS. Some functions are actually named
8330 something starting with __ and the normal name is an alias. */
8331 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8332 choke me
8333 #endif
8335 int
8336 main ()
8337 {
8338 return glGenFramebuffersEXT ();
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (ac_try="$ac_link"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8350 $as_echo "$ac_try_echo") >&5
8351 (eval "$ac_link") 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } && {
8358 test -z "$ac_c_werror_flag" ||
8359 test ! -s conftest.err
8360 } && test -s conftest$ac_exeext && {
8361 test "$cross_compiling" = yes ||
8362 $as_test_x conftest$ac_exeext
8363 }; then
8364 ac_cv_func_glGenFramebuffersEXT=yes
8365 else
8366 $as_echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_func_glGenFramebuffersEXT=no
8370 fi
8372 rm -rf conftest.dSYM
8373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8374 conftest$ac_exeext conftest.$ac_ext
8375 fi
8376 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8377 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8378 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8380 cat >>confdefs.h <<\_ACEOF
8381 #define HAVE_OPENGL_FBO 1
8382 _ACEOF
8384 fi
8386 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8387 $as_echo_n "checking for glCreateShader... " >&6; }
8388 if test "${ac_cv_func_glCreateShader+set}" = set; then
8389 $as_echo_n "(cached) " >&6
8390 else
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8399 #define glCreateShader innocuous_glCreateShader
8401 /* System header to define __stub macros and hopefully few prototypes,
8402 which can conflict with char glCreateShader (); below.
8403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8404 <limits.h> exists even on freestanding compilers. */
8406 #ifdef __STDC__
8407 # include <limits.h>
8408 #else
8409 # include <assert.h>
8410 #endif
8412 #undef glCreateShader
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 char glCreateShader ();
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8425 choke me
8426 #endif
8428 int
8429 main ()
8430 {
8431 return glCreateShader ();
8432 ;
8433 return 0;
8434 }
8435 _ACEOF
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8438 case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441 esac
8442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8443 $as_echo "$ac_try_echo") >&5
8444 (eval "$ac_link") 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest$ac_exeext && {
8454 test "$cross_compiling" = yes ||
8455 $as_test_x conftest$ac_exeext
8456 }; then
8457 ac_cv_func_glCreateShader=yes
8458 else
8459 $as_echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_cv_func_glCreateShader=no
8463 fi
8465 rm -rf conftest.dSYM
8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467 conftest$ac_exeext conftest.$ac_ext
8468 fi
8469 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8470 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8471 if test $ac_cv_func_glCreateShader = yes; then
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_OPENGL_SHADER 1
8475 _ACEOF
8477 fi
8479 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8480 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8481 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8482 $as_echo_n "(cached) " >&6
8483 else
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h. */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8492 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8494 /* System header to define __stub macros and hopefully few prototypes,
8495 which can conflict with char glCreateShaderObjectARB (); below.
8496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8497 <limits.h> exists even on freestanding compilers. */
8499 #ifdef __STDC__
8500 # include <limits.h>
8501 #else
8502 # include <assert.h>
8503 #endif
8505 #undef glCreateShaderObjectARB
8507 /* Override any GCC internal prototype to avoid an error.
8508 Use char because int might match the return type of a GCC
8509 builtin and then its argument prototype would still apply. */
8510 #ifdef __cplusplus
8511 extern "C"
8512 #endif
8513 char glCreateShaderObjectARB ();
8514 /* The GNU C library defines this for functions which it implements
8515 to always fail with ENOSYS. Some functions are actually named
8516 something starting with __ and the normal name is an alias. */
8517 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8518 choke me
8519 #endif
8521 int
8522 main ()
8523 {
8524 return glCreateShaderObjectARB ();
8525 ;
8526 return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (ac_try="$ac_link"
8531 case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534 esac
8535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536 $as_echo "$ac_try_echo") >&5
8537 (eval "$ac_link") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest$ac_exeext && {
8547 test "$cross_compiling" = yes ||
8548 $as_test_x conftest$ac_exeext
8549 }; then
8550 ac_cv_func_glCreateShaderObjectARB=yes
8551 else
8552 $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_cv_func_glCreateShaderObjectARB=no
8556 fi
8558 rm -rf conftest.dSYM
8559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8560 conftest$ac_exeext conftest.$ac_ext
8561 fi
8562 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8563 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8564 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8566 cat >>confdefs.h <<\_ACEOF
8567 #define HAVE_OPENGL_SHADER_ARB 1
8568 _ACEOF
8570 fi
8572 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
8573 $as_echo_n "checking for glClampColorARB... " >&6; }
8574 if test "${ac_cv_func_glClampColorARB+set}" = set; then
8575 $as_echo_n "(cached) " >&6
8576 else
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h. */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
8584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8585 #define glClampColorARB innocuous_glClampColorARB
8587 /* System header to define __stub macros and hopefully few prototypes,
8588 which can conflict with char glClampColorARB (); below.
8589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8590 <limits.h> exists even on freestanding compilers. */
8592 #ifdef __STDC__
8593 # include <limits.h>
8594 #else
8595 # include <assert.h>
8596 #endif
8598 #undef glClampColorARB
8600 /* Override any GCC internal prototype to avoid an error.
8601 Use char because int might match the return type of a GCC
8602 builtin and then its argument prototype would still apply. */
8603 #ifdef __cplusplus
8604 extern "C"
8605 #endif
8606 char glClampColorARB ();
8607 /* The GNU C library defines this for functions which it implements
8608 to always fail with ENOSYS. Some functions are actually named
8609 something starting with __ and the normal name is an alias. */
8610 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
8611 choke me
8612 #endif
8614 int
8615 main ()
8616 {
8617 return glClampColorARB ();
8618 ;
8619 return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (ac_try="$ac_link"
8624 case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627 esac
8628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8629 $as_echo "$ac_try_echo") >&5
8630 (eval "$ac_link") 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest$ac_exeext && {
8640 test "$cross_compiling" = yes ||
8641 $as_test_x conftest$ac_exeext
8642 }; then
8643 ac_cv_func_glClampColorARB=yes
8644 else
8645 $as_echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8648 ac_cv_func_glClampColorARB=no
8649 fi
8651 rm -rf conftest.dSYM
8652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653 conftest$ac_exeext conftest.$ac_ext
8654 fi
8655 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
8656 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
8657 if test $ac_cv_func_glClampColorARB = yes; then
8659 cat >>confdefs.h <<\_ACEOF
8660 #define HAVE_OPENGL_CLAMP_COLOR 1
8661 _ACEOF
8663 fi
8668 if test "x$enable_translator" != "xno"; then
8669 case $host_cpu in
8670 i386|i486|i586|i686|x86_64)
8671 SH4_TRANSLATOR="x86"
8673 cat >>confdefs.h <<_ACEOF
8674 #define SH4_TRANSLATOR TARGET_X86
8675 _ACEOF
8676 ;;
8677 esac
8678 fi
8681 if test "$SH4_TRANSLATOR" = "x86"; then
8682 BUILD_SH4X86_TRUE=
8683 BUILD_SH4X86_FALSE='#'
8684 else
8685 BUILD_SH4X86_TRUE='#'
8686 BUILD_SH4X86_FALSE=
8687 fi
8690 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8691 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8692 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8693 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8694 $as_echo_n "(cached) " >&6
8695 fi
8696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8697 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8698 else
8699 # Is the header compilable?
8700 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
8701 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h. */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 $ac_includes_default
8709 #include <CoreAudio/CoreAudio.h>
8710 _ACEOF
8711 rm -f conftest.$ac_objext
8712 if { (ac_try="$ac_compile"
8713 case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8716 esac
8717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8718 $as_echo "$ac_try_echo") >&5
8719 (eval "$ac_compile") 2>conftest.er1
8720 ac_status=$?
8721 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1
8723 cat conftest.err >&5
8724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && {
8726 test -z "$ac_c_werror_flag" ||
8727 test ! -s conftest.err
8728 } && test -s conftest.$ac_objext; then
8729 ac_header_compiler=yes
8730 else
8731 $as_echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_header_compiler=no
8735 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8739 $as_echo "$ac_header_compiler" >&6; }
8741 # Is the header present?
8742 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
8743 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 #include <CoreAudio/CoreAudio.h>
8751 _ACEOF
8752 if { (ac_try="$ac_cpp conftest.$ac_ext"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } >/dev/null && {
8766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 }; then
8769 ac_header_preproc=yes
8770 else
8771 $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_header_preproc=no
8775 fi
8777 rm -f conftest.err conftest.$ac_ext
8778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8779 $as_echo "$ac_header_preproc" >&6; }
8781 # So? What about this header?
8782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8783 yes:no: )
8784 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8785 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8786 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
8787 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
8788 ac_header_preproc=yes
8789 ;;
8790 no:yes:* )
8791 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
8792 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
8793 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
8794 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
8795 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
8796 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
8797 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
8798 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8799 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
8800 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
8801 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
8802 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
8804 ;;
8805 esac
8806 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8807 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8808 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8809 $as_echo_n "(cached) " >&6
8810 else
8811 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
8812 fi
8813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8814 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8816 fi
8817 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
8819 HAVE_CORE_AUDIO=yes
8820 LIBS="$LIBS -framework CoreAudio"
8821 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
8823 cat >>confdefs.h <<\_ACEOF
8824 #define HAVE_CORE_AUDIO 1
8825 _ACEOF
8827 else
8828 true
8829 fi
8834 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
8835 AUDIO_OSX_TRUE=
8836 AUDIO_OSX_FALSE='#'
8837 else
8838 AUDIO_OSX_TRUE='#'
8839 AUDIO_OSX_FALSE=
8840 fi
8843 if test "x$with_pulse" != "xno"; then
8845 pkg_failed=no
8846 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8847 $as_echo_n "checking for PULSE... " >&6; }
8849 if test -n "$PKG_CONFIG"; then
8850 if test -n "$PULSE_CFLAGS"; then
8851 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8852 else
8853 if test -n "$PKG_CONFIG" && \
8854 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8855 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8856 ac_status=$?
8857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; then
8859 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8860 else
8861 pkg_failed=yes
8862 fi
8863 fi
8864 else
8865 pkg_failed=untried
8866 fi
8867 if test -n "$PKG_CONFIG"; then
8868 if test -n "$PULSE_LIBS"; then
8869 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8870 else
8871 if test -n "$PKG_CONFIG" && \
8872 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8873 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8874 ac_status=$?
8875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; then
8877 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8878 else
8879 pkg_failed=yes
8880 fi
8881 fi
8882 else
8883 pkg_failed=untried
8884 fi
8888 if test $pkg_failed = yes; then
8890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8891 _pkg_short_errors_supported=yes
8892 else
8893 _pkg_short_errors_supported=no
8894 fi
8895 if test $_pkg_short_errors_supported = yes; then
8896 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8897 else
8898 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8899 fi
8900 # Put the nasty error message in config.log where it belongs
8901 echo "$PULSE_PKG_ERRORS" >&5
8903 { $as_echo "$as_me:$LINENO: result: no" >&5
8904 $as_echo "no" >&6; }
8906 if test "x$with_pulse" = "xyes"; then
8907 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
8908 See \`config.log' for more details." >&5
8909 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
8910 See \`config.log' for more details." >&2;}
8911 { (exit 1); exit 1; }; }
8912 fi
8914 elif test $pkg_failed = untried; then
8916 if test "x$with_pulse" = "xyes"; then
8917 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
8918 See \`config.log' for more details." >&5
8919 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
8920 See \`config.log' for more details." >&2;}
8921 { (exit 1); exit 1; }; }
8922 fi
8924 else
8925 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8926 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8927 { $as_echo "$as_me:$LINENO: result: yes" >&5
8928 $as_echo "yes" >&6; }
8930 HAVE_PULSE='yes'
8931 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
8933 cat >>confdefs.h <<\_ACEOF
8934 #define HAVE_PULSE 1
8935 _ACEOF
8938 fi
8939 fi
8942 if test "$HAVE_PULSE" = 'yes' ; then
8943 AUDIO_PULSE_TRUE=
8944 AUDIO_PULSE_FALSE='#'
8945 else
8946 AUDIO_PULSE_TRUE='#'
8947 AUDIO_PULSE_FALSE=
8948 fi
8951 if test "x$with_esd" != "xno"; then
8953 pkg_failed=no
8954 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8955 $as_echo_n "checking for ESOUND... " >&6; }
8957 if test -n "$PKG_CONFIG"; then
8958 if test -n "$ESOUND_CFLAGS"; then
8959 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8960 else
8961 if test -n "$PKG_CONFIG" && \
8962 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8963 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8964 ac_status=$?
8965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; then
8967 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8968 else
8969 pkg_failed=yes
8970 fi
8971 fi
8972 else
8973 pkg_failed=untried
8974 fi
8975 if test -n "$PKG_CONFIG"; then
8976 if test -n "$ESOUND_LIBS"; then
8977 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8978 else
8979 if test -n "$PKG_CONFIG" && \
8980 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8981 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8982 ac_status=$?
8983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; then
8985 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
8986 else
8987 pkg_failed=yes
8988 fi
8989 fi
8990 else
8991 pkg_failed=untried
8992 fi
8996 if test $pkg_failed = yes; then
8998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8999 _pkg_short_errors_supported=yes
9000 else
9001 _pkg_short_errors_supported=no
9002 fi
9003 if test $_pkg_short_errors_supported = yes; then
9004 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
9005 else
9006 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
9007 fi
9008 # Put the nasty error message in config.log where it belongs
9009 echo "$ESOUND_PKG_ERRORS" >&5
9011 { $as_echo "$as_me:$LINENO: result: no" >&5
9012 $as_echo "no" >&6; }
9014 if test "x$with_esd" = "xyes"; then
9015 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
9016 See \`config.log' for more details." >&5
9017 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
9018 See \`config.log' for more details." >&2;}
9019 { (exit 1); exit 1; }; }
9020 fi
9022 elif test $pkg_failed = untried; then
9024 if test "x$with_esd" = "xyes"; then
9025 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
9026 See \`config.log' for more details." >&5
9027 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
9028 See \`config.log' for more details." >&2;}
9029 { (exit 1); exit 1; }; }
9030 fi
9032 else
9033 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
9034 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
9035 { $as_echo "$as_me:$LINENO: result: yes" >&5
9036 $as_echo "yes" >&6; }
9038 HAVE_ESOUND='yes'
9039 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
9041 cat >>confdefs.h <<\_ACEOF
9042 #define HAVE_ESOUND 1
9043 _ACEOF
9046 fi
9047 fi
9050 if test "$HAVE_ESOUND" = 'yes' ; then
9051 AUDIO_ESOUND_TRUE=
9052 AUDIO_ESOUND_FALSE='#'
9053 else
9054 AUDIO_ESOUND_TRUE='#'
9055 AUDIO_ESOUND_FALSE=
9056 fi
9060 pkg_failed=no
9061 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
9062 $as_echo_n "checking for ALSA... " >&6; }
9064 if test -n "$PKG_CONFIG"; then
9065 if test -n "$ALSA_CFLAGS"; then
9066 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
9067 else
9068 if test -n "$PKG_CONFIG" && \
9069 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9070 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9071 ac_status=$?
9072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; then
9074 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
9075 else
9076 pkg_failed=yes
9077 fi
9078 fi
9079 else
9080 pkg_failed=untried
9081 fi
9082 if test -n "$PKG_CONFIG"; then
9083 if test -n "$ALSA_LIBS"; then
9084 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
9085 else
9086 if test -n "$PKG_CONFIG" && \
9087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9088 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9089 ac_status=$?
9090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; then
9092 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
9093 else
9094 pkg_failed=yes
9095 fi
9096 fi
9097 else
9098 pkg_failed=untried
9099 fi
9103 if test $pkg_failed = yes; then
9105 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9106 _pkg_short_errors_supported=yes
9107 else
9108 _pkg_short_errors_supported=no
9109 fi
9110 if test $_pkg_short_errors_supported = yes; then
9111 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
9112 else
9113 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
9114 fi
9115 # Put the nasty error message in config.log where it belongs
9116 echo "$ALSA_PKG_ERRORS" >&5
9118 { $as_echo "$as_me:$LINENO: result: no" >&5
9119 $as_echo "no" >&6; }
9120 true
9121 elif test $pkg_failed = untried; then
9122 true
9123 else
9124 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
9125 ALSA_LIBS=$pkg_cv_ALSA_LIBS
9126 { $as_echo "$as_me:$LINENO: result: yes" >&5
9127 $as_echo "yes" >&6; }
9129 HAVE_ALSA='yes'
9130 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
9132 cat >>confdefs.h <<\_ACEOF
9133 #define HAVE_ALSA 1
9134 _ACEOF
9136 fi
9139 if test "$HAVE_ALSA" = 'yes' ; then
9140 AUDIO_ALSA_TRUE=
9141 AUDIO_ALSA_FALSE='#'
9142 else
9143 AUDIO_ALSA_TRUE='#'
9144 AUDIO_ALSA_FALSE=
9145 fi
9149 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9150 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9151 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9152 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9153 $as_echo_n "(cached) " >&6
9154 fi
9155 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9156 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9157 else
9158 # Is the header compilable?
9159 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
9160 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
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. */
9167 $ac_includes_default
9168 #include <linux/cdrom.h>
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_compile") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest.$ac_objext; then
9188 ac_header_compiler=yes
9189 else
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ac_header_compiler=no
9194 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9198 $as_echo "$ac_header_compiler" >&6; }
9200 # Is the header present?
9201 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
9202 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h. */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 #include <linux/cdrom.h>
9210 _ACEOF
9211 if { (ac_try="$ac_cpp conftest.$ac_ext"
9212 case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215 esac
9216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9217 $as_echo "$ac_try_echo") >&5
9218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } >/dev/null && {
9225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 }; then
9228 ac_header_preproc=yes
9229 else
9230 $as_echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_header_preproc=no
9234 fi
9236 rm -f conftest.err conftest.$ac_ext
9237 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9238 $as_echo "$ac_header_preproc" >&6; }
9240 # So? What about this header?
9241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9242 yes:no: )
9243 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
9244 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9245 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
9246 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
9247 ac_header_preproc=yes
9248 ;;
9249 no:yes:* )
9250 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
9251 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
9252 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
9253 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
9254 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
9255 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
9256 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
9257 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
9258 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
9259 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
9260 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
9261 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
9263 ;;
9264 esac
9265 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9266 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9267 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9268 $as_echo_n "(cached) " >&6
9269 else
9270 ac_cv_header_linux_cdrom_h=$ac_header_preproc
9271 fi
9272 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9273 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9275 fi
9276 if test $ac_cv_header_linux_cdrom_h = yes; then
9277 CDROM_DRIVER=linux
9278 else
9279 true
9280 fi
9283 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9284 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
9285 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
9286 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9287 $as_echo_n "(cached) " >&6
9288 fi
9289 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
9290 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
9291 else
9292 # Is the header compilable?
9293 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
9294 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
9295 cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h. */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9301 $ac_includes_default
9302 #include <IOKit/IOKitLib.h>
9303 _ACEOF
9304 rm -f conftest.$ac_objext
9305 if { (ac_try="$ac_compile"
9306 case "(($ac_try" in
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9309 esac
9310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311 $as_echo "$ac_try_echo") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9322 ac_header_compiler=yes
9323 else
9324 $as_echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_header_compiler=no
9328 fi
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 $as_echo "$ac_header_compiler" >&6; }
9334 # Is the header present?
9335 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
9336 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 #include <IOKit/IOKitLib.h>
9344 _ACEOF
9345 if { (ac_try="$ac_cpp conftest.$ac_ext"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9351 $as_echo "$ac_try_echo") >&5
9352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } >/dev/null && {
9359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 }; then
9362 ac_header_preproc=yes
9363 else
9364 $as_echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_header_preproc=no
9368 fi
9370 rm -f conftest.err conftest.$ac_ext
9371 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9372 $as_echo "$ac_header_preproc" >&6; }
9374 # So? What about this header?
9375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9376 yes:no: )
9377 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9378 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9379 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
9380 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
9381 ac_header_preproc=yes
9382 ;;
9383 no:yes:* )
9384 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
9385 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
9386 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
9387 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
9388 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
9389 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
9390 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
9391 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9392 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
9393 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
9394 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
9395 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
9397 ;;
9398 esac
9399 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
9400 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
9401 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9402 $as_echo_n "(cached) " >&6
9403 else
9404 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
9405 fi
9406 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
9407 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
9409 fi
9410 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
9412 CDROM_DRIVER=osx
9413 LIBS="$LIBS -framework IOKit"
9414 else
9415 true
9416 fi
9421 if test "x$CDROM_DRIVER" = "xlinux"; then
9422 CDROM_LINUX_TRUE=
9423 CDROM_LINUX_FALSE='#'
9424 else
9425 CDROM_LINUX_TRUE='#'
9426 CDROM_LINUX_FALSE=
9427 fi
9431 if test "x$CDROM_DRIVER" = "xosx"; then
9432 CDROM_OSX_TRUE=
9433 CDROM_OSX_FALSE='#'
9434 else
9435 CDROM_OSX_TRUE='#'
9436 CDROM_OSX_FALSE=
9437 fi
9441 if test "x$CDROM_DRIVER" = "x"; then
9442 CDROM_NONE_TRUE=
9443 CDROM_NONE_FALSE='#'
9444 else
9445 CDROM_NONE_TRUE='#'
9446 CDROM_NONE_FALSE=
9447 fi
9450 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9451 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9452 $as_echo_n "checking for linux/joystick.h... " >&6; }
9453 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9454 $as_echo_n "(cached) " >&6
9455 fi
9456 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9457 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9458 else
9459 # Is the header compilable?
9460 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
9461 $as_echo_n "checking linux/joystick.h usability... " >&6; }
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h. */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9468 $ac_includes_default
9469 #include <linux/joystick.h>
9470 _ACEOF
9471 rm -f conftest.$ac_objext
9472 if { (ac_try="$ac_compile"
9473 case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476 esac
9477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9478 $as_echo "$ac_try_echo") >&5
9479 (eval "$ac_compile") 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest.$ac_objext; then
9489 ac_header_compiler=yes
9490 else
9491 $as_echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_header_compiler=no
9495 fi
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9499 $as_echo "$ac_header_compiler" >&6; }
9501 # Is the header present?
9502 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
9503 $as_echo_n "checking linux/joystick.h presence... " >&6; }
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 #include <linux/joystick.h>
9511 _ACEOF
9512 if { (ac_try="$ac_cpp conftest.$ac_ext"
9513 case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9518 $as_echo "$ac_try_echo") >&5
9519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } >/dev/null && {
9526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 }; then
9529 ac_header_preproc=yes
9530 else
9531 $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_header_preproc=no
9535 fi
9537 rm -f conftest.err conftest.$ac_ext
9538 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9539 $as_echo "$ac_header_preproc" >&6; }
9541 # So? What about this header?
9542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9543 yes:no: )
9544 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
9545 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9546 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
9547 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
9548 ac_header_preproc=yes
9549 ;;
9550 no:yes:* )
9551 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
9552 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
9553 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
9554 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
9555 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
9556 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
9557 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
9558 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
9559 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
9560 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
9561 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
9562 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9564 ;;
9565 esac
9566 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9567 $as_echo_n "checking for linux/joystick.h... " >&6; }
9568 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9569 $as_echo_n "(cached) " >&6
9570 else
9571 ac_cv_header_linux_joystick_h=$ac_header_preproc
9572 fi
9573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9574 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9576 fi
9577 if test $ac_cv_header_linux_joystick_h = yes; then
9579 HAVE_LINUX_JOYSTICK_H=yes
9581 cat >>confdefs.h <<\_ACEOF
9582 #define HAVE_LINUX_JOYSTICK 1
9583 _ACEOF
9585 else
9586 echo "Linux Joystick support not found, building without it."
9587 fi
9592 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9593 JOY_LINUX_TRUE=
9594 JOY_LINUX_FALSE='#'
9595 else
9596 JOY_LINUX_TRUE='#'
9597 JOY_LINUX_FALSE=
9598 fi
9601 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9602 set dummy sh-elf-gcc; ac_word=$2
9603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9604 $as_echo_n "checking for $ac_word... " >&6; }
9605 if test "${ac_cv_path_SHCC+set}" = set; then
9606 $as_echo_n "(cached) " >&6
9607 else
9608 case $SHCC in
9609 [\\/]* | ?:[\\/]*)
9610 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9611 ;;
9612 *)
9613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614 for as_dir in $PATH
9615 do
9616 IFS=$as_save_IFS
9617 test -z "$as_dir" && as_dir=.
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9620 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9622 break 2
9623 fi
9624 done
9625 done
9626 IFS=$as_save_IFS
9628 ;;
9629 esac
9630 fi
9631 SHCC=$ac_cv_path_SHCC
9632 if test -n "$SHCC"; then
9633 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9634 $as_echo "$SHCC" >&6; }
9635 else
9636 { $as_echo "$as_me:$LINENO: result: no" >&5
9637 $as_echo "no" >&6; }
9638 fi
9641 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9642 set dummy sh-elf-ld; ac_word=$2
9643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_path_SHLD+set}" = set; then
9646 $as_echo_n "(cached) " >&6
9647 else
9648 case $SHLD in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9651 ;;
9652 *)
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9663 fi
9664 done
9665 done
9666 IFS=$as_save_IFS
9668 ;;
9669 esac
9670 fi
9671 SHLD=$ac_cv_path_SHLD
9672 if test -n "$SHLD"; then
9673 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9674 $as_echo "$SHLD" >&6; }
9675 else
9676 { $as_echo "$as_me:$LINENO: result: no" >&5
9677 $as_echo "no" >&6; }
9678 fi
9681 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9682 set dummy sh-elf-objcopy; ac_word=$2
9683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9686 $as_echo_n "(cached) " >&6
9687 else
9688 case $SHOBJCOPY in
9689 [\\/]* | ?:[\\/]*)
9690 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9691 ;;
9692 *)
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9695 do
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9700 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704 done
9705 done
9706 IFS=$as_save_IFS
9708 ;;
9709 esac
9710 fi
9711 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9712 if test -n "$SHOBJCOPY"; then
9713 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9714 $as_echo "$SHOBJCOPY" >&6; }
9715 else
9716 { $as_echo "$as_me:$LINENO: result: no" >&5
9717 $as_echo "no" >&6; }
9718 fi
9721 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9722 set dummy arm-elf-gcc; ac_word=$2
9723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if test "${ac_cv_path_ARMCC+set}" = set; then
9726 $as_echo_n "(cached) " >&6
9727 else
9728 case $ARMCC in
9729 [\\/]* | ?:[\\/]*)
9730 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9731 ;;
9732 *)
9733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734 for as_dir in $PATH
9735 do
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9740 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744 done
9745 done
9746 IFS=$as_save_IFS
9748 ;;
9749 esac
9750 fi
9751 ARMCC=$ac_cv_path_ARMCC
9752 if test -n "$ARMCC"; then
9753 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9754 $as_echo "$ARMCC" >&6; }
9755 else
9756 { $as_echo "$as_me:$LINENO: result: no" >&5
9757 $as_echo "no" >&6; }
9758 fi
9761 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9762 set dummy arm-elf-ld; ac_word=$2
9763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if test "${ac_cv_path_ARMLD+set}" = set; then
9766 $as_echo_n "(cached) " >&6
9767 else
9768 case $ARMLD in
9769 [\\/]* | ?:[\\/]*)
9770 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9771 ;;
9772 *)
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9775 do
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9780 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9783 fi
9784 done
9785 done
9786 IFS=$as_save_IFS
9788 ;;
9789 esac
9790 fi
9791 ARMLD=$ac_cv_path_ARMLD
9792 if test -n "$ARMLD"; then
9793 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9794 $as_echo "$ARMLD" >&6; }
9795 else
9796 { $as_echo "$as_me:$LINENO: result: no" >&5
9797 $as_echo "no" >&6; }
9798 fi
9801 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9802 set dummy arm-elf-objcopy; ac_word=$2
9803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9806 $as_echo_n "(cached) " >&6
9807 else
9808 case $ARMOBJCOPY in
9809 [\\/]* | ?:[\\/]*)
9810 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9811 ;;
9812 *)
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9820 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9821 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9823 fi
9824 done
9825 done
9826 IFS=$as_save_IFS
9828 ;;
9829 esac
9830 fi
9831 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9832 if test -n "$ARMOBJCOPY"; then
9833 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9834 $as_echo "$ARMOBJCOPY" >&6; }
9835 else
9836 { $as_echo "$as_me:$LINENO: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9842 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9843 BUILD_SH="no"
9844 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9845 else
9846 BUILD_SH="yes"
9847 fi
9848 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9849 BUILD_ARM="no"
9850 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9851 else
9852 BUILD_ARM="yes"
9853 fi
9856 if test "$BUILD_SH" = "yes"; then
9857 BUILD_SYSTEST_TRUE=
9858 BUILD_SYSTEST_FALSE='#'
9859 else
9860 BUILD_SYSTEST_TRUE='#'
9861 BUILD_SYSTEST_FALSE=
9862 fi
9866 if test "$BUILD_ARM" = "yes"; then
9867 BUILD_ARMTEST_TRUE=
9868 BUILD_ARMTEST_FALSE='#'
9869 else
9870 BUILD_ARMTEST_TRUE='#'
9871 BUILD_ARMTEST_FALSE=
9872 fi
9876 GETTEXT_PACKAGE=lxdream
9879 cat >>confdefs.h <<_ACEOF
9880 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9881 _ACEOF
9884 ALL_LINGUAS="de es it pt_BR"
9887 for ac_header in locale.h
9888 do
9889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9892 $as_echo_n "checking for $ac_header... " >&6; }
9893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9894 $as_echo_n "(cached) " >&6
9895 fi
9896 ac_res=`eval 'as_val=${'$as_ac_Header'}
9897 $as_echo "$as_val"'`
9898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9899 $as_echo "$ac_res" >&6; }
9900 else
9901 # Is the header compilable?
9902 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9903 $as_echo_n "checking $ac_header usability... " >&6; }
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h. */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9910 $ac_includes_default
9911 #include <$ac_header>
9912 _ACEOF
9913 rm -f conftest.$ac_objext
9914 if { (ac_try="$ac_compile"
9915 case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918 esac
9919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9920 $as_echo "$ac_try_echo") >&5
9921 (eval "$ac_compile") 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 } && test -s conftest.$ac_objext; then
9931 ac_header_compiler=yes
9932 else
9933 $as_echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9936 ac_header_compiler=no
9937 fi
9939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9941 $as_echo "$ac_header_compiler" >&6; }
9943 # Is the header present?
9944 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9945 $as_echo_n "checking $ac_header presence... " >&6; }
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 #include <$ac_header>
9953 _ACEOF
9954 if { (ac_try="$ac_cpp conftest.$ac_ext"
9955 case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958 esac
9959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9960 $as_echo "$ac_try_echo") >&5
9961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } >/dev/null && {
9968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9969 test ! -s conftest.err
9970 }; then
9971 ac_header_preproc=yes
9972 else
9973 $as_echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 ac_header_preproc=no
9977 fi
9979 rm -f conftest.err conftest.$ac_ext
9980 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9981 $as_echo "$ac_header_preproc" >&6; }
9983 # So? What about this header?
9984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9985 yes:no: )
9986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9987 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9990 ac_header_preproc=yes
9991 ;;
9992 no:yes:* )
9993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9994 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9996 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9998 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10000 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10004 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10006 ;;
10007 esac
10008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10009 $as_echo_n "checking for $ac_header... " >&6; }
10010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10011 $as_echo_n "(cached) " >&6
10012 else
10013 eval "$as_ac_Header=\$ac_header_preproc"
10014 fi
10015 ac_res=`eval 'as_val=${'$as_ac_Header'}
10016 $as_echo "$as_val"'`
10017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10018 $as_echo "$ac_res" >&6; }
10020 fi
10021 if test `eval 'as_val=${'$as_ac_Header'}
10022 $as_echo "$as_val"'` = yes; then
10023 cat >>confdefs.h <<_ACEOF
10024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10025 _ACEOF
10027 fi
10029 done
10031 if test $ac_cv_header_locale_h = yes; then
10032 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10033 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10034 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10035 $as_echo_n "(cached) " >&6
10036 else
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 #include <locale.h>
10044 int
10045 main ()
10046 {
10047 return LC_MESSAGES
10048 ;
10049 return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057 esac
10058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10059 $as_echo "$ac_try_echo") >&5
10060 (eval "$ac_link") 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } && {
10067 test -z "$ac_c_werror_flag" ||
10068 test ! -s conftest.err
10069 } && test -s conftest$ac_exeext && {
10070 test "$cross_compiling" = yes ||
10071 $as_test_x conftest$ac_exeext
10072 }; then
10073 am_cv_val_LC_MESSAGES=yes
10074 else
10075 $as_echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 am_cv_val_LC_MESSAGES=no
10079 fi
10081 rm -rf conftest.dSYM
10082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10083 conftest$ac_exeext conftest.$ac_ext
10084 fi
10085 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10086 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10087 if test $am_cv_val_LC_MESSAGES = yes; then
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_LC_MESSAGES 1
10091 _ACEOF
10093 fi
10094 fi
10095 USE_NLS=yes
10098 gt_cv_have_gettext=no
10100 CATOBJEXT=NONE
10101 XGETTEXT=:
10102 INTLLIBS=
10104 if test "${ac_cv_header_libintl_h+set}" = set; then
10105 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10106 $as_echo_n "checking for libintl.h... " >&6; }
10107 if test "${ac_cv_header_libintl_h+set}" = set; then
10108 $as_echo_n "(cached) " >&6
10109 fi
10110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10111 $as_echo "$ac_cv_header_libintl_h" >&6; }
10112 else
10113 # Is the header compilable?
10114 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
10115 $as_echo_n "checking libintl.h usability... " >&6; }
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 #include <libintl.h>
10124 _ACEOF
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130 esac
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest.$ac_objext; then
10143 ac_header_compiler=yes
10144 else
10145 $as_echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_header_compiler=no
10149 fi
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10153 $as_echo "$ac_header_compiler" >&6; }
10155 # Is the header present?
10156 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
10157 $as_echo_n "checking libintl.h presence... " >&6; }
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 #include <libintl.h>
10165 _ACEOF
10166 if { (ac_try="$ac_cpp conftest.$ac_ext"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172 $as_echo "$ac_try_echo") >&5
10173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } >/dev/null && {
10180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 }; then
10183 ac_header_preproc=yes
10184 else
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_header_preproc=no
10189 fi
10191 rm -f conftest.err conftest.$ac_ext
10192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10193 $as_echo "$ac_header_preproc" >&6; }
10195 # So? What about this header?
10196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10197 yes:no: )
10198 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10199 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10200 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
10201 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
10202 ac_header_preproc=yes
10203 ;;
10204 no:yes:* )
10205 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
10206 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
10207 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
10208 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
10209 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
10210 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
10211 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
10212 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10213 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10214 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10215 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
10216 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
10218 ;;
10219 esac
10220 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10221 $as_echo_n "checking for libintl.h... " >&6; }
10222 if test "${ac_cv_header_libintl_h+set}" = set; then
10223 $as_echo_n "(cached) " >&6
10224 else
10225 ac_cv_header_libintl_h=$ac_header_preproc
10226 fi
10227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10228 $as_echo "$ac_cv_header_libintl_h" >&6; }
10230 fi
10231 if test $ac_cv_header_libintl_h = yes; then
10232 gt_cv_func_dgettext_libintl="no"
10233 libintl_extra_libs=""
10235 #
10236 # First check in libc
10237 #
10238 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
10239 $as_echo_n "checking for ngettext in libc... " >&6; }
10240 if test "${gt_cv_func_ngettext_libc+set}" = set; then
10241 $as_echo_n "(cached) " >&6
10242 else
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10250 #include <libintl.h>
10252 int
10253 main ()
10254 {
10255 return !ngettext ("","", 1)
10256 ;
10257 return 0;
10258 }
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10267 $as_echo "$ac_try_echo") >&5
10268 (eval "$ac_link") 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest$ac_exeext && {
10278 test "$cross_compiling" = yes ||
10279 $as_test_x conftest$ac_exeext
10280 }; then
10281 gt_cv_func_ngettext_libc=yes
10282 else
10283 $as_echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 gt_cv_func_ngettext_libc=no
10287 fi
10289 rm -rf conftest.dSYM
10290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10291 conftest$ac_exeext conftest.$ac_ext
10293 fi
10294 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
10295 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
10297 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10298 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
10299 $as_echo_n "checking for dgettext in libc... " >&6; }
10300 if test "${gt_cv_func_dgettext_libc+set}" = set; then
10301 $as_echo_n "(cached) " >&6
10302 else
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10310 #include <libintl.h>
10312 int
10313 main ()
10314 {
10315 return !dgettext ("","")
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (ac_try="$ac_link"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325 esac
10326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10327 $as_echo "$ac_try_echo") >&5
10328 (eval "$ac_link") 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest$ac_exeext && {
10338 test "$cross_compiling" = yes ||
10339 $as_test_x conftest$ac_exeext
10340 }; then
10341 gt_cv_func_dgettext_libc=yes
10342 else
10343 $as_echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 gt_cv_func_dgettext_libc=no
10347 fi
10349 rm -rf conftest.dSYM
10350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10351 conftest$ac_exeext conftest.$ac_ext
10353 fi
10354 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10355 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
10356 fi
10358 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10360 for ac_func in bind_textdomain_codeset
10361 do
10362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10364 $as_echo_n "checking for $ac_func... " >&6; }
10365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10366 $as_echo_n "(cached) " >&6
10367 else
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. */
10374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10376 #define $ac_func innocuous_$ac_func
10378 /* System header to define __stub macros and hopefully few prototypes,
10379 which can conflict with char $ac_func (); below.
10380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10381 <limits.h> exists even on freestanding compilers. */
10383 #ifdef __STDC__
10384 # include <limits.h>
10385 #else
10386 # include <assert.h>
10387 #endif
10389 #undef $ac_func
10391 /* Override any GCC internal prototype to avoid an error.
10392 Use char because int might match the return type of a GCC
10393 builtin and then its argument prototype would still apply. */
10394 #ifdef __cplusplus
10395 extern "C"
10396 #endif
10397 char $ac_func ();
10398 /* The GNU C library defines this for functions which it implements
10399 to always fail with ENOSYS. Some functions are actually named
10400 something starting with __ and the normal name is an alias. */
10401 #if defined __stub_$ac_func || defined __stub___$ac_func
10402 choke me
10403 #endif
10405 int
10406 main ()
10407 {
10408 return $ac_func ();
10409 ;
10410 return 0;
10411 }
10412 _ACEOF
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (ac_try="$ac_link"
10415 case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418 esac
10419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10420 $as_echo "$ac_try_echo") >&5
10421 (eval "$ac_link") 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && {
10428 test -z "$ac_c_werror_flag" ||
10429 test ! -s conftest.err
10430 } && test -s conftest$ac_exeext && {
10431 test "$cross_compiling" = yes ||
10432 $as_test_x conftest$ac_exeext
10433 }; then
10434 eval "$as_ac_var=yes"
10435 else
10436 $as_echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 eval "$as_ac_var=no"
10440 fi
10442 rm -rf conftest.dSYM
10443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10444 conftest$ac_exeext conftest.$ac_ext
10445 fi
10446 ac_res=`eval 'as_val=${'$as_ac_var'}
10447 $as_echo "$as_val"'`
10448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10449 $as_echo "$ac_res" >&6; }
10450 if test `eval 'as_val=${'$as_ac_var'}
10451 $as_echo "$as_val"'` = yes; then
10452 cat >>confdefs.h <<_ACEOF
10453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10454 _ACEOF
10456 fi
10457 done
10459 fi
10461 #
10462 # If we don't have everything we want, check in libintl
10463 #
10464 if test "$gt_cv_func_dgettext_libc" != "yes" \
10465 || test "$gt_cv_func_ngettext_libc" != "yes" \
10466 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10468 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10469 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
10470 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10471 $as_echo_n "(cached) " >&6
10472 else
10473 ac_check_lib_save_LIBS=$LIBS
10474 LIBS="-lintl $LIBS"
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10482 /* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
10485 #ifdef __cplusplus
10486 extern "C"
10487 #endif
10488 char bindtextdomain ();
10489 int
10490 main ()
10491 {
10492 return bindtextdomain ();
10493 ;
10494 return 0;
10495 }
10496 _ACEOF
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10504 $as_echo "$ac_try_echo") >&5
10505 (eval "$ac_link") 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest$ac_exeext && {
10515 test "$cross_compiling" = yes ||
10516 $as_test_x conftest$ac_exeext
10517 }; then
10518 ac_cv_lib_intl_bindtextdomain=yes
10519 else
10520 $as_echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10523 ac_cv_lib_intl_bindtextdomain=no
10524 fi
10526 rm -rf conftest.dSYM
10527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10530 fi
10531 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10532 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10533 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10534 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10535 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10536 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10537 $as_echo_n "(cached) " >&6
10538 else
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-lintl $LIBS"
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10548 /* Override any GCC internal prototype to avoid an error.
10549 Use char because int might match the return type of a GCC
10550 builtin and then its argument prototype would still apply. */
10551 #ifdef __cplusplus
10552 extern "C"
10553 #endif
10554 char ngettext ();
10555 int
10556 main ()
10557 {
10558 return ngettext ();
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568 esac
10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570 $as_echo "$ac_try_echo") >&5
10571 (eval "$ac_link") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext && {
10581 test "$cross_compiling" = yes ||
10582 $as_test_x conftest$ac_exeext
10583 }; then
10584 ac_cv_lib_intl_ngettext=yes
10585 else
10586 $as_echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 ac_cv_lib_intl_ngettext=no
10590 fi
10592 rm -rf conftest.dSYM
10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10594 conftest$ac_exeext conftest.$ac_ext
10595 LIBS=$ac_check_lib_save_LIBS
10596 fi
10597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10598 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10599 if test $ac_cv_lib_intl_ngettext = yes; then
10600 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10601 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10602 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lintl $LIBS"
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10614 /* Override any GCC internal prototype to avoid an error.
10615 Use char because int might match the return type of a GCC
10616 builtin and then its argument prototype would still apply. */
10617 #ifdef __cplusplus
10618 extern "C"
10619 #endif
10620 char dgettext ();
10621 int
10622 main ()
10623 {
10624 return dgettext ();
10625 ;
10626 return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634 esac
10635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10636 $as_echo "$ac_try_echo") >&5
10637 (eval "$ac_link") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext && {
10647 test "$cross_compiling" = yes ||
10648 $as_test_x conftest$ac_exeext
10649 }; then
10650 ac_cv_lib_intl_dgettext=yes
10651 else
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_cv_lib_intl_dgettext=no
10656 fi
10658 rm -rf conftest.dSYM
10659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10662 fi
10663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10664 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10665 if test $ac_cv_lib_intl_dgettext = yes; then
10666 gt_cv_func_dgettext_libintl=yes
10667 fi
10669 fi
10671 fi
10674 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10675 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10676 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10677 { $as_echo "$as_me:$LINENO: result: " >&5
10678 $as_echo "" >&6; }
10679 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10680 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10681 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10682 $as_echo_n "(cached) " >&6
10683 else
10684 ac_check_lib_save_LIBS=$LIBS
10685 LIBS="-lintl -liconv $LIBS"
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10693 /* Override any GCC internal prototype to avoid an error.
10694 Use char because int might match the return type of a GCC
10695 builtin and then its argument prototype would still apply. */
10696 #ifdef __cplusplus
10697 extern "C"
10698 #endif
10699 char ngettext ();
10700 int
10701 main ()
10702 {
10703 return ngettext ();
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext conftest$ac_exeext
10709 if { (ac_try="$ac_link"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713 esac
10714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715 $as_echo "$ac_try_echo") >&5
10716 (eval "$ac_link") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest$ac_exeext && {
10726 test "$cross_compiling" = yes ||
10727 $as_test_x conftest$ac_exeext
10728 }; then
10729 ac_cv_lib_intl_ngettext=yes
10730 else
10731 $as_echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_lib_intl_ngettext=no
10735 fi
10737 rm -rf conftest.dSYM
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10741 fi
10742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10743 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10744 if test $ac_cv_lib_intl_ngettext = yes; then
10745 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10746 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10747 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10748 $as_echo_n "(cached) " >&6
10749 else
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-lintl -liconv $LIBS"
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h. */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char dcgettext ();
10766 int
10767 main ()
10768 {
10769 return dcgettext ();
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779 esac
10780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10781 $as_echo "$ac_try_echo") >&5
10782 (eval "$ac_link") 2>conftest.er1
10783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest$ac_exeext && {
10792 test "$cross_compiling" = yes ||
10793 $as_test_x conftest$ac_exeext
10794 }; then
10795 ac_cv_lib_intl_dcgettext=yes
10796 else
10797 $as_echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10800 ac_cv_lib_intl_dcgettext=no
10801 fi
10803 rm -rf conftest.dSYM
10804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10805 conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10807 fi
10808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10809 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10810 if test $ac_cv_lib_intl_dcgettext = yes; then
10811 gt_cv_func_dgettext_libintl=yes
10812 libintl_extra_libs=-liconv
10813 else
10814 :
10815 fi
10817 else
10818 :
10819 fi
10821 fi
10823 #
10824 # If we found libintl, then check in it for bind_textdomain_codeset();
10825 # we'll prefer libc if neither have bind_textdomain_codeset(),
10826 # and both have dgettext and ngettext
10827 #
10828 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10829 glib_save_LIBS="$LIBS"
10830 LIBS="$LIBS -lintl $libintl_extra_libs"
10831 unset ac_cv_func_bind_textdomain_codeset
10833 for ac_func in bind_textdomain_codeset
10834 do
10835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10837 $as_echo_n "checking for $ac_func... " >&6; }
10838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10839 $as_echo_n "(cached) " >&6
10840 else
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h. */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10849 #define $ac_func innocuous_$ac_func
10851 /* System header to define __stub macros and hopefully few prototypes,
10852 which can conflict with char $ac_func (); below.
10853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10854 <limits.h> exists even on freestanding compilers. */
10856 #ifdef __STDC__
10857 # include <limits.h>
10858 #else
10859 # include <assert.h>
10860 #endif
10862 #undef $ac_func
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char $ac_func ();
10871 /* The GNU C library defines this for functions which it implements
10872 to always fail with ENOSYS. Some functions are actually named
10873 something starting with __ and the normal name is an alias. */
10874 #if defined __stub_$ac_func || defined __stub___$ac_func
10875 choke me
10876 #endif
10878 int
10879 main ()
10880 {
10881 return $ac_func ();
10882 ;
10883 return 0;
10884 }
10885 _ACEOF
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891 esac
10892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10893 $as_echo "$ac_try_echo") >&5
10894 (eval "$ac_link") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest$ac_exeext && {
10904 test "$cross_compiling" = yes ||
10905 $as_test_x conftest$ac_exeext
10906 }; then
10907 eval "$as_ac_var=yes"
10908 else
10909 $as_echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10912 eval "$as_ac_var=no"
10913 fi
10915 rm -rf conftest.dSYM
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918 fi
10919 ac_res=`eval 'as_val=${'$as_ac_var'}
10920 $as_echo "$as_val"'`
10921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10922 $as_echo "$ac_res" >&6; }
10923 if test `eval 'as_val=${'$as_ac_var'}
10924 $as_echo "$as_val"'` = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927 _ACEOF
10929 fi
10930 done
10932 LIBS="$glib_save_LIBS"
10934 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10935 gt_cv_func_dgettext_libc=no
10936 else
10937 if test "$gt_cv_func_dgettext_libc" = "yes" \
10938 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10939 gt_cv_func_dgettext_libintl=no
10940 fi
10941 fi
10942 fi
10943 fi
10945 if test "$gt_cv_func_dgettext_libc" = "yes" \
10946 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10947 gt_cv_have_gettext=yes
10948 fi
10950 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10951 INTLLIBS="-lintl $libintl_extra_libs"
10952 fi
10954 if test "$gt_cv_have_gettext" = "yes"; then
10956 cat >>confdefs.h <<\_ACEOF
10957 #define HAVE_GETTEXT 1
10958 _ACEOF
10960 # Extract the first word of "msgfmt", so it can be a program name with args.
10961 set dummy msgfmt; ac_word=$2
10962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if test "${ac_cv_path_MSGFMT+set}" = set; then
10965 $as_echo_n "(cached) " >&6
10966 else
10967 case "$MSGFMT" in
10968 /*)
10969 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10970 ;;
10971 *)
10972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10973 for ac_dir in $PATH; do
10974 test -z "$ac_dir" && ac_dir=.
10975 if test -f $ac_dir/$ac_word; then
10976 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10977 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10978 break
10979 fi
10980 fi
10981 done
10982 IFS="$ac_save_ifs"
10983 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10984 ;;
10985 esac
10986 fi
10987 MSGFMT="$ac_cv_path_MSGFMT"
10988 if test "$MSGFMT" != "no"; then
10989 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10990 $as_echo "$MSGFMT" >&6; }
10991 else
10992 { $as_echo "$as_me:$LINENO: result: no" >&5
10993 $as_echo "no" >&6; }
10994 fi
10995 if test "$MSGFMT" != "no"; then
10996 glib_save_LIBS="$LIBS"
10997 LIBS="$LIBS $INTLLIBS"
10999 for ac_func in dcgettext
11000 do
11001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11002 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11003 $as_echo_n "checking for $ac_func... " >&6; }
11004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11005 $as_echo_n "(cached) " >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11015 #define $ac_func innocuous_$ac_func
11017 /* System header to define __stub macros and hopefully few prototypes,
11018 which can conflict with char $ac_func (); below.
11019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020 <limits.h> exists even on freestanding compilers. */
11022 #ifdef __STDC__
11023 # include <limits.h>
11024 #else
11025 # include <assert.h>
11026 #endif
11028 #undef $ac_func
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11033 #ifdef __cplusplus
11034 extern "C"
11035 #endif
11036 char $ac_func ();
11037 /* The GNU C library defines this for functions which it implements
11038 to always fail with ENOSYS. Some functions are actually named
11039 something starting with __ and the normal name is an alias. */
11040 #if defined __stub_$ac_func || defined __stub___$ac_func
11041 choke me
11042 #endif
11044 int
11045 main ()
11046 {
11047 return $ac_func ();
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (ac_try="$ac_link"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11059 $as_echo "$ac_try_echo") >&5
11060 (eval "$ac_link") 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_c_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest$ac_exeext && {
11070 test "$cross_compiling" = yes ||
11071 $as_test_x conftest$ac_exeext
11072 }; then
11073 eval "$as_ac_var=yes"
11074 else
11075 $as_echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 eval "$as_ac_var=no"
11079 fi
11081 rm -rf conftest.dSYM
11082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11083 conftest$ac_exeext conftest.$ac_ext
11084 fi
11085 ac_res=`eval 'as_val=${'$as_ac_var'}
11086 $as_echo "$as_val"'`
11087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11088 $as_echo "$ac_res" >&6; }
11089 if test `eval 'as_val=${'$as_ac_var'}
11090 $as_echo "$as_val"'` = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11093 _ACEOF
11095 fi
11096 done
11098 MSGFMT_OPTS=
11099 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
11100 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
11101 cat >conftest.foo <<_ACEOF
11103 msgid ""
11104 msgstr ""
11105 "Content-Type: text/plain; charset=UTF-8\n"
11106 "Project-Id-Version: test 1.0\n"
11107 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
11108 "Last-Translator: test <foo@bar.xx>\n"
11109 "Language-Team: C <LL@li.org>\n"
11110 "MIME-Version: 1.0\n"
11111 "Content-Transfer-Encoding: 8bit\n"
11113 _ACEOF
11114 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
11115 (msgfmt -c -o /dev/null conftest.foo) 2>&5
11116 ac_status=$?
11117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; then
11119 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
11120 $as_echo "yes" >&6; }
11121 else { $as_echo "$as_me:$LINENO: result: no" >&5
11122 $as_echo "no" >&6; }
11123 echo "$as_me: failed input was:" >&5
11124 sed 's/^/| /' conftest.foo >&5
11125 fi
11127 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11128 set dummy gmsgfmt; ac_word=$2
11129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11132 $as_echo_n "(cached) " >&6
11133 else
11134 case $GMSGFMT in
11135 [\\/]* | ?:[\\/]*)
11136 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11137 ;;
11138 *)
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11141 do
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11146 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 break 2
11149 fi
11150 done
11151 done
11152 IFS=$as_save_IFS
11154 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11155 ;;
11156 esac
11157 fi
11158 GMSGFMT=$ac_cv_path_GMSGFMT
11159 if test -n "$GMSGFMT"; then
11160 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11161 $as_echo "$GMSGFMT" >&6; }
11162 else
11163 { $as_echo "$as_me:$LINENO: result: no" >&5
11164 $as_echo "no" >&6; }
11165 fi
11168 # Extract the first word of "xgettext", so it can be a program name with args.
11169 set dummy xgettext; ac_word=$2
11170 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11173 $as_echo_n "(cached) " >&6
11174 else
11175 case "$XGETTEXT" in
11176 /*)
11177 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11178 ;;
11179 *)
11180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11181 for ac_dir in $PATH; do
11182 test -z "$ac_dir" && ac_dir=.
11183 if test -f $ac_dir/$ac_word; then
11184 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11185 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11186 break
11187 fi
11188 fi
11189 done
11190 IFS="$ac_save_ifs"
11191 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11192 ;;
11193 esac
11194 fi
11195 XGETTEXT="$ac_cv_path_XGETTEXT"
11196 if test "$XGETTEXT" != ":"; then
11197 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11198 $as_echo "$XGETTEXT" >&6; }
11199 else
11200 { $as_echo "$as_me:$LINENO: result: no" >&5
11201 $as_echo "no" >&6; }
11202 fi
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h. */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11211 int
11212 main ()
11213 {
11214 extern int _nl_msg_cat_cntr;
11215 return _nl_msg_cat_cntr
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (ac_try="$ac_link"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11227 $as_echo "$ac_try_echo") >&5
11228 (eval "$ac_link") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && {
11235 test -z "$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 } && test -s conftest$ac_exeext && {
11238 test "$cross_compiling" = yes ||
11239 $as_test_x conftest$ac_exeext
11240 }; then
11241 CATOBJEXT=.gmo
11242 DATADIRNAME=share
11243 else
11244 $as_echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 case $host in
11248 *-*-solaris*)
11249 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
11250 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
11251 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
11252 $as_echo_n "(cached) " >&6
11253 else
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h. */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
11261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11262 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
11264 /* System header to define __stub macros and hopefully few prototypes,
11265 which can conflict with char bind_textdomain_codeset (); below.
11266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11267 <limits.h> exists even on freestanding compilers. */
11269 #ifdef __STDC__
11270 # include <limits.h>
11271 #else
11272 # include <assert.h>
11273 #endif
11275 #undef bind_textdomain_codeset
11277 /* Override any GCC internal prototype to avoid an error.
11278 Use char because int might match the return type of a GCC
11279 builtin and then its argument prototype would still apply. */
11280 #ifdef __cplusplus
11281 extern "C"
11282 #endif
11283 char bind_textdomain_codeset ();
11284 /* The GNU C library defines this for functions which it implements
11285 to always fail with ENOSYS. Some functions are actually named
11286 something starting with __ and the normal name is an alias. */
11287 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
11288 choke me
11289 #endif
11291 int
11292 main ()
11293 {
11294 return bind_textdomain_codeset ();
11295 ;
11296 return 0;
11297 }
11298 _ACEOF
11299 rm -f conftest.$ac_objext conftest$ac_exeext
11300 if { (ac_try="$ac_link"
11301 case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304 esac
11305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11306 $as_echo "$ac_try_echo") >&5
11307 (eval "$ac_link") 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } && {
11314 test -z "$ac_c_werror_flag" ||
11315 test ! -s conftest.err
11316 } && test -s conftest$ac_exeext && {
11317 test "$cross_compiling" = yes ||
11318 $as_test_x conftest$ac_exeext
11319 }; then
11320 ac_cv_func_bind_textdomain_codeset=yes
11321 else
11322 $as_echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_cv_func_bind_textdomain_codeset=no
11326 fi
11328 rm -rf conftest.dSYM
11329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11330 conftest$ac_exeext conftest.$ac_ext
11331 fi
11332 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
11333 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
11334 if test $ac_cv_func_bind_textdomain_codeset = yes; then
11335 CATOBJEXT=.gmo
11336 DATADIRNAME=share
11337 else
11338 CATOBJEXT=.mo
11339 DATADIRNAME=lib
11340 fi
11342 ;;
11343 *)
11344 CATOBJEXT=.mo
11345 DATADIRNAME=lib
11346 ;;
11347 esac
11348 fi
11350 rm -rf conftest.dSYM
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352 conftest$ac_exeext conftest.$ac_ext
11353 LIBS="$glib_save_LIBS"
11354 INSTOBJEXT=.mo
11355 else
11356 gt_cv_have_gettext=no
11357 fi
11358 fi
11360 fi
11364 if test "$gt_cv_have_gettext" = "yes" ; then
11366 cat >>confdefs.h <<\_ACEOF
11367 #define ENABLE_NLS 1
11368 _ACEOF
11370 fi
11372 if test "$XGETTEXT" != ":"; then
11373 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11374 : ;
11375 else
11376 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11377 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11378 XGETTEXT=":"
11379 fi
11380 fi
11382 # We need to process the po/ directory.
11383 POSUB=po
11385 ac_config_commands="$ac_config_commands default-1"
11388 for lang in $ALL_LINGUAS; do
11389 GMOFILES="$GMOFILES $lang.gmo"
11390 POFILES="$POFILES $lang.po"
11391 done
11405 if test "$gt_cv_have_gettext" = "yes"; then
11406 if test "x$ALL_LINGUAS" = "x"; then
11407 LINGUAS=
11408 else
11409 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11410 $as_echo_n "checking for catalogs to be installed... " >&6; }
11411 NEW_LINGUAS=
11412 for presentlang in $ALL_LINGUAS; do
11413 useit=no
11414 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
11415 desiredlanguages="$LINGUAS"
11416 else
11417 desiredlanguages="$ALL_LINGUAS"
11418 fi
11419 for desiredlang in $desiredlanguages; do
11420 # Use the presentlang catalog if desiredlang is
11421 # a. equal to presentlang, or
11422 # b. a variant of presentlang (because in this case,
11423 # presentlang can be used as a fallback for messages
11424 # which are not translated in the desiredlang catalog).
11425 case "$desiredlang" in
11426 "$presentlang"*) useit=yes;;
11427 esac
11428 done
11429 if test $useit = yes; then
11430 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
11431 fi
11432 done
11433 LINGUAS=$NEW_LINGUAS
11434 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
11435 $as_echo "$LINGUAS" >&6; }
11436 fi
11438 if test -n "$LINGUAS"; then
11439 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
11440 fi
11441 fi
11443 MKINSTALLDIRS=
11444 if test -n "$ac_aux_dir"; then
11445 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11446 fi
11447 if test -z "$MKINSTALLDIRS"; then
11448 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11449 fi
11452 test -d po || mkdir po
11453 if test "x$srcdir" != "x."; then
11454 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11455 posrcprefix="$srcdir/"
11456 else
11457 posrcprefix="../$srcdir/"
11458 fi
11459 else
11460 posrcprefix="../"
11461 fi
11462 rm -f po/POTFILES
11463 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11464 < $srcdir/po/POTFILES.in > po/POTFILES
11467 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
11469 cat >confcache <<\_ACEOF
11470 # This file is a shell script that caches the results of configure
11471 # tests run on this system so they can be shared between configure
11472 # scripts and configure runs, see configure's option --config-cache.
11473 # It is not useful on other systems. If it contains results you don't
11474 # want to keep, you may remove or edit it.
11475 #
11476 # config.status only pays attention to the cache file if you give it
11477 # the --recheck option to rerun configure.
11478 #
11479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11481 # following values.
11483 _ACEOF
11485 # The following way of writing the cache mishandles newlines in values,
11486 # but we know of no workaround that is simple, portable, and efficient.
11487 # So, we kill variables containing newlines.
11488 # Ultrix sh set writes to stderr and can't be redirected directly,
11489 # and sets the high bit in the cache file unless we assign to the vars.
11490 (
11491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11492 eval ac_val=\$$ac_var
11493 case $ac_val in #(
11494 *${as_nl}*)
11495 case $ac_var in #(
11496 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11497 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11498 esac
11499 case $ac_var in #(
11500 _ | IFS | as_nl) ;; #(
11501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11502 *) $as_unset $ac_var ;;
11503 esac ;;
11504 esac
11505 done
11507 (set) 2>&1 |
11508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11509 *${as_nl}ac_space=\ *)
11510 # `set' does not quote correctly, so add quotes (double-quote
11511 # substitution turns \\\\ into \\, and sed turns \\ into \).
11512 sed -n \
11513 "s/'/'\\\\''/g;
11514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11515 ;; #(
11516 *)
11517 # `set' quotes correctly as required by POSIX, so do not add quotes.
11518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11519 ;;
11520 esac |
11521 sort
11522 ) |
11523 sed '
11524 /^ac_cv_env_/b end
11525 t clear
11526 :clear
11527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11528 t end
11529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11530 :end' >>confcache
11531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11532 if test -w "$cache_file"; then
11533 test "x$cache_file" != "x/dev/null" &&
11534 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11535 $as_echo "$as_me: updating cache $cache_file" >&6;}
11536 cat confcache >$cache_file
11537 else
11538 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11540 fi
11541 fi
11542 rm -f confcache
11544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11545 # Let make expand exec_prefix.
11546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11548 DEFS=-DHAVE_CONFIG_H
11550 ac_libobjs=
11551 ac_ltlibobjs=
11552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11553 # 1. Remove the extension, and $U if already installed.
11554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11557 # will be set to the directory where LIBOBJS objects are built.
11558 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11559 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11560 done
11561 LIBOBJS=$ac_libobjs
11563 LTLIBOBJS=$ac_ltlibobjs
11566 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11567 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11568 Usually this means the macro was only invoked conditionally." >&5
11569 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11570 Usually this means the macro was only invoked conditionally." >&2;}
11571 { (exit 1); exit 1; }; }
11572 fi
11573 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11574 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11575 Usually this means the macro was only invoked conditionally." >&5
11576 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11577 Usually this means the macro was only invoked conditionally." >&2;}
11578 { (exit 1); exit 1; }; }
11579 fi
11580 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11581 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11582 Usually this means the macro was only invoked conditionally." >&5
11583 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11584 Usually this means the macro was only invoked conditionally." >&2;}
11585 { (exit 1); exit 1; }; }
11586 fi
11587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11588 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11589 Usually this means the macro was only invoked conditionally." >&5
11590 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11591 Usually this means the macro was only invoked conditionally." >&2;}
11592 { (exit 1); exit 1; }; }
11593 fi
11594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11595 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11596 Usually this means the macro was only invoked conditionally." >&5
11597 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11598 Usually this means the macro was only invoked conditionally." >&2;}
11599 { (exit 1); exit 1; }; }
11600 fi
11601 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11602 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11603 Usually this means the macro was only invoked conditionally." >&5
11604 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11605 Usually this means the macro was only invoked conditionally." >&2;}
11606 { (exit 1); exit 1; }; }
11607 fi
11608 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11609 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11610 Usually this means the macro was only invoked conditionally." >&5
11611 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11612 Usually this means the macro was only invoked conditionally." >&2;}
11613 { (exit 1); exit 1; }; }
11614 fi
11615 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11616 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11617 Usually this means the macro was only invoked conditionally." >&5
11618 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11619 Usually this means the macro was only invoked conditionally." >&2;}
11620 { (exit 1); exit 1; }; }
11621 fi
11622 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11623 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11624 Usually this means the macro was only invoked conditionally." >&5
11625 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11626 Usually this means the macro was only invoked conditionally." >&2;}
11627 { (exit 1); exit 1; }; }
11628 fi
11629 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11630 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11631 Usually this means the macro was only invoked conditionally." >&5
11632 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11633 Usually this means the macro was only invoked conditionally." >&2;}
11634 { (exit 1); exit 1; }; }
11635 fi
11636 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11637 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11638 Usually this means the macro was only invoked conditionally." >&5
11639 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11640 Usually this means the macro was only invoked conditionally." >&2;}
11641 { (exit 1); exit 1; }; }
11642 fi
11643 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
11644 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
11645 Usually this means the macro was only invoked conditionally." >&5
11646 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
11647 Usually this means the macro was only invoked conditionally." >&2;}
11648 { (exit 1); exit 1; }; }
11649 fi
11650 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11651 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11652 Usually this means the macro was only invoked conditionally." >&5
11653 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11654 Usually this means the macro was only invoked conditionally." >&2;}
11655 { (exit 1); exit 1; }; }
11656 fi
11657 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11658 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11659 Usually this means the macro was only invoked conditionally." >&5
11660 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11661 Usually this means the macro was only invoked conditionally." >&2;}
11662 { (exit 1); exit 1; }; }
11663 fi
11664 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11665 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11666 Usually this means the macro was only invoked conditionally." >&5
11667 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11668 Usually this means the macro was only invoked conditionally." >&2;}
11669 { (exit 1); exit 1; }; }
11670 fi
11671 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11672 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11673 Usually this means the macro was only invoked conditionally." >&5
11674 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11675 Usually this means the macro was only invoked conditionally." >&2;}
11676 { (exit 1); exit 1; }; }
11677 fi
11678 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
11679 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
11680 Usually this means the macro was only invoked conditionally." >&5
11681 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
11682 Usually this means the macro was only invoked conditionally." >&2;}
11683 { (exit 1); exit 1; }; }
11684 fi
11685 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
11686 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
11687 Usually this means the macro was only invoked conditionally." >&5
11688 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
11689 Usually this means the macro was only invoked conditionally." >&2;}
11690 { (exit 1); exit 1; }; }
11691 fi
11692 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11693 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11694 Usually this means the macro was only invoked conditionally." >&5
11695 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11696 Usually this means the macro was only invoked conditionally." >&2;}
11697 { (exit 1); exit 1; }; }
11698 fi
11699 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11700 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11701 Usually this means the macro was only invoked conditionally." >&5
11702 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11703 Usually this means the macro was only invoked conditionally." >&2;}
11704 { (exit 1); exit 1; }; }
11705 fi
11706 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11707 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11708 Usually this means the macro was only invoked conditionally." >&5
11709 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11710 Usually this means the macro was only invoked conditionally." >&2;}
11711 { (exit 1); exit 1; }; }
11712 fi
11714 : ${CONFIG_STATUS=./config.status}
11715 ac_write_fail=0
11716 ac_clean_files_save=$ac_clean_files
11717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11718 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11719 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11720 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11721 #! $SHELL
11722 # Generated by $as_me.
11723 # Run this file to recreate the current configuration.
11724 # Compiler output produced by configure, useful for debugging
11725 # configure, is in config.log if it exists.
11727 debug=false
11728 ac_cs_recheck=false
11729 ac_cs_silent=false
11730 SHELL=\${CONFIG_SHELL-$SHELL}
11731 _ACEOF
11733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11734 ## --------------------- ##
11735 ## M4sh Initialization. ##
11736 ## --------------------- ##
11738 # Be more Bourne compatible
11739 DUALCASE=1; export DUALCASE # for MKS sh
11740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11741 emulate sh
11742 NULLCMD=:
11743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11744 # is contrary to our usage. Disable this feature.
11745 alias -g '${1+"$@"}'='"$@"'
11746 setopt NO_GLOB_SUBST
11747 else
11748 case `(set -o) 2>/dev/null` in
11749 *posix*) set -o posix ;;
11750 esac
11752 fi
11757 # PATH needs CR
11758 # Avoid depending upon Character Ranges.
11759 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11760 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11761 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11762 as_cr_digits='0123456789'
11763 as_cr_alnum=$as_cr_Letters$as_cr_digits
11765 as_nl='
11766 '
11767 export as_nl
11768 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11769 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11770 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11772 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11773 as_echo='printf %s\n'
11774 as_echo_n='printf %s'
11775 else
11776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11778 as_echo_n='/usr/ucb/echo -n'
11779 else
11780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11781 as_echo_n_body='eval
11782 arg=$1;
11783 case $arg in
11784 *"$as_nl"*)
11785 expr "X$arg" : "X\\(.*\\)$as_nl";
11786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11787 esac;
11788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11789 '
11790 export as_echo_n_body
11791 as_echo_n='sh -c $as_echo_n_body as_echo'
11792 fi
11793 export as_echo_body
11794 as_echo='sh -c $as_echo_body as_echo'
11795 fi
11797 # The user is always right.
11798 if test "${PATH_SEPARATOR+set}" != set; then
11799 PATH_SEPARATOR=:
11800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11802 PATH_SEPARATOR=';'
11803 }
11804 fi
11806 # Support unset when possible.
11807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11808 as_unset=unset
11809 else
11810 as_unset=false
11811 fi
11814 # IFS
11815 # We need space, tab and new line, in precisely that order. Quoting is
11816 # there to prevent editors from complaining about space-tab.
11817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11818 # splitting by setting IFS to empty value.)
11819 IFS=" "" $as_nl"
11821 # Find who we are. Look in the path if we contain no directory separator.
11822 case $0 in
11823 *[\\/]* ) as_myself=$0 ;;
11824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11826 do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11830 done
11831 IFS=$as_save_IFS
11833 ;;
11834 esac
11835 # We did not find ourselves, most probably we were run as `sh COMMAND'
11836 # in which case we are not to be found in the path.
11837 if test "x$as_myself" = x; then
11838 as_myself=$0
11839 fi
11840 if test ! -f "$as_myself"; then
11841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11842 { (exit 1); exit 1; }
11843 fi
11845 # Work around bugs in pre-3.0 UWIN ksh.
11846 for as_var in ENV MAIL MAILPATH
11847 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11848 done
11849 PS1='$ '
11850 PS2='> '
11851 PS4='+ '
11853 # NLS nuisances.
11854 LC_ALL=C
11855 export LC_ALL
11856 LANGUAGE=C
11857 export LANGUAGE
11859 # Required to use basename.
11860 if expr a : '\(a\)' >/dev/null 2>&1 &&
11861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11862 as_expr=expr
11863 else
11864 as_expr=false
11865 fi
11867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11868 as_basename=basename
11869 else
11870 as_basename=false
11871 fi
11874 # Name of the executable.
11875 as_me=`$as_basename -- "$0" ||
11876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11877 X"$0" : 'X\(//\)$' \| \
11878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11879 $as_echo X/"$0" |
11880 sed '/^.*\/\([^/][^/]*\)\/*$/{
11881 s//\1/
11882 q
11883 }
11884 /^X\/\(\/\/\)$/{
11885 s//\1/
11886 q
11887 }
11888 /^X\/\(\/\).*/{
11889 s//\1/
11890 q
11891 }
11892 s/.*/./; q'`
11894 # CDPATH.
11895 $as_unset CDPATH
11899 as_lineno_1=$LINENO
11900 as_lineno_2=$LINENO
11901 test "x$as_lineno_1" != "x$as_lineno_2" &&
11902 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11905 # uniformly replaced by the line number. The first 'sed' inserts a
11906 # line-number line after each line using $LINENO; the second 'sed'
11907 # does the real work. The second script uses 'N' to pair each
11908 # line-number line with the line containing $LINENO, and appends
11909 # trailing '-' during substitution so that $LINENO is not a special
11910 # case at line end.
11911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11912 # scripts with optimization help from Paolo Bonzini. Blame Lee
11913 # E. McMahon (1931-1989) for sed's syntax. :-)
11914 sed -n '
11915 p
11916 /[$]LINENO/=
11917 ' <$as_myself |
11918 sed '
11919 s/[$]LINENO.*/&-/
11920 t lineno
11921 b
11922 :lineno
11923 N
11924 :loop
11925 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11926 t loop
11927 s/-\n.*//
11928 ' >$as_me.lineno &&
11929 chmod +x "$as_me.lineno" ||
11930 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11931 { (exit 1); exit 1; }; }
11933 # Don't try to exec as it changes $[0], causing all sort of problems
11934 # (the dirname of $[0] is not the place where we might find the
11935 # original and so on. Autoconf is especially sensitive to this).
11936 . "./$as_me.lineno"
11937 # Exit status is that of the last command.
11938 exit
11939 }
11942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11943 as_dirname=dirname
11944 else
11945 as_dirname=false
11946 fi
11948 ECHO_C= ECHO_N= ECHO_T=
11949 case `echo -n x` in
11950 -n*)
11951 case `echo 'x\c'` in
11952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11953 *) ECHO_C='\c';;
11954 esac;;
11955 *)
11956 ECHO_N='-n';;
11957 esac
11958 if expr a : '\(a\)' >/dev/null 2>&1 &&
11959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11960 as_expr=expr
11961 else
11962 as_expr=false
11963 fi
11965 rm -f conf$$ conf$$.exe conf$$.file
11966 if test -d conf$$.dir; then
11967 rm -f conf$$.dir/conf$$.file
11968 else
11969 rm -f conf$$.dir
11970 mkdir conf$$.dir 2>/dev/null
11971 fi
11972 if (echo >conf$$.file) 2>/dev/null; then
11973 if ln -s conf$$.file conf$$ 2>/dev/null; then
11974 as_ln_s='ln -s'
11975 # ... but there are two gotchas:
11976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11978 # In both cases, we have to default to `cp -p'.
11979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11980 as_ln_s='cp -p'
11981 elif ln conf$$.file conf$$ 2>/dev/null; then
11982 as_ln_s=ln
11983 else
11984 as_ln_s='cp -p'
11985 fi
11986 else
11987 as_ln_s='cp -p'
11988 fi
11989 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11990 rmdir conf$$.dir 2>/dev/null
11992 if mkdir -p . 2>/dev/null; then
11993 as_mkdir_p=:
11994 else
11995 test -d ./-p && rmdir ./-p
11996 as_mkdir_p=false
11997 fi
11999 if test -x / >/dev/null 2>&1; then
12000 as_test_x='test -x'
12001 else
12002 if ls -dL / >/dev/null 2>&1; then
12003 as_ls_L_option=L
12004 else
12005 as_ls_L_option=
12006 fi
12007 as_test_x='
12008 eval sh -c '\''
12009 if test -d "$1"; then
12010 test -d "$1/.";
12011 else
12012 case $1 in
12013 -*)set "./$1";;
12014 esac;
12015 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12016 ???[sx]*):;;*)false;;esac;fi
12017 '\'' sh
12018 '
12019 fi
12020 as_executable_p=$as_test_x
12022 # Sed expression to map a string onto a valid CPP name.
12023 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12025 # Sed expression to map a string onto a valid variable name.
12026 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12029 exec 6>&1
12031 # Save the log message, to keep $[0] and so on meaningful, and to
12032 # report actual input values of CONFIG_FILES etc. instead of their
12033 # values after options handling.
12034 ac_log="
12035 This file was extended by $as_me, which was
12036 generated by GNU Autoconf 2.62. Invocation command line was
12038 CONFIG_FILES = $CONFIG_FILES
12039 CONFIG_HEADERS = $CONFIG_HEADERS
12040 CONFIG_LINKS = $CONFIG_LINKS
12041 CONFIG_COMMANDS = $CONFIG_COMMANDS
12042 $ $0 $@
12044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12045 "
12047 _ACEOF
12049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12050 # Files that config.status was made for.
12051 config_files="$ac_config_files"
12052 config_headers="$ac_config_headers"
12053 config_commands="$ac_config_commands"
12055 _ACEOF
12057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12058 ac_cs_usage="\
12059 \`$as_me' instantiates files from templates according to the
12060 current configuration.
12062 Usage: $0 [OPTIONS] [FILE]...
12064 -h, --help print this help, then exit
12065 -V, --version print version number and configuration settings, then exit
12066 -q, --quiet do not print progress messages
12067 -d, --debug don't remove temporary files
12068 --recheck update $as_me by reconfiguring in the same conditions
12069 --file=FILE[:TEMPLATE]
12070 instantiate the configuration file FILE
12071 --header=FILE[:TEMPLATE]
12072 instantiate the configuration header FILE
12074 Configuration files:
12075 $config_files
12077 Configuration headers:
12078 $config_headers
12080 Configuration commands:
12081 $config_commands
12083 Report bugs to <bug-autoconf@gnu.org>."
12085 _ACEOF
12086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12087 ac_cs_version="\\
12088 config.status
12089 configured by $0, generated by GNU Autoconf 2.62,
12090 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12092 Copyright (C) 2008 Free Software Foundation, Inc.
12093 This config.status script is free software; the Free Software Foundation
12094 gives unlimited permission to copy, distribute and modify it."
12096 ac_pwd='$ac_pwd'
12097 srcdir='$srcdir'
12098 INSTALL='$INSTALL'
12099 AWK='$AWK'
12100 test -n "\$AWK" || AWK=awk
12101 _ACEOF
12103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12104 # The default lists apply if the user does not specify any file.
12105 ac_need_defaults=:
12106 while test $# != 0
12107 do
12108 case $1 in
12109 --*=*)
12110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12112 ac_shift=:
12113 ;;
12114 *)
12115 ac_option=$1
12116 ac_optarg=$2
12117 ac_shift=shift
12118 ;;
12119 esac
12121 case $ac_option in
12122 # Handling of the options.
12123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12124 ac_cs_recheck=: ;;
12125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12126 $as_echo "$ac_cs_version"; exit ;;
12127 --debug | --debu | --deb | --de | --d | -d )
12128 debug=: ;;
12129 --file | --fil | --fi | --f )
12130 $ac_shift
12131 case $ac_optarg in
12132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12133 esac
12134 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12135 ac_need_defaults=false;;
12136 --header | --heade | --head | --hea )
12137 $ac_shift
12138 case $ac_optarg in
12139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12140 esac
12141 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12142 ac_need_defaults=false;;
12143 --he | --h)
12144 # Conflict between --help and --header
12145 { $as_echo "$as_me: error: ambiguous option: $1
12146 Try \`$0 --help' for more information." >&2
12147 { (exit 1); exit 1; }; };;
12148 --help | --hel | -h )
12149 $as_echo "$ac_cs_usage"; exit ;;
12150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12152 ac_cs_silent=: ;;
12154 # This is an error.
12155 -*) { $as_echo "$as_me: error: unrecognized option: $1
12156 Try \`$0 --help' for more information." >&2
12157 { (exit 1); exit 1; }; } ;;
12159 *) ac_config_targets="$ac_config_targets $1"
12160 ac_need_defaults=false ;;
12162 esac
12163 shift
12164 done
12166 ac_configure_extra_args=
12168 if $ac_cs_silent; then
12169 exec 6>/dev/null
12170 ac_configure_extra_args="$ac_configure_extra_args --silent"
12171 fi
12173 _ACEOF
12174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12175 if \$ac_cs_recheck; then
12176 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12177 shift
12178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12179 CONFIG_SHELL='$SHELL'
12180 export CONFIG_SHELL
12181 exec "\$@"
12182 fi
12184 _ACEOF
12185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12186 exec 5>>config.log
12187 {
12188 echo
12189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12190 ## Running $as_me. ##
12191 _ASBOX
12192 $as_echo "$ac_log"
12193 } >&5
12195 _ACEOF
12196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197 #
12198 # INIT-COMMANDS
12199 #
12200 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12203 _ACEOF
12205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12207 # Handling of arguments.
12208 for ac_config_target in $ac_config_targets
12209 do
12210 case $ac_config_target in
12211 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12212 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12213 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12214 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12215 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12216 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12217 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12218 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
12220 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12221 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12222 { (exit 1); exit 1; }; };;
12223 esac
12224 done
12227 # If the user did not use the arguments to specify the items to instantiate,
12228 # then the envvar interface is used. Set only those that are not.
12229 # We use the long form for the default assignment because of an extremely
12230 # bizarre bug on SunOS 4.1.3.
12231 if $ac_need_defaults; then
12232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12233 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12235 fi
12237 # Have a temporary directory for convenience. Make it in the build tree
12238 # simply because there is no reason against having it here, and in addition,
12239 # creating and moving files from /tmp can sometimes cause problems.
12240 # Hook for its removal unless debugging.
12241 # Note that there is a small window in which the directory will not be cleaned:
12242 # after its creation but before its name has been assigned to `$tmp'.
12243 $debug ||
12244 {
12245 tmp=
12246 trap 'exit_status=$?
12247 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12248 ' 0
12249 trap '{ (exit 1); exit 1; }' 1 2 13 15
12250 }
12251 # Create a (secure) tmp directory for tmp files.
12253 {
12254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12255 test -n "$tmp" && test -d "$tmp"
12256 } ||
12257 {
12258 tmp=./conf$$-$RANDOM
12259 (umask 077 && mkdir "$tmp")
12260 } ||
12261 {
12262 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12263 { (exit 1); exit 1; }
12264 }
12266 # Set up the scripts for CONFIG_FILES section.
12267 # No need to generate them if there are no CONFIG_FILES.
12268 # This happens for instance with `./config.status config.h'.
12269 if test -n "$CONFIG_FILES"; then
12272 ac_cr='
12273 '
12274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12276 ac_cs_awk_cr='\\r'
12277 else
12278 ac_cs_awk_cr=$ac_cr
12279 fi
12281 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12282 _ACEOF
12285 {
12286 echo "cat >conf$$subs.awk <<_ACEOF" &&
12287 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12288 echo "_ACEOF"
12289 } >conf$$subs.sh ||
12290 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12291 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12292 { (exit 1); exit 1; }; }
12293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12294 ac_delim='%!_!# '
12295 for ac_last_try in false false false false false :; do
12296 . ./conf$$subs.sh ||
12297 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12298 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12299 { (exit 1); exit 1; }; }
12301 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
12302 break
12303 elif $ac_last_try; then
12304 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12305 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12306 { (exit 1); exit 1; }; }
12307 else
12308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12309 fi
12310 done
12311 rm -f conf$$subs.sh
12313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12314 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12315 _ACEOF
12316 sed -n '
12317 h
12318 s/^/S["/; s/!.*/"]=/
12319 p
12320 g
12321 s/^[^!]*!//
12322 :repl
12323 t repl
12324 s/'"$ac_delim"'$//
12325 t delim
12326 :nl
12327 h
12328 s/\(.\{148\}\).*/\1/
12329 t more1
12330 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12331 p
12332 n
12333 b repl
12334 :more1
12335 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12336 p
12337 g
12338 s/.\{148\}//
12339 t nl
12340 :delim
12341 h
12342 s/\(.\{148\}\).*/\1/
12343 t more2
12344 s/["\\]/\\&/g; s/^/"/; s/$/"/
12345 p
12346 b
12347 :more2
12348 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12349 p
12350 g
12351 s/.\{148\}//
12352 t delim
12353 ' <conf$$subs.awk | sed '
12354 /^[^""]/{
12355 N
12356 s/\n//
12357 }
12358 ' >>$CONFIG_STATUS || ac_write_fail=1
12359 rm -f conf$$subs.awk
12360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12361 _ACAWK
12362 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12363 for (key in S) S_is_set[key] = 1
12364 FS = ""
12366 }
12367 {
12368 line = $ 0
12369 nfields = split(line, field, "@")
12370 substed = 0
12371 len = length(field[1])
12372 for (i = 2; i < nfields; i++) {
12373 key = field[i]
12374 keylen = length(key)
12375 if (S_is_set[key]) {
12376 value = S[key]
12377 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12378 len += length(value) + length(field[++i])
12379 substed = 1
12380 } else
12381 len += 1 + keylen
12382 }
12384 print line
12385 }
12387 _ACAWK
12388 _ACEOF
12389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12390 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12391 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12392 else
12393 cat
12394 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12395 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12396 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12397 { (exit 1); exit 1; }; }
12398 _ACEOF
12400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12402 # trailing colons and then remove the whole line if VPATH becomes empty
12403 # (actually we leave an empty line to preserve line numbers).
12404 if test "x$srcdir" = x.; then
12405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12406 s/:*\$(srcdir):*/:/
12407 s/:*\${srcdir}:*/:/
12408 s/:*@srcdir@:*/:/
12409 s/^\([^=]*=[ ]*\):*/\1/
12410 s/:*$//
12411 s/^[^=]*=[ ]*$//
12412 }'
12413 fi
12415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416 fi # test -n "$CONFIG_FILES"
12418 # Set up the scripts for CONFIG_HEADERS section.
12419 # No need to generate them if there are no CONFIG_HEADERS.
12420 # This happens for instance with `./config.status Makefile'.
12421 if test -n "$CONFIG_HEADERS"; then
12422 cat >"$tmp/defines.awk" <<\_ACAWK ||
12423 BEGIN {
12424 _ACEOF
12426 # Transform confdefs.h into an awk script `defines.awk', embedded as
12427 # here-document in config.status, that substitutes the proper values into
12428 # config.h.in to produce config.h.
12430 # Create a delimiter string that does not exist in confdefs.h, to ease
12431 # handling of long lines.
12432 ac_delim='%!_!# '
12433 for ac_last_try in false false :; do
12434 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12435 if test -z "$ac_t"; then
12436 break
12437 elif $ac_last_try; then
12438 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12439 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12440 { (exit 1); exit 1; }; }
12441 else
12442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12443 fi
12444 done
12446 # For the awk script, D is an array of macro values keyed by name,
12447 # likewise P contains macro parameters if any. Preserve backslash
12448 # newline sequences.
12450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12451 sed -n '
12452 s/.\{148\}/&'"$ac_delim"'/g
12453 t rset
12454 :rset
12455 s/^[ ]*#[ ]*define[ ][ ]*/ /
12456 t def
12457 d
12458 :def
12459 s/\\$//
12460 t bsnl
12461 s/["\\]/\\&/g
12462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12463 D["\1"]=" \3"/p
12464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12465 d
12466 :bsnl
12467 s/["\\]/\\&/g
12468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12469 D["\1"]=" \3\\\\\\n"\\/p
12470 t cont
12471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12472 t cont
12473 d
12474 :cont
12475 n
12476 s/.\{148\}/&'"$ac_delim"'/g
12477 t clear
12478 :clear
12479 s/\\$//
12480 t bsnlc
12481 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12482 d
12483 :bsnlc
12484 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12485 b cont
12486 ' <confdefs.h | sed '
12487 s/'"$ac_delim"'/"\\\
12488 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12491 for (key in D) D_is_set[key] = 1
12492 FS = ""
12493 }
12494 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12495 line = \$ 0
12496 split(line, arg, " ")
12497 if (arg[1] == "#") {
12498 defundef = arg[2]
12499 mac1 = arg[3]
12500 } else {
12501 defundef = substr(arg[1], 2)
12502 mac1 = arg[2]
12503 }
12504 split(mac1, mac2, "(") #)
12505 macro = mac2[1]
12506 if (D_is_set[macro]) {
12507 # Preserve the white space surrounding the "#".
12508 prefix = substr(line, 1, index(line, defundef) - 1)
12509 print prefix "define", macro P[macro] D[macro]
12510 next
12511 } else {
12512 # Replace #undef with comments. This is necessary, for example,
12513 # in the case of _POSIX_SOURCE, which is predefined and required
12514 # on some systems where configure will not decide to define it.
12515 if (defundef == "undef") {
12516 print "/*", line, "*/"
12517 next
12518 }
12519 }
12520 }
12521 { print }
12522 _ACAWK
12523 _ACEOF
12524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12526 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12527 { (exit 1); exit 1; }; }
12528 fi # test -n "$CONFIG_HEADERS"
12531 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12532 shift
12533 for ac_tag
12534 do
12535 case $ac_tag in
12536 :[FHLC]) ac_mode=$ac_tag; continue;;
12537 esac
12538 case $ac_mode$ac_tag in
12539 :[FHL]*:*);;
12540 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12541 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12542 { (exit 1); exit 1; }; };;
12543 :[FH]-) ac_tag=-:-;;
12544 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12545 esac
12546 ac_save_IFS=$IFS
12547 IFS=:
12548 set x $ac_tag
12549 IFS=$ac_save_IFS
12550 shift
12551 ac_file=$1
12552 shift
12554 case $ac_mode in
12555 :L) ac_source=$1;;
12556 :[FH])
12557 ac_file_inputs=
12558 for ac_f
12559 do
12560 case $ac_f in
12561 -) ac_f="$tmp/stdin";;
12562 *) # Look for the file first in the build tree, then in the source tree
12563 # (if the path is not absolute). The absolute path cannot be DOS-style,
12564 # because $ac_f cannot contain `:'.
12565 test -f "$ac_f" ||
12566 case $ac_f in
12567 [\\/$]*) false;;
12568 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12569 esac ||
12570 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12571 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12572 { (exit 1); exit 1; }; };;
12573 esac
12574 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12575 ac_file_inputs="$ac_file_inputs '$ac_f'"
12576 done
12578 # Let's still pretend it is `configure' which instantiates (i.e., don't
12579 # use $as_me), people would be surprised to read:
12580 # /* config.h. Generated by config.status. */
12581 configure_input='Generated from '`
12582 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12583 `' by configure.'
12584 if test x"$ac_file" != x-; then
12585 configure_input="$ac_file. $configure_input"
12586 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12587 $as_echo "$as_me: creating $ac_file" >&6;}
12588 fi
12589 # Neutralize special characters interpreted by sed in replacement strings.
12590 case $configure_input in #(
12591 *\&* | *\|* | *\\* )
12592 ac_sed_conf_input=`$as_echo "$configure_input" |
12593 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12594 *) ac_sed_conf_input=$configure_input;;
12595 esac
12597 case $ac_tag in
12598 *:-:* | *:-) cat >"$tmp/stdin" \
12599 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12600 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12601 { (exit 1); exit 1; }; } ;;
12602 esac
12603 ;;
12604 esac
12606 ac_dir=`$as_dirname -- "$ac_file" ||
12607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12608 X"$ac_file" : 'X\(//\)[^/]' \| \
12609 X"$ac_file" : 'X\(//\)$' \| \
12610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12611 $as_echo X"$ac_file" |
12612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12613 s//\1/
12614 q
12615 }
12616 /^X\(\/\/\)[^/].*/{
12617 s//\1/
12618 q
12619 }
12620 /^X\(\/\/\)$/{
12621 s//\1/
12622 q
12623 }
12624 /^X\(\/\).*/{
12625 s//\1/
12626 q
12627 }
12628 s/.*/./; q'`
12629 { as_dir="$ac_dir"
12630 case $as_dir in #(
12631 -*) as_dir=./$as_dir;;
12632 esac
12633 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12634 as_dirs=
12635 while :; do
12636 case $as_dir in #(
12637 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12638 *) as_qdir=$as_dir;;
12639 esac
12640 as_dirs="'$as_qdir' $as_dirs"
12641 as_dir=`$as_dirname -- "$as_dir" ||
12642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643 X"$as_dir" : 'X\(//\)[^/]' \| \
12644 X"$as_dir" : 'X\(//\)$' \| \
12645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12646 $as_echo X"$as_dir" |
12647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12648 s//\1/
12649 q
12650 }
12651 /^X\(\/\/\)[^/].*/{
12652 s//\1/
12653 q
12654 }
12655 /^X\(\/\/\)$/{
12656 s//\1/
12657 q
12658 }
12659 /^X\(\/\).*/{
12660 s//\1/
12661 q
12662 }
12663 s/.*/./; q'`
12664 test -d "$as_dir" && break
12665 done
12666 test -z "$as_dirs" || eval "mkdir $as_dirs"
12667 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12668 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12669 { (exit 1); exit 1; }; }; }
12670 ac_builddir=.
12672 case "$ac_dir" in
12673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12674 *)
12675 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12676 # A ".." for each directory in $ac_dir_suffix.
12677 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12678 case $ac_top_builddir_sub in
12679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12681 esac ;;
12682 esac
12683 ac_abs_top_builddir=$ac_pwd
12684 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12685 # for backward compatibility:
12686 ac_top_builddir=$ac_top_build_prefix
12688 case $srcdir in
12689 .) # We are building in place.
12690 ac_srcdir=.
12691 ac_top_srcdir=$ac_top_builddir_sub
12692 ac_abs_top_srcdir=$ac_pwd ;;
12693 [\\/]* | ?:[\\/]* ) # Absolute name.
12694 ac_srcdir=$srcdir$ac_dir_suffix;
12695 ac_top_srcdir=$srcdir
12696 ac_abs_top_srcdir=$srcdir ;;
12697 *) # Relative name.
12698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12699 ac_top_srcdir=$ac_top_build_prefix$srcdir
12700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12701 esac
12702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12705 case $ac_mode in
12706 :F)
12707 #
12708 # CONFIG_FILE
12709 #
12711 case $INSTALL in
12712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12713 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12714 esac
12715 _ACEOF
12717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12718 # If the template does not know about datarootdir, expand it.
12719 # FIXME: This hack should be removed a few years after 2.60.
12720 ac_datarootdir_hack=; ac_datarootdir_seen=
12722 ac_sed_dataroot='
12723 /datarootdir/ {
12724 p
12725 q
12726 }
12727 /@datadir@/p
12728 /@docdir@/p
12729 /@infodir@/p
12730 /@localedir@/p
12731 /@mandir@/p
12732 '
12733 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12734 *datarootdir*) ac_datarootdir_seen=yes;;
12735 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12736 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12737 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12738 _ACEOF
12739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12740 ac_datarootdir_hack='
12741 s&@datadir@&$datadir&g
12742 s&@docdir@&$docdir&g
12743 s&@infodir@&$infodir&g
12744 s&@localedir@&$localedir&g
12745 s&@mandir@&$mandir&g
12746 s&\\\${datarootdir}&$datarootdir&g' ;;
12747 esac
12748 _ACEOF
12750 # Neutralize VPATH when `$srcdir' = `.'.
12751 # Shell code in configure.ac might set extrasub.
12752 # FIXME: do we really want to maintain this feature?
12753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12754 ac_sed_extra="$ac_vpsub
12755 $extrasub
12756 _ACEOF
12757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12758 :t
12759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12760 s|@configure_input@|$ac_sed_conf_input|;t t
12761 s&@top_builddir@&$ac_top_builddir_sub&;t t
12762 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12763 s&@srcdir@&$ac_srcdir&;t t
12764 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12765 s&@top_srcdir@&$ac_top_srcdir&;t t
12766 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12767 s&@builddir@&$ac_builddir&;t t
12768 s&@abs_builddir@&$ac_abs_builddir&;t t
12769 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12770 s&@INSTALL@&$ac_INSTALL&;t t
12771 $ac_datarootdir_hack
12772 "
12773 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12774 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12775 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12776 { (exit 1); exit 1; }; }
12778 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12779 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12780 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12781 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12782 which seems to be undefined. Please make sure it is defined." >&5
12783 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12784 which seems to be undefined. Please make sure it is defined." >&2;}
12786 rm -f "$tmp/stdin"
12787 case $ac_file in
12788 -) cat "$tmp/out" && rm -f "$tmp/out";;
12789 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12790 esac \
12791 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12792 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12793 { (exit 1); exit 1; }; }
12794 ;;
12795 :H)
12796 #
12797 # CONFIG_HEADER
12798 #
12799 if test x"$ac_file" != x-; then
12800 {
12801 $as_echo "/* $configure_input */" \
12802 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12803 } >"$tmp/config.h" \
12804 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12805 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12806 { (exit 1); exit 1; }; }
12807 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12808 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12809 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12810 else
12811 rm -f "$ac_file"
12812 mv "$tmp/config.h" "$ac_file" \
12813 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12814 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12815 { (exit 1); exit 1; }; }
12816 fi
12817 else
12818 $as_echo "/* $configure_input */" \
12819 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12820 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12821 $as_echo "$as_me: error: could not create -" >&2;}
12822 { (exit 1); exit 1; }; }
12823 fi
12824 # Compute "$ac_file"'s index in $config_headers.
12825 _am_stamp_count=1
12826 for _am_header in $config_headers :; do
12827 case $_am_header in
12828 "$ac_file" | "$ac_file":* )
12829 break ;;
12830 * )
12831 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12832 esac
12833 done
12834 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12836 X"$ac_file" : 'X\(//\)[^/]' \| \
12837 X"$ac_file" : 'X\(//\)$' \| \
12838 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12839 $as_echo X"$ac_file" |
12840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12841 s//\1/
12842 q
12843 }
12844 /^X\(\/\/\)[^/].*/{
12845 s//\1/
12846 q
12847 }
12848 /^X\(\/\/\)$/{
12849 s//\1/
12850 q
12851 }
12852 /^X\(\/\).*/{
12853 s//\1/
12854 q
12855 }
12856 s/.*/./; q'`/stamp-h$_am_stamp_count
12857 ;;
12859 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12860 $as_echo "$as_me: executing $ac_file commands" >&6;}
12861 ;;
12862 esac
12865 case $ac_file$ac_mode in
12866 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12867 # Strip MF so we end up with the name of the file.
12868 mf=`echo "$mf" | sed -e 's/:.*$//'`
12869 # Check whether this is an Automake generated Makefile or not.
12870 # We used to match only the files named `Makefile.in', but
12871 # some people rename them; so instead we look at the file content.
12872 # Grep'ing the first line is not enough: some people post-process
12873 # each Makefile.in and add a new line on top of each file to say so.
12874 # So let's grep whole file.
12875 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12876 dirpart=`$as_dirname -- "$mf" ||
12877 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12878 X"$mf" : 'X\(//\)[^/]' \| \
12879 X"$mf" : 'X\(//\)$' \| \
12880 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12881 $as_echo X"$mf" |
12882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12883 s//\1/
12884 q
12885 }
12886 /^X\(\/\/\)[^/].*/{
12887 s//\1/
12888 q
12889 }
12890 /^X\(\/\/\)$/{
12891 s//\1/
12892 q
12893 }
12894 /^X\(\/\).*/{
12895 s//\1/
12896 q
12897 }
12898 s/.*/./; q'`
12899 else
12900 continue
12901 fi
12902 # Extract the definition of DEPDIR, am__include, and am__quote
12903 # from the Makefile without running `make'.
12904 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12905 test -z "$DEPDIR" && continue
12906 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12907 test -z "am__include" && continue
12908 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12909 # When using ansi2knr, U may be empty or an underscore; expand it
12910 U=`sed -n 's/^U = //p' < "$mf"`
12911 # Find all dependency output files, they are included files with
12912 # $(DEPDIR) in their names. We invoke sed twice because it is the
12913 # simplest approach to changing $(DEPDIR) to its actual value in the
12914 # expansion.
12915 for file in `sed -n "
12916 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12917 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12918 # Make sure the directory exists.
12919 test -f "$dirpart/$file" && continue
12920 fdir=`$as_dirname -- "$file" ||
12921 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12922 X"$file" : 'X\(//\)[^/]' \| \
12923 X"$file" : 'X\(//\)$' \| \
12924 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12925 $as_echo X"$file" |
12926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12927 s//\1/
12928 q
12929 }
12930 /^X\(\/\/\)[^/].*/{
12931 s//\1/
12932 q
12933 }
12934 /^X\(\/\/\)$/{
12935 s//\1/
12936 q
12937 }
12938 /^X\(\/\).*/{
12939 s//\1/
12940 q
12941 }
12942 s/.*/./; q'`
12943 { as_dir=$dirpart/$fdir
12944 case $as_dir in #(
12945 -*) as_dir=./$as_dir;;
12946 esac
12947 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12948 as_dirs=
12949 while :; do
12950 case $as_dir in #(
12951 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12952 *) as_qdir=$as_dir;;
12953 esac
12954 as_dirs="'$as_qdir' $as_dirs"
12955 as_dir=`$as_dirname -- "$as_dir" ||
12956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12957 X"$as_dir" : 'X\(//\)[^/]' \| \
12958 X"$as_dir" : 'X\(//\)$' \| \
12959 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12960 $as_echo X"$as_dir" |
12961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12962 s//\1/
12963 q
12964 }
12965 /^X\(\/\/\)[^/].*/{
12966 s//\1/
12967 q
12968 }
12969 /^X\(\/\/\)$/{
12970 s//\1/
12971 q
12972 }
12973 /^X\(\/\).*/{
12974 s//\1/
12975 q
12976 }
12977 s/.*/./; q'`
12978 test -d "$as_dir" && break
12979 done
12980 test -z "$as_dirs" || eval "mkdir $as_dirs"
12981 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12982 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12983 { (exit 1); exit 1; }; }; }
12984 # echo "creating $dirpart/$file"
12985 echo '# dummy' > "$dirpart/$file"
12986 done
12987 done
12988 ;;
12989 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
12990 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
12991 esac ;;
12993 esac
12994 done # for ac_tag
12997 { (exit 0); exit 0; }
12998 _ACEOF
12999 chmod +x $CONFIG_STATUS
13000 ac_clean_files=$ac_clean_files_save
13002 test $ac_write_fail = 0 ||
13003 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13004 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13005 { (exit 1); exit 1; }; }
13008 # configure is writing to config.log, and then calls config.status.
13009 # config.status does its own redirection, appending to config.log.
13010 # Unfortunately, on DOS this fails, as config.log is still kept open
13011 # by configure, so config.status won't be able to write to it; its
13012 # output is simply discarded. So we exec the FD to /dev/null,
13013 # effectively closing config.log, so it can be properly (re)opened and
13014 # appended to by config.status. When coming back to configure, we
13015 # need to make the FD available again.
13016 if test "$no_create" != yes; then
13017 ac_cs_success=:
13018 ac_config_status_args=
13019 test "$silent" = yes &&
13020 ac_config_status_args="$ac_config_status_args --quiet"
13021 exec 5>/dev/null
13022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13023 exec 5>>config.log
13024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13025 # would make configure fail if this is the last instruction.
13026 $ac_cs_success || { (exit 1); exit 1; }
13027 fi
13028 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13029 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
13030 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
13031 fi
13033 { as_dir=test/sh4
13034 case $as_dir in #(
13035 -*) as_dir=./$as_dir;;
13036 esac
13037 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13038 as_dirs=
13039 while :; do
13040 case $as_dir in #(
13041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13042 *) as_qdir=$as_dir;;
13043 esac
13044 as_dirs="'$as_qdir' $as_dirs"
13045 as_dir=`$as_dirname -- "$as_dir" ||
13046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13047 X"$as_dir" : 'X\(//\)[^/]' \| \
13048 X"$as_dir" : 'X\(//\)$' \| \
13049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13050 $as_echo X"$as_dir" |
13051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13052 s//\1/
13053 q
13054 }
13055 /^X\(\/\/\)[^/].*/{
13056 s//\1/
13057 q
13058 }
13059 /^X\(\/\/\)$/{
13060 s//\1/
13061 q
13062 }
13063 /^X\(\/\).*/{
13064 s//\1/
13065 q
13066 }
13067 s/.*/./; q'`
13068 test -d "$as_dir" && break
13069 done
13070 test -z "$as_dirs" || eval "mkdir $as_dirs"
13071 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13072 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13073 { (exit 1); exit 1; }; }; }
13076 echo
13077 echo "Configuration complete"
13078 echo
13080 if test "x$HAVE_GTK" = x; then
13081 if test "x$HAVE_COCOA" = x; then
13082 echo " User interface: none"
13083 else
13084 echo " User interface: Cocoa"
13085 fi
13086 else
13087 echo " User interface: GTK"
13088 fi
13090 if test "x$SH4_TRANSLATOR" = "x"; then
13091 echo " SH4 translator: None (emulation core only)"
13092 else
13093 echo " SH4 translator: $SH4_TRANSLATOR"
13094 fi
13096 if test "x$VIDEO_DRIVERS" = "x"; then
13097 echo " Video drivers: none (no supported GL found)"
13098 else
13099 echo " Video drivers: $VIDEO_DRIVERS"
13100 fi
13102 if test "x$AUDIO_DRIVERS" = "x"; then
13103 echo " Audio drivers: none (no supported output devices found)"
13104 else
13105 echo " Audio drivers: $AUDIO_DRIVERS"
13106 fi
13108 if test "x$CDROM_DRIVER" = "x"; then
13109 echo " CD-ROM driver: none (no supported cd-rom devices found)"
13110 else
13111 echo " CD-ROM driver: $CDROM_DRIVER"
13112 fi
.