galeon r8949 - trunk



Author: philipl
Date: Sun Feb  3 00:01:31 2008
New Revision: 8949
URL: http://svn.gnome.org/viewvc/galeon?rev=8949&view=rev

Log:
2008-02-02  Philip Langdale  <philipl alumni utexas net>

	* configure.in: Add test for availablePrinters.
	#ifdef to follow.



Modified:
   trunk/ChangeLog
   trunk/configure.in

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Sun Feb  3 00:01:31 2008
@@ -1118,6 +1118,22 @@
 	[result=no])
 AC_MSG_RESULT([$result])
 
+dnl Printer enumeration was changed in gecko 1.9
+dnl https://bugzilla.mozilla.org/show_bug.cgi?id=341313
+AC_MSG_CHECKING([for nsIPrintOptions::AvailablePrinters])
+AC_COMPILE_IFELSE(
+	[AC_LANG_PROGRAM(
+		[[#define MOZILLA_INTERNAL_API
+		  #include <nsIPrintOptions.h>]],
+		[[nsIPrintOptions *p;
+		  nsISimpleEnumerator *s;
+		  p->AvailablePrinters(&s);]]
+	)],
+	[AC_DEFINE([HAVE_NSIPRINTOPTIONS_AVAILABLEPRINTERS], [1],
+		   [Define if nsIPrintOptions::AvailablePrinters exists]) result=yes],
+	[result=no])
+AC_MSG_RESULT([$result])
+
 dnl nsIClassInfo's impl macros were moved to their own file in 1.9a1
 dnl https://bugzilla.mozilla.org/show_bug.cgi?id=330420
 AC_CHECK_FILE([$MOZILLA_INCLUDE_ROOT/nsIClassInfoImpl.h],



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]