filename | configure |
changeset | 664:728508bb08df |
prev | 660:d1b2695347c6 |
next | 671:a530ea88eebd |
author | nkeynes |
date | Sat Apr 19 00:36:36 2008 +0000 (15 years ago) |
permissions | -rwxr-xr-x |
last change | Move glsl setup out of the drivers Move pvr2 setup call up to video_gtk (probably needs to go higher really) |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
252 fi
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
273 fi
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
336 fi
338 fi
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
668 AWK
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 MAINTAINER_MODE_TRUE
675 MAINTAINER_MODE_FALSE
676 MAINT
677 CC
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
684 DEPDIR
685 am__include
686 am__quote
687 AMDEP_TRUE
688 AMDEP_FALSE
689 AMDEPBACKSLASH
690 CCDEPMODE
691 am__fastdepCC_TRUE
692 am__fastdepCC_FALSE
693 CCAS
694 CCASFLAGS
695 CPP
696 GREP
697 EGREP
698 build
699 build_cpu
700 build_vendor
701 build_os
702 host
703 host_cpu
704 host_vendor
705 host_os
706 GUI_COCOA_TRUE
707 GUI_COCOA_FALSE
708 PKG_CONFIG
709 LIBPNG_CFLAGS
710 LIBPNG_LIBS
711 GTK_CFLAGS
712 GTK_LIBS
713 GUI_GTK_TRUE
714 GUI_GTK_FALSE
715 VIDEO_OSMESA_TRUE
716 VIDEO_OSMESA_FALSE
717 VIDEO_GLX_TRUE
718 VIDEO_GLX_FALSE
719 VIDEO_NSGL_TRUE
720 VIDEO_NSGL_FALSE
721 BUILD_SH4X86_TRUE
722 BUILD_SH4X86_FALSE
723 BUILD_X86_64_TRUE
724 BUILD_X86_64_FALSE
725 PULSE_CFLAGS
726 PULSE_LIBS
727 AUDIO_PULSE_TRUE
728 AUDIO_PULSE_FALSE
729 ESOUND_CFLAGS
730 ESOUND_LIBS
731 AUDIO_ESOUND_TRUE
732 AUDIO_ESOUND_FALSE
733 ALSA_CFLAGS
734 ALSA_LIBS
735 AUDIO_ALSA_TRUE
736 AUDIO_ALSA_FALSE
737 CDROM_LINUX_TRUE
738 CDROM_LINUX_FALSE
739 JOY_LINUX_TRUE
740 JOY_LINUX_FALSE
741 SHCC
742 SHLD
743 SHOBJCOPY
744 ARMCC
745 ARMLD
746 ARMOBJCOPY
747 BUILD_SYSTEST_TRUE
748 BUILD_SYSTEST_FALSE
749 BUILD_ARMTEST_TRUE
750 BUILD_ARMTEST_FALSE
751 GETTEXT_PACKAGE
752 USE_NLS
753 MSGFMT
754 MSGFMT_OPTS
755 GMSGFMT
756 XGETTEXT
757 CATALOGS
758 CATOBJEXT
759 DATADIRNAME
760 GMOFILES
761 INSTOBJEXT
762 INTLLIBS
763 PO_IN_DATADIR_TRUE
764 PO_IN_DATADIR_FALSE
765 POFILES
766 POSUB
767 MKINSTALLDIRS
768 LIBOBJS
769 LTLIBOBJS'
770 ac_subst_files=''
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CCAS
780 CCASFLAGS
781 CPP
782 PKG_CONFIG
783 LIBPNG_CFLAGS
784 LIBPNG_LIBS
785 GTK_CFLAGS
786 GTK_LIBS
787 PULSE_CFLAGS
788 PULSE_LIBS
789 ESOUND_CFLAGS
790 ESOUND_LIBS
791 ALSA_CFLAGS
792 ALSA_LIBS'
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
880 --config-cache | -C)
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1111 -with-* | --with-*)
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1150 ;;
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 ;;
1169 esac
1170 done
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1176 fi
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1183 do
1184 eval ac_val=\$$ac_var
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1191 done
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209 fi
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 echo X"$0" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1257 fi
1258 else
1259 ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1270 pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1304 Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348 _ACEOF
1350 cat <<\_ACEOF
1352 Program names:
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1357 System types:
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 _ACEOF
1361 fi
1363 if test -n "$ac_init_help"; then
1365 cat <<\_ACEOF
1367 Optional Features:
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-maintainer-mode enable make rules and dependencies not useful
1371 (and sometimes confusing) to the casual installer
1372 --disable-dependency-tracking speeds up one-time build
1373 --enable-dependency-tracking do not reject slow dependency extractors
1374 --enable-trace Enable generation of IO traces (warning: hurts
1375 performance)
1376 --enable-watch Enable watchpoints in the debugger (warning: hurts
1377 performance)
1379 Optional Packages:
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-osmesa Build with the osmesa GL library (software
1383 rendering)
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1393 CCAS assembler compiler command (defaults to CC)
1394 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1395 CPP C preprocessor
1396 PKG_CONFIG path to pkg-config utility
1397 LIBPNG_CFLAGS
1398 C compiler flags for LIBPNG, overriding pkg-config
1399 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1400 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1401 GTK_LIBS linker flags for GTK, overriding pkg-config
1402 PULSE_CFLAGS
1403 C compiler flags for PULSE, overriding pkg-config
1404 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1405 ESOUND_CFLAGS
1406 C compiler flags for ESOUND, overriding pkg-config
1407 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1408 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1409 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1414 _ACEOF
1415 ac_status=$?
1416 fi
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" || continue
1422 ac_builddir=.
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *)
1427 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433 esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1440 case $srcdir in
1441 .) # We are building in place.
1442 ac_srcdir=.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1449 *) # Relative name.
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1464 else
1465 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466 fi || ac_status=$?
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1468 done
1469 fi
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473 cat <<\_ACEOF
1474 configure
1475 generated by GNU Autoconf 2.61
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482 exit
1483 fi
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.61. Invocation command line was
1491 $ $0 $@
1493 _ACEOF
1494 exec 5>>config.log
1495 {
1496 cat <<_ASUNAME
1497 ## --------- ##
1498 ## Platform. ##
1499 ## --------- ##
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1514 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1518 _ASUNAME
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1522 do
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 echo "PATH: $as_dir"
1526 done
1527 IFS=$as_save_IFS
1529 } >&5
1531 cat >&5 <<_ACEOF
1534 ## ----------- ##
1535 ## Core tests. ##
1536 ## ----------- ##
1538 _ACEOF
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1546 ac_configure_args=
1547 ac_configure_args0=
1548 ac_configure_args1=
1549 ac_must_keep_next=false
1550 for ac_pass in 1 2
1551 do
1552 for ac_arg
1553 do
1554 case $ac_arg in
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1558 continue ;;
1559 *\'*)
1560 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1561 esac
1562 case $ac_pass in
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1564 2)
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1568 else
1569 case $ac_arg in
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1576 esac
1577 ;;
1578 -* ) ac_must_keep_next=true ;;
1579 esac
1580 fi
1581 ac_configure_args="$ac_configure_args '$ac_arg'"
1582 ;;
1583 esac
1584 done
1585 done
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log. We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1596 {
1597 echo
1599 cat <<\_ASBOX
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1603 _ASBOX
1604 echo
1605 # The following way of writing the cache mishandles newlines in values,
1606 (
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1609 case $ac_val in #(
1610 *${as_nl}*)
1611 case $ac_var in #(
1612 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1614 esac
1615 case $ac_var in #(
1616 _ | IFS | as_nl) ;; #(
1617 *) $as_unset $ac_var ;;
1618 esac ;;
1619 esac
1620 done
1621 (set) 2>&1 |
1622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1623 *${as_nl}ac_space=\ *)
1624 sed -n \
1625 "s/'\''/'\''\\\\'\'''\''/g;
1626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1627 ;; #(
1628 *)
1629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1630 ;;
1631 esac |
1632 sort
1633 )
1634 echo
1636 cat <<\_ASBOX
1637 ## ----------------- ##
1638 ## Output variables. ##
1639 ## ----------------- ##
1640 _ASBOX
1641 echo
1642 for ac_var in $ac_subst_vars
1643 do
1644 eval ac_val=\$$ac_var
1645 case $ac_val in
1646 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647 esac
1648 echo "$ac_var='\''$ac_val'\''"
1649 done | sort
1650 echo
1652 if test -n "$ac_subst_files"; then
1653 cat <<\_ASBOX
1654 ## ------------------- ##
1655 ## File substitutions. ##
1656 ## ------------------- ##
1657 _ASBOX
1658 echo
1659 for ac_var in $ac_subst_files
1660 do
1661 eval ac_val=\$$ac_var
1662 case $ac_val in
1663 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1664 esac
1665 echo "$ac_var='\''$ac_val'\''"
1666 done | sort
1667 echo
1668 fi
1670 if test -s confdefs.h; then
1671 cat <<\_ASBOX
1672 ## ----------- ##
1673 ## confdefs.h. ##
1674 ## ----------- ##
1675 _ASBOX
1676 echo
1677 cat confdefs.h
1678 echo
1679 fi
1680 test "$ac_signal" != 0 &&
1681 echo "$as_me: caught signal $ac_signal"
1682 echo "$as_me: exit $exit_status"
1683 } >&5
1684 rm -f core *.core core.conftest.* &&
1685 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1686 exit $exit_status
1687 ' 0
1688 for ac_signal in 1 2 13 15; do
1689 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1690 done
1691 ac_signal=0
1693 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1694 rm -f -r conftest* confdefs.h
1696 # Predefined preprocessor variables.
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_NAME "$PACKAGE_NAME"
1700 _ACEOF
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1705 _ACEOF
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1710 _ACEOF
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_STRING "$PACKAGE_STRING"
1715 _ACEOF
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1720 _ACEOF
1723 # Let the site file select an alternate cache file if it wants to.
1724 # Prefer explicitly selected file to automatically selected ones.
1725 if test -n "$CONFIG_SITE"; then
1726 set x "$CONFIG_SITE"
1727 elif test "x$prefix" != xNONE; then
1728 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1729 else
1730 set x "$ac_default_prefix/share/config.site" \
1731 "$ac_default_prefix/etc/config.site"
1732 fi
1733 shift
1734 for ac_site_file
1735 do
1736 if test -r "$ac_site_file"; then
1737 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1738 echo "$as_me: loading site script $ac_site_file" >&6;}
1739 sed 's/^/| /' "$ac_site_file" >&5
1740 . "$ac_site_file"
1741 fi
1742 done
1744 if test -r "$cache_file"; then
1745 # Some versions of bash will fail to source /dev/null (special
1746 # files actually), so we avoid doing that.
1747 if test -f "$cache_file"; then
1748 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1749 echo "$as_me: loading cache $cache_file" >&6;}
1750 case $cache_file in
1751 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1752 *) . "./$cache_file";;
1753 esac
1754 fi
1755 else
1756 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1757 echo "$as_me: creating cache $cache_file" >&6;}
1758 >$cache_file
1759 fi
1761 # Check that the precious variables saved in the cache have kept the same
1762 # value.
1763 ac_cache_corrupted=false
1764 for ac_var in $ac_precious_vars; do
1765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1766 eval ac_new_set=\$ac_env_${ac_var}_set
1767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1768 eval ac_new_val=\$ac_env_${ac_var}_value
1769 case $ac_old_set,$ac_new_set in
1770 set,)
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1772 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1774 ,set)
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1778 ,);;
1779 *)
1780 if test "x$ac_old_val" != "x$ac_new_val"; then
1781 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1782 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1783 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1784 echo "$as_me: former value: $ac_old_val" >&2;}
1785 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1786 echo "$as_me: current value: $ac_new_val" >&2;}
1787 ac_cache_corrupted=:
1788 fi;;
1789 esac
1790 # Pass precious variables to config.status.
1791 if test "$ac_new_set" = set; then
1792 case $ac_new_val in
1793 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1794 *) ac_arg=$ac_var=$ac_new_val ;;
1795 esac
1796 case " $ac_configure_args " in
1797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1798 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1799 esac
1800 fi
1801 done
1802 if $ac_cache_corrupted; then
1803 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1804 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1805 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1806 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1807 { (exit 1); exit 1; }; }
1808 fi
1826 ac_ext=c
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833 am__api_version="1.9"
1834 ac_aux_dir=
1835 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1836 if test -f "$ac_dir/install-sh"; then
1837 ac_aux_dir=$ac_dir
1838 ac_install_sh="$ac_aux_dir/install-sh -c"
1839 break
1840 elif test -f "$ac_dir/install.sh"; then
1841 ac_aux_dir=$ac_dir
1842 ac_install_sh="$ac_aux_dir/install.sh -c"
1843 break
1844 elif test -f "$ac_dir/shtool"; then
1845 ac_aux_dir=$ac_dir
1846 ac_install_sh="$ac_aux_dir/shtool install -c"
1847 break
1848 fi
1849 done
1850 if test -z "$ac_aux_dir"; then
1851 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1852 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1853 { (exit 1); exit 1; }; }
1854 fi
1856 # These three variables are undocumented and unsupported,
1857 # and are intended to be withdrawn in a future Autoconf release.
1858 # They can cause serious problems if a builder's source tree is in a directory
1859 # whose full name contains unusual characters.
1860 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1861 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1862 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1865 # Find a good install program. We prefer a C program (faster),
1866 # so one script is as good as another. But avoid the broken or
1867 # incompatible versions:
1868 # SysV /etc/install, /usr/sbin/install
1869 # SunOS /usr/etc/install
1870 # IRIX /sbin/install
1871 # AIX /bin/install
1872 # AmigaOS /C/install, which installs bootblocks on floppy discs
1873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1876 # OS/2's system install, which has a completely different semantic
1877 # ./install, which can be erroneously created by make from ./install.sh.
1878 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1880 if test -z "$INSTALL"; then
1881 if test "${ac_cv_path_install+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 # Account for people who put trailing slashes in PATH elements.
1890 case $as_dir/ in
1891 ./ | .// | /cC/* | \
1892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1894 /usr/ucb/* ) ;;
1895 *)
1896 # OSF1 and SCO ODT 3.0 have their own names for install.
1897 # Don't use installbsd from OSF since it installs stuff as root
1898 # by default.
1899 for ac_prog in ginstall scoinst install; do
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1902 if test $ac_prog = install &&
1903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1904 # AIX install. It has an incompatible calling convention.
1905 :
1906 elif test $ac_prog = install &&
1907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1908 # program-specific install script used by HP pwplus--don't use.
1909 :
1910 else
1911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1912 break 3
1913 fi
1914 fi
1915 done
1916 done
1917 ;;
1918 esac
1919 done
1920 IFS=$as_save_IFS
1923 fi
1924 if test "${ac_cv_path_install+set}" = set; then
1925 INSTALL=$ac_cv_path_install
1926 else
1927 # As a last resort, use the slow shell script. Don't cache a
1928 # value for INSTALL within a source directory, because that will
1929 # break other packages using the cache if that directory is
1930 # removed, or if the value is a relative name.
1931 INSTALL=$ac_install_sh
1932 fi
1933 fi
1934 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1935 echo "${ECHO_T}$INSTALL" >&6; }
1937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1938 # It thinks the first close brace ends the variable substitution.
1939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1945 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1946 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1947 # Just in case
1948 sleep 1
1949 echo timestamp > conftest.file
1950 # Do `set' in a subshell so we don't clobber the current shell's
1951 # arguments. Must try -L first in case configure is actually a
1952 # symlink; some systems play weird games with the mod time of symlinks
1953 # (eg FreeBSD returns the mod time of the symlink's containing
1954 # directory).
1955 if (
1956 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1957 if test "$*" = "X"; then
1958 # -L didn't work.
1959 set X `ls -t $srcdir/configure conftest.file`
1960 fi
1961 rm -f conftest.file
1962 if test "$*" != "X $srcdir/configure conftest.file" \
1963 && test "$*" != "X conftest.file $srcdir/configure"; then
1965 # If neither matched, then we have a broken ls. This can happen
1966 # if, for instance, CONFIG_SHELL is bash and it inherits a
1967 # broken ls alias from the environment. This has actually
1968 # happened. Such a system could not be considered "sane".
1969 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1970 alias in your environment" >&5
1971 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1972 alias in your environment" >&2;}
1973 { (exit 1); exit 1; }; }
1974 fi
1976 test "$2" = conftest.file
1977 )
1978 then
1979 # Ok.
1980 :
1981 else
1982 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1983 Check your system clock" >&5
1984 echo "$as_me: error: newly created file is older than distributed files!
1985 Check your system clock" >&2;}
1986 { (exit 1); exit 1; }; }
1987 fi
1988 { echo "$as_me:$LINENO: result: yes" >&5
1989 echo "${ECHO_T}yes" >&6; }
1990 test "$program_prefix" != NONE &&
1991 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1992 # Use a double $ so make ignores it.
1993 test "$program_suffix" != NONE &&
1994 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1995 # Double any \ or $. echo might interpret backslashes.
1996 # By default was `s,x,x', remove it if useless.
1997 cat <<\_ACEOF >conftest.sed
1998 s/[\\$]/&&/g;s/;s,x,x,$//
1999 _ACEOF
2000 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2001 rm -f conftest.sed
2003 # expand $ac_aux_dir to an absolute path
2004 am_aux_dir=`cd $ac_aux_dir && pwd`
2006 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2007 # Use eval to expand $SHELL
2008 if eval "$MISSING --run true"; then
2009 am_missing_run="$MISSING --run "
2010 else
2011 am_missing_run=
2012 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2013 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2014 fi
2016 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2017 # We used to keeping the `.' as first argument, in order to
2018 # allow $(mkdir_p) to be used without argument. As in
2019 # $(mkdir_p) $(somedir)
2020 # where $(somedir) is conditionally defined. However this is wrong
2021 # for two reasons:
2022 # 1. if the package is installed by a user who cannot write `.'
2023 # make install will fail,
2024 # 2. the above comment should most certainly read
2025 # $(mkdir_p) $(DESTDIR)$(somedir)
2026 # so it does not work when $(somedir) is undefined and
2027 # $(DESTDIR) is not.
2028 # To support the latter case, we have to write
2029 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2030 # so the `.' trick is pointless.
2031 mkdir_p='mkdir -p --'
2032 else
2033 # On NextStep and OpenStep, the `mkdir' command does not
2034 # recognize any option. It will interpret all options as
2035 # directories to create, and then abort because `.' already
2036 # exists.
2037 for d in ./-p ./--version;
2038 do
2039 test -d $d && rmdir $d
2040 done
2041 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2042 if test -f "$ac_aux_dir/mkinstalldirs"; then
2043 mkdir_p='$(mkinstalldirs)'
2044 else
2045 mkdir_p='$(install_sh) -d'
2046 fi
2047 fi
2049 for ac_prog in gawk mawk nawk awk
2050 do
2051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_AWK+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$AWK"; then
2059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 ac_cv_prog_AWK="$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2071 fi
2072 done
2073 done
2074 IFS=$as_save_IFS
2076 fi
2077 fi
2078 AWK=$ac_cv_prog_AWK
2079 if test -n "$AWK"; then
2080 { echo "$as_me:$LINENO: result: $AWK" >&5
2081 echo "${ECHO_T}$AWK" >&6; }
2082 else
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2088 test -n "$AWK" && break
2089 done
2091 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2092 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2093 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2094 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 cat >conftest.make <<\_ACEOF
2098 SHELL = /bin/sh
2099 all:
2100 @echo '@@@%%%=$(MAKE)=@@@%%%'
2101 _ACEOF
2102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2104 *@@@%%%=?*=@@@%%%*)
2105 eval ac_cv_prog_make_${ac_make}_set=yes;;
2106 *)
2107 eval ac_cv_prog_make_${ac_make}_set=no;;
2108 esac
2109 rm -f conftest.make
2110 fi
2111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2112 { echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6; }
2114 SET_MAKE=
2115 else
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2118 SET_MAKE="MAKE=${MAKE-make}"
2119 fi
2121 rm -rf .tst 2>/dev/null
2122 mkdir .tst 2>/dev/null
2123 if test -d .tst; then
2124 am__leading_dot=.
2125 else
2126 am__leading_dot=_
2127 fi
2128 rmdir .tst 2>/dev/null
2130 # test to see if srcdir already configured
2131 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2132 test -f $srcdir/config.status; then
2133 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2134 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2135 { (exit 1); exit 1; }; }
2136 fi
2138 # test whether we have cygpath
2139 if test -z "$CYGPATH_W"; then
2140 if (cygpath --version) >/dev/null 2>/dev/null; then
2141 CYGPATH_W='cygpath -w'
2142 else
2143 CYGPATH_W=echo
2144 fi
2145 fi
2148 # Define the identity of the package.
2149 PACKAGE=lxdream
2150 VERSION=0.8.1
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE "$PACKAGE"
2155 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define VERSION "$VERSION"
2160 _ACEOF
2162 # Some tools Automake needs.
2164 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2167 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2170 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2173 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2176 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2178 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2180 # Installed binaries are usually stripped using `strip' when the user
2181 # run `make install-strip'. However `strip' might not be the right
2182 # tool to use in cross-compilation environments, therefore Automake
2183 # will honor the `STRIP' environment variable to overrule this program.
2184 if test "$cross_compiling" != no; then
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}strip; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_STRIP+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$STRIP"; then
2194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207 done
2208 done
2209 IFS=$as_save_IFS
2211 fi
2212 fi
2213 STRIP=$ac_cv_prog_STRIP
2214 if test -n "$STRIP"; then
2215 { echo "$as_me:$LINENO: result: $STRIP" >&5
2216 echo "${ECHO_T}$STRIP" >&6; }
2217 else
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2220 fi
2223 fi
2224 if test -z "$ac_cv_prog_STRIP"; then
2225 ac_ct_STRIP=$STRIP
2226 # Extract the first word of "strip", so it can be a program name with args.
2227 set dummy strip; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$ac_ct_STRIP"; then
2234 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_ac_ct_STRIP="strip"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2246 fi
2247 done
2248 done
2249 IFS=$as_save_IFS
2251 fi
2252 fi
2253 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2254 if test -n "$ac_ct_STRIP"; then
2255 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2256 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2257 else
2258 { echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6; }
2260 fi
2262 if test "x$ac_ct_STRIP" = x; then
2263 STRIP=":"
2264 else
2265 case $cross_compiling:$ac_tool_warned in
2266 yes:)
2267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2268 whose name does not start with the host triplet. If you think this
2269 configuration is useful to you, please write to autoconf@gnu.org." >&5
2270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2271 whose name does not start with the host triplet. If you think this
2272 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2273 ac_tool_warned=yes ;;
2274 esac
2275 STRIP=$ac_ct_STRIP
2276 fi
2277 else
2278 STRIP="$ac_cv_prog_STRIP"
2279 fi
2281 fi
2282 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2284 # We need awk for the "check" target. The system "awk" is bad on
2285 # some platforms.
2286 # Always define AMTAR for backward compatibility.
2288 AMTAR=${AMTAR-"${am_missing_run}tar"}
2290 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2296 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2297 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2298 # Check whether --enable-maintainer-mode was given.
2299 if test "${enable_maintainer_mode+set}" = set; then
2300 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2301 else
2302 USE_MAINTAINER_MODE=no
2303 fi
2305 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2306 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2309 if test $USE_MAINTAINER_MODE = yes; then
2310 MAINTAINER_MODE_TRUE=
2311 MAINTAINER_MODE_FALSE='#'
2312 else
2313 MAINTAINER_MODE_TRUE='#'
2314 MAINTAINER_MODE_FALSE=
2315 fi
2317 MAINT=$MAINTAINER_MODE_TRUE
2320 ac_config_headers="$ac_config_headers config.h"
2323 DEPDIR="${am__leading_dot}deps"
2325 ac_config_commands="$ac_config_commands depfiles"
2328 am_make=${MAKE-make}
2329 cat > confinc << 'END'
2330 am__doit:
2331 @echo done
2332 .PHONY: am__doit
2333 END
2334 # If we don't find an include directive, just comment out the code.
2335 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2336 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2337 am__include="#"
2338 am__quote=
2339 _am_result=none
2340 # First try GNU make style include.
2341 echo "include confinc" > confmf
2342 # We grep out `Entering directory' and `Leaving directory'
2343 # messages which can occur if `w' ends up in MAKEFLAGS.
2344 # In particular we don't look at `^make:' because GNU make might
2345 # be invoked under some other name (usually "gmake"), in which
2346 # case it prints its new name instead of `make'.
2347 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2348 am__include=include
2349 am__quote=
2350 _am_result=GNU
2351 fi
2352 # Now try BSD make style include.
2353 if test "$am__include" = "#"; then
2354 echo '.include "confinc"' > confmf
2355 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2356 am__include=.include
2357 am__quote="\""
2358 _am_result=BSD
2359 fi
2360 fi
2363 { echo "$as_me:$LINENO: result: $_am_result" >&5
2364 echo "${ECHO_T}$_am_result" >&6; }
2365 rm -f confinc confmf
2367 # Check whether --enable-dependency-tracking was given.
2368 if test "${enable_dependency_tracking+set}" = set; then
2369 enableval=$enable_dependency_tracking;
2370 fi
2372 if test "x$enable_dependency_tracking" != xno; then
2373 am_depcomp="$ac_aux_dir/depcomp"
2374 AMDEPBACKSLASH='\'
2375 fi
2378 if test "x$enable_dependency_tracking" != xno; then
2379 AMDEP_TRUE=
2380 AMDEP_FALSE='#'
2381 else
2382 AMDEP_TRUE='#'
2383 AMDEP_FALSE=
2384 fi
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393 if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_CC+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2419 fi
2420 fi
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423 { echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6; }
2425 else
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2428 fi
2431 fi
2432 if test -z "$ac_cv_prog_CC"; then
2433 ac_ct_CC=$CC
2434 # Extract the first word of "gcc", so it can be a program name with args.
2435 set dummy gcc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441 if test -n "$ac_ct_CC"; then
2442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_ac_ct_CC="gcc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2459 fi
2460 fi
2461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2462 if test -n "$ac_ct_CC"; then
2463 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2464 echo "${ECHO_T}$ac_ct_CC" >&6; }
2465 else
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2468 fi
2470 if test "x$ac_ct_CC" = x; then
2471 CC=""
2472 else
2473 case $cross_compiling:$ac_tool_warned in
2474 yes:)
2475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&5
2478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet. If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2481 ac_tool_warned=yes ;;
2482 esac
2483 CC=$ac_ct_CC
2484 fi
2485 else
2486 CC="$ac_cv_prog_CC"
2487 fi
2489 if test -z "$CC"; then
2490 if test -n "$ac_tool_prefix"; then
2491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2492 set dummy ${ac_tool_prefix}cc; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 ac_cv_prog_CC="${ac_tool_prefix}cc"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512 done
2513 done
2514 IFS=$as_save_IFS
2516 fi
2517 fi
2518 CC=$ac_cv_prog_CC
2519 if test -n "$CC"; then
2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2522 else
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 fi
2528 fi
2529 fi
2530 if test -z "$CC"; then
2531 # Extract the first word of "cc", so it can be a program name with args.
2532 set dummy cc; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 else
2541 ac_prog_rejected=no
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2550 ac_prog_rejected=yes
2551 continue
2552 fi
2553 ac_cv_prog_CC="cc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2561 if test $ac_prog_rejected = yes; then
2562 # We found a bogon in the path, so make sure we never use it.
2563 set dummy $ac_cv_prog_CC
2564 shift
2565 if test $# != 0; then
2566 # We chose a different compiler from the bogus one.
2567 # However, it has the same basename, so the bogon will be chosen
2568 # first if we set CC to just the basename; use the full file name.
2569 shift
2570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2571 fi
2572 fi
2573 fi
2574 fi
2575 CC=$ac_cv_prog_CC
2576 if test -n "$CC"; then
2577 { echo "$as_me:$LINENO: result: $CC" >&5
2578 echo "${ECHO_T}$CC" >&6; }
2579 else
2580 { echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6; }
2582 fi
2585 fi
2586 if test -z "$CC"; then
2587 if test -n "$ac_tool_prefix"; then
2588 for ac_prog in cl.exe
2589 do
2590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2615 fi
2616 fi
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2624 fi
2627 test -n "$CC" && break
2628 done
2629 fi
2630 if test -z "$CC"; then
2631 ac_ct_CC=$CC
2632 for ac_prog in cl.exe
2633 do
2634 # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$ac_ct_CC"; then
2642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_ac_ct_CC="$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2659 fi
2660 fi
2661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2662 if test -n "$ac_ct_CC"; then
2663 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2664 echo "${ECHO_T}$ac_ct_CC" >&6; }
2665 else
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2668 fi
2671 test -n "$ac_ct_CC" && break
2672 done
2674 if test "x$ac_ct_CC" = x; then
2675 CC=""
2676 else
2677 case $cross_compiling:$ac_tool_warned in
2678 yes:)
2679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&5
2682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2685 ac_tool_warned=yes ;;
2686 esac
2687 CC=$ac_ct_CC
2688 fi
2689 fi
2691 fi
2694 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&5
2696 echo "$as_me: error: no acceptable C compiler found in \$PATH
2697 See \`config.log' for more details." >&2;}
2698 { (exit 1); exit 1; }; }
2700 # Provide some information about the compiler.
2701 echo "$as_me:$LINENO: checking for C compiler version" >&5
2702 ac_compiler=`set X $ac_compile; echo $2`
2703 { (ac_try="$ac_compiler --version >&5"
2704 case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707 esac
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compiler --version >&5") 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }
2713 { (ac_try="$ac_compiler -v >&5"
2714 case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler -v >&5") 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2723 { (ac_try="$ac_compiler -V >&5"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -V >&5") 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2734 cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h. */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2741 int
2742 main ()
2743 {
2745 ;
2746 return 0;
2747 }
2748 _ACEOF
2749 ac_clean_files_save=$ac_clean_files
2750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2751 # Try to create an executable without -o first, disregard a.out.
2752 # It will help us diagnose broken compilers, and finding out an intuition
2753 # of exeext.
2754 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2756 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2757 #
2758 # List of possible output files, starting from the most likely.
2759 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2760 # only as a last resort. b.out is created by i960 compilers.
2761 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2762 #
2763 # The IRIX 6 linker writes into existing files which may not be
2764 # executable, retaining their permissions. Remove them first so a
2765 # subsequent execution test works.
2766 ac_rmfiles=
2767 for ac_file in $ac_files
2768 do
2769 case $ac_file in
2770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2771 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2772 esac
2773 done
2774 rm -f $ac_rmfiles
2776 if { (ac_try="$ac_link_default"
2777 case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_link_default") 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; then
2786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2789 # so that the user can short-circuit this test for compilers unknown to
2790 # Autoconf.
2791 for ac_file in $ac_files ''
2792 do
2793 test -f "$ac_file" || continue
2794 case $ac_file in
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2796 ;;
2797 [ab].out )
2798 # We found the default executable, but exeext='' is most
2799 # certainly right.
2800 break;;
2801 *.* )
2802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2803 then :; else
2804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 fi
2806 # We set ac_cv_exeext here because the later test for it is not
2807 # safe: cross compilers may not add the suffix if given an `-o'
2808 # argument, so we may need to know it at that point already.
2809 # Even if this section looks crufty: it has the advantage of
2810 # actually working.
2811 break;;
2812 * )
2813 break;;
2814 esac
2815 done
2816 test "$ac_cv_exeext" = no && ac_cv_exeext=
2818 else
2819 ac_file=''
2820 fi
2822 { echo "$as_me:$LINENO: result: $ac_file" >&5
2823 echo "${ECHO_T}$ac_file" >&6; }
2824 if test -z "$ac_file"; then
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: C compiler cannot create executables
2831 See \`config.log' for more details." >&2;}
2832 { (exit 77); exit 77; }; }
2833 fi
2835 ac_exeext=$ac_cv_exeext
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 cross_compiling=no
2855 else
2856 if test "$cross_compiling" = maybe; then
2857 cross_compiling=yes
2858 else
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2866 fi
2867 fi
2868 fi
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 # `rm'.
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 break;;
2903 * ) break;;
2904 esac
2905 done
2906 else
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2912 fi
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2920 ac_exeext=$EXEEXT
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2933 int
2934 main ()
2935 {
2937 ;
2938 return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959 done
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2969 fi
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972 fi
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2976 ac_objext=$OBJEXT
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2989 int
2990 main ()
2991 {
2992 #ifndef __GNUC__
2993 choke me
2994 #endif
2996 ;
2997 return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3017 ac_compiler_gnu=yes
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 ac_compiler_gnu=no
3023 fi
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3028 fi
3029 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3030 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3031 GCC=`test $ac_compiler_gnu = yes && echo yes`
3032 ac_test_CFLAGS=${CFLAGS+set}
3033 ac_save_CFLAGS=$CFLAGS
3034 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3036 if test "${ac_cv_prog_cc_g+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 ac_save_c_werror_flag=$ac_c_werror_flag
3040 ac_c_werror_flag=yes
3041 ac_cv_prog_cc_g=no
3042 CFLAGS="-g"
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3050 int
3051 main ()
3052 {
3054 ;
3055 return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3075 ac_cv_prog_cc_g=yes
3076 else
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 CFLAGS=""
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3088 int
3089 main ()
3090 {
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 :
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_c_werror_flag=$ac_save_c_werror_flag
3119 CFLAGS="-g"
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3127 int
3128 main ()
3129 {
3131 ;
3132 return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $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 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_cv_prog_cc_g=yes
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3158 fi
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 fi
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 fi
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 ac_c_werror_flag=$ac_save_c_werror_flag
3168 fi
3169 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3170 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3171 if test "$ac_test_CFLAGS" = set; then
3172 CFLAGS=$ac_save_CFLAGS
3173 elif test $ac_cv_prog_cc_g = yes; then
3174 if test "$GCC" = yes; then
3175 CFLAGS="-g -O2"
3176 else
3177 CFLAGS="-g"
3178 fi
3179 else
3180 if test "$GCC" = yes; then
3181 CFLAGS="-O2"
3182 else
3183 CFLAGS=
3184 fi
3185 fi
3186 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3187 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3188 if test "${ac_cv_prog_cc_c89+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 ac_cv_prog_cc_c89=no
3192 ac_save_CC=$CC
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 #include <stdarg.h>
3200 #include <stdio.h>
3201 #include <sys/types.h>
3202 #include <sys/stat.h>
3203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3204 struct buf { int x; };
3205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3206 static char *e (p, i)
3207 char **p;
3208 int i;
3209 {
3210 return p[i];
3211 }
3212 static char *f (char * (*g) (char **, int), char **p, ...)
3213 {
3214 char *s;
3215 va_list v;
3216 va_start (v,p);
3217 s = g (p, va_arg (v,int));
3218 va_end (v);
3219 return s;
3220 }
3222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3223 function prototypes and stuff, but not '\xHH' hex character constants.
3224 These don't provoke an error unfortunately, instead are silently treated
3225 as 'x'. The following induces an error, until -std is added to get
3226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3227 array size at least. It's necessary to write '\x00'==0 to get something
3228 that's true only with -std. */
3229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3231 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3232 inside strings and character constants. */
3233 #define FOO(x) 'x'
3234 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3236 int test (int i, double x);
3237 struct s1 {int (*f) (int a);};
3238 struct s2 {int (*f) (double a);};
3239 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3240 int argc;
3241 char **argv;
3242 int
3243 main ()
3244 {
3245 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3246 ;
3247 return 0;
3248 }
3249 _ACEOF
3250 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3251 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3252 do
3253 CC="$ac_save_CC $ac_arg"
3254 rm -f conftest.$ac_objext
3255 if { (ac_try="$ac_compile"
3256 case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3271 ac_cv_prog_cc_c89=$ac_arg
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3277 fi
3279 rm -f core conftest.err conftest.$ac_objext
3280 test "x$ac_cv_prog_cc_c89" != "xno" && break
3281 done
3282 rm -f conftest.$ac_ext
3283 CC=$ac_save_CC
3285 fi
3286 # AC_CACHE_VAL
3287 case "x$ac_cv_prog_cc_c89" in
3288 x)
3289 { echo "$as_me:$LINENO: result: none needed" >&5
3290 echo "${ECHO_T}none needed" >&6; } ;;
3291 xno)
3292 { echo "$as_me:$LINENO: result: unsupported" >&5
3293 echo "${ECHO_T}unsupported" >&6; } ;;
3294 *)
3295 CC="$CC $ac_cv_prog_cc_c89"
3296 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3297 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3298 esac
3301 ac_ext=c
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 depcc="$CC" am_compiler_list=
3309 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3310 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3311 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3315 # We make a subdir and do the tests there. Otherwise we can end up
3316 # making bogus files that we don't know about and never remove. For
3317 # instance it was reported that on HP-UX the gcc test will end up
3318 # making a dummy file named `D' -- because `-MD' means `put the output
3319 # in D'.
3320 mkdir conftest.dir
3321 # Copy depcomp to subdir because otherwise we won't find it if we're
3322 # using a relative directory.
3323 cp "$am_depcomp" conftest.dir
3324 cd conftest.dir
3325 # We will build objects and dependencies in a subdirectory because
3326 # it helps to detect inapplicable dependency modes. For instance
3327 # both Tru64's cc and ICC support -MD to output dependencies as a
3328 # side effect of compilation, but ICC will put the dependencies in
3329 # the current directory while Tru64 will put them in the object
3330 # directory.
3331 mkdir sub
3333 am_cv_CC_dependencies_compiler_type=none
3334 if test "$am_compiler_list" = ""; then
3335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3336 fi
3337 for depmode in $am_compiler_list; do
3338 # Setup a source with many dependencies, because some compilers
3339 # like to wrap large dependency lists on column 80 (with \), and
3340 # we should not choose a depcomp mode which is confused by this.
3341 #
3342 # We need to recreate these files for each test, as the compiler may
3343 # overwrite some of them when testing with obscure command lines.
3344 # This happens at least with the AIX C compiler.
3345 : > sub/conftest.c
3346 for i in 1 2 3 4 5 6; do
3347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3349 # Solaris 8's {/usr,}/bin/sh.
3350 touch sub/conftst$i.h
3351 done
3352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3354 case $depmode in
3355 nosideeffect)
3356 # after this tag, mechanisms are not by side-effect, so they'll
3357 # only be used when explicitly requested
3358 if test "x$enable_dependency_tracking" = xyes; then
3359 continue
3360 else
3361 break
3362 fi
3363 ;;
3364 none) break ;;
3365 esac
3366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3367 # mode. It turns out that the SunPro C++ compiler does not properly
3368 # handle `-M -o', and we need to detect this.
3369 if depmode=$depmode \
3370 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3371 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3372 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3373 >/dev/null 2>conftest.err &&
3374 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3375 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3376 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3377 # icc doesn't choke on unknown options, it will just issue warnings
3378 # or remarks (even with -Werror). So we grep stderr for any message
3379 # that says an option was ignored or not supported.
3380 # When given -MP, icc 7.0 and 7.1 complain thusly:
3381 # icc: Command line warning: ignoring option '-M'; no argument required
3382 # The diagnosis changed in icc 8.0:
3383 # icc: Command line remark: option '-MP' not supported
3384 if (grep 'ignoring option' conftest.err ||
3385 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3386 am_cv_CC_dependencies_compiler_type=$depmode
3387 break
3388 fi
3389 fi
3390 done
3392 cd ..
3393 rm -rf conftest.dir
3394 else
3395 am_cv_CC_dependencies_compiler_type=none
3396 fi
3398 fi
3399 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3400 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3401 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3405 if
3406 test "x$enable_dependency_tracking" != xno \
3407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3408 am__fastdepCC_TRUE=
3409 am__fastdepCC_FALSE='#'
3410 else
3411 am__fastdepCC_TRUE='#'
3412 am__fastdepCC_FALSE=
3413 fi
3418 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3419 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3420 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 ac_check_lib_save_LIBS=$LIBS
3424 LIBS="-lcposix $LIBS"
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3432 /* Override any GCC internal prototype to avoid an error.
3433 Use char because int might match the return type of a GCC
3434 builtin and then its argument prototype would still apply. */
3435 #ifdef __cplusplus
3436 extern "C"
3437 #endif
3438 char strerror ();
3439 int
3440 main ()
3441 {
3442 return strerror ();
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.$ac_objext conftest$ac_exeext
3448 if { (ac_try="$ac_link"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_link") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } && {
3461 test -z "$ac_c_werror_flag" ||
3462 test ! -s conftest.err
3463 } && test -s conftest$ac_exeext &&
3464 $as_test_x conftest$ac_exeext; then
3465 ac_cv_lib_cposix_strerror=yes
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 ac_cv_lib_cposix_strerror=no
3471 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3474 conftest$ac_exeext conftest.$ac_ext
3475 LIBS=$ac_check_lib_save_LIBS
3476 fi
3477 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3478 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3479 if test $ac_cv_lib_cposix_strerror = yes; then
3480 LIBS="$LIBS -lcposix"
3481 fi
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { echo "$as_me:$LINENO: result: $CC" >&5
3521 echo "${ECHO_T}$CC" >&6; }
3522 else
3523 { echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6; }
3525 fi
3528 fi
3529 if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3561 echo "${ECHO_T}$ac_ct_CC" >&6; }
3562 else
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565 fi
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3573 whose name does not start with the host triplet. If you think this
3574 configuration is useful to you, please write to autoconf@gnu.org." >&5
3575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3576 whose name does not start with the host triplet. If you think this
3577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580 CC=$ac_ct_CC
3581 fi
3582 else
3583 CC="$ac_cv_prog_CC"
3584 fi
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { echo "$as_me:$LINENO: result: $CC" >&5
3618 echo "${ECHO_T}$CC" >&6; }
3619 else
3620 { echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6; }
3622 fi
3625 fi
3626 fi
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3648 continue
3649 fi
3650 ac_cv_prog_CC="cc"
3651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668 fi
3669 fi
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { echo "$as_me:$LINENO: result: $CC" >&5
3675 echo "${ECHO_T}$CC" >&6; }
3676 else
3677 { echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6; }
3679 fi
3682 fi
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3686 do
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { echo "$as_me:$LINENO: result: $CC" >&5
3717 echo "${ECHO_T}$CC" >&6; }
3718 else
3719 { echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6; }
3721 fi
3724 test -n "$CC" && break
3725 done
3726 fi
3727 if test -z "$CC"; then
3728 ac_ct_CC=$CC
3729 for ac_prog in cl.exe
3730 do
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3756 fi
3757 fi
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761 echo "${ECHO_T}$ac_ct_CC" >&6; }
3762 else
3763 { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3765 fi
3768 test -n "$ac_ct_CC" && break
3769 done
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3777 whose name does not start with the host triplet. If you think this
3778 configuration is useful to you, please write to autoconf@gnu.org." >&5
3779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3780 whose name does not start with the host triplet. If you think this
3781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3782 ac_tool_warned=yes ;;
3783 esac
3784 CC=$ac_ct_CC
3785 fi
3786 fi
3788 fi
3791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3792 See \`config.log' for more details." >&5
3793 echo "$as_me: error: no acceptable C compiler found in \$PATH
3794 See \`config.log' for more details." >&2;}
3795 { (exit 1); exit 1; }; }
3797 # Provide some information about the compiler.
3798 echo "$as_me:$LINENO: checking for C compiler version" >&5
3799 ac_compiler=`set X $ac_compile; echo $2`
3800 { (ac_try="$ac_compiler --version >&5"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compiler --version >&5") 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }
3810 { (ac_try="$ac_compiler -v >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_compiler -v >&5") 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }
3820 { (ac_try="$ac_compiler -V >&5"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_compiler -V >&5") 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }
3831 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3832 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3833 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3843 int
3844 main ()
3845 {
3846 #ifndef __GNUC__
3847 choke me
3848 #endif
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 rm -f conftest.$ac_objext
3855 if { (ac_try="$ac_compile"
3856 case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859 esac
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_compile") 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } && {
3868 test -z "$ac_c_werror_flag" ||
3869 test ! -s conftest.err
3870 } && test -s conftest.$ac_objext; then
3871 ac_compiler_gnu=yes
3872 else
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 ac_compiler_gnu=no
3877 fi
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3882 fi
3883 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3884 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3885 GCC=`test $ac_compiler_gnu = yes && echo yes`
3886 ac_test_CFLAGS=${CFLAGS+set}
3887 ac_save_CFLAGS=$CFLAGS
3888 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3889 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3890 if test "${ac_cv_prog_cc_g+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 ac_save_c_werror_flag=$ac_c_werror_flag
3894 ac_c_werror_flag=yes
3895 ac_cv_prog_cc_g=no
3896 CFLAGS="-g"
3897 cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h. */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3904 int
3905 main ()
3906 {
3908 ;
3909 return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 ac_cv_prog_cc_g=yes
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 CFLAGS=""
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3942 int
3943 main ()
3944 {
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (ac_try="$ac_compile"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3967 :
3968 else
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 ac_c_werror_flag=$ac_save_c_werror_flag
3973 CFLAGS="-g"
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h. */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 int
3982 main ()
3983 {
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 rm -f conftest.$ac_objext
3990 if { (ac_try="$ac_compile"
3991 case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_compile") 2>conftest.er1
3997 ac_status=$?
3998 grep -v '^ *+' conftest.er1 >conftest.err
3999 rm -f conftest.er1
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } && {
4003 test -z "$ac_c_werror_flag" ||
4004 test ! -s conftest.err
4005 } && test -s conftest.$ac_objext; then
4006 ac_cv_prog_cc_g=yes
4007 else
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4012 fi
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 fi
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 ac_c_werror_flag=$ac_save_c_werror_flag
4022 fi
4023 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4024 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4025 if test "$ac_test_CFLAGS" = set; then
4026 CFLAGS=$ac_save_CFLAGS
4027 elif test $ac_cv_prog_cc_g = yes; then
4028 if test "$GCC" = yes; then
4029 CFLAGS="-g -O2"
4030 else
4031 CFLAGS="-g"
4032 fi
4033 else
4034 if test "$GCC" = yes; then
4035 CFLAGS="-O2"
4036 else
4037 CFLAGS=
4038 fi
4039 fi
4040 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4041 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4042 if test "${ac_cv_prog_cc_c89+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 ac_cv_prog_cc_c89=no
4046 ac_save_CC=$CC
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h. */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <stdarg.h>
4054 #include <stdio.h>
4055 #include <sys/types.h>
4056 #include <sys/stat.h>
4057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4058 struct buf { int x; };
4059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4060 static char *e (p, i)
4061 char **p;
4062 int i;
4063 {
4064 return p[i];
4065 }
4066 static char *f (char * (*g) (char **, int), char **p, ...)
4067 {
4068 char *s;
4069 va_list v;
4070 va_start (v,p);
4071 s = g (p, va_arg (v,int));
4072 va_end (v);
4073 return s;
4074 }
4076 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4077 function prototypes and stuff, but not '\xHH' hex character constants.
4078 These don't provoke an error unfortunately, instead are silently treated
4079 as 'x'. The following induces an error, until -std is added to get
4080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4081 array size at least. It's necessary to write '\x00'==0 to get something
4082 that's true only with -std. */
4083 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4085 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4086 inside strings and character constants. */
4087 #define FOO(x) 'x'
4088 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4090 int test (int i, double x);
4091 struct s1 {int (*f) (int a);};
4092 struct s2 {int (*f) (double a);};
4093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4094 int argc;
4095 char **argv;
4096 int
4097 main ()
4098 {
4099 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4105 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4106 do
4107 CC="$ac_save_CC $ac_arg"
4108 rm -f conftest.$ac_objext
4109 if { (ac_try="$ac_compile"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval "echo \"\$as_me:$LINENO: $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 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 ac_cv_prog_cc_c89=$ac_arg
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4131 fi
4133 rm -f core conftest.err conftest.$ac_objext
4134 test "x$ac_cv_prog_cc_c89" != "xno" && break
4135 done
4136 rm -f conftest.$ac_ext
4137 CC=$ac_save_CC
4139 fi
4140 # AC_CACHE_VAL
4141 case "x$ac_cv_prog_cc_c89" in
4142 x)
4143 { echo "$as_me:$LINENO: result: none needed" >&5
4144 echo "${ECHO_T}none needed" >&6; } ;;
4145 xno)
4146 { echo "$as_me:$LINENO: result: unsupported" >&5
4147 echo "${ECHO_T}unsupported" >&6; } ;;
4148 *)
4149 CC="$CC $ac_cv_prog_cc_c89"
4150 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4151 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4152 esac
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 depcc="$CC" am_compiler_list=
4163 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4164 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4165 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4169 # We make a subdir and do the tests there. Otherwise we can end up
4170 # making bogus files that we don't know about and never remove. For
4171 # instance it was reported that on HP-UX the gcc test will end up
4172 # making a dummy file named `D' -- because `-MD' means `put the output
4173 # in D'.
4174 mkdir conftest.dir
4175 # Copy depcomp to subdir because otherwise we won't find it if we're
4176 # using a relative directory.
4177 cp "$am_depcomp" conftest.dir
4178 cd conftest.dir
4179 # We will build objects and dependencies in a subdirectory because
4180 # it helps to detect inapplicable dependency modes. For instance
4181 # both Tru64's cc and ICC support -MD to output dependencies as a
4182 # side effect of compilation, but ICC will put the dependencies in
4183 # the current directory while Tru64 will put them in the object
4184 # directory.
4185 mkdir sub
4187 am_cv_CC_dependencies_compiler_type=none
4188 if test "$am_compiler_list" = ""; then
4189 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4190 fi
4191 for depmode in $am_compiler_list; do
4192 # Setup a source with many dependencies, because some compilers
4193 # like to wrap large dependency lists on column 80 (with \), and
4194 # we should not choose a depcomp mode which is confused by this.
4195 #
4196 # We need to recreate these files for each test, as the compiler may
4197 # overwrite some of them when testing with obscure command lines.
4198 # This happens at least with the AIX C compiler.
4199 : > sub/conftest.c
4200 for i in 1 2 3 4 5 6; do
4201 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4202 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4203 # Solaris 8's {/usr,}/bin/sh.
4204 touch sub/conftst$i.h
4205 done
4206 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4208 case $depmode in
4209 nosideeffect)
4210 # after this tag, mechanisms are not by side-effect, so they'll
4211 # only be used when explicitly requested
4212 if test "x$enable_dependency_tracking" = xyes; then
4213 continue
4214 else
4215 break
4216 fi
4217 ;;
4218 none) break ;;
4219 esac
4220 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4221 # mode. It turns out that the SunPro C++ compiler does not properly
4222 # handle `-M -o', and we need to detect this.
4223 if depmode=$depmode \
4224 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4226 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4227 >/dev/null 2>conftest.err &&
4228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4229 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4231 # icc doesn't choke on unknown options, it will just issue warnings
4232 # or remarks (even with -Werror). So we grep stderr for any message
4233 # that says an option was ignored or not supported.
4234 # When given -MP, icc 7.0 and 7.1 complain thusly:
4235 # icc: Command line warning: ignoring option '-M'; no argument required
4236 # The diagnosis changed in icc 8.0:
4237 # icc: Command line remark: option '-MP' not supported
4238 if (grep 'ignoring option' conftest.err ||
4239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4240 am_cv_CC_dependencies_compiler_type=$depmode
4241 break
4242 fi
4243 fi
4244 done
4246 cd ..
4247 rm -rf conftest.dir
4248 else
4249 am_cv_CC_dependencies_compiler_type=none
4250 fi
4252 fi
4253 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4254 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4259 if
4260 test "x$enable_dependency_tracking" != xno \
4261 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4262 am__fastdepCC_TRUE=
4263 am__fastdepCC_FALSE='#'
4264 else
4265 am__fastdepCC_TRUE='#'
4266 am__fastdepCC_FALSE=
4267 fi
4270 ac_ext=c
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 if test -n "$ac_tool_prefix"; then
4276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4280 if test "${ac_cv_prog_CC+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283 if test -n "$CC"; then
4284 ac_cv_prog_CC="$CC" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4296 fi
4297 done
4298 done
4299 IFS=$as_save_IFS
4301 fi
4302 fi
4303 CC=$ac_cv_prog_CC
4304 if test -n "$CC"; then
4305 { echo "$as_me:$LINENO: result: $CC" >&5
4306 echo "${ECHO_T}$CC" >&6; }
4307 else
4308 { echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; }
4310 fi
4313 fi
4314 if test -z "$ac_cv_prog_CC"; then
4315 ac_ct_CC=$CC
4316 # Extract the first word of "gcc", so it can be a program name with args.
4317 set dummy gcc; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$ac_ct_CC"; then
4324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_ac_ct_CC="gcc"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337 done
4338 done
4339 IFS=$as_save_IFS
4341 fi
4342 fi
4343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4344 if test -n "$ac_ct_CC"; then
4345 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4346 echo "${ECHO_T}$ac_ct_CC" >&6; }
4347 else
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4350 fi
4352 if test "x$ac_ct_CC" = x; then
4353 CC=""
4354 else
4355 case $cross_compiling:$ac_tool_warned in
4356 yes:)
4357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4358 whose name does not start with the host triplet. If you think this
4359 configuration is useful to you, please write to autoconf@gnu.org." >&5
4360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4361 whose name does not start with the host triplet. If you think this
4362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4363 ac_tool_warned=yes ;;
4364 esac
4365 CC=$ac_ct_CC
4366 fi
4367 else
4368 CC="$ac_cv_prog_CC"
4369 fi
4371 if test -z "$CC"; then
4372 if test -n "$ac_tool_prefix"; then
4373 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4374 set dummy ${ac_tool_prefix}cc; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_CC+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 if test -n "$CC"; then
4381 ac_cv_prog_CC="$CC" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_CC="${ac_tool_prefix}cc"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4398 fi
4399 fi
4400 CC=$ac_cv_prog_CC
4401 if test -n "$CC"; then
4402 { echo "$as_me:$LINENO: result: $CC" >&5
4403 echo "${ECHO_T}$CC" >&6; }
4404 else
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407 fi
4410 fi
4411 fi
4412 if test -z "$CC"; then
4413 # Extract the first word of "cc", so it can be a program name with args.
4414 set dummy cc; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_CC+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
4422 else
4423 ac_prog_rejected=no
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4432 ac_prog_rejected=yes
4433 continue
4434 fi
4435 ac_cv_prog_CC="cc"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4438 fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4443 if test $ac_prog_rejected = yes; then
4444 # We found a bogon in the path, so make sure we never use it.
4445 set dummy $ac_cv_prog_CC
4446 shift
4447 if test $# != 0; then
4448 # We chose a different compiler from the bogus one.
4449 # However, it has the same basename, so the bogon will be chosen
4450 # first if we set CC to just the basename; use the full file name.
4451 shift
4452 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4453 fi
4454 fi
4455 fi
4456 fi
4457 CC=$ac_cv_prog_CC
4458 if test -n "$CC"; then
4459 { echo "$as_me:$LINENO: result: $CC" >&5
4460 echo "${ECHO_T}$CC" >&6; }
4461 else
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4464 fi
4467 fi
4468 if test -z "$CC"; then
4469 if test -n "$ac_tool_prefix"; then
4470 for ac_prog in cl.exe
4471 do
4472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 if test -n "$CC"; then
4480 ac_cv_prog_CC="$CC" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4497 fi
4498 fi
4499 CC=$ac_cv_prog_CC
4500 if test -n "$CC"; then
4501 { echo "$as_me:$LINENO: result: $CC" >&5
4502 echo "${ECHO_T}$CC" >&6; }
4503 else
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 fi
4509 test -n "$CC" && break
4510 done
4511 fi
4512 if test -z "$CC"; then
4513 ac_ct_CC=$CC
4514 for ac_prog in cl.exe
4515 do
4516 # Extract the first word of "$ac_prog", so it can be a program name with args.
4517 set dummy $ac_prog; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$ac_ct_CC"; then
4524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_ac_ct_CC="$ac_prog"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4541 fi
4542 fi
4543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4544 if test -n "$ac_ct_CC"; then
4545 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4546 echo "${ECHO_T}$ac_ct_CC" >&6; }
4547 else
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4550 fi
4553 test -n "$ac_ct_CC" && break
4554 done
4556 if test "x$ac_ct_CC" = x; then
4557 CC=""
4558 else
4559 case $cross_compiling:$ac_tool_warned in
4560 yes:)
4561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4562 whose name does not start with the host triplet. If you think this
4563 configuration is useful to you, please write to autoconf@gnu.org." >&5
4564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4565 whose name does not start with the host triplet. If you think this
4566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4567 ac_tool_warned=yes ;;
4568 esac
4569 CC=$ac_ct_CC
4570 fi
4571 fi
4573 fi
4576 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4577 See \`config.log' for more details." >&5
4578 echo "$as_me: error: no acceptable C compiler found in \$PATH
4579 See \`config.log' for more details." >&2;}
4580 { (exit 1); exit 1; }; }
4582 # Provide some information about the compiler.
4583 echo "$as_me:$LINENO: checking for C compiler version" >&5
4584 ac_compiler=`set X $ac_compile; echo $2`
4585 { (ac_try="$ac_compiler --version >&5"
4586 case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_compiler --version >&5") 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595 { (ac_try="$ac_compiler -v >&5"
4596 case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599 esac
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_compiler -v >&5") 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }
4605 { (ac_try="$ac_compiler -V >&5"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compiler -V >&5") 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }
4616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h. */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4628 int
4629 main ()
4630 {
4631 #ifndef __GNUC__
4632 choke me
4633 #endif
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4656 ac_compiler_gnu=yes
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 ac_compiler_gnu=no
4662 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4667 fi
4668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4670 GCC=`test $ac_compiler_gnu = yes && echo yes`
4671 ac_test_CFLAGS=${CFLAGS+set}
4672 ac_save_CFLAGS=$CFLAGS
4673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_cc_g+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 ac_save_c_werror_flag=$ac_c_werror_flag
4679 ac_c_werror_flag=yes
4680 ac_cv_prog_cc_g=no
4681 CFLAGS="-g"
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 int
4690 main ()
4691 {
4693 ;
4694 return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (ac_try="$ac_compile"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_compile") 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && {
4711 test -z "$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4713 } && test -s conftest.$ac_objext; then
4714 ac_cv_prog_cc_g=yes
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 CFLAGS=""
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4727 int
4728 main ()
4729 {
4731 ;
4732 return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_compile") 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && {
4749 test -z "$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4751 } && test -s conftest.$ac_objext; then
4752 :
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4758 CFLAGS="-g"
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h. */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4766 int
4767 main ()
4768 {
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 rm -f conftest.$ac_objext
4775 if { (ac_try="$ac_compile"
4776 case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779 esac
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_compile") 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && {
4788 test -z "$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 } && test -s conftest.$ac_objext; then
4791 ac_cv_prog_cc_g=yes
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4797 fi
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4807 fi
4808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4810 if test "$ac_test_CFLAGS" = set; then
4811 CFLAGS=$ac_save_CFLAGS
4812 elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4814 CFLAGS="-g -O2"
4815 else
4816 CFLAGS="-g"
4817 fi
4818 else
4819 if test "$GCC" = yes; then
4820 CFLAGS="-O2"
4821 else
4822 CFLAGS=
4823 fi
4824 fi
4825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_cc_c89+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830 ac_cv_prog_cc_c89=no
4831 ac_save_CC=$CC
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #include <stdarg.h>
4839 #include <stdio.h>
4840 #include <sys/types.h>
4841 #include <sys/stat.h>
4842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4843 struct buf { int x; };
4844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4845 static char *e (p, i)
4846 char **p;
4847 int i;
4848 {
4849 return p[i];
4850 }
4851 static char *f (char * (*g) (char **, int), char **p, ...)
4852 {
4853 char *s;
4854 va_list v;
4855 va_start (v,p);
4856 s = g (p, va_arg (v,int));
4857 va_end (v);
4858 return s;
4859 }
4861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4862 function prototypes and stuff, but not '\xHH' hex character constants.
4863 These don't provoke an error unfortunately, instead are silently treated
4864 as 'x'. The following induces an error, until -std is added to get
4865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4866 array size at least. It's necessary to write '\x00'==0 to get something
4867 that's true only with -std. */
4868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4871 inside strings and character constants. */
4872 #define FOO(x) 'x'
4873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4875 int test (int i, double x);
4876 struct s1 {int (*f) (int a);};
4877 struct s2 {int (*f) (double a);};
4878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4879 int argc;
4880 char **argv;
4881 int
4882 main ()
4883 {
4884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4891 do
4892 CC="$ac_save_CC $ac_arg"
4893 rm -f conftest.$ac_objext
4894 if { (ac_try="$ac_compile"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_compile") 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && {
4907 test -z "$ac_c_werror_flag" ||
4908 test ! -s conftest.err
4909 } && test -s conftest.$ac_objext; then
4910 ac_cv_prog_cc_c89=$ac_arg
4911 else
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4916 fi
4918 rm -f core conftest.err conftest.$ac_objext
4919 test "x$ac_cv_prog_cc_c89" != "xno" && break
4920 done
4921 rm -f conftest.$ac_ext
4922 CC=$ac_save_CC
4924 fi
4925 # AC_CACHE_VAL
4926 case "x$ac_cv_prog_cc_c89" in
4927 x)
4928 { echo "$as_me:$LINENO: result: none needed" >&5
4929 echo "${ECHO_T}none needed" >&6; } ;;
4930 xno)
4931 { echo "$as_me:$LINENO: result: unsupported" >&5
4932 echo "${ECHO_T}unsupported" >&6; } ;;
4933 *)
4934 CC="$CC $ac_cv_prog_cc_c89"
4935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4937 esac
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 depcc="$CC" am_compiler_list=
4948 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4954 # We make a subdir and do the tests there. Otherwise we can end up
4955 # making bogus files that we don't know about and never remove. For
4956 # instance it was reported that on HP-UX the gcc test will end up
4957 # making a dummy file named `D' -- because `-MD' means `put the output
4958 # in D'.
4959 mkdir conftest.dir
4960 # Copy depcomp to subdir because otherwise we won't find it if we're
4961 # using a relative directory.
4962 cp "$am_depcomp" conftest.dir
4963 cd conftest.dir
4964 # We will build objects and dependencies in a subdirectory because
4965 # it helps to detect inapplicable dependency modes. For instance
4966 # both Tru64's cc and ICC support -MD to output dependencies as a
4967 # side effect of compilation, but ICC will put the dependencies in
4968 # the current directory while Tru64 will put them in the object
4969 # directory.
4970 mkdir sub
4972 am_cv_CC_dependencies_compiler_type=none
4973 if test "$am_compiler_list" = ""; then
4974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4975 fi
4976 for depmode in $am_compiler_list; do
4977 # Setup a source with many dependencies, because some compilers
4978 # like to wrap large dependency lists on column 80 (with \), and
4979 # we should not choose a depcomp mode which is confused by this.
4980 #
4981 # We need to recreate these files for each test, as the compiler may
4982 # overwrite some of them when testing with obscure command lines.
4983 # This happens at least with the AIX C compiler.
4984 : > sub/conftest.c
4985 for i in 1 2 3 4 5 6; do
4986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4988 # Solaris 8's {/usr,}/bin/sh.
4989 touch sub/conftst$i.h
4990 done
4991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4993 case $depmode in
4994 nosideeffect)
4995 # after this tag, mechanisms are not by side-effect, so they'll
4996 # only be used when explicitly requested
4997 if test "x$enable_dependency_tracking" = xyes; then
4998 continue
4999 else
5000 break
5001 fi
5002 ;;
5003 none) break ;;
5004 esac
5005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5006 # mode. It turns out that the SunPro C++ compiler does not properly
5007 # handle `-M -o', and we need to detect this.
5008 if depmode=$depmode \
5009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5012 >/dev/null 2>conftest.err &&
5013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5016 # icc doesn't choke on unknown options, it will just issue warnings
5017 # or remarks (even with -Werror). So we grep stderr for any message
5018 # that says an option was ignored or not supported.
5019 # When given -MP, icc 7.0 and 7.1 complain thusly:
5020 # icc: Command line warning: ignoring option '-M'; no argument required
5021 # The diagnosis changed in icc 8.0:
5022 # icc: Command line remark: option '-MP' not supported
5023 if (grep 'ignoring option' conftest.err ||
5024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5025 am_cv_CC_dependencies_compiler_type=$depmode
5026 break
5027 fi
5028 fi
5029 done
5031 cd ..
5032 rm -rf conftest.dir
5033 else
5034 am_cv_CC_dependencies_compiler_type=none
5035 fi
5037 fi
5038 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5039 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5044 if
5045 test "x$enable_dependency_tracking" != xno \
5046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5047 am__fastdepCC_TRUE=
5048 am__fastdepCC_FALSE='#'
5049 else
5050 am__fastdepCC_TRUE='#'
5051 am__fastdepCC_FALSE=
5052 fi
5056 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5058 # By default we simply use the C compiler to build assembly code.
5060 test "${CCAS+set}" = set || CCAS=$CC
5061 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5071 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5074 CPP=
5075 fi
5076 if test -z "$CPP"; then
5077 if test "${ac_cv_prog_CPP+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082 do
5083 ac_preproc_ok=false
5084 for ac_c_preproc_warn_flag in '' yes
5085 do
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103 Syntax error
5104 _ACEOF
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5106 case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null && {
5118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 }; then
5121 :
5122 else
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 # Broken: fails on valid input.
5127 continue
5128 fi
5130 rm -f conftest.err conftest.$ac_ext
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5141 _ACEOF
5142 if { (ac_try="$ac_cpp conftest.$ac_ext"
5143 case "(($ac_try" in
5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145 *) ac_try_echo=$ac_try;;
5146 esac
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } >/dev/null && {
5155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5156 test ! -s conftest.err
5157 }; then
5158 # Broken: success on invalid input.
5159 continue
5160 else
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 # Passes both tests.
5165 ac_preproc_ok=:
5166 break
5167 fi
5169 rm -f conftest.err conftest.$ac_ext
5171 done
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then
5175 break
5176 fi
5178 done
5179 ac_cv_prog_CPP=$CPP
5181 fi
5182 CPP=$ac_cv_prog_CPP
5183 else
5184 ac_cv_prog_CPP=$CPP
5185 fi
5186 { echo "$as_me:$LINENO: result: $CPP" >&5
5187 echo "${ECHO_T}$CPP" >&6; }
5188 ac_preproc_ok=false
5189 for ac_c_preproc_warn_flag in '' yes
5190 do
5191 # Use a header file that comes with gcc, so configuring glibc
5192 # with a fresh cross-compiler works.
5193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 # <limits.h> exists even on freestanding compilers.
5195 # On the NeXT, cc -E runs the code through the compiler's parser,
5196 # not just through cpp. "Syntax error" is here to catch this case.
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #ifdef __STDC__
5204 # include <limits.h>
5205 #else
5206 # include <assert.h>
5207 #endif
5208 Syntax error
5209 _ACEOF
5210 if { (ac_try="$ac_cpp conftest.$ac_ext"
5211 case "(($ac_try" in
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null && {
5223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 }; then
5226 :
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 # Broken: fails on valid input.
5232 continue
5233 fi
5235 rm -f conftest.err conftest.$ac_ext
5237 # OK, works on sane cases. Now check whether nonexistent headers
5238 # can be detected and how.
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #include <ac_nonexistent.h>
5246 _ACEOF
5247 if { (ac_try="$ac_cpp conftest.$ac_ext"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null && {
5260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5262 }; then
5263 # Broken: success on invalid input.
5264 continue
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 # Passes both tests.
5270 ac_preproc_ok=:
5271 break
5272 fi
5274 rm -f conftest.err conftest.$ac_ext
5276 done
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.err conftest.$ac_ext
5279 if $ac_preproc_ok; then
5280 :
5281 else
5282 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5285 See \`config.log' for more details." >&2;}
5286 { (exit 1); exit 1; }; }
5287 fi
5289 ac_ext=c
5290 ac_cpp='$CPP $CPPFLAGS'
5291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5297 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5298 if test "${ac_cv_path_GREP+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 # Extract the first word of "grep ggrep" to use in msg output
5302 if test -z "$GREP"; then
5303 set dummy grep ggrep; ac_prog_name=$2
5304 if test "${ac_cv_path_GREP+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 ac_path_GREP_found=false
5308 # Loop through the user's path and test for each of PROGNAME-LIST
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_prog in grep ggrep; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5317 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5318 # Check for GNU ac_path_GREP and select it if it is found.
5319 # Check for GNU $ac_path_GREP
5320 case `"$ac_path_GREP" --version 2>&1` in
5321 *GNU*)
5322 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5323 *)
5324 ac_count=0
5325 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5326 while :
5327 do
5328 cat "conftest.in" "conftest.in" >"conftest.tmp"
5329 mv "conftest.tmp" "conftest.in"
5330 cp "conftest.in" "conftest.nl"
5331 echo 'GREP' >> "conftest.nl"
5332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334 ac_count=`expr $ac_count + 1`
5335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5336 # Best one so far, save it but keep looking for a better one
5337 ac_cv_path_GREP="$ac_path_GREP"
5338 ac_path_GREP_max=$ac_count
5339 fi
5340 # 10*(2^10) chars as input seems more than enough
5341 test $ac_count -gt 10 && break
5342 done
5343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344 esac
5347 $ac_path_GREP_found && break 3
5348 done
5349 done
5351 done
5352 IFS=$as_save_IFS
5355 fi
5357 GREP="$ac_cv_path_GREP"
5358 if test -z "$GREP"; then
5359 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5360 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5361 { (exit 1); exit 1; }; }
5362 fi
5364 else
5365 ac_cv_path_GREP=$GREP
5366 fi
5369 fi
5370 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5371 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5372 GREP="$ac_cv_path_GREP"
5375 { echo "$as_me:$LINENO: checking for egrep" >&5
5376 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5377 if test "${ac_cv_path_EGREP+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5381 then ac_cv_path_EGREP="$GREP -E"
5382 else
5383 # Extract the first word of "egrep" to use in msg output
5384 if test -z "$EGREP"; then
5385 set dummy egrep; ac_prog_name=$2
5386 if test "${ac_cv_path_EGREP+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 ac_path_EGREP_found=false
5390 # Loop through the user's path and test for each of PROGNAME-LIST
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393 do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_prog in egrep; do
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5399 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5400 # Check for GNU ac_path_EGREP and select it if it is found.
5401 # Check for GNU $ac_path_EGREP
5402 case `"$ac_path_EGREP" --version 2>&1` in
5403 *GNU*)
5404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5405 *)
5406 ac_count=0
5407 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5408 while :
5409 do
5410 cat "conftest.in" "conftest.in" >"conftest.tmp"
5411 mv "conftest.tmp" "conftest.in"
5412 cp "conftest.in" "conftest.nl"
5413 echo 'EGREP' >> "conftest.nl"
5414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416 ac_count=`expr $ac_count + 1`
5417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5418 # Best one so far, save it but keep looking for a better one
5419 ac_cv_path_EGREP="$ac_path_EGREP"
5420 ac_path_EGREP_max=$ac_count
5421 fi
5422 # 10*(2^10) chars as input seems more than enough
5423 test $ac_count -gt 10 && break
5424 done
5425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5426 esac
5429 $ac_path_EGREP_found && break 3
5430 done
5431 done
5433 done
5434 IFS=$as_save_IFS
5437 fi
5439 EGREP="$ac_cv_path_EGREP"
5440 if test -z "$EGREP"; then
5441 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5442 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5443 { (exit 1); exit 1; }; }
5444 fi
5446 else
5447 ac_cv_path_EGREP=$EGREP
5448 fi
5451 fi
5452 fi
5453 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5454 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5455 EGREP="$ac_cv_path_EGREP"
5458 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5459 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5460 if test "${ac_cv_header_stdc+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #include <stdlib.h>
5470 #include <stdarg.h>
5471 #include <string.h>
5472 #include <float.h>
5474 int
5475 main ()
5476 {
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_cv_header_stdc=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_cv_header_stdc=no
5505 fi
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 if test $ac_cv_header_stdc = yes; then
5510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include <string.h>
5519 _ACEOF
5520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521 $EGREP "memchr" >/dev/null 2>&1; then
5522 :
5523 else
5524 ac_cv_header_stdc=no
5525 fi
5526 rm -f conftest*
5528 fi
5530 if test $ac_cv_header_stdc = yes; then
5531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5532 cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h. */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 #include <stdlib.h>
5540 _ACEOF
5541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542 $EGREP "free" >/dev/null 2>&1; then
5543 :
5544 else
5545 ac_cv_header_stdc=no
5546 fi
5547 rm -f conftest*
5549 fi
5551 if test $ac_cv_header_stdc = yes; then
5552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5553 if test "$cross_compiling" = yes; then
5554 :
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <ctype.h>
5563 #include <stdlib.h>
5564 #if ((' ' & 0x0FF) == 0x020)
5565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5567 #else
5568 # define ISLOWER(c) \
5569 (('a' <= (c) && (c) <= 'i') \
5570 || ('j' <= (c) && (c) <= 'r') \
5571 || ('s' <= (c) && (c) <= 'z'))
5572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5573 #endif
5575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5576 int
5577 main ()
5578 {
5579 int i;
5580 for (i = 0; i < 256; i++)
5581 if (XOR (islower (i), ISLOWER (i))
5582 || toupper (i) != TOUPPER (i))
5583 return 2;
5584 return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest$ac_exeext
5588 if { (ac_try="$ac_link"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_link") 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5598 { (case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_try") 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 :
5608 else
5609 echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ( exit $ac_status )
5614 ac_cv_header_stdc=no
5615 fi
5616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 fi
5620 fi
5621 fi
5622 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5623 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5624 if test $ac_cv_header_stdc = yes; then
5626 cat >>confdefs.h <<\_ACEOF
5627 #define STDC_HEADERS 1
5628 _ACEOF
5630 fi
5632 # Make sure we can run config.sub.
5633 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5634 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5635 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5636 { (exit 1); exit 1; }; }
5638 { echo "$as_me:$LINENO: checking build system type" >&5
5639 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5640 if test "${ac_cv_build+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 ac_build_alias=$build_alias
5644 test "x$ac_build_alias" = x &&
5645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5646 test "x$ac_build_alias" = x &&
5647 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5648 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5649 { (exit 1); exit 1; }; }
5650 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5651 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5652 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5653 { (exit 1); exit 1; }; }
5655 fi
5656 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5657 echo "${ECHO_T}$ac_cv_build" >&6; }
5658 case $ac_cv_build in
5659 *-*-*) ;;
5660 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5661 echo "$as_me: error: invalid value of canonical build" >&2;}
5662 { (exit 1); exit 1; }; };;
5663 esac
5664 build=$ac_cv_build
5665 ac_save_IFS=$IFS; IFS='-'
5666 set x $ac_cv_build
5667 shift
5668 build_cpu=$1
5669 build_vendor=$2
5670 shift; shift
5671 # Remember, the first character of IFS is used to create $*,
5672 # except with old shells:
5673 build_os=$*
5674 IFS=$ac_save_IFS
5675 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5678 { echo "$as_me:$LINENO: checking host system type" >&5
5679 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5680 if test "${ac_cv_host+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if test "x$host_alias" = x; then
5684 ac_cv_host=$ac_cv_build
5685 else
5686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5687 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5688 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5689 { (exit 1); exit 1; }; }
5690 fi
5692 fi
5693 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5694 echo "${ECHO_T}$ac_cv_host" >&6; }
5695 case $ac_cv_host in
5696 *-*-*) ;;
5697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5698 echo "$as_me: error: invalid value of canonical host" >&2;}
5699 { (exit 1); exit 1; }; };;
5700 esac
5701 host=$ac_cv_host
5702 ac_save_IFS=$IFS; IFS='-'
5703 set x $ac_cv_host
5704 shift
5705 host_cpu=$1
5706 host_vendor=$2
5707 shift; shift
5708 # Remember, the first character of IFS is used to create $*,
5709 # except with old shells:
5710 host_os=$*
5711 IFS=$ac_save_IFS
5712 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5715 # Check whether --enable-trace was given.
5716 if test "${enable_trace+set}" = set; then
5717 enableval=$enable_trace; if test "$enableval" == "yes"; then
5719 cat >>confdefs.h <<\_ACEOF
5720 #define ENABLE_TRACE_IO 1
5721 _ACEOF
5723 fi
5724 fi
5726 # Check whether --enable-watch was given.
5727 if test "${enable_watch+set}" = set; then
5728 enableval=$enable_watch; if test "$enableval" == "yes"; then
5730 cat >>confdefs.h <<\_ACEOF
5731 #define ENABLE_WATCH 1
5732 _ACEOF
5734 fi
5735 fi
5738 # Check whether --with-osmesa was given.
5739 if test "${with_osmesa+set}" = set; then
5740 withval=$with_osmesa;
5741 else
5742 with_osmesa=no
5743 fi
5748 lxdream_save_cppflags="$CPPFLAGS"
5749 CPPFLAGS="$CPPFLAGS -x objective-c"
5750 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5760 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5761 inttypes.h stdint.h unistd.h
5762 do
5763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769 cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h. */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 $ac_includes_default
5777 #include <$ac_header>
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5781 case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && {
5793 test -z "$ac_c_werror_flag" ||
5794 test ! -s conftest.err
5795 } && test -s conftest.$ac_objext; then
5796 eval "$as_ac_Header=yes"
5797 else
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 eval "$as_ac_Header=no"
5802 fi
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 fi
5806 ac_res=`eval echo '${'$as_ac_Header'}'`
5807 { echo "$as_me:$LINENO: result: $ac_res" >&5
5808 echo "${ECHO_T}$ac_res" >&6; }
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810 cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 _ACEOF
5814 fi
5816 done
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 @interface Foo @end
5826 int
5827 main ()
5828 {
5830 ;
5831 return 0;
5832 }
5833 _ACEOF
5834 rm -f conftest.$ac_objext
5835 if { (ac_try="$ac_compile"
5836 case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839 esac
5840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5853 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5854 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
5855 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
5856 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 fi
5859 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
5860 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
5861 else
5862 # Is the header compilable?
5863 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
5864 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
5865 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h. */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 $ac_includes_default
5872 #include <Cocoa/Cocoa.h>
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5876 case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5891 ac_header_compiler=yes
5892 else
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_header_compiler=no
5897 fi
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5901 echo "${ECHO_T}$ac_header_compiler" >&6; }
5903 # Is the header present?
5904 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
5905 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #include <Cocoa/Cocoa.h>
5913 _ACEOF
5914 if { (ac_try="$ac_cpp conftest.$ac_ext"
5915 case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } >/dev/null && {
5927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5928 test ! -s conftest.err
5929 }; then
5930 ac_header_preproc=yes
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_header_preproc=no
5936 fi
5938 rm -f conftest.err conftest.$ac_ext
5939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940 echo "${ECHO_T}$ac_header_preproc" >&6; }
5942 # So? What about this header?
5943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5944 yes:no: )
5945 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
5946 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
5948 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
5949 ac_header_preproc=yes
5950 ;;
5951 no:yes:* )
5952 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
5953 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
5954 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
5955 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
5957 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
5959 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
5961 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
5962 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
5963 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
5965 ;;
5966 esac
5967 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
5968 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
5969 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
5973 fi
5974 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
5975 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
5977 fi
5978 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
5980 HAVE_COCOA='yes'
5981 APPLE_BUILD='yes'
5982 LIBS="$LIBS -framework AppKit"
5983 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"
5985 cat >>confdefs.h <<\_ACEOF
5986 #define HAVE_COCOA 1
5987 _ACEOF
5990 cat >>confdefs.h <<\_ACEOF
5991 #define APPLE_BUILD 1
5992 _ACEOF
5995 fi
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 CPPFLAGS="$lxdream_save_cppflags"
6005 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 if test "$HAVE_COCOA" = 'yes'; then
6011 GUI_COCOA_TRUE=
6012 GUI_COCOA_FALSE='#'
6013 else
6014 GUI_COCOA_TRUE='#'
6015 GUI_COCOA_FALSE=
6016 fi
6021 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 case $PKG_CONFIG in
6031 [\\/]* | ?:[\\/]*)
6032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6033 ;;
6034 *)
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6050 ;;
6051 esac
6052 fi
6053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6054 if test -n "$PKG_CONFIG"; then
6055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6056 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6057 else
6058 { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6060 fi
6063 fi
6064 if test -z "$ac_cv_path_PKG_CONFIG"; then
6065 ac_pt_PKG_CONFIG=$PKG_CONFIG
6066 # Extract the first word of "pkg-config", so it can be a program name with args.
6067 set dummy pkg-config; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 case $ac_pt_PKG_CONFIG in
6074 [\\/]* | ?:[\\/]*)
6075 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6076 ;;
6077 *)
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6093 ;;
6094 esac
6095 fi
6096 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6097 if test -n "$ac_pt_PKG_CONFIG"; then
6098 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6099 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6100 else
6101 { echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6; }
6103 fi
6105 if test "x$ac_pt_PKG_CONFIG" = x; then
6106 PKG_CONFIG=""
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6111 whose name does not start with the host triplet. If you think this
6112 configuration is useful to you, please write to autoconf@gnu.org." >&5
6113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6114 whose name does not start with the host triplet. If you think this
6115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6116 ac_tool_warned=yes ;;
6117 esac
6118 PKG_CONFIG=$ac_pt_PKG_CONFIG
6119 fi
6120 else
6121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6122 fi
6124 fi
6125 if test -n "$PKG_CONFIG"; then
6126 _pkg_min_version=0.9.0
6127 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6128 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6130 { echo "$as_me:$LINENO: result: yes" >&5
6131 echo "${ECHO_T}yes" >&6; }
6132 else
6133 { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6135 PKG_CONFIG=""
6136 fi
6138 fi
6140 pkg_failed=no
6141 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
6142 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
6144 if test -n "$PKG_CONFIG"; then
6145 if test -n "$LIBPNG_CFLAGS"; then
6146 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6147 else
6148 if test -n "$PKG_CONFIG" && \
6149 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6150 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; then
6154 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6155 else
6156 pkg_failed=yes
6157 fi
6158 fi
6159 else
6160 pkg_failed=untried
6161 fi
6162 if test -n "$PKG_CONFIG"; then
6163 if test -n "$LIBPNG_LIBS"; then
6164 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6165 else
6166 if test -n "$PKG_CONFIG" && \
6167 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6168 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; then
6172 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6173 else
6174 pkg_failed=yes
6175 fi
6176 fi
6177 else
6178 pkg_failed=untried
6179 fi
6183 if test $pkg_failed = yes; then
6185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6186 _pkg_short_errors_supported=yes
6187 else
6188 _pkg_short_errors_supported=no
6189 fi
6190 if test $_pkg_short_errors_supported = yes; then
6191 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6192 else
6193 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6194 fi
6195 # Put the nasty error message in config.log where it belongs
6196 echo "$LIBPNG_PKG_ERRORS" >&5
6198 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6200 $LIBPNG_PKG_ERRORS
6202 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6203 installed software in a non-standard prefix.
6205 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6206 and LIBPNG_LIBS to avoid the need to call pkg-config.
6207 See the pkg-config man page for more details.
6208 " >&5
6209 echo "$as_me: error: Package requirements (libpng ) were not met:
6211 $LIBPNG_PKG_ERRORS
6213 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6214 installed software in a non-standard prefix.
6216 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6217 and LIBPNG_LIBS to avoid the need to call pkg-config.
6218 See the pkg-config man page for more details.
6219 " >&2;}
6220 { (exit 1); exit 1; }; }
6221 elif test $pkg_failed = untried; then
6222 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6223 is in your PATH or set the PKG_CONFIG environment variable to the full
6224 path to pkg-config.
6226 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6227 and LIBPNG_LIBS to avoid the need to call pkg-config.
6228 See the pkg-config man page for more details.
6230 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6231 See \`config.log' for more details." >&5
6232 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6233 is in your PATH or set the PKG_CONFIG environment variable to the full
6234 path to pkg-config.
6236 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6237 and LIBPNG_LIBS to avoid the need to call pkg-config.
6238 See the pkg-config man page for more details.
6240 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6241 See \`config.log' for more details." >&2;}
6242 { (exit 1); exit 1; }; }
6243 else
6244 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
6245 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
6246 { echo "$as_me:$LINENO: result: yes" >&5
6247 echo "${ECHO_T}yes" >&6; }
6248 :
6249 fi
6252 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
6253 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
6254 if test "${ac_cv_lib_z_uncompress+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257 ac_check_lib_save_LIBS=$LIBS
6258 LIBS="-lz $LIBS"
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h. */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6266 /* Override any GCC internal prototype to avoid an error.
6267 Use char because int might match the return type of a GCC
6268 builtin and then its argument prototype would still apply. */
6269 #ifdef __cplusplus
6270 extern "C"
6271 #endif
6272 char uncompress ();
6273 int
6274 main ()
6275 {
6276 return uncompress ();
6277 ;
6278 return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (ac_try="$ac_link"
6283 case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286 esac
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_link") 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest$ac_exeext &&
6298 $as_test_x conftest$ac_exeext; then
6299 ac_cv_lib_z_uncompress=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_cv_lib_z_uncompress=no
6305 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6308 conftest$ac_exeext conftest.$ac_ext
6309 LIBS=$ac_check_lib_save_LIBS
6310 fi
6311 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
6312 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
6313 if test $ac_cv_lib_z_uncompress = yes; then
6314 cat >>confdefs.h <<_ACEOF
6315 #define HAVE_LIBZ 1
6316 _ACEOF
6318 LIBS="-lz $LIBS"
6320 else
6322 echo "Zlib (libz.so) could not be found, but is required."
6323 exit 1
6324 fi
6329 pkg_failed=no
6330 { echo "$as_me:$LINENO: checking for GTK" >&5
6331 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
6333 if test -n "$PKG_CONFIG"; then
6334 if test -n "$GTK_CFLAGS"; then
6335 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6336 else
6337 if test -n "$PKG_CONFIG" && \
6338 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6339 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; then
6343 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
6344 else
6345 pkg_failed=yes
6346 fi
6347 fi
6348 else
6349 pkg_failed=untried
6350 fi
6351 if test -n "$PKG_CONFIG"; then
6352 if test -n "$GTK_LIBS"; then
6353 pkg_cv_GTK_LIBS="$GTK_LIBS"
6354 else
6355 if test -n "$PKG_CONFIG" && \
6356 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6357 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; then
6361 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
6362 else
6363 pkg_failed=yes
6364 fi
6365 fi
6366 else
6367 pkg_failed=untried
6368 fi
6372 if test $pkg_failed = yes; then
6374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6375 _pkg_short_errors_supported=yes
6376 else
6377 _pkg_short_errors_supported=no
6378 fi
6379 if test $_pkg_short_errors_supported = yes; then
6380 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
6381 else
6382 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
6383 fi
6384 # Put the nasty error message in config.log where it belongs
6385 echo "$GTK_PKG_ERRORS" >&5
6387 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
6389 $GTK_PKG_ERRORS
6391 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6392 installed software in a non-standard prefix.
6394 Alternatively, you may set the environment variables GTK_CFLAGS
6395 and GTK_LIBS to avoid the need to call pkg-config.
6396 See the pkg-config man page for more details.
6397 " >&5
6398 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
6400 $GTK_PKG_ERRORS
6402 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6403 installed software in a non-standard prefix.
6405 Alternatively, you may set the environment variables GTK_CFLAGS
6406 and GTK_LIBS to avoid the need to call pkg-config.
6407 See the pkg-config man page for more details.
6408 " >&2;}
6409 { (exit 1); exit 1; }; }
6410 elif test $pkg_failed = untried; then
6411 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6412 is in your PATH or set the PKG_CONFIG environment variable to the full
6413 path to pkg-config.
6415 Alternatively, you may set the environment variables GTK_CFLAGS
6416 and GTK_LIBS to avoid the need to call pkg-config.
6417 See the pkg-config man page for more details.
6419 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6420 See \`config.log' for more details." >&5
6421 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6422 is in your PATH or set the PKG_CONFIG environment variable to the full
6423 path to pkg-config.
6425 Alternatively, you may set the environment variables GTK_CFLAGS
6426 and GTK_LIBS to avoid the need to call pkg-config.
6427 See the pkg-config man page for more details.
6429 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6430 See \`config.log' for more details." >&2;}
6431 { (exit 1); exit 1; }; }
6432 else
6433 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6434 GTK_LIBS=$pkg_cv_GTK_LIBS
6435 { echo "$as_me:$LINENO: result: yes" >&5
6436 echo "${ECHO_T}yes" >&6; }
6438 HAVE_GTK='yes'
6440 cat >>confdefs.h <<\_ACEOF
6441 #define HAVE_GTK 1
6442 _ACEOF
6445 fi
6448 if test "$HAVE_GTK" = 'yes'; then
6449 GUI_GTK_TRUE=
6450 GUI_GTK_FALSE='#'
6451 else
6452 GUI_GTK_TRUE='#'
6453 GUI_GTK_FALSE=
6454 fi
6457 LIBS="$LIBS $GTK_LIBS"
6458 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
6459 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
6460 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
6470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6471 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char gdk_x11_display_get_xdisplay (); below.
6475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6476 <limits.h> exists even on freestanding compilers. */
6478 #ifdef __STDC__
6479 # include <limits.h>
6480 #else
6481 # include <assert.h>
6482 #endif
6484 #undef gdk_x11_display_get_xdisplay
6486 /* Override any GCC internal prototype to avoid an error.
6487 Use char because int might match the return type of a GCC
6488 builtin and then its argument prototype would still apply. */
6489 #ifdef __cplusplus
6490 extern "C"
6491 #endif
6492 char gdk_x11_display_get_xdisplay ();
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
6497 choke me
6498 #endif
6500 int
6501 main ()
6502 {
6503 return gdk_x11_display_get_xdisplay ();
6504 ;
6505 return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6510 case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_link") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest$ac_exeext &&
6525 $as_test_x conftest$ac_exeext; then
6526 ac_cv_func_gdk_x11_display_get_xdisplay=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 ac_cv_func_gdk_x11_display_get_xdisplay=no
6532 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6535 conftest$ac_exeext conftest.$ac_ext
6536 fi
6537 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
6538 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
6539 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
6541 HAVE_GTK_X11='yes'
6543 cat >>confdefs.h <<\_ACEOF
6544 #define HAVE_GTK_X11 1
6545 _ACEOF
6547 fi
6549 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
6550 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
6551 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
6561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6562 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char gdk_quartz_window_get_nsview (); below.
6566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6567 <limits.h> exists even on freestanding compilers. */
6569 #ifdef __STDC__
6570 # include <limits.h>
6571 #else
6572 # include <assert.h>
6573 #endif
6575 #undef gdk_quartz_window_get_nsview
6577 /* Override any GCC internal prototype to avoid an error.
6578 Use char because int might match the return type of a GCC
6579 builtin and then its argument prototype would still apply. */
6580 #ifdef __cplusplus
6581 extern "C"
6582 #endif
6583 char gdk_quartz_window_get_nsview ();
6584 /* The GNU C library defines this for functions which it implements
6585 to always fail with ENOSYS. Some functions are actually named
6586 something starting with __ and the normal name is an alias. */
6587 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
6588 choke me
6589 #endif
6591 int
6592 main ()
6593 {
6594 return gdk_quartz_window_get_nsview ();
6595 ;
6596 return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (ac_try="$ac_link"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_link") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest$ac_exeext &&
6616 $as_test_x conftest$ac_exeext; then
6617 ac_cv_func_gdk_quartz_window_get_nsview=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_func_gdk_quartz_window_get_nsview=no
6623 fi
6625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6626 conftest$ac_exeext conftest.$ac_ext
6627 fi
6628 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
6629 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
6630 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
6632 HAVE_GTK_OSX='yes'
6634 cat >>confdefs.h <<\_ACEOF
6635 #define HAVE_GTK_OSX 1
6636 _ACEOF
6638 fi
6641 if test "x$with_osmesa" != xno; then
6645 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
6646 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
6647 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 ac_check_lib_save_LIBS=$LIBS
6651 LIBS="-lOSMesa $LIBS"
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h. */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6659 /* Override any GCC internal prototype to avoid an error.
6660 Use char because int might match the return type of a GCC
6661 builtin and then its argument prototype would still apply. */
6662 #ifdef __cplusplus
6663 extern "C"
6664 #endif
6665 char OSMesaCreateContext ();
6666 int
6667 main ()
6668 {
6669 return OSMesaCreateContext ();
6670 ;
6671 return 0;
6672 }
6673 _ACEOF
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (ac_try="$ac_link"
6676 case "(($ac_try" in
6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678 *) ac_try_echo=$ac_try;;
6679 esac
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681 (eval "$ac_link") 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest$ac_exeext &&
6691 $as_test_x conftest$ac_exeext; then
6692 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
6693 else
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 ac_cv_lib_OSMesa_OSMesaCreateContext=no
6698 fi
6700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6701 conftest$ac_exeext conftest.$ac_ext
6702 LIBS=$ac_check_lib_save_LIBS
6703 fi
6704 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
6705 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
6706 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
6707 cat >>confdefs.h <<_ACEOF
6708 #define HAVE_LIBOSMESA 1
6709 _ACEOF
6711 LIBS="-lOSMesa $LIBS"
6713 else
6714 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
6715 See \`config.log' for more details." >&5
6716 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
6717 See \`config.log' for more details." >&2;}
6718 { (exit 1); exit 1; }; }
6719 fi
6721 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
6722 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
6723 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
6724 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 fi
6727 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
6728 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
6729 else
6730 # Is the header compilable?
6731 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
6732 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 $ac_includes_default
6740 #include <GL/osmesa.h>
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6744 case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_compile") 2>conftest.er1
6750 ac_status=$?
6751 grep -v '^ *+' conftest.er1 >conftest.err
6752 rm -f conftest.er1
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && {
6756 test -z "$ac_c_werror_flag" ||
6757 test ! -s conftest.err
6758 } && test -s conftest.$ac_objext; then
6759 ac_header_compiler=yes
6760 else
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6764 ac_header_compiler=no
6765 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6769 echo "${ECHO_T}$ac_header_compiler" >&6; }
6771 # Is the header present?
6772 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
6773 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #include <GL/osmesa.h>
6781 _ACEOF
6782 if { (ac_try="$ac_cpp conftest.$ac_ext"
6783 case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786 esac
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } >/dev/null && {
6795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 }; then
6798 ac_header_preproc=yes
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_header_preproc=no
6804 fi
6806 rm -f conftest.err conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6808 echo "${ECHO_T}$ac_header_preproc" >&6; }
6810 # So? What about this header?
6811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6812 yes:no: )
6813 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6814 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
6816 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
6817 ac_header_preproc=yes
6818 ;;
6819 no:yes:* )
6820 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
6821 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
6822 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
6823 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
6824 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
6825 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
6827 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
6829 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
6831 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
6833 ;;
6834 esac
6835 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
6836 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
6837 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840 ac_cv_header_GL_osmesa_h=$ac_header_preproc
6841 fi
6842 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
6843 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
6845 fi
6846 if test $ac_cv_header_GL_osmesa_h = yes; then
6847 :
6848 else
6849 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
6850 See \`config.log' for more details." >&5
6851 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
6852 See \`config.log' for more details." >&2;}
6853 { (exit 1); exit 1; }; }
6854 fi
6857 HAVE_OSMESA='yes'
6859 cat >>confdefs.h <<\_ACEOF
6860 #define HAVE_OSMESA 1
6861 _ACEOF
6863 else
6866 if test "x$APPLE_BUILD" != 'xyes'; then
6868 { echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
6869 echo $ECHO_N "checking for glVertex3f in -lGL... $ECHO_C" >&6; }
6870 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 ac_check_lib_save_LIBS=$LIBS
6874 LIBS="-lGL $LIBS"
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6882 /* Override any GCC internal prototype to avoid an error.
6883 Use char because int might match the return type of a GCC
6884 builtin and then its argument prototype would still apply. */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 char glVertex3f ();
6889 int
6890 main ()
6891 {
6892 return glVertex3f ();
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_link") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest$ac_exeext &&
6914 $as_test_x conftest$ac_exeext; then
6915 ac_cv_lib_GL_glVertex3f=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_lib_GL_glVertex3f=no
6921 fi
6923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6924 conftest$ac_exeext conftest.$ac_ext
6925 LIBS=$ac_check_lib_save_LIBS
6926 fi
6927 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
6928 echo "${ECHO_T}$ac_cv_lib_GL_glVertex3f" >&6; }
6929 if test $ac_cv_lib_GL_glVertex3f = yes; then
6930 cat >>confdefs.h <<_ACEOF
6931 #define HAVE_LIBGL 1
6932 _ACEOF
6934 LIBS="-lGL $LIBS"
6936 else
6938 { { echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
6939 See \`config.log' for more details." >&5
6940 echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
6941 See \`config.log' for more details." >&2;}
6942 { (exit 1); exit 1; }; }
6943 fi
6945 if test "${ac_cv_header_GL_gl_h+set}" = set; then
6946 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
6947 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
6948 if test "${ac_cv_header_GL_gl_h+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 fi
6951 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
6952 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
6953 else
6954 # Is the header compilable?
6955 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
6956 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 #include <GL/gl.h>
6965 _ACEOF
6966 rm -f conftest.$ac_objext
6967 if { (ac_try="$ac_compile"
6968 case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971 esac
6972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6973 (eval "$ac_compile") 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } && {
6980 test -z "$ac_c_werror_flag" ||
6981 test ! -s conftest.err
6982 } && test -s conftest.$ac_objext; then
6983 ac_header_compiler=yes
6984 else
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 ac_header_compiler=no
6989 fi
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6993 echo "${ECHO_T}$ac_header_compiler" >&6; }
6995 # Is the header present?
6996 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
6997 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 #include <GL/gl.h>
7005 _ACEOF
7006 if { (ac_try="$ac_cpp conftest.$ac_ext"
7007 case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } >/dev/null && {
7019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7021 }; then
7022 ac_header_preproc=yes
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_header_preproc=no
7028 fi
7030 rm -f conftest.err conftest.$ac_ext
7031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7032 echo "${ECHO_T}$ac_header_preproc" >&6; }
7034 # So? What about this header?
7035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7036 yes:no: )
7037 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7038 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7039 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
7040 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
7041 ac_header_preproc=yes
7042 ;;
7043 no:yes:* )
7044 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
7045 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
7046 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
7047 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
7048 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
7049 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
7050 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
7051 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7052 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
7053 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
7054 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
7055 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
7057 ;;
7058 esac
7059 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7060 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
7061 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 ac_cv_header_GL_gl_h=$ac_header_preproc
7065 fi
7066 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7067 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
7069 fi
7070 if test $ac_cv_header_GL_gl_h = yes; then
7071 :
7072 else
7074 { { echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7075 See \`config.log' for more details." >&5
7076 echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7077 See \`config.log' for more details." >&2;}
7078 { (exit 1); exit 1; }; }
7079 fi
7082 fi
7084 if test "x$HAVE_GTK_X11" = "xyes"; then
7085 if test "x$APPLE_BUILD" = "xyes"; then
7086 LIBS="$LIBS -L/usr/X11/lib -lGL"
7087 fi
7088 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
7089 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
7090 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
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. */
7099 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
7100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7101 #define glXQueryVersion innocuous_glXQueryVersion
7103 /* System header to define __stub macros and hopefully few prototypes,
7104 which can conflict with char glXQueryVersion (); below.
7105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7106 <limits.h> exists even on freestanding compilers. */
7108 #ifdef __STDC__
7109 # include <limits.h>
7110 #else
7111 # include <assert.h>
7112 #endif
7114 #undef glXQueryVersion
7116 /* Override any GCC internal prototype to avoid an error.
7117 Use char because int might match the return type of a GCC
7118 builtin and then its argument prototype would still apply. */
7119 #ifdef __cplusplus
7120 extern "C"
7121 #endif
7122 char glXQueryVersion ();
7123 /* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
7127 choke me
7128 #endif
7130 int
7131 main ()
7132 {
7133 return glXQueryVersion ();
7134 ;
7135 return 0;
7136 }
7137 _ACEOF
7138 rm -f conftest.$ac_objext conftest$ac_exeext
7139 if { (ac_try="$ac_link"
7140 case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143 esac
7144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145 (eval "$ac_link") 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest$ac_exeext &&
7155 $as_test_x conftest$ac_exeext; then
7156 ac_cv_func_glXQueryVersion=yes
7157 else
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_cv_func_glXQueryVersion=no
7162 fi
7164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7165 conftest$ac_exeext conftest.$ac_ext
7166 fi
7167 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
7168 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
7169 if test $ac_cv_func_glXQueryVersion = yes; then
7171 HAVE_GLX='yes'
7173 cat >>confdefs.h <<\_ACEOF
7174 #define HAVE_GLX 1
7175 _ACEOF
7177 fi
7179 elif test "x$HAVE_GTK_OSX" = "xyes"; then
7180 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
7181 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
7182 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
7192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7193 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
7195 /* System header to define __stub macros and hopefully few prototypes,
7196 which can conflict with char NSOpenGLGetVersion (); below.
7197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7198 <limits.h> exists even on freestanding compilers. */
7200 #ifdef __STDC__
7201 # include <limits.h>
7202 #else
7203 # include <assert.h>
7204 #endif
7206 #undef NSOpenGLGetVersion
7208 /* Override any GCC internal prototype to avoid an error.
7209 Use char because int might match the return type of a GCC
7210 builtin and then its argument prototype would still apply. */
7211 #ifdef __cplusplus
7212 extern "C"
7213 #endif
7214 char NSOpenGLGetVersion ();
7215 /* The GNU C library defines this for functions which it implements
7216 to always fail with ENOSYS. Some functions are actually named
7217 something starting with __ and the normal name is an alias. */
7218 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
7219 choke me
7220 #endif
7222 int
7223 main ()
7224 {
7225 return NSOpenGLGetVersion ();
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext conftest$ac_exeext
7231 if { (ac_try="$ac_link"
7232 case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7235 esac
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_link") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest$ac_exeext &&
7247 $as_test_x conftest$ac_exeext; then
7248 ac_cv_func_NSOpenGLGetVersion=yes
7249 else
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7253 ac_cv_func_NSOpenGLGetVersion=no
7254 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7257 conftest$ac_exeext conftest.$ac_ext
7258 fi
7259 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
7260 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
7261 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
7263 HAVE_NSGL='yes'
7265 cat >>confdefs.h <<\_ACEOF
7266 #define HAVE_NSGL 1
7267 _ACEOF
7269 fi
7271 fi
7274 fi
7278 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
7279 echo "Warning: Building with no video support"
7280 fi
7284 if test "x$HAVE_OSMESA" = "xyes"; then
7285 VIDEO_OSMESA_TRUE=
7286 VIDEO_OSMESA_FALSE='#'
7287 else
7288 VIDEO_OSMESA_TRUE='#'
7289 VIDEO_OSMESA_FALSE=
7290 fi
7294 if test "x$HAVE_GLX" = "xyes"; then
7295 VIDEO_GLX_TRUE=
7296 VIDEO_GLX_FALSE='#'
7297 else
7298 VIDEO_GLX_TRUE='#'
7299 VIDEO_GLX_FALSE=
7300 fi
7304 if test "x$HAVE_NSGL" = "xyes"; then
7305 VIDEO_NSGL_TRUE=
7306 VIDEO_NSGL_FALSE='#'
7307 else
7308 VIDEO_NSGL_TRUE='#'
7309 VIDEO_NSGL_FALSE=
7310 fi
7313 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
7314 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
7315 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318 cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h. */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
7325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7326 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
7328 /* System header to define __stub macros and hopefully few prototypes,
7329 which can conflict with char glGenFramebuffersEXT (); below.
7330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7331 <limits.h> exists even on freestanding compilers. */
7333 #ifdef __STDC__
7334 # include <limits.h>
7335 #else
7336 # include <assert.h>
7337 #endif
7339 #undef glGenFramebuffersEXT
7341 /* Override any GCC internal prototype to avoid an error.
7342 Use char because int might match the return type of a GCC
7343 builtin and then its argument prototype would still apply. */
7344 #ifdef __cplusplus
7345 extern "C"
7346 #endif
7347 char glGenFramebuffersEXT ();
7348 /* The GNU C library defines this for functions which it implements
7349 to always fail with ENOSYS. Some functions are actually named
7350 something starting with __ and the normal name is an alias. */
7351 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
7352 choke me
7353 #endif
7355 int
7356 main ()
7357 {
7358 return glGenFramebuffersEXT ();
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 rm -f conftest.$ac_objext conftest$ac_exeext
7364 if { (ac_try="$ac_link"
7365 case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368 esac
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_link") 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest$ac_exeext &&
7380 $as_test_x conftest$ac_exeext; then
7381 ac_cv_func_glGenFramebuffersEXT=yes
7382 else
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 ac_cv_func_glGenFramebuffersEXT=no
7387 fi
7389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7390 conftest$ac_exeext conftest.$ac_ext
7391 fi
7392 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
7393 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
7394 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
7396 cat >>confdefs.h <<\_ACEOF
7397 #define HAVE_OPENGL_FBO 1
7398 _ACEOF
7400 fi
7402 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
7403 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
7404 if test "${ac_cv_func_glCreateShader+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
7414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7415 #define glCreateShader innocuous_glCreateShader
7417 /* System header to define __stub macros and hopefully few prototypes,
7418 which can conflict with char glCreateShader (); below.
7419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7420 <limits.h> exists even on freestanding compilers. */
7422 #ifdef __STDC__
7423 # include <limits.h>
7424 #else
7425 # include <assert.h>
7426 #endif
7428 #undef glCreateShader
7430 /* Override any GCC internal prototype to avoid an error.
7431 Use char because int might match the return type of a GCC
7432 builtin and then its argument prototype would still apply. */
7433 #ifdef __cplusplus
7434 extern "C"
7435 #endif
7436 char glCreateShader ();
7437 /* The GNU C library defines this for functions which it implements
7438 to always fail with ENOSYS. Some functions are actually named
7439 something starting with __ and the normal name is an alias. */
7440 #if defined __stub_glCreateShader || defined __stub___glCreateShader
7441 choke me
7442 #endif
7444 int
7445 main ()
7446 {
7447 return glCreateShader ();
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 rm -f conftest.$ac_objext conftest$ac_exeext
7453 if { (ac_try="$ac_link"
7454 case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_link") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest$ac_exeext &&
7469 $as_test_x conftest$ac_exeext; then
7470 ac_cv_func_glCreateShader=yes
7471 else
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_cv_func_glCreateShader=no
7476 fi
7478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7479 conftest$ac_exeext conftest.$ac_ext
7480 fi
7481 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
7482 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
7483 if test $ac_cv_func_glCreateShader = yes; then
7485 cat >>confdefs.h <<\_ACEOF
7486 #define HAVE_OPENGL_SHADER 1
7487 _ACEOF
7489 fi
7491 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
7492 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
7493 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h. */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
7503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7504 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char glCreateShaderObjectARB (); below.
7508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7509 <limits.h> exists even on freestanding compilers. */
7511 #ifdef __STDC__
7512 # include <limits.h>
7513 #else
7514 # include <assert.h>
7515 #endif
7517 #undef glCreateShaderObjectARB
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7522 #ifdef __cplusplus
7523 extern "C"
7524 #endif
7525 char glCreateShaderObjectARB ();
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
7530 choke me
7531 #endif
7533 int
7534 main ()
7535 {
7536 return glCreateShaderObjectARB ();
7537 ;
7538 return 0;
7539 }
7540 _ACEOF
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (ac_try="$ac_link"
7543 case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_link") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest$ac_exeext &&
7558 $as_test_x conftest$ac_exeext; then
7559 ac_cv_func_glCreateShaderObjectARB=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 ac_cv_func_glCreateShaderObjectARB=no
7565 fi
7567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7568 conftest$ac_exeext conftest.$ac_ext
7569 fi
7570 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
7571 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
7572 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
7574 cat >>confdefs.h <<\_ACEOF
7575 #define HAVE_OPENGL_SHADER_ARB 1
7576 _ACEOF
7578 fi
7582 case $host_cpu in
7583 i386|i486|i586|i686)
7584 SH4_TRANSLATOR="x86"
7586 cat >>confdefs.h <<_ACEOF
7587 #define SH4_TRANSLATOR TARGET_X86
7588 _ACEOF
7589 ;;
7590 x86_64)
7591 SH4_TRANSLATOR="x86_64"
7593 cat >>confdefs.h <<_ACEOF
7594 #define SH4_TRANSLATOR TARGET_X86_64
7595 _ACEOF
7596 ;;
7597 *)
7598 echo "Warning: No translator available for $host. Building emulation core only";;
7599 esac
7602 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
7603 BUILD_SH4X86_TRUE=
7604 BUILD_SH4X86_FALSE='#'
7605 else
7606 BUILD_SH4X86_TRUE='#'
7607 BUILD_SH4X86_FALSE=
7608 fi
7612 if test "$SH4_TRANSLATOR" = "x86_64"; then
7613 BUILD_X86_64_TRUE=
7614 BUILD_X86_64_FALSE='#'
7615 else
7616 BUILD_X86_64_TRUE='#'
7617 BUILD_X86_64_FALSE=
7618 fi
7622 pkg_failed=no
7623 { echo "$as_me:$LINENO: checking for PULSE" >&5
7624 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
7626 if test -n "$PKG_CONFIG"; then
7627 if test -n "$PULSE_CFLAGS"; then
7628 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
7629 else
7630 if test -n "$PKG_CONFIG" && \
7631 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
7632 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; then
7636 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
7637 else
7638 pkg_failed=yes
7639 fi
7640 fi
7641 else
7642 pkg_failed=untried
7643 fi
7644 if test -n "$PKG_CONFIG"; then
7645 if test -n "$PULSE_LIBS"; then
7646 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
7647 else
7648 if test -n "$PKG_CONFIG" && \
7649 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
7650 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; then
7654 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
7655 else
7656 pkg_failed=yes
7657 fi
7658 fi
7659 else
7660 pkg_failed=untried
7661 fi
7665 if test $pkg_failed = yes; then
7667 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7668 _pkg_short_errors_supported=yes
7669 else
7670 _pkg_short_errors_supported=no
7671 fi
7672 if test $_pkg_short_errors_supported = yes; then
7673 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
7674 else
7675 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
7676 fi
7677 # Put the nasty error message in config.log where it belongs
7678 echo "$PULSE_PKG_ERRORS" >&5
7680 { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7682 true
7683 elif test $pkg_failed = untried; then
7684 true
7685 else
7686 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
7687 PULSE_LIBS=$pkg_cv_PULSE_LIBS
7688 { echo "$as_me:$LINENO: result: yes" >&5
7689 echo "${ECHO_T}yes" >&6; }
7691 HAVE_PULSE='yes'
7693 cat >>confdefs.h <<\_ACEOF
7694 #define HAVE_PULSE 1
7695 _ACEOF
7697 fi
7700 if test "$HAVE_PULSE" = 'yes' ; then
7701 AUDIO_PULSE_TRUE=
7702 AUDIO_PULSE_FALSE='#'
7703 else
7704 AUDIO_PULSE_TRUE='#'
7705 AUDIO_PULSE_FALSE=
7706 fi
7710 pkg_failed=no
7711 { echo "$as_me:$LINENO: checking for ESOUND" >&5
7712 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
7714 if test -n "$PKG_CONFIG"; then
7715 if test -n "$ESOUND_CFLAGS"; then
7716 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
7717 else
7718 if test -n "$PKG_CONFIG" && \
7719 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
7720 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; then
7724 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
7725 else
7726 pkg_failed=yes
7727 fi
7728 fi
7729 else
7730 pkg_failed=untried
7731 fi
7732 if test -n "$PKG_CONFIG"; then
7733 if test -n "$ESOUND_LIBS"; then
7734 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
7735 else
7736 if test -n "$PKG_CONFIG" && \
7737 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
7738 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; then
7742 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
7743 else
7744 pkg_failed=yes
7745 fi
7746 fi
7747 else
7748 pkg_failed=untried
7749 fi
7753 if test $pkg_failed = yes; then
7755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7756 _pkg_short_errors_supported=yes
7757 else
7758 _pkg_short_errors_supported=no
7759 fi
7760 if test $_pkg_short_errors_supported = yes; then
7761 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
7762 else
7763 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
7764 fi
7765 # Put the nasty error message in config.log where it belongs
7766 echo "$ESOUND_PKG_ERRORS" >&5
7768 { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7770 true
7771 elif test $pkg_failed = untried; then
7772 true
7773 else
7774 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
7775 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
7776 { echo "$as_me:$LINENO: result: yes" >&5
7777 echo "${ECHO_T}yes" >&6; }
7779 HAVE_ESOUND='yes'
7781 cat >>confdefs.h <<\_ACEOF
7782 #define HAVE_ESOUND 1
7783 _ACEOF
7785 fi
7788 if test "$HAVE_ESOUND" = 'yes' ; then
7789 AUDIO_ESOUND_TRUE=
7790 AUDIO_ESOUND_FALSE='#'
7791 else
7792 AUDIO_ESOUND_TRUE='#'
7793 AUDIO_ESOUND_FALSE=
7794 fi
7798 pkg_failed=no
7799 { echo "$as_me:$LINENO: checking for ALSA" >&5
7800 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
7802 if test -n "$PKG_CONFIG"; then
7803 if test -n "$ALSA_CFLAGS"; then
7804 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
7805 else
7806 if test -n "$PKG_CONFIG" && \
7807 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
7808 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; then
7812 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
7813 else
7814 pkg_failed=yes
7815 fi
7816 fi
7817 else
7818 pkg_failed=untried
7819 fi
7820 if test -n "$PKG_CONFIG"; then
7821 if test -n "$ALSA_LIBS"; then
7822 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
7823 else
7824 if test -n "$PKG_CONFIG" && \
7825 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
7826 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; then
7830 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
7831 else
7832 pkg_failed=yes
7833 fi
7834 fi
7835 else
7836 pkg_failed=untried
7837 fi
7841 if test $pkg_failed = yes; then
7843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7844 _pkg_short_errors_supported=yes
7845 else
7846 _pkg_short_errors_supported=no
7847 fi
7848 if test $_pkg_short_errors_supported = yes; then
7849 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
7850 else
7851 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
7852 fi
7853 # Put the nasty error message in config.log where it belongs
7854 echo "$ALSA_PKG_ERRORS" >&5
7856 { echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6; }
7858 true
7859 elif test $pkg_failed = untried; then
7860 true
7861 else
7862 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
7863 ALSA_LIBS=$pkg_cv_ALSA_LIBS
7864 { echo "$as_me:$LINENO: result: yes" >&5
7865 echo "${ECHO_T}yes" >&6; }
7867 HAVE_ALSA='yes'
7869 cat >>confdefs.h <<\_ACEOF
7870 #define HAVE_ALSA 1
7871 _ACEOF
7873 fi
7876 if test "$HAVE_ALSA" = 'yes' ; then
7877 AUDIO_ALSA_TRUE=
7878 AUDIO_ALSA_FALSE='#'
7879 else
7880 AUDIO_ALSA_TRUE='#'
7881 AUDIO_ALSA_FALSE=
7882 fi
7885 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
7886 echo "Warning: Building without audio support"
7887 fi
7889 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
7890 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
7891 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
7892 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 fi
7895 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
7896 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
7897 else
7898 # Is the header compilable?
7899 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
7900 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
7901 cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h. */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 $ac_includes_default
7908 #include <linux/cdrom.h>
7909 _ACEOF
7910 rm -f conftest.$ac_objext
7911 if { (ac_try="$ac_compile"
7912 case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_compile") 2>conftest.er1
7918 ac_status=$?
7919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && {
7924 test -z "$ac_c_werror_flag" ||
7925 test ! -s conftest.err
7926 } && test -s conftest.$ac_objext; then
7927 ac_header_compiler=yes
7928 else
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 ac_header_compiler=no
7933 fi
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7937 echo "${ECHO_T}$ac_header_compiler" >&6; }
7939 # Is the header present?
7940 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
7941 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h. */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 #include <linux/cdrom.h>
7949 _ACEOF
7950 if { (ac_try="$ac_cpp conftest.$ac_ext"
7951 case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954 esac
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7957 ac_status=$?
7958 grep -v '^ *+' conftest.er1 >conftest.err
7959 rm -f conftest.er1
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } >/dev/null && {
7963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7964 test ! -s conftest.err
7965 }; then
7966 ac_header_preproc=yes
7967 else
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_header_preproc=no
7972 fi
7974 rm -f conftest.err conftest.$ac_ext
7975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976 echo "${ECHO_T}$ac_header_preproc" >&6; }
7978 # So? What about this header?
7979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7980 yes:no: )
7981 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
7982 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
7984 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
7985 ac_header_preproc=yes
7986 ;;
7987 no:yes:* )
7988 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
7989 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
7991 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
7992 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
7993 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
7995 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
7997 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
7999 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
8001 ;;
8002 esac
8003 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8004 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
8005 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 ac_cv_header_linux_cdrom_h=$ac_header_preproc
8009 fi
8010 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8011 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
8013 fi
8014 if test $ac_cv_header_linux_cdrom_h = yes; then
8015 HAVE_LINUX_CDROM_H=yes
8016 else
8018 echo "Linux CDROM support not found, building without it."
8019 fi
8024 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
8025 CDROM_LINUX_TRUE=
8026 CDROM_LINUX_FALSE='#'
8027 else
8028 CDROM_LINUX_TRUE='#'
8029 CDROM_LINUX_FALSE=
8030 fi
8033 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8034 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8035 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
8036 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 fi
8039 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
8041 else
8042 # Is the header compilable?
8043 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
8044 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
8045 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 $ac_includes_default
8052 #include <linux/joystick.h>
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
8071 ac_header_compiler=yes
8072 else
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 ac_header_compiler=no
8077 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8081 echo "${ECHO_T}$ac_header_compiler" >&6; }
8083 # Is the header present?
8084 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
8085 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h. */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 #include <linux/joystick.h>
8093 _ACEOF
8094 if { (ac_try="$ac_cpp conftest.$ac_ext"
8095 case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } >/dev/null && {
8107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8108 test ! -s conftest.err
8109 }; then
8110 ac_header_preproc=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_header_preproc=no
8116 fi
8118 rm -f conftest.err conftest.$ac_ext
8119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8120 echo "${ECHO_T}$ac_header_preproc" >&6; }
8122 # So? What about this header?
8123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8124 yes:no: )
8125 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
8126 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
8128 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
8129 ac_header_preproc=yes
8130 ;;
8131 no:yes:* )
8132 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
8133 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
8135 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
8137 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
8138 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
8139 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
8140 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
8141 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
8142 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
8143 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
8145 ;;
8146 esac
8147 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8148 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
8149 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 ac_cv_header_linux_joystick_h=$ac_header_preproc
8153 fi
8154 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8155 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
8157 fi
8158 if test $ac_cv_header_linux_joystick_h = yes; then
8160 HAVE_LINUX_JOYSTICK_H=yes
8162 cat >>confdefs.h <<\_ACEOF
8163 #define HAVE_LINUX_JOYSTICK 1
8164 _ACEOF
8166 else
8167 echo "Linux Joystick support not found, building without it."
8168 fi
8173 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
8174 JOY_LINUX_TRUE=
8175 JOY_LINUX_FALSE='#'
8176 else
8177 JOY_LINUX_TRUE='#'
8178 JOY_LINUX_FALSE=
8179 fi
8182 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
8183 set dummy sh-elf-gcc; ac_word=$2
8184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8186 if test "${ac_cv_path_SHCC+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189 case $SHCC in
8190 [\\/]* | ?:[\\/]*)
8191 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
8192 ;;
8193 *)
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8196 do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8201 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
8202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8204 fi
8205 done
8206 done
8207 IFS=$as_save_IFS
8209 ;;
8210 esac
8211 fi
8212 SHCC=$ac_cv_path_SHCC
8213 if test -n "$SHCC"; then
8214 { echo "$as_me:$LINENO: result: $SHCC" >&5
8215 echo "${ECHO_T}$SHCC" >&6; }
8216 else
8217 { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8219 fi
8222 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
8223 set dummy sh-elf-ld; ac_word=$2
8224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8226 if test "${ac_cv_path_SHLD+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 case $SHLD in
8230 [\\/]* | ?:[\\/]*)
8231 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
8232 ;;
8233 *)
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8241 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8249 ;;
8250 esac
8251 fi
8252 SHLD=$ac_cv_path_SHLD
8253 if test -n "$SHLD"; then
8254 { echo "$as_me:$LINENO: result: $SHLD" >&5
8255 echo "${ECHO_T}$SHLD" >&6; }
8256 else
8257 { echo "$as_me:$LINENO: result: no" >&5
8258 echo "${ECHO_T}no" >&6; }
8259 fi
8262 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
8263 set dummy sh-elf-objcopy; ac_word=$2
8264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8266 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 case $SHOBJCOPY in
8270 [\\/]* | ?:[\\/]*)
8271 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
8272 ;;
8273 *)
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
8282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8289 ;;
8290 esac
8291 fi
8292 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
8293 if test -n "$SHOBJCOPY"; then
8294 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
8295 echo "${ECHO_T}$SHOBJCOPY" >&6; }
8296 else
8297 { echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6; }
8299 fi
8302 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
8303 set dummy arm-elf-gcc; ac_word=$2
8304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8306 if test "${ac_cv_path_ARMCC+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 case $ARMCC in
8310 [\\/]* | ?:[\\/]*)
8311 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
8312 ;;
8313 *)
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
8322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 break 2
8324 fi
8325 done
8326 done
8327 IFS=$as_save_IFS
8329 ;;
8330 esac
8331 fi
8332 ARMCC=$ac_cv_path_ARMCC
8333 if test -n "$ARMCC"; then
8334 { echo "$as_me:$LINENO: result: $ARMCC" >&5
8335 echo "${ECHO_T}$ARMCC" >&6; }
8336 else
8337 { echo "$as_me:$LINENO: result: no" >&5
8338 echo "${ECHO_T}no" >&6; }
8339 fi
8342 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
8343 set dummy arm-elf-ld; ac_word=$2
8344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8346 if test "${ac_cv_path_ARMLD+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 case $ARMLD in
8350 [\\/]* | ?:[\\/]*)
8351 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
8352 ;;
8353 *)
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8361 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
8362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 break 2
8364 fi
8365 done
8366 done
8367 IFS=$as_save_IFS
8369 ;;
8370 esac
8371 fi
8372 ARMLD=$ac_cv_path_ARMLD
8373 if test -n "$ARMLD"; then
8374 { echo "$as_me:$LINENO: result: $ARMLD" >&5
8375 echo "${ECHO_T}$ARMLD" >&6; }
8376 else
8377 { echo "$as_me:$LINENO: result: no" >&5
8378 echo "${ECHO_T}no" >&6; }
8379 fi
8382 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
8383 set dummy arm-elf-objcopy; ac_word=$2
8384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8386 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389 case $ARMOBJCOPY in
8390 [\\/]* | ?:[\\/]*)
8391 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
8392 ;;
8393 *)
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
8402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8409 ;;
8410 esac
8411 fi
8412 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
8413 if test -n "$ARMOBJCOPY"; then
8414 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
8415 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
8416 else
8417 { echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6; }
8419 fi
8423 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
8424 BUILD_SH="no"
8425 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
8426 else
8427 BUILD_SH="yes"
8428 fi
8429 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
8430 BUILD_ARM="no"
8431 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
8432 else
8433 BUILD_ARM="yes"
8434 fi
8437 if test "$BUILD_SH" = "yes"; then
8438 BUILD_SYSTEST_TRUE=
8439 BUILD_SYSTEST_FALSE='#'
8440 else
8441 BUILD_SYSTEST_TRUE='#'
8442 BUILD_SYSTEST_FALSE=
8443 fi
8447 if test "$BUILD_ARM" = "yes"; then
8448 BUILD_ARMTEST_TRUE=
8449 BUILD_ARMTEST_FALSE='#'
8450 else
8451 BUILD_ARMTEST_TRUE='#'
8452 BUILD_ARMTEST_FALSE=
8453 fi
8457 GETTEXT_PACKAGE=lxdream
8460 cat >>confdefs.h <<_ACEOF
8461 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8462 _ACEOF
8465 ALL_LINGUAS="de es it pt_BR"
8468 for ac_header in locale.h
8469 do
8470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 fi
8477 ac_res=`eval echo '${'$as_ac_Header'}'`
8478 { echo "$as_me:$LINENO: result: $ac_res" >&5
8479 echo "${ECHO_T}$ac_res" >&6; }
8480 else
8481 # Is the header compilable?
8482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
8491 #include <$ac_header>
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (ac_try="$ac_compile"
8495 case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_compile") 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest.$ac_objext; then
8510 ac_header_compiler=yes
8511 else
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_header_compiler=no
8516 fi
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6; }
8522 # Is the header present?
8523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h. */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 #include <$ac_header>
8532 _ACEOF
8533 if { (ac_try="$ac_cpp conftest.$ac_ext"
8534 case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } >/dev/null && {
8546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8547 test ! -s conftest.err
8548 }; then
8549 ac_header_preproc=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_header_preproc=no
8555 fi
8557 rm -f conftest.err conftest.$ac_ext
8558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559 echo "${ECHO_T}$ac_header_preproc" >&6; }
8561 # So? What about this header?
8562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8563 yes:no: )
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8568 ac_header_preproc=yes
8569 ;;
8570 no:yes:* )
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8584 ;;
8585 esac
8586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 eval "$as_ac_Header=\$ac_header_preproc"
8592 fi
8593 ac_res=`eval echo '${'$as_ac_Header'}'`
8594 { echo "$as_me:$LINENO: result: $ac_res" >&5
8595 echo "${ECHO_T}$ac_res" >&6; }
8597 fi
8598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8599 cat >>confdefs.h <<_ACEOF
8600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8601 _ACEOF
8603 fi
8605 done
8607 if test $ac_cv_header_locale_h = yes; then
8608 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8609 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
8610 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 #include <locale.h>
8620 int
8621 main ()
8622 {
8623 return LC_MESSAGES
8624 ;
8625 return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (ac_try="$ac_link"
8630 case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633 esac
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_link") 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } && {
8642 test -z "$ac_c_werror_flag" ||
8643 test ! -s conftest.err
8644 } && test -s conftest$ac_exeext &&
8645 $as_test_x conftest$ac_exeext; then
8646 am_cv_val_LC_MESSAGES=yes
8647 else
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8651 am_cv_val_LC_MESSAGES=no
8652 fi
8654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8655 conftest$ac_exeext conftest.$ac_ext
8656 fi
8657 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8658 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
8659 if test $am_cv_val_LC_MESSAGES = yes; then
8661 cat >>confdefs.h <<\_ACEOF
8662 #define HAVE_LC_MESSAGES 1
8663 _ACEOF
8665 fi
8666 fi
8667 USE_NLS=yes
8670 gt_cv_have_gettext=no
8672 CATOBJEXT=NONE
8673 XGETTEXT=:
8674 INTLLIBS=
8676 if test "${ac_cv_header_libintl_h+set}" = set; then
8677 { echo "$as_me:$LINENO: checking for libintl.h" >&5
8678 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8679 if test "${ac_cv_header_libintl_h+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 fi
8682 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8683 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8684 else
8685 # Is the header compilable?
8686 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
8687 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 $ac_includes_default
8695 #include <libintl.h>
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8699 case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.$ac_objext; then
8714 ac_header_compiler=yes
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_header_compiler=no
8720 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8724 echo "${ECHO_T}$ac_header_compiler" >&6; }
8726 # Is the header present?
8727 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
8728 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 #include <libintl.h>
8736 _ACEOF
8737 if { (ac_try="$ac_cpp conftest.$ac_ext"
8738 case "(($ac_try" in
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8741 esac
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } >/dev/null && {
8750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 }; then
8753 ac_header_preproc=yes
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_header_preproc=no
8759 fi
8761 rm -f conftest.err conftest.$ac_ext
8762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8763 echo "${ECHO_T}$ac_header_preproc" >&6; }
8765 # So? What about this header?
8766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8767 yes:no: )
8768 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8769 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8771 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8772 ac_header_preproc=yes
8773 ;;
8774 no:yes:* )
8775 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8776 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8778 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8780 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8782 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8784 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8786 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8788 ;;
8789 esac
8790 { echo "$as_me:$LINENO: checking for libintl.h" >&5
8791 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8792 if test "${ac_cv_header_libintl_h+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795 ac_cv_header_libintl_h=$ac_header_preproc
8796 fi
8797 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8798 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8800 fi
8801 if test $ac_cv_header_libintl_h = yes; then
8802 gt_cv_func_dgettext_libintl="no"
8803 libintl_extra_libs=""
8805 #
8806 # First check in libc
8807 #
8808 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
8809 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
8810 if test "${gt_cv_func_ngettext_libc+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8820 #include <libintl.h>
8822 int
8823 main ()
8824 {
8825 return !ngettext ("","", 1)
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (ac_try="$ac_link"
8832 case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835 esac
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_link") 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext &&
8847 $as_test_x conftest$ac_exeext; then
8848 gt_cv_func_ngettext_libc=yes
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 gt_cv_func_ngettext_libc=no
8854 fi
8856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8857 conftest$ac_exeext conftest.$ac_ext
8859 fi
8860 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
8861 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
8863 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8864 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8865 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
8866 if test "${gt_cv_func_dgettext_libc+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8876 #include <libintl.h>
8878 int
8879 main ()
8880 {
8881 return !dgettext ("","")
8882 ;
8883 return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (ac_try="$ac_link"
8888 case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_link") 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && {
8900 test -z "$ac_c_werror_flag" ||
8901 test ! -s conftest.err
8902 } && test -s conftest$ac_exeext &&
8903 $as_test_x conftest$ac_exeext; then
8904 gt_cv_func_dgettext_libc=yes
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 gt_cv_func_dgettext_libc=no
8910 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8913 conftest$ac_exeext conftest.$ac_ext
8915 fi
8916 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8917 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
8918 fi
8920 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8922 for ac_func in bind_textdomain_codeset
8923 do
8924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8938 #define $ac_func innocuous_$ac_func
8940 /* System header to define __stub macros and hopefully few prototypes,
8941 which can conflict with char $ac_func (); below.
8942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8943 <limits.h> exists even on freestanding compilers. */
8945 #ifdef __STDC__
8946 # include <limits.h>
8947 #else
8948 # include <assert.h>
8949 #endif
8951 #undef $ac_func
8953 /* Override any GCC internal prototype to avoid an error.
8954 Use char because int might match the return type of a GCC
8955 builtin and then its argument prototype would still apply. */
8956 #ifdef __cplusplus
8957 extern "C"
8958 #endif
8959 char $ac_func ();
8960 /* The GNU C library defines this for functions which it implements
8961 to always fail with ENOSYS. Some functions are actually named
8962 something starting with __ and the normal name is an alias. */
8963 #if defined __stub_$ac_func || defined __stub___$ac_func
8964 choke me
8965 #endif
8967 int
8968 main ()
8969 {
8970 return $ac_func ();
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8977 case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980 esac
8981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_link") 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && {
8989 test -z "$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8991 } && test -s conftest$ac_exeext &&
8992 $as_test_x conftest$ac_exeext; then
8993 eval "$as_ac_var=yes"
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 eval "$as_ac_var=no"
8999 fi
9001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9002 conftest$ac_exeext conftest.$ac_ext
9003 fi
9004 ac_res=`eval echo '${'$as_ac_var'}'`
9005 { echo "$as_me:$LINENO: result: $ac_res" >&5
9006 echo "${ECHO_T}$ac_res" >&6; }
9007 if test `eval echo '${'$as_ac_var'}'` = yes; then
9008 cat >>confdefs.h <<_ACEOF
9009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9010 _ACEOF
9012 fi
9013 done
9015 fi
9017 #
9018 # If we don't have everything we want, check in libintl
9019 #
9020 if test "$gt_cv_func_dgettext_libc" != "yes" \
9021 || test "$gt_cv_func_ngettext_libc" != "yes" \
9022 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9024 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9025 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
9026 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 ac_check_lib_save_LIBS=$LIBS
9030 LIBS="-lintl $LIBS"
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any GCC internal prototype to avoid an error.
9039 Use char because int might match the return type of a GCC
9040 builtin and then its argument prototype would still apply. */
9041 #ifdef __cplusplus
9042 extern "C"
9043 #endif
9044 char bindtextdomain ();
9045 int
9046 main ()
9047 {
9048 return bindtextdomain ();
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9055 case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_link") 2>conftest.er1
9061 ac_status=$?
9062 grep -v '^ *+' conftest.er1 >conftest.err
9063 rm -f conftest.er1
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && {
9067 test -z "$ac_c_werror_flag" ||
9068 test ! -s conftest.err
9069 } && test -s conftest$ac_exeext &&
9070 $as_test_x conftest$ac_exeext; then
9071 ac_cv_lib_intl_bindtextdomain=yes
9072 else
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_cv_lib_intl_bindtextdomain=no
9077 fi
9079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9080 conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9082 fi
9083 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
9084 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
9085 if test $ac_cv_lib_intl_bindtextdomain = yes; then
9086 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
9087 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
9088 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091 ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lintl $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 char ngettext ();
9107 int
9108 main ()
9109 {
9110 return ngettext ();
9111 ;
9112 return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9117 case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120 esac
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_link") 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } && {
9129 test -z "$ac_c_werror_flag" ||
9130 test ! -s conftest.err
9131 } && test -s conftest$ac_exeext &&
9132 $as_test_x conftest$ac_exeext; then
9133 ac_cv_lib_intl_ngettext=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_lib_intl_ngettext=no
9139 fi
9141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9142 conftest$ac_exeext conftest.$ac_ext
9143 LIBS=$ac_check_lib_save_LIBS
9144 fi
9145 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
9146 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
9147 if test $ac_cv_lib_intl_ngettext = yes; then
9148 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
9149 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
9150 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 ac_check_lib_save_LIBS=$LIBS
9154 LIBS="-lintl $LIBS"
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9162 /* Override any GCC internal prototype to avoid an error.
9163 Use char because int might match the return type of a GCC
9164 builtin and then its argument prototype would still apply. */
9165 #ifdef __cplusplus
9166 extern "C"
9167 #endif
9168 char dgettext ();
9169 int
9170 main ()
9171 {
9172 return dgettext ();
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9179 case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_link") 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest$ac_exeext &&
9194 $as_test_x conftest$ac_exeext; then
9195 ac_cv_lib_intl_dgettext=yes
9196 else
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 ac_cv_lib_intl_dgettext=no
9201 fi
9203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9204 conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9206 fi
9207 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
9208 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
9209 if test $ac_cv_lib_intl_dgettext = yes; then
9210 gt_cv_func_dgettext_libintl=yes
9211 fi
9213 fi
9215 fi
9218 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9219 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
9220 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
9221 { echo "$as_me:$LINENO: result: " >&5
9222 echo "${ECHO_T}" >&6; }
9223 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
9224 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
9225 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228 ac_check_lib_save_LIBS=$LIBS
9229 LIBS="-lintl -liconv $LIBS"
9230 cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h. */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9237 /* Override any GCC internal prototype to avoid an error.
9238 Use char because int might match the return type of a GCC
9239 builtin and then its argument prototype would still apply. */
9240 #ifdef __cplusplus
9241 extern "C"
9242 #endif
9243 char ngettext ();
9244 int
9245 main ()
9246 {
9247 return ngettext ();
9248 ;
9249 return 0;
9250 }
9251 _ACEOF
9252 rm -f conftest.$ac_objext conftest$ac_exeext
9253 if { (ac_try="$ac_link"
9254 case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257 esac
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_link") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest$ac_exeext &&
9269 $as_test_x conftest$ac_exeext; then
9270 ac_cv_lib_intl_ngettext=yes
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_cv_lib_intl_ngettext=no
9276 fi
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9281 fi
9282 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
9283 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
9284 if test $ac_cv_lib_intl_ngettext = yes; then
9285 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
9286 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
9287 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290 ac_check_lib_save_LIBS=$LIBS
9291 LIBS="-lintl -liconv $LIBS"
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 char dcgettext ();
9306 int
9307 main ()
9308 {
9309 return dcgettext ();
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (ac_try="$ac_link"
9316 case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_link") 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest$ac_exeext &&
9331 $as_test_x conftest$ac_exeext; then
9332 ac_cv_lib_intl_dcgettext=yes
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 ac_cv_lib_intl_dcgettext=no
9338 fi
9340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9341 conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_lib_save_LIBS
9343 fi
9344 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
9345 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
9346 if test $ac_cv_lib_intl_dcgettext = yes; then
9347 gt_cv_func_dgettext_libintl=yes
9348 libintl_extra_libs=-liconv
9349 else
9350 :
9351 fi
9353 else
9354 :
9355 fi
9357 fi
9359 #
9360 # If we found libintl, then check in it for bind_textdomain_codeset();
9361 # we'll prefer libc if neither have bind_textdomain_codeset(),
9362 # and both have dgettext and ngettext
9363 #
9364 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9365 glib_save_LIBS="$LIBS"
9366 LIBS="$LIBS -lintl $libintl_extra_libs"
9367 unset ac_cv_func_bind_textdomain_codeset
9369 for ac_func in bind_textdomain_codeset
9370 do
9371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9385 #define $ac_func innocuous_$ac_func
9387 /* System header to define __stub macros and hopefully few prototypes,
9388 which can conflict with char $ac_func (); below.
9389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9390 <limits.h> exists even on freestanding compilers. */
9392 #ifdef __STDC__
9393 # include <limits.h>
9394 #else
9395 # include <assert.h>
9396 #endif
9398 #undef $ac_func
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 char $ac_func ();
9407 /* The GNU C library defines this for functions which it implements
9408 to always fail with ENOSYS. Some functions are actually named
9409 something starting with __ and the normal name is an alias. */
9410 #if defined __stub_$ac_func || defined __stub___$ac_func
9411 choke me
9412 #endif
9414 int
9415 main ()
9416 {
9417 return $ac_func ();
9418 ;
9419 return 0;
9420 }
9421 _ACEOF
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext &&
9439 $as_test_x conftest$ac_exeext; then
9440 eval "$as_ac_var=yes"
9441 else
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 eval "$as_ac_var=no"
9446 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9449 conftest$ac_exeext conftest.$ac_ext
9450 fi
9451 ac_res=`eval echo '${'$as_ac_var'}'`
9452 { echo "$as_me:$LINENO: result: $ac_res" >&5
9453 echo "${ECHO_T}$ac_res" >&6; }
9454 if test `eval echo '${'$as_ac_var'}'` = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9457 _ACEOF
9459 fi
9460 done
9462 LIBS="$glib_save_LIBS"
9464 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
9465 gt_cv_func_dgettext_libc=no
9466 else
9467 if test "$gt_cv_func_dgettext_libc" = "yes" \
9468 && test "$gt_cv_func_ngettext_libc" = "yes"; then
9469 gt_cv_func_dgettext_libintl=no
9470 fi
9471 fi
9472 fi
9473 fi
9475 if test "$gt_cv_func_dgettext_libc" = "yes" \
9476 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
9477 gt_cv_have_gettext=yes
9478 fi
9480 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9481 INTLLIBS="-lintl $libintl_extra_libs"
9482 fi
9484 if test "$gt_cv_have_gettext" = "yes"; then
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_GETTEXT 1
9488 _ACEOF
9490 # Extract the first word of "msgfmt", so it can be a program name with args.
9491 set dummy msgfmt; ac_word=$2
9492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9494 if test "${ac_cv_path_MSGFMT+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 case "$MSGFMT" in
9498 /*)
9499 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9500 ;;
9501 *)
9502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9503 for ac_dir in $PATH; do
9504 test -z "$ac_dir" && ac_dir=.
9505 if test -f $ac_dir/$ac_word; then
9506 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
9507 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9508 break
9509 fi
9510 fi
9511 done
9512 IFS="$ac_save_ifs"
9513 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
9514 ;;
9515 esac
9516 fi
9517 MSGFMT="$ac_cv_path_MSGFMT"
9518 if test "$MSGFMT" != "no"; then
9519 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9520 echo "${ECHO_T}$MSGFMT" >&6; }
9521 else
9522 { echo "$as_me:$LINENO: result: no" >&5
9523 echo "${ECHO_T}no" >&6; }
9524 fi
9525 if test "$MSGFMT" != "no"; then
9526 glib_save_LIBS="$LIBS"
9527 LIBS="$LIBS $INTLLIBS"
9529 for ac_func in dcgettext
9530 do
9531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9545 #define $ac_func innocuous_$ac_func
9547 /* System header to define __stub macros and hopefully few prototypes,
9548 which can conflict with char $ac_func (); below.
9549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9550 <limits.h> exists even on freestanding compilers. */
9552 #ifdef __STDC__
9553 # include <limits.h>
9554 #else
9555 # include <assert.h>
9556 #endif
9558 #undef $ac_func
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char $ac_func ();
9567 /* The GNU C library defines this for functions which it implements
9568 to always fail with ENOSYS. Some functions are actually named
9569 something starting with __ and the normal name is an alias. */
9570 #if defined __stub_$ac_func || defined __stub___$ac_func
9571 choke me
9572 #endif
9574 int
9575 main ()
9576 {
9577 return $ac_func ();
9578 ;
9579 return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_link") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext &&
9599 $as_test_x conftest$ac_exeext; then
9600 eval "$as_ac_var=yes"
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 eval "$as_ac_var=no"
9606 fi
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext conftest.$ac_ext
9610 fi
9611 ac_res=`eval echo '${'$as_ac_var'}'`
9612 { echo "$as_me:$LINENO: result: $ac_res" >&5
9613 echo "${ECHO_T}$ac_res" >&6; }
9614 if test `eval echo '${'$as_ac_var'}'` = yes; then
9615 cat >>confdefs.h <<_ACEOF
9616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9617 _ACEOF
9619 fi
9620 done
9622 MSGFMT_OPTS=
9623 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
9624 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
9625 cat >conftest.foo <<_ACEOF
9627 msgid ""
9628 msgstr ""
9629 "Content-Type: text/plain; charset=UTF-8\n"
9630 "Project-Id-Version: test 1.0\n"
9631 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
9632 "Last-Translator: test <foo@bar.xx>\n"
9633 "Language-Team: C <LL@li.org>\n"
9634 "MIME-Version: 1.0\n"
9635 "Content-Transfer-Encoding: 8bit\n"
9637 _ACEOF
9638 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
9639 (msgfmt -c -o /dev/null conftest.foo) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; then
9643 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
9644 echo "${ECHO_T}yes" >&6; }
9645 else { echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6; }
9647 echo "$as_me: failed input was:" >&5
9648 sed 's/^/| /' conftest.foo >&5
9649 fi
9651 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9652 set dummy gmsgfmt; ac_word=$2
9653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9655 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 case $GMSGFMT in
9659 [\\/]* | ?:[\\/]*)
9660 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9661 ;;
9662 *)
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9665 do
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9670 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 break 2
9673 fi
9674 done
9675 done
9676 IFS=$as_save_IFS
9678 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9679 ;;
9680 esac
9681 fi
9682 GMSGFMT=$ac_cv_path_GMSGFMT
9683 if test -n "$GMSGFMT"; then
9684 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9685 echo "${ECHO_T}$GMSGFMT" >&6; }
9686 else
9687 { echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6; }
9689 fi
9692 # Extract the first word of "xgettext", so it can be a program name with args.
9693 set dummy xgettext; ac_word=$2
9694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9696 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 case "$XGETTEXT" in
9700 /*)
9701 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9702 ;;
9703 *)
9704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9705 for ac_dir in $PATH; do
9706 test -z "$ac_dir" && ac_dir=.
9707 if test -f $ac_dir/$ac_word; then
9708 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9709 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9710 break
9711 fi
9712 fi
9713 done
9714 IFS="$ac_save_ifs"
9715 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9716 ;;
9717 esac
9718 fi
9719 XGETTEXT="$ac_cv_path_XGETTEXT"
9720 if test "$XGETTEXT" != ":"; then
9721 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9722 echo "${ECHO_T}$XGETTEXT" >&6; }
9723 else
9724 { echo "$as_me:$LINENO: result: no" >&5
9725 echo "${ECHO_T}no" >&6; }
9726 fi
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h. */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9735 int
9736 main ()
9737 {
9738 extern int _nl_msg_cat_cntr;
9739 return _nl_msg_cat_cntr
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9746 case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749 esac
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9752 ac_status=$?
9753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
9762 CATOBJEXT=.gmo
9763 DATADIRNAME=share
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 case $host in
9769 *-*-solaris*)
9770 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
9771 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
9772 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
9782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9783 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
9785 /* System header to define __stub macros and hopefully few prototypes,
9786 which can conflict with char bind_textdomain_codeset (); below.
9787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9788 <limits.h> exists even on freestanding compilers. */
9790 #ifdef __STDC__
9791 # include <limits.h>
9792 #else
9793 # include <assert.h>
9794 #endif
9796 #undef bind_textdomain_codeset
9798 /* Override any GCC internal prototype to avoid an error.
9799 Use char because int might match the return type of a GCC
9800 builtin and then its argument prototype would still apply. */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 char bind_textdomain_codeset ();
9805 /* The GNU C library defines this for functions which it implements
9806 to always fail with ENOSYS. Some functions are actually named
9807 something starting with __ and the normal name is an alias. */
9808 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
9809 choke me
9810 #endif
9812 int
9813 main ()
9814 {
9815 return bind_textdomain_codeset ();
9816 ;
9817 return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9822 case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && {
9834 test -z "$ac_c_werror_flag" ||
9835 test ! -s conftest.err
9836 } && test -s conftest$ac_exeext &&
9837 $as_test_x conftest$ac_exeext; then
9838 ac_cv_func_bind_textdomain_codeset=yes
9839 else
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_func_bind_textdomain_codeset=no
9844 fi
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847 conftest$ac_exeext conftest.$ac_ext
9848 fi
9849 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
9850 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
9851 if test $ac_cv_func_bind_textdomain_codeset = yes; then
9852 CATOBJEXT=.gmo
9853 DATADIRNAME=share
9854 else
9855 CATOBJEXT=.mo
9856 DATADIRNAME=lib
9857 fi
9859 ;;
9860 *)
9861 CATOBJEXT=.mo
9862 DATADIRNAME=lib
9863 ;;
9864 esac
9865 fi
9867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LIBS="$glib_save_LIBS"
9870 INSTOBJEXT=.mo
9871 else
9872 gt_cv_have_gettext=no
9873 fi
9874 fi
9876 fi
9880 if test "$gt_cv_have_gettext" = "yes" ; then
9882 cat >>confdefs.h <<\_ACEOF
9883 #define ENABLE_NLS 1
9884 _ACEOF
9886 fi
9888 if test "$XGETTEXT" != ":"; then
9889 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9890 : ;
9891 else
9892 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9893 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
9894 XGETTEXT=":"
9895 fi
9896 fi
9898 # We need to process the po/ directory.
9899 POSUB=po
9901 ac_config_commands="$ac_config_commands default-1"
9904 for lang in $ALL_LINGUAS; do
9905 GMOFILES="$GMOFILES $lang.gmo"
9906 POFILES="$POFILES $lang.po"
9907 done
9921 if test "$gt_cv_have_gettext" = "yes"; then
9922 if test "x$ALL_LINGUAS" = "x"; then
9923 LINGUAS=
9924 else
9925 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9926 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
9927 NEW_LINGUAS=
9928 for presentlang in $ALL_LINGUAS; do
9929 useit=no
9930 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
9931 desiredlanguages="$LINGUAS"
9932 else
9933 desiredlanguages="$ALL_LINGUAS"
9934 fi
9935 for desiredlang in $desiredlanguages; do
9936 # Use the presentlang catalog if desiredlang is
9937 # a. equal to presentlang, or
9938 # b. a variant of presentlang (because in this case,
9939 # presentlang can be used as a fallback for messages
9940 # which are not translated in the desiredlang catalog).
9941 case "$desiredlang" in
9942 "$presentlang"*) useit=yes;;
9943 esac
9944 done
9945 if test $useit = yes; then
9946 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
9947 fi
9948 done
9949 LINGUAS=$NEW_LINGUAS
9950 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
9951 echo "${ECHO_T}$LINGUAS" >&6; }
9952 fi
9954 if test -n "$LINGUAS"; then
9955 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9956 fi
9957 fi
9959 MKINSTALLDIRS=
9960 if test -n "$ac_aux_dir"; then
9961 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9962 fi
9963 if test -z "$MKINSTALLDIRS"; then
9964 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9965 fi
9968 test -d po || mkdir po
9969 if test "x$srcdir" != "x."; then
9970 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9971 posrcprefix="$srcdir/"
9972 else
9973 posrcprefix="../$srcdir/"
9974 fi
9975 else
9976 posrcprefix="../"
9977 fi
9978 rm -f po/POTFILES
9979 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9980 < $srcdir/po/POTFILES.in > po/POTFILES
9983 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
9985 cat >confcache <<\_ACEOF
9986 # This file is a shell script that caches the results of configure
9987 # tests run on this system so they can be shared between configure
9988 # scripts and configure runs, see configure's option --config-cache.
9989 # It is not useful on other systems. If it contains results you don't
9990 # want to keep, you may remove or edit it.
9991 #
9992 # config.status only pays attention to the cache file if you give it
9993 # the --recheck option to rerun configure.
9994 #
9995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9997 # following values.
9999 _ACEOF
10001 # The following way of writing the cache mishandles newlines in values,
10002 # but we know of no workaround that is simple, portable, and efficient.
10003 # So, we kill variables containing newlines.
10004 # Ultrix sh set writes to stderr and can't be redirected directly,
10005 # and sets the high bit in the cache file unless we assign to the vars.
10006 (
10007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10008 eval ac_val=\$$ac_var
10009 case $ac_val in #(
10010 *${as_nl}*)
10011 case $ac_var in #(
10012 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10013 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10014 esac
10015 case $ac_var in #(
10016 _ | IFS | as_nl) ;; #(
10017 *) $as_unset $ac_var ;;
10018 esac ;;
10019 esac
10020 done
10022 (set) 2>&1 |
10023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10024 *${as_nl}ac_space=\ *)
10025 # `set' does not quote correctly, so add quotes (double-quote
10026 # substitution turns \\\\ into \\, and sed turns \\ into \).
10027 sed -n \
10028 "s/'/'\\\\''/g;
10029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10030 ;; #(
10031 *)
10032 # `set' quotes correctly as required by POSIX, so do not add quotes.
10033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10034 ;;
10035 esac |
10036 sort
10037 ) |
10038 sed '
10039 /^ac_cv_env_/b end
10040 t clear
10041 :clear
10042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10043 t end
10044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10045 :end' >>confcache
10046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10047 if test -w "$cache_file"; then
10048 test "x$cache_file" != "x/dev/null" &&
10049 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10050 echo "$as_me: updating cache $cache_file" >&6;}
10051 cat confcache >$cache_file
10052 else
10053 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10054 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10055 fi
10056 fi
10057 rm -f confcache
10059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10060 # Let make expand exec_prefix.
10061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10063 DEFS=-DHAVE_CONFIG_H
10065 ac_libobjs=
10066 ac_ltlibobjs=
10067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10068 # 1. Remove the extension, and $U if already installed.
10069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10070 ac_i=`echo "$ac_i" | sed "$ac_script"`
10071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10072 # will be set to the directory where LIBOBJS objects are built.
10073 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10074 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10075 done
10076 LIBOBJS=$ac_libobjs
10078 LTLIBOBJS=$ac_ltlibobjs
10081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10082 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10083 Usually this means the macro was only invoked conditionally." >&5
10084 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10085 Usually this means the macro was only invoked conditionally." >&2;}
10086 { (exit 1); exit 1; }; }
10087 fi
10088 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10089 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10090 Usually this means the macro was only invoked conditionally." >&5
10091 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10092 Usually this means the macro was only invoked conditionally." >&2;}
10093 { (exit 1); exit 1; }; }
10094 fi
10095 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10096 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10097 Usually this means the macro was only invoked conditionally." >&5
10098 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10099 Usually this means the macro was only invoked conditionally." >&2;}
10100 { (exit 1); exit 1; }; }
10101 fi
10102 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10103 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10104 Usually this means the macro was only invoked conditionally." >&5
10105 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10106 Usually this means the macro was only invoked conditionally." >&2;}
10107 { (exit 1); exit 1; }; }
10108 fi
10109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10110 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10111 Usually this means the macro was only invoked conditionally." >&5
10112 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10113 Usually this means the macro was only invoked conditionally." >&2;}
10114 { (exit 1); exit 1; }; }
10115 fi
10116 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
10117 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
10118 Usually this means the macro was only invoked conditionally." >&5
10119 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
10120 Usually this means the macro was only invoked conditionally." >&2;}
10121 { (exit 1); exit 1; }; }
10122 fi
10123 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
10124 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
10125 Usually this means the macro was only invoked conditionally." >&5
10126 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
10127 Usually this means the macro was only invoked conditionally." >&2;}
10128 { (exit 1); exit 1; }; }
10129 fi
10130 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
10131 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
10132 Usually this means the macro was only invoked conditionally." >&5
10133 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
10134 Usually this means the macro was only invoked conditionally." >&2;}
10135 { (exit 1); exit 1; }; }
10136 fi
10137 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
10138 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
10139 Usually this means the macro was only invoked conditionally." >&5
10140 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
10141 Usually this means the macro was only invoked conditionally." >&2;}
10142 { (exit 1); exit 1; }; }
10143 fi
10144 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
10145 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
10146 Usually this means the macro was only invoked conditionally." >&5
10147 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
10148 Usually this means the macro was only invoked conditionally." >&2;}
10149 { (exit 1); exit 1; }; }
10150 fi
10151 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
10152 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
10153 Usually this means the macro was only invoked conditionally." >&5
10154 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
10155 Usually this means the macro was only invoked conditionally." >&2;}
10156 { (exit 1); exit 1; }; }
10157 fi
10158 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
10159 { { echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
10160 Usually this means the macro was only invoked conditionally." >&5
10161 echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
10162 Usually this means the macro was only invoked conditionally." >&2;}
10163 { (exit 1); exit 1; }; }
10164 fi
10165 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
10166 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
10167 Usually this means the macro was only invoked conditionally." >&5
10168 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
10169 Usually this means the macro was only invoked conditionally." >&2;}
10170 { (exit 1); exit 1; }; }
10171 fi
10172 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
10173 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
10174 Usually this means the macro was only invoked conditionally." >&5
10175 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
10176 Usually this means the macro was only invoked conditionally." >&2;}
10177 { (exit 1); exit 1; }; }
10178 fi
10179 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
10180 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
10181 Usually this means the macro was only invoked conditionally." >&5
10182 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
10183 Usually this means the macro was only invoked conditionally." >&2;}
10184 { (exit 1); exit 1; }; }
10185 fi
10186 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
10187 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
10188 Usually this means the macro was only invoked conditionally." >&5
10189 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
10190 Usually this means the macro was only invoked conditionally." >&2;}
10191 { (exit 1); exit 1; }; }
10192 fi
10193 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
10194 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
10195 Usually this means the macro was only invoked conditionally." >&5
10196 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
10197 Usually this means the macro was only invoked conditionally." >&2;}
10198 { (exit 1); exit 1; }; }
10199 fi
10200 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
10201 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
10202 Usually this means the macro was only invoked conditionally." >&5
10203 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
10204 Usually this means the macro was only invoked conditionally." >&2;}
10205 { (exit 1); exit 1; }; }
10206 fi
10207 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
10208 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
10209 Usually this means the macro was only invoked conditionally." >&5
10210 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
10211 Usually this means the macro was only invoked conditionally." >&2;}
10212 { (exit 1); exit 1; }; }
10213 fi
10215 : ${CONFIG_STATUS=./config.status}
10216 ac_clean_files_save=$ac_clean_files
10217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10218 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10219 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10220 cat >$CONFIG_STATUS <<_ACEOF
10221 #! $SHELL
10222 # Generated by $as_me.
10223 # Run this file to recreate the current configuration.
10224 # Compiler output produced by configure, useful for debugging
10225 # configure, is in config.log if it exists.
10227 debug=false
10228 ac_cs_recheck=false
10229 ac_cs_silent=false
10230 SHELL=\${CONFIG_SHELL-$SHELL}
10231 _ACEOF
10233 cat >>$CONFIG_STATUS <<\_ACEOF
10234 ## --------------------- ##
10235 ## M4sh Initialization. ##
10236 ## --------------------- ##
10238 # Be more Bourne compatible
10239 DUALCASE=1; export DUALCASE # for MKS sh
10240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10241 emulate sh
10242 NULLCMD=:
10243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10244 # is contrary to our usage. Disable this feature.
10245 alias -g '${1+"$@"}'='"$@"'
10246 setopt NO_GLOB_SUBST
10247 else
10248 case `(set -o) 2>/dev/null` in
10249 *posix*) set -o posix ;;
10250 esac
10252 fi
10257 # PATH needs CR
10258 # Avoid depending upon Character Ranges.
10259 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10262 as_cr_digits='0123456789'
10263 as_cr_alnum=$as_cr_Letters$as_cr_digits
10265 # The user is always right.
10266 if test "${PATH_SEPARATOR+set}" != set; then
10267 echo "#! /bin/sh" >conf$$.sh
10268 echo "exit 0" >>conf$$.sh
10269 chmod +x conf$$.sh
10270 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10271 PATH_SEPARATOR=';'
10272 else
10273 PATH_SEPARATOR=:
10274 fi
10275 rm -f conf$$.sh
10276 fi
10278 # Support unset when possible.
10279 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10280 as_unset=unset
10281 else
10282 as_unset=false
10283 fi
10286 # IFS
10287 # We need space, tab and new line, in precisely that order. Quoting is
10288 # there to prevent editors from complaining about space-tab.
10289 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10290 # splitting by setting IFS to empty value.)
10291 as_nl='
10292 '
10293 IFS=" "" $as_nl"
10295 # Find who we are. Look in the path if we contain no directory separator.
10296 case $0 in
10297 *[\\/]* ) as_myself=$0 ;;
10298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10300 do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10304 done
10305 IFS=$as_save_IFS
10307 ;;
10308 esac
10309 # We did not find ourselves, most probably we were run as `sh COMMAND'
10310 # in which case we are not to be found in the path.
10311 if test "x$as_myself" = x; then
10312 as_myself=$0
10313 fi
10314 if test ! -f "$as_myself"; then
10315 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10316 { (exit 1); exit 1; }
10317 fi
10319 # Work around bugs in pre-3.0 UWIN ksh.
10320 for as_var in ENV MAIL MAILPATH
10321 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10322 done
10323 PS1='$ '
10324 PS2='> '
10325 PS4='+ '
10327 # NLS nuisances.
10328 for as_var in \
10329 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10330 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10331 LC_TELEPHONE LC_TIME
10332 do
10333 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10334 eval $as_var=C; export $as_var
10335 else
10336 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10337 fi
10338 done
10340 # Required to use basename.
10341 if expr a : '\(a\)' >/dev/null 2>&1 &&
10342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10343 as_expr=expr
10344 else
10345 as_expr=false
10346 fi
10348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10349 as_basename=basename
10350 else
10351 as_basename=false
10352 fi
10355 # Name of the executable.
10356 as_me=`$as_basename -- "$0" ||
10357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10358 X"$0" : 'X\(//\)$' \| \
10359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10360 echo X/"$0" |
10361 sed '/^.*\/\([^/][^/]*\)\/*$/{
10362 s//\1/
10363 q
10364 }
10365 /^X\/\(\/\/\)$/{
10366 s//\1/
10367 q
10368 }
10369 /^X\/\(\/\).*/{
10370 s//\1/
10371 q
10372 }
10373 s/.*/./; q'`
10375 # CDPATH.
10376 $as_unset CDPATH
10380 as_lineno_1=$LINENO
10381 as_lineno_2=$LINENO
10382 test "x$as_lineno_1" != "x$as_lineno_2" &&
10383 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10386 # uniformly replaced by the line number. The first 'sed' inserts a
10387 # line-number line after each line using $LINENO; the second 'sed'
10388 # does the real work. The second script uses 'N' to pair each
10389 # line-number line with the line containing $LINENO, and appends
10390 # trailing '-' during substitution so that $LINENO is not a special
10391 # case at line end.
10392 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10393 # scripts with optimization help from Paolo Bonzini. Blame Lee
10394 # E. McMahon (1931-1989) for sed's syntax. :-)
10395 sed -n '
10396 p
10397 /[$]LINENO/=
10398 ' <$as_myself |
10399 sed '
10400 s/[$]LINENO.*/&-/
10401 t lineno
10402 b
10403 :lineno
10404 N
10405 :loop
10406 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10407 t loop
10408 s/-\n.*//
10409 ' >$as_me.lineno &&
10410 chmod +x "$as_me.lineno" ||
10411 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10412 { (exit 1); exit 1; }; }
10414 # Don't try to exec as it changes $[0], causing all sort of problems
10415 # (the dirname of $[0] is not the place where we might find the
10416 # original and so on. Autoconf is especially sensitive to this).
10417 . "./$as_me.lineno"
10418 # Exit status is that of the last command.
10419 exit
10420 }
10423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10424 as_dirname=dirname
10425 else
10426 as_dirname=false
10427 fi
10429 ECHO_C= ECHO_N= ECHO_T=
10430 case `echo -n x` in
10431 -n*)
10432 case `echo 'x\c'` in
10433 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10434 *) ECHO_C='\c';;
10435 esac;;
10436 *)
10437 ECHO_N='-n';;
10438 esac
10440 if expr a : '\(a\)' >/dev/null 2>&1 &&
10441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10442 as_expr=expr
10443 else
10444 as_expr=false
10445 fi
10447 rm -f conf$$ conf$$.exe conf$$.file
10448 if test -d conf$$.dir; then
10449 rm -f conf$$.dir/conf$$.file
10450 else
10451 rm -f conf$$.dir
10452 mkdir conf$$.dir
10453 fi
10454 echo >conf$$.file
10455 if ln -s conf$$.file conf$$ 2>/dev/null; then
10456 as_ln_s='ln -s'
10457 # ... but there are two gotchas:
10458 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10459 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10460 # In both cases, we have to default to `cp -p'.
10461 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10462 as_ln_s='cp -p'
10463 elif ln conf$$.file conf$$ 2>/dev/null; then
10464 as_ln_s=ln
10465 else
10466 as_ln_s='cp -p'
10467 fi
10468 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10469 rmdir conf$$.dir 2>/dev/null
10471 if mkdir -p . 2>/dev/null; then
10472 as_mkdir_p=:
10473 else
10474 test -d ./-p && rmdir ./-p
10475 as_mkdir_p=false
10476 fi
10478 if test -x / >/dev/null 2>&1; then
10479 as_test_x='test -x'
10480 else
10481 if ls -dL / >/dev/null 2>&1; then
10482 as_ls_L_option=L
10483 else
10484 as_ls_L_option=
10485 fi
10486 as_test_x='
10487 eval sh -c '\''
10488 if test -d "$1"; then
10489 test -d "$1/.";
10490 else
10491 case $1 in
10492 -*)set "./$1";;
10493 esac;
10494 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10495 ???[sx]*):;;*)false;;esac;fi
10496 '\'' sh
10497 '
10498 fi
10499 as_executable_p=$as_test_x
10501 # Sed expression to map a string onto a valid CPP name.
10502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10504 # Sed expression to map a string onto a valid variable name.
10505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10508 exec 6>&1
10510 # Save the log message, to keep $[0] and so on meaningful, and to
10511 # report actual input values of CONFIG_FILES etc. instead of their
10512 # values after options handling.
10513 ac_log="
10514 This file was extended by $as_me, which was
10515 generated by GNU Autoconf 2.61. Invocation command line was
10517 CONFIG_FILES = $CONFIG_FILES
10518 CONFIG_HEADERS = $CONFIG_HEADERS
10519 CONFIG_LINKS = $CONFIG_LINKS
10520 CONFIG_COMMANDS = $CONFIG_COMMANDS
10521 $ $0 $@
10523 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10524 "
10526 _ACEOF
10528 cat >>$CONFIG_STATUS <<_ACEOF
10529 # Files that config.status was made for.
10530 config_files="$ac_config_files"
10531 config_headers="$ac_config_headers"
10532 config_commands="$ac_config_commands"
10534 _ACEOF
10536 cat >>$CONFIG_STATUS <<\_ACEOF
10537 ac_cs_usage="\
10538 \`$as_me' instantiates files from templates according to the
10539 current configuration.
10541 Usage: $0 [OPTIONS] [FILE]...
10543 -h, --help print this help, then exit
10544 -V, --version print version number and configuration settings, then exit
10545 -q, --quiet do not print progress messages
10546 -d, --debug don't remove temporary files
10547 --recheck update $as_me by reconfiguring in the same conditions
10548 --file=FILE[:TEMPLATE]
10549 instantiate the configuration file FILE
10550 --header=FILE[:TEMPLATE]
10551 instantiate the configuration header FILE
10553 Configuration files:
10554 $config_files
10556 Configuration headers:
10557 $config_headers
10559 Configuration commands:
10560 $config_commands
10562 Report bugs to <bug-autoconf@gnu.org>."
10564 _ACEOF
10565 cat >>$CONFIG_STATUS <<_ACEOF
10566 ac_cs_version="\\
10567 config.status
10568 configured by $0, generated by GNU Autoconf 2.61,
10569 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10571 Copyright (C) 2006 Free Software Foundation, Inc.
10572 This config.status script is free software; the Free Software Foundation
10573 gives unlimited permission to copy, distribute and modify it."
10575 ac_pwd='$ac_pwd'
10576 srcdir='$srcdir'
10577 INSTALL='$INSTALL'
10578 _ACEOF
10580 cat >>$CONFIG_STATUS <<\_ACEOF
10581 # If no file are specified by the user, then we need to provide default
10582 # value. By we need to know if files were specified by the user.
10583 ac_need_defaults=:
10584 while test $# != 0
10585 do
10586 case $1 in
10587 --*=*)
10588 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10589 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10590 ac_shift=:
10591 ;;
10592 *)
10593 ac_option=$1
10594 ac_optarg=$2
10595 ac_shift=shift
10596 ;;
10597 esac
10599 case $ac_option in
10600 # Handling of the options.
10601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10602 ac_cs_recheck=: ;;
10603 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10604 echo "$ac_cs_version"; exit ;;
10605 --debug | --debu | --deb | --de | --d | -d )
10606 debug=: ;;
10607 --file | --fil | --fi | --f )
10608 $ac_shift
10609 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10610 ac_need_defaults=false;;
10611 --header | --heade | --head | --hea )
10612 $ac_shift
10613 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10614 ac_need_defaults=false;;
10615 --he | --h)
10616 # Conflict between --help and --header
10617 { echo "$as_me: error: ambiguous option: $1
10618 Try \`$0 --help' for more information." >&2
10619 { (exit 1); exit 1; }; };;
10620 --help | --hel | -h )
10621 echo "$ac_cs_usage"; exit ;;
10622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10623 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10624 ac_cs_silent=: ;;
10626 # This is an error.
10627 -*) { echo "$as_me: error: unrecognized option: $1
10628 Try \`$0 --help' for more information." >&2
10629 { (exit 1); exit 1; }; } ;;
10631 *) ac_config_targets="$ac_config_targets $1"
10632 ac_need_defaults=false ;;
10634 esac
10635 shift
10636 done
10638 ac_configure_extra_args=
10640 if $ac_cs_silent; then
10641 exec 6>/dev/null
10642 ac_configure_extra_args="$ac_configure_extra_args --silent"
10643 fi
10645 _ACEOF
10646 cat >>$CONFIG_STATUS <<_ACEOF
10647 if \$ac_cs_recheck; then
10648 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10649 CONFIG_SHELL=$SHELL
10650 export CONFIG_SHELL
10651 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10652 fi
10654 _ACEOF
10655 cat >>$CONFIG_STATUS <<\_ACEOF
10656 exec 5>>config.log
10657 {
10658 echo
10659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10660 ## Running $as_me. ##
10661 _ASBOX
10662 echo "$ac_log"
10663 } >&5
10665 _ACEOF
10666 cat >>$CONFIG_STATUS <<_ACEOF
10667 #
10668 # INIT-COMMANDS
10669 #
10670 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10673 _ACEOF
10675 cat >>$CONFIG_STATUS <<\_ACEOF
10677 # Handling of arguments.
10678 for ac_config_target in $ac_config_targets
10679 do
10680 case $ac_config_target in
10681 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10682 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10683 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10684 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10685 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10686 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10687 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
10689 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10690 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10691 { (exit 1); exit 1; }; };;
10692 esac
10693 done
10696 # If the user did not use the arguments to specify the items to instantiate,
10697 # then the envvar interface is used. Set only those that are not.
10698 # We use the long form for the default assignment because of an extremely
10699 # bizarre bug on SunOS 4.1.3.
10700 if $ac_need_defaults; then
10701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10704 fi
10706 # Have a temporary directory for convenience. Make it in the build tree
10707 # simply because there is no reason against having it here, and in addition,
10708 # creating and moving files from /tmp can sometimes cause problems.
10709 # Hook for its removal unless debugging.
10710 # Note that there is a small window in which the directory will not be cleaned:
10711 # after its creation but before its name has been assigned to `$tmp'.
10712 $debug ||
10713 {
10714 tmp=
10715 trap 'exit_status=$?
10716 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10717 ' 0
10718 trap '{ (exit 1); exit 1; }' 1 2 13 15
10719 }
10720 # Create a (secure) tmp directory for tmp files.
10722 {
10723 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10724 test -n "$tmp" && test -d "$tmp"
10725 } ||
10726 {
10727 tmp=./conf$$-$RANDOM
10728 (umask 077 && mkdir "$tmp")
10729 } ||
10730 {
10731 echo "$me: cannot create a temporary directory in ." >&2
10732 { (exit 1); exit 1; }
10733 }
10735 #
10736 # Set up the sed scripts for CONFIG_FILES section.
10737 #
10739 # No need to generate the scripts if there are no CONFIG_FILES.
10740 # This happens for instance when ./config.status config.h
10741 if test -n "$CONFIG_FILES"; then
10743 _ACEOF
10747 ac_delim='%!_!# '
10748 for ac_last_try in false false false false false :; do
10749 cat >conf$$subs.sed <<_ACEOF
10750 SHELL!$SHELL$ac_delim
10751 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10752 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10753 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10754 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10755 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10756 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10757 exec_prefix!$exec_prefix$ac_delim
10758 prefix!$prefix$ac_delim
10759 program_transform_name!$program_transform_name$ac_delim
10760 bindir!$bindir$ac_delim
10761 sbindir!$sbindir$ac_delim
10762 libexecdir!$libexecdir$ac_delim
10763 datarootdir!$datarootdir$ac_delim
10764 datadir!$datadir$ac_delim
10765 sysconfdir!$sysconfdir$ac_delim
10766 sharedstatedir!$sharedstatedir$ac_delim
10767 localstatedir!$localstatedir$ac_delim
10768 includedir!$includedir$ac_delim
10769 oldincludedir!$oldincludedir$ac_delim
10770 docdir!$docdir$ac_delim
10771 infodir!$infodir$ac_delim
10772 htmldir!$htmldir$ac_delim
10773 dvidir!$dvidir$ac_delim
10774 pdfdir!$pdfdir$ac_delim
10775 psdir!$psdir$ac_delim
10776 libdir!$libdir$ac_delim
10777 localedir!$localedir$ac_delim
10778 mandir!$mandir$ac_delim
10779 DEFS!$DEFS$ac_delim
10780 ECHO_C!$ECHO_C$ac_delim
10781 ECHO_N!$ECHO_N$ac_delim
10782 ECHO_T!$ECHO_T$ac_delim
10783 LIBS!$LIBS$ac_delim
10784 build_alias!$build_alias$ac_delim
10785 host_alias!$host_alias$ac_delim
10786 target_alias!$target_alias$ac_delim
10787 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10788 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10789 INSTALL_DATA!$INSTALL_DATA$ac_delim
10790 CYGPATH_W!$CYGPATH_W$ac_delim
10791 PACKAGE!$PACKAGE$ac_delim
10792 VERSION!$VERSION$ac_delim
10793 ACLOCAL!$ACLOCAL$ac_delim
10794 AUTOCONF!$AUTOCONF$ac_delim
10795 AUTOMAKE!$AUTOMAKE$ac_delim
10796 AUTOHEADER!$AUTOHEADER$ac_delim
10797 MAKEINFO!$MAKEINFO$ac_delim
10798 install_sh!$install_sh$ac_delim
10799 STRIP!$STRIP$ac_delim
10800 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10801 mkdir_p!$mkdir_p$ac_delim
10802 AWK!$AWK$ac_delim
10803 SET_MAKE!$SET_MAKE$ac_delim
10804 am__leading_dot!$am__leading_dot$ac_delim
10805 AMTAR!$AMTAR$ac_delim
10806 am__tar!$am__tar$ac_delim
10807 am__untar!$am__untar$ac_delim
10808 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10809 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10810 MAINT!$MAINT$ac_delim
10811 CC!$CC$ac_delim
10812 CFLAGS!$CFLAGS$ac_delim
10813 LDFLAGS!$LDFLAGS$ac_delim
10814 CPPFLAGS!$CPPFLAGS$ac_delim
10815 ac_ct_CC!$ac_ct_CC$ac_delim
10816 EXEEXT!$EXEEXT$ac_delim
10817 OBJEXT!$OBJEXT$ac_delim
10818 DEPDIR!$DEPDIR$ac_delim
10819 am__include!$am__include$ac_delim
10820 am__quote!$am__quote$ac_delim
10821 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10822 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10823 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10824 CCDEPMODE!$CCDEPMODE$ac_delim
10825 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10826 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10827 CCAS!$CCAS$ac_delim
10828 CCASFLAGS!$CCASFLAGS$ac_delim
10829 CPP!$CPP$ac_delim
10830 GREP!$GREP$ac_delim
10831 EGREP!$EGREP$ac_delim
10832 build!$build$ac_delim
10833 build_cpu!$build_cpu$ac_delim
10834 build_vendor!$build_vendor$ac_delim
10835 build_os!$build_os$ac_delim
10836 host!$host$ac_delim
10837 host_cpu!$host_cpu$ac_delim
10838 host_vendor!$host_vendor$ac_delim
10839 host_os!$host_os$ac_delim
10840 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
10841 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
10842 PKG_CONFIG!$PKG_CONFIG$ac_delim
10843 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
10844 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
10845 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
10846 GTK_LIBS!$GTK_LIBS$ac_delim
10847 _ACEOF
10849 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10850 break
10851 elif $ac_last_try; then
10852 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10853 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10854 { (exit 1); exit 1; }; }
10855 else
10856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10857 fi
10858 done
10860 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10861 if test -n "$ac_eof"; then
10862 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10863 ac_eof=`expr $ac_eof + 1`
10864 fi
10866 cat >>$CONFIG_STATUS <<_ACEOF
10867 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10869 _ACEOF
10870 sed '
10871 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10872 s/^/s,@/; s/!/@,|#_!!_#|/
10873 :n
10874 t n
10875 s/'"$ac_delim"'$/,g/; t
10876 s/$/\\/; p
10877 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10878 ' >>$CONFIG_STATUS <conf$$subs.sed
10879 rm -f conf$$subs.sed
10880 cat >>$CONFIG_STATUS <<_ACEOF
10881 CEOF$ac_eof
10882 _ACEOF
10885 ac_delim='%!_!# '
10886 for ac_last_try in false false false false false :; do
10887 cat >conf$$subs.sed <<_ACEOF
10888 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
10889 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
10890 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
10891 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
10892 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
10893 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
10894 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
10895 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
10896 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
10897 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
10898 BUILD_X86_64_TRUE!$BUILD_X86_64_TRUE$ac_delim
10899 BUILD_X86_64_FALSE!$BUILD_X86_64_FALSE$ac_delim
10900 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
10901 PULSE_LIBS!$PULSE_LIBS$ac_delim
10902 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
10903 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
10904 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
10905 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
10906 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
10907 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
10908 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
10909 ALSA_LIBS!$ALSA_LIBS$ac_delim
10910 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
10911 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
10912 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
10913 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
10914 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
10915 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
10916 SHCC!$SHCC$ac_delim
10917 SHLD!$SHLD$ac_delim
10918 SHOBJCOPY!$SHOBJCOPY$ac_delim
10919 ARMCC!$ARMCC$ac_delim
10920 ARMLD!$ARMLD$ac_delim
10921 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
10922 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
10923 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
10924 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
10925 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
10926 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
10927 USE_NLS!$USE_NLS$ac_delim
10928 MSGFMT!$MSGFMT$ac_delim
10929 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
10930 GMSGFMT!$GMSGFMT$ac_delim
10931 XGETTEXT!$XGETTEXT$ac_delim
10932 CATALOGS!$CATALOGS$ac_delim
10933 CATOBJEXT!$CATOBJEXT$ac_delim
10934 DATADIRNAME!$DATADIRNAME$ac_delim
10935 GMOFILES!$GMOFILES$ac_delim
10936 INSTOBJEXT!$INSTOBJEXT$ac_delim
10937 INTLLIBS!$INTLLIBS$ac_delim
10938 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
10939 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
10940 POFILES!$POFILES$ac_delim
10941 POSUB!$POSUB$ac_delim
10942 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
10943 LIBOBJS!$LIBOBJS$ac_delim
10944 LTLIBOBJS!$LTLIBOBJS$ac_delim
10945 _ACEOF
10947 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
10948 break
10949 elif $ac_last_try; then
10950 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10951 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10952 { (exit 1); exit 1; }; }
10953 else
10954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10955 fi
10956 done
10958 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10959 if test -n "$ac_eof"; then
10960 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10961 ac_eof=`expr $ac_eof + 1`
10962 fi
10964 cat >>$CONFIG_STATUS <<_ACEOF
10965 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10967 _ACEOF
10968 sed '
10969 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10970 s/^/s,@/; s/!/@,|#_!!_#|/
10971 :n
10972 t n
10973 s/'"$ac_delim"'$/,g/; t
10974 s/$/\\/; p
10975 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10976 ' >>$CONFIG_STATUS <conf$$subs.sed
10977 rm -f conf$$subs.sed
10978 cat >>$CONFIG_STATUS <<_ACEOF
10979 :end
10980 s/|#_!!_#|//g
10981 CEOF$ac_eof
10982 _ACEOF
10985 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10986 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10987 # trailing colons and then remove the whole line if VPATH becomes empty
10988 # (actually we leave an empty line to preserve line numbers).
10989 if test "x$srcdir" = x.; then
10990 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10991 s/:*\$(srcdir):*/:/
10992 s/:*\${srcdir}:*/:/
10993 s/:*@srcdir@:*/:/
10994 s/^\([^=]*=[ ]*\):*/\1/
10995 s/:*$//
10996 s/^[^=]*=[ ]*$//
10997 }'
10998 fi
11000 cat >>$CONFIG_STATUS <<\_ACEOF
11001 fi # test -n "$CONFIG_FILES"
11004 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11005 do
11006 case $ac_tag in
11007 :[FHLC]) ac_mode=$ac_tag; continue;;
11008 esac
11009 case $ac_mode$ac_tag in
11010 :[FHL]*:*);;
11011 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11012 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11013 { (exit 1); exit 1; }; };;
11014 :[FH]-) ac_tag=-:-;;
11015 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11016 esac
11017 ac_save_IFS=$IFS
11018 IFS=:
11019 set x $ac_tag
11020 IFS=$ac_save_IFS
11021 shift
11022 ac_file=$1
11023 shift
11025 case $ac_mode in
11026 :L) ac_source=$1;;
11027 :[FH])
11028 ac_file_inputs=
11029 for ac_f
11030 do
11031 case $ac_f in
11032 -) ac_f="$tmp/stdin";;
11033 *) # Look for the file first in the build tree, then in the source tree
11034 # (if the path is not absolute). The absolute path cannot be DOS-style,
11035 # because $ac_f cannot contain `:'.
11036 test -f "$ac_f" ||
11037 case $ac_f in
11038 [\\/$]*) false;;
11039 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11040 esac ||
11041 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11042 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11043 { (exit 1); exit 1; }; };;
11044 esac
11045 ac_file_inputs="$ac_file_inputs $ac_f"
11046 done
11048 # Let's still pretend it is `configure' which instantiates (i.e., don't
11049 # use $as_me), people would be surprised to read:
11050 # /* config.h. Generated by config.status. */
11051 configure_input="Generated from "`IFS=:
11052 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11053 if test x"$ac_file" != x-; then
11054 configure_input="$ac_file. $configure_input"
11055 { echo "$as_me:$LINENO: creating $ac_file" >&5
11056 echo "$as_me: creating $ac_file" >&6;}
11057 fi
11059 case $ac_tag in
11060 *:-:* | *:-) cat >"$tmp/stdin";;
11061 esac
11062 ;;
11063 esac
11065 ac_dir=`$as_dirname -- "$ac_file" ||
11066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11067 X"$ac_file" : 'X\(//\)[^/]' \| \
11068 X"$ac_file" : 'X\(//\)$' \| \
11069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11070 echo X"$ac_file" |
11071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11072 s//\1/
11073 q
11074 }
11075 /^X\(\/\/\)[^/].*/{
11076 s//\1/
11077 q
11078 }
11079 /^X\(\/\/\)$/{
11080 s//\1/
11081 q
11082 }
11083 /^X\(\/\).*/{
11084 s//\1/
11085 q
11086 }
11087 s/.*/./; q'`
11088 { as_dir="$ac_dir"
11089 case $as_dir in #(
11090 -*) as_dir=./$as_dir;;
11091 esac
11092 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11093 as_dirs=
11094 while :; do
11095 case $as_dir in #(
11096 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11097 *) as_qdir=$as_dir;;
11098 esac
11099 as_dirs="'$as_qdir' $as_dirs"
11100 as_dir=`$as_dirname -- "$as_dir" ||
11101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11102 X"$as_dir" : 'X\(//\)[^/]' \| \
11103 X"$as_dir" : 'X\(//\)$' \| \
11104 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11105 echo X"$as_dir" |
11106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11107 s//\1/
11108 q
11109 }
11110 /^X\(\/\/\)[^/].*/{
11111 s//\1/
11112 q
11113 }
11114 /^X\(\/\/\)$/{
11115 s//\1/
11116 q
11117 }
11118 /^X\(\/\).*/{
11119 s//\1/
11120 q
11121 }
11122 s/.*/./; q'`
11123 test -d "$as_dir" && break
11124 done
11125 test -z "$as_dirs" || eval "mkdir $as_dirs"
11126 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11127 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11128 { (exit 1); exit 1; }; }; }
11129 ac_builddir=.
11131 case "$ac_dir" in
11132 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11133 *)
11134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11135 # A ".." for each directory in $ac_dir_suffix.
11136 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11137 case $ac_top_builddir_sub in
11138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11140 esac ;;
11141 esac
11142 ac_abs_top_builddir=$ac_pwd
11143 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11144 # for backward compatibility:
11145 ac_top_builddir=$ac_top_build_prefix
11147 case $srcdir in
11148 .) # We are building in place.
11149 ac_srcdir=.
11150 ac_top_srcdir=$ac_top_builddir_sub
11151 ac_abs_top_srcdir=$ac_pwd ;;
11152 [\\/]* | ?:[\\/]* ) # Absolute name.
11153 ac_srcdir=$srcdir$ac_dir_suffix;
11154 ac_top_srcdir=$srcdir
11155 ac_abs_top_srcdir=$srcdir ;;
11156 *) # Relative name.
11157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11158 ac_top_srcdir=$ac_top_build_prefix$srcdir
11159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11160 esac
11161 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11164 case $ac_mode in
11165 :F)
11166 #
11167 # CONFIG_FILE
11168 #
11170 case $INSTALL in
11171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11172 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11173 esac
11174 _ACEOF
11176 cat >>$CONFIG_STATUS <<\_ACEOF
11177 # If the template does not know about datarootdir, expand it.
11178 # FIXME: This hack should be removed a few years after 2.60.
11179 ac_datarootdir_hack=; ac_datarootdir_seen=
11181 case `sed -n '/datarootdir/ {
11182 p
11183 q
11184 }
11185 /@datadir@/p
11186 /@docdir@/p
11187 /@infodir@/p
11188 /@localedir@/p
11189 /@mandir@/p
11190 ' $ac_file_inputs` in
11191 *datarootdir*) ac_datarootdir_seen=yes;;
11192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11193 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11194 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11195 _ACEOF
11196 cat >>$CONFIG_STATUS <<_ACEOF
11197 ac_datarootdir_hack='
11198 s&@datadir@&$datadir&g
11199 s&@docdir@&$docdir&g
11200 s&@infodir@&$infodir&g
11201 s&@localedir@&$localedir&g
11202 s&@mandir@&$mandir&g
11203 s&\\\${datarootdir}&$datarootdir&g' ;;
11204 esac
11205 _ACEOF
11207 # Neutralize VPATH when `$srcdir' = `.'.
11208 # Shell code in configure.ac might set extrasub.
11209 # FIXME: do we really want to maintain this feature?
11210 cat >>$CONFIG_STATUS <<_ACEOF
11211 sed "$ac_vpsub
11212 $extrasub
11213 _ACEOF
11214 cat >>$CONFIG_STATUS <<\_ACEOF
11215 :t
11216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11217 s&@configure_input@&$configure_input&;t t
11218 s&@top_builddir@&$ac_top_builddir_sub&;t t
11219 s&@srcdir@&$ac_srcdir&;t t
11220 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11221 s&@top_srcdir@&$ac_top_srcdir&;t t
11222 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11223 s&@builddir@&$ac_builddir&;t t
11224 s&@abs_builddir@&$ac_abs_builddir&;t t
11225 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11226 s&@INSTALL@&$ac_INSTALL&;t t
11227 $ac_datarootdir_hack
11228 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11233 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11234 which seems to be undefined. Please make sure it is defined." >&5
11235 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11236 which seems to be undefined. Please make sure it is defined." >&2;}
11238 rm -f "$tmp/stdin"
11239 case $ac_file in
11240 -) cat "$tmp/out"; rm -f "$tmp/out";;
11241 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11242 esac
11243 ;;
11244 :H)
11245 #
11246 # CONFIG_HEADER
11247 #
11248 _ACEOF
11250 # Transform confdefs.h into a sed script `conftest.defines', that
11251 # substitutes the proper values into config.h.in to produce config.h.
11252 rm -f conftest.defines conftest.tail
11253 # First, append a space to every undef/define line, to ease matching.
11254 echo 's/$/ /' >conftest.defines
11255 # Then, protect against being on the right side of a sed subst, or in
11256 # an unquoted here document, in config.status. If some macros were
11257 # called several times there might be several #defines for the same
11258 # symbol, which is useless. But do not sort them, since the last
11259 # AC_DEFINE must be honored.
11260 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11261 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11262 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11263 # PARAMS is the parameter list in the macro definition--in most cases, it's
11264 # just an empty string.
11265 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11266 ac_dB='\\)[ (].*,\\1define\\2'
11267 ac_dC=' '
11268 ac_dD=' ,'
11270 uniq confdefs.h |
11271 sed -n '
11272 t rset
11273 :rset
11274 s/^[ ]*#[ ]*define[ ][ ]*//
11275 t ok
11276 d
11277 :ok
11278 s/[\\&,]/\\&/g
11279 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11280 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11281 ' >>conftest.defines
11283 # Remove the space that was appended to ease matching.
11284 # Then replace #undef with comments. This is necessary, for
11285 # example, in the case of _POSIX_SOURCE, which is predefined and required
11286 # on some systems where configure will not decide to define it.
11287 # (The regexp can be short, since the line contains either #define or #undef.)
11288 echo 's/ $//
11289 s,^[ #]*u.*,/* & */,' >>conftest.defines
11291 # Break up conftest.defines:
11292 ac_max_sed_lines=50
11294 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11295 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11296 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11297 # et cetera.
11298 ac_in='$ac_file_inputs'
11299 ac_out='"$tmp/out1"'
11300 ac_nxt='"$tmp/out2"'
11302 while :
11303 do
11304 # Write a here document:
11305 cat >>$CONFIG_STATUS <<_ACEOF
11306 # First, check the format of the line:
11307 cat >"\$tmp/defines.sed" <<\\CEOF
11308 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11309 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11310 b
11311 :def
11312 _ACEOF
11313 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11314 echo 'CEOF
11315 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11316 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11317 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11318 grep . conftest.tail >/dev/null || break
11319 rm -f conftest.defines
11320 mv conftest.tail conftest.defines
11321 done
11322 rm -f conftest.defines conftest.tail
11324 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11325 cat >>$CONFIG_STATUS <<\_ACEOF
11326 if test x"$ac_file" != x-; then
11327 echo "/* $configure_input */" >"$tmp/config.h"
11328 cat "$ac_result" >>"$tmp/config.h"
11329 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11331 echo "$as_me: $ac_file is unchanged" >&6;}
11332 else
11333 rm -f $ac_file
11334 mv "$tmp/config.h" $ac_file
11335 fi
11336 else
11337 echo "/* $configure_input */"
11338 cat "$ac_result"
11339 fi
11340 rm -f "$tmp/out12"
11341 # Compute $ac_file's index in $config_headers.
11342 _am_stamp_count=1
11343 for _am_header in $config_headers :; do
11344 case $_am_header in
11345 $ac_file | $ac_file:* )
11346 break ;;
11347 * )
11348 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11349 esac
11350 done
11351 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11352 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11353 X$ac_file : 'X\(//\)[^/]' \| \
11354 X$ac_file : 'X\(//\)$' \| \
11355 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11356 echo X$ac_file |
11357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11358 s//\1/
11359 q
11360 }
11361 /^X\(\/\/\)[^/].*/{
11362 s//\1/
11363 q
11364 }
11365 /^X\(\/\/\)$/{
11366 s//\1/
11367 q
11368 }
11369 /^X\(\/\).*/{
11370 s//\1/
11371 q
11372 }
11373 s/.*/./; q'`/stamp-h$_am_stamp_count
11374 ;;
11376 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11377 echo "$as_me: executing $ac_file commands" >&6;}
11378 ;;
11379 esac
11382 case $ac_file$ac_mode in
11383 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11384 # Strip MF so we end up with the name of the file.
11385 mf=`echo "$mf" | sed -e 's/:.*$//'`
11386 # Check whether this is an Automake generated Makefile or not.
11387 # We used to match only the files named `Makefile.in', but
11388 # some people rename them; so instead we look at the file content.
11389 # Grep'ing the first line is not enough: some people post-process
11390 # each Makefile.in and add a new line on top of each file to say so.
11391 # So let's grep whole file.
11392 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11393 dirpart=`$as_dirname -- "$mf" ||
11394 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11395 X"$mf" : 'X\(//\)[^/]' \| \
11396 X"$mf" : 'X\(//\)$' \| \
11397 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11398 echo X"$mf" |
11399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11400 s//\1/
11401 q
11402 }
11403 /^X\(\/\/\)[^/].*/{
11404 s//\1/
11405 q
11406 }
11407 /^X\(\/\/\)$/{
11408 s//\1/
11409 q
11410 }
11411 /^X\(\/\).*/{
11412 s//\1/
11413 q
11414 }
11415 s/.*/./; q'`
11416 else
11417 continue
11418 fi
11419 # Extract the definition of DEPDIR, am__include, and am__quote
11420 # from the Makefile without running `make'.
11421 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11422 test -z "$DEPDIR" && continue
11423 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11424 test -z "am__include" && continue
11425 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11426 # When using ansi2knr, U may be empty or an underscore; expand it
11427 U=`sed -n 's/^U = //p' < "$mf"`
11428 # Find all dependency output files, they are included files with
11429 # $(DEPDIR) in their names. We invoke sed twice because it is the
11430 # simplest approach to changing $(DEPDIR) to its actual value in the
11431 # expansion.
11432 for file in `sed -n "
11433 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11434 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11435 # Make sure the directory exists.
11436 test -f "$dirpart/$file" && continue
11437 fdir=`$as_dirname -- "$file" ||
11438 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11439 X"$file" : 'X\(//\)[^/]' \| \
11440 X"$file" : 'X\(//\)$' \| \
11441 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11442 echo X"$file" |
11443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11444 s//\1/
11445 q
11446 }
11447 /^X\(\/\/\)[^/].*/{
11448 s//\1/
11449 q
11450 }
11451 /^X\(\/\/\)$/{
11452 s//\1/
11453 q
11454 }
11455 /^X\(\/\).*/{
11456 s//\1/
11457 q
11458 }
11459 s/.*/./; q'`
11460 { as_dir=$dirpart/$fdir
11461 case $as_dir in #(
11462 -*) as_dir=./$as_dir;;
11463 esac
11464 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11465 as_dirs=
11466 while :; do
11467 case $as_dir in #(
11468 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11469 *) as_qdir=$as_dir;;
11470 esac
11471 as_dirs="'$as_qdir' $as_dirs"
11472 as_dir=`$as_dirname -- "$as_dir" ||
11473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11474 X"$as_dir" : 'X\(//\)[^/]' \| \
11475 X"$as_dir" : 'X\(//\)$' \| \
11476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11477 echo X"$as_dir" |
11478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11479 s//\1/
11480 q
11481 }
11482 /^X\(\/\/\)[^/].*/{
11483 s//\1/
11484 q
11485 }
11486 /^X\(\/\/\)$/{
11487 s//\1/
11488 q
11489 }
11490 /^X\(\/\).*/{
11491 s//\1/
11492 q
11493 }
11494 s/.*/./; q'`
11495 test -d "$as_dir" && break
11496 done
11497 test -z "$as_dirs" || eval "mkdir $as_dirs"
11498 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11499 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11500 { (exit 1); exit 1; }; }; }
11501 # echo "creating $dirpart/$file"
11502 echo '# dummy' > "$dirpart/$file"
11503 done
11504 done
11505 ;;
11506 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
11507 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
11508 esac ;;
11510 esac
11511 done # for ac_tag
11514 { (exit 0); exit 0; }
11515 _ACEOF
11516 chmod +x $CONFIG_STATUS
11517 ac_clean_files=$ac_clean_files_save
11520 # configure is writing to config.log, and then calls config.status.
11521 # config.status does its own redirection, appending to config.log.
11522 # Unfortunately, on DOS this fails, as config.log is still kept open
11523 # by configure, so config.status won't be able to write to it; its
11524 # output is simply discarded. So we exec the FD to /dev/null,
11525 # effectively closing config.log, so it can be properly (re)opened and
11526 # appended to by config.status. When coming back to configure, we
11527 # need to make the FD available again.
11528 if test "$no_create" != yes; then
11529 ac_cs_success=:
11530 ac_config_status_args=
11531 test "$silent" = yes &&
11532 ac_config_status_args="$ac_config_status_args --quiet"
11533 exec 5>/dev/null
11534 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11535 exec 5>>config.log
11536 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11537 # would make configure fail if this is the last instruction.
11538 $ac_cs_success || { (exit 1); exit 1; }
11539 fi
.