Test
[Git-Me-Secret-Mario-Chromicles.git] / configure
blob52eb6fa241de2cc889df3668817717d32dad27cf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for smc 1.9.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='smc'
596 PACKAGE_TARNAME='smc'
597 PACKAGE_VERSION='1.9'
598 PACKAGE_STRING='smc 1.9'
599 PACKAGE_BUGREPORT=''
601 gt_needs=
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 LIBOBJS
642 RUNINPLACE_FALSE
643 RUNINPLACE_TRUE
644 EGREP
645 GREP
646 CXXCPP
647 POSUB
648 LTLIBINTL
649 LIBINTL
650 INTLLIBS
651 LTLIBICONV
652 LIBICONV
653 INTL_MACOSX_LIBS
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 ac_ct_CC
658 CFLAGS
660 XGETTEXT_EXTRA_OPTIONS
661 MSGMERGE
662 XGETTEXT_015
663 XGETTEXT
664 GMSGFMT_015
665 MSGFMT_015
666 GMSGFMT
667 MSGFMT
668 GETTEXT_MACRO_VERSION
669 USE_NLS
670 CEGUI_LIBS
671 CEGUI_CFLAGS
672 SDL_LIBS
673 SDL_CFLAGS
674 PKG_CONFIG
675 am__fastdepCXX_FALSE
676 am__fastdepCXX_TRUE
677 CXXDEPMODE
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CXX
687 CPPFLAGS
688 LDFLAGS
689 CXXFLAGS
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_os
715 target_vendor
716 target_cpu
717 target
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_dependency_tracking
767 enable_nls
768 with_gnu_ld
769 enable_rpath
770 with_libiconv_prefix
771 with_libintl_prefix
772 enable_debug
773 enable_runinplace
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
779 CXXFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
784 PKG_CONFIG
785 SDL_CFLAGS
786 SDL_LIBS
787 CEGUI_CFLAGS
788 CEGUI_LIBS
790 CFLAGS
791 CXXCPP'
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
842 ac_prev=
843 ac_dashdash=
844 for ac_option
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
853 case $ac_option in
854 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *) ac_optarg=yes ;;
856 esac
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
862 ac_dashdash=yes ;;
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
881 --config-cache | -C)
882 cache_file=config.cache ;;
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
901 { (exit 1); exit 1; }; }
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
928 { (exit 1); exit 1; }; }
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1180 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1181 Try \`$0 --help' for more information." >&2
1182 { (exit 1); exit 1; }; }
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1189 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1190 { (exit 1); exit 1; }; }
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 esac
1203 done
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1208 { (exit 1); exit 1; }; }
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
1214 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1215 { (exit 1); exit 1; }; } ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 esac
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1228 case $ac_val in
1229 */ )
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1232 esac
1233 # Be sure to have absolute directory names.
1234 case $ac_val in
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 esac
1238 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1239 { (exit 1); exit 1; }; }
1240 done
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used." >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1270 { (exit 1); exit 1; }; }
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1273 { (exit 1); exit 1; }; }
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1294 /^X\(\/\/\)$/{
1295 s//\1/
1298 /^X\(\/\).*/{
1299 s//\1/
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1307 else
1308 ac_srcdir_defaulted=no
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1313 { (exit 1); exit 1; }; }
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1318 { (exit 1); exit 1; }; }
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures smc 1.9 to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/smc]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1399 cat <<\_ACEOF
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 --target=TARGET configure for building compilers for TARGET [HOST]
1410 _ACEOF
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of smc 1.9:";;
1416 esac
1417 cat <<\_ACEOF
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --disable-nls do not use Native Language Support
1426 --disable-rpath do not hardcode runtime library paths
1427 --enable-debug enable debug build
1428 --enable-runinplace build to run inplace
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-gnu-ld assume the C compiler uses GNU ld default=no
1434 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1435 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1436 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1437 --without-libintl-prefix don't search for libintl in includedir and libdir
1439 Some influential environment variables:
1440 CXX C++ compiler command
1441 CXXFLAGS C++ compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 PKG_CONFIG path to pkg-config utility
1448 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1449 SDL_LIBS linker flags for SDL, overriding pkg-config
1450 CEGUI_CFLAGS
1451 C compiler flags for CEGUI, overriding pkg-config
1452 CEGUI_LIBS linker flags for CEGUI, overriding pkg-config
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 CXXCPP C++ preprocessor
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 _ACEOF
1461 ac_status=$?
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1488 case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 smc configure 1.9
1523 generated by GNU Autoconf 2.63
1525 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1526 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530 exit
1532 cat >config.log <<_ACEOF
1533 This file contains any messages produced by compilers while
1534 running configure, to aid debugging if configure makes a mistake.
1536 It was created by smc $as_me 1.9, which was
1537 generated by GNU Autoconf 2.63. Invocation command line was
1539 $ $0 $@
1541 _ACEOF
1542 exec 5>>config.log
1544 cat <<_ASUNAME
1545 ## --------- ##
1546 ## Platform. ##
1547 ## --------- ##
1549 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1550 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1551 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1552 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1553 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1555 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1556 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1558 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1559 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1560 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1561 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1562 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1563 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1564 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1566 _ASUNAME
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 $as_echo "PATH: $as_dir"
1574 done
1575 IFS=$as_save_IFS
1577 } >&5
1579 cat >&5 <<_ACEOF
1582 ## ----------- ##
1583 ## Core tests. ##
1584 ## ----------- ##
1586 _ACEOF
1589 # Keep a trace of the command line.
1590 # Strip out --no-create and --no-recursion so they do not pile up.
1591 # Strip out --silent because we don't want to record it for future runs.
1592 # Also quote any args containing shell meta-characters.
1593 # Make two passes to allow for proper duplicate-argument suppression.
1594 ac_configure_args=
1595 ac_configure_args0=
1596 ac_configure_args1=
1597 ac_must_keep_next=false
1598 for ac_pass in 1 2
1600 for ac_arg
1602 case $ac_arg in
1603 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1605 | -silent | --silent | --silen | --sile | --sil)
1606 continue ;;
1607 *\'*)
1608 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1609 esac
1610 case $ac_pass in
1611 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1613 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1614 if test $ac_must_keep_next = true; then
1615 ac_must_keep_next=false # Got value, back to normal.
1616 else
1617 case $ac_arg in
1618 *=* | --config-cache | -C | -disable-* | --disable-* \
1619 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1620 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1621 | -with-* | --with-* | -without-* | --without-* | --x)
1622 case "$ac_configure_args0 " in
1623 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624 esac
1626 -* ) ac_must_keep_next=true ;;
1627 esac
1629 ac_configure_args="$ac_configure_args '$ac_arg'"
1631 esac
1632 done
1633 done
1634 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1635 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1637 # When interrupted or exit'd, cleanup temporary files, and complete
1638 # config.log. We remove comments because anyway the quotes in there
1639 # would cause problems or look ugly.
1640 # WARNING: Use '\'' to represent an apostrophe within the trap.
1641 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1642 trap 'exit_status=$?
1643 # Save into config.log some information that might help in debugging.
1645 echo
1647 cat <<\_ASBOX
1648 ## ---------------- ##
1649 ## Cache variables. ##
1650 ## ---------------- ##
1651 _ASBOX
1652 echo
1653 # The following way of writing the cache mishandles newlines in values,
1655 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1656 eval ac_val=\$$ac_var
1657 case $ac_val in #(
1658 *${as_nl}*)
1659 case $ac_var in #(
1660 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1661 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1662 esac
1663 case $ac_var in #(
1664 _ | IFS | as_nl) ;; #(
1665 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1666 *) $as_unset $ac_var ;;
1667 esac ;;
1668 esac
1669 done
1670 (set) 2>&1 |
1671 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1672 *${as_nl}ac_space=\ *)
1673 sed -n \
1674 "s/'\''/'\''\\\\'\'''\''/g;
1675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1676 ;; #(
1678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1680 esac |
1681 sort
1683 echo
1685 cat <<\_ASBOX
1686 ## ----------------- ##
1687 ## Output variables. ##
1688 ## ----------------- ##
1689 _ASBOX
1690 echo
1691 for ac_var in $ac_subst_vars
1693 eval ac_val=\$$ac_var
1694 case $ac_val in
1695 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1696 esac
1697 $as_echo "$ac_var='\''$ac_val'\''"
1698 done | sort
1699 echo
1701 if test -n "$ac_subst_files"; then
1702 cat <<\_ASBOX
1703 ## ------------------- ##
1704 ## File substitutions. ##
1705 ## ------------------- ##
1706 _ASBOX
1707 echo
1708 for ac_var in $ac_subst_files
1710 eval ac_val=\$$ac_var
1711 case $ac_val in
1712 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 esac
1714 $as_echo "$ac_var='\''$ac_val'\''"
1715 done | sort
1716 echo
1719 if test -s confdefs.h; then
1720 cat <<\_ASBOX
1721 ## ----------- ##
1722 ## confdefs.h. ##
1723 ## ----------- ##
1724 _ASBOX
1725 echo
1726 cat confdefs.h
1727 echo
1729 test "$ac_signal" != 0 &&
1730 $as_echo "$as_me: caught signal $ac_signal"
1731 $as_echo "$as_me: exit $exit_status"
1732 } >&5
1733 rm -f core *.core core.conftest.* &&
1734 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1735 exit $exit_status
1737 for ac_signal in 1 2 13 15; do
1738 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739 done
1740 ac_signal=0
1742 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1743 rm -f -r conftest* confdefs.h
1745 # Predefined preprocessor variables.
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_NAME "$PACKAGE_NAME"
1749 _ACEOF
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754 _ACEOF
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1759 _ACEOF
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_STRING "$PACKAGE_STRING"
1764 _ACEOF
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769 _ACEOF
1772 # Let the site file select an alternate cache file if it wants to.
1773 # Prefer an explicitly selected file to automatically selected ones.
1774 ac_site_file1=NONE
1775 ac_site_file2=NONE
1776 if test -n "$CONFIG_SITE"; then
1777 ac_site_file1=$CONFIG_SITE
1778 elif test "x$prefix" != xNONE; then
1779 ac_site_file1=$prefix/share/config.site
1780 ac_site_file2=$prefix/etc/config.site
1781 else
1782 ac_site_file1=$ac_default_prefix/share/config.site
1783 ac_site_file2=$ac_default_prefix/etc/config.site
1785 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1787 test "x$ac_site_file" = xNONE && continue
1788 if test -r "$ac_site_file"; then
1789 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1790 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1791 sed 's/^/| /' "$ac_site_file" >&5
1792 . "$ac_site_file"
1794 done
1796 if test -r "$cache_file"; then
1797 # Some versions of bash will fail to source /dev/null (special
1798 # files actually), so we avoid doing that.
1799 if test -f "$cache_file"; then
1800 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1801 $as_echo "$as_me: loading cache $cache_file" >&6;}
1802 case $cache_file in
1803 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1804 *) . "./$cache_file";;
1805 esac
1807 else
1808 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1809 $as_echo "$as_me: creating cache $cache_file" >&6;}
1810 >$cache_file
1813 gt_needs="$gt_needs "
1814 # Check that the precious variables saved in the cache have kept the same
1815 # value.
1816 ac_cache_corrupted=false
1817 for ac_var in $ac_precious_vars; do
1818 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1819 eval ac_new_set=\$ac_env_${ac_var}_set
1820 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1821 eval ac_new_val=\$ac_env_${ac_var}_value
1822 case $ac_old_set,$ac_new_set in
1823 set,)
1824 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1825 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1826 ac_cache_corrupted=: ;;
1827 ,set)
1828 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1829 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1830 ac_cache_corrupted=: ;;
1831 ,);;
1833 if test "x$ac_old_val" != "x$ac_new_val"; then
1834 # differences in whitespace do not lead to failure.
1835 ac_old_val_w=`echo x $ac_old_val`
1836 ac_new_val_w=`echo x $ac_new_val`
1837 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1838 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1839 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1840 ac_cache_corrupted=:
1841 else
1842 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1843 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1844 eval $ac_var=\$ac_old_val
1846 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1847 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1848 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1849 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1850 fi;;
1851 esac
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1854 case $ac_new_val in
1855 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 *) ac_arg=$ac_var=$ac_new_val ;;
1857 esac
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861 esac
1863 done
1864 if $ac_cache_corrupted; then
1865 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1867 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 ac_aux_dir=
1906 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1907 if test -f "$ac_dir/install-sh"; then
1908 ac_aux_dir=$ac_dir
1909 ac_install_sh="$ac_aux_dir/install-sh -c"
1910 break
1911 elif test -f "$ac_dir/install.sh"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/install.sh -c"
1914 break
1915 elif test -f "$ac_dir/shtool"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/shtool install -c"
1918 break
1920 done
1921 if test -z "$ac_aux_dir"; then
1922 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1923 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1924 { (exit 1); exit 1; }; }
1927 # These three variables are undocumented and unsupported,
1928 # and are intended to be withdrawn in a future Autoconf release.
1929 # They can cause serious problems if a builder's source tree is in a directory
1930 # whose full name contains unusual characters.
1931 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1932 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1933 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1936 # Make sure we can run config.sub.
1937 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1938 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1939 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1940 { (exit 1); exit 1; }; }
1942 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1943 $as_echo_n "checking build system type... " >&6; }
1944 if test "${ac_cv_build+set}" = set; then
1945 $as_echo_n "(cached) " >&6
1946 else
1947 ac_build_alias=$build_alias
1948 test "x$ac_build_alias" = x &&
1949 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1950 test "x$ac_build_alias" = x &&
1951 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1952 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1953 { (exit 1); exit 1; }; }
1954 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1955 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1956 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1957 { (exit 1); exit 1; }; }
1960 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1961 $as_echo "$ac_cv_build" >&6; }
1962 case $ac_cv_build in
1963 *-*-*) ;;
1964 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1965 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1966 { (exit 1); exit 1; }; };;
1967 esac
1968 build=$ac_cv_build
1969 ac_save_IFS=$IFS; IFS='-'
1970 set x $ac_cv_build
1971 shift
1972 build_cpu=$1
1973 build_vendor=$2
1974 shift; shift
1975 # Remember, the first character of IFS is used to create $*,
1976 # except with old shells:
1977 build_os=$*
1978 IFS=$ac_save_IFS
1979 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1982 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1983 $as_echo_n "checking host system type... " >&6; }
1984 if test "${ac_cv_host+set}" = set; then
1985 $as_echo_n "(cached) " >&6
1986 else
1987 if test "x$host_alias" = x; then
1988 ac_cv_host=$ac_cv_build
1989 else
1990 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1991 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1992 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1993 { (exit 1); exit 1; }; }
1997 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1998 $as_echo "$ac_cv_host" >&6; }
1999 case $ac_cv_host in
2000 *-*-*) ;;
2001 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2002 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2003 { (exit 1); exit 1; }; };;
2004 esac
2005 host=$ac_cv_host
2006 ac_save_IFS=$IFS; IFS='-'
2007 set x $ac_cv_host
2008 shift
2009 host_cpu=$1
2010 host_vendor=$2
2011 shift; shift
2012 # Remember, the first character of IFS is used to create $*,
2013 # except with old shells:
2014 host_os=$*
2015 IFS=$ac_save_IFS
2016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2019 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2020 $as_echo_n "checking target system type... " >&6; }
2021 if test "${ac_cv_target+set}" = set; then
2022 $as_echo_n "(cached) " >&6
2023 else
2024 if test "x$target_alias" = x; then
2025 ac_cv_target=$ac_cv_host
2026 else
2027 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2028 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2029 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2030 { (exit 1); exit 1; }; }
2034 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2035 $as_echo "$ac_cv_target" >&6; }
2036 case $ac_cv_target in
2037 *-*-*) ;;
2038 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2039 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2040 { (exit 1); exit 1; }; };;
2041 esac
2042 target=$ac_cv_target
2043 ac_save_IFS=$IFS; IFS='-'
2044 set x $ac_cv_target
2045 shift
2046 target_cpu=$1
2047 target_vendor=$2
2048 shift; shift
2049 # Remember, the first character of IFS is used to create $*,
2050 # except with old shells:
2051 target_os=$*
2052 IFS=$ac_save_IFS
2053 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2056 # The aliases save the names the user supplied, while $host etc.
2057 # will get canonicalized.
2058 test -n "$target_alias" &&
2059 test "$program_prefix$program_suffix$program_transform_name" = \
2060 NONENONEs,x,x, &&
2061 program_prefix=${target_alias}-
2062 ac_config_headers="$ac_config_headers config.h"
2064 am__api_version='1.11'
2066 # Find a good install program. We prefer a C program (faster),
2067 # so one script is as good as another. But avoid the broken or
2068 # incompatible versions:
2069 # SysV /etc/install, /usr/sbin/install
2070 # SunOS /usr/etc/install
2071 # IRIX /sbin/install
2072 # AIX /bin/install
2073 # AmigaOS /C/install, which installs bootblocks on floppy discs
2074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2077 # OS/2's system install, which has a completely different semantic
2078 # ./install, which can be erroneously created by make from ./install.sh.
2079 # Reject install programs that cannot install multiple files.
2080 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2081 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2082 if test -z "$INSTALL"; then
2083 if test "${ac_cv_path_install+set}" = set; then
2084 $as_echo_n "(cached) " >&6
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 # Account for people who put trailing slashes in PATH elements.
2092 case $as_dir/ in
2093 ./ | .// | /cC/* | \
2094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2096 /usr/ucb/* ) ;;
2098 # OSF1 and SCO ODT 3.0 have their own names for install.
2099 # Don't use installbsd from OSF since it installs stuff as root
2100 # by default.
2101 for ac_prog in ginstall scoinst install; do
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2104 if test $ac_prog = install &&
2105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2106 # AIX install. It has an incompatible calling convention.
2108 elif test $ac_prog = install &&
2109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2110 # program-specific install script used by HP pwplus--don't use.
2112 else
2113 rm -rf conftest.one conftest.two conftest.dir
2114 echo one > conftest.one
2115 echo two > conftest.two
2116 mkdir conftest.dir
2117 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2118 test -s conftest.one && test -s conftest.two &&
2119 test -s conftest.dir/conftest.one &&
2120 test -s conftest.dir/conftest.two
2121 then
2122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2123 break 3
2127 done
2128 done
2130 esac
2132 done
2133 IFS=$as_save_IFS
2135 rm -rf conftest.one conftest.two conftest.dir
2138 if test "${ac_cv_path_install+set}" = set; then
2139 INSTALL=$ac_cv_path_install
2140 else
2141 # As a last resort, use the slow shell script. Don't cache a
2142 # value for INSTALL within a source directory, because that will
2143 # break other packages using the cache if that directory is
2144 # removed, or if the value is a relative name.
2145 INSTALL=$ac_install_sh
2148 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2149 $as_echo "$INSTALL" >&6; }
2151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2152 # It thinks the first close brace ends the variable substitution.
2153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2159 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2160 $as_echo_n "checking whether build environment is sane... " >&6; }
2161 # Just in case
2162 sleep 1
2163 echo timestamp > conftest.file
2164 # Reject unsafe characters in $srcdir or the absolute working directory
2165 # name. Accept space and tab only in the latter.
2166 am_lf='
2168 case `pwd` in
2169 *[\\\"\#\$\&\'\`$am_lf]*)
2170 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2171 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2172 { (exit 1); exit 1; }; };;
2173 esac
2174 case $srcdir in
2175 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2176 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2177 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2178 { (exit 1); exit 1; }; };;
2179 esac
2181 # Do `set' in a subshell so we don't clobber the current shell's
2182 # arguments. Must try -L first in case configure is actually a
2183 # symlink; some systems play weird games with the mod time of symlinks
2184 # (eg FreeBSD returns the mod time of the symlink's containing
2185 # directory).
2186 if (
2187 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2188 if test "$*" = "X"; then
2189 # -L didn't work.
2190 set X `ls -t "$srcdir/configure" conftest.file`
2192 rm -f conftest.file
2193 if test "$*" != "X $srcdir/configure conftest.file" \
2194 && test "$*" != "X conftest.file $srcdir/configure"; then
2196 # If neither matched, then we have a broken ls. This can happen
2197 # if, for instance, CONFIG_SHELL is bash and it inherits a
2198 # broken ls alias from the environment. This has actually
2199 # happened. Such a system could not be considered "sane".
2200 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2201 alias in your environment" >&5
2202 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2203 alias in your environment" >&2;}
2204 { (exit 1); exit 1; }; }
2207 test "$2" = conftest.file
2209 then
2210 # Ok.
2212 else
2213 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2214 Check your system clock" >&5
2215 $as_echo "$as_me: error: newly created file is older than distributed files!
2216 Check your system clock" >&2;}
2217 { (exit 1); exit 1; }; }
2219 { $as_echo "$as_me:$LINENO: result: yes" >&5
2220 $as_echo "yes" >&6; }
2221 test "$program_prefix" != NONE &&
2222 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2223 # Use a double $ so make ignores it.
2224 test "$program_suffix" != NONE &&
2225 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2226 # Double any \ or $.
2227 # By default was `s,x,x', remove it if useless.
2228 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2229 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2231 # expand $ac_aux_dir to an absolute path
2232 am_aux_dir=`cd $ac_aux_dir && pwd`
2234 if test x"${MISSING+set}" != xset; then
2235 case $am_aux_dir in
2236 *\ * | *\ *)
2237 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2239 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2240 esac
2242 # Use eval to expand $SHELL
2243 if eval "$MISSING --run true"; then
2244 am_missing_run="$MISSING --run "
2245 else
2246 am_missing_run=
2247 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2248 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2251 if test x"${install_sh}" != xset; then
2252 case $am_aux_dir in
2253 *\ * | *\ *)
2254 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2256 install_sh="\${SHELL} $am_aux_dir/install-sh"
2257 esac
2260 # Installed binaries are usually stripped using `strip' when the user
2261 # run `make install-strip'. However `strip' might not be the right
2262 # tool to use in cross-compilation environments, therefore Automake
2263 # will honor the `STRIP' environment variable to overrule this program.
2264 if test "$cross_compiling" != no; then
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}strip; ac_word=$2
2268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 $as_echo_n "checking for $ac_word... " >&6; }
2270 if test "${ac_cv_prog_STRIP+set}" = set; then
2271 $as_echo_n "(cached) " >&6
2272 else
2273 if test -n "$STRIP"; then
2274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2287 done
2288 done
2289 IFS=$as_save_IFS
2293 STRIP=$ac_cv_prog_STRIP
2294 if test -n "$STRIP"; then
2295 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2296 $as_echo "$STRIP" >&6; }
2297 else
2298 { $as_echo "$as_me:$LINENO: result: no" >&5
2299 $as_echo "no" >&6; }
2304 if test -z "$ac_cv_prog_STRIP"; then
2305 ac_ct_STRIP=$STRIP
2306 # Extract the first word of "strip", so it can be a program name with args.
2307 set dummy strip; ac_word=$2
2308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 $as_echo_n "checking for $ac_word... " >&6; }
2310 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2311 $as_echo_n "(cached) " >&6
2312 else
2313 if test -n "$ac_ct_STRIP"; then
2314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_ac_ct_STRIP="strip"
2324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2327 done
2328 done
2329 IFS=$as_save_IFS
2333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2334 if test -n "$ac_ct_STRIP"; then
2335 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2336 $as_echo "$ac_ct_STRIP" >&6; }
2337 else
2338 { $as_echo "$as_me:$LINENO: result: no" >&5
2339 $as_echo "no" >&6; }
2342 if test "x$ac_ct_STRIP" = x; then
2343 STRIP=":"
2344 else
2345 case $cross_compiling:$ac_tool_warned in
2346 yes:)
2347 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2349 ac_tool_warned=yes ;;
2350 esac
2351 STRIP=$ac_ct_STRIP
2353 else
2354 STRIP="$ac_cv_prog_STRIP"
2358 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2360 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2361 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2362 if test -z "$MKDIR_P"; then
2363 if test "${ac_cv_path_mkdir+set}" = set; then
2364 $as_echo_n "(cached) " >&6
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_prog in mkdir gmkdir; do
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2374 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2375 'mkdir (GNU coreutils) '* | \
2376 'mkdir (coreutils) '* | \
2377 'mkdir (fileutils) '4.1*)
2378 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2379 break 3;;
2380 esac
2381 done
2382 done
2383 done
2384 IFS=$as_save_IFS
2388 if test "${ac_cv_path_mkdir+set}" = set; then
2389 MKDIR_P="$ac_cv_path_mkdir -p"
2390 else
2391 # As a last resort, use the slow shell script. Don't cache a
2392 # value for MKDIR_P within a source directory, because that will
2393 # break other packages using the cache if that directory is
2394 # removed, or if the value is a relative name.
2395 test -d ./--version && rmdir ./--version
2396 MKDIR_P="$ac_install_sh -d"
2399 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2400 $as_echo "$MKDIR_P" >&6; }
2402 mkdir_p="$MKDIR_P"
2403 case $mkdir_p in
2404 [\\/$]* | ?:[\\/]*) ;;
2405 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2406 esac
2408 for ac_prog in gawk mawk nawk awk
2410 # Extract the first word of "$ac_prog", so it can be a program name with args.
2411 set dummy $ac_prog; ac_word=$2
2412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if test "${ac_cv_prog_AWK+set}" = set; then
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$AWK"; then
2418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_AWK="$ac_prog"
2428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2431 done
2432 done
2433 IFS=$as_save_IFS
2437 AWK=$ac_cv_prog_AWK
2438 if test -n "$AWK"; then
2439 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2440 $as_echo "$AWK" >&6; }
2441 else
2442 { $as_echo "$as_me:$LINENO: result: no" >&5
2443 $as_echo "no" >&6; }
2447 test -n "$AWK" && break
2448 done
2450 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2451 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2452 set x ${MAKE-make}
2453 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2454 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2455 $as_echo_n "(cached) " >&6
2456 else
2457 cat >conftest.make <<\_ACEOF
2458 SHELL = /bin/sh
2459 all:
2460 @echo '@@@%%%=$(MAKE)=@@@%%%'
2461 _ACEOF
2462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2463 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2464 *@@@%%%=?*=@@@%%%*)
2465 eval ac_cv_prog_make_${ac_make}_set=yes;;
2467 eval ac_cv_prog_make_${ac_make}_set=no;;
2468 esac
2469 rm -f conftest.make
2471 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2472 { $as_echo "$as_me:$LINENO: result: yes" >&5
2473 $as_echo "yes" >&6; }
2474 SET_MAKE=
2475 else
2476 { $as_echo "$as_me:$LINENO: result: no" >&5
2477 $as_echo "no" >&6; }
2478 SET_MAKE="MAKE=${MAKE-make}"
2481 rm -rf .tst 2>/dev/null
2482 mkdir .tst 2>/dev/null
2483 if test -d .tst; then
2484 am__leading_dot=.
2485 else
2486 am__leading_dot=_
2488 rmdir .tst 2>/dev/null
2490 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2491 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2492 # is not polluted with repeated "-I."
2493 am__isrc=' -I$(srcdir)'
2494 # test to see if srcdir already configured
2495 if test -f $srcdir/config.status; then
2496 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2497 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2498 { (exit 1); exit 1; }; }
2502 # test whether we have cygpath
2503 if test -z "$CYGPATH_W"; then
2504 if (cygpath --version) >/dev/null 2>/dev/null; then
2505 CYGPATH_W='cygpath -w'
2506 else
2507 CYGPATH_W=echo
2512 # Define the identity of the package.
2513 PACKAGE='smc'
2514 VERSION='1.9'
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE "$PACKAGE"
2519 _ACEOF
2522 cat >>confdefs.h <<_ACEOF
2523 #define VERSION "$VERSION"
2524 _ACEOF
2526 # Some tools Automake needs.
2528 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2531 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2534 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2537 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2540 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2542 # We need awk for the "check" target. The system "awk" is bad on
2543 # some platforms.
2544 # Always define AMTAR for backward compatibility.
2546 AMTAR=${AMTAR-"${am_missing_run}tar"}
2548 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2555 ### Check for programs ###
2557 ac_ext=cpp
2558 ac_cpp='$CXXCPP $CPPFLAGS'
2559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2562 if test -z "$CXX"; then
2563 if test -n "$CCC"; then
2564 CXX=$CCC
2565 else
2566 if test -n "$ac_tool_prefix"; then
2567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2571 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_CXX+set}" = set; then
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$CXX"; then
2577 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2587 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2590 done
2591 done
2592 IFS=$as_save_IFS
2596 CXX=$ac_cv_prog_CXX
2597 if test -n "$CXX"; then
2598 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2599 $as_echo "$CXX" >&6; }
2600 else
2601 { $as_echo "$as_me:$LINENO: result: no" >&5
2602 $as_echo "no" >&6; }
2606 test -n "$CXX" && break
2607 done
2609 if test -z "$CXX"; then
2610 ac_ct_CXX=$CXX
2611 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2613 # Extract the first word of "$ac_prog", so it can be a program name with args.
2614 set dummy $ac_prog; ac_word=$2
2615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$ac_ct_CXX"; then
2621 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_ac_ct_CXX="$ac_prog"
2631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2634 done
2635 done
2636 IFS=$as_save_IFS
2640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2641 if test -n "$ac_ct_CXX"; then
2642 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2643 $as_echo "$ac_ct_CXX" >&6; }
2644 else
2645 { $as_echo "$as_me:$LINENO: result: no" >&5
2646 $as_echo "no" >&6; }
2650 test -n "$ac_ct_CXX" && break
2651 done
2653 if test "x$ac_ct_CXX" = x; then
2654 CXX="g++"
2655 else
2656 case $cross_compiling:$ac_tool_warned in
2657 yes:)
2658 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660 ac_tool_warned=yes ;;
2661 esac
2662 CXX=$ac_ct_CXX
2668 # Provide some information about the compiler.
2669 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2670 set X $ac_compile
2671 ac_compiler=$2
2672 { (ac_try="$ac_compiler --version >&5"
2673 case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676 esac
2677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2678 $as_echo "$ac_try_echo") >&5
2679 (eval "$ac_compiler --version >&5") 2>&5
2680 ac_status=$?
2681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2683 { (ac_try="$ac_compiler -v >&5"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2689 $as_echo "$ac_try_echo") >&5
2690 (eval "$ac_compiler -v >&5") 2>&5
2691 ac_status=$?
2692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
2694 { (ac_try="$ac_compiler -V >&5"
2695 case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698 esac
2699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2700 $as_echo "$ac_try_echo") >&5
2701 (eval "$ac_compiler -V >&5") 2>&5
2702 ac_status=$?
2703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2706 cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h. */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2714 main ()
2718 return 0;
2720 _ACEOF
2721 ac_clean_files_save=$ac_clean_files
2722 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2723 # Try to create an executable without -o first, disregard a.out.
2724 # It will help us diagnose broken compilers, and finding out an intuition
2725 # of exeext.
2726 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2727 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2728 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2730 # The possible output files:
2731 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2733 ac_rmfiles=
2734 for ac_file in $ac_files
2736 case $ac_file in
2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739 esac
2740 done
2741 rm -f $ac_rmfiles
2743 if { (ac_try="$ac_link_default"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2749 $as_echo "$ac_try_echo") >&5
2750 (eval "$ac_link_default") 2>&5
2751 ac_status=$?
2752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2757 # so that the user can short-circuit this test for compilers unknown to
2758 # Autoconf.
2759 for ac_file in $ac_files ''
2761 test -f "$ac_file" || continue
2762 case $ac_file in
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2765 [ab].out )
2766 # We found the default executable, but exeext='' is most
2767 # certainly right.
2768 break;;
2769 *.* )
2770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771 then :; else
2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774 # We set ac_cv_exeext here because the later test for it is not
2775 # safe: cross compilers may not add the suffix if given an `-o'
2776 # argument, so we may need to know it at that point already.
2777 # Even if this section looks crufty: it has the advantage of
2778 # actually working.
2779 break;;
2781 break;;
2782 esac
2783 done
2784 test "$ac_cv_exeext" = no && ac_cv_exeext=
2786 else
2787 ac_file=''
2790 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2791 $as_echo "$ac_file" >&6; }
2792 if test -z "$ac_file"; then
2793 $as_echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2799 See \`config.log' for more details." >&5
2800 $as_echo "$as_me: error: C++ compiler cannot create executables
2801 See \`config.log' for more details." >&2;}
2802 { (exit 77); exit 77; }; }; }
2805 ac_exeext=$ac_cv_exeext
2807 # Check that the compiler produces executables we can run. If not, either
2808 # the compiler is broken, or we cross compile.
2809 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2810 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2811 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2812 # If not cross compiling, check that we can run a simple program.
2813 if test "$cross_compiling" != yes; then
2814 if { ac_try='./$ac_file'
2815 { (case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820 $as_echo "$ac_try_echo") >&5
2821 (eval "$ac_try") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 cross_compiling=no
2826 else
2827 if test "$cross_compiling" = maybe; then
2828 cross_compiling=yes
2829 else
2830 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2833 If you meant to cross compile, use \`--host'.
2834 See \`config.log' for more details." >&5
2835 $as_echo "$as_me: error: cannot run C++ compiled programs.
2836 If you meant to cross compile, use \`--host'.
2837 See \`config.log' for more details." >&2;}
2838 { (exit 1); exit 1; }; }; }
2842 { $as_echo "$as_me:$LINENO: result: yes" >&5
2843 $as_echo "yes" >&6; }
2845 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2846 ac_clean_files=$ac_clean_files_save
2847 # Check that the compiler produces executables we can run. If not, either
2848 # the compiler is broken, or we cross compile.
2849 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2850 $as_echo_n "checking whether we are cross compiling... " >&6; }
2851 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2852 $as_echo "$cross_compiling" >&6; }
2854 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2855 $as_echo_n "checking for suffix of executables... " >&6; }
2856 if { (ac_try="$ac_link"
2857 case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860 esac
2861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2862 $as_echo "$ac_try_echo") >&5
2863 (eval "$ac_link") 2>&5
2864 ac_status=$?
2865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; then
2867 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2868 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2869 # work properly (i.e., refer to `conftest.exe'), while it won't with
2870 # `rm'.
2871 for ac_file in conftest.exe conftest conftest.*; do
2872 test -f "$ac_file" || continue
2873 case $ac_file in
2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2875 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876 break;;
2877 * ) break;;
2878 esac
2879 done
2880 else
2881 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2884 See \`config.log' for more details." >&5
2885 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2886 See \`config.log' for more details." >&2;}
2887 { (exit 1); exit 1; }; }; }
2890 rm -f conftest$ac_cv_exeext
2891 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2892 $as_echo "$ac_cv_exeext" >&6; }
2894 rm -f conftest.$ac_ext
2895 EXEEXT=$ac_cv_exeext
2896 ac_exeext=$EXEEXT
2897 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2898 $as_echo_n "checking for suffix of object files... " >&6; }
2899 if test "${ac_cv_objext+set}" = set; then
2900 $as_echo_n "(cached) " >&6
2901 else
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 main ()
2914 return 0;
2916 _ACEOF
2917 rm -f conftest.o conftest.obj
2918 if { (ac_try="$ac_compile"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924 $as_echo "$ac_try_echo") >&5
2925 (eval "$ac_compile") 2>&5
2926 ac_status=$?
2927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
2929 for ac_file in conftest.o conftest.obj conftest.*; do
2930 test -f "$ac_file" || continue;
2931 case $ac_file in
2932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2934 break;;
2935 esac
2936 done
2937 else
2938 $as_echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2944 See \`config.log' for more details." >&5
2945 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }; }
2950 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2952 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2953 $as_echo "$ac_cv_objext" >&6; }
2954 OBJEXT=$ac_cv_objext
2955 ac_objext=$OBJEXT
2956 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2960 else
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2969 main ()
2971 #ifndef __GNUC__
2972 choke me
2973 #endif
2976 return 0;
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2986 $as_echo "$ac_try_echo") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_cxx_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2997 ac_compiler_gnu=yes
2998 else
2999 $as_echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 ac_compiler_gnu=no
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3009 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3010 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3011 if test $ac_compiler_gnu = yes; then
3012 GXX=yes
3013 else
3014 GXX=
3016 ac_test_CXXFLAGS=${CXXFLAGS+set}
3017 ac_save_CXXFLAGS=$CXXFLAGS
3018 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3019 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3020 if test "${ac_cv_prog_cxx_g+set}" = set; then
3021 $as_echo_n "(cached) " >&6
3022 else
3023 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3024 ac_cxx_werror_flag=yes
3025 ac_cv_prog_cxx_g=no
3026 CXXFLAGS="-g"
3027 cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h. */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3035 main ()
3039 return 0;
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_cxx_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
3060 ac_cv_prog_cxx_g=yes
3061 else
3062 $as_echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 CXXFLAGS=""
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3074 main ()
3078 return 0;
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088 $as_echo "$ac_try_echo") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } && {
3096 test -z "$ac_cxx_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
3100 else
3101 $as_echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105 CXXFLAGS="-g"
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3114 main ()
3118 return 0;
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3128 $as_echo "$ac_try_echo") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_cxx_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_cv_prog_cxx_g=yes
3140 else
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3156 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3157 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3158 if test "$ac_test_CXXFLAGS" = set; then
3159 CXXFLAGS=$ac_save_CXXFLAGS
3160 elif test $ac_cv_prog_cxx_g = yes; then
3161 if test "$GXX" = yes; then
3162 CXXFLAGS="-g -O2"
3163 else
3164 CXXFLAGS="-g"
3166 else
3167 if test "$GXX" = yes; then
3168 CXXFLAGS="-O2"
3169 else
3170 CXXFLAGS=
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 DEPDIR="${am__leading_dot}deps"
3180 ac_config_commands="$ac_config_commands depfiles"
3183 am_make=${MAKE-make}
3184 cat > confinc << 'END'
3185 am__doit:
3186 @echo this is the am__doit target
3187 .PHONY: am__doit
3189 # If we don't find an include directive, just comment out the code.
3190 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3191 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3192 am__include="#"
3193 am__quote=
3194 _am_result=none
3195 # First try GNU make style include.
3196 echo "include confinc" > confmf
3197 # Ignore all kinds of additional output from `make'.
3198 case `$am_make -s -f confmf 2> /dev/null` in #(
3199 *the\ am__doit\ target*)
3200 am__include=include
3201 am__quote=
3202 _am_result=GNU
3204 esac
3205 # Now try BSD make style include.
3206 if test "$am__include" = "#"; then
3207 echo '.include "confinc"' > confmf
3208 case `$am_make -s -f confmf 2> /dev/null` in #(
3209 *the\ am__doit\ target*)
3210 am__include=.include
3211 am__quote="\""
3212 _am_result=BSD
3214 esac
3218 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3219 $as_echo "$_am_result" >&6; }
3220 rm -f confinc confmf
3222 # Check whether --enable-dependency-tracking was given.
3223 if test "${enable_dependency_tracking+set}" = set; then
3224 enableval=$enable_dependency_tracking;
3227 if test "x$enable_dependency_tracking" != xno; then
3228 am_depcomp="$ac_aux_dir/depcomp"
3229 AMDEPBACKSLASH='\'
3231 if test "x$enable_dependency_tracking" != xno; then
3232 AMDEP_TRUE=
3233 AMDEP_FALSE='#'
3234 else
3235 AMDEP_TRUE='#'
3236 AMDEP_FALSE=
3241 depcc="$CXX" am_compiler_list=
3243 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3244 $as_echo_n "checking dependency style of $depcc... " >&6; }
3245 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3249 # We make a subdir and do the tests there. Otherwise we can end up
3250 # making bogus files that we don't know about and never remove. For
3251 # instance it was reported that on HP-UX the gcc test will end up
3252 # making a dummy file named `D' -- because `-MD' means `put the output
3253 # in D'.
3254 mkdir conftest.dir
3255 # Copy depcomp to subdir because otherwise we won't find it if we're
3256 # using a relative directory.
3257 cp "$am_depcomp" conftest.dir
3258 cd conftest.dir
3259 # We will build objects and dependencies in a subdirectory because
3260 # it helps to detect inapplicable dependency modes. For instance
3261 # both Tru64's cc and ICC support -MD to output dependencies as a
3262 # side effect of compilation, but ICC will put the dependencies in
3263 # the current directory while Tru64 will put them in the object
3264 # directory.
3265 mkdir sub
3267 am_cv_CXX_dependencies_compiler_type=none
3268 if test "$am_compiler_list" = ""; then
3269 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3271 am__universal=false
3272 case " $depcc " in #(
3273 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3274 esac
3276 for depmode in $am_compiler_list; do
3277 # Setup a source with many dependencies, because some compilers
3278 # like to wrap large dependency lists on column 80 (with \), and
3279 # we should not choose a depcomp mode which is confused by this.
3281 # We need to recreate these files for each test, as the compiler may
3282 # overwrite some of them when testing with obscure command lines.
3283 # This happens at least with the AIX C compiler.
3284 : > sub/conftest.c
3285 for i in 1 2 3 4 5 6; do
3286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3288 # Solaris 8's {/usr,}/bin/sh.
3289 touch sub/conftst$i.h
3290 done
3291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3293 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3294 # mode. It turns out that the SunPro C++ compiler does not properly
3295 # handle `-M -o', and we need to detect this. Also, some Intel
3296 # versions had trouble with output in subdirs
3297 am__obj=sub/conftest.${OBJEXT-o}
3298 am__minus_obj="-o $am__obj"
3299 case $depmode in
3300 gcc)
3301 # This depmode causes a compiler race in universal mode.
3302 test "$am__universal" = false || continue
3304 nosideeffect)
3305 # after this tag, mechanisms are not by side-effect, so they'll
3306 # only be used when explicitly requested
3307 if test "x$enable_dependency_tracking" = xyes; then
3308 continue
3309 else
3310 break
3313 msvisualcpp | msvcmsys)
3314 # This compiler won't grok `-c -o', but also, the minuso test has
3315 # not run yet. These depmodes are late enough in the game, and
3316 # so weak that their functioning should not be impacted.
3317 am__obj=conftest.${OBJEXT-o}
3318 am__minus_obj=
3320 none) break ;;
3321 esac
3322 if depmode=$depmode \
3323 source=sub/conftest.c object=$am__obj \
3324 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3325 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3326 >/dev/null 2>conftest.err &&
3327 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3329 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3331 # icc doesn't choke on unknown options, it will just issue warnings
3332 # or remarks (even with -Werror). So we grep stderr for any message
3333 # that says an option was ignored or not supported.
3334 # When given -MP, icc 7.0 and 7.1 complain thusly:
3335 # icc: Command line warning: ignoring option '-M'; no argument required
3336 # The diagnosis changed in icc 8.0:
3337 # icc: Command line remark: option '-MP' not supported
3338 if (grep 'ignoring option' conftest.err ||
3339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3340 am_cv_CXX_dependencies_compiler_type=$depmode
3341 break
3344 done
3346 cd ..
3347 rm -rf conftest.dir
3348 else
3349 am_cv_CXX_dependencies_compiler_type=none
3353 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3354 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3355 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3358 test "x$enable_dependency_tracking" != xno \
3359 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3360 am__fastdepCXX_TRUE=
3361 am__fastdepCXX_FALSE='#'
3362 else
3363 am__fastdepCXX_TRUE='#'
3364 am__fastdepCXX_FALSE=
3368 ac_ext=cpp
3369 ac_cpp='$CXXCPP $CPPFLAGS'
3370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3375 ### Check for libraries ###
3377 # Check for the Boost Filesystem library
3380 { $as_echo "$as_me:$LINENO: checking for main in -lboost_filesystem" >&5
3381 $as_echo_n "checking for main in -lboost_filesystem... " >&6; }
3382 if test "${ac_cv_lib_boost_filesystem_main+set}" = set; then
3383 $as_echo_n "(cached) " >&6
3384 else
3385 ac_check_lib_save_LIBS=$LIBS
3386 LIBS="-lboost_filesystem $LIBS"
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3396 main ()
3398 return main ();
3400 return 0;
3402 _ACEOF
3403 rm -f conftest.$ac_objext conftest$ac_exeext
3404 if { (ac_try="$ac_link"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_link") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && {
3418 test -z "$ac_cxx_werror_flag" ||
3419 test ! -s conftest.err
3420 } && test -s conftest$ac_exeext && {
3421 test "$cross_compiling" = yes ||
3422 $as_test_x conftest$ac_exeext
3423 }; then
3424 ac_cv_lib_boost_filesystem_main=yes
3425 else
3426 $as_echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 ac_cv_lib_boost_filesystem_main=no
3432 rm -rf conftest.dSYM
3433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3434 conftest$ac_exeext conftest.$ac_ext
3435 LIBS=$ac_check_lib_save_LIBS
3437 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_boost_filesystem_main" >&5
3438 $as_echo "$ac_cv_lib_boost_filesystem_main" >&6; }
3439 if test "x$ac_cv_lib_boost_filesystem_main" = x""yes; then
3440 cat >>confdefs.h <<_ACEOF
3441 #define HAVE_LIBBOOST_FILESYSTEM 1
3442 _ACEOF
3444 LIBS="-lboost_filesystem $LIBS"
3446 else
3447 { { $as_echo "$as_me:$LINENO: error: Unable to find Boost Filesystem library" >&5
3448 $as_echo "$as_me: error: Unable to find Boost Filesystem library" >&2;}
3449 { (exit 1); exit 1; }; }
3453 # Check for the OpenGL and GLU library
3454 case "${host}" in
3455 *darwin*|*macosx*)
3456 # Mac OS X
3457 LIBS="$LIBS -framework OpenGL -framework Carbon -lintl -lboost_system"
3460 # Other Unix (Linux)
3462 { $as_echo "$as_me:$LINENO: checking for main in -lGL" >&5
3463 $as_echo_n "checking for main in -lGL... " >&6; }
3464 if test "${ac_cv_lib_GL_main+set}" = set; then
3465 $as_echo_n "(cached) " >&6
3466 else
3467 ac_check_lib_save_LIBS=$LIBS
3468 LIBS="-lGL $LIBS"
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3478 main ()
3480 return main ();
3482 return 0;
3484 _ACEOF
3485 rm -f conftest.$ac_objext conftest$ac_exeext
3486 if { (ac_try="$ac_link"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493 (eval "$ac_link") 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && {
3500 test -z "$ac_cxx_werror_flag" ||
3501 test ! -s conftest.err
3502 } && test -s conftest$ac_exeext && {
3503 test "$cross_compiling" = yes ||
3504 $as_test_x conftest$ac_exeext
3505 }; then
3506 ac_cv_lib_GL_main=yes
3507 else
3508 $as_echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_cv_lib_GL_main=no
3514 rm -rf conftest.dSYM
3515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3516 conftest$ac_exeext conftest.$ac_ext
3517 LIBS=$ac_check_lib_save_LIBS
3519 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
3520 $as_echo "$ac_cv_lib_GL_main" >&6; }
3521 if test "x$ac_cv_lib_GL_main" = x""yes; then
3522 cat >>confdefs.h <<_ACEOF
3523 #define HAVE_LIBGL 1
3524 _ACEOF
3526 LIBS="-lGL $LIBS"
3528 else
3529 has_gl=no
3533 { $as_echo "$as_me:$LINENO: checking for main in -lGLU" >&5
3534 $as_echo_n "checking for main in -lGLU... " >&6; }
3535 if test "${ac_cv_lib_GLU_main+set}" = set; then
3536 $as_echo_n "(cached) " >&6
3537 else
3538 ac_check_lib_save_LIBS=$LIBS
3539 LIBS="-lGLU $LIBS"
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3549 main ()
3551 return main ();
3553 return 0;
3555 _ACEOF
3556 rm -f conftest.$ac_objext conftest$ac_exeext
3557 if { (ac_try="$ac_link"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3563 $as_echo "$ac_try_echo") >&5
3564 (eval "$ac_link") 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } && {
3571 test -z "$ac_cxx_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest$ac_exeext && {
3574 test "$cross_compiling" = yes ||
3575 $as_test_x conftest$ac_exeext
3576 }; then
3577 ac_cv_lib_GLU_main=yes
3578 else
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 ac_cv_lib_GLU_main=no
3585 rm -rf conftest.dSYM
3586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3587 conftest$ac_exeext conftest.$ac_ext
3588 LIBS=$ac_check_lib_save_LIBS
3590 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
3591 $as_echo "$ac_cv_lib_GLU_main" >&6; }
3592 if test "x$ac_cv_lib_GLU_main" = x""yes; then
3593 cat >>confdefs.h <<_ACEOF
3594 #define HAVE_LIBGLU 1
3595 _ACEOF
3597 LIBS="-lGLU $LIBS"
3599 else
3600 has_glu=no
3603 if test "x$has_gl" = "xno" -o "x$has_glu" = "xno"; then
3604 { { $as_echo "$as_me:$LINENO: error: Unable to find the OpenGL library" >&5
3605 $as_echo "$as_me: error: Unable to find the OpenGL library" >&2;}
3606 { (exit 1); exit 1; }; }
3609 esac
3611 # Check for the SDL library
3614 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3615 if test -n "$ac_tool_prefix"; then
3616 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3617 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3621 $as_echo_n "(cached) " >&6
3622 else
3623 case $PKG_CONFIG in
3624 [\\/]* | ?:[\\/]*)
3625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3639 done
3640 done
3641 IFS=$as_save_IFS
3644 esac
3646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3647 if test -n "$PKG_CONFIG"; then
3648 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3649 $as_echo "$PKG_CONFIG" >&6; }
3650 else
3651 { $as_echo "$as_me:$LINENO: result: no" >&5
3652 $as_echo "no" >&6; }
3657 if test -z "$ac_cv_path_PKG_CONFIG"; then
3658 ac_pt_PKG_CONFIG=$PKG_CONFIG
3659 # Extract the first word of "pkg-config", so it can be a program name with args.
3660 set dummy pkg-config; ac_word=$2
3661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3664 $as_echo_n "(cached) " >&6
3665 else
3666 case $ac_pt_PKG_CONFIG in
3667 [\\/]* | ?:[\\/]*)
3668 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3682 done
3683 done
3684 IFS=$as_save_IFS
3687 esac
3689 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3690 if test -n "$ac_pt_PKG_CONFIG"; then
3691 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3692 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3693 else
3694 { $as_echo "$as_me:$LINENO: result: no" >&5
3695 $as_echo "no" >&6; }
3698 if test "x$ac_pt_PKG_CONFIG" = x; then
3699 PKG_CONFIG=""
3700 else
3701 case $cross_compiling:$ac_tool_warned in
3702 yes:)
3703 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705 ac_tool_warned=yes ;;
3706 esac
3707 PKG_CONFIG=$ac_pt_PKG_CONFIG
3709 else
3710 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3714 if test -n "$PKG_CONFIG"; then
3715 _pkg_min_version=0.9.0
3716 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3717 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3718 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3719 { $as_echo "$as_me:$LINENO: result: yes" >&5
3720 $as_echo "yes" >&6; }
3721 else
3722 { $as_echo "$as_me:$LINENO: result: no" >&5
3723 $as_echo "no" >&6; }
3724 PKG_CONFIG=""
3729 pkg_failed=no
3730 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
3731 $as_echo_n "checking for SDL... " >&6; }
3733 if test -n "$SDL_CFLAGS"; then
3734 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
3735 elif test -n "$PKG_CONFIG"; then
3736 if test -n "$PKG_CONFIG" && \
3737 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.10\"") >&5
3738 ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.10") 2>&5
3739 ac_status=$?
3740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.10" 2>/dev/null`
3743 else
3744 pkg_failed=yes
3746 else
3747 pkg_failed=untried
3749 if test -n "$SDL_LIBS"; then
3750 pkg_cv_SDL_LIBS="$SDL_LIBS"
3751 elif test -n "$PKG_CONFIG"; then
3752 if test -n "$PKG_CONFIG" && \
3753 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.10\"") >&5
3754 ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.10") 2>&5
3755 ac_status=$?
3756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; then
3758 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.10" 2>/dev/null`
3759 else
3760 pkg_failed=yes
3762 else
3763 pkg_failed=untried
3768 if test $pkg_failed = yes; then
3770 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3771 _pkg_short_errors_supported=yes
3772 else
3773 _pkg_short_errors_supported=no
3775 if test $_pkg_short_errors_supported = yes; then
3776 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.10" 2>&1`
3777 else
3778 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.10" 2>&1`
3780 # Put the nasty error message in config.log where it belongs
3781 echo "$SDL_PKG_ERRORS" >&5
3783 { { $as_echo "$as_me:$LINENO: error: Package requirements (sdl >= 1.2.10) were not met:
3785 $SDL_PKG_ERRORS
3787 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3788 installed software in a non-standard prefix.
3790 Alternatively, you may set the environment variables SDL_CFLAGS
3791 and SDL_LIBS to avoid the need to call pkg-config.
3792 See the pkg-config man page for more details.
3793 " >&5
3794 $as_echo "$as_me: error: Package requirements (sdl >= 1.2.10) were not met:
3796 $SDL_PKG_ERRORS
3798 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3799 installed software in a non-standard prefix.
3801 Alternatively, you may set the environment variables SDL_CFLAGS
3802 and SDL_LIBS to avoid the need to call pkg-config.
3803 See the pkg-config man page for more details.
3804 " >&2;}
3805 { (exit 1); exit 1; }; }
3806 elif test $pkg_failed = untried; then
3807 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3810 is in your PATH or set the PKG_CONFIG environment variable to the full
3811 path to pkg-config.
3813 Alternatively, you may set the environment variables SDL_CFLAGS
3814 and SDL_LIBS to avoid the need to call pkg-config.
3815 See the pkg-config man page for more details.
3817 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3818 See \`config.log' for more details." >&5
3819 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3820 is in your PATH or set the PKG_CONFIG environment variable to the full
3821 path to pkg-config.
3823 Alternatively, you may set the environment variables SDL_CFLAGS
3824 and SDL_LIBS to avoid the need to call pkg-config.
3825 See the pkg-config man page for more details.
3827 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3828 See \`config.log' for more details." >&2;}
3829 { (exit 1); exit 1; }; }; }
3830 else
3831 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
3832 SDL_LIBS=$pkg_cv_SDL_LIBS
3833 { $as_echo "$as_me:$LINENO: result: yes" >&5
3834 $as_echo "yes" >&6; }
3837 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
3838 LIBS="$LIBS $SDL_LIBS"
3840 # Check for the libpng library
3842 { $as_echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
3843 $as_echo_n "checking for png_init_io in -lpng... " >&6; }
3844 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_check_lib_save_LIBS=$LIBS
3848 LIBS="-lpng $LIBS"
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3856 /* Override any GCC internal prototype to avoid an error.
3857 Use char because int might match the return type of a GCC
3858 builtin and then its argument prototype would still apply. */
3859 #ifdef __cplusplus
3860 extern "C"
3861 #endif
3862 char png_init_io ();
3864 main ()
3866 return png_init_io ();
3868 return 0;
3870 _ACEOF
3871 rm -f conftest.$ac_objext conftest$ac_exeext
3872 if { (ac_try="$ac_link"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3878 $as_echo "$ac_try_echo") >&5
3879 (eval "$ac_link") 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && {
3886 test -z "$ac_cxx_werror_flag" ||
3887 test ! -s conftest.err
3888 } && test -s conftest$ac_exeext && {
3889 test "$cross_compiling" = yes ||
3890 $as_test_x conftest$ac_exeext
3891 }; then
3892 ac_cv_lib_png_png_init_io=yes
3893 else
3894 $as_echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 ac_cv_lib_png_png_init_io=no
3900 rm -rf conftest.dSYM
3901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3902 conftest$ac_exeext conftest.$ac_ext
3903 LIBS=$ac_check_lib_save_LIBS
3905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
3906 $as_echo "$ac_cv_lib_png_png_init_io" >&6; }
3907 if test "x$ac_cv_lib_png_png_init_io" = x""yes; then
3908 cat >>confdefs.h <<_ACEOF
3909 #define HAVE_LIBPNG 1
3910 _ACEOF
3912 LIBS="-lpng $LIBS"
3914 else
3915 { { $as_echo "$as_me:$LINENO: error: libpng library not found" >&5
3916 $as_echo "$as_me: error: libpng library not found" >&2;}
3917 { (exit 1); exit 1; }; }
3921 # Check for the SDL_image library
3923 { $as_echo "$as_me:$LINENO: checking for IMG_LoadPNG_RW in -lSDL_image" >&5
3924 $as_echo_n "checking for IMG_LoadPNG_RW in -lSDL_image... " >&6; }
3925 if test "${ac_cv_lib_SDL_image_IMG_LoadPNG_RW+set}" = set; then
3926 $as_echo_n "(cached) " >&6
3927 else
3928 ac_check_lib_save_LIBS=$LIBS
3929 LIBS="-lSDL_image $LIBS"
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3937 /* Override any GCC internal prototype to avoid an error.
3938 Use char because int might match the return type of a GCC
3939 builtin and then its argument prototype would still apply. */
3940 #ifdef __cplusplus
3941 extern "C"
3942 #endif
3943 char IMG_LoadPNG_RW ();
3945 main ()
3947 return IMG_LoadPNG_RW ();
3949 return 0;
3951 _ACEOF
3952 rm -f conftest.$ac_objext conftest$ac_exeext
3953 if { (ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3959 $as_echo "$ac_try_echo") >&5
3960 (eval "$ac_link") 2>conftest.er1
3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_cxx_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest$ac_exeext && {
3970 test "$cross_compiling" = yes ||
3971 $as_test_x conftest$ac_exeext
3972 }; then
3973 ac_cv_lib_SDL_image_IMG_LoadPNG_RW=yes
3974 else
3975 $as_echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 ac_cv_lib_SDL_image_IMG_LoadPNG_RW=no
3981 rm -rf conftest.dSYM
3982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3983 conftest$ac_exeext conftest.$ac_ext
3984 LIBS=$ac_check_lib_save_LIBS
3986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&5
3987 $as_echo "$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&6; }
3988 if test "x$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" = x""yes; then
3989 cat >>confdefs.h <<_ACEOF
3990 #define HAVE_LIBSDL_IMAGE 1
3991 _ACEOF
3993 LIBS="-lSDL_image $LIBS"
3995 else
3996 { { $as_echo "$as_me:$LINENO: error: SDL_image library with PNG support not found" >&5
3997 $as_echo "$as_me: error: SDL_image library with PNG support not found" >&2;}
3998 { (exit 1); exit 1; }; }
4002 # Check for the SDL_mixer library
4004 { $as_echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
4005 $as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
4006 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
4007 $as_echo_n "(cached) " >&6
4008 else
4009 ac_check_lib_save_LIBS=$LIBS
4010 LIBS="-lSDL_mixer $LIBS"
4011 cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h. */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4018 /* Override any GCC internal prototype to avoid an error.
4019 Use char because int might match the return type of a GCC
4020 builtin and then its argument prototype would still apply. */
4021 #ifdef __cplusplus
4022 extern "C"
4023 #endif
4024 char Mix_OpenAudio ();
4026 main ()
4028 return Mix_OpenAudio ();
4030 return 0;
4032 _ACEOF
4033 rm -f conftest.$ac_objext conftest$ac_exeext
4034 if { (ac_try="$ac_link"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_link") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && {
4048 test -z "$ac_cxx_werror_flag" ||
4049 test ! -s conftest.err
4050 } && test -s conftest$ac_exeext && {
4051 test "$cross_compiling" = yes ||
4052 $as_test_x conftest$ac_exeext
4053 }; then
4054 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
4055 else
4056 $as_echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
4062 rm -rf conftest.dSYM
4063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4064 conftest$ac_exeext conftest.$ac_ext
4065 LIBS=$ac_check_lib_save_LIBS
4067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
4068 $as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
4069 if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = x""yes; then
4070 cat >>confdefs.h <<_ACEOF
4071 #define HAVE_LIBSDL_MIXER 1
4072 _ACEOF
4074 LIBS="-lSDL_mixer $LIBS"
4076 else
4077 { { $as_echo "$as_me:$LINENO: error: SDL_mixer library not found" >&5
4078 $as_echo "$as_me: error: SDL_mixer library not found" >&2;}
4079 { (exit 1); exit 1; }; }
4083 # Check for the SDL_ttf library
4085 { $as_echo "$as_me:$LINENO: checking for TTF_Init in -lSDL_ttf" >&5
4086 $as_echo_n "checking for TTF_Init in -lSDL_ttf... " >&6; }
4087 if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then
4088 $as_echo_n "(cached) " >&6
4089 else
4090 ac_check_lib_save_LIBS=$LIBS
4091 LIBS="-lSDL_ttf $LIBS"
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4099 /* Override any GCC internal prototype to avoid an error.
4100 Use char because int might match the return type of a GCC
4101 builtin and then its argument prototype would still apply. */
4102 #ifdef __cplusplus
4103 extern "C"
4104 #endif
4105 char TTF_Init ();
4107 main ()
4109 return TTF_Init ();
4111 return 0;
4113 _ACEOF
4114 rm -f conftest.$ac_objext conftest$ac_exeext
4115 if { (ac_try="$ac_link"
4116 case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4121 $as_echo "$ac_try_echo") >&5
4122 (eval "$ac_link") 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } && {
4129 test -z "$ac_cxx_werror_flag" ||
4130 test ! -s conftest.err
4131 } && test -s conftest$ac_exeext && {
4132 test "$cross_compiling" = yes ||
4133 $as_test_x conftest$ac_exeext
4134 }; then
4135 ac_cv_lib_SDL_ttf_TTF_Init=yes
4136 else
4137 $as_echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4140 ac_cv_lib_SDL_ttf_TTF_Init=no
4143 rm -rf conftest.dSYM
4144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4145 conftest$ac_exeext conftest.$ac_ext
4146 LIBS=$ac_check_lib_save_LIBS
4148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5
4149 $as_echo "$ac_cv_lib_SDL_ttf_TTF_Init" >&6; }
4150 if test "x$ac_cv_lib_SDL_ttf_TTF_Init" = x""yes; then
4151 cat >>confdefs.h <<_ACEOF
4152 #define HAVE_LIBSDL_TTF 1
4153 _ACEOF
4155 LIBS="-lSDL_ttf $LIBS"
4157 else
4158 { { $as_echo "$as_me:$LINENO: error: SDL_ttf library not found" >&5
4159 $as_echo "$as_me: error: SDL_ttf library not found" >&2;}
4160 { (exit 1); exit 1; }; }
4164 # Check for the CEGUI library
4166 pkg_failed=no
4167 { $as_echo "$as_me:$LINENO: checking for CEGUI" >&5
4168 $as_echo_n "checking for CEGUI... " >&6; }
4170 if test -n "$CEGUI_CFLAGS"; then
4171 pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS"
4172 elif test -n "$PKG_CONFIG"; then
4173 if test -n "$PKG_CONFIG" && \
4174 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI-OPENGL >= 0.5.0\"") >&5
4175 ($PKG_CONFIG --exists --print-errors "CEGUI-OPENGL >= 0.5.0") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; then
4179 pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI-OPENGL >= 0.5.0" 2>/dev/null`
4180 else
4181 pkg_failed=yes
4183 else
4184 pkg_failed=untried
4186 if test -n "$CEGUI_LIBS"; then
4187 pkg_cv_CEGUI_LIBS="$CEGUI_LIBS"
4188 elif test -n "$PKG_CONFIG"; then
4189 if test -n "$PKG_CONFIG" && \
4190 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI-OPENGL >= 0.5.0\"") >&5
4191 ($PKG_CONFIG --exists --print-errors "CEGUI-OPENGL >= 0.5.0") 2>&5
4192 ac_status=$?
4193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; then
4195 pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI-OPENGL >= 0.5.0" 2>/dev/null`
4196 else
4197 pkg_failed=yes
4199 else
4200 pkg_failed=untried
4205 if test $pkg_failed = yes; then
4207 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4208 _pkg_short_errors_supported=yes
4209 else
4210 _pkg_short_errors_supported=no
4212 if test $_pkg_short_errors_supported = yes; then
4213 CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "CEGUI-OPENGL >= 0.5.0" 2>&1`
4214 else
4215 CEGUI_PKG_ERRORS=`$PKG_CONFIG --print-errors "CEGUI-OPENGL >= 0.5.0" 2>&1`
4217 # Put the nasty error message in config.log where it belongs
4218 echo "$CEGUI_PKG_ERRORS" >&5
4220 { { $as_echo "$as_me:$LINENO: error: Package requirements (CEGUI-OPENGL >= 0.5.0) were not met:
4222 $CEGUI_PKG_ERRORS
4224 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4225 installed software in a non-standard prefix.
4227 Alternatively, you may set the environment variables CEGUI_CFLAGS
4228 and CEGUI_LIBS to avoid the need to call pkg-config.
4229 See the pkg-config man page for more details.
4230 " >&5
4231 $as_echo "$as_me: error: Package requirements (CEGUI-OPENGL >= 0.5.0) were not met:
4233 $CEGUI_PKG_ERRORS
4235 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4236 installed software in a non-standard prefix.
4238 Alternatively, you may set the environment variables CEGUI_CFLAGS
4239 and CEGUI_LIBS to avoid the need to call pkg-config.
4240 See the pkg-config man page for more details.
4241 " >&2;}
4242 { (exit 1); exit 1; }; }
4243 elif test $pkg_failed = untried; then
4244 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4246 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
4247 is in your PATH or set the PKG_CONFIG environment variable to the full
4248 path to pkg-config.
4250 Alternatively, you may set the environment variables CEGUI_CFLAGS
4251 and CEGUI_LIBS to avoid the need to call pkg-config.
4252 See the pkg-config man page for more details.
4254 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4255 See \`config.log' for more details." >&5
4256 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
4257 is in your PATH or set the PKG_CONFIG environment variable to the full
4258 path to pkg-config.
4260 Alternatively, you may set the environment variables CEGUI_CFLAGS
4261 and CEGUI_LIBS to avoid the need to call pkg-config.
4262 See the pkg-config man page for more details.
4264 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4265 See \`config.log' for more details." >&2;}
4266 { (exit 1); exit 1; }; }; }
4267 else
4268 CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS
4269 CEGUI_LIBS=$pkg_cv_CEGUI_LIBS
4270 { $as_echo "$as_me:$LINENO: result: yes" >&5
4271 $as_echo "yes" >&6; }
4274 CPPFLAGS="$CPPFLAGS $CEGUI_CFLAGS"
4275 LIBS="$LIBS $CEGUI_LIBS"
4277 # Check for the gettext library
4279 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4280 $as_echo_n "checking whether NLS is requested... " >&6; }
4281 # Check whether --enable-nls was given.
4282 if test "${enable_nls+set}" = set; then
4283 enableval=$enable_nls; USE_NLS=$enableval
4284 else
4285 USE_NLS=yes
4288 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
4289 $as_echo "$USE_NLS" >&6; }
4294 GETTEXT_MACRO_VERSION=0.17
4299 # Prepare PATH_SEPARATOR.
4300 # The user is always right.
4301 if test "${PATH_SEPARATOR+set}" != set; then
4302 echo "#! /bin/sh" >conf$$.sh
4303 echo "exit 0" >>conf$$.sh
4304 chmod +x conf$$.sh
4305 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4306 PATH_SEPARATOR=';'
4307 else
4308 PATH_SEPARATOR=:
4310 rm -f conf$$.sh
4313 # Find out how to test for executable files. Don't use a zero-byte file,
4314 # as systems may use methods other than mode bits to determine executability.
4315 cat >conf$$.file <<_ASEOF
4316 #! /bin/sh
4317 exit 0
4318 _ASEOF
4319 chmod +x conf$$.file
4320 if test -x conf$$.file >/dev/null 2>&1; then
4321 ac_executable_p="test -x"
4322 else
4323 ac_executable_p="test -f"
4325 rm -f conf$$.file
4327 # Extract the first word of "msgfmt", so it can be a program name with args.
4328 set dummy msgfmt; ac_word=$2
4329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if test "${ac_cv_path_MSGFMT+set}" = set; then
4332 $as_echo_n "(cached) " >&6
4333 else
4334 case "$MSGFMT" in
4335 [\\/]* | ?:[\\/]*)
4336 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4339 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4340 for ac_dir in $PATH; do
4341 IFS="$ac_save_IFS"
4342 test -z "$ac_dir" && ac_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4345 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4346 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4347 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4348 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4349 break 2
4352 done
4353 done
4354 IFS="$ac_save_IFS"
4355 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4357 esac
4359 MSGFMT="$ac_cv_path_MSGFMT"
4360 if test "$MSGFMT" != ":"; then
4361 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
4362 $as_echo "$MSGFMT" >&6; }
4363 else
4364 { $as_echo "$as_me:$LINENO: result: no" >&5
4365 $as_echo "no" >&6; }
4368 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4369 set dummy gmsgfmt; ac_word=$2
4370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4373 $as_echo_n "(cached) " >&6
4374 else
4375 case $GMSGFMT in
4376 [\\/]* | ?:[\\/]*)
4377 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4391 done
4392 done
4393 IFS=$as_save_IFS
4395 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4397 esac
4399 GMSGFMT=$ac_cv_path_GMSGFMT
4400 if test -n "$GMSGFMT"; then
4401 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4402 $as_echo "$GMSGFMT" >&6; }
4403 else
4404 { $as_echo "$as_me:$LINENO: result: no" >&5
4405 $as_echo "no" >&6; }
4410 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4411 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4412 *) MSGFMT_015=$MSGFMT ;;
4413 esac
4415 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4416 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4417 *) GMSGFMT_015=$GMSGFMT ;;
4418 esac
4422 # Prepare PATH_SEPARATOR.
4423 # The user is always right.
4424 if test "${PATH_SEPARATOR+set}" != set; then
4425 echo "#! /bin/sh" >conf$$.sh
4426 echo "exit 0" >>conf$$.sh
4427 chmod +x conf$$.sh
4428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4429 PATH_SEPARATOR=';'
4430 else
4431 PATH_SEPARATOR=:
4433 rm -f conf$$.sh
4436 # Find out how to test for executable files. Don't use a zero-byte file,
4437 # as systems may use methods other than mode bits to determine executability.
4438 cat >conf$$.file <<_ASEOF
4439 #! /bin/sh
4440 exit 0
4441 _ASEOF
4442 chmod +x conf$$.file
4443 if test -x conf$$.file >/dev/null 2>&1; then
4444 ac_executable_p="test -x"
4445 else
4446 ac_executable_p="test -f"
4448 rm -f conf$$.file
4450 # Extract the first word of "xgettext", so it can be a program name with args.
4451 set dummy xgettext; ac_word=$2
4452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4455 $as_echo_n "(cached) " >&6
4456 else
4457 case "$XGETTEXT" in
4458 [\\/]* | ?:[\\/]*)
4459 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4462 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4463 for ac_dir in $PATH; do
4464 IFS="$ac_save_IFS"
4465 test -z "$ac_dir" && ac_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4468 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4469 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4470 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4471 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4472 break 2
4475 done
4476 done
4477 IFS="$ac_save_IFS"
4478 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4480 esac
4482 XGETTEXT="$ac_cv_path_XGETTEXT"
4483 if test "$XGETTEXT" != ":"; then
4484 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4485 $as_echo "$XGETTEXT" >&6; }
4486 else
4487 { $as_echo "$as_me:$LINENO: result: no" >&5
4488 $as_echo "no" >&6; }
4491 rm -f messages.po
4493 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4494 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4495 *) XGETTEXT_015=$XGETTEXT ;;
4496 esac
4500 # Prepare PATH_SEPARATOR.
4501 # The user is always right.
4502 if test "${PATH_SEPARATOR+set}" != set; then
4503 echo "#! /bin/sh" >conf$$.sh
4504 echo "exit 0" >>conf$$.sh
4505 chmod +x conf$$.sh
4506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4507 PATH_SEPARATOR=';'
4508 else
4509 PATH_SEPARATOR=:
4511 rm -f conf$$.sh
4514 # Find out how to test for executable files. Don't use a zero-byte file,
4515 # as systems may use methods other than mode bits to determine executability.
4516 cat >conf$$.file <<_ASEOF
4517 #! /bin/sh
4518 exit 0
4519 _ASEOF
4520 chmod +x conf$$.file
4521 if test -x conf$$.file >/dev/null 2>&1; then
4522 ac_executable_p="test -x"
4523 else
4524 ac_executable_p="test -f"
4526 rm -f conf$$.file
4528 # Extract the first word of "msgmerge", so it can be a program name with args.
4529 set dummy msgmerge; ac_word=$2
4530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4533 $as_echo_n "(cached) " >&6
4534 else
4535 case "$MSGMERGE" in
4536 [\\/]* | ?:[\\/]*)
4537 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4540 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4541 for ac_dir in $PATH; do
4542 IFS="$ac_save_IFS"
4543 test -z "$ac_dir" && ac_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4546 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4547 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4548 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4549 break 2
4552 done
4553 done
4554 IFS="$ac_save_IFS"
4555 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4557 esac
4559 MSGMERGE="$ac_cv_path_MSGMERGE"
4560 if test "$MSGMERGE" != ":"; then
4561 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4562 $as_echo "$MSGMERGE" >&6; }
4563 else
4564 { $as_echo "$as_me:$LINENO: result: no" >&5
4565 $as_echo "no" >&6; }
4569 test -n "$localedir" || localedir='${datadir}/locale'
4572 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4575 ac_config_commands="$ac_config_commands po-directories"
4579 if test "X$prefix" = "XNONE"; then
4580 acl_final_prefix="$ac_default_prefix"
4581 else
4582 acl_final_prefix="$prefix"
4584 if test "X$exec_prefix" = "XNONE"; then
4585 acl_final_exec_prefix='${prefix}'
4586 else
4587 acl_final_exec_prefix="$exec_prefix"
4589 acl_save_prefix="$prefix"
4590 prefix="$acl_final_prefix"
4591 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4592 prefix="$acl_save_prefix"
4594 ac_ext=c
4595 ac_cpp='$CPP $CPPFLAGS'
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4599 if test -n "$ac_tool_prefix"; then
4600 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4601 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_CC+set}" = set; then
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$CC"; then
4608 ac_cv_prog_CC="$CC" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 CC=$ac_cv_prog_CC
4628 if test -n "$CC"; then
4629 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4630 $as_echo "$CC" >&6; }
4631 else
4632 { $as_echo "$as_me:$LINENO: result: no" >&5
4633 $as_echo "no" >&6; }
4638 if test -z "$ac_cv_prog_CC"; then
4639 ac_ct_CC=$CC
4640 # Extract the first word of "gcc", so it can be a program name with args.
4641 set dummy gcc; ac_word=$2
4642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$ac_ct_CC"; then
4648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_ac_ct_CC="gcc"
4658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4663 IFS=$as_save_IFS
4667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4668 if test -n "$ac_ct_CC"; then
4669 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4670 $as_echo "$ac_ct_CC" >&6; }
4671 else
4672 { $as_echo "$as_me:$LINENO: result: no" >&5
4673 $as_echo "no" >&6; }
4676 if test "x$ac_ct_CC" = x; then
4677 CC=""
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680 yes:)
4681 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4684 esac
4685 CC=$ac_ct_CC
4687 else
4688 CC="$ac_cv_prog_CC"
4691 if test -z "$CC"; then
4692 if test -n "$ac_tool_prefix"; then
4693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}cc; ac_word=$2
4695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_CC+set}" = set; then
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -n "$CC"; then
4701 ac_cv_prog_CC="$CC" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_CC="${ac_tool_prefix}cc"
4711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4714 done
4715 done
4716 IFS=$as_save_IFS
4720 CC=$ac_cv_prog_CC
4721 if test -n "$CC"; then
4722 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4723 $as_echo "$CC" >&6; }
4724 else
4725 { $as_echo "$as_me:$LINENO: result: no" >&5
4726 $as_echo "no" >&6; }
4732 if test -z "$CC"; then
4733 # Extract the first word of "cc", so it can be a program name with args.
4734 set dummy cc; ac_word=$2
4735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_CC+set}" = set; then
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -n "$CC"; then
4741 ac_cv_prog_CC="$CC" # Let the user override the test.
4742 else
4743 ac_prog_rejected=no
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4752 ac_prog_rejected=yes
4753 continue
4755 ac_cv_prog_CC="cc"
4756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4759 done
4760 done
4761 IFS=$as_save_IFS
4763 if test $ac_prog_rejected = yes; then
4764 # We found a bogon in the path, so make sure we never use it.
4765 set dummy $ac_cv_prog_CC
4766 shift
4767 if test $# != 0; then
4768 # We chose a different compiler from the bogus one.
4769 # However, it has the same basename, so the bogon will be chosen
4770 # first if we set CC to just the basename; use the full file name.
4771 shift
4772 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4781 else
4782 { $as_echo "$as_me:$LINENO: result: no" >&5
4783 $as_echo "no" >&6; }
4788 if test -z "$CC"; then
4789 if test -n "$ac_tool_prefix"; then
4790 for ac_prog in cl.exe
4792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_CC+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC="$CC" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4813 done
4814 done
4815 IFS=$as_save_IFS
4819 CC=$ac_cv_prog_CC
4820 if test -n "$CC"; then
4821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4822 $as_echo "$CC" >&6; }
4823 else
4824 { $as_echo "$as_me:$LINENO: result: no" >&5
4825 $as_echo "no" >&6; }
4829 test -n "$CC" && break
4830 done
4832 if test -z "$CC"; then
4833 ac_ct_CC=$CC
4834 for ac_prog in cl.exe
4836 # Extract the first word of "$ac_prog", so it can be a program name with args.
4837 set dummy $ac_prog; ac_word=$2
4838 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$ac_ct_CC"; then
4844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_prog_ac_ct_CC="$ac_prog"
4854 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4857 done
4858 done
4859 IFS=$as_save_IFS
4863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4864 if test -n "$ac_ct_CC"; then
4865 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4866 $as_echo "$ac_ct_CC" >&6; }
4867 else
4868 { $as_echo "$as_me:$LINENO: result: no" >&5
4869 $as_echo "no" >&6; }
4873 test -n "$ac_ct_CC" && break
4874 done
4876 if test "x$ac_ct_CC" = x; then
4877 CC=""
4878 else
4879 case $cross_compiling:$ac_tool_warned in
4880 yes:)
4881 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4883 ac_tool_warned=yes ;;
4884 esac
4885 CC=$ac_ct_CC
4892 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4894 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4895 See \`config.log' for more details." >&5
4896 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4897 See \`config.log' for more details." >&2;}
4898 { (exit 1); exit 1; }; }; }
4900 # Provide some information about the compiler.
4901 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4902 set X $ac_compile
4903 ac_compiler=$2
4904 { (ac_try="$ac_compiler --version >&5"
4905 case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4910 $as_echo "$ac_try_echo") >&5
4911 (eval "$ac_compiler --version >&5") 2>&5
4912 ac_status=$?
4913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }
4915 { (ac_try="$ac_compiler -v >&5"
4916 case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919 esac
4920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4921 $as_echo "$ac_try_echo") >&5
4922 (eval "$ac_compiler -v >&5") 2>&5
4923 ac_status=$?
4924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }
4926 { (ac_try="$ac_compiler -V >&5"
4927 case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930 esac
4931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4932 $as_echo "$ac_try_echo") >&5
4933 (eval "$ac_compiler -V >&5") 2>&5
4934 ac_status=$?
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }
4938 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4940 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4941 $as_echo_n "(cached) " >&6
4942 else
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4951 main ()
4953 #ifndef __GNUC__
4954 choke me
4955 #endif
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4968 $as_echo "$ac_try_echo") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 ac_compiler_gnu=yes
4980 else
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 ac_compiler_gnu=no
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4991 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4992 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4993 if test $ac_compiler_gnu = yes; then
4994 GCC=yes
4995 else
4996 GCC=
4998 ac_test_CFLAGS=${CFLAGS+set}
4999 ac_save_CFLAGS=$CFLAGS
5000 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5001 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5002 if test "${ac_cv_prog_cc_g+set}" = set; then
5003 $as_echo_n "(cached) " >&6
5004 else
5005 ac_save_c_werror_flag=$ac_c_werror_flag
5006 ac_c_werror_flag=yes
5007 ac_cv_prog_cc_g=no
5008 CFLAGS="-g"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5017 main ()
5021 return 0;
5023 _ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (ac_try="$ac_compile"
5026 case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029 esac
5030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5031 $as_echo "$ac_try_echo") >&5
5032 (eval "$ac_compile") 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } && {
5039 test -z "$ac_c_werror_flag" ||
5040 test ! -s conftest.err
5041 } && test -s conftest.$ac_objext; then
5042 ac_cv_prog_cc_g=yes
5043 else
5044 $as_echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 CFLAGS=""
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5056 main ()
5060 return 0;
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070 $as_echo "$ac_try_echo") >&5
5071 (eval "$ac_compile") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest.$ac_objext; then
5082 else
5083 $as_echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5086 ac_c_werror_flag=$ac_save_c_werror_flag
5087 CFLAGS="-g"
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5096 main ()
5100 return 0;
5102 _ACEOF
5103 rm -f conftest.$ac_objext
5104 if { (ac_try="$ac_compile"
5105 case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5110 $as_echo "$ac_try_echo") >&5
5111 (eval "$ac_compile") 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && {
5118 test -z "$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 } && test -s conftest.$ac_objext; then
5121 ac_cv_prog_cc_g=yes
5122 else
5123 $as_echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 ac_c_werror_flag=$ac_save_c_werror_flag
5138 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5139 $as_echo "$ac_cv_prog_cc_g" >&6; }
5140 if test "$ac_test_CFLAGS" = set; then
5141 CFLAGS=$ac_save_CFLAGS
5142 elif test $ac_cv_prog_cc_g = yes; then
5143 if test "$GCC" = yes; then
5144 CFLAGS="-g -O2"
5145 else
5146 CFLAGS="-g"
5148 else
5149 if test "$GCC" = yes; then
5150 CFLAGS="-O2"
5151 else
5152 CFLAGS=
5155 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5157 if test "${ac_cv_prog_cc_c89+set}" = set; then
5158 $as_echo_n "(cached) " >&6
5159 else
5160 ac_cv_prog_cc_c89=no
5161 ac_save_CC=$CC
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <stdarg.h>
5169 #include <stdio.h>
5170 #include <sys/types.h>
5171 #include <sys/stat.h>
5172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5173 struct buf { int x; };
5174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5175 static char *e (p, i)
5176 char **p;
5177 int i;
5179 return p[i];
5181 static char *f (char * (*g) (char **, int), char **p, ...)
5183 char *s;
5184 va_list v;
5185 va_start (v,p);
5186 s = g (p, va_arg (v,int));
5187 va_end (v);
5188 return s;
5191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5192 function prototypes and stuff, but not '\xHH' hex character constants.
5193 These don't provoke an error unfortunately, instead are silently treated
5194 as 'x'. The following induces an error, until -std is added to get
5195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5196 array size at least. It's necessary to write '\x00'==0 to get something
5197 that's true only with -std. */
5198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5201 inside strings and character constants. */
5202 #define FOO(x) 'x'
5203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5205 int test (int i, double x);
5206 struct s1 {int (*f) (int a);};
5207 struct s2 {int (*f) (double a);};
5208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5209 int argc;
5210 char **argv;
5212 main ()
5214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5216 return 0;
5218 _ACEOF
5219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5222 CC="$ac_save_CC $ac_arg"
5223 rm -f conftest.$ac_objext
5224 if { (ac_try="$ac_compile"
5225 case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228 esac
5229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5230 $as_echo "$ac_try_echo") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
5241 ac_cv_prog_cc_c89=$ac_arg
5242 else
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5249 rm -f core conftest.err conftest.$ac_objext
5250 test "x$ac_cv_prog_cc_c89" != "xno" && break
5251 done
5252 rm -f conftest.$ac_ext
5253 CC=$ac_save_CC
5256 # AC_CACHE_VAL
5257 case "x$ac_cv_prog_cc_c89" in
5259 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5260 $as_echo "none needed" >&6; } ;;
5261 xno)
5262 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5263 $as_echo "unsupported" >&6; } ;;
5265 CC="$CC $ac_cv_prog_cc_c89"
5266 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5267 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5268 esac
5271 ac_ext=cpp
5272 ac_cpp='$CXXCPP $CPPFLAGS'
5273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5277 depcc="$CC" am_compiler_list=
5279 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5280 $as_echo_n "checking dependency style of $depcc... " >&6; }
5281 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5285 # We make a subdir and do the tests there. Otherwise we can end up
5286 # making bogus files that we don't know about and never remove. For
5287 # instance it was reported that on HP-UX the gcc test will end up
5288 # making a dummy file named `D' -- because `-MD' means `put the output
5289 # in D'.
5290 mkdir conftest.dir
5291 # Copy depcomp to subdir because otherwise we won't find it if we're
5292 # using a relative directory.
5293 cp "$am_depcomp" conftest.dir
5294 cd conftest.dir
5295 # We will build objects and dependencies in a subdirectory because
5296 # it helps to detect inapplicable dependency modes. For instance
5297 # both Tru64's cc and ICC support -MD to output dependencies as a
5298 # side effect of compilation, but ICC will put the dependencies in
5299 # the current directory while Tru64 will put them in the object
5300 # directory.
5301 mkdir sub
5303 am_cv_CC_dependencies_compiler_type=none
5304 if test "$am_compiler_list" = ""; then
5305 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5307 am__universal=false
5308 case " $depcc " in #(
5309 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5310 esac
5312 for depmode in $am_compiler_list; do
5313 # Setup a source with many dependencies, because some compilers
5314 # like to wrap large dependency lists on column 80 (with \), and
5315 # we should not choose a depcomp mode which is confused by this.
5317 # We need to recreate these files for each test, as the compiler may
5318 # overwrite some of them when testing with obscure command lines.
5319 # This happens at least with the AIX C compiler.
5320 : > sub/conftest.c
5321 for i in 1 2 3 4 5 6; do
5322 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5323 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5324 # Solaris 8's {/usr,}/bin/sh.
5325 touch sub/conftst$i.h
5326 done
5327 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5329 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5330 # mode. It turns out that the SunPro C++ compiler does not properly
5331 # handle `-M -o', and we need to detect this. Also, some Intel
5332 # versions had trouble with output in subdirs
5333 am__obj=sub/conftest.${OBJEXT-o}
5334 am__minus_obj="-o $am__obj"
5335 case $depmode in
5336 gcc)
5337 # This depmode causes a compiler race in universal mode.
5338 test "$am__universal" = false || continue
5340 nosideeffect)
5341 # after this tag, mechanisms are not by side-effect, so they'll
5342 # only be used when explicitly requested
5343 if test "x$enable_dependency_tracking" = xyes; then
5344 continue
5345 else
5346 break
5349 msvisualcpp | msvcmsys)
5350 # This compiler won't grok `-c -o', but also, the minuso test has
5351 # not run yet. These depmodes are late enough in the game, and
5352 # so weak that their functioning should not be impacted.
5353 am__obj=conftest.${OBJEXT-o}
5354 am__minus_obj=
5356 none) break ;;
5357 esac
5358 if depmode=$depmode \
5359 source=sub/conftest.c object=$am__obj \
5360 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5361 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5362 >/dev/null 2>conftest.err &&
5363 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5364 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5365 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5366 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5367 # icc doesn't choke on unknown options, it will just issue warnings
5368 # or remarks (even with -Werror). So we grep stderr for any message
5369 # that says an option was ignored or not supported.
5370 # When given -MP, icc 7.0 and 7.1 complain thusly:
5371 # icc: Command line warning: ignoring option '-M'; no argument required
5372 # The diagnosis changed in icc 8.0:
5373 # icc: Command line remark: option '-MP' not supported
5374 if (grep 'ignoring option' conftest.err ||
5375 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5376 am_cv_CC_dependencies_compiler_type=$depmode
5377 break
5380 done
5382 cd ..
5383 rm -rf conftest.dir
5384 else
5385 am_cv_CC_dependencies_compiler_type=none
5389 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5390 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5391 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5394 test "x$enable_dependency_tracking" != xno \
5395 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5396 am__fastdepCC_TRUE=
5397 am__fastdepCC_FALSE='#'
5398 else
5399 am__fastdepCC_TRUE='#'
5400 am__fastdepCC_FALSE=
5405 # Check whether --with-gnu-ld was given.
5406 if test "${with_gnu_ld+set}" = set; then
5407 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5408 else
5409 with_gnu_ld=no
5412 # Prepare PATH_SEPARATOR.
5413 # The user is always right.
5414 if test "${PATH_SEPARATOR+set}" != set; then
5415 echo "#! /bin/sh" >conf$$.sh
5416 echo "exit 0" >>conf$$.sh
5417 chmod +x conf$$.sh
5418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5419 PATH_SEPARATOR=';'
5420 else
5421 PATH_SEPARATOR=:
5423 rm -f conf$$.sh
5425 ac_prog=ld
5426 if test "$GCC" = yes; then
5427 # Check if gcc -print-prog-name=ld gives a path.
5428 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5429 $as_echo_n "checking for ld used by GCC... " >&6; }
5430 case $host in
5431 *-*-mingw*)
5432 # gcc leaves a trailing carriage return which upsets mingw
5433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5436 esac
5437 case $ac_prog in
5438 # Accept absolute paths.
5439 [\\/]* | [A-Za-z]:[\\/]*)
5440 re_direlt='/[^/][^/]*/\.\./'
5441 # Canonicalize the path of ld
5442 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5443 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5444 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5445 done
5446 test -z "$LD" && LD="$ac_prog"
5449 # If it fails, then pretend we aren't using GCC.
5450 ac_prog=ld
5453 # If it is relative, then search for the first ld in PATH.
5454 with_gnu_ld=unknown
5456 esac
5457 elif test "$with_gnu_ld" = yes; then
5458 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5459 $as_echo_n "checking for GNU ld... " >&6; }
5460 else
5461 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5462 $as_echo_n "checking for non-GNU ld... " >&6; }
5464 if test "${acl_cv_path_LD+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -z "$LD"; then
5468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5469 for ac_dir in $PATH; do
5470 test -z "$ac_dir" && ac_dir=.
5471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5472 acl_cv_path_LD="$ac_dir/$ac_prog"
5473 # Check to see if the program is GNU ld. I'd rather use --version,
5474 # but apparently some GNU ld's only accept -v.
5475 # Break only if it was the GNU/non-GNU ld that we prefer.
5476 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5477 *GNU* | *'with BFD'*)
5478 test "$with_gnu_ld" != no && break ;;
5480 test "$with_gnu_ld" != yes && break ;;
5481 esac
5483 done
5484 IFS="$ac_save_ifs"
5485 else
5486 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5490 LD="$acl_cv_path_LD"
5491 if test -n "$LD"; then
5492 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5493 $as_echo "$LD" >&6; }
5494 else
5495 { $as_echo "$as_me:$LINENO: result: no" >&5
5496 $as_echo "no" >&6; }
5498 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5499 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5500 { (exit 1); exit 1; }; }
5501 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5502 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5503 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5504 $as_echo_n "(cached) " >&6
5505 else
5506 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5507 case `$LD -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 acl_cv_prog_gnu_ld=yes ;;
5511 acl_cv_prog_gnu_ld=no ;;
5512 esac
5514 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5515 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5516 with_gnu_ld=$acl_cv_prog_gnu_ld
5521 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5522 $as_echo_n "checking for shared library run path origin... " >&6; }
5523 if test "${acl_cv_rpath+set}" = set; then
5524 $as_echo_n "(cached) " >&6
5525 else
5527 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5528 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5529 . ./conftest.sh
5530 rm -f ./conftest.sh
5531 acl_cv_rpath=done
5534 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5535 $as_echo "$acl_cv_rpath" >&6; }
5536 wl="$acl_cv_wl"
5537 acl_libext="$acl_cv_libext"
5538 acl_shlibext="$acl_cv_shlibext"
5539 acl_libname_spec="$acl_cv_libname_spec"
5540 acl_library_names_spec="$acl_cv_library_names_spec"
5541 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5542 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5543 acl_hardcode_direct="$acl_cv_hardcode_direct"
5544 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5545 # Check whether --enable-rpath was given.
5546 if test "${enable_rpath+set}" = set; then
5547 enableval=$enable_rpath; :
5548 else
5549 enable_rpath=yes
5554 acl_libdirstem=lib
5555 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5556 if test -n "$searchpath"; then
5557 acl_save_IFS="${IFS= }"; IFS=":"
5558 for searchdir in $searchpath; do
5559 if test -d "$searchdir"; then
5560 case "$searchdir" in
5561 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5562 *) searchdir=`cd "$searchdir" && pwd`
5563 case "$searchdir" in
5564 */lib64 ) acl_libdirstem=lib64 ;;
5565 esac ;;
5566 esac
5568 done
5569 IFS="$acl_save_IFS"
5580 use_additional=yes
5582 acl_save_prefix="$prefix"
5583 prefix="$acl_final_prefix"
5584 acl_save_exec_prefix="$exec_prefix"
5585 exec_prefix="$acl_final_exec_prefix"
5587 eval additional_includedir=\"$includedir\"
5588 eval additional_libdir=\"$libdir\"
5590 exec_prefix="$acl_save_exec_prefix"
5591 prefix="$acl_save_prefix"
5594 # Check whether --with-libiconv-prefix was given.
5595 if test "${with_libiconv_prefix+set}" = set; then
5596 withval=$with_libiconv_prefix;
5597 if test "X$withval" = "Xno"; then
5598 use_additional=no
5599 else
5600 if test "X$withval" = "X"; then
5602 acl_save_prefix="$prefix"
5603 prefix="$acl_final_prefix"
5604 acl_save_exec_prefix="$exec_prefix"
5605 exec_prefix="$acl_final_exec_prefix"
5607 eval additional_includedir=\"$includedir\"
5608 eval additional_libdir=\"$libdir\"
5610 exec_prefix="$acl_save_exec_prefix"
5611 prefix="$acl_save_prefix"
5613 else
5614 additional_includedir="$withval/include"
5615 additional_libdir="$withval/$acl_libdirstem"
5621 LIBICONV=
5622 LTLIBICONV=
5623 INCICONV=
5624 LIBICONV_PREFIX=
5625 rpathdirs=
5626 ltrpathdirs=
5627 names_already_handled=
5628 names_next_round='iconv '
5629 while test -n "$names_next_round"; do
5630 names_this_round="$names_next_round"
5631 names_next_round=
5632 for name in $names_this_round; do
5633 already_handled=
5634 for n in $names_already_handled; do
5635 if test "$n" = "$name"; then
5636 already_handled=yes
5637 break
5639 done
5640 if test -z "$already_handled"; then
5641 names_already_handled="$names_already_handled $name"
5642 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5643 eval value=\"\$HAVE_LIB$uppername\"
5644 if test -n "$value"; then
5645 if test "$value" = yes; then
5646 eval value=\"\$LIB$uppername\"
5647 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5648 eval value=\"\$LTLIB$uppername\"
5649 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5650 else
5653 else
5654 found_dir=
5655 found_la=
5656 found_so=
5657 found_a=
5658 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5659 if test -n "$acl_shlibext"; then
5660 shrext=".$acl_shlibext" # typically: shrext=.so
5661 else
5662 shrext=
5664 if test $use_additional = yes; then
5665 dir="$additional_libdir"
5666 if test -n "$acl_shlibext"; then
5667 if test -f "$dir/$libname$shrext"; then
5668 found_dir="$dir"
5669 found_so="$dir/$libname$shrext"
5670 else
5671 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5672 ver=`(cd "$dir" && \
5673 for f in "$libname$shrext".*; do echo "$f"; done \
5674 | sed -e "s,^$libname$shrext\\\\.,," \
5675 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5676 | sed 1q ) 2>/dev/null`
5677 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5678 found_dir="$dir"
5679 found_so="$dir/$libname$shrext.$ver"
5681 else
5682 eval library_names=\"$acl_library_names_spec\"
5683 for f in $library_names; do
5684 if test -f "$dir/$f"; then
5685 found_dir="$dir"
5686 found_so="$dir/$f"
5687 break
5689 done
5693 if test "X$found_dir" = "X"; then
5694 if test -f "$dir/$libname.$acl_libext"; then
5695 found_dir="$dir"
5696 found_a="$dir/$libname.$acl_libext"
5699 if test "X$found_dir" != "X"; then
5700 if test -f "$dir/$libname.la"; then
5701 found_la="$dir/$libname.la"
5705 if test "X$found_dir" = "X"; then
5706 for x in $LDFLAGS $LTLIBICONV; do
5708 acl_save_prefix="$prefix"
5709 prefix="$acl_final_prefix"
5710 acl_save_exec_prefix="$exec_prefix"
5711 exec_prefix="$acl_final_exec_prefix"
5712 eval x=\"$x\"
5713 exec_prefix="$acl_save_exec_prefix"
5714 prefix="$acl_save_prefix"
5716 case "$x" in
5717 -L*)
5718 dir=`echo "X$x" | sed -e 's/^X-L//'`
5719 if test -n "$acl_shlibext"; then
5720 if test -f "$dir/$libname$shrext"; then
5721 found_dir="$dir"
5722 found_so="$dir/$libname$shrext"
5723 else
5724 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5725 ver=`(cd "$dir" && \
5726 for f in "$libname$shrext".*; do echo "$f"; done \
5727 | sed -e "s,^$libname$shrext\\\\.,," \
5728 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5729 | sed 1q ) 2>/dev/null`
5730 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5731 found_dir="$dir"
5732 found_so="$dir/$libname$shrext.$ver"
5734 else
5735 eval library_names=\"$acl_library_names_spec\"
5736 for f in $library_names; do
5737 if test -f "$dir/$f"; then
5738 found_dir="$dir"
5739 found_so="$dir/$f"
5740 break
5742 done
5746 if test "X$found_dir" = "X"; then
5747 if test -f "$dir/$libname.$acl_libext"; then
5748 found_dir="$dir"
5749 found_a="$dir/$libname.$acl_libext"
5752 if test "X$found_dir" != "X"; then
5753 if test -f "$dir/$libname.la"; then
5754 found_la="$dir/$libname.la"
5758 esac
5759 if test "X$found_dir" != "X"; then
5760 break
5762 done
5764 if test "X$found_dir" != "X"; then
5765 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5766 if test "X$found_so" != "X"; then
5767 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5768 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5769 else
5770 haveit=
5771 for x in $ltrpathdirs; do
5772 if test "X$x" = "X$found_dir"; then
5773 haveit=yes
5774 break
5776 done
5777 if test -z "$haveit"; then
5778 ltrpathdirs="$ltrpathdirs $found_dir"
5780 if test "$acl_hardcode_direct" = yes; then
5781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5782 else
5783 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5784 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5785 haveit=
5786 for x in $rpathdirs; do
5787 if test "X$x" = "X$found_dir"; then
5788 haveit=yes
5789 break
5791 done
5792 if test -z "$haveit"; then
5793 rpathdirs="$rpathdirs $found_dir"
5795 else
5796 haveit=
5797 for x in $LDFLAGS $LIBICONV; do
5799 acl_save_prefix="$prefix"
5800 prefix="$acl_final_prefix"
5801 acl_save_exec_prefix="$exec_prefix"
5802 exec_prefix="$acl_final_exec_prefix"
5803 eval x=\"$x\"
5804 exec_prefix="$acl_save_exec_prefix"
5805 prefix="$acl_save_prefix"
5807 if test "X$x" = "X-L$found_dir"; then
5808 haveit=yes
5809 break
5811 done
5812 if test -z "$haveit"; then
5813 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5815 if test "$acl_hardcode_minus_L" != no; then
5816 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5817 else
5818 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5823 else
5824 if test "X$found_a" != "X"; then
5825 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5826 else
5827 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5830 additional_includedir=
5831 case "$found_dir" in
5832 */$acl_libdirstem | */$acl_libdirstem/)
5833 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5834 LIBICONV_PREFIX="$basedir"
5835 additional_includedir="$basedir/include"
5837 esac
5838 if test "X$additional_includedir" != "X"; then
5839 if test "X$additional_includedir" != "X/usr/include"; then
5840 haveit=
5841 if test "X$additional_includedir" = "X/usr/local/include"; then
5842 if test -n "$GCC"; then
5843 case $host_os in
5844 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5845 esac
5848 if test -z "$haveit"; then
5849 for x in $CPPFLAGS $INCICONV; do
5851 acl_save_prefix="$prefix"
5852 prefix="$acl_final_prefix"
5853 acl_save_exec_prefix="$exec_prefix"
5854 exec_prefix="$acl_final_exec_prefix"
5855 eval x=\"$x\"
5856 exec_prefix="$acl_save_exec_prefix"
5857 prefix="$acl_save_prefix"
5859 if test "X$x" = "X-I$additional_includedir"; then
5860 haveit=yes
5861 break
5863 done
5864 if test -z "$haveit"; then
5865 if test -d "$additional_includedir"; then
5866 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5872 if test -n "$found_la"; then
5873 save_libdir="$libdir"
5874 case "$found_la" in
5875 */* | *\\*) . "$found_la" ;;
5876 *) . "./$found_la" ;;
5877 esac
5878 libdir="$save_libdir"
5879 for dep in $dependency_libs; do
5880 case "$dep" in
5881 -L*)
5882 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5883 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5884 haveit=
5885 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5886 if test -n "$GCC"; then
5887 case $host_os in
5888 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5889 esac
5892 if test -z "$haveit"; then
5893 haveit=
5894 for x in $LDFLAGS $LIBICONV; do
5896 acl_save_prefix="$prefix"
5897 prefix="$acl_final_prefix"
5898 acl_save_exec_prefix="$exec_prefix"
5899 exec_prefix="$acl_final_exec_prefix"
5900 eval x=\"$x\"
5901 exec_prefix="$acl_save_exec_prefix"
5902 prefix="$acl_save_prefix"
5904 if test "X$x" = "X-L$additional_libdir"; then
5905 haveit=yes
5906 break
5908 done
5909 if test -z "$haveit"; then
5910 if test -d "$additional_libdir"; then
5911 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5914 haveit=
5915 for x in $LDFLAGS $LTLIBICONV; do
5917 acl_save_prefix="$prefix"
5918 prefix="$acl_final_prefix"
5919 acl_save_exec_prefix="$exec_prefix"
5920 exec_prefix="$acl_final_exec_prefix"
5921 eval x=\"$x\"
5922 exec_prefix="$acl_save_exec_prefix"
5923 prefix="$acl_save_prefix"
5925 if test "X$x" = "X-L$additional_libdir"; then
5926 haveit=yes
5927 break
5929 done
5930 if test -z "$haveit"; then
5931 if test -d "$additional_libdir"; then
5932 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5938 -R*)
5939 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5940 if test "$enable_rpath" != no; then
5941 haveit=
5942 for x in $rpathdirs; do
5943 if test "X$x" = "X$dir"; then
5944 haveit=yes
5945 break
5947 done
5948 if test -z "$haveit"; then
5949 rpathdirs="$rpathdirs $dir"
5951 haveit=
5952 for x in $ltrpathdirs; do
5953 if test "X$x" = "X$dir"; then
5954 haveit=yes
5955 break
5957 done
5958 if test -z "$haveit"; then
5959 ltrpathdirs="$ltrpathdirs $dir"
5963 -l*)
5964 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5966 *.la)
5967 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5970 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5973 esac
5974 done
5976 else
5977 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5978 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5982 done
5983 done
5984 if test "X$rpathdirs" != "X"; then
5985 if test -n "$acl_hardcode_libdir_separator"; then
5986 alldirs=
5987 for found_dir in $rpathdirs; do
5988 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5989 done
5990 acl_save_libdir="$libdir"
5991 libdir="$alldirs"
5992 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5993 libdir="$acl_save_libdir"
5994 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5995 else
5996 for found_dir in $rpathdirs; do
5997 acl_save_libdir="$libdir"
5998 libdir="$found_dir"
5999 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6000 libdir="$acl_save_libdir"
6001 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6002 done
6005 if test "X$ltrpathdirs" != "X"; then
6006 for found_dir in $ltrpathdirs; do
6007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6008 done
6035 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6036 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6037 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6038 $as_echo_n "(cached) " >&6
6039 else
6040 gt_save_LIBS="$LIBS"
6041 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 #include <CoreFoundation/CFPreferences.h>
6050 main ()
6052 CFPreferencesCopyAppValue(NULL, NULL)
6054 return 0;
6056 _ACEOF
6057 rm -f conftest.$ac_objext conftest$ac_exeext
6058 if { (ac_try="$ac_link"
6059 case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062 esac
6063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064 $as_echo "$ac_try_echo") >&5
6065 (eval "$ac_link") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_cxx_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest$ac_exeext && {
6075 test "$cross_compiling" = yes ||
6076 $as_test_x conftest$ac_exeext
6077 }; then
6078 gt_cv_func_CFPreferencesCopyAppValue=yes
6079 else
6080 $as_echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 gt_cv_func_CFPreferencesCopyAppValue=no
6086 rm -rf conftest.dSYM
6087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6088 conftest$ac_exeext conftest.$ac_ext
6089 LIBS="$gt_save_LIBS"
6091 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6092 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6093 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6095 cat >>confdefs.h <<\_ACEOF
6096 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6097 _ACEOF
6100 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6101 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6102 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6103 $as_echo_n "(cached) " >&6
6104 else
6105 gt_save_LIBS="$LIBS"
6106 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #include <CoreFoundation/CFLocale.h>
6115 main ()
6117 CFLocaleCopyCurrent();
6119 return 0;
6121 _ACEOF
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (ac_try="$ac_link"
6124 case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127 esac
6128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6129 $as_echo "$ac_try_echo") >&5
6130 (eval "$ac_link") 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && {
6137 test -z "$ac_cxx_werror_flag" ||
6138 test ! -s conftest.err
6139 } && test -s conftest$ac_exeext && {
6140 test "$cross_compiling" = yes ||
6141 $as_test_x conftest$ac_exeext
6142 }; then
6143 gt_cv_func_CFLocaleCopyCurrent=yes
6144 else
6145 $as_echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6148 gt_cv_func_CFLocaleCopyCurrent=no
6151 rm -rf conftest.dSYM
6152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6153 conftest$ac_exeext conftest.$ac_ext
6154 LIBS="$gt_save_LIBS"
6156 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6157 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6158 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6160 cat >>confdefs.h <<\_ACEOF
6161 #define HAVE_CFLOCALECOPYCURRENT 1
6162 _ACEOF
6165 INTL_MACOSX_LIBS=
6166 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6167 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6175 LIBINTL=
6176 LTLIBINTL=
6177 POSUB=
6179 case " $gt_needs " in
6180 *" need-formatstring-macros "*) gt_api_version=3 ;;
6181 *" need-ngettext "*) gt_api_version=2 ;;
6182 *) gt_api_version=1 ;;
6183 esac
6184 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6185 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6187 if test "$USE_NLS" = "yes"; then
6188 gt_use_preinstalled_gnugettext=no
6191 if test $gt_api_version -ge 3; then
6192 gt_revision_test_code='
6193 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6194 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6195 #endif
6196 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6198 else
6199 gt_revision_test_code=
6201 if test $gt_api_version -ge 2; then
6202 gt_expression_test_code=' + * ngettext ("", "", 0)'
6203 else
6204 gt_expression_test_code=
6207 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6208 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6209 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
6210 $as_echo_n "(cached) " >&6
6211 else
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <libintl.h>
6219 $gt_revision_test_code
6220 extern int _nl_msg_cat_cntr;
6221 extern int *_nl_domain_bindings;
6223 main ()
6225 bindtextdomain ("", "");
6226 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6228 return 0;
6230 _ACEOF
6231 rm -f conftest.$ac_objext conftest$ac_exeext
6232 if { (ac_try="$ac_link"
6233 case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238 $as_echo "$ac_try_echo") >&5
6239 (eval "$ac_link") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_cxx_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest$ac_exeext && {
6249 test "$cross_compiling" = yes ||
6250 $as_test_x conftest$ac_exeext
6251 }; then
6252 eval "$gt_func_gnugettext_libc=yes"
6253 else
6254 $as_echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 eval "$gt_func_gnugettext_libc=no"
6260 rm -rf conftest.dSYM
6261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6262 conftest$ac_exeext conftest.$ac_ext
6264 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
6265 $as_echo "$as_val"'`
6266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6267 $as_echo "$ac_res" >&6; }
6269 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6275 am_save_CPPFLAGS="$CPPFLAGS"
6277 for element in $INCICONV; do
6278 haveit=
6279 for x in $CPPFLAGS; do
6281 acl_save_prefix="$prefix"
6282 prefix="$acl_final_prefix"
6283 acl_save_exec_prefix="$exec_prefix"
6284 exec_prefix="$acl_final_exec_prefix"
6285 eval x=\"$x\"
6286 exec_prefix="$acl_save_exec_prefix"
6287 prefix="$acl_save_prefix"
6289 if test "X$x" = "X$element"; then
6290 haveit=yes
6291 break
6293 done
6294 if test -z "$haveit"; then
6295 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6297 done
6300 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
6301 $as_echo_n "checking for iconv... " >&6; }
6302 if test "${am_cv_func_iconv+set}" = set; then
6303 $as_echo_n "(cached) " >&6
6304 else
6306 am_cv_func_iconv="no, consider installing GNU libiconv"
6307 am_cv_lib_iconv=no
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <stdlib.h>
6315 #include <iconv.h>
6317 main ()
6319 iconv_t cd = iconv_open("","");
6320 iconv(cd,NULL,NULL,NULL,NULL);
6321 iconv_close(cd);
6323 return 0;
6325 _ACEOF
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (ac_try="$ac_link"
6328 case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331 esac
6332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6333 $as_echo "$ac_try_echo") >&5
6334 (eval "$ac_link") 2>conftest.er1
6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && {
6341 test -z "$ac_cxx_werror_flag" ||
6342 test ! -s conftest.err
6343 } && test -s conftest$ac_exeext && {
6344 test "$cross_compiling" = yes ||
6345 $as_test_x conftest$ac_exeext
6346 }; then
6347 am_cv_func_iconv=yes
6348 else
6349 $as_echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6355 rm -rf conftest.dSYM
6356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6357 conftest$ac_exeext conftest.$ac_ext
6358 if test "$am_cv_func_iconv" != yes; then
6359 am_save_LIBS="$LIBS"
6360 LIBS="$LIBS $LIBICONV"
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 #include <stdlib.h>
6368 #include <iconv.h>
6370 main ()
6372 iconv_t cd = iconv_open("","");
6373 iconv(cd,NULL,NULL,NULL,NULL);
6374 iconv_close(cd);
6376 return 0;
6378 _ACEOF
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (ac_try="$ac_link"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6386 $as_echo "$ac_try_echo") >&5
6387 (eval "$ac_link") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_cxx_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest$ac_exeext && {
6397 test "$cross_compiling" = yes ||
6398 $as_test_x conftest$ac_exeext
6399 }; then
6400 am_cv_lib_iconv=yes
6401 am_cv_func_iconv=yes
6402 else
6403 $as_echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6409 rm -rf conftest.dSYM
6410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6411 conftest$ac_exeext conftest.$ac_ext
6412 LIBS="$am_save_LIBS"
6416 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6417 $as_echo "$am_cv_func_iconv" >&6; }
6418 if test "$am_cv_func_iconv" = yes; then
6419 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
6420 $as_echo_n "checking for working iconv... " >&6; }
6421 if test "${am_cv_func_iconv_works+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6423 else
6425 am_save_LIBS="$LIBS"
6426 if test $am_cv_lib_iconv = yes; then
6427 LIBS="$LIBS $LIBICONV"
6429 if test "$cross_compiling" = yes; then
6430 case "$host_os" in
6431 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6432 *) am_cv_func_iconv_works="guessing yes" ;;
6433 esac
6434 else
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6442 #include <iconv.h>
6443 #include <string.h>
6444 int main ()
6446 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6447 returns. */
6449 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6450 if (cd_utf8_to_88591 != (iconv_t)(-1))
6452 static const char input[] = "\342\202\254"; /* EURO SIGN */
6453 char buf[10];
6454 const char *inptr = input;
6455 size_t inbytesleft = strlen (input);
6456 char *outptr = buf;
6457 size_t outbytesleft = sizeof (buf);
6458 size_t res = iconv (cd_utf8_to_88591,
6459 (char **) &inptr, &inbytesleft,
6460 &outptr, &outbytesleft);
6461 if (res == 0)
6462 return 1;
6465 #if 0 /* This bug could be worked around by the caller. */
6466 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6468 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6469 if (cd_88591_to_utf8 != (iconv_t)(-1))
6471 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6472 char buf[50];
6473 const char *inptr = input;
6474 size_t inbytesleft = strlen (input);
6475 char *outptr = buf;
6476 size_t outbytesleft = sizeof (buf);
6477 size_t res = iconv (cd_88591_to_utf8,
6478 (char **) &inptr, &inbytesleft,
6479 &outptr, &outbytesleft);
6480 if ((int)res > 0)
6481 return 1;
6484 #endif
6485 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6486 provided. */
6487 if (/* Try standardized names. */
6488 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6489 /* Try IRIX, OSF/1 names. */
6490 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6491 /* Try AIX names. */
6492 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6493 /* Try HP-UX names. */
6494 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6495 return 1;
6496 return 0;
6498 _ACEOF
6499 rm -f conftest$ac_exeext
6500 if { (ac_try="$ac_link"
6501 case "(($ac_try" in
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6504 esac
6505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6506 $as_echo "$ac_try_echo") >&5
6507 (eval "$ac_link") 2>&5
6508 ac_status=$?
6509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6511 { (case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514 esac
6515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6516 $as_echo "$ac_try_echo") >&5
6517 (eval "$ac_try") 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 am_cv_func_iconv_works=yes
6522 else
6523 $as_echo "$as_me: program exited with status $ac_status" >&5
6524 $as_echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 ( exit $ac_status )
6528 am_cv_func_iconv_works=no
6530 rm -rf conftest.dSYM
6531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6535 LIBS="$am_save_LIBS"
6538 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
6539 $as_echo "$am_cv_func_iconv_works" >&6; }
6540 case "$am_cv_func_iconv_works" in
6541 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6542 *) am_func_iconv=yes ;;
6543 esac
6544 else
6545 am_func_iconv=no am_cv_lib_iconv=no
6547 if test "$am_func_iconv" = yes; then
6549 cat >>confdefs.h <<\_ACEOF
6550 #define HAVE_ICONV 1
6551 _ACEOF
6554 if test "$am_cv_lib_iconv" = yes; then
6555 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6556 $as_echo_n "checking how to link with libiconv... " >&6; }
6557 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
6558 $as_echo "$LIBICONV" >&6; }
6559 else
6560 CPPFLAGS="$am_save_CPPFLAGS"
6561 LIBICONV=
6562 LTLIBICONV=
6572 use_additional=yes
6574 acl_save_prefix="$prefix"
6575 prefix="$acl_final_prefix"
6576 acl_save_exec_prefix="$exec_prefix"
6577 exec_prefix="$acl_final_exec_prefix"
6579 eval additional_includedir=\"$includedir\"
6580 eval additional_libdir=\"$libdir\"
6582 exec_prefix="$acl_save_exec_prefix"
6583 prefix="$acl_save_prefix"
6586 # Check whether --with-libintl-prefix was given.
6587 if test "${with_libintl_prefix+set}" = set; then
6588 withval=$with_libintl_prefix;
6589 if test "X$withval" = "Xno"; then
6590 use_additional=no
6591 else
6592 if test "X$withval" = "X"; then
6594 acl_save_prefix="$prefix"
6595 prefix="$acl_final_prefix"
6596 acl_save_exec_prefix="$exec_prefix"
6597 exec_prefix="$acl_final_exec_prefix"
6599 eval additional_includedir=\"$includedir\"
6600 eval additional_libdir=\"$libdir\"
6602 exec_prefix="$acl_save_exec_prefix"
6603 prefix="$acl_save_prefix"
6605 else
6606 additional_includedir="$withval/include"
6607 additional_libdir="$withval/$acl_libdirstem"
6613 LIBINTL=
6614 LTLIBINTL=
6615 INCINTL=
6616 LIBINTL_PREFIX=
6617 rpathdirs=
6618 ltrpathdirs=
6619 names_already_handled=
6620 names_next_round='intl '
6621 while test -n "$names_next_round"; do
6622 names_this_round="$names_next_round"
6623 names_next_round=
6624 for name in $names_this_round; do
6625 already_handled=
6626 for n in $names_already_handled; do
6627 if test "$n" = "$name"; then
6628 already_handled=yes
6629 break
6631 done
6632 if test -z "$already_handled"; then
6633 names_already_handled="$names_already_handled $name"
6634 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6635 eval value=\"\$HAVE_LIB$uppername\"
6636 if test -n "$value"; then
6637 if test "$value" = yes; then
6638 eval value=\"\$LIB$uppername\"
6639 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6640 eval value=\"\$LTLIB$uppername\"
6641 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6642 else
6645 else
6646 found_dir=
6647 found_la=
6648 found_so=
6649 found_a=
6650 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6651 if test -n "$acl_shlibext"; then
6652 shrext=".$acl_shlibext" # typically: shrext=.so
6653 else
6654 shrext=
6656 if test $use_additional = yes; then
6657 dir="$additional_libdir"
6658 if test -n "$acl_shlibext"; then
6659 if test -f "$dir/$libname$shrext"; then
6660 found_dir="$dir"
6661 found_so="$dir/$libname$shrext"
6662 else
6663 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6664 ver=`(cd "$dir" && \
6665 for f in "$libname$shrext".*; do echo "$f"; done \
6666 | sed -e "s,^$libname$shrext\\\\.,," \
6667 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6668 | sed 1q ) 2>/dev/null`
6669 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6670 found_dir="$dir"
6671 found_so="$dir/$libname$shrext.$ver"
6673 else
6674 eval library_names=\"$acl_library_names_spec\"
6675 for f in $library_names; do
6676 if test -f "$dir/$f"; then
6677 found_dir="$dir"
6678 found_so="$dir/$f"
6679 break
6681 done
6685 if test "X$found_dir" = "X"; then
6686 if test -f "$dir/$libname.$acl_libext"; then
6687 found_dir="$dir"
6688 found_a="$dir/$libname.$acl_libext"
6691 if test "X$found_dir" != "X"; then
6692 if test -f "$dir/$libname.la"; then
6693 found_la="$dir/$libname.la"
6697 if test "X$found_dir" = "X"; then
6698 for x in $LDFLAGS $LTLIBINTL; do
6700 acl_save_prefix="$prefix"
6701 prefix="$acl_final_prefix"
6702 acl_save_exec_prefix="$exec_prefix"
6703 exec_prefix="$acl_final_exec_prefix"
6704 eval x=\"$x\"
6705 exec_prefix="$acl_save_exec_prefix"
6706 prefix="$acl_save_prefix"
6708 case "$x" in
6709 -L*)
6710 dir=`echo "X$x" | sed -e 's/^X-L//'`
6711 if test -n "$acl_shlibext"; then
6712 if test -f "$dir/$libname$shrext"; then
6713 found_dir="$dir"
6714 found_so="$dir/$libname$shrext"
6715 else
6716 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6717 ver=`(cd "$dir" && \
6718 for f in "$libname$shrext".*; do echo "$f"; done \
6719 | sed -e "s,^$libname$shrext\\\\.,," \
6720 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6721 | sed 1q ) 2>/dev/null`
6722 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6723 found_dir="$dir"
6724 found_so="$dir/$libname$shrext.$ver"
6726 else
6727 eval library_names=\"$acl_library_names_spec\"
6728 for f in $library_names; do
6729 if test -f "$dir/$f"; then
6730 found_dir="$dir"
6731 found_so="$dir/$f"
6732 break
6734 done
6738 if test "X$found_dir" = "X"; then
6739 if test -f "$dir/$libname.$acl_libext"; then
6740 found_dir="$dir"
6741 found_a="$dir/$libname.$acl_libext"
6744 if test "X$found_dir" != "X"; then
6745 if test -f "$dir/$libname.la"; then
6746 found_la="$dir/$libname.la"
6750 esac
6751 if test "X$found_dir" != "X"; then
6752 break
6754 done
6756 if test "X$found_dir" != "X"; then
6757 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6758 if test "X$found_so" != "X"; then
6759 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6760 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6761 else
6762 haveit=
6763 for x in $ltrpathdirs; do
6764 if test "X$x" = "X$found_dir"; then
6765 haveit=yes
6766 break
6768 done
6769 if test -z "$haveit"; then
6770 ltrpathdirs="$ltrpathdirs $found_dir"
6772 if test "$acl_hardcode_direct" = yes; then
6773 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6774 else
6775 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6776 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6777 haveit=
6778 for x in $rpathdirs; do
6779 if test "X$x" = "X$found_dir"; then
6780 haveit=yes
6781 break
6783 done
6784 if test -z "$haveit"; then
6785 rpathdirs="$rpathdirs $found_dir"
6787 else
6788 haveit=
6789 for x in $LDFLAGS $LIBINTL; do
6791 acl_save_prefix="$prefix"
6792 prefix="$acl_final_prefix"
6793 acl_save_exec_prefix="$exec_prefix"
6794 exec_prefix="$acl_final_exec_prefix"
6795 eval x=\"$x\"
6796 exec_prefix="$acl_save_exec_prefix"
6797 prefix="$acl_save_prefix"
6799 if test "X$x" = "X-L$found_dir"; then
6800 haveit=yes
6801 break
6803 done
6804 if test -z "$haveit"; then
6805 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6807 if test "$acl_hardcode_minus_L" != no; then
6808 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6809 else
6810 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6815 else
6816 if test "X$found_a" != "X"; then
6817 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6818 else
6819 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6822 additional_includedir=
6823 case "$found_dir" in
6824 */$acl_libdirstem | */$acl_libdirstem/)
6825 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6826 LIBINTL_PREFIX="$basedir"
6827 additional_includedir="$basedir/include"
6829 esac
6830 if test "X$additional_includedir" != "X"; then
6831 if test "X$additional_includedir" != "X/usr/include"; then
6832 haveit=
6833 if test "X$additional_includedir" = "X/usr/local/include"; then
6834 if test -n "$GCC"; then
6835 case $host_os in
6836 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6837 esac
6840 if test -z "$haveit"; then
6841 for x in $CPPFLAGS $INCINTL; do
6843 acl_save_prefix="$prefix"
6844 prefix="$acl_final_prefix"
6845 acl_save_exec_prefix="$exec_prefix"
6846 exec_prefix="$acl_final_exec_prefix"
6847 eval x=\"$x\"
6848 exec_prefix="$acl_save_exec_prefix"
6849 prefix="$acl_save_prefix"
6851 if test "X$x" = "X-I$additional_includedir"; then
6852 haveit=yes
6853 break
6855 done
6856 if test -z "$haveit"; then
6857 if test -d "$additional_includedir"; then
6858 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6864 if test -n "$found_la"; then
6865 save_libdir="$libdir"
6866 case "$found_la" in
6867 */* | *\\*) . "$found_la" ;;
6868 *) . "./$found_la" ;;
6869 esac
6870 libdir="$save_libdir"
6871 for dep in $dependency_libs; do
6872 case "$dep" in
6873 -L*)
6874 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6875 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6876 haveit=
6877 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6878 if test -n "$GCC"; then
6879 case $host_os in
6880 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6881 esac
6884 if test -z "$haveit"; then
6885 haveit=
6886 for x in $LDFLAGS $LIBINTL; do
6888 acl_save_prefix="$prefix"
6889 prefix="$acl_final_prefix"
6890 acl_save_exec_prefix="$exec_prefix"
6891 exec_prefix="$acl_final_exec_prefix"
6892 eval x=\"$x\"
6893 exec_prefix="$acl_save_exec_prefix"
6894 prefix="$acl_save_prefix"
6896 if test "X$x" = "X-L$additional_libdir"; then
6897 haveit=yes
6898 break
6900 done
6901 if test -z "$haveit"; then
6902 if test -d "$additional_libdir"; then
6903 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6906 haveit=
6907 for x in $LDFLAGS $LTLIBINTL; do
6909 acl_save_prefix="$prefix"
6910 prefix="$acl_final_prefix"
6911 acl_save_exec_prefix="$exec_prefix"
6912 exec_prefix="$acl_final_exec_prefix"
6913 eval x=\"$x\"
6914 exec_prefix="$acl_save_exec_prefix"
6915 prefix="$acl_save_prefix"
6917 if test "X$x" = "X-L$additional_libdir"; then
6918 haveit=yes
6919 break
6921 done
6922 if test -z "$haveit"; then
6923 if test -d "$additional_libdir"; then
6924 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6930 -R*)
6931 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6932 if test "$enable_rpath" != no; then
6933 haveit=
6934 for x in $rpathdirs; do
6935 if test "X$x" = "X$dir"; then
6936 haveit=yes
6937 break
6939 done
6940 if test -z "$haveit"; then
6941 rpathdirs="$rpathdirs $dir"
6943 haveit=
6944 for x in $ltrpathdirs; do
6945 if test "X$x" = "X$dir"; then
6946 haveit=yes
6947 break
6949 done
6950 if test -z "$haveit"; then
6951 ltrpathdirs="$ltrpathdirs $dir"
6955 -l*)
6956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6958 *.la)
6959 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6962 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6963 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6965 esac
6966 done
6968 else
6969 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6970 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6974 done
6975 done
6976 if test "X$rpathdirs" != "X"; then
6977 if test -n "$acl_hardcode_libdir_separator"; then
6978 alldirs=
6979 for found_dir in $rpathdirs; do
6980 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6981 done
6982 acl_save_libdir="$libdir"
6983 libdir="$alldirs"
6984 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6985 libdir="$acl_save_libdir"
6986 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6987 else
6988 for found_dir in $rpathdirs; do
6989 acl_save_libdir="$libdir"
6990 libdir="$found_dir"
6991 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6992 libdir="$acl_save_libdir"
6993 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6994 done
6997 if test "X$ltrpathdirs" != "X"; then
6998 for found_dir in $ltrpathdirs; do
6999 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7000 done
7003 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7004 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7005 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
7006 $as_echo_n "(cached) " >&6
7007 else
7008 gt_save_CPPFLAGS="$CPPFLAGS"
7009 CPPFLAGS="$CPPFLAGS $INCINTL"
7010 gt_save_LIBS="$LIBS"
7011 LIBS="$LIBS $LIBINTL"
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 #include <libintl.h>
7019 $gt_revision_test_code
7020 extern int _nl_msg_cat_cntr;
7021 extern
7022 #ifdef __cplusplus
7024 #endif
7025 const char *_nl_expand_alias (const char *);
7027 main ()
7029 bindtextdomain ("", "");
7030 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7032 return 0;
7034 _ACEOF
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (ac_try="$ac_link"
7037 case "(($ac_try" in
7038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7040 esac
7041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7042 $as_echo "$ac_try_echo") >&5
7043 (eval "$ac_link") 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && {
7050 test -z "$ac_cxx_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest$ac_exeext && {
7053 test "$cross_compiling" = yes ||
7054 $as_test_x conftest$ac_exeext
7055 }; then
7056 eval "$gt_func_gnugettext_libintl=yes"
7057 else
7058 $as_echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 eval "$gt_func_gnugettext_libintl=no"
7064 rm -rf conftest.dSYM
7065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7066 conftest$ac_exeext conftest.$ac_ext
7067 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7068 LIBS="$LIBS $LIBICONV"
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #include <libintl.h>
7076 $gt_revision_test_code
7077 extern int _nl_msg_cat_cntr;
7078 extern
7079 #ifdef __cplusplus
7081 #endif
7082 const char *_nl_expand_alias (const char *);
7084 main ()
7086 bindtextdomain ("", "");
7087 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7089 return 0;
7091 _ACEOF
7092 rm -f conftest.$ac_objext conftest$ac_exeext
7093 if { (ac_try="$ac_link"
7094 case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097 esac
7098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7099 $as_echo "$ac_try_echo") >&5
7100 (eval "$ac_link") 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } && {
7107 test -z "$ac_cxx_werror_flag" ||
7108 test ! -s conftest.err
7109 } && test -s conftest$ac_exeext && {
7110 test "$cross_compiling" = yes ||
7111 $as_test_x conftest$ac_exeext
7112 }; then
7113 LIBINTL="$LIBINTL $LIBICONV"
7114 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7115 eval "$gt_func_gnugettext_libintl=yes"
7117 else
7118 $as_echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7124 rm -rf conftest.dSYM
7125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7126 conftest$ac_exeext conftest.$ac_ext
7128 CPPFLAGS="$gt_save_CPPFLAGS"
7129 LIBS="$gt_save_LIBS"
7131 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
7132 $as_echo "$as_val"'`
7133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7134 $as_echo "$ac_res" >&6; }
7137 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7138 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7139 && test "$PACKAGE" != gettext-runtime \
7140 && test "$PACKAGE" != gettext-tools; }; then
7141 gt_use_preinstalled_gnugettext=yes
7142 else
7143 LIBINTL=
7144 LTLIBINTL=
7145 INCINTL=
7150 if test -n "$INTL_MACOSX_LIBS"; then
7151 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7152 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7153 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7154 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7158 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7159 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7161 cat >>confdefs.h <<\_ACEOF
7162 #define ENABLE_NLS 1
7163 _ACEOF
7165 else
7166 USE_NLS=no
7170 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
7171 $as_echo_n "checking whether to use NLS... " >&6; }
7172 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7173 $as_echo "$USE_NLS" >&6; }
7174 if test "$USE_NLS" = "yes"; then
7175 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7176 $as_echo_n "checking where the gettext function comes from... " >&6; }
7177 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7178 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7179 gt_source="external libintl"
7180 else
7181 gt_source="libc"
7183 else
7184 gt_source="included intl directory"
7186 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
7187 $as_echo "$gt_source" >&6; }
7190 if test "$USE_NLS" = "yes"; then
7192 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7193 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7194 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
7195 $as_echo_n "checking how to link with libintl... " >&6; }
7196 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
7197 $as_echo "$LIBINTL" >&6; }
7199 for element in $INCINTL; do
7200 haveit=
7201 for x in $CPPFLAGS; do
7203 acl_save_prefix="$prefix"
7204 prefix="$acl_final_prefix"
7205 acl_save_exec_prefix="$exec_prefix"
7206 exec_prefix="$acl_final_exec_prefix"
7207 eval x=\"$x\"
7208 exec_prefix="$acl_save_exec_prefix"
7209 prefix="$acl_save_prefix"
7211 if test "X$x" = "X$element"; then
7212 haveit=yes
7213 break
7215 done
7216 if test -z "$haveit"; then
7217 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7219 done
7224 cat >>confdefs.h <<\_ACEOF
7225 #define HAVE_GETTEXT 1
7226 _ACEOF
7229 cat >>confdefs.h <<\_ACEOF
7230 #define HAVE_DCGETTEXT 1
7231 _ACEOF
7235 POSUB=po
7240 INTLLIBS="$LIBINTL"
7248 ### Check for header files ###
7250 ac_ext=cpp
7251 ac_cpp='$CXXCPP $CPPFLAGS'
7252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7255 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7256 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7257 if test -z "$CXXCPP"; then
7258 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7259 $as_echo_n "(cached) " >&6
7260 else
7261 # Double quotes because CXXCPP needs to be expanded
7262 for CXXCPP in "$CXX -E" "/lib/cpp"
7264 ac_preproc_ok=false
7265 for ac_cxx_preproc_warn_flag in '' yes
7267 # Use a header file that comes with gcc, so configuring glibc
7268 # with a fresh cross-compiler works.
7269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7270 # <limits.h> exists even on freestanding compilers.
7271 # On the NeXT, cc -E runs the code through the compiler's parser,
7272 # not just through cpp. "Syntax error" is here to catch this case.
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 #ifdef __STDC__
7280 # include <limits.h>
7281 #else
7282 # include <assert.h>
7283 #endif
7284 Syntax error
7285 _ACEOF
7286 if { (ac_try="$ac_cpp conftest.$ac_ext"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7292 $as_echo "$ac_try_echo") >&5
7293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } >/dev/null && {
7300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7301 test ! -s conftest.err
7302 }; then
7304 else
7305 $as_echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 # Broken: fails on valid input.
7309 continue
7312 rm -f conftest.err conftest.$ac_ext
7314 # OK, works on sane cases. Now check whether nonexistent headers
7315 # can be detected and how.
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 #include <ac_nonexistent.h>
7323 _ACEOF
7324 if { (ac_try="$ac_cpp conftest.$ac_ext"
7325 case "(($ac_try" in
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7328 esac
7329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7330 $as_echo "$ac_try_echo") >&5
7331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } >/dev/null && {
7338 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7339 test ! -s conftest.err
7340 }; then
7341 # Broken: success on invalid input.
7342 continue
7343 else
7344 $as_echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 # Passes both tests.
7348 ac_preproc_ok=:
7349 break
7352 rm -f conftest.err conftest.$ac_ext
7354 done
7355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7356 rm -f conftest.err conftest.$ac_ext
7357 if $ac_preproc_ok; then
7358 break
7361 done
7362 ac_cv_prog_CXXCPP=$CXXCPP
7365 CXXCPP=$ac_cv_prog_CXXCPP
7366 else
7367 ac_cv_prog_CXXCPP=$CXXCPP
7369 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7370 $as_echo "$CXXCPP" >&6; }
7371 ac_preproc_ok=false
7372 for ac_cxx_preproc_warn_flag in '' yes
7374 # Use a header file that comes with gcc, so configuring glibc
7375 # with a fresh cross-compiler works.
7376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7377 # <limits.h> exists even on freestanding compilers.
7378 # On the NeXT, cc -E runs the code through the compiler's parser,
7379 # not just through cpp. "Syntax error" is here to catch this case.
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #ifdef __STDC__
7387 # include <limits.h>
7388 #else
7389 # include <assert.h>
7390 #endif
7391 Syntax error
7392 _ACEOF
7393 if { (ac_try="$ac_cpp conftest.$ac_ext"
7394 case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397 esac
7398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7399 $as_echo "$ac_try_echo") >&5
7400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } >/dev/null && {
7407 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7408 test ! -s conftest.err
7409 }; then
7411 else
7412 $as_echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 # Broken: fails on valid input.
7416 continue
7419 rm -f conftest.err conftest.$ac_ext
7421 # OK, works on sane cases. Now check whether nonexistent headers
7422 # can be detected and how.
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #include <ac_nonexistent.h>
7430 _ACEOF
7431 if { (ac_try="$ac_cpp conftest.$ac_ext"
7432 case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435 esac
7436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7437 $as_echo "$ac_try_echo") >&5
7438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev/null && {
7445 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7446 test ! -s conftest.err
7447 }; then
7448 # Broken: success on invalid input.
7449 continue
7450 else
7451 $as_echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 # Passes both tests.
7455 ac_preproc_ok=:
7456 break
7459 rm -f conftest.err conftest.$ac_ext
7461 done
7462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7463 rm -f conftest.err conftest.$ac_ext
7464 if $ac_preproc_ok; then
7466 else
7467 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7469 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7470 See \`config.log' for more details." >&5
7471 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7472 See \`config.log' for more details." >&2;}
7473 { (exit 1); exit 1; }; }; }
7476 ac_ext=cpp
7477 ac_cpp='$CXXCPP $CPPFLAGS'
7478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7483 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7484 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7485 if test "${ac_cv_path_GREP+set}" = set; then
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -z "$GREP"; then
7489 ac_path_GREP_found=false
7490 # Loop through the user's path and test for each of PROGNAME-LIST
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_prog in grep ggrep; do
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7499 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7500 # Check for GNU ac_path_GREP and select it if it is found.
7501 # Check for GNU $ac_path_GREP
7502 case `"$ac_path_GREP" --version 2>&1` in
7503 *GNU*)
7504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7506 ac_count=0
7507 $as_echo_n 0123456789 >"conftest.in"
7508 while :
7510 cat "conftest.in" "conftest.in" >"conftest.tmp"
7511 mv "conftest.tmp" "conftest.in"
7512 cp "conftest.in" "conftest.nl"
7513 $as_echo 'GREP' >> "conftest.nl"
7514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7516 ac_count=`expr $ac_count + 1`
7517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7518 # Best one so far, save it but keep looking for a better one
7519 ac_cv_path_GREP="$ac_path_GREP"
7520 ac_path_GREP_max=$ac_count
7522 # 10*(2^10) chars as input seems more than enough
7523 test $ac_count -gt 10 && break
7524 done
7525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7526 esac
7528 $ac_path_GREP_found && break 3
7529 done
7530 done
7531 done
7532 IFS=$as_save_IFS
7533 if test -z "$ac_cv_path_GREP"; then
7534 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7535 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7536 { (exit 1); exit 1; }; }
7538 else
7539 ac_cv_path_GREP=$GREP
7543 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7544 $as_echo "$ac_cv_path_GREP" >&6; }
7545 GREP="$ac_cv_path_GREP"
7548 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
7549 $as_echo_n "checking for egrep... " >&6; }
7550 if test "${ac_cv_path_EGREP+set}" = set; then
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7554 then ac_cv_path_EGREP="$GREP -E"
7555 else
7556 if test -z "$EGREP"; then
7557 ac_path_EGREP_found=false
7558 # Loop through the user's path and test for each of PROGNAME-LIST
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_prog in egrep; do
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7567 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7568 # Check for GNU ac_path_EGREP and select it if it is found.
7569 # Check for GNU $ac_path_EGREP
7570 case `"$ac_path_EGREP" --version 2>&1` in
7571 *GNU*)
7572 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7574 ac_count=0
7575 $as_echo_n 0123456789 >"conftest.in"
7576 while :
7578 cat "conftest.in" "conftest.in" >"conftest.tmp"
7579 mv "conftest.tmp" "conftest.in"
7580 cp "conftest.in" "conftest.nl"
7581 $as_echo 'EGREP' >> "conftest.nl"
7582 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7584 ac_count=`expr $ac_count + 1`
7585 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7586 # Best one so far, save it but keep looking for a better one
7587 ac_cv_path_EGREP="$ac_path_EGREP"
7588 ac_path_EGREP_max=$ac_count
7590 # 10*(2^10) chars as input seems more than enough
7591 test $ac_count -gt 10 && break
7592 done
7593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7594 esac
7596 $ac_path_EGREP_found && break 3
7597 done
7598 done
7599 done
7600 IFS=$as_save_IFS
7601 if test -z "$ac_cv_path_EGREP"; then
7602 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7603 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7604 { (exit 1); exit 1; }; }
7606 else
7607 ac_cv_path_EGREP=$EGREP
7612 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7613 $as_echo "$ac_cv_path_EGREP" >&6; }
7614 EGREP="$ac_cv_path_EGREP"
7617 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7618 $as_echo_n "checking for ANSI C header files... " >&6; }
7619 if test "${ac_cv_header_stdc+set}" = set; then
7620 $as_echo_n "(cached) " >&6
7621 else
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h. */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 #include <stdlib.h>
7629 #include <stdarg.h>
7630 #include <string.h>
7631 #include <float.h>
7634 main ()
7638 return 0;
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646 esac
7647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648 $as_echo "$ac_try_echo") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_cxx_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_cv_header_stdc=yes
7660 else
7661 $as_echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 ac_cv_header_stdc=no
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 if test $ac_cv_header_stdc = yes; then
7670 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 #include <string.h>
7679 _ACEOF
7680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7681 $EGREP "memchr" >/dev/null 2>&1; then
7683 else
7684 ac_cv_header_stdc=no
7686 rm -f conftest*
7690 if test $ac_cv_header_stdc = yes; then
7691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 #include <stdlib.h>
7700 _ACEOF
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702 $EGREP "free" >/dev/null 2>&1; then
7704 else
7705 ac_cv_header_stdc=no
7707 rm -f conftest*
7711 if test $ac_cv_header_stdc = yes; then
7712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7713 if test "$cross_compiling" = yes; then
7715 else
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 #include <ctype.h>
7723 #include <stdlib.h>
7724 #if ((' ' & 0x0FF) == 0x020)
7725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7727 #else
7728 # define ISLOWER(c) \
7729 (('a' <= (c) && (c) <= 'i') \
7730 || ('j' <= (c) && (c) <= 'r') \
7731 || ('s' <= (c) && (c) <= 'z'))
7732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7733 #endif
7735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7737 main ()
7739 int i;
7740 for (i = 0; i < 256; i++)
7741 if (XOR (islower (i), ISLOWER (i))
7742 || toupper (i) != TOUPPER (i))
7743 return 2;
7744 return 0;
7746 _ACEOF
7747 rm -f conftest$ac_exeext
7748 if { (ac_try="$ac_link"
7749 case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752 esac
7753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7754 $as_echo "$ac_try_echo") >&5
7755 (eval "$ac_link") 2>&5
7756 ac_status=$?
7757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7759 { (case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7764 $as_echo "$ac_try_echo") >&5
7765 (eval "$ac_try") 2>&5
7766 ac_status=$?
7767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7770 else
7771 $as_echo "$as_me: program exited with status $ac_status" >&5
7772 $as_echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ( exit $ac_status )
7776 ac_cv_header_stdc=no
7778 rm -rf conftest.dSYM
7779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7786 $as_echo "$ac_cv_header_stdc" >&6; }
7787 if test $ac_cv_header_stdc = yes; then
7789 cat >>confdefs.h <<\_ACEOF
7790 #define STDC_HEADERS 1
7791 _ACEOF
7795 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7805 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7806 inttypes.h stdint.h unistd.h
7808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7809 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7810 $as_echo_n "checking for $ac_header... " >&6; }
7811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h. */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 $ac_includes_default
7822 #include <$ac_header>
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (ac_try="$ac_compile"
7826 case "(($ac_try" in
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7829 esac
7830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7831 $as_echo "$ac_try_echo") >&5
7832 (eval "$ac_compile") 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && {
7839 test -z "$ac_cxx_werror_flag" ||
7840 test ! -s conftest.err
7841 } && test -s conftest.$ac_objext; then
7842 eval "$as_ac_Header=yes"
7843 else
7844 $as_echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 eval "$as_ac_Header=no"
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 ac_res=`eval 'as_val=${'$as_ac_Header'}
7853 $as_echo "$as_val"'`
7854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7855 $as_echo "$ac_res" >&6; }
7856 as_val=`eval 'as_val=${'$as_ac_Header'}
7857 $as_echo "$as_val"'`
7858 if test "x$as_val" = x""yes; then
7859 cat >>confdefs.h <<_ACEOF
7860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7861 _ACEOF
7865 done
7869 for ac_header in SDL.h
7871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 $as_echo_n "checking for $ac_header... " >&6; }
7875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7876 $as_echo_n "(cached) " >&6
7878 ac_res=`eval 'as_val=${'$as_ac_Header'}
7879 $as_echo "$as_val"'`
7880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7881 $as_echo "$ac_res" >&6; }
7882 else
7883 # Is the header compilable?
7884 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7885 $as_echo_n "checking $ac_header usability... " >&6; }
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 $ac_includes_default
7893 #include <$ac_header>
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900 esac
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_cxx_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 ac_header_compiler=yes
7914 else
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 ac_header_compiler=no
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7923 $as_echo "$ac_header_compiler" >&6; }
7925 # Is the header present?
7926 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7927 $as_echo_n "checking $ac_header presence... " >&6; }
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 #include <$ac_header>
7935 _ACEOF
7936 if { (ac_try="$ac_cpp conftest.$ac_ext"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } >/dev/null && {
7950 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7951 test ! -s conftest.err
7952 }; then
7953 ac_header_preproc=yes
7954 else
7955 $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_header_preproc=no
7961 rm -f conftest.err conftest.$ac_ext
7962 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7963 $as_echo "$ac_header_preproc" >&6; }
7965 # So? What about this header?
7966 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7967 yes:no: )
7968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7969 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7972 ac_header_preproc=yes
7974 no:yes:* )
7975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7976 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7978 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7980 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7982 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7984 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7986 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7989 esac
7990 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7991 $as_echo_n "checking for $ac_header... " >&6; }
7992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7993 $as_echo_n "(cached) " >&6
7994 else
7995 eval "$as_ac_Header=\$ac_header_preproc"
7997 ac_res=`eval 'as_val=${'$as_ac_Header'}
7998 $as_echo "$as_val"'`
7999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8000 $as_echo "$ac_res" >&6; }
8003 as_val=`eval 'as_val=${'$as_ac_Header'}
8004 $as_echo "$as_val"'`
8005 if test "x$as_val" = x""yes; then
8006 cat >>confdefs.h <<_ACEOF
8007 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8008 _ACEOF
8010 else
8011 { { $as_echo "$as_me:$LINENO: error: SDL include files not found. The SDL development package is needed." >&5
8012 $as_echo "$as_me: error: SDL include files not found. The SDL development package is needed." >&2;}
8013 { (exit 1); exit 1; }; }
8016 done
8020 for ac_header in SDL_image.h
8022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8025 $as_echo_n "checking for $ac_header... " >&6; }
8026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8027 $as_echo_n "(cached) " >&6
8029 ac_res=`eval 'as_val=${'$as_ac_Header'}
8030 $as_echo "$as_val"'`
8031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8032 $as_echo "$ac_res" >&6; }
8033 else
8034 # Is the header compilable?
8035 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8036 $as_echo_n "checking $ac_header usability... " >&6; }
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 $ac_includes_default
8044 #include <$ac_header>
8045 _ACEOF
8046 rm -f conftest.$ac_objext
8047 if { (ac_try="$ac_compile"
8048 case "(($ac_try" in
8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8051 esac
8052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8053 $as_echo "$ac_try_echo") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_cxx_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_header_compiler=yes
8065 else
8066 $as_echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_header_compiler=no
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8074 $as_echo "$ac_header_compiler" >&6; }
8076 # Is the header present?
8077 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8078 $as_echo_n "checking $ac_header presence... " >&6; }
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 #include <$ac_header>
8086 _ACEOF
8087 if { (ac_try="$ac_cpp conftest.$ac_ext"
8088 case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091 esac
8092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8093 $as_echo "$ac_try_echo") >&5
8094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } >/dev/null && {
8101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8102 test ! -s conftest.err
8103 }; then
8104 ac_header_preproc=yes
8105 else
8106 $as_echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8109 ac_header_preproc=no
8112 rm -f conftest.err conftest.$ac_ext
8113 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8114 $as_echo "$ac_header_preproc" >&6; }
8116 # So? What about this header?
8117 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8118 yes:no: )
8119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8120 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8123 ac_header_preproc=yes
8125 no:yes:* )
8126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8127 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8129 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8131 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8133 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8135 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8137 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8140 esac
8141 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8142 $as_echo_n "checking for $ac_header... " >&6; }
8143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8144 $as_echo_n "(cached) " >&6
8145 else
8146 eval "$as_ac_Header=\$ac_header_preproc"
8148 ac_res=`eval 'as_val=${'$as_ac_Header'}
8149 $as_echo "$as_val"'`
8150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8151 $as_echo "$ac_res" >&6; }
8154 as_val=`eval 'as_val=${'$as_ac_Header'}
8155 $as_echo "$as_val"'`
8156 if test "x$as_val" = x""yes; then
8157 cat >>confdefs.h <<_ACEOF
8158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8159 _ACEOF
8161 else
8162 { { $as_echo "$as_me:$LINENO: error: SDL_image include files not found. The SDL_image development package is needed." >&5
8163 $as_echo "$as_me: error: SDL_image include files not found. The SDL_image development package is needed." >&2;}
8164 { (exit 1); exit 1; }; }
8167 done
8171 for ac_header in SDL_mixer.h
8173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8176 $as_echo_n "checking for $ac_header... " >&6; }
8177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8178 $as_echo_n "(cached) " >&6
8180 ac_res=`eval 'as_val=${'$as_ac_Header'}
8181 $as_echo "$as_val"'`
8182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8183 $as_echo "$ac_res" >&6; }
8184 else
8185 # Is the header compilable?
8186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8187 $as_echo_n "checking $ac_header usability... " >&6; }
8188 cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h. */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 $ac_includes_default
8195 #include <$ac_header>
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8199 case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8202 esac
8203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8204 $as_echo "$ac_try_echo") >&5
8205 (eval "$ac_compile") 2>conftest.er1
8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } && {
8212 test -z "$ac_cxx_werror_flag" ||
8213 test ! -s conftest.err
8214 } && test -s conftest.$ac_objext; then
8215 ac_header_compiler=yes
8216 else
8217 $as_echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8220 ac_header_compiler=no
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8225 $as_echo "$ac_header_compiler" >&6; }
8227 # Is the header present?
8228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8229 $as_echo_n "checking $ac_header presence... " >&6; }
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 #include <$ac_header>
8237 _ACEOF
8238 if { (ac_try="$ac_cpp conftest.$ac_ext"
8239 case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242 esac
8243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8244 $as_echo "$ac_try_echo") >&5
8245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } >/dev/null && {
8252 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8253 test ! -s conftest.err
8254 }; then
8255 ac_header_preproc=yes
8256 else
8257 $as_echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 ac_header_preproc=no
8263 rm -f conftest.err conftest.$ac_ext
8264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8265 $as_echo "$ac_header_preproc" >&6; }
8267 # So? What about this header?
8268 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8269 yes:no: )
8270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8274 ac_header_preproc=yes
8276 no:yes:* )
8277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8291 esac
8292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8293 $as_echo_n "checking for $ac_header... " >&6; }
8294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8295 $as_echo_n "(cached) " >&6
8296 else
8297 eval "$as_ac_Header=\$ac_header_preproc"
8299 ac_res=`eval 'as_val=${'$as_ac_Header'}
8300 $as_echo "$as_val"'`
8301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8302 $as_echo "$ac_res" >&6; }
8305 as_val=`eval 'as_val=${'$as_ac_Header'}
8306 $as_echo "$as_val"'`
8307 if test "x$as_val" = x""yes; then
8308 cat >>confdefs.h <<_ACEOF
8309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8310 _ACEOF
8312 else
8313 { { $as_echo "$as_me:$LINENO: error: SDL_mixer include files not found. The SDL_mixer development package is needed." >&5
8314 $as_echo "$as_me: error: SDL_mixer include files not found. The SDL_mixer development package is needed." >&2;}
8315 { (exit 1); exit 1; }; }
8318 done
8322 for ac_header in SDL_ttf.h
8324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8327 $as_echo_n "checking for $ac_header... " >&6; }
8328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8329 $as_echo_n "(cached) " >&6
8331 ac_res=`eval 'as_val=${'$as_ac_Header'}
8332 $as_echo "$as_val"'`
8333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8334 $as_echo "$ac_res" >&6; }
8335 else
8336 # Is the header compilable?
8337 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8338 $as_echo_n "checking $ac_header usability... " >&6; }
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 #include <$ac_header>
8347 _ACEOF
8348 rm -f conftest.$ac_objext
8349 if { (ac_try="$ac_compile"
8350 case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353 esac
8354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8355 $as_echo "$ac_try_echo") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_cxx_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.$ac_objext; then
8366 ac_header_compiler=yes
8367 else
8368 $as_echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_header_compiler=no
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8376 $as_echo "$ac_header_compiler" >&6; }
8378 # Is the header present?
8379 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8380 $as_echo_n "checking $ac_header presence... " >&6; }
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 #include <$ac_header>
8388 _ACEOF
8389 if { (ac_try="$ac_cpp conftest.$ac_ext"
8390 case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393 esac
8394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8395 $as_echo "$ac_try_echo") >&5
8396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } >/dev/null && {
8403 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8404 test ! -s conftest.err
8405 }; then
8406 ac_header_preproc=yes
8407 else
8408 $as_echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_header_preproc=no
8414 rm -f conftest.err conftest.$ac_ext
8415 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8416 $as_echo "$ac_header_preproc" >&6; }
8418 # So? What about this header?
8419 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8420 yes:no: )
8421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8422 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8425 ac_header_preproc=yes
8427 no:yes:* )
8428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8429 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8431 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8433 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8435 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8439 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8442 esac
8443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8444 $as_echo_n "checking for $ac_header... " >&6; }
8445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8446 $as_echo_n "(cached) " >&6
8447 else
8448 eval "$as_ac_Header=\$ac_header_preproc"
8450 ac_res=`eval 'as_val=${'$as_ac_Header'}
8451 $as_echo "$as_val"'`
8452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8453 $as_echo "$ac_res" >&6; }
8456 as_val=`eval 'as_val=${'$as_ac_Header'}
8457 $as_echo "$as_val"'`
8458 if test "x$as_val" = x""yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8461 _ACEOF
8463 else
8464 { { $as_echo "$as_me:$LINENO: error: SDL_ttf include files not found. The SDL_ttf development package is needed." >&5
8465 $as_echo "$as_me: error: SDL_ttf include files not found. The SDL_ttf development package is needed." >&2;}
8466 { (exit 1); exit 1; }; }
8469 done
8472 ### Option to enable debug build ###
8473 # Check whether --enable-debug was given.
8474 if test "${enable_debug+set}" = set; then
8475 enableval=$enable_debug; CPPFLAGS="$CPPFLAGS -D_DEBUG=1"
8479 ### Allow running in-place for development ###
8480 # Check whether --enable-runinplace was given.
8481 if test "${enable_runinplace+set}" = set; then
8482 enableval=$enable_runinplace; runinplace=yes
8485 if test "$runinplace" = yes; then
8486 RUNINPLACE_TRUE=
8487 RUNINPLACE_FALSE='#'
8488 else
8489 RUNINPLACE_TRUE='#'
8490 RUNINPLACE_FALSE=
8494 ### Create files ###
8496 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile"
8498 cat >confcache <<\_ACEOF
8499 # This file is a shell script that caches the results of configure
8500 # tests run on this system so they can be shared between configure
8501 # scripts and configure runs, see configure's option --config-cache.
8502 # It is not useful on other systems. If it contains results you don't
8503 # want to keep, you may remove or edit it.
8505 # config.status only pays attention to the cache file if you give it
8506 # the --recheck option to rerun configure.
8508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8510 # following values.
8512 _ACEOF
8514 # The following way of writing the cache mishandles newlines in values,
8515 # but we know of no workaround that is simple, portable, and efficient.
8516 # So, we kill variables containing newlines.
8517 # Ultrix sh set writes to stderr and can't be redirected directly,
8518 # and sets the high bit in the cache file unless we assign to the vars.
8520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8521 eval ac_val=\$$ac_var
8522 case $ac_val in #(
8523 *${as_nl}*)
8524 case $ac_var in #(
8525 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8527 esac
8528 case $ac_var in #(
8529 _ | IFS | as_nl) ;; #(
8530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8531 *) $as_unset $ac_var ;;
8532 esac ;;
8533 esac
8534 done
8536 (set) 2>&1 |
8537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8538 *${as_nl}ac_space=\ *)
8539 # `set' does not quote correctly, so add quotes (double-quote
8540 # substitution turns \\\\ into \\, and sed turns \\ into \).
8541 sed -n \
8542 "s/'/'\\\\''/g;
8543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8544 ;; #(
8546 # `set' quotes correctly as required by POSIX, so do not add quotes.
8547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8549 esac |
8550 sort
8552 sed '
8553 /^ac_cv_env_/b end
8554 t clear
8555 :clear
8556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8557 t end
8558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8559 :end' >>confcache
8560 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8561 if test -w "$cache_file"; then
8562 test "x$cache_file" != "x/dev/null" &&
8563 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8564 $as_echo "$as_me: updating cache $cache_file" >&6;}
8565 cat confcache >$cache_file
8566 else
8567 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8568 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8571 rm -f confcache
8573 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8574 # Let make expand exec_prefix.
8575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8577 DEFS=-DHAVE_CONFIG_H
8579 ac_libobjs=
8580 ac_ltlibobjs=
8581 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8582 # 1. Remove the extension, and $U if already installed.
8583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8586 # will be set to the directory where LIBOBJS objects are built.
8587 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8588 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8589 done
8590 LIBOBJS=$ac_libobjs
8592 LTLIBOBJS=$ac_ltlibobjs
8595 if test -n "$EXEEXT"; then
8596 am__EXEEXT_TRUE=
8597 am__EXEEXT_FALSE='#'
8598 else
8599 am__EXEEXT_TRUE='#'
8600 am__EXEEXT_FALSE=
8603 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8604 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8605 Usually this means the macro was only invoked conditionally." >&5
8606 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
8607 Usually this means the macro was only invoked conditionally." >&2;}
8608 { (exit 1); exit 1; }; }
8610 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8611 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8612 Usually this means the macro was only invoked conditionally." >&5
8613 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8614 Usually this means the macro was only invoked conditionally." >&2;}
8615 { (exit 1); exit 1; }; }
8617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8618 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8619 Usually this means the macro was only invoked conditionally." >&5
8620 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8621 Usually this means the macro was only invoked conditionally." >&2;}
8622 { (exit 1); exit 1; }; }
8624 if test -z "${RUNINPLACE_TRUE}" && test -z "${RUNINPLACE_FALSE}"; then
8625 { { $as_echo "$as_me:$LINENO: error: conditional \"RUNINPLACE\" was never defined.
8626 Usually this means the macro was only invoked conditionally." >&5
8627 $as_echo "$as_me: error: conditional \"RUNINPLACE\" was never defined.
8628 Usually this means the macro was only invoked conditionally." >&2;}
8629 { (exit 1); exit 1; }; }
8632 : ${CONFIG_STATUS=./config.status}
8633 ac_write_fail=0
8634 ac_clean_files_save=$ac_clean_files
8635 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8636 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8637 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8638 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8639 #! $SHELL
8640 # Generated by $as_me.
8641 # Run this file to recreate the current configuration.
8642 # Compiler output produced by configure, useful for debugging
8643 # configure, is in config.log if it exists.
8645 debug=false
8646 ac_cs_recheck=false
8647 ac_cs_silent=false
8648 SHELL=\${CONFIG_SHELL-$SHELL}
8649 _ACEOF
8651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8652 ## --------------------- ##
8653 ## M4sh Initialization. ##
8654 ## --------------------- ##
8656 # Be more Bourne compatible
8657 DUALCASE=1; export DUALCASE # for MKS sh
8658 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8659 emulate sh
8660 NULLCMD=:
8661 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8662 # is contrary to our usage. Disable this feature.
8663 alias -g '${1+"$@"}'='"$@"'
8664 setopt NO_GLOB_SUBST
8665 else
8666 case `(set -o) 2>/dev/null` in
8667 *posix*) set -o posix ;;
8668 esac
8675 # PATH needs CR
8676 # Avoid depending upon Character Ranges.
8677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8680 as_cr_digits='0123456789'
8681 as_cr_alnum=$as_cr_Letters$as_cr_digits
8683 as_nl='
8685 export as_nl
8686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8690 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8691 as_echo='printf %s\n'
8692 as_echo_n='printf %s'
8693 else
8694 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8695 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8696 as_echo_n='/usr/ucb/echo -n'
8697 else
8698 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8699 as_echo_n_body='eval
8700 arg=$1;
8701 case $arg in
8702 *"$as_nl"*)
8703 expr "X$arg" : "X\\(.*\\)$as_nl";
8704 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8705 esac;
8706 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8708 export as_echo_n_body
8709 as_echo_n='sh -c $as_echo_n_body as_echo'
8711 export as_echo_body
8712 as_echo='sh -c $as_echo_body as_echo'
8715 # The user is always right.
8716 if test "${PATH_SEPARATOR+set}" != set; then
8717 PATH_SEPARATOR=:
8718 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8719 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8720 PATH_SEPARATOR=';'
8724 # Support unset when possible.
8725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8726 as_unset=unset
8727 else
8728 as_unset=false
8732 # IFS
8733 # We need space, tab and new line, in precisely that order. Quoting is
8734 # there to prevent editors from complaining about space-tab.
8735 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8736 # splitting by setting IFS to empty value.)
8737 IFS=" "" $as_nl"
8739 # Find who we are. Look in the path if we contain no directory separator.
8740 case $0 in
8741 *[\\/]* ) as_myself=$0 ;;
8742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8748 done
8749 IFS=$as_save_IFS
8752 esac
8753 # We did not find ourselves, most probably we were run as `sh COMMAND'
8754 # in which case we are not to be found in the path.
8755 if test "x$as_myself" = x; then
8756 as_myself=$0
8758 if test ! -f "$as_myself"; then
8759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8760 { (exit 1); exit 1; }
8763 # Work around bugs in pre-3.0 UWIN ksh.
8764 for as_var in ENV MAIL MAILPATH
8765 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8766 done
8767 PS1='$ '
8768 PS2='> '
8769 PS4='+ '
8771 # NLS nuisances.
8772 LC_ALL=C
8773 export LC_ALL
8774 LANGUAGE=C
8775 export LANGUAGE
8777 # Required to use basename.
8778 if expr a : '\(a\)' >/dev/null 2>&1 &&
8779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8780 as_expr=expr
8781 else
8782 as_expr=false
8785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8786 as_basename=basename
8787 else
8788 as_basename=false
8792 # Name of the executable.
8793 as_me=`$as_basename -- "$0" ||
8794 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8795 X"$0" : 'X\(//\)$' \| \
8796 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8797 $as_echo X/"$0" |
8798 sed '/^.*\/\([^/][^/]*\)\/*$/{
8799 s//\1/
8802 /^X\/\(\/\/\)$/{
8803 s//\1/
8806 /^X\/\(\/\).*/{
8807 s//\1/
8810 s/.*/./; q'`
8812 # CDPATH.
8813 $as_unset CDPATH
8817 as_lineno_1=$LINENO
8818 as_lineno_2=$LINENO
8819 test "x$as_lineno_1" != "x$as_lineno_2" &&
8820 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8822 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8823 # uniformly replaced by the line number. The first 'sed' inserts a
8824 # line-number line after each line using $LINENO; the second 'sed'
8825 # does the real work. The second script uses 'N' to pair each
8826 # line-number line with the line containing $LINENO, and appends
8827 # trailing '-' during substitution so that $LINENO is not a special
8828 # case at line end.
8829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8830 # scripts with optimization help from Paolo Bonzini. Blame Lee
8831 # E. McMahon (1931-1989) for sed's syntax. :-)
8832 sed -n '
8834 /[$]LINENO/=
8835 ' <$as_myself |
8836 sed '
8837 s/[$]LINENO.*/&-/
8838 t lineno
8840 :lineno
8842 :loop
8843 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8844 t loop
8845 s/-\n.*//
8846 ' >$as_me.lineno &&
8847 chmod +x "$as_me.lineno" ||
8848 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8849 { (exit 1); exit 1; }; }
8851 # Don't try to exec as it changes $[0], causing all sort of problems
8852 # (the dirname of $[0] is not the place where we might find the
8853 # original and so on. Autoconf is especially sensitive to this).
8854 . "./$as_me.lineno"
8855 # Exit status is that of the last command.
8856 exit
8860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8861 as_dirname=dirname
8862 else
8863 as_dirname=false
8866 ECHO_C= ECHO_N= ECHO_T=
8867 case `echo -n x` in
8868 -n*)
8869 case `echo 'x\c'` in
8870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8871 *) ECHO_C='\c';;
8872 esac;;
8874 ECHO_N='-n';;
8875 esac
8876 if expr a : '\(a\)' >/dev/null 2>&1 &&
8877 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8878 as_expr=expr
8879 else
8880 as_expr=false
8883 rm -f conf$$ conf$$.exe conf$$.file
8884 if test -d conf$$.dir; then
8885 rm -f conf$$.dir/conf$$.file
8886 else
8887 rm -f conf$$.dir
8888 mkdir conf$$.dir 2>/dev/null
8890 if (echo >conf$$.file) 2>/dev/null; then
8891 if ln -s conf$$.file conf$$ 2>/dev/null; then
8892 as_ln_s='ln -s'
8893 # ... but there are two gotchas:
8894 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8895 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8896 # In both cases, we have to default to `cp -p'.
8897 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8898 as_ln_s='cp -p'
8899 elif ln conf$$.file conf$$ 2>/dev/null; then
8900 as_ln_s=ln
8901 else
8902 as_ln_s='cp -p'
8904 else
8905 as_ln_s='cp -p'
8907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8908 rmdir conf$$.dir 2>/dev/null
8910 if mkdir -p . 2>/dev/null; then
8911 as_mkdir_p=:
8912 else
8913 test -d ./-p && rmdir ./-p
8914 as_mkdir_p=false
8917 if test -x / >/dev/null 2>&1; then
8918 as_test_x='test -x'
8919 else
8920 if ls -dL / >/dev/null 2>&1; then
8921 as_ls_L_option=L
8922 else
8923 as_ls_L_option=
8925 as_test_x='
8926 eval sh -c '\''
8927 if test -d "$1"; then
8928 test -d "$1/.";
8929 else
8930 case $1 in
8931 -*)set "./$1";;
8932 esac;
8933 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8934 ???[sx]*):;;*)false;;esac;fi
8935 '\'' sh
8938 as_executable_p=$as_test_x
8940 # Sed expression to map a string onto a valid CPP name.
8941 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8943 # Sed expression to map a string onto a valid variable name.
8944 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8947 exec 6>&1
8949 # Save the log message, to keep $[0] and so on meaningful, and to
8950 # report actual input values of CONFIG_FILES etc. instead of their
8951 # values after options handling.
8952 ac_log="
8953 This file was extended by smc $as_me 1.9, which was
8954 generated by GNU Autoconf 2.63. Invocation command line was
8956 CONFIG_FILES = $CONFIG_FILES
8957 CONFIG_HEADERS = $CONFIG_HEADERS
8958 CONFIG_LINKS = $CONFIG_LINKS
8959 CONFIG_COMMANDS = $CONFIG_COMMANDS
8960 $ $0 $@
8962 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8965 _ACEOF
8967 case $ac_config_files in *"
8968 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8969 esac
8971 case $ac_config_headers in *"
8972 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8973 esac
8976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8977 # Files that config.status was made for.
8978 config_files="$ac_config_files"
8979 config_headers="$ac_config_headers"
8980 config_commands="$ac_config_commands"
8982 _ACEOF
8984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8985 ac_cs_usage="\
8986 \`$as_me' instantiates files from templates according to the
8987 current configuration.
8989 Usage: $0 [OPTION]... [FILE]...
8991 -h, --help print this help, then exit
8992 -V, --version print version number and configuration settings, then exit
8993 -q, --quiet, --silent
8994 do not print progress messages
8995 -d, --debug don't remove temporary files
8996 --recheck update $as_me by reconfiguring in the same conditions
8997 --file=FILE[:TEMPLATE]
8998 instantiate the configuration file FILE
8999 --header=FILE[:TEMPLATE]
9000 instantiate the configuration header FILE
9002 Configuration files:
9003 $config_files
9005 Configuration headers:
9006 $config_headers
9008 Configuration commands:
9009 $config_commands
9011 Report bugs to <bug-autoconf@gnu.org>."
9013 _ACEOF
9014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9015 ac_cs_version="\\
9016 smc config.status 1.9
9017 configured by $0, generated by GNU Autoconf 2.63,
9018 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9020 Copyright (C) 2008 Free Software Foundation, Inc.
9021 This config.status script is free software; the Free Software Foundation
9022 gives unlimited permission to copy, distribute and modify it."
9024 ac_pwd='$ac_pwd'
9025 srcdir='$srcdir'
9026 INSTALL='$INSTALL'
9027 MKDIR_P='$MKDIR_P'
9028 AWK='$AWK'
9029 test -n "\$AWK" || AWK=awk
9030 _ACEOF
9032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9033 # The default lists apply if the user does not specify any file.
9034 ac_need_defaults=:
9035 while test $# != 0
9037 case $1 in
9038 --*=*)
9039 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9040 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9041 ac_shift=:
9044 ac_option=$1
9045 ac_optarg=$2
9046 ac_shift=shift
9048 esac
9050 case $ac_option in
9051 # Handling of the options.
9052 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9053 ac_cs_recheck=: ;;
9054 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9055 $as_echo "$ac_cs_version"; exit ;;
9056 --debug | --debu | --deb | --de | --d | -d )
9057 debug=: ;;
9058 --file | --fil | --fi | --f )
9059 $ac_shift
9060 case $ac_optarg in
9061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9062 esac
9063 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9064 ac_need_defaults=false;;
9065 --header | --heade | --head | --hea )
9066 $ac_shift
9067 case $ac_optarg in
9068 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9069 esac
9070 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9071 ac_need_defaults=false;;
9072 --he | --h)
9073 # Conflict between --help and --header
9074 { $as_echo "$as_me: error: ambiguous option: $1
9075 Try \`$0 --help' for more information." >&2
9076 { (exit 1); exit 1; }; };;
9077 --help | --hel | -h )
9078 $as_echo "$ac_cs_usage"; exit ;;
9079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9081 ac_cs_silent=: ;;
9083 # This is an error.
9084 -*) { $as_echo "$as_me: error: unrecognized option: $1
9085 Try \`$0 --help' for more information." >&2
9086 { (exit 1); exit 1; }; } ;;
9088 *) ac_config_targets="$ac_config_targets $1"
9089 ac_need_defaults=false ;;
9091 esac
9092 shift
9093 done
9095 ac_configure_extra_args=
9097 if $ac_cs_silent; then
9098 exec 6>/dev/null
9099 ac_configure_extra_args="$ac_configure_extra_args --silent"
9102 _ACEOF
9103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9104 if \$ac_cs_recheck; then
9105 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9106 shift
9107 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9108 CONFIG_SHELL='$SHELL'
9109 export CONFIG_SHELL
9110 exec "\$@"
9113 _ACEOF
9114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9115 exec 5>>config.log
9117 echo
9118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9119 ## Running $as_me. ##
9120 _ASBOX
9121 $as_echo "$ac_log"
9122 } >&5
9124 _ACEOF
9125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9127 # INIT-COMMANDS
9129 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9130 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9131 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9132 # from automake < 1.5.
9133 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9134 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9135 LINGUAS="${LINGUAS-%UNSET%}"
9138 _ACEOF
9140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9142 # Handling of arguments.
9143 for ac_config_target in $ac_config_targets
9145 case $ac_config_target in
9146 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9147 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9148 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9150 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9151 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
9153 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9154 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9155 { (exit 1); exit 1; }; };;
9156 esac
9157 done
9160 # If the user did not use the arguments to specify the items to instantiate,
9161 # then the envvar interface is used. Set only those that are not.
9162 # We use the long form for the default assignment because of an extremely
9163 # bizarre bug on SunOS 4.1.3.
9164 if $ac_need_defaults; then
9165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9170 # Have a temporary directory for convenience. Make it in the build tree
9171 # simply because there is no reason against having it here, and in addition,
9172 # creating and moving files from /tmp can sometimes cause problems.
9173 # Hook for its removal unless debugging.
9174 # Note that there is a small window in which the directory will not be cleaned:
9175 # after its creation but before its name has been assigned to `$tmp'.
9176 $debug ||
9178 tmp=
9179 trap 'exit_status=$?
9180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9182 trap '{ (exit 1); exit 1; }' 1 2 13 15
9184 # Create a (secure) tmp directory for tmp files.
9187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9188 test -n "$tmp" && test -d "$tmp"
9189 } ||
9191 tmp=./conf$$-$RANDOM
9192 (umask 077 && mkdir "$tmp")
9193 } ||
9195 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9196 { (exit 1); exit 1; }
9199 # Set up the scripts for CONFIG_FILES section.
9200 # No need to generate them if there are no CONFIG_FILES.
9201 # This happens for instance with `./config.status config.h'.
9202 if test -n "$CONFIG_FILES"; then
9205 ac_cr=' '
9206 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9207 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9208 ac_cs_awk_cr='\\r'
9209 else
9210 ac_cs_awk_cr=$ac_cr
9213 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9214 _ACEOF
9218 echo "cat >conf$$subs.awk <<_ACEOF" &&
9219 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9220 echo "_ACEOF"
9221 } >conf$$subs.sh ||
9222 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9223 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9224 { (exit 1); exit 1; }; }
9225 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9226 ac_delim='%!_!# '
9227 for ac_last_try in false false false false false :; do
9228 . ./conf$$subs.sh ||
9229 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9230 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9231 { (exit 1); exit 1; }; }
9233 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9234 if test $ac_delim_n = $ac_delim_num; then
9235 break
9236 elif $ac_last_try; then
9237 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9238 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9239 { (exit 1); exit 1; }; }
9240 else
9241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9243 done
9244 rm -f conf$$subs.sh
9246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9247 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9248 _ACEOF
9249 sed -n '
9251 s/^/S["/; s/!.*/"]=/
9254 s/^[^!]*!//
9255 :repl
9256 t repl
9257 s/'"$ac_delim"'$//
9258 t delim
9261 s/\(.\{148\}\).*/\1/
9262 t more1
9263 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9266 b repl
9267 :more1
9268 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9271 s/.\{148\}//
9272 t nl
9273 :delim
9275 s/\(.\{148\}\).*/\1/
9276 t more2
9277 s/["\\]/\\&/g; s/^/"/; s/$/"/
9280 :more2
9281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9284 s/.\{148\}//
9285 t delim
9286 ' <conf$$subs.awk | sed '
9287 /^[^""]/{
9289 s/\n//
9291 ' >>$CONFIG_STATUS || ac_write_fail=1
9292 rm -f conf$$subs.awk
9293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9294 _ACAWK
9295 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9296 for (key in S) S_is_set[key] = 1
9297 FS = "\a"
9301 line = $ 0
9302 nfields = split(line, field, "@")
9303 substed = 0
9304 len = length(field[1])
9305 for (i = 2; i < nfields; i++) {
9306 key = field[i]
9307 keylen = length(key)
9308 if (S_is_set[key]) {
9309 value = S[key]
9310 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9311 len += length(value) + length(field[++i])
9312 substed = 1
9313 } else
9314 len += 1 + keylen
9317 print line
9320 _ACAWK
9321 _ACEOF
9322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9323 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9324 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9325 else
9327 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9328 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9329 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9330 { (exit 1); exit 1; }; }
9331 _ACEOF
9333 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9334 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9335 # trailing colons and then remove the whole line if VPATH becomes empty
9336 # (actually we leave an empty line to preserve line numbers).
9337 if test "x$srcdir" = x.; then
9338 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9339 s/:*\$(srcdir):*/:/
9340 s/:*\${srcdir}:*/:/
9341 s/:*@srcdir@:*/:/
9342 s/^\([^=]*=[ ]*\):*/\1/
9343 s/:*$//
9344 s/^[^=]*=[ ]*$//
9348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9349 fi # test -n "$CONFIG_FILES"
9351 # Set up the scripts for CONFIG_HEADERS section.
9352 # No need to generate them if there are no CONFIG_HEADERS.
9353 # This happens for instance with `./config.status Makefile'.
9354 if test -n "$CONFIG_HEADERS"; then
9355 cat >"$tmp/defines.awk" <<\_ACAWK ||
9356 BEGIN {
9357 _ACEOF
9359 # Transform confdefs.h into an awk script `defines.awk', embedded as
9360 # here-document in config.status, that substitutes the proper values into
9361 # config.h.in to produce config.h.
9363 # Create a delimiter string that does not exist in confdefs.h, to ease
9364 # handling of long lines.
9365 ac_delim='%!_!# '
9366 for ac_last_try in false false :; do
9367 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9368 if test -z "$ac_t"; then
9369 break
9370 elif $ac_last_try; then
9371 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9372 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9373 { (exit 1); exit 1; }; }
9374 else
9375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9377 done
9379 # For the awk script, D is an array of macro values keyed by name,
9380 # likewise P contains macro parameters if any. Preserve backslash
9381 # newline sequences.
9383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9384 sed -n '
9385 s/.\{148\}/&'"$ac_delim"'/g
9386 t rset
9387 :rset
9388 s/^[ ]*#[ ]*define[ ][ ]*/ /
9389 t def
9391 :def
9392 s/\\$//
9393 t bsnl
9394 s/["\\]/\\&/g
9395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9396 D["\1"]=" \3"/p
9397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9399 :bsnl
9400 s/["\\]/\\&/g
9401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9402 D["\1"]=" \3\\\\\\n"\\/p
9403 t cont
9404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9405 t cont
9407 :cont
9409 s/.\{148\}/&'"$ac_delim"'/g
9410 t clear
9411 :clear
9412 s/\\$//
9413 t bsnlc
9414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9416 :bsnlc
9417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9418 b cont
9419 ' <confdefs.h | sed '
9420 s/'"$ac_delim"'/"\\\
9421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9424 for (key in D) D_is_set[key] = 1
9425 FS = "\a"
9427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9428 line = \$ 0
9429 split(line, arg, " ")
9430 if (arg[1] == "#") {
9431 defundef = arg[2]
9432 mac1 = arg[3]
9433 } else {
9434 defundef = substr(arg[1], 2)
9435 mac1 = arg[2]
9437 split(mac1, mac2, "(") #)
9438 macro = mac2[1]
9439 prefix = substr(line, 1, index(line, defundef) - 1)
9440 if (D_is_set[macro]) {
9441 # Preserve the white space surrounding the "#".
9442 print prefix "define", macro P[macro] D[macro]
9443 next
9444 } else {
9445 # Replace #undef with comments. This is necessary, for example,
9446 # in the case of _POSIX_SOURCE, which is predefined and required
9447 # on some systems where configure will not decide to define it.
9448 if (defundef == "undef") {
9449 print "/*", prefix defundef, macro, "*/"
9450 next
9454 { print }
9455 _ACAWK
9456 _ACEOF
9457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9458 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9459 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9460 { (exit 1); exit 1; }; }
9461 fi # test -n "$CONFIG_HEADERS"
9464 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9465 shift
9466 for ac_tag
9468 case $ac_tag in
9469 :[FHLC]) ac_mode=$ac_tag; continue;;
9470 esac
9471 case $ac_mode$ac_tag in
9472 :[FHL]*:*);;
9473 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9474 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9475 { (exit 1); exit 1; }; };;
9476 :[FH]-) ac_tag=-:-;;
9477 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9478 esac
9479 ac_save_IFS=$IFS
9480 IFS=:
9481 set x $ac_tag
9482 IFS=$ac_save_IFS
9483 shift
9484 ac_file=$1
9485 shift
9487 case $ac_mode in
9488 :L) ac_source=$1;;
9489 :[FH])
9490 ac_file_inputs=
9491 for ac_f
9493 case $ac_f in
9494 -) ac_f="$tmp/stdin";;
9495 *) # Look for the file first in the build tree, then in the source tree
9496 # (if the path is not absolute). The absolute path cannot be DOS-style,
9497 # because $ac_f cannot contain `:'.
9498 test -f "$ac_f" ||
9499 case $ac_f in
9500 [\\/$]*) false;;
9501 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9502 esac ||
9503 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9504 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9505 { (exit 1); exit 1; }; };;
9506 esac
9507 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9508 ac_file_inputs="$ac_file_inputs '$ac_f'"
9509 done
9511 # Let's still pretend it is `configure' which instantiates (i.e., don't
9512 # use $as_me), people would be surprised to read:
9513 # /* config.h. Generated by config.status. */
9514 configure_input='Generated from '`
9515 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9516 `' by configure.'
9517 if test x"$ac_file" != x-; then
9518 configure_input="$ac_file. $configure_input"
9519 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9520 $as_echo "$as_me: creating $ac_file" >&6;}
9522 # Neutralize special characters interpreted by sed in replacement strings.
9523 case $configure_input in #(
9524 *\&* | *\|* | *\\* )
9525 ac_sed_conf_input=`$as_echo "$configure_input" |
9526 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9527 *) ac_sed_conf_input=$configure_input;;
9528 esac
9530 case $ac_tag in
9531 *:-:* | *:-) cat >"$tmp/stdin" \
9532 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9533 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9534 { (exit 1); exit 1; }; } ;;
9535 esac
9537 esac
9539 ac_dir=`$as_dirname -- "$ac_file" ||
9540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9541 X"$ac_file" : 'X\(//\)[^/]' \| \
9542 X"$ac_file" : 'X\(//\)$' \| \
9543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9544 $as_echo X"$ac_file" |
9545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9546 s//\1/
9549 /^X\(\/\/\)[^/].*/{
9550 s//\1/
9553 /^X\(\/\/\)$/{
9554 s//\1/
9557 /^X\(\/\).*/{
9558 s//\1/
9561 s/.*/./; q'`
9562 { as_dir="$ac_dir"
9563 case $as_dir in #(
9564 -*) as_dir=./$as_dir;;
9565 esac
9566 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9567 as_dirs=
9568 while :; do
9569 case $as_dir in #(
9570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9571 *) as_qdir=$as_dir;;
9572 esac
9573 as_dirs="'$as_qdir' $as_dirs"
9574 as_dir=`$as_dirname -- "$as_dir" ||
9575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9576 X"$as_dir" : 'X\(//\)[^/]' \| \
9577 X"$as_dir" : 'X\(//\)$' \| \
9578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9579 $as_echo X"$as_dir" |
9580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9581 s//\1/
9584 /^X\(\/\/\)[^/].*/{
9585 s//\1/
9588 /^X\(\/\/\)$/{
9589 s//\1/
9592 /^X\(\/\).*/{
9593 s//\1/
9596 s/.*/./; q'`
9597 test -d "$as_dir" && break
9598 done
9599 test -z "$as_dirs" || eval "mkdir $as_dirs"
9600 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9601 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9602 { (exit 1); exit 1; }; }; }
9603 ac_builddir=.
9605 case "$ac_dir" in
9606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9609 # A ".." for each directory in $ac_dir_suffix.
9610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9611 case $ac_top_builddir_sub in
9612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9614 esac ;;
9615 esac
9616 ac_abs_top_builddir=$ac_pwd
9617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9618 # for backward compatibility:
9619 ac_top_builddir=$ac_top_build_prefix
9621 case $srcdir in
9622 .) # We are building in place.
9623 ac_srcdir=.
9624 ac_top_srcdir=$ac_top_builddir_sub
9625 ac_abs_top_srcdir=$ac_pwd ;;
9626 [\\/]* | ?:[\\/]* ) # Absolute name.
9627 ac_srcdir=$srcdir$ac_dir_suffix;
9628 ac_top_srcdir=$srcdir
9629 ac_abs_top_srcdir=$srcdir ;;
9630 *) # Relative name.
9631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9632 ac_top_srcdir=$ac_top_build_prefix$srcdir
9633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9634 esac
9635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9638 case $ac_mode in
9641 # CONFIG_FILE
9644 case $INSTALL in
9645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9646 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9647 esac
9648 ac_MKDIR_P=$MKDIR_P
9649 case $MKDIR_P in
9650 [\\/$]* | ?:[\\/]* ) ;;
9651 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9652 esac
9653 _ACEOF
9655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9656 # If the template does not know about datarootdir, expand it.
9657 # FIXME: This hack should be removed a few years after 2.60.
9658 ac_datarootdir_hack=; ac_datarootdir_seen=
9660 ac_sed_dataroot='
9661 /datarootdir/ {
9665 /@datadir@/p
9666 /@docdir@/p
9667 /@infodir@/p
9668 /@localedir@/p
9669 /@mandir@/p
9671 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9672 *datarootdir*) ac_datarootdir_seen=yes;;
9673 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9674 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9675 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9676 _ACEOF
9677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9678 ac_datarootdir_hack='
9679 s&@datadir@&$datadir&g
9680 s&@docdir@&$docdir&g
9681 s&@infodir@&$infodir&g
9682 s&@localedir@&$localedir&g
9683 s&@mandir@&$mandir&g
9684 s&\\\${datarootdir}&$datarootdir&g' ;;
9685 esac
9686 _ACEOF
9688 # Neutralize VPATH when `$srcdir' = `.'.
9689 # Shell code in configure.ac might set extrasub.
9690 # FIXME: do we really want to maintain this feature?
9691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9692 ac_sed_extra="$ac_vpsub
9693 $extrasub
9694 _ACEOF
9695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9698 s|@configure_input@|$ac_sed_conf_input|;t t
9699 s&@top_builddir@&$ac_top_builddir_sub&;t t
9700 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9701 s&@srcdir@&$ac_srcdir&;t t
9702 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9703 s&@top_srcdir@&$ac_top_srcdir&;t t
9704 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9705 s&@builddir@&$ac_builddir&;t t
9706 s&@abs_builddir@&$ac_abs_builddir&;t t
9707 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9708 s&@INSTALL@&$ac_INSTALL&;t t
9709 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9710 $ac_datarootdir_hack
9712 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9713 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9714 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9715 { (exit 1); exit 1; }; }
9717 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9718 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9719 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9720 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9721 which seems to be undefined. Please make sure it is defined." >&5
9722 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9723 which seems to be undefined. Please make sure it is defined." >&2;}
9725 rm -f "$tmp/stdin"
9726 case $ac_file in
9727 -) cat "$tmp/out" && rm -f "$tmp/out";;
9728 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9729 esac \
9730 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9731 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9732 { (exit 1); exit 1; }; }
9736 # CONFIG_HEADER
9738 if test x"$ac_file" != x-; then
9740 $as_echo "/* $configure_input */" \
9741 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9742 } >"$tmp/config.h" \
9743 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9744 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9745 { (exit 1); exit 1; }; }
9746 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9747 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9748 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9749 else
9750 rm -f "$ac_file"
9751 mv "$tmp/config.h" "$ac_file" \
9752 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9753 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9754 { (exit 1); exit 1; }; }
9756 else
9757 $as_echo "/* $configure_input */" \
9758 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9759 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
9760 $as_echo "$as_me: error: could not create -" >&2;}
9761 { (exit 1); exit 1; }; }
9763 # Compute "$ac_file"'s index in $config_headers.
9764 _am_arg="$ac_file"
9765 _am_stamp_count=1
9766 for _am_header in $config_headers :; do
9767 case $_am_header in
9768 $_am_arg | $_am_arg:* )
9769 break ;;
9771 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9772 esac
9773 done
9774 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9775 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9776 X"$_am_arg" : 'X\(//\)[^/]' \| \
9777 X"$_am_arg" : 'X\(//\)$' \| \
9778 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9779 $as_echo X"$_am_arg" |
9780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9781 s//\1/
9784 /^X\(\/\/\)[^/].*/{
9785 s//\1/
9788 /^X\(\/\/\)$/{
9789 s//\1/
9792 /^X\(\/\).*/{
9793 s//\1/
9796 s/.*/./; q'`/stamp-h$_am_stamp_count
9799 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
9800 $as_echo "$as_me: executing $ac_file commands" >&6;}
9802 esac
9805 case $ac_file$ac_mode in
9806 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9807 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9808 # are listed without --file. Let's play safe and only enable the eval
9809 # if we detect the quoting.
9810 case $CONFIG_FILES in
9811 *\'*) eval set x "$CONFIG_FILES" ;;
9812 *) set x $CONFIG_FILES ;;
9813 esac
9814 shift
9815 for mf
9817 # Strip MF so we end up with the name of the file.
9818 mf=`echo "$mf" | sed -e 's/:.*$//'`
9819 # Check whether this is an Automake generated Makefile or not.
9820 # We used to match only the files named `Makefile.in', but
9821 # some people rename them; so instead we look at the file content.
9822 # Grep'ing the first line is not enough: some people post-process
9823 # each Makefile.in and add a new line on top of each file to say so.
9824 # Grep'ing the whole file is not good either: AIX grep has a line
9825 # limit of 2048, but all sed's we know have understand at least 4000.
9826 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9827 dirpart=`$as_dirname -- "$mf" ||
9828 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9829 X"$mf" : 'X\(//\)[^/]' \| \
9830 X"$mf" : 'X\(//\)$' \| \
9831 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9832 $as_echo X"$mf" |
9833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9834 s//\1/
9837 /^X\(\/\/\)[^/].*/{
9838 s//\1/
9841 /^X\(\/\/\)$/{
9842 s//\1/
9845 /^X\(\/\).*/{
9846 s//\1/
9849 s/.*/./; q'`
9850 else
9851 continue
9853 # Extract the definition of DEPDIR, am__include, and am__quote
9854 # from the Makefile without running `make'.
9855 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9856 test -z "$DEPDIR" && continue
9857 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9858 test -z "am__include" && continue
9859 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9860 # When using ansi2knr, U may be empty or an underscore; expand it
9861 U=`sed -n 's/^U = //p' < "$mf"`
9862 # Find all dependency output files, they are included files with
9863 # $(DEPDIR) in their names. We invoke sed twice because it is the
9864 # simplest approach to changing $(DEPDIR) to its actual value in the
9865 # expansion.
9866 for file in `sed -n "
9867 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9868 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9869 # Make sure the directory exists.
9870 test -f "$dirpart/$file" && continue
9871 fdir=`$as_dirname -- "$file" ||
9872 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9873 X"$file" : 'X\(//\)[^/]' \| \
9874 X"$file" : 'X\(//\)$' \| \
9875 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9876 $as_echo X"$file" |
9877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9878 s//\1/
9881 /^X\(\/\/\)[^/].*/{
9882 s//\1/
9885 /^X\(\/\/\)$/{
9886 s//\1/
9889 /^X\(\/\).*/{
9890 s//\1/
9893 s/.*/./; q'`
9894 { as_dir=$dirpart/$fdir
9895 case $as_dir in #(
9896 -*) as_dir=./$as_dir;;
9897 esac
9898 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9899 as_dirs=
9900 while :; do
9901 case $as_dir in #(
9902 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9903 *) as_qdir=$as_dir;;
9904 esac
9905 as_dirs="'$as_qdir' $as_dirs"
9906 as_dir=`$as_dirname -- "$as_dir" ||
9907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9908 X"$as_dir" : 'X\(//\)[^/]' \| \
9909 X"$as_dir" : 'X\(//\)$' \| \
9910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9911 $as_echo X"$as_dir" |
9912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9913 s//\1/
9916 /^X\(\/\/\)[^/].*/{
9917 s//\1/
9920 /^X\(\/\/\)$/{
9921 s//\1/
9924 /^X\(\/\).*/{
9925 s//\1/
9928 s/.*/./; q'`
9929 test -d "$as_dir" && break
9930 done
9931 test -z "$as_dirs" || eval "mkdir $as_dirs"
9932 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9933 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9934 { (exit 1); exit 1; }; }; }
9935 # echo "creating $dirpart/$file"
9936 echo '# dummy' > "$dirpart/$file"
9937 done
9938 done
9941 "po-directories":C)
9942 for ac_file in $CONFIG_FILES; do
9943 # Support "outfile[:infile[:infile...]]"
9944 case "$ac_file" in
9945 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9946 esac
9947 # PO directories have a Makefile.in generated from Makefile.in.in.
9948 case "$ac_file" in */Makefile.in)
9949 # Adjust a relative srcdir.
9950 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9951 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9952 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9953 # In autoconf-2.13 it is called $ac_given_srcdir.
9954 # In autoconf-2.50 it is called $srcdir.
9955 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9956 case "$ac_given_srcdir" in
9957 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9958 /*) top_srcdir="$ac_given_srcdir" ;;
9959 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9960 esac
9961 # Treat a directory as a PO directory if and only if it has a
9962 # POTFILES.in file. This allows packages to have multiple PO
9963 # directories under different names or in different locations.
9964 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9965 rm -f "$ac_dir/POTFILES"
9966 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9967 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9968 POMAKEFILEDEPS="POTFILES.in"
9969 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9970 # on $ac_dir but don't depend on user-specified configuration
9971 # parameters.
9972 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9973 # The LINGUAS file contains the set of available languages.
9974 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9975 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9977 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9978 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9979 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9980 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9981 else
9982 # The set of available languages was given in configure.in.
9983 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9984 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9986 # Compute POFILES
9987 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9988 # Compute UPDATEPOFILES
9989 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9990 # Compute DUMMYPOFILES
9991 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9992 # Compute GMOFILES
9993 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9994 case "$ac_given_srcdir" in
9995 .) srcdirpre= ;;
9996 *) srcdirpre='$(srcdir)/' ;;
9997 esac
9998 POFILES=
9999 UPDATEPOFILES=
10000 DUMMYPOFILES=
10001 GMOFILES=
10002 for lang in $ALL_LINGUAS; do
10003 POFILES="$POFILES $srcdirpre$lang.po"
10004 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10005 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10006 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10007 done
10008 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10009 # environment variable.
10010 INST_LINGUAS=
10011 if test -n "$ALL_LINGUAS"; then
10012 for presentlang in $ALL_LINGUAS; do
10013 useit=no
10014 if test "%UNSET%" != "$LINGUAS"; then
10015 desiredlanguages="$LINGUAS"
10016 else
10017 desiredlanguages="$ALL_LINGUAS"
10019 for desiredlang in $desiredlanguages; do
10020 # Use the presentlang catalog if desiredlang is
10021 # a. equal to presentlang, or
10022 # b. a variant of presentlang (because in this case,
10023 # presentlang can be used as a fallback for messages
10024 # which are not translated in the desiredlang catalog).
10025 case "$desiredlang" in
10026 "$presentlang"*) useit=yes;;
10027 esac
10028 done
10029 if test $useit = yes; then
10030 INST_LINGUAS="$INST_LINGUAS $presentlang"
10032 done
10034 CATALOGS=
10035 if test -n "$INST_LINGUAS"; then
10036 for lang in $INST_LINGUAS; do
10037 CATALOGS="$CATALOGS $lang.gmo"
10038 done
10040 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10041 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10042 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10043 if test -f "$f"; then
10044 case "$f" in
10045 *.orig | *.bak | *~) ;;
10046 *) cat "$f" >> "$ac_dir/Makefile" ;;
10047 esac
10049 done
10052 esac
10053 done ;;
10055 esac
10056 done # for ac_tag
10059 { (exit 0); exit 0; }
10060 _ACEOF
10061 chmod +x $CONFIG_STATUS
10062 ac_clean_files=$ac_clean_files_save
10064 test $ac_write_fail = 0 ||
10065 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10066 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10067 { (exit 1); exit 1; }; }
10070 # configure is writing to config.log, and then calls config.status.
10071 # config.status does its own redirection, appending to config.log.
10072 # Unfortunately, on DOS this fails, as config.log is still kept open
10073 # by configure, so config.status won't be able to write to it; its
10074 # output is simply discarded. So we exec the FD to /dev/null,
10075 # effectively closing config.log, so it can be properly (re)opened and
10076 # appended to by config.status. When coming back to configure, we
10077 # need to make the FD available again.
10078 if test "$no_create" != yes; then
10079 ac_cs_success=:
10080 ac_config_status_args=
10081 test "$silent" = yes &&
10082 ac_config_status_args="$ac_config_status_args --quiet"
10083 exec 5>/dev/null
10084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10085 exec 5>>config.log
10086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10087 # would make configure fail if this is the last instruction.
10088 $ac_cs_success || { (exit 1); exit 1; }
10090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10091 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10092 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}