summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-25 15:16:39 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-06-04 03:15:22 +0200
commit4b45c94a3a80aea92d839c793a9d5160e42d2af8 (patch)
tree6f06951fe3fc050e45fb2f96a73d2c1e809fb8f4
parent88b60fd2bdf6445d93bc91a3a3848269efaa1a51 (diff)
downloadtdeutils-4b45c94a3a80aea92d839c793a9d5160e42d2af8.tar.gz
tdeutils-4b45c94a3a80aea92d839c793a9d5160e42d2af8.zip
Fix tdeutils not detecting extutil.h usability
This closes Bug 877 (cherry picked from commit f49a187642b58e3980b635c3143831798413cd17)
-rw-r--r--ksim/configure.in.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/ksim/configure.in.in b/ksim/configure.in.in
index 4ddee70..878ebc2 100644
--- a/ksim/configure.in.in
+++ b/ksim/configure.in.in
@@ -32,5 +32,11 @@ fi
dnl Check for dell laptop support
AM_CONDITIONAL(supports_i8k, test -f /proc/i8k)
-KDE_CHECK_HEADER(X11/extensions/extutil.h, AC_DEFINE(HAVE_EXTUTIL_H, 1, [If we have extutil.h]) have_extutil_h=yes, , )
+kde_safe_cppflags=$CPPFLAGS
+CPPFLAGS="$CPPFLAGS -include X11/Xlib.h -include X11/Xutil.h -include X11/Xproto.h"
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+AC_CHECK_HEADER(X11/extensions/extutil.h, AC_DEFINE(HAVE_EXTUTIL_H, 1, [If we have extutil.h]) have_extutil_h=yes, , )
AM_CONDITIONAL(include_nv, test "x$have_extutil_h" = "xyes")
+AC_LANG_RESTORE
+CPPFLAGS=$kde_safe_cppflags