summaryrefslogtreecommitdiff
blob: 0ee34f0408a96fb71426ab76f02cc6e313a8b918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 configure.ac |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index bfea453..844896b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,7 @@ PKG_CHECK_MODULES(mozjs, xulrunner-js, have_mozjs=yes,
 PKG_CHECK_MODULES(NetworkManager, NetworkManager, 
 					have_networkmanager=yes, have_networkmanager=no)
 PKG_CHECK_MODULES(dbus, dbus-1, have_dbus=yes, have_dbus=no)
+PKG_CHECK_MODULES(libxul_unstable, libxul-unstable, have_mozjs=yes, have_mozjs=no)
 
 # Environmental Variable
 AC_ARG_WITH([envvar],
@@ -117,8 +118,8 @@ AC_ARG_WITH([mozjs],
             [test x$have_mozjs == xyes && with_mozjs=yes])
 if test x$with_mozjs = xyes; then
 	if test x$have_mozjs == xyes; then
-		MOZJS_CFLAGS="$mozjs_CFLAGS"
-		MOZJS_LIBS="$mozjs_LIBS"
+		MOZJS_CFLAGS="$mozjs_CFLAGS $libxul_unstable_CFLAGS"
+		MOZJS_LIBS="$mozjs_LIBS $libxul_unstable_LIBS"
 		AC_SUBST(MOZJS_CFLAGS)
 		AC_SUBST(MOZJS_LIBS)
 	else