]> git.donarmstrong.com Git - lilypond.git/blobdiff - configure.in
release: 0.0.62
[lilypond.git] / configure.in
index d0519149fb5731a7cba9625d6aa8a1ce229e244c..f8f095502d3f98a49de5b5ee5102875b1fef1264 100644 (file)
@@ -4,6 +4,7 @@ dnl  Process this file with autoconf to produce a configure script.
 dnl should cache result.
 dnl should  look in $prefix first.
 
+
 AC_DEFUN(AC_TEX_PREFIX, [
     
 
@@ -73,26 +74,26 @@ dnl     AC_REQUIRE([AC_TEX_PREFIX])
    
 AC_INIT(flower/choleski.cc)
 
-
-AC_LANG_CPLUSPLUS
+# if given here, these vars are initted at the checking point.
 printing_b=no
 checking_b=yes
 debug_b=yes
 optimise_b=no
 profile_b=no
-#shared_b=no
+    
+AC_LANG_CPLUSPLUS
 
 AC_ARG_ENABLE(printing,
-    [  enable-printing        set debug printing],
+    [  enable-printing        turn on debug printing],
     [printing_b=$enableval])
 
        
 AC_ARG_ENABLE(checking,
-    [  disable-checking       set runtime checks],
+    [  disable-checking       set runtime checks (assert calls)],
     [checking_b=$enableval] )
 
 AC_ARG_ENABLE(debugging,
-    [  disable-debugging         set debug info],
+    [  disable-debugging         set debug info ],
     [debug_b=$enableval])
 
 AC_ARG_ENABLE(optimise,
@@ -105,12 +106,12 @@ AC_ARG_ENABLE(profiling,
     [profile_b=$enableval])
     
 AC_ARG_ENABLE(tex-prefix,
-    [  tex-prefix=DIR  set the tex-directory to find TeX subdirectories.],
+    [  tex-prefix=DIR  set the tex-directory to find TeX subdirectories. (default: PREFIX)],
     [TEXPREFIX=$enableval],
     [TEXPREFIX=auto] )
     
 AC_ARG_ENABLE(tex-dir,
-    [  tex-dir=DIR  set the directory to put LilyPond  TeX files in.],
+    [  tex-dir=DIR  set the directory to put LilyPond  TeX files in. ],
     [TEXDIR=$enableval],
     [TEXDIR=auto] )
 AC_ARG_ENABLE(mf-dir,
@@ -170,6 +171,8 @@ AC_CHECK_PROGS(PODMAN, pod2man, error)
     
 if test "x$TEXPREFIX" = xauto ; then
     AC_TEX_PREFIX(TEXPREFIX)
+else
+ find_texprefix=$TEXPREFIX
 fi
     
 if test "x$TEXDIR" = xauto ; then
@@ -193,7 +196,12 @@ fi
     
 if test $BISON = "error" 
 then
-       AC_MSG_WARN(can't find bison. Please install Bison (1.24 or better))
+       AC_MSG_WARN(can't find bison. Please install Bison (1.25 or better))
+else
+    bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
+    if test $bison_version -lt 25; then
+       AC_MSG_WARN(Your bison is too old (1.$bison_version). Please install 1.25)
+    fi 
 fi
 
 if test $PODMAN = "error"