]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Add . to the directories searched for unifont.
authorGrégoire Sutre <gregoire.sutre@gmail.com>
Tue, 8 Jun 2010 10:09:34 +0000 (12:09 +0200)
committerGrégoire Sutre <gregoire.sutre@gmail.com>
Tue, 8 Jun 2010 10:09:34 +0000 (12:09 +0200)
ChangeLog
configure.ac

index e9570905ef7d1fe0870284479a5ee9c58fb54b33..b48b7981918479f0ec8ee42bfe1bec6fe159409c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-08  Grégoire Sutre  <gregoire.sutre@gmail.com>
+
+       * configure.ac: Add `.' to the directories searched for unifont.
+
 2010-06-08  Colin Watson  <cjwatson@ubuntu.com>
 
        * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
index 31b179d46f936fef6a89432782dd2a26ed1c5689..97c493e27218228955236fe24c197eb72c52199a 100644 (file)
@@ -179,11 +179,13 @@ if test "x$YACC" = x; then
   AC_MSG_ERROR([bison is not found])
 fi
 
-for file in /usr/src/unifont.bdf /usr/share/fonts/X11/misc/unifont.pcf.gz /usr/share/fonts/unifont/unifont.pcf.gz; do
-  if test -e $file ; then
-    AC_SUBST([FONT_SOURCE], [$file])
-    break
-  fi
+for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
+  for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont; do
+    if test -f "$dir/unifont.$ext"; then
+      AC_SUBST([FONT_SOURCE], [$dir/unifont.$ext])
+      break 2
+    fi
+  done
 done
 
 AC_PROG_INSTALL