From 3f47e8f440f8e21a5b5d7e18c9da68f62e799b31 Mon Sep 17 00:00:00 2001
From: Johannes Nixdorf <mixi@exherbo.org>
Date: Thu, 1 Mar 2012 10:28:54 +0100
Subject: [PATCH] kde4.m4: use the plugins subdir to identify the plugin dir

Imageformats is in a subdirectory of the kde4 plugin directory so this
code rejects correctly specified plugin directories and accepts wrong
ones.
---
 macros/kde4.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/macros/kde4.m4 b/macros/kde4.m4
index 5d9ce10..ba3db4a 100644
--- a/macros/kde4.m4
+++ b/macros/kde4.m4
@@ -49,7 +49,7 @@ AC_DEFUN([GNASH_PATH_KDE4],
              [Directory to install KDE 4.x plugin in]),
              with_kde4_plugindir=${withval})
   if test x"${with_kde4_plugindir}" != x ; then 
-    if test ! -d ${with_kde4_plugindir}/imageformats; then
+    if test ! -d ${with_kde4_plugindir}/plugins; then
       AC_MSG_ERROR([${with_kde4_plugindir} directory doesn't contain any KDE 4.x plugins!])
     fi
   fi
-- 
1.7.8.1

