--- configure.orig	2011-01-15 12:04:22.000000000 +0900
+++ configure	2016-01-16 22:01:18.489330000 +0900
@@ -6755,7 +6755,7 @@
   if test x"$enable_image" = xyes; then
     enable_image=x11
     case "`uname -s`" in
-    Linux|linux|LINUX)
+    Linux|linux|LINUX|FreeBSD|freebsd|FREEBSD)
 	if test -c /dev/fb0; then
 	  enable_image=x11,fb
         fi;;
@@ -6828,6 +6828,7 @@
      fi;;
    esac
   done
+  PKG_CONFIG=pkg-config
   IMGTARGETS=""
   IMGLINK='$(CC)'
   if test x"$with_gtk2" = xyes; then
