Andrew Overholt 346e90b
### Eclipse Workspace Patch 1.0
Andrew Overholt 346e90b
#P org.eclipse.swt
Andrew Overholt 104b878
Index: Eclipse_SWT_PI/gtk/library/build.sh
Andrew Overholt 346e90b
===================================================================
Andrew Overholt 104b878
RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse_SWT_PI/gtk/library/build.sh,v
Andrew Overholt 346e90b
retrieving revision 1.46
Andrew Overholt 346e90b
diff -u -r1.46 build.sh
Andrew Overholt 104b878
--- Eclipse_SWT_PI/gtk/library/build.sh	22 Oct 2007 21:18:51 -0000	1.46
Andrew Overholt 104b878
+++ Eclipse_SWT_PI/gtk/library/build.sh	9 Apr 2008 19:45:37 -0000
Andrew Overholt 346e90b
@@ -103,8 +103,14 @@
Andrew Overholt 346e90b
 		export MOZILLA_INCLUDES
Andrew Overholt 346e90b
 		export MOZILLA_LIBS
Andrew Overholt 346e90b
 		MAKE_MOZILLA=make_mozilla
Andrew Overholt 346e90b
+	elif [ x`pkg-config --exists libxul && echo YES` = "xYES" ]; then
Andrew Overholt 346e90b
+		MOZILLA_INCLUDES=`pkg-config --cflags libxul`
Andrew Overholt 346e90b
+		MOZILLA_LIBS=`pkg-config --libs libxul`
Andrew Overholt 346e90b
+		export MOZILLA_INCLUDES
Andrew Overholt 346e90b
+		export MOZILLA_LIBS
Andrew Overholt 346e90b
+		MAKE_MOZILLA=make_mozilla
Andrew Overholt 346e90b
 	else
Andrew Overholt 346e90b
-		echo "Mozilla/XPCOM or Firefox/XPCOM libraries not found:"
Andrew Overholt 346e90b
+		echo "None of the following libraries were found:  Mozilla/XPCOM, Firefox/XPCOM, or xulrunner/XPCOM"
Andrew Overholt 346e90b
 		echo "    *** Mozilla embedding support will not be compiled."
Andrew Overholt 346e90b
 	fi
Andrew Overholt 346e90b
 fi