2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GDash 20080916.
5 # Report bugs to <cirix@fw.hu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) ||
{ (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") ||
{
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir
-p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev
/null
6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix
=/usr
/local
566 ac_config_libobj_dir
=.
572 SHELL
=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME
='gdash'
577 PACKAGE_VERSION
='20080916'
578 PACKAGE_STRING
='GDash 20080916'
579 PACKAGE_BUGREPORT
='cirix@fw.hu'
581 ac_unique_file
="src/game.c"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
669 INSTALL_STRIP_PROGRAM
739 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
991 -program-transform-name |
--program-transform-name \
992 |
--program-transform-nam |
--program-transform-na \
993 |
--program-transform-n |
--program-transform- \
994 |
--program-transform |
--program-transfor \
995 |
--program-transfo |
--program-transf \
996 |
--program-trans |
--program-tran \
997 |
--progr-tra |
--program-tr |
--program-t)
998 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures GDash 20080916 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/gdash]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1314 --build=BUILD configure
for building on BUILD
[guessed
]
1315 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1319 if test -n "$ac_init_help"; then
1320 case $ac_init_help in
1321 short | recursive
) echo "Configuration of GDash 20080916:";;
1326 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1327 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1328 --disable-dependency-tracking speeds up one-time build
1329 --enable-dependency-tracking do not reject slow dependency extractors
1330 --disable-nls do not use Native Language Support
1331 --disable-rpath do not hardcode runtime library paths
1332 --disable-sound disables sound support
1333 --disable-glibtest do not try to compile and run a
test GLIB program
1334 --disable-gtktest do not try to compile and run a
test GTK
+ program
1335 --disable-sdltest Do not try to compile and run a
test SDL program
1338 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1339 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1340 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1341 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1342 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1343 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1344 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1345 --without-gtk disables gtk
+ version
(gdash
)
1346 --without-sdl disables sdl version
(sdash
)
1347 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1348 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1350 Some influential environment variables
:
1351 CC C compiler
command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1354 nonstandard directory
<lib dir
>
1355 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1356 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1357 you have headers
in a nonstandard directory
<include dir
>
1359 PKG_CONFIG path to pkg-config utility
1361 Use these variables to override the choices made by
`configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 Report bugs to <cirix@fw.hu>.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1425 GDash configure 20080916
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by GDash $as_me 20080916, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 gt_needs="$gt_needs "
1713 # Check that the precious variables saved in the cache have kept the same
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1724 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1728 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1735 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1736 echo "$as_me: former value
: $ac_old_val" >&2;}
1737 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1738 echo "$as_me: current value
: $ac_new_val" >&2;}
1739 ac_cache_corrupted=:
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1745 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 if $ac_cache_corrupted; then
1755 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1756 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1757 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1759 { (exit 1); exit 1; }; }
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794 am__api_version="1.9"
1796 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1797 if test -f "$ac_dir/install-sh"; then
1799 ac_install_sh="$ac_aux_dir/install-sh -c"
1801 elif test -f "$ac_dir/install.sh"; then
1803 ac_install_sh="$ac_aux_dir/install.sh -c"
1805 elif test -f "$ac_dir/shtool"; then
1807 ac_install_sh="$ac_aux_dir/shtool install -c"
1811 if test -z "$ac_aux_dir"; then
1812 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1813 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1814 { (exit 1); exit 1; }; }
1817 # These three variables are undocumented and unsupported,
1818 # and are intended to be withdrawn in a future Autoconf release.
1819 # They can cause serious problems if a builder's source tree is in a directory
1820 # whose full name contains unusual characters.
1821 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1822 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1823 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1826 # Find a good install program. We prefer a C program (faster),
1827 # so one script is as good as another. But avoid the broken or
1828 # incompatible versions:
1829 # SysV /etc/install, /usr/sbin/install
1830 # SunOS /usr/etc/install
1831 # IRIX /sbin/install
1833 # AmigaOS /C/install, which installs bootblocks on floppy discs
1834 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1835 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1836 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1837 # OS/2's system install, which has a completely different semantic
1838 # ./install, which can be erroneously created by make from ./install.sh.
1839 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1840 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1841 if test -z "$INSTALL"; then
1842 if test "${ac_cv_path_install+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 # Account for people who put trailing slashes in PATH elements.
1852 ./ | .// | /cC/* | \
1853 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1854 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1857 # OSF1 and SCO ODT 3.0 have their own names for install.
1858 # Don't use installbsd from OSF since it installs stuff as root
1860 for ac_prog in ginstall scoinst install; do
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1863 if test $ac_prog = install &&
1864 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1865 # AIX install. It has an incompatible calling convention.
1867 elif test $ac_prog = install &&
1868 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1869 # program-specific install script used by HP pwplus--don't use.
1872 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1885 if test "${ac_cv_path_install+set}" = set; then
1886 INSTALL=$ac_cv_path_install
1888 # As a last resort, use the slow shell script. Don't cache a
1889 # value for INSTALL within a source directory, because that will
1890 # break other packages using the cache if that directory is
1891 # removed, or if the value is a relative name.
1892 INSTALL=$ac_install_sh
1895 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1896 echo "${ECHO_T}$INSTALL" >&6; }
1898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1899 # It thinks the first close brace ends the variable substitution.
1900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1906 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1907 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1910 echo timestamp > conftest.file
1911 # Do `set' in a subshell so we don't clobber the current shell
's
1912 # arguments. Must try -L first in case configure is actually a
1913 # symlink; some systems play weird games with the mod time of symlinks
1914 # (eg FreeBSD returns the mod time of the symlink's containing
1917 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1918 if test "$*" = "X"; then
1920 set X
`ls -t $srcdir/configure conftest.file`
1923 if test "$*" != "X $srcdir/configure conftest.file" \
1924 && test "$*" != "X conftest.file $srcdir/configure"; then
1926 # If neither matched, then we have a broken ls. This can happen
1927 # if, for instance, CONFIG_SHELL is bash and it inherits a
1928 # broken ls alias from the environment. This has actually
1929 # happened. Such a system could not be considered "sane".
1930 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1931 alias in your environment" >&5
1932 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1933 alias in your environment" >&2;}
1934 { (exit 1); exit 1; }; }
1937 test "$2" = conftest.
file
1943 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1944 Check your system clock" >&5
1945 echo "$as_me: error: newly created file is older than distributed files!
1946 Check your system clock" >&2;}
1947 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: yes" >&5
1950 echo "${ECHO_T}yes" >&6; }
1951 test "$program_prefix" != NONE
&&
1952 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1953 # Use a double $ so make ignores it.
1954 test "$program_suffix" != NONE
&&
1955 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1956 # Double any \ or $. echo might interpret backslashes.
1957 # By default was `s,x,x', remove it if useless.
1958 cat <<\_ACEOF
>conftest.
sed
1959 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1961 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1964 # expand $ac_aux_dir to an absolute path
1965 am_aux_dir
=`cd $ac_aux_dir && pwd`
1967 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1968 # Use eval to expand $SHELL
1969 if eval "$MISSING --run true"; then
1970 am_missing_run
="$MISSING --run "
1973 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1974 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1977 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1978 # We used to keeping the `.' as first argument, in order to
1979 # allow $(mkdir_p) to be used without argument. As in
1980 # $(mkdir_p) $(somedir)
1981 # where $(somedir) is conditionally defined. However this is wrong
1983 # 1. if the package is installed by a user who cannot write `.'
1984 # make install will fail,
1985 # 2. the above comment should most certainly read
1986 # $(mkdir_p) $(DESTDIR)$(somedir)
1987 # so it does not work when $(somedir) is undefined and
1988 # $(DESTDIR) is not.
1989 # To support the latter case, we have to write
1990 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1991 # so the `.' trick is pointless.
1992 mkdir_p
='mkdir -p --'
1994 # On NextStep and OpenStep, the `mkdir' command does not
1995 # recognize any option. It will interpret all options as
1996 # directories to create, and then abort because `.' already
1998 for d
in .
/-p .
/--version;
2000 test -d $d && rmdir $d
2002 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2003 if test -f "$ac_aux_dir/mkinstalldirs"; then
2004 mkdir_p
='$(mkinstalldirs)'
2006 mkdir_p
='$(install_sh) -d'
2010 for ac_prog
in gawk mawk nawk
awk
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy
$ac_prog; ac_word
=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_AWK+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test -n "$AWK"; then
2020 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir
=.
2027 for ac_exec_ext
in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_AWK
="$ac_prog"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$AWK"; then
2041 { echo "$as_me:$LINENO: result: $AWK" >&5
2042 echo "${ECHO_T}$AWK" >&6; }
2044 { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2049 test -n "$AWK" && break
2052 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2053 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2054 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2055 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 cat >conftest.
make <<\_ACEOF
2061 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2063 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2064 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2066 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2068 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2072 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2073 { echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6; }
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 SET_MAKE
="MAKE=${MAKE-make}"
2082 rm -rf .tst
2>/dev
/null
2083 mkdir .tst
2>/dev
/null
2084 if test -d .tst
; then
2089 rmdir .tst
2>/dev
/null
2091 # test to see if srcdir already configured
2092 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2093 test -f $srcdir/config.status
; then
2094 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2095 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2096 { (exit 1); exit 1; }; }
2099 # test whether we have cygpath
2100 if test -z "$CYGPATH_W"; then
2101 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2102 CYGPATH_W
='cygpath -w'
2109 # Define the identity of the package.
2114 cat >>confdefs.h
<<_ACEOF
2115 #define PACKAGE "$PACKAGE"
2119 cat >>confdefs.h
<<_ACEOF
2120 #define VERSION "$VERSION"
2123 # Some tools Automake needs.
2125 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2128 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2131 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2134 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2137 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2139 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2141 # Installed binaries are usually stripped using `strip' when the user
2142 # run `make install-strip'. However `strip' might not be the right
2143 # tool to use in cross-compilation environments, therefore Automake
2144 # will honor the `STRIP' environment variable to overrule this program.
2145 if test "$cross_compiling" != no
; then
2146 if test -n "$ac_tool_prefix"; then
2147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2148 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_STRIP+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 if test -n "$STRIP"; then
2155 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir
=.
2162 for ac_exec_ext
in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 STRIP
=$ac_cv_prog_STRIP
2175 if test -n "$STRIP"; then
2176 { echo "$as_me:$LINENO: result: $STRIP" >&5
2177 echo "${ECHO_T}$STRIP" >&6; }
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2185 if test -z "$ac_cv_prog_STRIP"; then
2187 # Extract the first word of "strip", so it can be a program name with args.
2188 set dummy strip
; ac_word
=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test -n "$ac_ct_STRIP"; then
2195 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir
=.
2202 for ac_exec_ext
in '' $ac_executable_extensions; do
2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204 ac_cv_prog_ac_ct_STRIP
="strip"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2215 if test -n "$ac_ct_STRIP"; then
2216 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2217 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2223 if test "x$ac_ct_STRIP" = x
; then
2226 case $cross_compiling:$ac_tool_warned in
2228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2229 whose name does not start with the host triplet. If you think this
2230 configuration is useful to you, please write to autoconf@gnu.org." >&5
2231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2232 whose name does not start with the host triplet. If you think this
2233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2234 ac_tool_warned
=yes ;;
2239 STRIP
="$ac_cv_prog_STRIP"
2243 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2245 # We need awk for the "check" target. The system "awk" is bad on
2247 # Always define AMTAR for backward compatibility.
2249 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2251 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2257 ac_config_headers
="$ac_config_headers config.h"
2261 ac_cpp
='$CPP $CPPFLAGS'
2262 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC
="$CC" # Let the user override the test.
2276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_CC
="${ac_tool_prefix}gcc"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 { echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6; }
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2304 if test -z "$ac_cv_prog_CC"; then
2306 # Extract the first word of "gcc", so it can be a program name with args.
2307 set dummy gcc
; ac_word
=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 if test -n "$ac_ct_CC"; then
2314 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_CC
="gcc"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336 echo "${ECHO_T}$ac_ct_CC" >&6; }
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2342 if test "x$ac_ct_CC" = x
; then
2345 case $cross_compiling:$ac_tool_warned in
2347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2348 whose name does not start with the host triplet. If you think this
2349 configuration is useful to you, please write to autoconf@gnu.org." >&5
2350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2351 whose name does not start with the host triplet. If you think this
2352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2353 ac_tool_warned
=yes ;;
2361 if test -z "$CC"; then
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2364 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC
="$CC" # Let the user override the test.
2373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir
=.
2378 for ac_exec_ext
in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$CC"; then
2392 { echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2402 if test -z "$CC"; then
2403 # Extract the first word of "cc", so it can be a program name with args.
2404 set dummy cc
; ac_word
=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC
="$CC" # Let the user override the test.
2414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir
=.
2419 for ac_exec_ext
in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2422 ac_prog_rejected
=yes
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 if test $ac_prog_rejected = yes; then
2434 # We found a bogon in the path, so make sure we never use it.
2435 set dummy
$ac_cv_prog_CC
2437 if test $# != 0; then
2438 # We chose a different compiler from the bogus one.
2439 # However, it has the same basename, so the bogon will be chosen
2440 # first if we set CC to just the basename; use the full file name.
2442 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2458 if test -z "$CC"; then
2459 if test -n "$ac_tool_prefix"; then
2460 for ac_prog
in cl.exe
2462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2463 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC
="$CC" # Let the user override the test.
2472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir
=.
2477 for ac_exec_ext
in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test -n "$CC"; then
2491 { echo "$as_me:$LINENO: result: $CC" >&5
2492 echo "${ECHO_T}$CC" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2499 test -n "$CC" && break
2502 if test -z "$CC"; then
2504 for ac_prog
in cl.exe
2506 # Extract the first word of "$ac_prog", so it can be a program name with args.
2507 set dummy
$ac_prog; ac_word
=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$ac_ct_CC"; then
2514 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir
=.
2521 for ac_exec_ext
in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_ac_ct_CC
="$ac_prog"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2534 if test -n "$ac_ct_CC"; then
2535 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2536 echo "${ECHO_T}$ac_ct_CC" >&6; }
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2543 test -n "$ac_ct_CC" && break
2546 if test "x$ac_ct_CC" = x
; then
2549 case $cross_compiling:$ac_tool_warned in
2551 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2552 whose name does not start with the host triplet. If you think this
2553 configuration is useful to you, please write to autoconf@gnu.org." >&5
2554 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet. If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2557 ac_tool_warned
=yes ;;
2566 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: no acceptable C compiler found in \$PATH
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2572 # Provide some information about the compiler.
2573 echo "$as_me:$LINENO: checking for C compiler version" >&5
2574 ac_compiler
=`set X $ac_compile; echo $2`
2575 { (ac_try
="$ac_compiler --version >&5"
2577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compiler --version >&5") 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }
2585 { (ac_try="$ac_compiler -v >&5"
2587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2588 *) ac_try_echo
=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compiler -v >&5") 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595 { (ac_try
="$ac_compiler -V >&5"
2597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_compiler -V >&5") 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2606 cat >conftest.$ac_ext <<_ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2621 ac_clean_files_save=$ac_clean_files
2622 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2623 # Try to create an executable without -o first, disregard a.out.
2624 # It will help us diagnose broken compilers, and finding out an intuition
2626 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2627 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2628 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2630 # List of possible output files, starting from the most likely.
2631 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2632 # only as a last resort. b.out is created by i960 compilers.
2633 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2635 # The IRIX 6 linker writes into existing files which may not be
2636 # executable, retaining their permissions. Remove them first so a
2637 # subsequent execution test works.
2639 for ac_file in $ac_files
2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2643 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2648 if { (ac_try="$ac_link_default"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_link_default") 2>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; then
2658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2660 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2661 # so that the user can short-circuit this test for compilers unknown to
2663 for ac_file
in $ac_files ''
2665 test -f "$ac_file" ||
continue
2667 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2670 # We found the default executable, but exeext='' is most
2674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2676 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2678 # We set ac_cv_exeext here because the later test for it is not
2679 # safe: cross compilers may not add the suffix if given an `-o'
2680 # argument, so we may need to know it at that point already.
2681 # Even if this section looks crufty: it has the advantage of
2688 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2694 { echo "$as_me:$LINENO: result: $ac_file" >&5
2695 echo "${ECHO_T}$ac_file" >&6; }
2696 if test -z "$ac_file"; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.
$ac_ext >&5
2700 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: C compiler cannot create executables
2703 See \`config.log' for more details." >&2;}
2704 { (exit 77); exit 77; }; }
2707 ac_exeext
=$ac_cv_exeext
2709 # Check that the compiler produces executables we can run. If not, either
2710 # the compiler is broken, or we cross compile.
2711 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2712 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2713 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2714 # If not cross compiling, check that we can run a simple program.
2715 if test "$cross_compiling" != yes; then
2716 if { ac_try
='./$ac_file'
2717 { (case "(($ac_try" in
2718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_try") 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2728 if test "$cross_compiling" = maybe; then
2731 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2732 If you meant to cross compile, use \`--host'.
2733 See \`config.log' for more details.
" >&5
2734 echo "$as_me: error
: cannot run C compiled programs.
2735 If you meant to cross compile
, use \
`--host'.
2736 See \`config.log
' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
2741 { echo "$as_me:$LINENO: result: yes" >&5
2742 echo "${ECHO_T}yes" >&6; }
2744 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2745 ac_clean_files=$ac_clean_files_save
2746 # Check that the compiler produces executables we can run. If not, either
2747 # the compiler is broken, or we cross compile.
2748 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2749 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2750 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2751 echo "${ECHO_T}$cross_compiling" >&6; }
2753 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2754 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2755 if { (ac_try="$ac_link"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_link") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; then
2765 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2766 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2767 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2769 for ac_file
in conftest.exe conftest conftest.
*; do
2770 test -f "$ac_file" ||
continue
2772 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2773 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2779 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2780 See \`config.log' for more details." >&5
2781 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2782 See \`config.log' for more details." >&2;}
2783 { (exit 1); exit 1; }; }
2786 rm -f conftest
$ac_cv_exeext
2787 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2788 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2790 rm -f conftest.
$ac_ext
2791 EXEEXT
=$ac_cv_exeext
2793 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2794 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2795 if test "${ac_cv_objext+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 cat >conftest.
$ac_ext <<_ACEOF
2801 cat confdefs.h
>>conftest.
$ac_ext
2802 cat >>conftest.
$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2813 rm -f conftest.o conftest.obj
2814 if { (ac_try
="$ac_compile"
2816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compile") 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; then
2824 for ac_file in conftest.o conftest.obj conftest.*; do
2825 test -f "$ac_file" || continue;
2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2828 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2837 See \`config.log
' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2839 See \`config.log' for more details.
" >&2;}
2840 { (exit 1); exit 1; }; }
2843 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2845 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2846 echo "${ECHO_T}$ac_cv_objext" >&6; }
2847 OBJEXT=$ac_cv_objext
2849 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2850 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2851 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2852 echo $ECHO_N "(cached
) $ECHO_C" >&6
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2872 rm -f conftest.$ac_objext
2873 if { (ac_try="$ac_compile"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compile") 2>conftest.er1
2881 grep -v '^ *+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2885 (exit $ac_status); } && {
2886 test -z "$ac_c_werror_flag" ||
2887 test ! -s conftest.err
2888 } && test -s conftest.$ac_objext; then
2891 echo "$as_me: failed program was
:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2901 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2902 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2903 GCC=`test $ac_compiler_gnu = yes && echo yes`
2904 ac_test_CFLAGS=${CFLAGS+set}
2905 ac_save_CFLAGS=$CFLAGS
2906 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2907 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2908 if test "${ac_cv_prog_cc_g+set}" = set; then
2909 echo $ECHO_N "(cached
) $ECHO_C" >&6
2911 ac_save_c_werror_flag=$ac_c_werror_flag
2912 ac_c_werror_flag=yes
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2949 echo "$as_me: failed program was
:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compile") 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2981 (exit $ac_status); } && {
2982 test -z "$ac_c_werror_flag" ||
2983 test ! -s conftest.err
2984 } && test -s conftest.$ac_objext; then
2987 echo "$as_me: failed program was
:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 ac_c_werror_flag=$ac_save_c_werror_flag
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3007 rm -f conftest.$ac_objext
3008 if { (ac_try="$ac_compile"
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compile") 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3020 (exit $ac_status); } && {
3021 test -z "$ac_c_werror_flag" ||
3022 test ! -s conftest.err
3023 } && test -s conftest.$ac_objext; then
3026 echo "$as_me: failed program was
:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 ac_c_werror_flag=$ac_save_c_werror_flag
3041 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3043 if test "$ac_test_CFLAGS" = set; then
3044 CFLAGS=$ac_save_CFLAGS
3045 elif test $ac_cv_prog_cc_g = yes; then
3046 if test "$GCC" = yes; then
3052 if test "$GCC" = yes; then
3058 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3059 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3060 if test "${ac_cv_prog_cc_c89+set}" = set; then
3061 echo $ECHO_N "(cached
) $ECHO_C" >&6
3063 ac_cv_prog_cc_c89=no
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3073 #include <sys/types.h>
3074 #include <sys/stat.h>
3075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3076 struct buf { int x; };
3077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3078 static char *e (p, i)
3084 static char *f (char * (*g) (char **, int), char **p, ...)
3089 s = g (p, va_arg (v,int));
3094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3095 function prototypes and stuff, but not '\xHH' hex character constants.
3096 These don't provoke an error unfortunately, instead are silently treated
3097 as 'x'. The following induces an error, until -std is added to get
3098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3099 array size at least. It's necessary to write '\x00'==0 to get something
3100 that's true only with -std. */
3101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3104 inside strings and character constants. */
3106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3108 int test (int i, double x);
3109 struct s1 {int (*f) (int a);};
3110 struct s2 {int (*f) (double a);};
3111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3117 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3122 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3125 CC="$ac_save_CC $ac_arg"
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_cv_prog_cc_c89=$ac_arg
3145 echo "$as_me: failed program was
:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f core conftest.err conftest.$ac_objext
3152 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3154 rm -f conftest.$ac_ext
3159 case "x
$ac_cv_prog_cc_c89" in
3161 { echo "$as_me:$LINENO: result
: none needed
" >&5
3162 echo "${ECHO_T}none needed
" >&6; } ;;
3164 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3165 echo "${ECHO_T}unsupported
" >&6; } ;;
3167 CC="$CC $ac_cv_prog_cc_c89"
3168 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3169 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
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'
3189 # If we don't find an include directive, just comment out the code.
3190 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3191 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3195 # First try GNU make style include.
3196 echo "include confinc" > confmf
3197 # We grep out `Entering directory' and `Leaving directory'
3198 # messages which can occur if `w' ends up in MAKEFLAGS.
3199 # In particular we don't look at `^make:' because GNU make might
3200 # be invoked under some other name (usually "gmake"), in which
3201 # case it prints its new name instead of `make'.
3202 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3207 # Now try BSD make style include.
3208 if test "$am__include" = "#"; then
3209 echo '.include "confinc"' > confmf
3210 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3211 am__include
=.include
3218 { echo "$as_me:$LINENO: result: $_am_result" >&5
3219 echo "${ECHO_T}$_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"
3233 if test "x$enable_dependency_tracking" != xno; then
3244 depcc
="$CC" am_compiler_list
=
3246 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3247 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3248 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3252 # We make a subdir and do the tests there. Otherwise we can end up
3253 # making bogus files that we don't know about and never remove. For
3254 # instance it was reported that on HP-UX the gcc test will end up
3255 # making a dummy file named `D' -- because `-MD' means `put the output
3258 # Copy depcomp to subdir because otherwise we won't find it if we're
3259 # using a relative directory.
3260 cp "$am_depcomp" conftest.dir
3262 # We will build objects and dependencies in a subdirectory because
3263 # it helps to detect inapplicable dependency modes. For instance
3264 # both Tru64's cc and ICC support -MD to output dependencies as a
3265 # side effect of compilation, but ICC will put the dependencies in
3266 # the current directory while Tru64 will put them in the object
3270 am_cv_CC_dependencies_compiler_type
=none
3271 if test "$am_compiler_list" = ""; then
3272 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3274 for depmode
in $am_compiler_list; do
3275 # Setup a source with many dependencies, because some compilers
3276 # like to wrap large dependency lists on column 80 (with \), and
3277 # we should not choose a depcomp mode which is confused by this.
3279 # We need to recreate these files for each test, as the compiler may
3280 # overwrite some of them when testing with obscure command lines.
3281 # This happens at least with the AIX C compiler.
3283 for i
in 1 2 3 4 5 6; do
3284 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3285 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3286 # Solaris 8's {/usr,}/bin/sh.
3287 touch sub
/conftst
$i.h
3289 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3293 # after this tag, mechanisms are not by side-effect, so they'll
3294 # only be used when explicitly requested
3295 if test "x$enable_dependency_tracking" = xyes
; then
3303 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3304 # mode. It turns out that the SunPro C++ compiler does not properly
3305 # handle `-M -o', and we need to detect this.
3306 if depmode
=$depmode \
3307 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3308 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3309 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3310 >/dev
/null
2>conftest.err
&&
3311 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3312 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3313 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3314 # icc doesn't choke on unknown options, it will just issue warnings
3315 # or remarks (even with -Werror). So we grep stderr for any message
3316 # that says an option was ignored or not supported.
3317 # When given -MP, icc 7.0 and 7.1 complain thusly:
3318 # icc: Command line warning: ignoring option '-M'; no argument required
3319 # The diagnosis changed in icc 8.0:
3320 # icc: Command line remark: option '-MP' not supported
3321 if (grep 'ignoring option' conftest.err ||
3322 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3323 am_cv_CC_dependencies_compiler_type
=$depmode
3332 am_cv_CC_dependencies_compiler_type
=none
3336 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3337 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3338 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3343 test "x$enable_dependency_tracking" != xno \
3344 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3346 am__fastdepCC_FALSE
='#'
3348 am__fastdepCC_TRUE
='#'
3349 am__fastdepCC_FALSE
=
3353 if test "x$CC" != xcc
; then
3354 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3355 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3357 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3358 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3360 set dummy
$CC; ac_cc
=`echo $2 |
3361 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3362 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 cat >conftest.
$ac_ext <<_ACEOF
3368 cat confdefs.h
>>conftest.
$ac_ext
3369 cat >>conftest.
$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3380 # Make sure it works both with $CC and with simple cc.
3381 # We do the test twice because some compilers refuse to overwrite an
3382 # existing .o file with -o, though they will create one.
3383 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3385 if { (case "(($ac_try" in
3386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3396 *) ac_try_echo
=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_try") 2>&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); };
3404 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3405 if test "x$CC" != xcc
; then
3406 # Test first that cc exists at all.
3407 if { ac_try
='cc -c conftest.$ac_ext >&5'
3408 { (case "(($ac_try" in
3409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_try") 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3419 if { (case "(($ac_try" in
3420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3421 *) ac_try_echo
=$ac_try;;
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_try") 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 test -f conftest2.
$ac_objext && { (case "(($ac_try" in
3429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_try") 2>&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); };
3441 # cc exists but doesn't like -o.
3442 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3447 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3449 rm -f core conftest*
3452 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3453 { echo "$as_me:$LINENO: result: yes" >&5
3454 echo "${ECHO_T}yes" >&6; }
3456 { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3459 cat >>confdefs.h <<\_ACEOF
3460 #define NO_MINUS_C_MINUS_O 1
3465 # FIXME: we rely on the cache variable name because
3466 # there is no other way.
3468 ac_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3469 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" != yes"; then
3470 # Losing compiler, so override with the script.
3471 # FIXME: It is wrong to rewrite CC.
3472 # But if we don't then we get into trouble of one sort or another.
3473 # A longer-term fix would be to have automake use am__CC in this case,
3474 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3475 CC="$am_aux_dir/compile $CC"
3480 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3481 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3482 if test "${ac_cv_search_strerror+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 ac_func_search_save_LIBS=$LIBS
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3493 /* Override any GCC internal prototype to avoid an error.
3494 Use char because int might match the return type of a GCC
3495 builtin and then its argument prototype would still apply. */
3508 for ac_lib in '' cposix; do
3509 if test -z "$ac_lib"; then
3510 ac_res="none required"
3513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (ac_try="$ac_link"
3518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3519 *) ac_try_echo
=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_link") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1
>conftest.err
3526 cat conftest.err
>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest
$ac_exeext &&
3532 $as_test_x conftest
$ac_exeext; then
3533 ac_cv_search_strerror
=$ac_res
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3541 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
3543 if test "${ac_cv_search_strerror+set}" = set; then
3547 if test "${ac_cv_search_strerror+set}" = set; then
3550 ac_cv_search_strerror
=no
3553 LIBS
=$ac_func_search_save_LIBS
3555 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3556 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3557 ac_res
=$ac_cv_search_strerror
3558 if test "$ac_res" != no
; then
3559 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
3564 ac_cpp
='$CPP $CPPFLAGS'
3565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3568 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3569 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3570 # On Suns, sometimes $CPP names a directory.
3571 if test -n "$CPP" && test -d "$CPP"; then
3574 if test -z "$CPP"; then
3575 if test "${ac_cv_prog_CPP+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 # Double quotes because CPP needs to be expanded
3579 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3582 for ac_c_preproc_warn_flag
in '' yes
3584 # Use a header file that comes with gcc, so configuring glibc
3585 # with a fresh cross-compiler works.
3586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3587 # <limits.h> exists even on freestanding compilers.
3588 # On the NeXT, cc -E runs the code through the compiler's parser,
3589 # not just through cpp. "Syntax error" is here to catch this case.
3590 cat >conftest.
$ac_ext <<_ACEOF
3593 cat confdefs.h
>>conftest.
$ac_ext
3594 cat >>conftest.
$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3597 # include <limits.h>
3599 # include <assert.h>
3603 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev/null && {
3616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Broken: fails on valid input.
3628 rm -f conftest.err conftest.$ac_ext
3630 # OK, works on sane cases. Now check whether nonexistent headers
3631 # can be detected and how.
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 #include <ac_nonexistent.h>
3640 if { (ac_try="$ac_cpp conftest.$ac_ext"
3642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3643 *) ac_try_echo
=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1
>conftest.err
3650 cat conftest.err
>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev
/null
&& {
3653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3656 # Broken: success on invalid input.
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.
$ac_ext >&5
3662 # Passes both tests.
3667 rm -f conftest.err conftest.
$ac_ext
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.err conftest.
$ac_ext
3672 if $ac_preproc_ok; then
3684 { echo "$as_me:$LINENO: result: $CPP" >&5
3685 echo "${ECHO_T}$CPP" >&6; }
3687 for ac_c_preproc_warn_flag
in '' yes
3689 # Use a header file that comes with gcc, so configuring glibc
3690 # with a fresh cross-compiler works.
3691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3692 # <limits.h> exists even on freestanding compilers.
3693 # On the NeXT, cc -E runs the code through the compiler's parser,
3694 # not just through cpp. "Syntax error" is here to catch this case.
3695 cat >conftest.
$ac_ext <<_ACEOF
3698 cat confdefs.h
>>conftest.
$ac_ext
3699 cat >>conftest.
$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3702 # include <limits.h>
3704 # include <assert.h>
3708 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev/null && {
3721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 # Broken: fails on valid input.
3733 rm -f conftest.err conftest.$ac_ext
3735 # OK, works on sane cases. Now check whether nonexistent headers
3736 # can be detected and how.
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 #include <ac_nonexistent.h>
3745 if { (ac_try="$ac_cpp conftest.$ac_ext"
3747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3748 *) ac_try_echo
=$ac_try;;
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3753 grep -v '^ *+' conftest.er1
>conftest.err
3755 cat conftest.err
>&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev
/null
&& {
3758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3759 test ! -s conftest.err
3761 # Broken: success on invalid input.
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.
$ac_ext >&5
3767 # Passes both tests.
3772 rm -f conftest.err conftest.
$ac_ext
3775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3776 rm -f conftest.err conftest.
$ac_ext
3777 if $ac_preproc_ok; then
3780 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3781 See \`config.log' for more details." >&5
3782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3783 See \`config.log' for more details." >&2;}
3784 { (exit 1); exit 1; }; }
3788 ac_cpp
='$CPP $CPPFLAGS'
3789 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3794 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3795 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3796 if test "${ac_cv_path_GREP+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 # Extract the first word of "grep ggrep" to use in msg output
3800 if test -z "$GREP"; then
3801 set dummy
grep ggrep
; ac_prog_name
=$2
3802 if test "${ac_cv_path_GREP+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 ac_path_GREP_found
=false
3806 # Loop through the user's path and test for each of PROGNAME-LIST
3807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3808 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3811 test -z "$as_dir" && as_dir
=.
3812 for ac_prog
in grep ggrep
; do
3813 for ac_exec_ext
in '' $ac_executable_extensions; do
3814 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3815 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3816 # Check for GNU ac_path_GREP and select it if it is found.
3817 # Check for GNU $ac_path_GREP
3818 case `"$ac_path_GREP" --version 2>&1` in
3820 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3823 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3826 cat "conftest.in" "conftest.in" >"conftest.tmp"
3827 mv "conftest.tmp" "conftest.in"
3828 cp "conftest.in" "conftest.nl"
3829 echo 'GREP' >> "conftest.nl"
3830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3831 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3832 ac_count
=`expr $ac_count + 1`
3833 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3834 # Best one so far, save it but keep looking for a better one
3835 ac_cv_path_GREP
="$ac_path_GREP"
3836 ac_path_GREP_max
=$ac_count
3838 # 10*(2^10) chars as input seems more than enough
3839 test $ac_count -gt 10 && break
3841 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3845 $ac_path_GREP_found && break 3
3855 GREP
="$ac_cv_path_GREP"
3856 if test -z "$GREP"; then
3857 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3858 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3859 { (exit 1); exit 1; }; }
3863 ac_cv_path_GREP
=$GREP
3868 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3869 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3870 GREP
="$ac_cv_path_GREP"
3873 { echo "$as_me:$LINENO: checking for egrep" >&5
3874 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3875 if test "${ac_cv_path_EGREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3879 then ac_cv_path_EGREP
="$GREP -E"
3881 # Extract the first word of "egrep" to use in msg output
3882 if test -z "$EGREP"; then
3883 set dummy
egrep; ac_prog_name
=$2
3884 if test "${ac_cv_path_EGREP+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 ac_path_EGREP_found
=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3890 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3893 test -z "$as_dir" && as_dir
=.
3894 for ac_prog
in egrep; do
3895 for ac_exec_ext
in '' $ac_executable_extensions; do
3896 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3897 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3898 # Check for GNU ac_path_EGREP and select it if it is found.
3899 # Check for GNU $ac_path_EGREP
3900 case `"$ac_path_EGREP" --version 2>&1` in
3902 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3905 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 echo 'EGREP' >> "conftest.nl"
3912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3913 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3914 ac_count
=`expr $ac_count + 1`
3915 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_EGREP
="$ac_path_EGREP"
3918 ac_path_EGREP_max
=$ac_count
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3923 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3927 $ac_path_EGREP_found && break 3
3937 EGREP
="$ac_cv_path_EGREP"
3938 if test -z "$EGREP"; then
3939 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3940 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3941 { (exit 1); exit 1; }; }
3945 ac_cv_path_EGREP
=$EGREP
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3953 EGREP
="$ac_cv_path_EGREP"
3956 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3958 if test "${ac_cv_header_stdc+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 cat >conftest.
$ac_ext <<_ACEOF
3964 cat confdefs.h
>>conftest.
$ac_ext
3965 cat >>conftest.
$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3980 rm -f conftest.
$ac_objext
3981 if { (ac_try
="$ac_compile"
3983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3997 ac_cv_header_stdc=yes
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 ac_cv_header_stdc=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 if test $ac_cv_header_stdc = yes; then
4008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "memchr" >/dev/null 2>&1; then
4022 ac_cv_header_stdc=no
4028 if test $ac_cv_header_stdc = yes; then
4029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "free" >/dev/null 2>&1; then
4043 ac_cv_header_stdc=no
4049 if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4062 #if ((' ' & 0x0FF) == 0x020)
4063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4066 # define ISLOWER(c) \
4067 (('a' <= (c) && (c) <= 'i') \
4068 || ('j' <= (c) && (c) <= 'r') \
4069 || ('s' <= (c) && (c) <= 'z'))
4070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4078 for (i = 0; i < 256; i++)
4079 if (XOR (islower (i), ISLOWER (i))
4080 || toupper (i) != TOUPPER (i))
4085 rm -f conftest$ac_exeext
4086 if { (ac_try="$ac_link"
4088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4089 *) ac_try_echo
=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_link") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4096 { (case "(($ac_try" in
4097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4107 echo "$as_me: program exited with status $ac_status" >&5
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4112 ac_cv_header_stdc=no
4114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4121 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4122 if test $ac_cv_header_stdc = yes; then
4124 cat >>confdefs.h <<\_ACEOF
4125 #define STDC_HEADERS 1
4131 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4132 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4133 if test "${ac_cv_c_const+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4146 /* FIXME: Include the comments suggested by Paul. */
4148 /* Ultrix mips cc rejects this. */
4149 typedef int charset[2];
4151 /* SunOS 4.1.1 cc rejects this. */
4152 char const *const *pcpcc;
4154 /* NEC SVR4.0.2 mips cc rejects this. */
4155 struct point {int x, y;};
4156 static struct point const zero = {0,0};
4157 /* AIX XL C 1.02.0.0 rejects this.
4158 It does not let you subtract one const X* pointer from another in
4159 an arm of an if-expression whose if-part is not a constant
4161 const char *g = "string";
4162 pcpcc = &g + (g ? g-g : 0);
4163 /* HPUX 7.0 cc rejects these. */
4165 ppc = (char**) pcpcc;
4166 pcpcc = (char const *const *) ppc;
4167 { /* SCO 3.2v4 cc rejects this. */
4169 char const *s = 0 ? (char *) 0 : (char const *) 0;
4174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4176 const int *foo = &x[0];
4179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4180 typedef const int *iptr;
4184 { /* AIX XL C 1.02.0.0 rejects this saying
4185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4186 struct s { int j; const int *ap[3]; };
4187 struct s *b; b->j = 5;
4189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4193 return !cs[0] && !zero.x;
4200 rm -f conftest.$ac_objext
4201 if { (ac_try="$ac_compile"
4203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4204 *) ac_try_echo
=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_compile") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1
>conftest.err
4211 cat conftest.err
>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest.
$ac_objext; then
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.
$ac_ext >&5
4225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4227 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4228 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4229 if test $ac_cv_c_const = no
; then
4231 cat >>confdefs.h
<<\_ACEOF
4237 { echo "$as_me:$LINENO: checking for inline" >&5
4238 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4239 if test "${ac_cv_c_inline+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 for ac_kw
in inline __inline__ __inline
; do
4244 cat >conftest.
$ac_ext <<_ACEOF
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4252 static $ac_kw foo_t static_foo () {return 0; }
4253 $ac_kw foo_t foo () {return 0; }
4257 rm -f conftest.
$ac_objext
4258 if { (ac_try
="$ac_compile"
4260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4274 ac_cv_c_inline=$ac_kw
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 test "$ac_cv_c_inline" != no && break
4287 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4288 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4291 case $ac_cv_c_inline in
4294 case $ac_cv_c_inline in
4296 *) ac_val=$ac_cv_c_inline;;
4298 cat >>confdefs.h <<_ACEOF
4300 #define inline $ac_val
4307 for ac_func in setlocale
4309 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
4310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 cat >conftest.$ac_ext <<_ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4323 #define $ac_func innocuous_$ac_func
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func (); below.
4327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 <limits.h> exists even on freestanding compilers. */
4331 # include <limits.h>
4333 # include <assert.h>
4338 /* Override any GCC internal prototype to avoid an error.
4339 Use char because int might match the return type of a GCC
4340 builtin and then its argument prototype would still apply. */
4345 /* The GNU C library defines this for functions which it implements
4346 to always fail with ENOSYS. Some functions are actually named
4347 something starting with __ and the normal name is an alias. */
4348 #if defined __stub_$ac_func || defined __stub___$ac_func
4360 rm -f conftest.$ac_objext conftest$ac_exeext
4361 if { (ac_try="$ac_link"
4363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4364 *) ac_try_echo
=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_link") 2>conftest.er1
4369 grep -v '^ *+' conftest.er1
>conftest.err
4371 cat conftest.err
>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && {
4374 test -z "$ac_c_werror_flag" ||
4375 test ! -s conftest.err
4376 } && test -s conftest
$ac_exeext &&
4377 $as_test_x conftest
$ac_exeext; then
4378 eval "$as_ac_var=yes"
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.
$ac_ext >&5
4383 eval "$as_ac_var=no"
4386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4387 conftest
$ac_exeext conftest.
$ac_ext
4389 ac_res
=`eval echo '${'$as_ac_var'}'`
4390 { echo "$as_me:$LINENO: result: $ac_res" >&5
4391 echo "${ECHO_T}$ac_res" >&6; }
4392 if test `eval echo '${'$as_ac_var'}'` = yes; then
4393 cat >>confdefs.h
<<_ACEOF
4394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4402 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4403 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4404 # Check whether --enable-nls was given.
4405 if test "${enable_nls+set}" = set; then
4406 enableval
=$enable_nls; USE_NLS
=$enableval
4411 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4412 echo "${ECHO_T}$USE_NLS" >&6; }
4419 # Prepare PATH_SEPARATOR.
4420 # The user is always right.
4421 if test "${PATH_SEPARATOR+set}" != set; then
4422 echo "#! /bin/sh" >conf$$.sh
4423 echo "exit 0" >>conf$$.sh
4425 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4433 # Find out how to test for executable files. Don't use a zero-byte file,
4434 # as systems may use methods other than mode bits to determine executability.
4435 cat >conf$$.
file <<_ASEOF
4439 chmod +x conf$$.
file
4440 if test -x conf$$.
file >/dev
/null
2>&1; then
4441 ac_executable_p
="test -x"
4443 ac_executable_p
="test -f"
4447 # Extract the first word of "msgfmt", so it can be a program name with args.
4448 set dummy msgfmt
; ac_word
=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_MSGFMT+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4459 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4460 for ac_dir
in $PATH; do
4462 test -z "$ac_dir" && ac_dir
=.
4463 for ac_exec_ext
in '' $ac_executable_extensions; do
4464 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4465 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4466 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
4467 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
4468 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
4475 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
4479 MSGFMT
="$ac_cv_path_MSGFMT"
4480 if test "$MSGFMT" != ":"; then
4481 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4482 echo "${ECHO_T}$MSGFMT" >&6; }
4484 { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4488 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4489 set dummy gmsgfmt
; ac_word
=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4504 test -z "$as_dir" && as_dir
=.
4505 for ac_exec_ext
in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4519 GMSGFMT
=$ac_cv_path_GMSGFMT
4520 if test -n "$GMSGFMT"; then
4521 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4522 echo "${ECHO_T}$GMSGFMT" >&6; }
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4530 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4531 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
4532 *) MSGFMT_015
=$MSGFMT ;;
4535 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4536 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
4537 *) GMSGFMT_015
=$GMSGFMT ;;
4542 # Prepare PATH_SEPARATOR.
4543 # The user is always right.
4544 if test "${PATH_SEPARATOR+set}" != set; then
4545 echo "#! /bin/sh" >conf$$.sh
4546 echo "exit 0" >>conf$$.sh
4548 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4556 # Find out how to test for executable files. Don't use a zero-byte file,
4557 # as systems may use methods other than mode bits to determine executability.
4558 cat >conf$$.
file <<_ASEOF
4562 chmod +x conf$$.
file
4563 if test -x conf$$.
file >/dev
/null
2>&1; then
4564 ac_executable_p
="test -x"
4566 ac_executable_p
="test -f"
4570 # Extract the first word of "xgettext", so it can be a program name with args.
4571 set dummy xgettext
; ac_word
=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4582 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4583 for ac_dir
in $PATH; do
4585 test -z "$ac_dir" && ac_dir
=.
4586 for ac_exec_ext
in '' $ac_executable_extensions; do
4587 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4588 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4589 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
4590 (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
4591 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
4598 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4602 XGETTEXT
="$ac_cv_path_XGETTEXT"
4603 if test "$XGETTEXT" != ":"; then
4604 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4605 echo "${ECHO_T}$XGETTEXT" >&6; }
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4613 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4614 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
4615 *) XGETTEXT_015
=$XGETTEXT ;;
4620 # Prepare PATH_SEPARATOR.
4621 # The user is always right.
4622 if test "${PATH_SEPARATOR+set}" != set; then
4623 echo "#! /bin/sh" >conf$$.sh
4624 echo "exit 0" >>conf$$.sh
4626 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4634 # Find out how to test for executable files. Don't use a zero-byte file,
4635 # as systems may use methods other than mode bits to determine executability.
4636 cat >conf$$.
file <<_ASEOF
4640 chmod +x conf$$.
file
4641 if test -x conf$$.
file >/dev
/null
2>&1; then
4642 ac_executable_p
="test -x"
4644 ac_executable_p
="test -f"
4648 # Extract the first word of "msgmerge", so it can be a program name with args.
4649 set dummy msgmerge
; ac_word
=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
4660 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4661 for ac_dir
in $PATH; do
4663 test -z "$ac_dir" && ac_dir
=.
4664 for ac_exec_ext
in '' $ac_executable_extensions; do
4665 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4667 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
4668 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
4675 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
4679 MSGMERGE
="$ac_cv_path_MSGMERGE"
4680 if test "$MSGMERGE" != ":"; then
4681 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4682 echo "${ECHO_T}$MSGMERGE" >&6; }
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 test -n "$localedir" || localedir
='${datadir}/locale'
4692 ac_config_commands
="$ac_config_commands po-directories"
4696 if test "X$prefix" = "XNONE"; then
4697 acl_final_prefix
="$ac_default_prefix"
4699 acl_final_prefix
="$prefix"
4701 if test "X$exec_prefix" = "XNONE"; then
4702 acl_final_exec_prefix
='${prefix}'
4704 acl_final_exec_prefix
="$exec_prefix"
4706 acl_save_prefix
="$prefix"
4707 prefix
="$acl_final_prefix"
4708 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
4709 prefix
="$acl_save_prefix"
4711 # Make sure we can run config.sub.
4712 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4713 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4714 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4715 { (exit 1); exit 1; }; }
4717 { echo "$as_me:$LINENO: checking build system type" >&5
4718 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4719 if test "${ac_cv_build+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_build_alias
=$build_alias
4723 test "x$ac_build_alias" = x
&&
4724 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4725 test "x$ac_build_alias" = x
&&
4726 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4727 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4728 { (exit 1); exit 1; }; }
4729 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4731 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4732 { (exit 1); exit 1; }; }
4735 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4736 echo "${ECHO_T}$ac_cv_build" >&6; }
4737 case $ac_cv_build in
4739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4740 echo "$as_me: error: invalid value of canonical build" >&2;}
4741 { (exit 1); exit 1; }; };;
4744 ac_save_IFS
=$IFS; IFS
='-'
4750 # Remember, the first character of IFS is used to create $*,
4751 # except with old shells:
4754 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4757 { echo "$as_me:$LINENO: checking host system type" >&5
4758 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4759 if test "${ac_cv_host+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 if test "x$host_alias" = x
; then
4763 ac_cv_host
=$ac_cv_build
4765 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4766 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4768 { (exit 1); exit 1; }; }
4772 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4773 echo "${ECHO_T}$ac_cv_host" >&6; }
4776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4777 echo "$as_me: error: invalid value of canonical host" >&2;}
4778 { (exit 1); exit 1; }; };;
4781 ac_save_IFS
=$IFS; IFS
='-'
4787 # Remember, the first character of IFS is used to create $*,
4788 # except with old shells:
4791 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4795 # Check whether --with-gnu-ld was given.
4796 if test "${with_gnu_ld+set}" = set; then
4797 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4802 # Prepare PATH_SEPARATOR.
4803 # The user is always right.
4804 if test "${PATH_SEPARATOR+set}" != set; then
4805 echo "#! /bin/sh" >conf$$.sh
4806 echo "exit 0" >>conf$$.sh
4808 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4816 if test "$GCC" = yes; then
4817 # Check if gcc -print-prog-name=ld gives a path.
4818 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4819 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4822 # gcc leaves a trailing carriage return which upsets mingw
4823 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4825 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4828 # Accept absolute paths.
4829 [\\/]* |
[A-Za-z
]:[\\/]*)
4830 re_direlt
='/[^/][^/]*/\.\./'
4831 # Canonicalize the path of ld
4832 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
4833 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4834 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
4836 test -z "$LD" && LD
="$ac_prog"
4839 # If it fails, then pretend we aren't using GCC.
4843 # If it is relative, then search for the first ld in PATH.
4847 elif test "$with_gnu_ld" = yes; then
4848 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4849 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4851 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4852 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4854 if test "${acl_cv_path_LD+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test -z "$LD"; then
4858 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4859 for ac_dir
in $PATH; do
4860 test -z "$ac_dir" && ac_dir
=.
4861 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4862 acl_cv_path_LD
="$ac_dir/$ac_prog"
4863 # Check to see if the program is GNU ld. I'd rather use --version,
4864 # but apparently some GNU ld's only accept -v.
4865 # Break only if it was the GNU/non-GNU ld that we prefer.
4866 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4867 *GNU
* |
*'with BFD'*)
4868 test "$with_gnu_ld" != no
&& break ;;
4870 test "$with_gnu_ld" != yes && break ;;
4876 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
4880 LD
="$acl_cv_path_LD"
4881 if test -n "$LD"; then
4882 { echo "$as_me:$LINENO: result: $LD" >&5
4883 echo "${ECHO_T}$LD" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4888 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4889 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4890 { (exit 1); exit 1; }; }
4891 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4892 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4893 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4897 case `$LD -v 2>&1 </dev/null` in
4898 *GNU
* |
*'with BFD'*)
4899 acl_cv_prog_gnu_ld
=yes ;;
4901 acl_cv_prog_gnu_ld
=no
;;
4904 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4905 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
4906 with_gnu_ld
=$acl_cv_prog_gnu_ld
4911 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4912 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
4913 if test "${acl_cv_rpath+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
4918 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4924 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4925 echo "${ECHO_T}$acl_cv_rpath" >&6; }
4927 libext
="$acl_cv_libext"
4928 shlibext
="$acl_cv_shlibext"
4929 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
4930 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
4931 hardcode_direct
="$acl_cv_hardcode_direct"
4932 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
4933 # Check whether --enable-rpath was given.
4934 if test "${enable_rpath+set}" = set; then
4935 enableval
=$enable_rpath; :
4943 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4944 if test -n "$searchpath"; then
4945 acl_save_IFS
="${IFS= }"; IFS
=":"
4946 for searchdir
in $searchpath; do
4947 if test -d "$searchdir"; then
4948 case "$searchdir" in
4949 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
4950 *) searchdir
=`cd "$searchdir" && pwd`
4951 case "$searchdir" in
4952 */lib64
) acl_libdirstem
=lib64
;;
4969 acl_save_prefix
="$prefix"
4970 prefix
="$acl_final_prefix"
4971 acl_save_exec_prefix
="$exec_prefix"
4972 exec_prefix
="$acl_final_exec_prefix"
4974 eval additional_includedir
=\"$includedir\"
4975 eval additional_libdir
=\"$libdir\"
4977 exec_prefix
="$acl_save_exec_prefix"
4978 prefix
="$acl_save_prefix"
4981 # Check whether --with-libiconv-prefix was given.
4982 if test "${with_libiconv_prefix+set}" = set; then
4983 withval
=$with_libiconv_prefix;
4984 if test "X$withval" = "Xno"; then
4987 if test "X$withval" = "X"; then
4989 acl_save_prefix
="$prefix"
4990 prefix
="$acl_final_prefix"
4991 acl_save_exec_prefix
="$exec_prefix"
4992 exec_prefix
="$acl_final_exec_prefix"
4994 eval additional_includedir
=\"$includedir\"
4995 eval additional_libdir
=\"$libdir\"
4997 exec_prefix
="$acl_save_exec_prefix"
4998 prefix
="$acl_save_prefix"
5001 additional_includedir
="$withval/include"
5002 additional_libdir
="$withval/$acl_libdirstem"
5013 names_already_handled
=
5014 names_next_round
='iconv '
5015 while test -n "$names_next_round"; do
5016 names_this_round
="$names_next_round"
5018 for name
in $names_this_round; do
5020 for n
in $names_already_handled; do
5021 if test "$n" = "$name"; then
5026 if test -z "$already_handled"; then
5027 names_already_handled
="$names_already_handled $name"
5028 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5029 eval value
=\"\
$HAVE_LIB$uppername\"
5030 if test -n "$value"; then
5031 if test "$value" = yes; then
5032 eval value
=\"\
$LIB$uppername\"
5033 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
5034 eval value
=\"\
$LTLIB$uppername\"
5035 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
5044 if test $use_additional = yes; then
5045 if test -n "$shlibext" \
5046 && { test -f "$additional_libdir/lib$name.$shlibext" \
5047 ||
{ test "$shlibext" = dll \
5048 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
5049 found_dir
="$additional_libdir"
5050 if test -f "$additional_libdir/lib$name.$shlibext"; then
5051 found_so
="$additional_libdir/lib$name.$shlibext"
5053 found_so
="$additional_libdir/lib$name.dll.a"
5055 if test -f "$additional_libdir/lib$name.la"; then
5056 found_la
="$additional_libdir/lib$name.la"
5059 if test -f "$additional_libdir/lib$name.$libext"; then
5060 found_dir
="$additional_libdir"
5061 found_a
="$additional_libdir/lib$name.$libext"
5062 if test -f "$additional_libdir/lib$name.la"; then
5063 found_la
="$additional_libdir/lib$name.la"
5068 if test "X$found_dir" = "X"; then
5069 for x
in $LDFLAGS $LTLIBICONV; do
5071 acl_save_prefix
="$prefix"
5072 prefix
="$acl_final_prefix"
5073 acl_save_exec_prefix
="$exec_prefix"
5074 exec_prefix
="$acl_final_exec_prefix"
5076 exec_prefix
="$acl_save_exec_prefix"
5077 prefix
="$acl_save_prefix"
5081 dir
=`echo "X$x" | sed -e 's/^X-L//'`
5082 if test -n "$shlibext" \
5083 && { test -f "$dir/lib$name.$shlibext" \
5084 ||
{ test "$shlibext" = dll \
5085 && test -f "$dir/lib$name.dll.a"; }; }; then
5087 if test -f "$dir/lib$name.$shlibext"; then
5088 found_so
="$dir/lib$name.$shlibext"
5090 found_so
="$dir/lib$name.dll.a"
5092 if test -f "$dir/lib$name.la"; then
5093 found_la
="$dir/lib$name.la"
5096 if test -f "$dir/lib$name.$libext"; then
5098 found_a
="$dir/lib$name.$libext"
5099 if test -f "$dir/lib$name.la"; then
5100 found_la
="$dir/lib$name.la"
5106 if test "X$found_dir" != "X"; then
5111 if test "X$found_dir" != "X"; then
5112 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5113 if test "X$found_so" != "X"; then
5114 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5115 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5118 for x
in $ltrpathdirs; do
5119 if test "X$x" = "X$found_dir"; then
5124 if test -z "$haveit"; then
5125 ltrpathdirs
="$ltrpathdirs $found_dir"
5127 if test "$hardcode_direct" = yes; then
5128 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5130 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
5131 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5133 for x
in $rpathdirs; do
5134 if test "X$x" = "X$found_dir"; then
5139 if test -z "$haveit"; then
5140 rpathdirs
="$rpathdirs $found_dir"
5144 for x
in $LDFLAGS $LIBICONV; do
5146 acl_save_prefix
="$prefix"
5147 prefix
="$acl_final_prefix"
5148 acl_save_exec_prefix
="$exec_prefix"
5149 exec_prefix
="$acl_final_exec_prefix"
5151 exec_prefix
="$acl_save_exec_prefix"
5152 prefix
="$acl_save_prefix"
5154 if test "X$x" = "X-L$found_dir"; then
5159 if test -z "$haveit"; then
5160 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5162 if test "$hardcode_minus_L" != no
; then
5163 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5165 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5171 if test "X$found_a" != "X"; then
5172 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
5174 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5177 additional_includedir
=
5178 case "$found_dir" in
5179 */$acl_libdirstem |
*/$acl_libdirstem/)
5180 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5181 additional_includedir
="$basedir/include"
5184 if test "X$additional_includedir" != "X"; then
5185 if test "X$additional_includedir" != "X/usr/include"; then
5187 if test "X$additional_includedir" = "X/usr/local/include"; then
5188 if test -n "$GCC"; then
5190 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
5194 if test -z "$haveit"; then
5195 for x
in $CPPFLAGS $INCICONV; do
5197 acl_save_prefix
="$prefix"
5198 prefix
="$acl_final_prefix"
5199 acl_save_exec_prefix
="$exec_prefix"
5200 exec_prefix
="$acl_final_exec_prefix"
5202 exec_prefix
="$acl_save_exec_prefix"
5203 prefix
="$acl_save_prefix"
5205 if test "X$x" = "X-I$additional_includedir"; then
5210 if test -z "$haveit"; then
5211 if test -d "$additional_includedir"; then
5212 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5218 if test -n "$found_la"; then
5219 save_libdir
="$libdir"
5221 */* |
*\\*) .
"$found_la" ;;
5222 *) .
"./$found_la" ;;
5224 libdir
="$save_libdir"
5225 for dep
in $dependency_libs; do
5228 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
5229 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5231 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5232 if test -n "$GCC"; then
5234 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
5238 if test -z "$haveit"; then
5240 for x
in $LDFLAGS $LIBICONV; do
5242 acl_save_prefix
="$prefix"
5243 prefix
="$acl_final_prefix"
5244 acl_save_exec_prefix
="$exec_prefix"
5245 exec_prefix
="$acl_final_exec_prefix"
5247 exec_prefix
="$acl_save_exec_prefix"
5248 prefix
="$acl_save_prefix"
5250 if test "X$x" = "X-L$additional_libdir"; then
5255 if test -z "$haveit"; then
5256 if test -d "$additional_libdir"; then
5257 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5261 for x
in $LDFLAGS $LTLIBICONV; do
5263 acl_save_prefix
="$prefix"
5264 prefix
="$acl_final_prefix"
5265 acl_save_exec_prefix
="$exec_prefix"
5266 exec_prefix
="$acl_final_exec_prefix"
5268 exec_prefix
="$acl_save_exec_prefix"
5269 prefix
="$acl_save_prefix"
5271 if test "X$x" = "X-L$additional_libdir"; then
5276 if test -z "$haveit"; then
5277 if test -d "$additional_libdir"; then
5278 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5285 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
5286 if test "$enable_rpath" != no
; then
5288 for x
in $rpathdirs; do
5289 if test "X$x" = "X$dir"; then
5294 if test -z "$haveit"; then
5295 rpathdirs
="$rpathdirs $dir"
5298 for x
in $ltrpathdirs; do
5299 if test "X$x" = "X$dir"; then
5304 if test -z "$haveit"; then
5305 ltrpathdirs
="$ltrpathdirs $dir"
5310 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5313 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5316 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
5317 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5323 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5324 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5330 if test "X$rpathdirs" != "X"; then
5331 if test -n "$hardcode_libdir_separator"; then
5333 for found_dir
in $rpathdirs; do
5334 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5336 acl_save_libdir
="$libdir"
5338 eval flag
=\"$hardcode_libdir_flag_spec\"
5339 libdir
="$acl_save_libdir"
5340 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5342 for found_dir
in $rpathdirs; do
5343 acl_save_libdir
="$libdir"
5345 eval flag
=\"$hardcode_libdir_flag_spec\"
5346 libdir
="$acl_save_libdir"
5347 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5351 if test "X$ltrpathdirs" != "X"; then
5352 for found_dir
in $ltrpathdirs; do
5353 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5381 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5382 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
5383 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 gt_save_LIBS
="$LIBS"
5387 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
5388 cat >conftest.
$ac_ext <<_ACEOF
5391 cat confdefs.h
>>conftest.
$ac_ext
5392 cat >>conftest.
$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 #include <CoreFoundation/CFPreferences.h>
5398 CFPreferencesCopyAppValue(NULL, NULL)
5403 rm -f conftest.
$ac_objext conftest
$ac_exeext
5404 if { (ac_try
="$ac_link"
5406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_link") 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest$ac_exeext &&
5420 $as_test_x conftest$ac_exeext; then
5421 gt_cv_func_CFPreferencesCopyAppValue=yes
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 gt_cv_func_CFPreferencesCopyAppValue=no
5429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5430 conftest$ac_exeext conftest.$ac_ext
5431 LIBS="$gt_save_LIBS"
5433 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5434 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5435 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5437 cat >>confdefs.h <<\_ACEOF
5438 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5442 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5443 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
5444 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 gt_save_LIBS="$LIBS"
5448 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5449 cat >conftest.$ac_ext <<_ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 #include <CoreFoundation/CFLocale.h>
5459 CFLocaleCopyCurrent();
5464 rm -f conftest.$ac_objext conftest$ac_exeext
5465 if { (ac_try="$ac_link"
5467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5468 *) ac_try_echo
=$ac_try;;
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_link") 2>conftest.er1
5473 grep -v '^ *+' conftest.er1
>conftest.err
5475 cat conftest.err
>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest
$ac_exeext &&
5481 $as_test_x conftest
$ac_exeext; then
5482 gt_cv_func_CFLocaleCopyCurrent
=yes
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.
$ac_ext >&5
5487 gt_cv_func_CFLocaleCopyCurrent
=no
5490 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5491 conftest
$ac_exeext conftest.
$ac_ext
5492 LIBS
="$gt_save_LIBS"
5494 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5495 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5496 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5498 cat >>confdefs.h
<<\_ACEOF
5499 #define HAVE_CFLOCALECOPYCURRENT 1
5504 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5505 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
5517 case " $gt_needs " in
5518 *" need-formatstring-macros "*) gt_api_version
=3 ;;
5519 *" need-ngettext "*) gt_api_version
=2 ;;
5520 *) gt_api_version
=1 ;;
5522 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
5523 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
5525 if test "$USE_NLS" = "yes"; then
5526 gt_use_preinstalled_gnugettext
=no
5529 if test $gt_api_version -ge 3; then
5530 gt_revision_test_code
='
5531 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5532 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5534 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5537 gt_revision_test_code
=
5539 if test $gt_api_version -ge 2; then
5540 gt_expression_test_code
=' + * ngettext ("", "", 0)'
5542 gt_expression_test_code
=
5545 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5546 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
5547 if { as_var
=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 cat >conftest.
$ac_ext <<_ACEOF
5553 cat confdefs.h
>>conftest.
$ac_ext
5554 cat >>conftest.
$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <libintl.h>
5557 $gt_revision_test_code
5558 extern int _nl_msg_cat_cntr;
5559 extern int *_nl_domain_bindings;
5563 bindtextdomain ("", "");
5564 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5569 rm -f conftest.
$ac_objext conftest
$ac_exeext
5570 if { (ac_try
="$ac_link"
5572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_link") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1 >conftest.err
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest$ac_exeext &&
5586 $as_test_x conftest$ac_exeext; then
5587 eval "$gt_func_gnugettext_libc=yes"
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 eval "$gt_func_gnugettext_libc=no"
5595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5596 conftest$ac_exeext conftest.$ac_ext
5598 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
5599 { echo "$as_me:$LINENO: result: $ac_res" >&5
5600 echo "${ECHO_T}$ac_res" >&6; }
5602 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5608 am_save_CPPFLAGS="$CPPFLAGS"
5610 for element in $INCICONV; do
5612 for x in $CPPFLAGS; do
5614 acl_save_prefix="$prefix"
5615 prefix="$acl_final_prefix"
5616 acl_save_exec_prefix="$exec_prefix"
5617 exec_prefix="$acl_final_exec_prefix"
5619 exec_prefix="$acl_save_exec_prefix"
5620 prefix="$acl_save_prefix"
5622 if test "X$x" = "X$element"; then
5627 if test -z "$haveit"; then
5628 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5633 { echo "$as_me:$LINENO: checking for iconv" >&5
5634 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
5635 if test "${am_cv_func_iconv+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 am_cv_func_iconv="no, consider installing GNU libiconv"
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5652 iconv_t cd = iconv_open("","");
5653 iconv(cd,NULL,NULL,NULL,NULL);
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (ac_try="$ac_link"
5662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5663 *) ac_try_echo
=$ac_try;;
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_link") 2>conftest.er1
5668 grep -v '^ *+' conftest.er1
>conftest.err
5670 cat conftest.err
>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } && {
5673 test -z "$ac_c_werror_flag" ||
5674 test ! -s conftest.err
5675 } && test -s conftest
$ac_exeext &&
5676 $as_test_x conftest
$ac_exeext; then
5677 am_cv_func_iconv
=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5685 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5686 conftest
$ac_exeext conftest.
$ac_ext
5687 if test "$am_cv_func_iconv" != yes; then
5688 am_save_LIBS
="$LIBS"
5689 LIBS
="$LIBS $LIBICONV"
5690 cat >conftest.
$ac_ext <<_ACEOF
5693 cat confdefs.h
>>conftest.
$ac_ext
5694 cat >>conftest.
$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5701 iconv_t cd = iconv_open("","");
5702 iconv(cd,NULL,NULL,NULL,NULL);
5708 rm -f conftest.
$ac_objext conftest
$ac_exeext
5709 if { (ac_try
="$ac_link"
5711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_link") 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && {
5722 test -z "$ac_c_werror_flag" ||
5723 test ! -s conftest.err
5724 } && test -s conftest$ac_exeext &&
5725 $as_test_x conftest$ac_exeext; then
5727 am_cv_func_iconv=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5736 conftest$ac_exeext conftest.$ac_ext
5737 LIBS="$am_save_LIBS"
5741 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5742 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
5743 if test "$am_cv_func_iconv" = yes; then
5745 cat >>confdefs.h <<\_ACEOF
5746 #define HAVE_ICONV 1
5750 if test "$am_cv_lib_iconv" = yes; then
5751 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5752 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
5753 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
5754 echo "${ECHO_T}$LIBICONV" >&6; }
5756 CPPFLAGS="$am_save_CPPFLAGS"
5769 acl_save_prefix="$prefix"
5770 prefix="$acl_final_prefix"
5771 acl_save_exec_prefix="$exec_prefix"
5772 exec_prefix="$acl_final_exec_prefix"
5774 eval additional_includedir=\"$includedir\"
5775 eval additional_libdir=\"$libdir\"
5777 exec_prefix="$acl_save_exec_prefix"
5778 prefix="$acl_save_prefix"
5781 # Check whether --with-libintl-prefix was given.
5782 if test "${with_libintl_prefix+set}" = set; then
5783 withval=$with_libintl_prefix;
5784 if test "X$withval" = "Xno"; then
5787 if test "X$withval" = "X"; then
5789 acl_save_prefix="$prefix"
5790 prefix="$acl_final_prefix"
5791 acl_save_exec_prefix="$exec_prefix"
5792 exec_prefix="$acl_final_exec_prefix"
5794 eval additional_includedir=\"$includedir\"
5795 eval additional_libdir=\"$libdir\"
5797 exec_prefix="$acl_save_exec_prefix"
5798 prefix="$acl_save_prefix"
5801 additional_includedir="$withval/include"
5802 additional_libdir="$withval/$acl_libdirstem"
5813 names_already_handled=
5814 names_next_round='intl '
5815 while test -n "$names_next_round"; do
5816 names_this_round="$names_next_round"
5818 for name in $names_this_round; do
5820 for n in $names_already_handled; do
5821 if test "$n" = "$name"; then
5826 if test -z "$already_handled"; then
5827 names_already_handled="$names_already_handled $name"
5828 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5829 eval value=\"\$HAVE_LIB$uppername\"
5830 if test -n "$value"; then
5831 if test "$value" = yes; then
5832 eval value=\"\$LIB$uppername\"
5833 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5834 eval value=\"\$LTLIB$uppername\"
5835 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5844 if test $use_additional = yes; then
5845 if test -n "$shlibext" \
5846 && { test -f "$additional_libdir/lib$name.$shlibext" \
5847 || { test "$shlibext" = dll \
5848 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
5849 found_dir="$additional_libdir"
5850 if test -f "$additional_libdir/lib$name.$shlibext"; then
5851 found_so="$additional_libdir/lib$name.$shlibext"
5853 found_so="$additional_libdir/lib$name.dll.a"
5855 if test -f "$additional_libdir/lib$name.la"; then
5856 found_la="$additional_libdir/lib$name.la"
5859 if test -f "$additional_libdir/lib$name.$libext"; then
5860 found_dir="$additional_libdir"
5861 found_a="$additional_libdir/lib$name.$libext"
5862 if test -f "$additional_libdir/lib$name.la"; then
5863 found_la="$additional_libdir/lib$name.la"
5868 if test "X$found_dir" = "X"; then
5869 for x in $LDFLAGS $LTLIBINTL; do
5871 acl_save_prefix="$prefix"
5872 prefix="$acl_final_prefix"
5873 acl_save_exec_prefix="$exec_prefix"
5874 exec_prefix="$acl_final_exec_prefix"
5876 exec_prefix="$acl_save_exec_prefix"
5877 prefix="$acl_save_prefix"
5881 dir=`echo "X$x" |
sed -e 's/^X-L//'`
5882 if test -n "$shlibext" \
5883 && { test -f "$dir/lib$name.$shlibext" \
5884 || { test "$shlibext" = dll \
5885 && test -f "$dir/lib$name.dll.a"; }; }; then
5887 if test -f "$dir/lib$name.$shlibext"; then
5888 found_so="$dir/lib$name.$shlibext"
5890 found_so="$dir/lib$name.dll.a"
5892 if test -f "$dir/lib$name.la"; then
5893 found_la="$dir/lib$name.la"
5896 if test -f "$dir/lib$name.$libext"; then
5898 found_a="$dir/lib$name.$libext"
5899 if test -f "$dir/lib$name.la"; then
5900 found_la="$dir/lib$name.la"
5906 if test "X$found_dir" != "X"; then
5911 if test "X$found_dir" != "X"; then
5912 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5913 if test "X$found_so" != "X"; then
5914 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5915 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5918 for x in $ltrpathdirs; do
5919 if test "X$x" = "X$found_dir"; then
5924 if test -z "$haveit"; then
5925 ltrpathdirs="$ltrpathdirs $found_dir"
5927 if test "$hardcode_direct" = yes; then
5928 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5930 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5931 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5933 for x in $rpathdirs; do
5934 if test "X$x" = "X$found_dir"; then
5939 if test -z "$haveit"; then
5940 rpathdirs="$rpathdirs $found_dir"
5944 for x in $LDFLAGS $LIBINTL; do
5946 acl_save_prefix="$prefix"
5947 prefix="$acl_final_prefix"
5948 acl_save_exec_prefix="$exec_prefix"
5949 exec_prefix="$acl_final_exec_prefix"
5951 exec_prefix="$acl_save_exec_prefix"
5952 prefix="$acl_save_prefix"
5954 if test "X$x" = "X-L$found_dir"; then
5959 if test -z "$haveit"; then
5960 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5962 if test "$hardcode_minus_L" != no; then
5963 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5965 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5971 if test "X$found_a" != "X"; then
5972 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5974 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5977 additional_includedir=
5978 case "$found_dir" in
5979 */$acl_libdirstem | */$acl_libdirstem/)
5980 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5981 additional_includedir="$basedir/include"
5984 if test "X$additional_includedir" != "X"; then
5985 if test "X$additional_includedir" != "X/usr/include"; then
5987 if test "X$additional_includedir" = "X/usr/local/include"; then
5988 if test -n "$GCC"; then
5990 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5994 if test -z "$haveit"; then
5995 for x in $CPPFLAGS $INCINTL; do
5997 acl_save_prefix="$prefix"
5998 prefix="$acl_final_prefix"
5999 acl_save_exec_prefix="$exec_prefix"
6000 exec_prefix="$acl_final_exec_prefix"
6002 exec_prefix="$acl_save_exec_prefix"
6003 prefix="$acl_save_prefix"
6005 if test "X$x" = "X-I$additional_includedir"; then
6010 if test -z "$haveit"; then
6011 if test -d "$additional_includedir"; then
6012 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6018 if test -n "$found_la"; then
6019 save_libdir="$libdir"
6021 */* | *\\*) . "$found_la" ;;
6022 *) . "./$found_la" ;;
6024 libdir="$save_libdir"
6025 for dep in $dependency_libs; do
6028 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
6029 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6031 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6032 if test -n "$GCC"; then
6034 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6038 if test -z "$haveit"; then
6040 for x in $LDFLAGS $LIBINTL; do
6042 acl_save_prefix="$prefix"
6043 prefix="$acl_final_prefix"
6044 acl_save_exec_prefix="$exec_prefix"
6045 exec_prefix="$acl_final_exec_prefix"
6047 exec_prefix="$acl_save_exec_prefix"
6048 prefix="$acl_save_prefix"
6050 if test "X$x" = "X-L$additional_libdir"; then
6055 if test -z "$haveit"; then
6056 if test -d "$additional_libdir"; then
6057 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6061 for x in $LDFLAGS $LTLIBINTL; do
6063 acl_save_prefix="$prefix"
6064 prefix="$acl_final_prefix"
6065 acl_save_exec_prefix="$exec_prefix"
6066 exec_prefix="$acl_final_exec_prefix"
6068 exec_prefix="$acl_save_exec_prefix"
6069 prefix="$acl_save_prefix"
6071 if test "X$x" = "X-L$additional_libdir"; then
6076 if test -z "$haveit"; then
6077 if test -d "$additional_libdir"; then
6078 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6085 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
6086 if test "$enable_rpath" != no; then
6088 for x in $rpathdirs; do
6089 if test "X$x" = "X$dir"; then
6094 if test -z "$haveit"; then
6095 rpathdirs="$rpathdirs $dir"
6098 for x in $ltrpathdirs; do
6099 if test "X$x" = "X$dir"; then
6104 if test -z "$haveit"; then
6105 ltrpathdirs="$ltrpathdirs $dir"
6110 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
6113 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6116 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6117 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6123 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6124 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6130 if test "X$rpathdirs" != "X"; then
6131 if test -n "$hardcode_libdir_separator"; then
6133 for found_dir in $rpathdirs; do
6134 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6136 acl_save_libdir="$libdir"
6138 eval flag=\"$hardcode_libdir_flag_spec\"
6139 libdir="$acl_save_libdir"
6140 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6142 for found_dir in $rpathdirs; do
6143 acl_save_libdir="$libdir"
6145 eval flag=\"$hardcode_libdir_flag_spec\"
6146 libdir="$acl_save_libdir"
6147 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6151 if test "X$ltrpathdirs" != "X"; then
6152 for found_dir in $ltrpathdirs; do
6153 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6157 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6158 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
6159 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 gt_save_CPPFLAGS="$CPPFLAGS"
6163 CPPFLAGS="$CPPFLAGS $INCINTL"
6164 gt_save_LIBS="$LIBS"
6165 LIBS="$LIBS $LIBINTL"
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <libintl.h>
6173 $gt_revision_test_code
6174 extern int _nl_msg_cat_cntr;
6179 const char *_nl_expand_alias (const char *);
6183 bindtextdomain ("", "");
6184 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (ac_try="$ac_link"
6192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6193 *) ac_try_echo
=$ac_try;;
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_link") 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest
$ac_exeext &&
6206 $as_test_x conftest
$ac_exeext; then
6207 eval "$gt_func_gnugettext_libintl=yes"
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.
$ac_ext >&5
6212 eval "$gt_func_gnugettext_libintl=no"
6215 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6216 conftest
$ac_exeext conftest.
$ac_ext
6217 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6218 LIBS
="$LIBS $LIBICONV"
6219 cat >conftest.
$ac_ext <<_ACEOF
6222 cat confdefs.h
>>conftest.
$ac_ext
6223 cat >>conftest.
$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <libintl.h>
6226 $gt_revision_test_code
6227 extern int _nl_msg_cat_cntr;
6232 const char *_nl_expand_alias (const char *);
6236 bindtextdomain ("", "");
6237 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6242 rm -f conftest.
$ac_objext conftest
$ac_exeext
6243 if { (ac_try
="$ac_link"
6245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest$ac_exeext &&
6259 $as_test_x conftest$ac_exeext; then
6260 LIBINTL="$LIBINTL $LIBICONV"
6261 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6262 eval "$gt_func_gnugettext_libintl=yes"
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6272 conftest$ac_exeext conftest.$ac_ext
6274 CPPFLAGS="$gt_save_CPPFLAGS"
6275 LIBS="$gt_save_LIBS"
6277 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
6278 { echo "$as_me:$LINENO: result: $ac_res" >&5
6279 echo "${ECHO_T}$ac_res" >&6; }
6282 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6283 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6284 && test "$PACKAGE" != gettext-runtime \
6285 && test "$PACKAGE" != gettext-tools; }; then
6286 gt_use_preinstalled_gnugettext=yes
6295 if test -n "$INTL_MACOSX_LIBS"; then
6296 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6297 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6298 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6299 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6303 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6304 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6306 cat >>confdefs.h <<\_ACEOF
6307 #define ENABLE_NLS 1
6315 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
6316 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
6317 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6318 echo "${ECHO_T}$USE_NLS" >&6; }
6319 if test "$USE_NLS" = "yes"; then
6320 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6321 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
6322 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6323 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6324 gt_source="external libintl"
6329 gt_source="included intl directory"
6331 { echo "$as_me:$LINENO: result: $gt_source" >&5
6332 echo "${ECHO_T}$gt_source" >&6; }
6335 if test "$USE_NLS" = "yes"; then
6337 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6338 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6339 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
6340 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
6341 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
6342 echo "${ECHO_T}$LIBINTL" >&6; }
6344 for element in $INCINTL; do
6346 for x in $CPPFLAGS; do
6348 acl_save_prefix="$prefix"
6349 prefix="$acl_final_prefix"
6350 acl_save_exec_prefix="$exec_prefix"
6351 exec_prefix="$acl_final_exec_prefix"
6353 exec_prefix="$acl_save_exec_prefix"
6354 prefix="$acl_save_prefix"
6356 if test "X$x" = "X$element"; then
6361 if test -z "$haveit"; then
6362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6369 cat >>confdefs.h <<\_ACEOF
6370 #define HAVE_GETTEXT 1
6374 cat >>confdefs.h <<\_ACEOF
6375 #define HAVE_DCGETTEXT 1
6394 # Find a good install program. We prefer a C program (faster),
6395 # so one script is as good as another. But avoid the broken or
6396 # incompatible versions:
6397 # SysV /etc/install, /usr/sbin/install
6398 # SunOS /usr/etc/install
6399 # IRIX /sbin/install
6401 # AmigaOS /C/install, which installs bootblocks on floppy discs
6402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6405 # OS/2's system install, which has a completely different semantic
6406 # ./install, which can be erroneously created by make from ./install.sh.
6407 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6408 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6409 if test -z "$INSTALL"; then
6410 if test "${ac_cv_path_install+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 # Account for people who put trailing slashes in PATH elements.
6420 ./ | .// | /cC/* | \
6421 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6422 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6425 # OSF1 and SCO ODT 3.0 have their own names for install.
6426 # Don't use installbsd from OSF since it installs stuff as root
6428 for ac_prog in ginstall scoinst install; do
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6431 if test $ac_prog = install &&
6432 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6433 # AIX install. It has an incompatible calling convention.
6435 elif test $ac_prog = install &&
6436 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6437 # program-specific install script used by HP pwplus--don't use.
6440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6453 if test "${ac_cv_path_install+set}" = set; then
6454 INSTALL=$ac_cv_path_install
6456 # As a last resort, use the slow shell script. Don't cache a
6457 # value for INSTALL within a source directory, because that will
6458 # break other packages using the cache if that directory is
6459 # removed, or if the value is a relative name.
6460 INSTALL=$ac_install_sh
6463 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6464 echo "${ECHO_T}$INSTALL" >&6; }
6466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6467 # It thinks the first close brace ends the variable substitution.
6468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6475 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6485 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6486 inttypes.h stdint.h unistd.h
6488 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 $ac_includes_default
6502 #include <$ac_header>
6504 rm -f conftest.$ac_objext
6505 if { (ac_try="$ac_compile"
6507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6508 *) ac_try_echo
=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6513 grep -v '^ *+' conftest.er1
>conftest.err
6515 cat conftest.err
>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.
$ac_objext; then
6521 eval "$as_ac_Header=yes"
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.
$ac_ext >&5
6526 eval "$as_ac_Header=no"
6529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6531 ac_res
=`eval echo '${'$as_ac_Header'}'`
6532 { echo "$as_me:$LINENO: result: $ac_res" >&5
6533 echo "${ECHO_T}$ac_res" >&6; }
6534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6535 cat >>confdefs.h
<<_ACEOF
6536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 for ac_header
in stdlib.h unistd.h string.h
6549 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6550 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6553 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 ac_res
=`eval echo '${'$as_ac_Header'}'`
6557 { echo "$as_me:$LINENO: result: $ac_res" >&5
6558 echo "${ECHO_T}$ac_res" >&6; }
6560 # Is the header compilable?
6561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6563 cat >conftest.
$ac_ext <<_ACEOF
6566 cat confdefs.h
>>conftest.
$ac_ext
6567 cat >>conftest.
$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6570 #include <$ac_header>
6572 rm -f conftest.
$ac_objext
6573 if { (ac_try
="$ac_compile"
6575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_compile") 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest.$ac_objext; then
6589 ac_header_compiler=yes
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_header_compiler=no
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6599 echo "${ECHO_T}$ac_header_compiler" >&6; }
6601 # Is the header present?
6602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 #include <$ac_header>
6612 if { (ac_try="$ac_cpp conftest.$ac_ext"
6614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6615 *) ac_try_echo
=$ac_try;;
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6620 grep -v '^ *+' conftest.er1
>conftest.err
6622 cat conftest.err
>&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev
/null
&& {
6625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6628 ac_header_preproc
=yes
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.
$ac_ext >&5
6633 ac_header_preproc
=no
6636 rm -f conftest.err conftest.
$ac_ext
6637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6; }
6640 # So? What about this header?
6641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6647 ac_header_preproc
=yes
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6663 ## -------------------------- ##
6664 ## Report this to cirix@fw.hu ##
6665 ## -------------------------- ##
6667 ) |
sed "s/^/$as_me: WARNING: /" >&2
6670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6672 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 eval "$as_ac_Header=\$ac_header_preproc"
6677 ac_res
=`eval echo '${'$as_ac_Header'}'`
6678 { echo "$as_me:$LINENO: result: $ac_res" >&5
6679 echo "${ECHO_T}$ac_res" >&6; }
6682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683 cat >>confdefs.h
<<_ACEOF
6684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6695 for ac_func
in strchr strrchr memset strtol
6697 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6700 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 cat >conftest.
$ac_ext <<_ACEOF
6706 cat confdefs.h
>>conftest.
$ac_ext
6707 cat >>conftest.
$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6711 #define $ac_func innocuous_$ac_func
6713 /* System header to define __stub macros and hopefully few prototypes,
6714 which can conflict with char $ac_func (); below.
6715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6716 <limits.h> exists even on freestanding compilers. */
6719 # include <limits.h>
6721 # include <assert.h>
6726 /* Override any GCC internal prototype to avoid an error.
6727 Use char because int might match the return type of a GCC
6728 builtin and then its argument prototype would still apply. */
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined __stub_$ac_func || defined __stub___$ac_func
6748 rm -f conftest.
$ac_objext conftest
$ac_exeext
6749 if { (ac_try
="$ac_link"
6751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755 (eval "$ac_link") 2>conftest.er1
6757 grep -v '^ *+' conftest.er1 >conftest.err
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } && {
6762 test -z "$ac_c_werror_flag" ||
6763 test ! -s conftest.err
6764 } && test -s conftest$ac_exeext &&
6765 $as_test_x conftest$ac_exeext; then
6766 eval "$as_ac_var=yes"
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 eval "$as_ac_var=no"
6774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6775 conftest$ac_exeext conftest.$ac_ext
6777 ac_res=`eval echo '${'$as_ac_var'}'`
6778 { echo "$as_me:$LINENO: result: $ac_res" >&5
6779 echo "${ECHO_T}$ac_res" >&6; }
6780 if test `eval echo '${'$as_ac_var'}'` = yes; then
6781 cat >>confdefs.h <<_ACEOF
6782 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6788 { echo "$as_me:$LINENO: checking for working memcmp" >&5
6789 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
6790 if test "${ac_cv_func_memcmp_working+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test "$cross_compiling" = yes; then
6794 ac_cv_func_memcmp_working=no
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 $ac_includes_default
6807 /* Some versions of memcmp are not 8-bit clean. */
6808 char c0 = '\100', c1 = '\200', c2 = '\201';
6809 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6812 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6813 or more and with at least one buffer not starting on a 4-byte boundary.
6814 William Lewis provided this test program. */
6819 for (i = 0; i < 4; i++)
6823 strcpy (a, "--------01111111");
6824 strcpy (b, "--------10000000");
6825 if (memcmp (a, b, 16) >= 0)
6835 rm -f conftest$ac_exeext
6836 if { (ac_try="$ac_link"
6838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6839 *) ac_try_echo
=$ac_try;;
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_link") 2>&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6846 { (case "(($ac_try" in
6847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_try") 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_cv_func_memcmp_working=yes
6857 echo "$as_me: program exited with status $ac_status" >&5
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6862 ac_cv_func_memcmp_working=no
6864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6869 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6870 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
6871 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6872 *" memcmp.$ac_objext "* ) ;;
6873 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6880 # Check whether --with-gtk was given.
6881 if test "${with_gtk+set}" = set; then
6882 withval=$with_gtk; with_gtk=$withval
6888 # Check whether --with-sdl was given.
6889 if test "${with_sdl+set}" = set; then
6890 withval=$with_sdl; with_sdl=$withval
6895 # Check whether --enable-sound was given.
6896 if test "${enable_sound+set}" = set; then
6897 enableval=$enable_sound; enable_sound=$enableval
6903 if test x"$with_gtk" = "xno" -a x"$with_sdl" = "xno"; then
6904 { { echo "$as_me:$LINENO: error: You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." >&5
6905 echo "$as_me: error: You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." >&2;}
6906 { (exit 1); exit 1; }; }
6909 if test x"$enable_sound" = "xyes" -a x"$with_sdl" = "xno"; then
6910 { { echo "$as_me:$LINENO: error: Sound support requires the SDL libraries. Rerun with --with-sdl or --disable-sound." >&5
6911 echo "$as_me: error: Sound support requires the SDL libraries. Rerun with --with-sdl or --disable-sound." >&2;}
6912 { (exit 1); exit 1; }; }
6915 # Check whether --enable-glibtest was given.
6916 if test "${enable_glibtest+set}" = set; then
6917 enableval=$enable_glibtest;
6923 pkg_config_args=glib-2.0
6928 pkg_config_args="$pkg_config_args gmodule-2.0"
6931 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
6934 pkg_config_args="$pkg_config_args gobject-2.0"
6937 pkg_config_args="$pkg_config_args gthread-2.0"
6940 pkg_config_args="$pkg_config_args $module-2.0"
6947 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6980 if test -n "$PKG_CONFIG"; then
6981 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6982 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6990 if test -z "$ac_cv_path_PKG_CONFIG"; then
6991 ac_pt_PKG_CONFIG=$PKG_CONFIG
6992 # Extract the first word of "pkg-config", so it can be a program name with args.
6993 set dummy pkg-config; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 case $ac_pt_PKG_CONFIG in
7001 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7023 if test -n "$ac_pt_PKG_CONFIG"; then
7024 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7025 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
7027 { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7031 if test "x$ac_pt_PKG_CONFIG" = x; then
7034 case $cross_compiling:$ac_tool_warned in
7036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7037 whose name does not start with the host triplet. If you think this
7038 configuration is useful to you, please write to autoconf@gnu.org." >&5
7039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7040 whose name does not start with the host triplet. If you think this
7041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7042 ac_tool_warned=yes ;;
7044 PKG_CONFIG=$ac_pt_PKG_CONFIG
7047 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7051 if test -n "$PKG_CONFIG"; then
7052 _pkg_min_version=0.16
7053 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7054 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
7055 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7056 { echo "$as_me:$LINENO: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6; }
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7068 if test "x$PKG_CONFIG" = x ; then
7073 min_glib_version=2.6.0
7074 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
7075 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
7077 if test x$PKG_CONFIG != xno ; then
7078 ## don't try to run the test against uninstalled libtool libs
7079 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7080 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7084 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7091 if test x"$no_glib" = x ; then
7092 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0
`
7093 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0
`
7094 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0
`
7096 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7097 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7098 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7099 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7100 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7101 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7102 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7103 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7104 if test "x$enable_glibtest" = "xyes" ; then
7105 ac_save_CFLAGS="$CFLAGS"
7106 ac_save_LIBS="$LIBS"
7107 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7108 LIBS="$GLIB_LIBS $LIBS"
7110 if test "$cross_compiling" = yes; then
7111 echo $ac_n "cross compiling; assumed OK... $ac_c"
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7127 int major, minor, micro;
7130 system ("touch conf.glibtest");
7132 /* HP/UX 9 (%@#!) writes to sscanf strings */
7133 tmp_version = g_strdup("$min_glib_version");
7134 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7135 printf("%s, bad version string\n", "$min_glib_version");
7139 if ((glib_major_version != $glib_config_major_version) ||
7140 (glib_minor_version != $glib_config_minor_version) ||
7141 (glib_micro_version != $glib_config_micro_version))
7143 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7144 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7145 glib_major_version, glib_minor_version, glib_micro_version);
7146 printf ("*** was found! If pkg-config was correct, then it is best\n");
7147 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7148 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7149 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7150 printf("*** required on your system.\n");
7151 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7152 printf("*** to point to the correct configuration files\n");
7154 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7155 (glib_minor_version != GLIB_MINOR_VERSION) ||
7156 (glib_micro_version != GLIB_MICRO_VERSION))
7158 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7159 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7160 printf("*** library (version %d.%d.%d)\n",
7161 glib_major_version, glib_minor_version, glib_micro_version);
7165 if ((glib_major_version > major) ||
7166 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7167 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7173 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
7174 glib_major_version, glib_minor_version, glib_micro_version);
7175 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
7176 major, minor, micro);
7177 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7179 printf("*** If you have already installed a sufficiently new version, this error\n");
7180 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7181 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7182 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7183 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7184 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7185 printf("*** so that the correct libraries are found at run-time))\n");
7192 rm -f conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7196 *) ac_try_echo
=$ac_try;;
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199 (eval "$ac_link") 2>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7203 { (case "(($ac_try" in
7204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_try") 2>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7214 echo "$as_me: program exited with status $ac_status" >&5
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7225 CFLAGS="$ac_save_CFLAGS"
7226 LIBS="$ac_save_LIBS"
7229 if test "x$no_glib" = x ; then
7230 { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
7231 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
7234 { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7236 if test "$PKG_CONFIG" = "no" ; then
7237 echo "*** A new enough version of pkg-config was not found."
7238 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7240 if test -f conf.glibtest ; then
7243 echo "*** Could not run GLIB test program, checking why..."
7244 ac_save_CFLAGS="$CFLAGS"
7245 ac_save_LIBS="$LIBS"
7246 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7247 LIBS="$LIBS $GLIB_LIBS"
7248 cat >conftest.$ac_ext <<_ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7261 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7266 rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (ac_try="$ac_link"
7269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7270 *) ac_try_echo
=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_link") 2>conftest.er1
7275 grep -v '^ *+' conftest.er1
>conftest.err
7277 cat conftest.err
>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest
$ac_exeext &&
7283 $as_test_x conftest
$ac_exeext; then
7284 echo "*** The test program compiled, but did not run. This usually means"
7285 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7286 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7287 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7288 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7289 echo "*** is required on your system"
7291 echo "*** If you have an old version installed, it is best to remove it, although"
7292 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.
$ac_ext >&5
7297 echo "*** The test program failed to compile or link. See the file config.log for the"
7298 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7301 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7302 conftest
$ac_exeext conftest.
$ac_ext
7303 CFLAGS
="$ac_save_CFLAGS"
7304 LIBS
="$ac_save_LIBS"
7312 { { echo "$as_me:$LINENO: error: Test for GLIB failed. See the file 'INSTALL' for help." >&5
7313 echo "$as_me: error: Test for GLIB failed. See the file 'INSTALL' for help." >&2;}
7314 { (exit 1); exit 1; }; }
7326 if test x
"$with_gtk" = "xyes"; then
7334 if test x
"$with_gtk" = "xyes" ; then
7336 cat >>confdefs.h
<<\_ACEOF
7340 # Check whether --enable-gtktest was given.
7341 if test "${enable_gtktest+set}" = set; then
7342 enableval
=$enable_gtktest;
7348 pkg_config_args
=gtk
+-2.0
7353 pkg_config_args
="$pkg_config_args gthread-2.0"
7360 # Extract the first word of "pkg-config", so it can be a program name with args.
7361 set dummy pkg-config
; ac_word
=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir
=.
7377 for ac_exec_ext
in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7391 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7392 if test -n "$PKG_CONFIG"; then
7393 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7394 echo "${ECHO_T}$PKG_CONFIG" >&6; }
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7402 if test x
$PKG_CONFIG != xno
; then
7403 if pkg-config
--atleast-pkgconfig-version 0.7 ; then
7406 echo "*** pkg-config too old; version 0.7 or better required."
7414 min_gtk_version
=2.12.0
7415 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
7416 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
7418 if test x
$PKG_CONFIG != xno
; then
7419 ## don't try to run the test against uninstalled libtool libs
7420 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7421 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7425 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7432 if test x
"$no_gtk" = x
; then
7433 GTK_CFLAGS
=`$PKG_CONFIG $pkg_config_args --cflags`
7434 GTK_LIBS
=`$PKG_CONFIG $pkg_config_args --libs`
7435 gtk_config_major_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7436 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7437 gtk_config_minor_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7438 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7439 gtk_config_micro_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7440 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7441 if test "x$enable_gtktest" = "xyes" ; then
7442 ac_save_CFLAGS
="$CFLAGS"
7443 ac_save_LIBS
="$LIBS"
7444 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7445 LIBS
="$GTK_LIBS $LIBS"
7447 if test "$cross_compiling" = yes; then
7448 echo $ac_n "cross compiling; assumed OK... $ac_c"
7450 cat >conftest.
$ac_ext <<_ACEOF
7453 cat confdefs.h
>>conftest.
$ac_ext
7454 cat >>conftest.
$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7457 #include <gtk/gtk.h>
7464 int major, minor, micro;
7467 system ("touch conf.gtktest");
7469 /* HP/UX 9 (%@#!) writes to sscanf strings */
7470 tmp_version = g_strdup("$min_gtk_version");
7471 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7472 printf("%s, bad version string\n", "$min_gtk_version");
7476 if ((gtk_major_version != $gtk_config_major_version) ||
7477 (gtk_minor_version != $gtk_config_minor_version) ||
7478 (gtk_micro_version != $gtk_config_micro_version))
7480 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7481 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7482 gtk_major_version, gtk_minor_version, gtk_micro_version);
7483 printf ("*** was found! If pkg-config was correct, then it is best\n");
7484 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7485 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7486 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7487 printf("*** required on your system.\n");
7488 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7489 printf("*** to point to the correct configuration files\n");
7491 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7492 (gtk_minor_version != GTK_MINOR_VERSION) ||
7493 (gtk_micro_version != GTK_MICRO_VERSION))
7495 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7496 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7497 printf("*** library (version %d.%d.%d)\n",
7498 gtk_major_version, gtk_minor_version, gtk_micro_version);
7502 if ((gtk_major_version > major) ||
7503 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7504 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7510 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7511 gtk_major_version, gtk_minor_version, gtk_micro_version);
7512 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7513 major, minor, micro);
7514 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7516 printf("*** If you have already installed a sufficiently new version, this error\n");
7517 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7518 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7519 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7520 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7521 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7522 printf("*** so that the correct libraries are found at run-time))\n");
7529 rm -f conftest
$ac_exeext
7530 if { (ac_try
="$ac_link"
7532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_link") 2>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7540 { (case "(($ac_try" in
7541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7542 *) ac_try_echo
=$ac_try;;
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 (eval "$ac_try") 2>&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7551 echo "$as_me: program exited with status $ac_status" >&5
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.
$ac_ext >&5
7558 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7562 CFLAGS
="$ac_save_CFLAGS"
7563 LIBS
="$ac_save_LIBS"
7566 if test "x$no_gtk" = x
; then
7567 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7568 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7571 { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7573 if test "$PKG_CONFIG" = "no" ; then
7574 echo "*** A new enough version of pkg-config was not found."
7575 echo "*** See http://pkgconfig.sourceforge.net"
7577 if test -f conf.gtktest
; then
7580 echo "*** Could not run GTK+ test program, checking why..."
7581 ac_save_CFLAGS
="$CFLAGS"
7582 ac_save_LIBS
="$LIBS"
7583 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7584 LIBS
="$LIBS $GTK_LIBS"
7585 cat >conftest.
$ac_ext <<_ACEOF
7588 cat confdefs.h
>>conftest.
$ac_ext
7589 cat >>conftest.
$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7592 #include <gtk/gtk.h>
7598 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7603 rm -f conftest.
$ac_objext conftest
$ac_exeext
7604 if { (ac_try
="$ac_link"
7606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext &&
7620 $as_test_x conftest$ac_exeext; then
7621 echo "*** The test program compiled, but did not run. This usually means"
7622 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7623 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7624 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7625 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7626 echo "*** is required on your system"
7628 echo "*** If you have an old version installed, it is best to remove it, although"
7629 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 echo "*** The test program failed to compile or link. See the file config.log for the"
7635 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7639 conftest$ac_exeext conftest.$ac_ext
7640 CFLAGS="$ac_save_CFLAGS"
7641 LIBS="$ac_save_LIBS"
7646 { { echo "$as_me:$LINENO: error: Test for GTK+ failed. See the file 'INSTALL' for help." >&5
7647 echo "$as_me: error: Test for GTK+ failed. See the file 'INSTALL' for help." >&2;}
7648 { (exit 1); exit 1; }; }
7658 if test x"$with_sdl" = "xyes"; then
7666 if test x"$with_sdl" = "xyes" ; then
7668 cat >>confdefs.h <<\_ACEOF
7673 # Check whether --with-sdl-prefix was given.
7674 if test "${with_sdl_prefix+set}" = set; then
7675 withval=$with_sdl_prefix; sdl_prefix="$withval"
7681 # Check whether --with-sdl-exec-prefix was given.
7682 if test "${with_sdl_exec_prefix+set}" = set; then
7683 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7688 # Check whether --enable-sdltest was given.
7689 if test "${enable_sdltest+set}" = set; then
7690 enableval=$enable_sdltest;
7696 if test x$sdl_exec_prefix != x ; then
7697 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
7698 if test x${SDL_CONFIG+set} != xset ; then
7699 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7702 if test x$sdl_prefix != x ; then
7703 sdl_args="$sdl_args --prefix=$sdl_prefix"
7704 if test x${SDL_CONFIG+set} != xset ; then
7705 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7709 if test "x$prefix" != xNONE; then
7710 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7712 # Extract the first word of "sdl-config", so it can be a program name with args.
7713 set dummy sdl-config; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7743 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7744 if test -n "$SDL_CONFIG"; then
7745 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
7746 echo "${ECHO_T}$SDL_CONFIG" >&6; }
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 min_sdl_version=1.2.0
7754 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
7755 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
7757 if test "$SDL_CONFIG" = "no" ; then
7760 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
7761 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
7763 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
7764 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7765 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
7766 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7767 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7769 if test "x$enable_sdltest" = "xyes" ; then
7770 ac_save_CFLAGS="$CFLAGS"
7771 ac_save_CXXFLAGS="$CXXFLAGS"
7772 ac_save_LIBS="$LIBS"
7773 CFLAGS="$CFLAGS $SDL_CFLAGS"
7774 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7775 LIBS="$LIBS $SDL_LIBS"
7777 if test "$cross_compiling" = yes; then
7778 echo $ac_n "cross compiling; assumed OK... $ac_c"
7780 cat >conftest.$ac_ext <<_ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7793 my_strdup (char *str)
7799 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7800 strcpy (new_str, str);
7808 int main (int argc, char *argv[])
7810 int major, minor, micro;
7813 /* This hangs on some systems (?)
7814 system ("touch conf.sdltest");
7816 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7818 /* HP/UX 9 (%@#!) writes to sscanf strings */
7819 tmp_version = my_strdup("$min_sdl_version");
7820 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7821 printf("%s, bad version string\n", "$min_sdl_version");
7825 if (($sdl_major_version > major) ||
7826 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7827 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7833 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7834 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7835 printf("*** best to upgrade to the required version.\n");
7836 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7837 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7838 printf("*** config.cache before re-running configure\n");
7845 rm -f conftest$ac_exeext
7846 if { (ac_try="$ac_link"
7848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7849 *) ac_try_echo
=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_link") 2>&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7856 { (case "(($ac_try" in
7857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_try") 2>&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7867 echo "$as_me: program exited with status $ac_status" >&5
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7878 CFLAGS="$ac_save_CFLAGS"
7879 CXXFLAGS="$ac_save_CXXFLAGS"
7880 LIBS="$ac_save_LIBS"
7883 if test "x$no_sdl" = x ; then
7884 { echo "$as_me:$LINENO: result: yes" >&5
7885 echo "${ECHO_T}yes" >&6; }
7888 { echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6; }
7890 if test "$SDL_CONFIG" = "no" ; then
7891 echo "*** The sdl-config script installed by SDL could not be found"
7892 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7893 echo "*** your path, or set the SDL_CONFIG environment variable to the"
7894 echo "*** full path to sdl-config."
7896 if test -f conf.sdltest ; then
7899 echo "*** Could not run SDL test program, checking why..."
7900 CFLAGS="$CFLAGS $SDL_CFLAGS"
7901 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7902 LIBS="$LIBS $SDL_LIBS"
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7913 int main(int argc, char *argv[])
7916 #define main K_and_R_C_main
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (ac_try="$ac_link"
7929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7930 *) ac_try_echo
=$ac_try;;
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_link") 2>conftest.er1
7935 grep -v '^ *+' conftest.er1
>conftest.err
7937 cat conftest.err
>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest
$ac_exeext &&
7943 $as_test_x conftest
$ac_exeext; then
7944 echo "*** The test program compiled, but did not run. This usually means"
7945 echo "*** that the run-time linker is not finding SDL or finding the wrong"
7946 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7947 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7948 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7949 echo "*** is required on your system"
7951 echo "*** If you have an old version installed, it is best to remove it, although"
7952 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.
$ac_ext >&5
7957 echo "*** The test program failed to compile or link. See the file config.log for the"
7958 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7959 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7960 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7963 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7964 conftest
$ac_exeext conftest.
$ac_ext
7965 CFLAGS
="$ac_save_CFLAGS"
7966 CXXFLAGS
="$ac_save_CXXFLAGS"
7967 LIBS
="$ac_save_LIBS"
7972 { { echo "$as_me:$LINENO: error: Test for SDL failed. See the file 'INSTALL' for help." >&5
7973 echo "$as_me: error: Test for SDL failed. See the file 'INSTALL' for help." >&2;}
7974 { (exit 1); exit 1; }; }
7984 if test x
"$enable_sound" = "xyes"; then
7992 if test x
"$enable_sound" = "xyes" ; then
7994 cat >>confdefs.h
<<\_ACEOF
8000 ac_config_files
="$ac_config_files Makefile po/Makefile.in include/Makefile src/Makefile caves/Makefile util/Makefile docs/Makefile sound/Makefile"
8002 cat >confcache
<<\_ACEOF
8003 # This file is a shell script that caches the results of configure
8004 # tests run on this system so they can be shared between configure
8005 # scripts and configure runs, see configure's option --config-cache.
8006 # It is not useful on other systems. If it contains results you don't
8007 # want to keep, you may remove or edit it.
8009 # config.status only pays attention to the cache file if you give it
8010 # the --recheck option to rerun configure.
8012 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8013 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8018 # The following way of writing the cache mishandles newlines in values,
8019 # but we know of no workaround that is simple, portable, and efficient.
8020 # So, we kill variables containing newlines.
8021 # Ultrix sh set writes to stderr and can't be redirected directly,
8022 # and sets the high bit in the cache file unless we assign to the vars.
8024 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8025 eval ac_val
=\$
$ac_var
8029 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8030 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8033 _ | IFS | as_nl
) ;; #(
8034 *) $as_unset $ac_var ;;
8040 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8041 *${as_nl}ac_space
=\
*)
8042 # `set' does not quote correctly, so add quotes (double-quote
8043 # substitution turns \\\\ into \\, and sed turns \\ into \).
8046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8049 # `set' quotes correctly as required by POSIX, so do not add quotes.
8050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8063 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8064 if test -w "$cache_file"; then
8065 test "x$cache_file" != "x/dev/null" &&
8066 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8067 echo "$as_me: updating cache $cache_file" >&6;}
8068 cat confcache
>$cache_file
8070 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8071 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8076 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8077 # Let make expand exec_prefix.
8078 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8080 DEFS
=-DHAVE_CONFIG_H
8084 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8085 # 1. Remove the extension, and $U if already installed.
8086 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8087 ac_i
=`echo "$ac_i" | sed "$ac_script"`
8088 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8089 # will be set to the directory where LIBOBJS objects are built.
8090 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8091 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8095 LTLIBOBJS
=$ac_ltlibobjs
8098 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8099 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8100 Usually this means the macro was only invoked conditionally." >&5
8101 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8102 Usually this means the macro was only invoked conditionally." >&2;}
8103 { (exit 1); exit 1; }; }
8105 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8106 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8107 Usually this means the macro was only invoked conditionally." >&5
8108 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8109 Usually this means the macro was only invoked conditionally." >&2;}
8110 { (exit 1); exit 1; }; }
8112 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8113 { { echo "$as_me:$LINENO: error: conditional \"GTK\" was never defined.
8114 Usually this means the macro was only invoked conditionally." >&5
8115 echo "$as_me: error: conditional \"GTK\" was never defined.
8116 Usually this means the macro was only invoked conditionally." >&2;}
8117 { (exit 1); exit 1; }; }
8119 if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
8120 { { echo "$as_me:$LINENO: error: conditional \"SDL\" was never defined.
8121 Usually this means the macro was only invoked conditionally." >&5
8122 echo "$as_me: error: conditional \"SDL\" was never defined.
8123 Usually this means the macro was only invoked conditionally." >&2;}
8124 { (exit 1); exit 1; }; }
8126 if test -z "${SOUND_TRUE}" && test -z "${SOUND_FALSE}"; then
8127 { { echo "$as_me:$LINENO: error: conditional \"SOUND\" was never defined.
8128 Usually this means the macro was only invoked conditionally." >&5
8129 echo "$as_me: error: conditional \"SOUND\" was never defined.
8130 Usually this means the macro was only invoked conditionally." >&2;}
8131 { (exit 1); exit 1; }; }
8134 : ${CONFIG_STATUS=./config.status}
8135 ac_clean_files_save
=$ac_clean_files
8136 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8137 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8138 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8139 cat >$CONFIG_STATUS <<_ACEOF
8141 # Generated by $as_me.
8142 # Run this file to recreate the current configuration.
8143 # Compiler output produced by configure, useful for debugging
8144 # configure, is in config.log if it exists.
8149 SHELL=\${CONFIG_SHELL-$SHELL}
8152 cat >>$CONFIG_STATUS <<\_ACEOF
8153 ## --------------------- ##
8154 ## M4sh Initialization. ##
8155 ## --------------------- ##
8157 # Be more Bourne compatible
8158 DUALCASE
=1; export DUALCASE
# for MKS sh
8159 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8163 # is contrary to our usage. Disable this feature.
8164 alias -g '${1+"$@"}'='"$@"'
8165 setopt NO_GLOB_SUBST
8167 case `(set -o) 2>/dev/null` in
8168 *posix
*) set -o posix
;;
8177 # Avoid depending upon Character Ranges.
8178 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8179 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8180 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8181 as_cr_digits
='0123456789'
8182 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8184 # The user is always right.
8185 if test "${PATH_SEPARATOR+set}" != set; then
8186 echo "#! /bin/sh" >conf$$.sh
8187 echo "exit 0" >>conf$$.sh
8189 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8197 # Support unset when possible.
8198 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8206 # We need space, tab and new line, in precisely that order. Quoting is
8207 # there to prevent editors from complaining about space-tab.
8208 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8209 # splitting by setting IFS to empty value.)
8214 # Find who we are. Look in the path if we contain no directory separator.
8216 *[\\/]* ) as_myself
=$0 ;;
8217 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir
=.
8222 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8228 # We did not find ourselves, most probably we were run as `sh COMMAND'
8229 # in which case we are not to be found in the path.
8230 if test "x$as_myself" = x
; then
8233 if test ! -f "$as_myself"; then
8234 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8235 { (exit 1); exit 1; }
8238 # Work around bugs in pre-3.0 UWIN ksh.
8239 for as_var
in ENV MAIL MAILPATH
8240 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8248 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8249 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8250 LC_TELEPHONE LC_TIME
8252 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8253 eval $as_var=C
; export $as_var
8255 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8259 # Required to use basename.
8260 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8261 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8267 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8268 as_basename
=basename
8274 # Name of the executable.
8275 as_me
=`$as_basename -- "$0" ||
8276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8277 X"$0" : 'X\(//\)$' \| \
8278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8280 sed '/^.*\/\([^/][^/]*\)\/*$/{
8301 test "x$as_lineno_1" != "x$as_lineno_2" &&
8302 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8304 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8305 # uniformly replaced by the line number. The first 'sed' inserts a
8306 # line-number line after each line using $LINENO; the second 'sed'
8307 # does the real work. The second script uses 'N' to pair each
8308 # line-number line with the line containing $LINENO, and appends
8309 # trailing '-' during substitution so that $LINENO is not a special
8311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8312 # scripts with optimization help from Paolo Bonzini. Blame Lee
8313 # E. McMahon (1931-1989) for sed's syntax. :-)
8325 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8329 chmod +x
"$as_me.lineno" ||
8330 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8331 { (exit 1); exit 1; }; }
8333 # Don't try to exec as it changes $[0], causing all sort of problems
8334 # (the dirname of $[0] is not the place where we might find the
8335 # original and so on. Autoconf is especially sensitive to this).
8337 # Exit status is that of the last command.
8342 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8348 ECHO_C
= ECHO_N
= ECHO_T
=
8351 case `echo 'x\c'` in
8352 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8359 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8360 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8366 rm -f conf$$ conf$$.exe conf$$.
file
8367 if test -d conf$$.dir
; then
8368 rm -f conf$$.dir
/conf$$.
file
8374 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8376 # ... but there are two gotchas:
8377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8379 # In both cases, we have to default to `cp -p'.
8380 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8382 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8387 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8388 rmdir conf$$.dir
2>/dev
/null
8390 if mkdir
-p .
2>/dev
/null
; then
8393 test -d .
/-p && rmdir .
/-p
8397 if test -x / >/dev
/null
2>&1; then
8400 if ls -dL / >/dev
/null
2>&1; then
8407 if test -d "$1"; then
8413 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8414 ???[sx]*):;;*)false;;esac;fi
8418 as_executable_p
=$as_test_x
8420 # Sed expression to map a string onto a valid CPP name.
8421 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8423 # Sed expression to map a string onto a valid variable name.
8424 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8429 # Save the log message, to keep $[0] and so on meaningful, and to
8430 # report actual input values of CONFIG_FILES etc. instead of their
8431 # values after options handling.
8433 This file was extended by GDash $as_me 20080916, which was
8434 generated by GNU Autoconf 2.61. Invocation command line was
8436 CONFIG_FILES = $CONFIG_FILES
8437 CONFIG_HEADERS = $CONFIG_HEADERS
8438 CONFIG_LINKS = $CONFIG_LINKS
8439 CONFIG_COMMANDS = $CONFIG_COMMANDS
8442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8447 cat >>$CONFIG_STATUS <<_ACEOF
8448 # Files that config.status was made for.
8449 config_files="$ac_config_files"
8450 config_headers="$ac_config_headers"
8451 config_commands="$ac_config_commands"
8455 cat >>$CONFIG_STATUS <<\_ACEOF
8457 \`$as_me' instantiates files from templates according to the
8458 current configuration.
8460 Usage: $0 [OPTIONS] [FILE]...
8462 -h, --help print this help, then exit
8463 -V, --version print version number and configuration settings, then exit
8464 -q, --quiet do not print progress messages
8465 -d, --debug don't remove temporary files
8466 --recheck update $as_me by reconfiguring in the same conditions
8467 --file=FILE[:TEMPLATE]
8468 instantiate the configuration file FILE
8469 --header=FILE[:TEMPLATE]
8470 instantiate the configuration header FILE
8472 Configuration files:
8475 Configuration headers:
8478 Configuration commands:
8481 Report bugs to <bug-autoconf@gnu.org>."
8484 cat >>$CONFIG_STATUS <<_ACEOF
8486 GDash config.status 20080916
8487 configured by $0, generated by GNU Autoconf 2.61,
8488 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8490 Copyright (C) 2006 Free Software Foundation, Inc.
8491 This config.status script is free software; the Free Software Foundation
8492 gives unlimited permission to copy, distribute and modify it."
8499 cat >>$CONFIG_STATUS <<\_ACEOF
8500 # If no file are specified by the user, then we need to provide default
8501 # value. By we need to know if files were specified by the user.
8507 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8508 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8519 # Handling of the options.
8520 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8522 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8523 echo "$ac_cs_version"; exit ;;
8524 --debug |
--debu |
--deb |
--de |
--d |
-d )
8526 --file |
--fil |
--fi |
--f )
8528 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8529 ac_need_defaults
=false
;;
8530 --header |
--heade |
--head |
--hea )
8532 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8533 ac_need_defaults
=false
;;
8535 # Conflict between --help and --header
8536 { echo "$as_me: error: ambiguous option: $1
8537 Try \`$0 --help' for more information." >&2
8538 { (exit 1); exit 1; }; };;
8539 --help |
--hel |
-h )
8540 echo "$ac_cs_usage"; exit ;;
8541 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8542 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8546 -*) { echo "$as_me: error: unrecognized option: $1
8547 Try \`$0 --help' for more information." >&2
8548 { (exit 1); exit 1; }; } ;;
8550 *) ac_config_targets
="$ac_config_targets $1"
8551 ac_need_defaults
=false
;;
8557 ac_configure_extra_args
=
8559 if $ac_cs_silent; then
8561 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8565 cat >>$CONFIG_STATUS <<_ACEOF
8566 if \$ac_cs_recheck; then
8567 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8570 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8574 cat >>$CONFIG_STATUS <<\_ACEOF
8578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8579 ## Running $as_me. ##
8585 cat >>$CONFIG_STATUS <<_ACEOF
8589 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8590 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8591 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8592 # from automake < 1.5.
8593 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8594 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8595 LINGUAS="${LINGUAS-%UNSET%}"
8600 cat >>$CONFIG_STATUS <<\_ACEOF
8602 # Handling of arguments.
8603 for ac_config_target
in $ac_config_targets
8605 case $ac_config_target in
8606 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8607 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8608 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
8609 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8610 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8611 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
8612 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8613 "caves/Makefile") CONFIG_FILES
="$CONFIG_FILES caves/Makefile" ;;
8614 "util/Makefile") CONFIG_FILES
="$CONFIG_FILES util/Makefile" ;;
8615 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
8616 "sound/Makefile") CONFIG_FILES
="$CONFIG_FILES sound/Makefile" ;;
8618 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8619 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8620 { (exit 1); exit 1; }; };;
8625 # If the user did not use the arguments to specify the items to instantiate,
8626 # then the envvar interface is used. Set only those that are not.
8627 # We use the long form for the default assignment because of an extremely
8628 # bizarre bug on SunOS 4.1.3.
8629 if $ac_need_defaults; then
8630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8635 # Have a temporary directory for convenience. Make it in the build tree
8636 # simply because there is no reason against having it here, and in addition,
8637 # creating and moving files from /tmp can sometimes cause problems.
8638 # Hook for its removal unless debugging.
8639 # Note that there is a small window in which the directory will not be cleaned:
8640 # after its creation but before its name has been assigned to `$tmp'.
8644 trap 'exit_status=$?
8645 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8647 trap '{ (exit 1); exit 1; }' 1 2 13 15
8649 # Create a (secure) tmp directory for tmp files.
8652 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8653 test -n "$tmp" && test -d "$tmp"
8656 tmp
=.
/conf$$
-$RANDOM
8657 (umask 077 && mkdir
"$tmp")
8660 echo "$me: cannot create a temporary directory in ." >&2
8661 { (exit 1); exit 1; }
8665 # Set up the sed scripts for CONFIG_FILES section.
8668 # No need to generate the scripts if there are no CONFIG_FILES.
8669 # This happens for instance when ./config.status config.h
8670 if test -n "$CONFIG_FILES"; then
8677 for ac_last_try
in false false false false false
:; do
8678 cat >conf$
$subs.
sed <<_ACEOF
8679 SHELL!$SHELL$ac_delim
8680 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8681 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8682 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8683 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8684 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8685 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8686 exec_prefix!$exec_prefix$ac_delim
8687 prefix!$prefix$ac_delim
8688 program_transform_name!$program_transform_name$ac_delim
8689 bindir!$bindir$ac_delim
8690 sbindir!$sbindir$ac_delim
8691 libexecdir!$libexecdir$ac_delim
8692 datarootdir!$datarootdir$ac_delim
8693 datadir!$datadir$ac_delim
8694 sysconfdir!$sysconfdir$ac_delim
8695 sharedstatedir!$sharedstatedir$ac_delim
8696 localstatedir!$localstatedir$ac_delim
8697 includedir!$includedir$ac_delim
8698 oldincludedir!$oldincludedir$ac_delim
8699 docdir!$docdir$ac_delim
8700 infodir!$infodir$ac_delim
8701 htmldir!$htmldir$ac_delim
8702 dvidir!$dvidir$ac_delim
8703 pdfdir!$pdfdir$ac_delim
8704 psdir!$psdir$ac_delim
8705 libdir!$libdir$ac_delim
8706 localedir!$localedir$ac_delim
8707 mandir!$mandir$ac_delim
8709 ECHO_C!$ECHO_C$ac_delim
8710 ECHO_N!$ECHO_N$ac_delim
8711 ECHO_T!$ECHO_T$ac_delim
8713 build_alias!$build_alias$ac_delim
8714 host_alias!$host_alias$ac_delim
8715 target_alias!$target_alias$ac_delim
8716 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8717 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8718 INSTALL_DATA!$INSTALL_DATA$ac_delim
8719 CYGPATH_W!$CYGPATH_W$ac_delim
8720 PACKAGE!$PACKAGE$ac_delim
8721 VERSION!$VERSION$ac_delim
8722 ACLOCAL!$ACLOCAL$ac_delim
8723 AUTOCONF!$AUTOCONF$ac_delim
8724 AUTOMAKE!$AUTOMAKE$ac_delim
8725 AUTOHEADER!$AUTOHEADER$ac_delim
8726 MAKEINFO!$MAKEINFO$ac_delim
8727 install_sh!$install_sh$ac_delim
8728 STRIP!$STRIP$ac_delim
8729 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8730 mkdir_p!$mkdir_p$ac_delim
8732 SET_MAKE!$SET_MAKE$ac_delim
8733 am__leading_dot!$am__leading_dot$ac_delim
8734 AMTAR!$AMTAR$ac_delim
8735 am__tar!$am__tar$ac_delim
8736 am__untar!$am__untar$ac_delim
8738 CFLAGS!$CFLAGS$ac_delim
8739 LDFLAGS!$LDFLAGS$ac_delim
8740 CPPFLAGS!$CPPFLAGS$ac_delim
8741 ac_ct_CC!$ac_ct_CC$ac_delim
8742 EXEEXT!$EXEEXT$ac_delim
8743 OBJEXT!$OBJEXT$ac_delim
8744 DEPDIR!$DEPDIR$ac_delim
8745 am__include!$am__include$ac_delim
8746 am__quote!$am__quote$ac_delim
8747 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8748 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8749 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8750 CCDEPMODE!$CCDEPMODE$ac_delim
8751 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8752 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8755 EGREP!$EGREP$ac_delim
8756 USE_NLS!$USE_NLS$ac_delim
8757 MSGFMT!$MSGFMT$ac_delim
8758 GMSGFMT!$GMSGFMT$ac_delim
8759 MSGFMT_015!$MSGFMT_015$ac_delim
8760 GMSGFMT_015!$GMSGFMT_015$ac_delim
8761 XGETTEXT!$XGETTEXT$ac_delim
8762 XGETTEXT_015!$XGETTEXT_015$ac_delim
8763 MSGMERGE!$MSGMERGE$ac_delim
8764 build!$build$ac_delim
8765 build_cpu!$build_cpu$ac_delim
8766 build_vendor!$build_vendor$ac_delim
8767 build_os!$build_os$ac_delim
8769 host_cpu!$host_cpu$ac_delim
8770 host_vendor!$host_vendor$ac_delim
8771 host_os!$host_os$ac_delim
8772 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
8773 LIBICONV!$LIBICONV$ac_delim
8774 LTLIBICONV!$LTLIBICONV$ac_delim
8775 INTLLIBS!$INTLLIBS$ac_delim
8778 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8780 elif $ac_last_try; then
8781 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8782 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8783 { (exit 1); exit 1; }; }
8785 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
8789 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8790 if test -n "$ac_eof"; then
8791 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
8792 ac_eof
=`expr $ac_eof + 1`
8795 cat >>$CONFIG_STATUS <<_ACEOF
8796 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8800 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8801 s/^/s,@/; s/!/@,|#_!!_#|/
8804 s/'"$ac_delim"'$/,g/; t
8806 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8807 ' >>$CONFIG_STATUS <conf$
$subs.
sed
8808 rm -f conf$
$subs.
sed
8809 cat >>$CONFIG_STATUS <<_ACEOF
8815 for ac_last_try
in false false false false false
:; do
8816 cat >conf$
$subs.
sed <<_ACEOF
8817 LIBINTL!$LIBINTL$ac_delim
8818 LTLIBINTL!$LTLIBINTL$ac_delim
8819 POSUB!$POSUB$ac_delim
8820 LIBOBJS!$LIBOBJS$ac_delim
8821 PKG_CONFIG!$PKG_CONFIG$ac_delim
8822 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
8823 GLIB_LIBS!$GLIB_LIBS$ac_delim
8824 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
8825 GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
8826 GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
8827 GTK_TRUE!$GTK_TRUE$ac_delim
8828 GTK_FALSE!$GTK_FALSE$ac_delim
8829 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
8830 GTK_LIBS!$GTK_LIBS$ac_delim
8831 SDL_TRUE!$SDL_TRUE$ac_delim
8832 SDL_FALSE!$SDL_FALSE$ac_delim
8833 SDL_CONFIG!$SDL_CONFIG$ac_delim
8834 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
8835 SDL_LIBS!$SDL_LIBS$ac_delim
8836 SOUND_TRUE!$SOUND_TRUE$ac_delim
8837 SOUND_FALSE!$SOUND_FALSE$ac_delim
8838 LTLIBOBJS!$LTLIBOBJS$ac_delim
8841 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
8843 elif $ac_last_try; then
8844 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8845 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8846 { (exit 1); exit 1; }; }
8848 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
8852 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8853 if test -n "$ac_eof"; then
8854 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
8855 ac_eof
=`expr $ac_eof + 1`
8858 cat >>$CONFIG_STATUS <<_ACEOF
8859 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8863 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8864 s/^/s,@/; s/!/@,|#_!!_#|/
8867 s/'"$ac_delim"'$/,g/; t
8869 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8870 ' >>$CONFIG_STATUS <conf$
$subs.
sed
8871 rm -f conf$
$subs.
sed
8872 cat >>$CONFIG_STATUS <<_ACEOF
8879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8881 # trailing colons and then remove the whole line if VPATH becomes empty
8882 # (actually we leave an empty line to preserve line numbers).
8883 if test "x$srcdir" = x.
; then
8884 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8888 s/^\([^=]*=[ ]*\):*/\1/
8894 cat >>$CONFIG_STATUS <<\_ACEOF
8895 fi # test -n "$CONFIG_FILES"
8898 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
8901 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8903 case $ac_mode$ac_tag in
8905 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8906 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8907 { (exit 1); exit 1; }; };;
8908 :[FH
]-) ac_tag
=-:-;;
8909 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8926 -) ac_f
="$tmp/stdin";;
8927 *) # Look for the file first in the build tree, then in the source tree
8928 # (if the path is not absolute). The absolute path cannot be DOS-style,
8929 # because $ac_f cannot contain `:'.
8933 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8935 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8936 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8937 { (exit 1); exit 1; }; };;
8939 ac_file_inputs
="$ac_file_inputs $ac_f"
8942 # Let's still pretend it is `configure' which instantiates (i.e., don't
8943 # use $as_me), people would be surprised to read:
8944 # /* config.h. Generated by config.status. */
8945 configure_input
="Generated from "`IFS=:
8946 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8947 if test x
"$ac_file" != x-
; then
8948 configure_input
="$ac_file. $configure_input"
8949 { echo "$as_me:$LINENO: creating $ac_file" >&5
8950 echo "$as_me: creating $ac_file" >&6;}
8954 *:-:* |
*:-) cat >"$tmp/stdin";;
8959 ac_dir
=`$as_dirname -- "$ac_file" ||
8960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8961 X"$ac_file" : 'X\(//\)[^/]' \| \
8962 X"$ac_file" : 'X\(//\)$' \| \
8963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8984 -*) as_dir
=.
/$as_dir;;
8986 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
8990 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8991 *) as_qdir
=$as_dir;;
8993 as_dirs
="'$as_qdir' $as_dirs"
8994 as_dir
=`$as_dirname -- "$as_dir" ||
8995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8996 X"$as_dir" : 'X\(//\)[^/]' \| \
8997 X"$as_dir" : 'X\(//\)$' \| \
8998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9017 test -d "$as_dir" && break
9019 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9020 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9021 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9022 { (exit 1); exit 1; }; }; }
9026 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9028 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9029 # A ".." for each directory in $ac_dir_suffix.
9030 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9031 case $ac_top_builddir_sub in
9032 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9033 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9036 ac_abs_top_builddir
=$ac_pwd
9037 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9038 # for backward compatibility:
9039 ac_top_builddir
=$ac_top_build_prefix
9042 .
) # We are building in place.
9044 ac_top_srcdir
=$ac_top_builddir_sub
9045 ac_abs_top_srcdir
=$ac_pwd ;;
9046 [\\/]* | ?
:[\\/]* ) # Absolute name.
9047 ac_srcdir
=$srcdir$ac_dir_suffix;
9048 ac_top_srcdir
=$srcdir
9049 ac_abs_top_srcdir
=$srcdir ;;
9051 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9052 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9053 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9055 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9065 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9066 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9070 cat >>$CONFIG_STATUS <<\_ACEOF
9071 # If the template does not know about datarootdir, expand it.
9072 # FIXME: This hack should be removed a few years after 2.60.
9073 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9075 case `sed -n '/datarootdir/ {
9084 ' $ac_file_inputs` in
9085 *datarootdir
*) ac_datarootdir_seen
=yes;;
9086 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9087 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9088 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9090 cat >>$CONFIG_STATUS <<_ACEOF
9091 ac_datarootdir_hack='
9092 s&@datadir@&$datadir&g
9093 s&@docdir@&$docdir&g
9094 s&@infodir@&$infodir&g
9095 s&@localedir@&$localedir&g
9096 s&@mandir@&$mandir&g
9097 s&\\\${datarootdir}&$datarootdir&g' ;;
9101 # Neutralize VPATH when `$srcdir' = `.'.
9102 # Shell code in configure.ac might set extrasub.
9103 # FIXME: do we really want to maintain this feature?
9104 cat >>$CONFIG_STATUS <<_ACEOF
9108 cat >>$CONFIG_STATUS <<\_ACEOF
9110 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9111 s
&@configure_input@
&$configure_input&;t t
9112 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9113 s
&@srcdir@
&$ac_srcdir&;t t
9114 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9115 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9116 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9117 s
&@builddir@
&$ac_builddir&;t t
9118 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9119 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9120 s
&@INSTALL@
&$ac_INSTALL&;t t
9121 $ac_datarootdir_hack
9122 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
9124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9125 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9127 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9128 which seems to be undefined. Please make sure it is defined." >&5
9129 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9130 which seems to be undefined. Please make sure it is defined." >&2;}
9134 -) cat "$tmp/out"; rm -f "$tmp/out";;
9135 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9144 # Transform confdefs.h into a sed script `conftest.defines', that
9145 # substitutes the proper values into config.h.in to produce config.h.
9146 rm -f conftest.defines conftest.
tail
9147 # First, append a space to every undef/define line, to ease matching.
9148 echo 's/$/ /' >conftest.defines
9149 # Then, protect against being on the right side of a sed subst, or in
9150 # an unquoted here document, in config.status. If some macros were
9151 # called several times there might be several #defines for the same
9152 # symbol, which is useless. But do not sort them, since the last
9153 # AC_DEFINE must be honored.
9154 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9155 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9156 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9157 # PARAMS is the parameter list in the macro definition--in most cases, it's
9158 # just an empty string.
9159 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9160 ac_dB
='\\)[ (].*,\\1define\\2'
9168 s/^[ ]*#[ ]*define[ ][ ]*//
9173 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9174 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9175 ' >>conftest.defines
9177 # Remove the space that was appended to ease matching.
9178 # Then replace #undef with comments. This is necessary, for
9179 # example, in the case of _POSIX_SOURCE, which is predefined and required
9180 # on some systems where configure will not decide to define it.
9181 # (The regexp can be short, since the line contains either #define or #undef.)
9183 s,^[ #]*u.*,/* & */,' >>conftest.defines
9185 # Break up conftest.defines:
9188 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9189 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9190 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9192 ac_in
='$ac_file_inputs'
9193 ac_out
='"$tmp/out1"'
9194 ac_nxt
='"$tmp/out2"'
9198 # Write a here document:
9199 cat >>$CONFIG_STATUS <<_ACEOF
9200 # First, check the format of the line:
9201 cat >"\$tmp/defines.sed" <<\\CEOF
9202 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9203 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9207 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9209 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9210 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9211 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9212 grep . conftest.
tail >/dev
/null ||
break
9213 rm -f conftest.defines
9214 mv conftest.
tail conftest.defines
9216 rm -f conftest.defines conftest.
tail
9218 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9219 cat >>$CONFIG_STATUS <<\_ACEOF
9220 if test x
"$ac_file" != x-
; then
9221 echo "/* $configure_input */" >"$tmp/config.h"
9222 cat "$ac_result" >>"$tmp/config.h"
9223 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9224 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9225 echo "$as_me: $ac_file is unchanged" >&6;}
9228 mv "$tmp/config.h" $ac_file
9231 echo "/* $configure_input */"
9235 # Compute $ac_file's index in $config_headers.
9237 for _am_header
in $config_headers :; do
9239 $ac_file |
$ac_file:* )
9242 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
9245 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
9246 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9247 X$ac_file : 'X\(//\)[^/]' \| \
9248 X$ac_file : 'X\(//\)$' \| \
9249 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
9251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9267 s/.*/./; q'`/stamp-h
$_am_stamp_count
9270 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9271 echo "$as_me: executing $ac_file commands" >&6;}
9276 case $ac_file$ac_mode in
9277 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
9278 # Strip MF so we end up with the name of the file.
9279 mf
=`echo "$mf" | sed -e 's/:.*$//'`
9280 # Check whether this is an Automake generated Makefile or not.
9281 # We used to match only the files named `Makefile.in', but
9282 # some people rename them; so instead we look at the file content.
9283 # Grep'ing the first line is not enough: some people post-process
9284 # each Makefile.in and add a new line on top of each file to say so.
9285 # So let's grep whole file.
9286 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
9287 dirpart
=`$as_dirname -- "$mf" ||
9288 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9289 X"$mf" : 'X\(//\)[^/]' \| \
9290 X"$mf" : 'X\(//\)$' \| \
9291 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9313 # Extract the definition of DEPDIR, am__include, and am__quote
9314 # from the Makefile without running `make'.
9315 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
9316 test -z "$DEPDIR" && continue
9317 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
9318 test -z "am__include" && continue
9319 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
9320 # When using ansi2knr, U may be empty or an underscore; expand it
9321 U
=`sed -n 's/^U = //p' < "$mf"`
9322 # Find all dependency output files, they are included files with
9323 # $(DEPDIR) in their names. We invoke sed twice because it is the
9324 # simplest approach to changing $(DEPDIR) to its actual value in the
9326 for file in `sed -n "
9327 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9328 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9329 # Make sure the directory exists.
9330 test -f "$dirpart/$file" && continue
9331 fdir
=`$as_dirname -- "$file" ||
9332 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9333 X"$file" : 'X\(//\)[^/]' \| \
9334 X"$file" : 'X\(//\)$' \| \
9335 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9354 { as_dir
=$dirpart/$fdir
9356 -*) as_dir
=.
/$as_dir;;
9358 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9362 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9363 *) as_qdir
=$as_dir;;
9365 as_dirs
="'$as_qdir' $as_dirs"
9366 as_dir
=`$as_dirname -- "$as_dir" ||
9367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9368 X"$as_dir" : 'X\(//\)[^/]' \| \
9369 X"$as_dir" : 'X\(//\)$' \| \
9370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9389 test -d "$as_dir" && break
9391 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9392 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9393 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9394 { (exit 1); exit 1; }; }; }
9395 # echo "creating $dirpart/$file"
9396 echo '# dummy' > "$dirpart/$file"
9401 for ac_file
in $CONFIG_FILES; do
9402 # Support "outfile[:infile[:infile...]]"
9404 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9406 # PO directories have a Makefile.in generated from Makefile.in.in.
9407 case "$ac_file" in */Makefile.
in)
9408 # Adjust a relative srcdir.
9409 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9410 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9411 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9412 # In autoconf-2.13 it is called $ac_given_srcdir.
9413 # In autoconf-2.50 it is called $srcdir.
9414 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9415 case "$ac_given_srcdir" in
9416 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9417 /*) top_srcdir
="$ac_given_srcdir" ;;
9418 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9420 # Treat a directory as a PO directory if and only if it has a
9421 # POTFILES.in file. This allows packages to have multiple PO
9422 # directories under different names or in different locations.
9423 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9424 rm -f "$ac_dir/POTFILES"
9425 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
9426 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9427 POMAKEFILEDEPS
="POTFILES.in"
9428 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9429 # on $ac_dir but don't depend on user-specified configuration
9431 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9432 # The LINGUAS file contains the set of available languages.
9433 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9434 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
9436 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9437 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9438 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9439 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
9441 # The set of available languages was given in configure.in.
9442 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9443 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9446 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9447 # Compute UPDATEPOFILES
9448 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9449 # Compute DUMMYPOFILES
9450 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9452 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9453 case "$ac_given_srcdir" in
9455 *) srcdirpre
='$(srcdir)/' ;;
9461 for lang
in $ALL_LINGUAS; do
9462 POFILES
="$POFILES $srcdirpre$lang.po"
9463 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
9464 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
9465 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
9467 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9468 # environment variable.
9470 if test -n "$ALL_LINGUAS"; then
9471 for presentlang
in $ALL_LINGUAS; do
9473 if test "%UNSET%" != "$LINGUAS"; then
9474 desiredlanguages
="$LINGUAS"
9476 desiredlanguages
="$ALL_LINGUAS"
9478 for desiredlang
in $desiredlanguages; do
9479 # Use the presentlang catalog if desiredlang is
9480 # a. equal to presentlang, or
9481 # b. a variant of presentlang (because in this case,
9482 # presentlang can be used as a fallback for messages
9483 # which are not translated in the desiredlang catalog).
9484 case "$desiredlang" in
9485 "$presentlang"*) useit
=yes;;
9488 if test $useit = yes; then
9489 INST_LINGUAS
="$INST_LINGUAS $presentlang"
9494 if test -n "$INST_LINGUAS"; then
9495 for lang
in $INST_LINGUAS; do
9496 CATALOGS
="$CATALOGS $lang.gmo"
9499 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
9500 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"
9501 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
9502 if test -f "$f"; then
9504 *.orig |
*.bak |
*~
) ;;
9505 *) cat "$f" >> "$ac_dir/Makefile" ;;
9518 { (exit 0); exit 0; }
9520 chmod +x
$CONFIG_STATUS
9521 ac_clean_files
=$ac_clean_files_save
9524 # configure is writing to config.log, and then calls config.status.
9525 # config.status does its own redirection, appending to config.log.
9526 # Unfortunately, on DOS this fails, as config.log is still kept open
9527 # by configure, so config.status won't be able to write to it; its
9528 # output is simply discarded. So we exec the FD to /dev/null,
9529 # effectively closing config.log, so it can be properly (re)opened and
9530 # appended to by config.status. When coming back to configure, we
9531 # need to make the FD available again.
9532 if test "$no_create" != yes; then
9534 ac_config_status_args
=
9535 test "$silent" = yes &&
9536 ac_config_status_args
="$ac_config_status_args --quiet"
9538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9541 # would make configure fail if this is the last instruction.
9542 $ac_cs_success ||
{ (exit 1); exit 1; }