dnl should cache result.
dnl should look in $prefix first.
+
AC_DEFUN(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,
[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,
if test "x$TEXPREFIX" = xauto ; then
AC_TEX_PREFIX(TEXPREFIX)
+else
+ find_texprefix=$TEXPREFIX
fi
if test "x$TEXDIR" = xauto ; then
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"