File kde3-kopete-antispam-0.5-autoconf.patch of Package kde3-kopete-antispam

Description: Fix Autoconf macro.
Author: Kyrill Detinov <lazy.kent.suse@gmail.com>
Index: configure.in
===================================================================
--- configure.in.orig	2008-05-29 10:06:54.000000000 +0400
+++ configure.in	2010-05-17 00:16:23.000000000 +0400
@@ -73,8 +73,11 @@ AC_CHECK_KDEMAXPATHLEN
 CPPFLAGS="$CPPFLAGS $all_includes -I$kde_includes/kopete"
 
 # check for libkopete headers and library
-AC_CHECK_HEADERS([kopete_export.h],,
-                AC_MSG_ERROR([Could not find Kopete header files!]))
+AC_CHECK_HEADERS([kopete_export.h], [], [],
+	[#ifdef HAVE_KOPETE_EXPORT_H
+	# include <kopete_export.h>
+	#endif]
+)
 KDE_CREATE_SUBDIRSLIST
 AC_CONFIG_FILES([ Makefile ])
 AC_CONFIG_FILES([ src/Makefile ])
Index: configure.in.in
===================================================================
--- configure.in.in.orig	2008-06-11 14:35:53.000000000 +0400
+++ configure.in.in	2010-05-17 00:16:43.000000000 +0400
@@ -8,5 +8,8 @@ AC_CHECK_KDEMAXPATHLEN
 CPPFLAGS="$CPPFLAGS $all_includes -I$kde_includes/kopete"
 
 # check for libkopete headers and library
-AC_CHECK_HEADERS([kopete_export.h],,
-                AC_MSG_ERROR([Could not find Kopete header files!]))
+AC_CHECK_HEADERS([kopete_export.h], [], [],
+	[#ifdef HAVE_KOPETE_EXPORT_H
+	# include <kopete_export.h>
+	#endif]
+)
openSUSE Build Service is sponsored by