]> git.donarmstrong.com Git - lilypond.git/blobdiff - configure.in
(LINK_GXX_STATICALLY): --enable-ncsb-path option.
[lilypond.git] / configure.in
index 46b6feeb9079016d94eec25d8f8af971c2b275ab..f4667f77b70e5b1b17e3287bdc1d2a3b6a2a3237 100644 (file)
@@ -33,6 +33,14 @@ AC_ARG_ENABLE(gui,
     [  --enable-gui            compile with experimental GNOME output module.  Default: off],
     [gui_b=$enableval])
 
+
+NCSB_PATH=unknown
+AC_ARG_ENABLE(gui,
+[  --enable-ncsb-path      set the path where Century Schoolbook fonts can be found.
+                            Default: detect with locate(1)],
+    [NCSB_PATH=$enableval])
+
+
 reloc_b=no
 AC_ARG_ENABLE(relocation,
     [  --enable-relocation     compile with dynamic relocation.  Default: off],
@@ -109,6 +117,23 @@ if test "$reloc_b" = "yes"; then
     AC_DEFINE(ARGV0_RELOCATION)
 fi
 
+AC_MSG_CHECKING([New Century Schoolbook PFB files])
+if test "$NCSB_PATH" = "unknown"; then
+  which locate >& /dev/null
+  if test "$?" = "0"; then
+      ## sort to give precedence to /usr/  
+      NCSB_PATH=`locate c059033l.pfb | sort -r | head -1`
+      if then "$NCSB_PATH" = "";
+         AC_MSG_WARN(Could not find c059033l.pfb. Use --enable-ncsb-path to set path)
+      fi
+      NCSB_PATH=`dirname "$NCSB_PATH"`
+  else
+     AC_MSG_WARN(Could not find locate(1). Use --enable-ncsb-path to set path to c059033l.pfb)
+  fi
+fi
+AC_MSG_RESULT($NCSB_PATH)
+AC_SUBST(NCSB_PATH)
+
 STEPMAKE_PANGO_FT2(pangoft2, REQUIRED, 1.6.0)
 #STEPMAKE_PANGO(pango, REQUIRED, 1.6.0)
 STEPMAKE_FONTCONFIG(fontconfig, REQUIRED, 2.2.0)