galat****@lists*****
galat****@lists*****
2006年 10月 19日 (木) 21:47:47 JST
Index: gtalk/configure.in diff -u gtalk/configure.in:1.4 gtalk/configure.in:1.5 --- gtalk/configure.in:1.4 Thu Oct 19 12:27:08 2006 +++ gtalk/configure.in Thu Oct 19 21:47:47 2006 @@ -1,6 +1,6 @@ -dnl $Id: configure.in,v 1.4 2006/10/19 03:27:08 sako Exp $ +dnl $Id: configure.in,v 1.5 2006/10/19 12:47:47 sako Exp $ dnl Process this file with autoconf to produce a configure script. -AC_INIT(gtalk, 1.4) +AC_INIT(gtalk, 1.4, galat****@lists*****) dnl install-sh will be searched (and found) here AC_CONFIG_AUX_DIR(config) @@ -17,7 +17,9 @@ AC_CANONICAL_HOST dnl Checks for libraries. -AC_CHECK_LIB(m, main) +AC_CHECK_LIB(m, log, + have_libm=1; LIBS="-lm ${LIBS}", + AC_MSG_ERROR( [libm not found])) if test "x$GCC = xyes"; then CFLAGS="-Wall -O2" @@ -64,14 +66,14 @@ [ --enable-threadda Use Thread DA (default=no)], [ if test "x$enable_threadda" = "xyes" -a "$use_da" = "yes"; then AC_DEFINE(THREAD_DA) - AC_CHECK_LIB(pthread,main) + AC_CHECK_LIB(pthread, pthrad_create) fi]) dnl Check option AC_CHECK_LIB(pthread,pthread_create,have_pthread=1,have_pthread=0) if test $have_pthread = 1 -a "$use_da" = "yes"; then AC_DEFINE(AUTO_DA) - LIBS="$LIBS -lpthread" + LIBS="$LIBS -lpthread -ldl" fi dnl check byte order @@ -117,4 +119,164 @@ ) fi -AC_OUTPUT(Makefile) +dnl check splib +use_splib=no + +AC_ARG_ENABLE(splib, +[ --enable-splib Use spLib (default=no)], +[ if test "$enable_splib" = "yes"; then + use_splib=yes +fi]) + +if test "$use_splib" = "yes"; then + AC_ARG_WITH( splib-inc, + [ --with-splib-inc=DIR location for splib headers], + [CFLAGS="-I${withval} ${CFLAGS}"]) + + AC_ARG_WITH( splib-lib, + [ --with-splib-lib=DIR location for splib lib], + LDFLAGS="-L${withval} ${LDFLAGS}") + + AC_CHECK_HEADER( sp/spBaseLib.h, + [], + AC_MSG_ERROR( [splib header not found])) + + AC_CHECK_HEADER( sp/spAudioLib.h, + [], + AC_MSG_ERROR( [splib header not found])) + + AC_CHECK_LIB( spb.linux-glibc ,spDebug, + have_libspb=1; LIBS="-lspa.linux-glibc ${LIBS}", + AC_MSG_ERROR( [spBase library not found]), + -lm) + + AC_CHECK_LIB( spa.linux-glibc ,spInitAudioDriver, + have_libspa=1; LIBS="${LIBS} -lspb.linux-glibc ${LIBS}", + AC_MSG_ERROR( [spAudio library not found]), + -lm -lspb.linux-glibc -lpthread -ldl) + + AC_DEFINE( USE_SPLIB) +fi + +dnl check chasenlib + +use_chasenlib=no +AC_ARG_ENABLE( chasenlib, + [ --enable-chasenlib Use chasenlib], + [ if test "$enable_chasenlib" = "yes"; then + use_chasenlib=yes +fi]) + +if test "$use_chasenlib" = "yes"; then + AC_ARG_WITH( chasen-config, + [ --with-chasen-config set chasen-config location [search path]], + AC_MSG_RESULT( using $with_chasen_config for chasen-config) + CHASEN_CONFIG=$with_chasen_config, + [AC_PATH_PROGS( CHASEN_CONFIG, chasen-config, no)]) + +dnl without chasen-config + if test "$CHASEN_CONFIG" = "no"; then + AC_ARG_WITH( chasen-inc, + [ --with-chasen-inc=DIR location for libchasen headers], + [CFLAGS="-I${withval} ${CFLAGS}"]) + + AC_ARG_WITH( chasen-lib, + [ --with-chasen-lib=DIR location for libchasen library], + [LDFLAGS="-L${withval} ${LDFLAGS}"]) +dnl with chasen-config + + else + CFLAGS="`$CHASEN_CONFIG --cflags` ${CFLAGS}" + LDFLAGS="`$CHASEN_CONFIG --libs` ${LDFLAGS}" + fi + + AC_CHECK_LIB( stdc++, main, + LIBS="-lstdc++ ${LIBS}", + AC_MSG_ERROR( [libstdc++ not found])) + + AC_CHECK_HEADER( chasen.h, + [], + AC_MSG_ERROR( [chasen.h not found])) + + AC_CHECK_LIB( chasen, chasen_sparse, + LIBS="-lchasen ${LIBS}", + AC_MSG_ERROR( [chasenlib not found])) + + AC_DEFINE( USE_CHASENLIB) + +dnl check version + CHASEN_VERSION=`$CHASEN_CONFIG --version` + echo -n "checking for chasen-version (= 2.3.3) ... " + if test "$CHASEN_VERSION" = "2.3.3"; then + echo "yes" + else + echo "no" + AC_MSG_ERROR( [chasen version missmach]) + fi + +fi + +dnl check chaone(depend on xml/xlst) +use_chaone=no +AC_ARG_ENABLE( chaone, + [ --enable-chaone Use chaone], + [ if test "$enable_chaone" = "yes"; then + use_chaone=yes +fi]) + +dnl check libxml2/libxslt +if test "$use_chaone" = "yes"; then + AC_ARG_WITH( libxml2-config, + [ --with-xml2-config set xml2-config location [search path]], + AC_MSG_RESULT( using $with_xml2_config for xml2-config) + XML2_CONFIG=$with_xml2_config, + [AC_PATH_PROGS( XML2_CONFIG, xml2-config, no)]) + + if test "$XML2_CONFIG" = "no"; then + AC_ARG_WITH( libxml2-inc, + [ --with-libxml2-inc=DIR location for libxml2 headers], + [CFLAGS="-I${withval} ${CFLAGS}"]) + + AC_ARG_WITH( libxml2-lib, + [ --with-libxml2-lib=DIR location for libxml2 library], + [LDFLAGS="-L${withval} ${LDFLAGS}" + LIBS="-lxml2 ${LIBS}"]) + else + CFLAGS_="`$XML2_CONFIG --cflags` ${CFLAGS}" + LDFLAGS_="`$XML2_CONFIG --libs` ${CFLAGS}" + fi + + AC_CHECK_LIB( xml2, xmlMalloc,have_libxml2=1,AC_MSG_ERROR(libxml2 not found)) + + AC_ARG_WITH( xslt-config, + [ --with-xslt-config set xslt-config location [search path]], + AC_MSG_RESULT( using $with_xslt_config for xslt-config) + XSLT_CONFIG=$with_xslt_config, + [AC_PATH_PROGS( XSLT_CONFIG, xslt-config, no)]) + + if test "$XSLT_CONFIG" = "no"; then + AC_ARG_WITH( libxlst-inc, + [ --with-libxlst-inc=DIR location for libxlst headers], + [CFLAGS="-I${withval} ${CFLAGS}"]) + + AC_ARG_WITH( libxlst-lib, + [ --with-libxlst-lib=DIR location for libxlst library], + [LDFLAGS="-L${withval} ${LDFLAGS}"; + LIBS="-lxslt ${LIBS}"]) + else + CFLAGS="`$XSLT_CONFIG --cflags` ${CFLAGS}" + LDFLAGS="`$XSLT_CONFIG --libs` ${LDFLAGS}" + fi +dnl AC_LANG_CPLUSPLUS +dnl AC_CHECK_HEADERS( transform.h xsltutils.h exslt.h) + + AC_CHECK_LIB( xslt, xsltText, + have_libxslt=1, + AC_MSG_ERROR(libxslt not found)) + + AC_CHECK_LIB( exslt, exsltStrRegister, + have_libexslt=1; LIBS="${LIBS} -lexslt", + AC_MSG_ERROR(libexslt not found)) +fi + +AC_OUTPUT(Makefile) \ No newline at end of file Index: gtalk/configure diff -u gtalk/configure:1.5 gtalk/configure:1.6 --- gtalk/configure:1.5 Thu Oct 19 12:27:08 2006 +++ gtalk/configure Thu Oct 19 21:47:47 2006 @@ -2,6 +2,8 @@ # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for gtalk 1.4. # +# Report bugs to <galat****@lists*****>. +# # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. @@ -269,7 +271,7 @@ PACKAGE_TARNAME='gtalk' PACKAGE_VERSION='1.4' PACKAGE_STRING='gtalk 1.4' -PACKAGE_BUGREPORT='' +PACKAGE_BUGREPORT='galat****@lists*****' # Factoring default headers for most tests. ac_includes_default="\ @@ -308,7 +310,7 @@ # include <unistd.h> #endif" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP RM TAR GZIP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP RM TAR GZIP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP CHASEN_CONFIG XML2_CONFIG XSLT_CONFIG LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -848,6 +850,24 @@ --enable-debug Turn on debug mode (default=no) --enable-da Use audio output (default=yes) --enable-threadda Use Thread DA (default=no) + --enable-splib Use spLib (default=no) + --enable-chasenlib Use chasenlib + --enable-chaone Use chaone + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-splib-inc=DIR location for splib headers + --with-splib-lib=DIR location for splib lib + --with-chasen-config set chasen-config location search path + --with-chasen-inc=DIR location for libchasen headers + --with-chasen-lib=DIR location for libchasen library + --with-xml2-config set xml2-config location search path + --with-libxml2-inc=DIR location for libxml2 headers + --with-libxml2-lib=DIR location for libxml2 library + --with-xslt-config set xslt-config location search path + --with-libxlst-inc=DIR location for libxlst headers + --with-libxlst-lib=DIR location for libxlst library Some influential environment variables: CC C compiler command @@ -861,6 +881,7 @@ Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. +Report bugs to <galat****@lists*****>. _ACEOF fi @@ -2672,10 +2693,9 @@ - -echo "$as_me:$LINENO: checking for main in -lm" >&5 -echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_main+set}" = set; then +echo "$as_me:$LINENO: checking for log in -lm" >&5 +echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_log+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS @@ -2687,11 +2707,17 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char log (); int main () { -main (); +log (); ; return 0; } @@ -2718,26 +2744,25 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_main=yes + ac_cv_lib_m_log=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_main=no +ac_cv_lib_m_log=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 -echo "${ECHO_T}$ac_cv_lib_m_main" >&6 -if test $ac_cv_lib_m_main = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF - - LIBS="-lm $LIBS" - +echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 +echo "${ECHO_T}$ac_cv_lib_m_log" >&6 +if test $ac_cv_lib_m_log = yes; then + have_libm=1; LIBS="-lm ${LIBS}" +else + { { echo "$as_me:$LINENO: error: libm not found" >&5 +echo "$as_me: error: libm not found" >&2;} + { (exit 1); exit 1; }; } fi @@ -3150,9 +3175,9 @@ echo "$as_me: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX -## -------------------------------- ## -## Report this to the gtalk lists. ## -## -------------------------------- ## +## --------------------------------------------------- ## +## Report this to galat****@lists***** ## +## --------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -3230,9 +3255,9 @@ _ACEOF -echo "$as_me:$LINENO: checking for main in -lpthread" >&5 -echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 -if test "${ac_cv_lib_pthread_main+set}" = set; then +echo "$as_me:$LINENO: checking for pthrad_create in -lpthread" >&5 +echo $ECHO_N "checking for pthrad_create in -lpthread... $ECHO_C" >&6 +if test "${ac_cv_lib_pthread_pthrad_create+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS @@ -3244,11 +3269,17 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthrad_create (); int main () { -main (); +pthrad_create (); ; return 0; } @@ -3275,20 +3306,20 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_pthread_main=yes + ac_cv_lib_pthread_pthrad_create=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_pthread_main=no +ac_cv_lib_pthread_pthrad_create=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 -echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 -if test $ac_cv_lib_pthread_main = yes; then +echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthrad_create" >&5 +echo "${ECHO_T}$ac_cv_lib_pthread_pthrad_create" >&6 +if test $ac_cv_lib_pthread_pthrad_create = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBPTHREAD 1 _ACEOF @@ -3375,7 +3406,7 @@ #define AUTO_DA 1 _ACEOF - LIBS="$LIBS -lpthread" + LIBS="$LIBS -lpthread -ldl" fi echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 @@ -3734,9 +3765,9 @@ echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX -## -------------------------------- ## -## Report this to the gtalk lists. ## -## -------------------------------- ## +## --------------------------------------------------- ## +## Report this to galat****@lists***** ## +## --------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -3972,176 +4003,1418 @@ fi - ac_config_files="$ac_config_files Makefile" -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +use_splib=no -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' +# Check whether --enable-splib or --disable-splib was given. +if test "${enable_splib+set}" = set; then + enableval="$enable_splib" + if test "$enable_splib" = "yes"; then + use_splib=yes fi +fi; -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\_ACEOF -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -_ACEOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_i=`echo "$ac_i" | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Add them. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs +if test "$use_splib" = "yes"; then +# Check whether --with-splib-inc or --without-splib-inc was given. +if test "${with_splib_inc+set}" = set; then + withval="$with_splib_inc" + CFLAGS="-I${withval} ${CFLAGS}" +fi; -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. +# Check whether --with-splib-lib or --without-splib-lib was given. +if test "${with_splib_lib+set}" = set; then + withval="$with_splib_lib" + LDFLAGS="-L${withval} ${LDFLAGS}" +fi; -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} + if test "${ac_cv_header_sp_spBaseLib_h+set}" = set; then + echo "$as_me:$LINENO: checking for sp/spBaseLib.h" >&5 +echo $ECHO_N "checking for sp/spBaseLib.h... $ECHO_C" >&6 +if test "${ac_cv_header_sp_spBaseLib_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: $ac_cv_header_sp_spBaseLib_h" >&5 +echo "${ECHO_T}$ac_cv_header_sp_spBaseLib_h" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking sp/spBaseLib.h usability" >&5 +echo $ECHO_N "checking sp/spBaseLib.h usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <sp/spBaseLib.h> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix +ac_header_compiler=no fi -DUALCASE=1; export DUALCASE # for MKS sh +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset +# Is the header present? +echo "$as_me:$LINENO: checking sp/spBaseLib.h presence" >&5 +echo $ECHO_N "checking sp/spBaseLib.h presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <sp/spBaseLib.h> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi else - as_unset=false + ac_cpp_err=yes fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: sp/spBaseLib.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: sp/spBaseLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spBaseLib.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: sp/spBaseLib.h: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: sp/spBaseLib.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: sp/spBaseLib.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spBaseLib.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: sp/spBaseLib.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spBaseLib.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: sp/spBaseLib.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spBaseLib.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: sp/spBaseLib.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spBaseLib.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: sp/spBaseLib.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spBaseLib.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: sp/spBaseLib.h: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## --------------------------------------------------- ## +## Report this to galat****@lists***** ## +## --------------------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for sp/spBaseLib.h" >&5 +echo $ECHO_N "checking for sp/spBaseLib.h... $ECHO_C" >&6 +if test "${ac_cv_header_sp_spBaseLib_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_sp_spBaseLib_h=$ac_header_preproc +fi +echo "$as_me:$LINENO: result: $ac_cv_header_sp_spBaseLib_h" >&5 +echo "${ECHO_T}$ac_cv_header_sp_spBaseLib_h" >&6 + +fi +if test $ac_cv_header_sp_spBaseLib_h = yes; then + : +else + { { echo "$as_me:$LINENO: error: splib header not found" >&5 +echo "$as_me: error: splib header not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + + if test "${ac_cv_header_sp_spAudioLib_h+set}" = set; then + echo "$as_me:$LINENO: checking for sp/spAudioLib.h" >&5 +echo $ECHO_N "checking for sp/spAudioLib.h... $ECHO_C" >&6 +if test "${ac_cv_header_sp_spAudioLib_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: $ac_cv_header_sp_spAudioLib_h" >&5 +echo "${ECHO_T}$ac_cv_header_sp_spAudioLib_h" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking sp/spAudioLib.h usability" >&5 +echo $ECHO_N "checking sp/spAudioLib.h usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <sp/spAudioLib.h> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking sp/spAudioLib.h presence" >&5 +echo $ECHO_N "checking sp/spAudioLib.h presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <sp/spAudioLib.h> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: sp/spAudioLib.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: sp/spAudioLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spAudioLib.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: sp/spAudioLib.h: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: sp/spAudioLib.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: sp/spAudioLib.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spAudioLib.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: sp/spAudioLib.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spAudioLib.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: sp/spAudioLib.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spAudioLib.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: sp/spAudioLib.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spAudioLib.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: sp/spAudioLib.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: sp/spAudioLib.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: sp/spAudioLib.h: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## --------------------------------------------------- ## +## Report this to galat****@lists***** ## +## --------------------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for sp/spAudioLib.h" >&5 +echo $ECHO_N "checking for sp/spAudioLib.h... $ECHO_C" >&6 +if test "${ac_cv_header_sp_spAudioLib_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_sp_spAudioLib_h=$ac_header_preproc +fi +echo "$as_me:$LINENO: result: $ac_cv_header_sp_spAudioLib_h" >&5 +echo "${ECHO_T}$ac_cv_header_sp_spAudioLib_h" >&6 + +fi +if test $ac_cv_header_sp_spAudioLib_h = yes; then + : +else + { { echo "$as_me:$LINENO: error: splib header not found" >&5 +echo "$as_me: error: splib header not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + + echo "$as_me:$LINENO: checking for spDebug in -lspb.linux-glibc " >&5 +echo $ECHO_N "checking for spDebug in -lspb.linux-glibc ... $ECHO_C" >&6 +if test "${ac_cv_lib_spb_linux_glibc__spDebug+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspb.linux-glibc -lm $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char spDebug (); +int +main () +{ +spDebug (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_spb_linux_glibc__spDebug=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_spb_linux_glibc__spDebug=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_spb_linux_glibc__spDebug" >&5 +echo "${ECHO_T}$ac_cv_lib_spb_linux_glibc__spDebug" >&6 +if test $ac_cv_lib_spb_linux_glibc__spDebug = yes; then + have_libspb=1; LIBS="-lspa.linux-glibc ${LIBS}" +else + { { echo "$as_me:$LINENO: error: spBase library not found" >&5 +echo "$as_me: error: spBase library not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + echo "$as_me:$LINENO: checking for spInitAudioDriver in -lspa.linux-glibc " >&5 +echo $ECHO_N "checking for spInitAudioDriver in -lspa.linux-glibc ... $ECHO_C" >&6 +if test "${ac_cv_lib_spa_linux_glibc__spInitAudioDriver+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspa.linux-glibc -lm -lspb.linux-glibc -lpthread -ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char spInitAudioDriver (); +int +main () +{ +spInitAudioDriver (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_spa_linux_glibc__spInitAudioDriver=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_spa_linux_glibc__spInitAudioDriver=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_spa_linux_glibc__spInitAudioDriver" >&5 +echo "${ECHO_T}$ac_cv_lib_spa_linux_glibc__spInitAudioDriver" >&6 +if test $ac_cv_lib_spa_linux_glibc__spInitAudioDriver = yes; then + have_libspa=1; LIBS="${LIBS} -lspb.linux-glibc ${LIBS}" +else + { { echo "$as_me:$LINENO: error: spAudio library not found" >&5 +echo "$as_me: error: spAudio library not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + cat >>confdefs.h <<\_ACEOF +#define USE_SPLIB 1 +_ACEOF + +fi + + +use_chasenlib=no +# Check whether --enable-chasenlib or --disable-chasenlib was given. +if test "${enable_chasenlib+set}" = set; then + enableval="$enable_chasenlib" + if test "$enable_chasenlib" = "yes"; then + use_chasenlib=yes +fi +fi; + +if test "$use_chasenlib" = "yes"; then + +# Check whether --with-chasen-config or --without-chasen-config was given. +if test "${with_chasen_config+set}" = set; then + withval="$with_chasen_config" + echo "$as_me:$LINENO: result: using $with_chasen_config for chasen-config" >&5 +echo "${ECHO_T}using $with_chasen_config for chasen-config" >&6 + CHASEN_CONFIG=$with_chasen_config +else + for ac_prog in chasen-config +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_CHASEN_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $CHASEN_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_CHASEN_CONFIG="$CHASEN_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_CHASEN_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +CHASEN_CONFIG=$ac_cv_path_CHASEN_CONFIG + +if test -n "$CHASEN_CONFIG"; then + echo "$as_me:$LINENO: result: $CHASEN_CONFIG" >&5 +echo "${ECHO_T}$CHASEN_CONFIG" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CHASEN_CONFIG" && break +done +test -n "$CHASEN_CONFIG" || CHASEN_CONFIG="no" + +fi; + + if test "$CHASEN_CONFIG" = "no"; then + +# Check whether --with-chasen-inc or --without-chasen-inc was given. +if test "${with_chasen_inc+set}" = set; then + withval="$with_chasen_inc" + CFLAGS="-I${withval} ${CFLAGS}" +fi; + + +# Check whether --with-chasen-lib or --without-chasen-lib was given. +if test "${with_chasen_lib+set}" = set; then + withval="$with_chasen_lib" + LDFLAGS="-L${withval} ${LDFLAGS}" +fi; + + else + CFLAGS="`$CHASEN_CONFIG --cflags` ${CFLAGS}" + LDFLAGS="`$CHASEN_CONFIG --libs` ${LDFLAGS}" + fi + + echo "$as_me:$LINENO: checking for main in -lstdc++" >&5 +echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6 +if test "${ac_cv_lib_stdcpp_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lstdc++ $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + +int +main () +{ +main (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_stdcpp_main=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_stdcpp_main=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5 +echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6 +if test $ac_cv_lib_stdcpp_main = yes; then + LIBS="-lstdc++ ${LIBS}" +else + { { echo "$as_me:$LINENO: error: libstdc++ not found" >&5 +echo "$as_me: error: libstdc++ not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + if test "${ac_cv_header_chasen_h+set}" = set; then + echo "$as_me:$LINENO: checking for chasen.h" >&5 +echo $ECHO_N "checking for chasen.h... $ECHO_C" >&6 +if test "${ac_cv_header_chasen_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: $ac_cv_header_chasen_h" >&5 +echo "${ECHO_T}$ac_cv_header_chasen_h" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking chasen.h usability" >&5 +echo $ECHO_N "checking chasen.h usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <chasen.h> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking chasen.h presence" >&5 +echo $ECHO_N "checking chasen.h presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <chasen.h> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: chasen.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: chasen.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: chasen.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: chasen.h: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: chasen.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: chasen.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: chasen.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: chasen.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: chasen.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: chasen.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: chasen.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: chasen.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: chasen.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: chasen.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: chasen.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: chasen.h: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## --------------------------------------------------- ## +## Report this to galat****@lists***** ## +## --------------------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for chasen.h" >&5 +echo $ECHO_N "checking for chasen.h... $ECHO_C" >&6 +if test "${ac_cv_header_chasen_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_chasen_h=$ac_header_preproc +fi +echo "$as_me:$LINENO: result: $ac_cv_header_chasen_h" >&5 +echo "${ECHO_T}$ac_cv_header_chasen_h" >&6 + +fi +if test $ac_cv_header_chasen_h = yes; then + : +else + { { echo "$as_me:$LINENO: error: chasen.h not found" >&5 +echo "$as_me: error: chasen.h not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + + echo "$as_me:$LINENO: checking for chasen_sparse in -lchasen" >&5 +echo $ECHO_N "checking for chasen_sparse in -lchasen... $ECHO_C" >&6 +if test "${ac_cv_lib_chasen_chasen_sparse+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lchasen $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char chasen_sparse (); +int +main () +{ +chasen_sparse (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_chasen_chasen_sparse=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_chasen_chasen_sparse=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_chasen_chasen_sparse" >&5 +echo "${ECHO_T}$ac_cv_lib_chasen_chasen_sparse" >&6 +if test $ac_cv_lib_chasen_chasen_sparse = yes; then + LIBS="-lchasen ${LIBS}" +else + { { echo "$as_me:$LINENO: error: chasenlib not found" >&5 +echo "$as_me: error: chasenlib not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + cat >>confdefs.h <<\_ACEOF +#define USE_CHASENLIB 1 +_ACEOF + + + CHASEN_VERSION=`$CHASEN_CONFIG --version` + echo -n "checking for chasen-version (= 2.3.3) ... " + if test "$CHASEN_VERSION" = "2.3.3"; then + echo "yes" + else + echo "no" + { { echo "$as_me:$LINENO: error: chasen version missmach" >&5 +echo "$as_me: error: chasen version missmach" >&2;} + { (exit 1); exit 1; }; } + fi + +fi + +use_chaone=no +# Check whether --enable-chaone or --disable-chaone was given. +if test "${enable_chaone+set}" = set; then + enableval="$enable_chaone" + if test "$enable_chaone" = "yes"; then + use_chaone=yes +fi +fi; + +if test "$use_chaone" = "yes"; then + +# Check whether --with-libxml2-config or --without-libxml2-config was given. +if test "${with_libxml2_config+set}" = set; then + withval="$with_libxml2_config" + echo "$as_me:$LINENO: result: using $with_xml2_config for xml2-config" >&5 +echo "${ECHO_T}using $with_xml2_config for xml2-config" >&6 + XML2_CONFIG=$with_xml2_config +else + for ac_prog in xml2-config +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_XML2_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $XML2_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +XML2_CONFIG=$ac_cv_path_XML2_CONFIG + +if test -n "$XML2_CONFIG"; then + echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 +echo "${ECHO_T}$XML2_CONFIG" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$XML2_CONFIG" && break +done +test -n "$XML2_CONFIG" || XML2_CONFIG="no" + +fi; + + if test "$XML2_CONFIG" = "no"; then + +# Check whether --with-libxml2-inc or --without-libxml2-inc was given. +if test "${with_libxml2_inc+set}" = set; then + withval="$with_libxml2_inc" + CFLAGS="-I${withval} ${CFLAGS}" +fi; + + +# Check whether --with-libxml2-lib or --without-libxml2-lib was given. +if test "${with_libxml2_lib+set}" = set; then + withval="$with_libxml2_lib" + LDFLAGS="-L${withval} ${LDFLAGS}" + LIBS="-lxml2 ${LIBS}" +fi; + else + CFLAGS_="`$XML2_CONFIG --cflags` ${CFLAGS}" + LDFLAGS_="`$XML2_CONFIG --libs` ${CFLAGS}" + fi + + echo "$as_me:$LINENO: checking for xmlMalloc in -lxml2" >&5 +echo $ECHO_N "checking for xmlMalloc in -lxml2... $ECHO_C" >&6 +if test "${ac_cv_lib_xml2_xmlMalloc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lxml2 $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char xmlMalloc (); +int +main () +{ +xmlMalloc (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_xml2_xmlMalloc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_xml2_xmlMalloc=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlMalloc" >&5 +echo "${ECHO_T}$ac_cv_lib_xml2_xmlMalloc" >&6 +if test $ac_cv_lib_xml2_xmlMalloc = yes; then + have_libxml2=1 +else + { { echo "$as_me:$LINENO: error: libxml2 not found" >&5 +echo "$as_me: error: libxml2 not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + +# Check whether --with-xslt-config or --without-xslt-config was given. +if test "${with_xslt_config+set}" = set; then + withval="$with_xslt_config" + echo "$as_me:$LINENO: result: using $with_xslt_config for xslt-config" >&5 +echo "${ECHO_T}using $with_xslt_config for xslt-config" >&6 + XSLT_CONFIG=$with_xslt_config +else + for ac_prog in xslt-config +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_XSLT_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $XSLT_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_XSLT_CONFIG="$XSLT_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_XSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +XSLT_CONFIG=$ac_cv_path_XSLT_CONFIG + +if test -n "$XSLT_CONFIG"; then + echo "$as_me:$LINENO: result: $XSLT_CONFIG" >&5 +echo "${ECHO_T}$XSLT_CONFIG" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$XSLT_CONFIG" && break +done +test -n "$XSLT_CONFIG" || XSLT_CONFIG="no" + +fi; + + if test "$XSLT_CONFIG" = "no"; then + +# Check whether --with-libxlst-inc or --without-libxlst-inc was given. +if test "${with_libxlst_inc+set}" = set; then + withval="$with_libxlst_inc" + CFLAGS="-I${withval} ${CFLAGS}" +fi; + + +# Check whether --with-libxlst-lib or --without-libxlst-lib was given. +if test "${with_libxlst_lib+set}" = set; then + withval="$with_libxlst_lib" + LDFLAGS="-L${withval} ${LDFLAGS}"; + LIBS="-lxslt ${LIBS}" +fi; + else + CFLAGS="`$XSLT_CONFIG --cflags` ${CFLAGS}" + LDFLAGS="`$XSLT_CONFIG --libs` ${LDFLAGS}" + fi + + echo "$as_me:$LINENO: checking for xsltText in -lxslt" >&5 +echo $ECHO_N "checking for xsltText in -lxslt... $ECHO_C" >&6 +if test "${ac_cv_lib_xslt_xsltText+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lxslt $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char xsltText (); +int +main () +{ +xsltText (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_xslt_xsltText=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_xslt_xsltText=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltText" >&5 +echo "${ECHO_T}$ac_cv_lib_xslt_xsltText" >&6 +if test $ac_cv_lib_xslt_xsltText = yes; then + have_libxslt=1 +else + { { echo "$as_me:$LINENO: error: libxslt not found" >&5 +echo "$as_me: error: libxslt not found" >&2;} + { (exit 1); exit 1; }; } +fi + + + echo "$as_me:$LINENO: checking for exsltStrRegister in -lexslt" >&5 +echo $ECHO_N "checking for exsltStrRegister in -lexslt... $ECHO_C" >&6 +if test "${ac_cv_lib_exslt_exsltStrRegister+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lexslt $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char exsltStrRegister (); +int +main () +{ +exsltStrRegister (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_exslt_exsltStrRegister=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_exslt_exsltStrRegister=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_exslt_exsltStrRegister" >&5 +echo "${ECHO_T}$ac_cv_lib_exslt_exsltStrRegister" >&6 +if test $ac_cv_lib_exslt_exsltStrRegister = yes; then + have_libexslt=1; LIBS="${LIBS} -lexslt" +else + { { echo "$as_me:$LINENO: error: libexslt not found" >&5 +echo "$as_me: error: libexslt not found" >&2;} + { (exit 1); exit 1; }; } +fi + +fi + + ac_config_files="$ac_config_files Makefile" +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + : end' >>confcache +if diff $cache_file confcache >/dev/null 2>&1; then :; else + if test -w $cache_file; then + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" + cat confcache >$cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' +fi + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then we branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +cat >confdef2opt.sed <<\_ACEOF +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +t quote +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +t quote +d +: quote +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g +s,\[,\\&,g +s,\],\\&,g +s,\$,$$,g +p +_ACEOF +# We use echo to avoid assuming a particular line-breaking character. +# The extra dot is to prevent the shell from consuming trailing +# line-breaks from the sub-command output. A line-break within +# single-quotes doesn't work because, if this script is created in a +# platform that uses two characters for line-breaks (e.g., DOS), tr +# would break. +ac_LF_and_DOT=`echo; echo .` +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` +rm -f confdef2opt.sed + + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_i=`echo "$ac_i" | + sed 's/\$U\././;s/\.o$//;s/\.obj$//'` + # 2. Add them. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false +SHELL=\${CONFIG_SHELL-$SHELL} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi +DUALCASE=1; export DUALCASE # for MKS sh + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' PS2='> ' PS4='+ ' @@ -4627,6 +5900,9 @@ s, @ host_vendor@,$host_vendor,;t t s, @ host_os@,$host_os,;t t s, @ EGREP@,$EGREP,;t t +s, @ CHASEN_CONFIG@,$CHASEN_CONFIG,;t t +s, @ XML2_CONFIG@,$XML2_CONFIG,;t t +s, @ XSLT_CONFIG@,$XSLT_CONFIG,;t t s, @ LIBOBJS@,$LIBOBJS,;t t s, @ LTLIBOBJS@,$LTLIBOBJS,;t t CEOF @@ -4891,4 +6167,3 @@ # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi -