]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.1
authorfred <fred>
Sun, 24 Mar 2002 19:50:29 +0000 (19:50 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:50:29 +0000 (19:50 +0000)
aclocal.m4 [new file with mode: 0644]
make/Toplevel.make.in
mi2mu/Makefile

diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644 (file)
index 0000000..5f62970
--- /dev/null
@@ -0,0 +1,85 @@
+
+AC_DEFUN(AC_JUNK_ARGS, [
+])
+
+AC_DEFUN(AC_LILY_WARN, [
+    AC_MSG_WARN($1)
+    warn_b=yes
+])
+
+dnl should cache result.
+dnl should  look in $prefix first.
+
+AC_DEFUN(AC_TEX_PREFIX, [
+    
+
+    AC_MSG_CHECKING(TeX/MF root dir directory)    
+
+    find_root_prefix="$prefix"
+    
+
+    test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
+    find_texpostfix="";
+    for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
+       find_texprefix="$find_root_prefix$postfix"
+       if test -d $find_texprefix; then
+           find_texpostfix=$postfix
+           break;
+       fi
+    done
+    
+    if test "x$find_texpostfix" = x; then
+       find_texpostfix='/lib/texmf/tex'
+       AC_LILY_WARN(Cannot determine the TeX-directory. Please use --enable-tex-prefix)
+    fi
+
+    find_texprefix="$find_root_prefix/$find_texpostfix"
+
+    # only assign if variablename not empty
+    if test x != "x$1"; then
+       $1='${prefix}'/"$find_texpostfix"
+    fi
+    AC_MSG_RESULT($find_texprefix)
+
+])
+
+# find a directory inside a prefix, 
+# $1 the prefix (expanded version)
+# $2 variable to assign
+# $3 the directory name 
+# $4 description
+AC_DEFUN(AC_FIND_DIR_IN_PREFIX, [
+    
+    AC_MSG_CHECKING($4 directory)    
+    find_dirdir=`(cd $1; 
+      $FIND ./ -type d -a -name $3 -print |sort|head -1|sed 's#^\./##')`
+    
+
+    if test "x$find_dirdir" = x; then
+       find_dirdir="/$3";
+       AC_LILY_WARN(Cannot determine $4 subdirectory. Please set from command-line)
+       true
+    fi
+    $2=$find_dirdir
+    AC_MSG_RESULT($1/$find_dirdir)
+])
+
+AC_DEFUN(AC_TEX_SUBDIR, [
+dnl    AC_REQUIRE([AC_TEX_PREFIX])
+    AC_FIND_DIR_IN_PREFIX($find_texprefix, $1, tex,TeX input)
+    $1="$TEXPREFIX/$$1"
+])
+
+AC_DEFUN(AC_MF_SUBDIR, [
+dnl     AC_REQUIRE([AC_TEX_PREFIX])
+    AC_FIND_DIR_IN_PREFIX($find_texprefix, $1, source, MF input)
+    $1="$TEXPREFIX/$$1"
+])
+
+AC_DEFUN(AC_CHECK_SEARCH_RESULT, [
+       if test $1 = "error" 
+       then
+               AC_LILY_WARN(can't find $2. $3)
+       fi
+])
index 8a42ab0f910eaad2346e347ce5e7e38586abc0e6..7e971fcc7237ecb2186f5ea6c514023206c0d9d7 100644 (file)
@@ -1,4 +1,5 @@
 # -*-Makefile-*-
+# @configure_input@
 ########################################################
 # project  LilyPond -- the musical typesetter
 # title           top level makefile for LilyPond  
@@ -32,9 +33,10 @@ SUBDIRS = flower lib lily mi2mu \
 
 # list of distribution files:
 #
-SCRIPTS = configure configure.in install-sh
-README_FILES = BUGS DEDICATION ANNOUNCE COPYING NEWS README TODO INSTALL.text AUTHORS.text
-EXTRA_DISTFILES=  .dstreamrc VERSION $(README_FILES) $(SCRIPTS) $(SYMLINKS)
+SCRIPTS = configure configure.in install-sh aclocal.m4
+README_FILES = BUGS DEDICATION ANNOUNCE COPYING ONEWS NEWS README TODO \
+       INSTALL.text AUTHORS.text
+EXTRA_DISTFILES = .dstreamrc VERSION $(README_FILES) $(SCRIPTS) $(SYMLINKS)
 
 # do not dist ./Makefile (is copied from make/Toplevel.make)
 DISTFILES:=$(EXTRA_DISTFILES)# Makefile $(ALL_SOURCES)
index 2df411c6fa4a0e5c0dc115869107e8939ba71ff4..84286dc182694b9813afcd4c85739f7d8c72b94b 100644 (file)
@@ -79,3 +79,6 @@ localclean:
 localinstall: installexe
 
 localuninstall: uninstallexe
+
+
+$(outdir)/mi2mu-version.o: $(outdir)/version.hh