manpageoptions()
description(
dit(--output)
- The output file to write
+ The output file to write [FIXME, doesn't work]
dit(--edit)
Do an inline edit of the input file. override @samp{--output}
dit(--show-rules)
guess this, on the basis of code(\version) strings in the file
dit(--to=TO_PATCHLEVEL)
Set the goal version of the conversion. It defaults to the latest
- available version.
+ available version.
)
manpagesection(BUGS)
dnl WARNING WARNING WARNING WARNING
dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
-dnl WARNING WARNING WARNING WARNING
-dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
-dnl WARNING WARNING WARNING WARNING
-dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
dnl aclocal.m4 -*-shell-script-*-
dnl StepMake subroutines for configure.in
# to force new check iso reading from cache
# gh_scm2doubles,gh_doubles2scm are new in 1.3
- AC_CHECK_LIB(guile, gh_scm2doubles, \
- LIBS="-lguile $LIBS"; AC_DEFINE(HAVE_LIBGUILE), \
- AC_CHECK_LIB(readline, readline) \
- AC_CHECK_LIB(dl, dlopen) \
- AC_CHECK_LIB(socket, socket)\
- AC_CHECK_LIB(termcap,tgetent)\
- AC_CHECK_LIB(m, fabs)\
- AC_CHECK_LIB(guile, gh_doubles2scm)\
+ GUILE_FLAGS
+ AC_CHECK_LIB(guile, gh_scm2doubles,
+ LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[[[/-_a-zA-Z0-9]]]\+ //g'` $LIBS";
+ AC_DEFINE(HAVE_LIBGUILE), , $GUILE_LDFLAGS dnl
)
- if test "$ac_cv_lib_guile_gh_scm2doubles" != yes -a \
- "$ac_cv_lib_guile_gh_doubles2scm" != yes ; then
- AC_STEPMAKE_WARN(You should install guile 1.3 or newer)
+ if test "$ac_cv_lib_guile_gh_scm2doubles" != yes ; then
+ AC_STEPMAKE_WARN(You should install guile 1.3 or newer)
fi
])
AC_DEFINE_UNQUOTED(PACKAGE, "${PACKAGE_NAME}")
AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
- package_depth=`dirname $cache_file`
+ if test "$package_depth" = "" ; then
+ package_depth="."
+ else
+ package_depth="../$package_depth"
+ fi
+ export package_depth
AC_SUBST(package_depth)
AUTOGENERATE="This file was automatically generated by configure"
AC_SUBST(GTK___LIBS)
])
+dnl GUILE_FLAGS --- set flags for compiling and linking with Guile
+dnl
+dnl This macro runs the `guile-config' script, installed with Guile,
+dnl to find out where Guile's header files and libraries are
+dnl installed. It sets two variables, marked for substitution, as
+dnl by AC_SUBST.
+dnl
+dnl GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
+dnl code that uses Guile header files. This is almost
+dnl always just a -I flag.
+dnl
+dnl GUILE_LDFLAGS --- flags to pass to the linker to link a
+dnl program against Guile. This includes `-lguile' for
+dnl the Guile library itself, any libraries that Guile
+dnl itself requires (like -lqthreads), and so on. It may
+dnl also include a -L flag to tell the compiler where to
+dnl find the libraries.
+
+AC_DEFUN([GUILE_FLAGS],[
+## The GUILE_FLAGS macro.
+ ## First, let's just see if we can find Guile at all.
+ AC_MSG_CHECKING(for Guile)
+ guile-config link > /dev/null || {
+ echo "configure: cannot find guile-config; is Guile installed?" 1>&2
+ exit 1
+ }
+ GUILE_CFLAGS="`guile-config compile`"
+ GUILE_LDFLAGS="`guile-config link`"
+ AC_SUBST(GUILE_CFLAGS)
+ AC_SUBST(GUILE_LDFLAGS)
+ AC_MSG_RESULT(yes)
+])
+
+
+
+
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
EOF
- package_depth=`dirname $cache_file`
+ if test "$package_depth" = "" ; then
+ package_depth="."
+ else
+ package_depth="../$package_depth"
+ fi
+ export package_depth
AUTOGENERATE="This file was automatically generated by configure"
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:761: checking host system type" >&5
+echo "configure:769: checking host system type" >&5
host_alias=$host
case "$host_alias" in
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:786: checking for $ac_word" >&5
+echo "configure:794: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:820: checking for $ac_word" >&5
+echo "configure:828: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:856: checking for $ac_word" >&5
+echo "configure:864: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:890: checking for $ac_word" >&5
+echo "configure:898: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
set dummy ${PYTHON:-python}; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:923: checking for $ac_word" >&5
+echo "configure:931: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1152: checking for $ac_word" >&5
+echo "configure:1160: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1181: checking for $ac_word" >&5
+echo "configure:1189: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1229: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:1237: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <<EOF
-#line 1239 "configure"
+#line 1247 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:1243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1263: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1271: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:1268: checking whether we are using GNU C" >&5
+echo "configure:1276: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:1292: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:1300: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
-echo "configure:1351: checking how to run the C++ preprocessor" >&5
+echo "configure:1359: checking how to run the C++ preprocessor" >&5
if test -z "$CXXCPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
CXXCPP="${CXX-g++} -E"
cat > conftest.$ac_ext <<EOF
-#line 1364 "configure"
+#line 1372 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1400: checking for $ac_word" >&5
+echo "configure:1408: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1431: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+echo "configure:1439: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cross_compiling=$ac_cv_prog_cxx_cross
cat > conftest.$ac_ext <<EOF
-#line 1441 "configure"
+#line 1449 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cxx_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1465: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1473: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
-echo "configure:1470: checking whether we are using GNU C++" >&5
+echo "configure:1478: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
-echo "configure:1494: checking whether ${CXX-g++} accepts -g" >&5
+echo "configure:1502: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
-echo "configure:1524: checking for FlexLexer.h" >&5
+echo "configure:1532: checking for FlexLexer.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1529 "configure"
+#line 1537 "configure"
#include "confdefs.h"
#include <FlexLexer.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
-echo "configure:1585: checking whether explicit instantiation is needed" >&5
+echo "configure:1593: checking whether explicit instantiation is needed" >&5
if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1590 "configure"
+#line 1598 "configure"
#include "confdefs.h"
template <class T> struct foo { static int baz; };
return foo<int>::baz;
; return 0; }
EOF
-if { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
lily_cv_need_explicit_instantiation=no
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1627: checking for $ac_word" >&5
+echo "configure:1635: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1669: checking for $ac_word" >&5
+echo "configure:1677: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1703: checking for $ac_word" >&5
+echo "configure:1711: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1770: checking for $ac_word" >&5
+echo "configure:1778: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1802: checking for $ac_word" >&5
+echo "configure:1810: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking language""... $ac_c" 1>&6
-echo "configure:1857: checking language" >&5
+echo "configure:1865: checking language" >&5
case "$language" in
En* | en* | Am* | am* | US* | us*)
lang=English;;
echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
-echo "configure:1893: checking for gettext in -lintl" >&5
+echo "configure:1901: checking for gettext in -lintl" >&5
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lintl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 1901 "configure"
+#line 1909 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
gettext()
; return 0; }
EOF
-if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
for ac_func in gettext
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1945: checking for $ac_func" >&5
+echo "configure:1953: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1950 "configure"
+#line 1958 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2008: checking for $ac_word" >&5
+echo "configure:2016: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
-echo "configure:2038: checking whether msgfmt accepts -o" >&5
+echo "configure:2046: checking whether msgfmt accepts -o" >&5
msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
if test "$msgfmt_output" = ""; then
echo "$ac_t""yes" 1>&6
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2065: checking for $ac_word" >&5
+echo "configure:2073: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2100: checking for $ac_word" >&5
+echo "configure:2108: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2137: checking for $ac_word" >&5
+echo "configure:2145: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2172: checking for $ac_word" >&5
+echo "configure:2180: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2215: checking for $ac_word" >&5
+echo "configure:2223: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2249: checking for $ac_word" >&5
+echo "configure:2257: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2283: checking for $ac_word" >&5
+echo "configure:2291: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2317: checking for $ac_word" >&5
+echo "configure:2325: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2350: checking for $ac_word" >&5
+echo "configure:2358: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2384: checking for $ac_word" >&5
+echo "configure:2392: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2418: checking for $ac_word" >&5
+echo "configure:2426: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2452: checking for $ac_word" >&5
+echo "configure:2460: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# to force new check iso reading from cache
# gh_scm2doubles,gh_doubles2scm are new in 1.3
+
+## The GUILE_FLAGS macro.
+ ## First, let's just see if we can find Guile at all.
+ echo $ac_n "checking for Guile""... $ac_c" 1>&6
+echo "configure:2520: checking for Guile" >&5
+ guile-config link > /dev/null || {
+ echo "configure: cannot find guile-config; is Guile installed?" 1>&2
+ exit 1
+ }
+ GUILE_CFLAGS="`guile-config compile`"
+ GUILE_LDFLAGS="`guile-config link`"
+
+
+ echo "$ac_t""yes" 1>&6
+
echo $ac_n "checking for gh_scm2doubles in -lguile""... $ac_c" 1>&6
-echo "configure:2509: checking for gh_scm2doubles in -lguile" >&5
+echo "configure:2532: checking for gh_scm2doubles in -lguile" >&5
ac_lib_var=`echo guile'_'gh_scm2doubles | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lguile $LIBS"
+LIBS="-lguile $GUILE_LDFLAGS $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2517 "configure"
+#line 2540 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
gh_scm2doubles()
; return 0; }
EOF
-if { (eval echo configure:2531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- \
- LIBS="-lguile $LIBS"; cat >> confdefs.h <<\EOF
+ LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[/-_a-zA-Z0-9]\+ //g'` $LIBS";
+ cat >> confdefs.h <<\EOF
#define HAVE_LIBGUILE 1
EOF
else
echo "$ac_t""no" 1>&6
-\
- echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
-echo "configure:2555: checking for readline in -lreadline" >&5
-ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lreadline $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2563 "configure"
-#include "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 readline();
-
-int main() {
-readline()
-; return 0; }
-EOF
-if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-lreadline $LIBS"
-
-else
- echo "$ac_t""no" 1>&6
-fi
- \
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "configure:2605: checking for dlopen in -ldl" >&5
-ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ldl $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2613 "configure"
-#include "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 dlopen();
-
-int main() {
-dlopen()
-; return 0; }
-EOF
-if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-ldl $LIBS"
-
-else
- echo "$ac_t""no" 1>&6
-fi
- \
- echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
-echo "configure:2655: checking for socket in -lsocket" >&5
-ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lsocket $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2663 "configure"
-#include "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 socket();
-
-int main() {
-socket()
-; return 0; }
-EOF
-if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-lsocket $LIBS"
-
-else
- echo "$ac_t""no" 1>&6
-fi
-\
- echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
-echo "configure:2705: checking for tgetent in -ltermcap" >&5
-ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ltermcap $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2713 "configure"
-#include "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 tgetent();
-
-int main() {
-tgetent()
-; return 0; }
-EOF
-if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-ltermcap $LIBS"
-
-else
- echo "$ac_t""no" 1>&6
-fi
-\
- echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
-echo "configure:2755: checking for fabs in -lm" >&5
-ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lm $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2763 "configure"
-#include "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 fabs();
-
-int main() {
-fabs()
-; return 0; }
-EOF
-if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-lm $LIBS"
-
-else
- echo "$ac_t""no" 1>&6
-fi
-\
- echo $ac_n "checking for gh_doubles2scm in -lguile""... $ac_c" 1>&6
-echo "configure:2805: checking for gh_doubles2scm in -lguile" >&5
-ac_lib_var=`echo guile'_'gh_doubles2scm | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lguile $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2813 "configure"
-#include "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 gh_doubles2scm();
-
-int main() {
-gh_doubles2scm()
-; return 0; }
-EOF
-if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo guile | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-lguile $LIBS"
-
-else
- echo "$ac_t""no" 1>&6
-fi
-\
-
-fi
-
- if test "$ac_cv_lib_guile_gh_scm2doubles" != yes -a \
- "$ac_cv_lib_guile_gh_doubles2scm" != yes ; then
-
+ if test "$ac_cv_lib_guile_gh_scm2doubles" != yes ; then
+
echo "configure: warning: You should install guile 1.3 or newer" 1>&2
warn_b=yes
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
-echo "configure:2868: checking for 8-bit clean memcmp" >&5
+echo "configure:2588: checking for 8-bit clean memcmp" >&5
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_func_memcmp_clean=no
else
cat > conftest.$ac_ext <<EOF
-#line 2876 "configure"
+#line 2596 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
}
EOF
-if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_memcmp_clean=yes
else
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
-echo "configure:2907: checking for vprintf" >&5
+echo "configure:2627: checking for vprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2912 "configure"
+#line 2632 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vprintf(); below. */
; return 0; }
EOF
-if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_vprintf=yes"
else
if test "$ac_cv_func_vprintf" != yes; then
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
-echo "configure:2962: checking for _doprnt" >&5
+echo "configure:2682: checking for _doprnt" >&5
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2967 "configure"
+#line 2687 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _doprnt(); below. */
; return 0; }
EOF
-if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func__doprnt=yes"
else
for ac_func in memmem snprintf vsnprintf gettext
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3020: checking for $ac_func" >&5
+echo "configure:2740: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3025 "configure"
+#line 2745 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3090: checking for $ac_word" >&5
+echo "configure:2810: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
s%@YODL2TEXINFO@%$YODL2TEXINFO%g
s%@YODL2TXT@%$YODL2TXT%g
s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
+s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
+s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
s%@LIBOBJS@%$LIBOBJS%g
s%@MAKEINFO@%$MAKEINFO%g
depth = ..
-NAME= debian
-BLURBS=BLURB
+NAME = debian
+BLURBS = BLURB
AT_FILES = $(BLURBS) #
at-dir = $(outdir)/
at-ext =
EXTRA_DIST_FILES = README.Debian TODO $(CONF_FILES) $(OUT_DIST_FILES) control.foka
-CONF_FILES=changelog copyright postinst postrm rules watch
-OUTCONF_FILES=$(addprefix $(outdir)/, $(basename $(CONF_FILES))) $(OUTIN_FILES)
+CONF_FILES = changelog copyright preinst postinst postrm rules watch
+#OUTCONF_FILES = $(addprefix $(outdir)/, $(basename $(CONF_FILES))) $(OUTIN_FILES)
+OUTCONF_FILES = $(OUTIN_FILES)
OUT_DIST_FILES = $(OUTIN_FILES)
STEPMAKE_TEMPLATES = yolily-debian
-lilypond (1.0.16-1) unstable; urgency=low
+lilypond (1.1.29-1) unstable; urgency=low
* New upstream release.
+ * [stepmake/aclocal.m4]: AC_STEPMAKE_GUILE now calls the GUILE_FLAGS
+ macro to set -lqthreads etc., otherwise Guile would not be detected
+ by the configure script.
+
+ -- Anthony Fok <foka@debian.org> Sun, 14 Feb 1999 09:05:00 -0700
+
+lilypond (1.0.19.uu3-1) frozen unstable; urgency=low
+
+ * New upstream bug-fix release.
+
+ -- Anthony Fok <foka@debian.org> Sat, 12 Dec 1998 04:23:15 -0700
+
+lilypond (1.0.19.uu1-2) frozen unstable; urgency=low
+
+ * [debian/rules]: Now builds the LilyPond documentation in dvi format.
+ Thanks to Roland Rosenfeld <roland@spinnaker.rhein.de>
+ for the bug report. (closes: Bug#30123).
+ * [debian/control]: Now also Recommends: tetex-extra (>= 0.9.981030-1)
+ because the .dvi documentation uses the EC fonts in that package.
+
+ -- Anthony Fok <foka@debian.org> Thu, 10 Dec 1998 17:43:57 -0700
+
+lilypond (1.0.19.uu1-1) frozen unstable; urgency=low
+
+ * New upstream bug-fix release.
+
+ -- Anthony Fok <foka@debian.org> Mon, 7 Dec 1998 13:12:02 -0700
+
+lilypond (1.0.18-2) frozen unstable; urgency=low
+
+ * [debian/rules]: Added symlink /usr/lib/texmf/fonts/afm/public/lilypond.
+ Thanks to Julian Gilbey <jdg@maths.qmw.ac.uk> for the bug report
+ (closes: Bug#29407).
+ * [scripts/ly2dvi.py]: Re-added a patch similar to the one in 1.0.17-1,
+ but teTeX's default search path is now placed *before* the ones that
+ ly2dvi adds. Thanks to Roland Rosenfeld <roland@spinnaker.rhein.de>
+ for the bug report. (closes: Bug#29459).
+
+ -- Anthony Fok <foka@debian.org> Mon, 23 Nov 1998 21:29:25 -0700
+
+lilypond (1.0.18-1) frozen unstable; urgency=low
+
+ * New upstream bug-fix release.
+ * [debian/control]:
+ - Upgraded to standards version 2.5.0.0 (no changes).
+ - Recommends: python-misc (>= 1.5.1) because ly2dvi needs the glob
+ module in the python-misc package (closes: Bug#29283).
+ - Updated dependencies on tetex* to the latest versions:
+ Depends: tetex-bin (>= 0.9.981031-2)
+ Recommends: tetex-base (>= 0.9.981030-1)
+ due to changes in tetex's directory structure.
+ * [debian/rules]:
+ - The symlink ../../../../../share/lilypond/mf is now named
+ /usr/lib/texmf/fonts/source/public/lilypond instead of
+ /usr/lib/texmf/fonts/source/public/mf (Bug#29284).
+ - In the latest tetex-base package, /usr/lib/texmf/doc is now a
+ symlink to /usr/doc/texmf. Therefore, we now install lilypond's
+ documentation into /usr/doc/texmf/musixtex/lilypond.
+ (closes: Bug#28999, Bug#29326)
+ * [debian/preinst]:
+ - The script now removes the directories
+ /var/spool/texmf/pk/*/public/mf and /var/spool/texmf/tfm/public/mf
+ created inadvertently by Debian's buggy lilypond 1.0.17-1. :-)
+ (Bug#29284)
+ - Since 1.0.17-1, /usr/lib/texmf/tex/lilypond has been changed to a
+ symbolic directory. The script now removes the old real directory
+ to prevent problems during upgrade (closes: Bug#29284).
+ * [debian/postinst]: I copied a few lines from tetex-nonfree's postinst
+ to remove the old directory /usr/lib/texmf/doc if lilypond is the
+ last package to use that directory, and create a symlink to
+ /usr/doc/texmf. :-)
+ * Rebuilt with yodl (1.31.7-1) installed to ensure the documentations
+ are compiled properly (closes: Bug#29285).
+ * Thanks to Fabien Ninoles <fab@tzone.org>, Roland Rosenfeld
+ <roland@spinnaker.rhein.de> and Julian Gilbey <jdg@maths.qmw.ac.uk>
+ for reporting the bugs listed above. :-)
+
+ -- Anthony Fok <foka@debian.org> Thu, 12 Nov 1998 03:14:25 -0700
+
+lilypond (1.0.17-1) frozen unstable; urgency=low
+
+ * New upstream "stable" release.
* [debian/{copyright,control}]: pcnov095.win.tue.nl -> ftp.cs.uu.nl
(New upstream master FTP site). Also updated JCN's web site URL.
* [debian/rules]:
run. Thanks to Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
for reporting the problem! (closes: Bug#27044)
- Updated debian/rules according to the new debhelper rules example.
- * [Documentation/topdocs/AUTHORS.yo]: Added a trailing "/" on URLs.
-
- -- Anthony Fok <foka@debian.org> Thu, 15 Oct 1998 04:49:40 -0600
+ - Now configures with --disable-optimise instead of --enable-optimise,
+ otherwise it would not compile.
+ - Added symlinks to directories under /usr/lib/texmf because lilypond
+ now puts everything under /usr/share/lilypond.
+ * [Documentation/topdocs/AUTHORS.yo]: Added a trailing "/" on URLs.
+ * [scripts/ly2dvi.py]: Added a hack to add an extra os.pathsep (":" on
+ Linux) to TEXINPUTS and MFINPUTS, otherwise ly2dvi and TeX would fail
+ to find the necessary files.
+ * Compiled with libstdc++2.9. :-)
+
+ -- Anthony Fok <foka@debian.org> Tue, 3 Nov 1998 14:31:18 -0700
lilypond (1.0.2-1) unstable; urgency=low
* New upstream release with lots of bug fixes, including the MIDI
generation bug in 0.1.48. Please put this in Hamm.
- * debian/rules:
+ * debian/control:
- Upgraded to standards version 2.4.1.0 (no changes).
+ * debian/rules:
- lilypond now also depends on tetex-base (>= 0.9-5)
and conflicts with tetex-base (<< 0.9).
* Modified postinst and postrm to work with teTeX 0.9 / Web2C 7.2:
Section: tex
Priority: optional
Maintainer: Anthony Fok <foka@debian.org>
-Standards-Version: 2.4.1.0
+Standards-Version: 2.5.0.0
Package: lilypond
Architecture: any
-Depends: ${shlibs:Depends}, tetex-base (>= 0.9-5)
-Recommends: python-base (>= 1.5.1)
+Depends: ${shlibs:Depends}, tetex-bin (>= 0.9.981031-2)
+Recommends: python-base (>= 1.5.1), python-misc (>= 1.5.1), tetex-base (>= 0.9.981030-1), tetex-extra (>= 0.9.981030-1)
Conflicts: musixtex-fonts, tetex-base (<< 0.9)
Description: The GNU Project music typesetter.
LilyPond is the GNU Project music typesetter. This program can print
beautiful sheet music from a music definition file. It can also play
mechanical performances to a MIDI file. Features include multiple
- staffs, meters, clefs, keys, lyrics, versatile input language,
- cadenzas, beams, slurs, triplets, formatting scores, part extraction.
- It includes a nice font of musical symbols.
- .
- LilyPond is de muziek typesetter van het GNU Project.
- Het programma genereert prachtige bladmuziek uit een muziek definitie
- bestand. Ook kan het (mechanische) uitvoeringen afspelen naar MIDI
- bestanden. Bijzondere mogelijkheden omvatten verscheidene notenbalken,
- maatsoorten, sleutels, toonsoorten, zangteksten, krachtige invoer taal,
- cadensa, balken, boogjes, triolen, partituren, en losse partijen. Een
- fraai font met muzikeksymbolen wordt meegeleverd.
+ staffs, meters, clefs, keys, lyrics, versatile input language, cadenzas,
+ beams, slurs, triplets, formatting scores, part extraction. It includes
+ a nice font of musical symbols.
.
URLs: http://www.cs.uu.nl/~hanwen/lilypond/
- http://www.digicash.com/~jan/lilypond/
- http://sca.uwaterloo.ca/lilypond/
+ http://www.xs4all.nl/~jantien/lilypond/
+ http://sca.uwaterloo.ca/~praetzel/lilypond/
Authors: Han-Wen Nienhuys <hanwen@cs.uu.nl>
Jan Nieuwenhuizen <janneke@gnu.org>
Section: tex
Priority: optional
Maintainer: Anthony Fok <foka@debian.org>
-Standards-Version: 2.4.1.0
+Standards-Version: 2.5.0.0
Package: lilypond
Architecture: any
-Depends: ${shlibs:Depends}, tetex-base (>= 0.9-5)
-Recommends: python-base (>= 1.5.1)
+Depends: ${shlibs:Depends}, tetex-bin (>= 0.9.981031-2)
+Recommends: python-base (>= 1.5.1), python-misc (>= 1.5.1), tetex-base (>= 0.9.981030-1), tetex-extra (>= 0.9.981030-1)
Conflicts: musixtex-fonts, tetex-base (<< 0.9)
Description: The GNU Project music typesetter.@BLURB@
.
URLs: http://www.cs.uu.nl/~hanwen/lilypond/
http://www.xs4all.nl/~jantien/lilypond/
http://sca.uwaterloo.ca/~praetzel/lilypond/
+ http://www.lilypond.org/
Authors: Han-Wen Nienhuys <hanwen@cs.uu.nl>
Jan Nieuwenhuizen <janneke@gnu.org>
Wed, 6 Aug 1997 04:30:28 -0600
It was downloaded from
- ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/development/lilypond-1.0.16.tar.gz
+ ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/development/lilypond-1.1.29.tar.gz
It is also available from:
For more information about GNU LilyPond, please visit:
http://www.cs.uu.nl/~hanwen/lilypond/
or http://www.xs4all.nl/~jantien/
+ or http://www.lilypond.org/
or http://sca.uwaterloo.ca/lilypond/
Authors:
--- /dev/null
+#!/bin/sh
+#
+# preinst script for the Debian GNU/Linux lilypond package
+# by Anthony Fok <foka@debian.org>
+# This is free software; see the GNU General Public Licence
+# version 2 or later for copying conditions. There is NO warranty.
+# Last modified: Tue, 10 Nov 1998 23:47:00 -0700
+
+set -e
+
+package=lilypond
+font_supplier=public
+font_typeface=lilypond
+std_TEXMFMAIN=/usr/lib/texmf
+std_VARTEXFONTS=/var/spool/texmf
+
+#DEBHELPER#
+
+TEXMFMAIN=`/usr/bin/kpsewhich -expand-var '$TEXMFMAIN'`
+: ${TEXMFMAIN:=$std_TEXMFMAIN}
+VARTEXFONTS=`/usr/bin/kpsewhich -expand-var '$VARTEXFONTS'`
+: ${VARTEXFONTS=$std_VARTEXFONTS}
+
+LILYTEXINPUTS=$TEXMFMAIN/tex/$package
+LILYMFINPUTS=$TEXMFMAIN/fonts/source/$font_supplier/$font_typeface
+
+case "$1" in
+ install|upgrade)
+ # Clear out the old TFM and PK files in case the fonts were
+ # left-over from previous installations
+ rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
+ rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
+
+ # Fix a silly bug in Debian's lilypond 1.0.17-1. :-)
+ if [ "$2" = "1.0.17-1" ]; then
+ rm -rf $VARTEXFONTS/tfm/$font_supplier/mf
+ rm -rf $VARTEXFONTS/pk/*/$font_supplier/mf
+ fi
+
+ # Since 1.0.17-1, /usr/lib/texmf/tex/lilypond has been changed
+ # to a symbolic directory. Remove the old real directory to
+ # prevent problems during upgrade.
+ for i in $LILYTEXINPUTS $LILYMFINPUTS; do
+ if [ -d $i -a ! -L $i ]; then
+ rm -rf $i
+ fi
+ done
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "$0 called with unknown argument \`$1'" >&2
+ exit 0
+ ;;
+
+esac
build-stamp:
dh_testdir
+ # CC=egcc LIBS=-lqthreads
CC=egcc ./configure --disable-checking --disable-debugging \
- --enable-printing --prefix=/usr --enable-optimise \
+ --enable-printing --prefix=/usr --disable-optimise \
--enable-shared
$(MAKE) all
# $(MAKE) htmldoc
# Correct the owner of the out/dummy.dep files when built with sudo.
if [ -n "$$SUDO_USER" -a -n "$$SUDO_GID" ]; then \
- find . -user root | xargs -r chown $$SUDO_USER.$$SUDO_GID; \
+ find . -user root | xargs -r chown --dereference $$SUDO_USER.$$SUDO_GID; \
else \
- find . -user root | xargs -r chown $$LOGNAME; \
+ find . -user root | xargs -r chown --dereference $$LOGNAME; \
fi
# Remove the following line once the *.make files are fixed
dh_testdir
dh_testroot
cp -av mudela-mode.el $(r)/usr/lib/emacs/site-lisp
- dh_installdocs ANNOUNCEMENT ANNOUNCE-0.1 NEWS* DEDICATION \
+ dh_installdocs ANNOUNCEMENT ANNOUNCE-0.1 NEWS-* DEDICATION \
BUGS TODO *.txt \
Documentation/pictures/*.xpm \
Documentation/out/*.txt \
# dh_installcron
# dh_installmanpages
# dh_undocumented
- dh_installchangelogs
+ dh_installchangelogs -k NEWS
# dh_strip
dh_compress
- ( cd $(r)/$(d) && \
- if [ -f NEWS ]; then gzip -9vf NEWS; fi )
- ln -s NEWS.gz $(r)/$(d)/changelog.gz
dh_fixperms
dh_suidregister
dh_installdeb
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
-# Site Directory Pattern Version Script
-ftp.cs.uu.nl /pub/GNU/LilyPond/development lilypond-*.tar.gz debian uupdate
+# Site Directory Pattern Version Script
+ftp.cs.uu.nl /pub/GNU/LilyPond/v1.1 lilypond-*.tar.gz debian uupdate
http://www.Arkkra.com/doc/star.html
http://www.Arkkra.com/doc/star.ps
%}
+
\header{
-title="The Star Spangled Banner";
-subtitle="(The United States National Anthem)";
-poet="Text by Francis Scott Key";
-composer="J. S. Smith";
-arranger="Arranged by William J. Krauss";
-enteredby="jcn";
-copyright="public domain";
+ title="The Star Spangled Banner";
+ subtitle="The United States National Anthem";
+ poet="Text by Francis Scott Key";
+ composer="J. S. Smith";
+ arranger="Arranged by William J. Krauss";
+ enteredby="jcn";
+ copyright="public domain";
}
$staff1_voice_1 = \notes {
g8. g16 fis4.~a,8 d8 e8 fis2 b8 b8 a4. a8 a,4 d2 s4
}
-$text = \lyrics{
- Oh4 __ \repeat 2 { }
+text = \lyrics
+\type LyricVoice { Oh4 __ \repeat 2 { }
\alternative <
- { say. can you see,2 by8. the16 dawn's4 ear- ly light2 What8
- so8 proud-4. ly8 we4 hailed,2 At8. the16 twi-4 light's last gleam-
- ing. Whose8. broad16 }
- { stripes4 and bright stars,2 through8. the16 per-4 il- ous fight,2
- O'er8 the8 ram-4. parts8 we4 watched,2 were8. so16 gal-4 lant- ly }
+ { say. can you see,2 by8. the16 dawn's4 ear- ly light2 What8
+ so8 proud-4. ly8 we4 hailed,2 At8. the16 twi-4 light's last gleam-
+ ing. Whose8. broad16 }
+
+ \type LyricVoice = LVB
+ { stripes4 and bright stars,2 through8. the16 per-4 il- ous fight,2
+ O'er8 the8 ram-4. parts8 we4 watched,2 were8. so16 gal-4 lant- ly }
>
stream-4 ing. And8. the16 rock-4 ets' red glare,2 the8 bombs8
burst-4 ing in air,2 gave4 proof4. through8 the4 night2 that8.
\notes \transpose c'' {\voiceone \$staff1_voice_1 }
\notes \transpose c'' {\voicetwo \$staff1_voice_2 }
>
- \type Lyrics = one \lyrics <
- \$text
- >
+ \type Lyrics = one \text
\type Staff=staffB <
\global
\clef bass;
URG_DEFINES = -DGNULOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(localedir):\"
EXTRA_CFLAGS = -I. $(URG_DEFINES)
-EXTRA_DIST_FILES = Makefile.in.dist cat-compat.c.dist ChangeLog libintl.inst $(SED_FILES)
+EXTRA_DIST_FILES = Makefile.in.dist cat-compat.c.dist ChangeLog $(SED_FILES)
-STEPMAKE_TEMPLATES=c library
+ifeq ($(strip $(LIBINTL)),)
+STEPMAKE_TEMPLATES=c
+else
+STEPMAKE_TEMPLATES=c library install-library
+endif
+
+# catch default targets: don't make, install etc.
+default: $(outdir)
+ @echo "*** To install libintl type 'make lib; make install-lib' ***"
$(outdir)/library.a:
@echo "*** To install libintl type 'make lib; make install-lib' ***"
+localinstall: $(outdir)
+ @echo "*** To install libintl type 'make lib; make install-lib' ***"
+
+localuninstall: $(outdir)
+ @echo "*** To uninstall libintl type 'make uninstall-lib' ***"
+
include $(depth)/make/stepmake.make
-lib: $(LIBRARY)
-LIBINTL = $(LIBRARY)
-
-# localinstall: $(LIBINTL)
-install-lib: $(LIBINTL)
- $(INSTALL) -d $(includedir)
-# $(INSTALL) libintl.h $(includedir)
- $(INSTALL) libintl.inst $(includedir)/libintl.h
-ifeq ($(LIB_SUFFIX),.so)
- $(INSTALL) -d $(libdir)
- $(INSTALL) $(LIBINTL).$(VERSION) $(libdir)
- ln -s $(LIB_PREFIX)intl$(LIB_SUFFIX).$(VERSION) $(libdir)/$(LIB_PREFIX)intl$(LIB_SUFFIX).$(MAJOR_VERSION)
- ln -s $(LIB_PREFIX)intl$(LIB_SUFFIX).$(VERSION) $(libdir)/$(LIB_PREFIX)intl$(LIB_SUFFIX)
-else
- $(INSTALL) -d $(libdir)
- $(INSTALL) $(LIBINTL) $(libdir)/$(INSTALL_LIBRARY)
-endif
-localuninstall:
- rm -f $(includedir)/libintl.h
- rm -f $(libdir)/libintl.{so*,a}
+# deferred targets
+lib:
+ $(MAKE) LIBINTL=yes all
+
+install-lib: $(LIBRARY)
+ $(MAKE) LIBINTL=yes localinstall
+
+uninstall-lib:
+ $(MAKE) LIBINTL=yes localuninstall
--- /dev/null
+/* libintl.h -- Message catalogs for internationalization.
+Copyright (C) 1995 Free Software Foundation, Inc.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#ifndef _LIBINTL_H
+#define _LIBINTL_H 1
+
+#ifdef HAVE_LOCALE_H
+# include <locale.h>
+#endif
+
+/* We define an additional symbol to signal that we use the GNU
+ implementation of gettext. */
+#define __USE_GNU_GETTEXT 1
+
+#ifndef __P
+# if __STDC__
+# define __P(args) args
+# else
+# define __P(args) ()
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Look up MSGID in the current default message catalog for the current
+ LC_MESSAGES locale. If not found, returns MSGID itself (the default
+ text). */
+extern char *gettext __P ((const char *__msgid));
+
+/* Look up MSGID in the DOMAINNAME message catalog for the current
+ LC_MESSAGES locale. */
+extern char *dgettext __P ((const char *__domainname, const char *__msgid));
+
+/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
+ locale. */
+extern char *dcgettext __P ((const char *__domainname, const char *__msgid,
+ int __category));
+
+
+/* Set the current default message catalog to DOMAINNAME.
+ If DOMAINNAME is null, return the current default.
+ If DOMAINNAME is "", reset to the default of "messages". */
+extern char *textdomain __P ((const char *__domainname));
+
+/* Specify that the DOMAINNAME message catalog will be found
+ in DIRNAME rather than in the system locale data base. */
+extern char *bindtextdomain __P ((const char *__domainname,
+ const char *__dirname));
+
+
+/* Optimized version of the functions above. */
+#if defined __OPTIMIZED
+/* These must be a macro. Inlined functions are useless because the
+ `__builtin_constant_p' predicate in dcgettext would always return
+ false. */
+
+# define gettext(msgid) dgettext ((char *) 0, msgid)
+
+# define dgettext(domainname, msgid) \
+ dcgettext (domainname, msgid, LC_MESSAGES)
+
+# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+# define dcgettext(domainname, msgid, category) \
+ (__extension__ \
+ ({ \
+ char *result; \
+ if (__builtin_constant_p (msgid)) \
+ { \
+ extern int _nl_msg_cat_cntr; \
+ static char *__translation__; \
+ static int __catalog_counter__; \
+ if (! __translation__ || __catalog_counter__ != _nl_msg_cat_cntr) \
+ { \
+ __translation__ = \
+ (dcgettext) ((domainname), (msgid), (category)); \
+ __catalog_counter__ = _nl_msg_cat_cntr; \
+ } \
+ result = __translation__; \
+ } \
+ else \
+ result = (dcgettext) ((domainname), (msgid), (category)); \
+ result; \
+ }))
+# endif
+#endif /* Optimizing. */
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* libintl.h */
}
-#if 0
+#if ATOM_SMOB
int
Atom::smob_display (SCM smob, SCM port, scm_print_state*)
{
begin_mom = begin_mult.to_rat ();
}
+ /* UGH
+ Rational != Float
+ */
Real f;
if (end_mom)
f = fmod (time->whole_in_measure_, end_mom);
static Array<Musical_pitch>
missing_triads_pitch_arr (Array<Musical_pitch>const* pitch_arr_p)
{
- Musical_pitch third (2);
- Musical_pitch mthird (2, -1);
-
Array<Musical_pitch> triads;
- triads.push (third); // c e
- triads.push (mthird); // d f
- triads.push (mthird); // e g
- triads.push (third); // f a
- triads.push (third); // g b
- triads.push (mthird); // a c
- triads.push (mthird); // b d
+
+ /* is the third c-e, d-f, etc. small or large? */
+ int minormajor_a[] = {0, -1, -1, 0,0,-1,-1};
+ for (int i=0; i < 7; i++)
+ triads.push (Musical_pitch( 2, minormajor_a[i]));
Musical_pitch tonic = (*pitch_arr_p)[0];
Musical_pitch last = tonic;
Array<Musical_pitch> sub_arr;
find_additions_and_subtractions (&add_arr, &sub_arr);
+
Array<Musical_pitch> scale;
- scale.push (Musical_pitch (0)); // c
- scale.push (Musical_pitch (1)); // d
- scale.push (Musical_pitch (2)); // e
- scale.push (Musical_pitch (3)); // f
- scale.push (Musical_pitch (4)); // g
- scale.push (Musical_pitch (5)); // a
- scale.push (Musical_pitch (6)); // b
+ for (int i=0; i < 7; i++)
+ scale.push (Musical_pitch (i));
+
// 7 always means 7-...
// scale.push (Musical_pitch (6, -1)); // b
announce_element (Score_element_info (text_p_, dreq_l));
announce_element (Score_element_info (staff_side_p_, dreq_l));
}
- else if (Span_dynamic_req *span_l = dynamic_cast <Span_dynamic_req *> (dreq_l))
+ else if (Span_dynamic_req *span_l
+ = dynamic_cast <Span_dynamic_req *> (dreq_l))
{
if (span_l->spantype_ == STOP)
{
Extender_engraver::Extender_engraver ()
{
extender_spanner_p_ = 0;
- span_reqs_drul_[RIGHT] = span_reqs_drul_[LEFT] = 0;
+ req_l_ = 0;
}
void
Extender_engraver::acknowledge_element (Score_element_info i)
{
- G_text_item* t = dynamic_cast<G_text_item*> (i.elem_l_);
- if (!t)
- return;
- if (!extender_spanner_p_)
- return;
- if (!span_reqs_drul_[LEFT])
- return;
-
- if (!extender_spanner_p_->item_l_drul_[LEFT])
- extender_spanner_p_->set_textitem (LEFT, t);
- else
- if (span_reqs_drul_[RIGHT] && !extender_spanner_p_->item_l_drul_[RIGHT])
- extender_spanner_p_->set_textitem (RIGHT, t);
+ if (G_text_item* t = dynamic_cast<G_text_item*> (i.elem_l_))
+ {
+ Rhythmic_req * rh = dynamic_cast<Rhythmic_req*> (i.req_l_);
+ if (!rh)
+ return;
+
+ now_lyrics_.push (Text_lyric_tuple (t, rh, now_mom () + rh->length_mom ()));
+ /*
+ UGH. What do we do in case of multiple alternatives?
+ */
+ if (extender_spanner_p_
+ && !extender_spanner_p_->spanned_drul_[RIGHT]
+ )
+ {
+ extender_spanner_p_->set_textitem (RIGHT, t);
+ }
+ }
}
+
bool
Extender_engraver::do_try_music (Music* req_l)
{
if (Extender_req* p = dynamic_cast <Extender_req *> (req_l))
{
- if (bool (extender_spanner_p_) == bool (p->spantype_ == START))
+ if (req_l_)
return false;
- Direction d = (!extender_spanner_p_) ? LEFT : RIGHT;
- if (span_reqs_drul_[d] && !span_reqs_drul_[d]->equal_b (p))
- return false;
-
- span_reqs_drul_[d] = p;
- span_mom_drul_[d] = get_staff_info ().musical_l ()->when ();
+ req_l_ = p;
return true;
}
return false;
{
if (extender_spanner_p_)
{
- span_reqs_drul_[LEFT]->warning (_ ("unterminated extender"));
+ req_l_->warning (_ ("unterminated extender"));
extender_spanner_p_->set_bounds(RIGHT, get_staff_info ().command_l ());
}
}
void
Extender_engraver::do_process_requests ()
{
- if (extender_spanner_p_ || !span_reqs_drul_[LEFT])
- return;
+ Array<Text_lyric_tuple> stopped_texts;
+ Moment now = now_mom ();
- extender_spanner_p_ = new Extender_spanner;
+ stopped_texts.clear ();
+ while (past_lyrics_pq_.size ()
+ && past_lyrics_pq_.front ().end_ == now)
+ stopped_texts.push (past_lyrics_pq_.get ());
- announce_element (Score_element_info (extender_spanner_p_, span_reqs_drul_[LEFT]));
+ if (req_l_)
+ {
+ if (!stopped_texts.size ())
+ {
+ req_l_->warning ("Nothing to connect extender to on the left. Ignoring extender request");
+ return;
+ }
+
+ extender_spanner_p_ = new Extender_spanner;
+ extender_spanner_p_->set_textitem (LEFT, stopped_texts[0].text_l_);
+ announce_element (Score_element_info (extender_spanner_p_, req_l_));
+ }
}
+
void
Extender_engraver::do_pre_move_processing ()
{
- if (!extender_spanner_p_ || !span_reqs_drul_[RIGHT])
- return;
+ for (int i=0; i < now_lyrics_.size (); i++)
+ {
+ past_lyrics_pq_.insert (now_lyrics_[i]);
+ }
+ now_lyrics_.clear ();
- typeset_element (extender_spanner_p_);
-
- extender_spanner_p_ = 0;
- span_reqs_drul_[RIGHT] = span_reqs_drul_[LEFT] = 0;
+ if (extender_spanner_p_)
+ {
+ typeset_element (extender_spanner_p_);
+ extender_spanner_p_ = 0;
+ }
+}
+void
+Extender_engraver::do_post_move_processing ()
+{
+ Moment now = now_mom ();
+ while (past_lyrics_pq_.size () && past_lyrics_pq_.front ().end_ < now)
+ past_lyrics_pq_.delmin ();
+
+ req_l_ =0;
+}
+
+/**********************************************************************/
+Text_lyric_tuple::Text_lyric_tuple ()
+{
+ text_l_ =0;
+ req_l_ =0;
+ end_ = 0;
}
+Text_lyric_tuple::Text_lyric_tuple (G_text_item *h, Rhythmic_req*m, Moment mom)
+{
+ text_l_ = h;
+ req_l_ = m;
+ end_ = mom;
+}
+
+
+int
+Text_lyric_tuple::time_compare (Text_lyric_tuple const&h1,
+ Text_lyric_tuple const &h2)
+{
+ return (h1.end_ - h2.end_ ).sign ();
+}
source file of the GNU LilyPond music typesetter
- (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998, 1999 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "p-col.hh"
#include "paper-def.hh"
#include "extender-spanner.hh"
-#include "text-def.hh"
Extender_spanner::Extender_spanner ()
: Directional_spanner ()
source file of the GNU LilyPond music typesetter
- (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998, 1999 Jan Nieuwenhuizen <janneke@gnu.org>
*/
-#include "staff-sym.hh"
-#include "command-request.hh"
-#include "note-head.hh"
+#include "rhythmic-head.hh"
#include "hara-kiri-vertical-group-spanner.hh"
#include "hara-kiri-line-group-engraver.hh"
void
Hara_kiri_line_group_engraver::typeset_element(Score_element * e)
{
- if (Note_head *h = dynamic_cast<Note_head *> (e))
+ if (Rhythmic_head *h = dynamic_cast<Rhythmic_head *> (e))
{
dynamic_cast<Hara_kiri_vertical_group_spanner*> (staffline_p_)
- ->add_note (h);
+ ->add_interesting_item (h);
}
Line_group_engraver_group::typeset_element (e);
}
source file of the GNU LilyPond music typesetter
- (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998,1999 Jan Nieuwenhuizen <janneke@gnu.org>
+ Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "hara-kiri-vertical-group-spanner.hh"
#include "debug.hh"
-#include "note-head.hh"
-#include "bar.hh"
-
-
+#include "item.hh"
Hara_kiri_vertical_group_spanner::Hara_kiri_vertical_group_spanner()
{
}
void
-Hara_kiri_vertical_group_spanner::add_note (Note_head* n)
+Hara_kiri_vertical_group_spanner::add_interesting_item (Item* n)
{
add_dependency (n);
- head_l_arr_.push (n);
+ interesting_items_.push (n);
}
void
Hara_kiri_vertical_group_spanner::do_post_processing ()
{
- if (!head_l_arr_.empty ())
+ if (!interesting_items_.empty ())
return;
Link_array<Score_element> childs = get_children ();
void
Hara_kiri_vertical_group_spanner::do_substitute_dependency (Score_element*o, Score_element*n)
{
- if (dynamic_cast<Note_head *> (o))
- head_l_arr_.substitute (dynamic_cast<Note_head *> (o),
- (n)? dynamic_cast<Note_head *> (n) : 0);
+ if (Item *it = dynamic_cast<Item *> (o))
+ interesting_items_.substitute (it, dynamic_cast<Item *> (n));
}
#include "lily-proto.hh"
#include "lily-guile.hh"
-#if 0
+#ifdef ATOM_SMOB
+
/// a symbol which can be translated, and freely copied
class Atom {
static long smob_tag_;
static SCM smob_mark (SCM);
static scm_sizet smob_free (SCM);
static int smob_display (SCM, SCM, scm_print_state*);
- Atom (SCM s);
SCM make_smob () const;
public:
Offset off_;
+ Atom (SCM s);
static SCM make_atom (SCM outputfunc);
SCM copy_self () const;
#include "engraver.hh"
#include "drul-array.hh"
#include "extender-spanner.hh"
+#include "pqueue.hh"
+
+struct Text_lyric_tuple {
+ Rhythmic_req *req_l_ ;
+ G_text_item *text_l_;
+ Moment end_;
+
+ Text_lyric_tuple ();
+ Text_lyric_tuple (G_text_item*, Rhythmic_req*, Moment);
+ static int time_compare (Text_lyric_tuple const &, Text_lyric_tuple const &);
+};
+
+inline int compare (Text_lyric_tuple const &a, Text_lyric_tuple const &b)
+{
+ return Text_lyric_tuple::time_compare (a,b);
+}
+
+
+
/**
- Generate an extender.
- Should make an Extender_spanner that typesets a nice extender line.
- */
+ Generate an extender. Should make an Extender_spanner that typesets
+ a nice extender line.
+
+ We remember all G_text_items that come across, and store their
+ termination times. When we get a request, we create the spanner, and
+ attach the left point to the finished lyrics, and the right point to
+ any lyrics we receive by then.
+*/
class Extender_engraver : public Engraver
{
+ PQueue<Text_lyric_tuple> past_lyrics_pq_;
+ Array<Text_lyric_tuple> now_lyrics_;
+ Array<Text_lyric_tuple> stopped_lyrics_;
+
+ Extender_req* req_l_;
+ Extender_spanner* extender_spanner_p_;
+
+
public:
Extender_engraver ();
VIRTUAL_COPY_CONS (Translator);
virtual void do_process_requests();
virtual bool do_try_music (Music*);
virtual void do_pre_move_processing();
-
+ virtual void do_post_move_processing ();
private:
- Drul_array<Extender_req*> span_reqs_drul_;
- Drul_array<Moment> span_mom_drul_;
- Extender_spanner* extender_spanner_p_;
+
};
#endif // EXTENDER_ENGRAVER_HH
/*
extender-spanner.hh -- part of GNU LilyPond
- (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998, 1999 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#ifndef EXTENDER_SPANNER_HH
extend beond, lasting the whole duration of the melissima
(as in MUP, urg).
*/
-
class Extender_spanner : public Directional_spanner
{
public:
source file of the GNU LilyPond music typesetter
- (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998, 1999 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "line-group-group-engraver.hh"
/**
- Just as Line_group_engraver, but won't disgrace Lily by typesetting
- an empty line (for orchestral scores).
+ Just as Line_group_engraver, Find interesting items for
+ Hara_kiri_line_group_engraver.
+
+
+
+ @see
+ Hara_kiri_vertical_group_spanner
+
+
*/
class Hara_kiri_line_group_engraver : public Line_group_engraver_group
{
source file of the GNU LilyPond music typesetter
- (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998, 1999 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "vertical-group-spanner.hh"
/**
- As Vertical_group_spanner, but keeps dependencies to notes.
- */
+ As Vertical_group_spanner, but keep track of interesting items. If
+ we don't contain any interesting items after linebreaking, then
+ gracefully commit suicide. Objective: don't disgrace Lily by
+ typesetting empty lines in orchestral scores. */
class Hara_kiri_vertical_group_spanner : public Vertical_group_spanner
{
public:
-
-
Hara_kiri_vertical_group_spanner ();
virtual void do_post_processing ();
- void add_note (Note_head* n);
-
+ void add_interesting_item (Item* n);
protected:
VIRTUAL_COPY_CONS(Score_element);
virtual void do_substitute_dependency (Score_element*, Score_element*);
virtual void do_print ()const;
- Link_array<Note_head> head_l_arr_;
+ Link_array<Item> interesting_items_;
};
#include "engraver.hh"
#include "array.hh"
+/**
+ Generate texts for lyric syllables. We only do one lyric at a time.
+ Multiple copies of this engraver should be used to do multiple voices.
+ */
class Lyric_engraver : public Engraver
{
protected:
virtual void do_pre_move_processing();
virtual bool do_try_music (Music*);
virtual void do_process_requests();
-
+ virtual void do_post_move_processing ();
public:
Lyric_engraver ();
VIRTUAL_COPY_CONS (Translator);
private:
- Link_array<Lyric_req> lyric_req_l_arr_;
- Link_array<Item> text_p_arr_;
+ Lyric_req * req_l_;
+ G_text_item* text_p_;
};
/** a group of individually translated symbols. You can add molecules
to the top, to the right, etc. */
class Molecule {
+#ifdef ATOM_SMOB
+ SCM atom_list_;
+#else
// Protected_scm atom_list_; // change to List<Atom>?
Cons<Atom> *atom_list_;
+#endif
friend class Paper_outputter;
public:
Box dim_;
};
/// an extender line
-class Extender_req : public Musical_span_req {
+class Extender_req : public Request {
public:
REQUESTMETHODS(Extender_req);
Extender_req ();
#include "array.hh"
#include "input.hh"
+/**
+ State for the parser. Do not ever add any variables to parse
+ musical content here. We still have to remove default_duration_.
+
+ */
class My_lily_parser
{
public:
public:
Duration default_duration_;
- Extender_req* extender_req;
Scope *default_header_p_;
-
bool first_b_;
-
- Link_array<Request> pre_reqs, post_reqs;
int fatal_error_i_;
Sources * source_l_;
int error_level_i_;
bool init_parse_b_;
My_lily_lexer * lexer_p_;
-
+ bool ignore_version_b_;
+
+
+
Input here_input() const;
void remember_spot();
Input pop_spot();
void do_yyparse();
void parser_error (String);
- Link_array<Request>* get_parens_request (int t);
-
void set_debug();
void set_yydebug (bool);
- bool ignore_version_b_;
-
private:
char const* here_ch_C() const;
Array<Input> define_spot_array_;
String init_str_;
- void add_requests (Simultaneous_music*v);
-
Simultaneous_music * get_note_element (Note_req * ,Duration *);
Simultaneous_music * get_chord (Musical_pitch, Array<Musical_pitch>*, Array<Musical_pitch>*, Musical_pitch*, Duration);
Simultaneous_music* get_rest_element (String, Duration *);
Simultaneous_music* get_word_element (String, Duration*);
- Melodic_req* get_melodic_req (Melodic_req* melodic, int quotes);
String notename_str (Melodic_req* melodic);
void set_last_duration (Duration const *);
friend int yyparse (void*);
Item::find_prebroken_piece (Direction breakstatus) const
{
if (!breakstatus)
- return (Item *)(this); // ugh
+ return (Item *) (this); // ugh
else
- return dynamic_cast<Item*>( broken_to_drul_[breakstatus]);
+ return dynamic_cast<Item*> (broken_to_drul_[breakstatus]);
}
void
{0,0}
};
+// Magic numbers from Knuths plain.tex:
+static Real mag_steps[] = {1, 1, 1.200, 1.440, 1.7280, 2.074, 2.488};
+
static Dictionary<char const *> cmr_dict (cmr_init);
Molecule
{
Molecule m;
-
+ int font_mag = 1;
Real font_h = paper_l_->get_var ("font_normal");
if (paper_l_->scope_p_->elem_b ("font_" + style))
{
font_h = paper_l_->get_var ("font_" + style);
}
+ if (paper_l_->scope_p_->elem_b ("magnification_" + style))
+ {
+ font_mag = (int)paper_l_->get_var ("magnification_" + style);
+ }
+
if (cmr_dict.elem_b (style))
{
style = String (cmr_dict [style]) + to_str ((int)font_h); // ugh
}
}
+ if (font_mag > 1 && font_mag < 7 )
+ {
+ style = style + String(" scaled \\magstep ") + to_str (font_mag);
+ w *= mag_steps[font_mag];
+ ydims *= mag_steps[font_mag];
+ }
+
DOUT << "\n" << to_str (w) << "\n";
m.dim_.x () = Interval (0, w);
m.dim_.y () = ydims;
Lyric_engraver::Lyric_engraver()
{
+ text_p_ =0;
+ req_l_ =0;
}
bool
{
if (Lyric_req* l = dynamic_cast <Lyric_req *> (r))
{
- lyric_req_l_arr_.push (l);
+ if (req_l_)
+ return false;
+ req_l_ =l;
return true;
}
return false;
void
Lyric_engraver::do_process_requests()
{
- if (text_p_arr_.size ())
- return;
-
- for (int i=0; i < lyric_req_l_arr_.size (); i++)
+ if (req_l_)
{
- Lyric_req* request_l = lyric_req_l_arr_[i];
- G_text_item* item_p = new G_text_item;
- item_p->text_str_ = request_l->text_str_;
+ text_p_= new G_text_item;
+ text_p_->text_str_ = req_l_->text_str_;
Scalar style = get_property ("textstyle", 0);
if (style.length_i ())
- item_p->style_str_ = style;
- if (i)
- {
- Real dy = paper ()->lookup_l (0)-> text
- (item_p->style_str_, String ("Cg")).dim_. y ().length ();
- dy *= 1.1;
- item_p->translate_axis (-i * dy, Y_AXIS);
- }
+ text_p_->style_str_ = style;
- text_p_arr_.push (item_p);
- announce_element (Score_element_info (item_p, request_l));
+ announce_element (Score_element_info (text_p_, req_l_));
}
}
void
Lyric_engraver::do_pre_move_processing()
{
- for (int i=0; i < text_p_arr_.size (); i++)
+ if (text_p_)
{
- typeset_element (text_p_arr_[i]);
+ typeset_element (text_p_);
+ text_p_ =0;
}
- text_p_arr_.clear ();
- lyric_req_l_arr_.clear ();
+}
+
+void
+Lyric_engraver::do_post_move_processing ()
+{
+ req_l_ =0;
}
#include "multi-measure-rest-engraver.hh"
#include "score-column.hh"
#include "time-description.hh"
-//#include "paper-score.hh"
-//#include "p-score.hh"
-//#include "paper-def.hh"
-//#include "main.hh"
-//#include "global-translator.hh"
#include "bar.hh"
lexer_p_ = 0;
default_duration_.durlog_i_ = 2;
error_level_i_ = 0;
- extender_req = 0;
+
fatal_error_i_ = 0;
default_header_p_ =0;
}
default_duration_ = *d;
}
-
+// junk me
Simultaneous_music*
My_lily_parser::get_word_element (String s, Duration * duration_p)
{
return velt_p;
}
-
+// junk me
Simultaneous_music *
My_lily_parser::get_rest_element (String s, Duration * duration_p)
{
return velt_p;
}
+// junk me
Simultaneous_music *
My_lily_parser::get_chord (Musical_pitch tonic, Array<Musical_pitch>* add_arr_p, Array<Musical_pitch>* sub_arr_p, Musical_pitch* inversion_p, Duration d)
{
return v;
}
+// junk me
Simultaneous_music *
My_lily_parser::get_note_element (Note_req *rq, Duration * duration_p)
{
}
-/*
- UGH.
- */
-Link_array<Request>*
-My_lily_parser::get_parens_request (int t)
-{
- Link_array<Request>& reqs = *new Link_array<Request>;
- switch (t)
- {
- case '~':
- reqs.push (new Tie_req);
- break;
-
- case '[':
- case ']':
- {
- reqs.push (new Beam_req);
- }
- break;
-
- case '>':
- case '!':
- case '<':
- reqs.push (new Span_dynamic_req);
- break;
-
- case ')':
- case '(':
- {
- reqs.push (new Slur_req);
- }
- break;
- default:
- assert (false);
- break;
- }
-
- switch (t)
- {
- case '<':
- case '>':
- case '(':
- case '[':
- dynamic_cast<Span_req*> (reqs[0])->spantype_ = START;
- break;
-
- case '!':
- case ')':
- case ']':
- dynamic_cast<Span_req*> (reqs[0])->spantype_ = STOP;
- break;
-
- default:
- break;
- }
-
- for (int i = 0; i < reqs.size (); i++)
- if (dynamic_cast<Span_dynamic_req*> (reqs[i]))
- {
- Span_dynamic_req* s_l= dynamic_cast<Span_dynamic_req*> (reqs[i]);
- s_l->dynamic_dir_ = (t == '<') ? UP:DOWN;
- }
-
- // ugh? don't we do this in the parser too?
- reqs[0]->set_spot (here_input());
- return &reqs;
-}
-
-void
-My_lily_parser::add_requests (Simultaneous_music*v)
-{
- for (int i = 0; i < pre_reqs.size(); i++)
- {
- v->add_music (pre_reqs[i]);
- }
- pre_reqs.clear();
- for (int i = 0; i <post_reqs.size(); i++)
- {
- v->add_music (post_reqs[i]);
- }
-
- post_reqs.clear();
-}
-
Input
My_lily_parser::pop_spot()
{
add_dependency (i);
}
-
-
void
Separating_group_spanner::do_substitute_dependency (Score_element*o, Score_element*n)
{
if (Note_head *nh = dynamic_cast<Note_head *> (i.elem_l_))
{
Note_req * m = dynamic_cast<Note_req* > (i.req_l_);
+ if (!m)
+ return;
now_heads_.push (CHead_melodic_tuple (nh, m, now_mom()+ m->length_mom ()));
}
}
while (past_notes_pq_.size ()
&& past_notes_pq_.front ().end_ == now)
stopped_heads_.push (past_notes_pq_.get ());
-
}
}
}
Scalar
-Translator_group::get_property (String id, Translator_group **where_l) const
+Translator_group::get_property (String id,
+ Translator_group **where_l) const
{
if (properties_dict_.elem_b (id))
{
"font_number-1" = 8.;
%"font_number" = 10.;
"font_number+1" = 12.;
-
+
+ % Ugh
+ magnification_dynamic = 2.;
% ugh see table20 for sizes
quartwidth = 6.61\pt;
+pl 69
+ - package_depth detection fix
+
+pl 68
+ - support for install-libraries
+
pl 66
- check for tbl and gmake
PACKAGE_NAME=StepMake
MAJOR_VERSION=0
MINOR_VERSION=1
-PATCH_LEVEL=67
+PATCH_LEVEL=69
MY_PATCH_LEVEL=
# use the above to send patches, always empty for released version:
-dnl WARNING WARNING WARNING WARNING
-dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
-dnl WARNING WARNING WARNING WARNING
-dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
dnl aclocal.m4 -*-shell-script-*-
dnl StepMake subroutines for configure.in
# to force new check iso reading from cache
# gh_scm2doubles,gh_doubles2scm are new in 1.3
- AC_CHECK_LIB(guile, gh_scm2doubles, \
- LIBS="-lguile $LIBS"; AC_DEFINE(HAVE_LIBGUILE), \
- AC_CHECK_LIB(readline, readline) \
- AC_CHECK_LIB(dl, dlopen) \
- AC_CHECK_LIB(socket, socket)\
- AC_CHECK_LIB(termcap,tgetent)\
- AC_CHECK_LIB(m, fabs)\
- AC_CHECK_LIB(guile, gh_doubles2scm)\
+ GUILE_FLAGS
+ AC_CHECK_LIB(guile, gh_scm2doubles,
+ LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[[[/-_a-zA-Z0-9]]]\+ //g'` $LIBS";
+ AC_DEFINE(HAVE_LIBGUILE), , $GUILE_LDFLAGS dnl
)
- if test "$ac_cv_lib_guile_gh_scm2doubles" != yes -a \
- "$ac_cv_lib_guile_gh_doubles2scm" != yes ; then
- AC_STEPMAKE_WARN(You should install guile 1.3 or newer)
+ if test "$ac_cv_lib_guile_gh_scm2doubles" != yes ; then
+ AC_STEPMAKE_WARN(You should install guile 1.3 or newer)
fi
])
AC_DEFINE_UNQUOTED(PACKAGE, "${PACKAGE_NAME}")
AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
- package_depth=`dirname $cache_file`
+ if test "$package_depth" = "" ; then
+ package_depth="."
+ else
+ package_depth="../$package_depth"
+ fi
+ export package_depth
AC_SUBST(package_depth)
AUTOGENERATE="This file was automatically generated by configure"
AC_SUBST(GTK___LIBS)
])
+dnl GUILE_FLAGS --- set flags for compiling and linking with Guile
+dnl
+dnl This macro runs the `guile-config' script, installed with Guile,
+dnl to find out where Guile's header files and libraries are
+dnl installed. It sets two variables, marked for substitution, as
+dnl by AC_SUBST.
+dnl
+dnl GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
+dnl code that uses Guile header files. This is almost
+dnl always just a -I flag.
+dnl
+dnl GUILE_LDFLAGS --- flags to pass to the linker to link a
+dnl program against Guile. This includes `-lguile' for
+dnl the Guile library itself, any libraries that Guile
+dnl itself requires (like -lqthreads), and so on. It may
+dnl also include a -L flag to tell the compiler where to
+dnl find the libraries.
+
+AC_DEFUN([GUILE_FLAGS],[
+## The GUILE_FLAGS macro.
+ ## First, let's just see if we can find Guile at all.
+ AC_MSG_CHECKING(for Guile)
+ guile-config link > /dev/null || {
+ echo "configure: cannot find guile-config; is Guile installed?" 1>&2
+ exit 1
+ }
+ GUILE_CFLAGS="`guile-config compile`"
+ GUILE_LDFLAGS="`guile-config link`"
+ AC_SUBST(GUILE_CFLAGS)
+ AC_SUBST(GUILE_LDFLAGS)
+ AC_MSG_RESULT(yes)
+])
+
--- /dev/null
+
+localinstall: $(LIBRARY)
+ifneq ($(strip $(INSTALL_HEADERS)),)
+ $(INSTALL) -d $(includedir)
+ $(INSTALL) $(INSTALL_HEADERS) $(includedir)
+endif
+ifeq ($(LIB_SUFFIX),.so)
+ $(INSTALL) -d $(libdir)
+ $(INSTALL) $(LIBRARY) $(libdir)/$(INSTALL_LIBRARY).$(VERSION)
+ ln -s $(LIB_PREFIX)intl$(LIB_SUFFIX).$(VERSION) $(libdir)/$(LIB_PREFIX)intl$(LIB_SUFFIX).$(MAJOR_VERSION)
+ ln -s $(LIB_PREFIX)intl$(LIB_SUFFIX).$(VERSION) $(libdir)/$(LIB_PREFIX)intl$(LIB_SUFFIX)
+else
+ $(INSTALL) -d $(libdir)
+ $(INSTALL) $(LIBRARY) $(libdir)/$(INSTALL_LIBRARY)
+endif
+
+localuninstall:
+ifneq ($(strip $(INSTALL_HEADERS)),)
+ rm -f $(addprefix $(includedir)/, $(INSTALL_HEADERS))
+endif
+ rm -f $(libdir)/$(INSTALL_LIBRARY)
+