Lines 28-34
Link Here
|
28 |
AC_SUBST(PKG_CONFIG_PATH) |
28 |
AC_SUBST(PKG_CONFIG_PATH) |
29 |
AC_MSG_NOTICE("Using pkg-config path of ${PKG_CONFIG_PATH}") |
29 |
AC_MSG_NOTICE("Using pkg-config path of ${PKG_CONFIG_PATH}") |
30 |
fi |
30 |
fi |
31 |
|
31 |
|
32 |
#tell us where gecko-sdk is, try to find if not provided |
32 |
#tell us where gecko-sdk is, try to find if not provided |
33 |
|
33 |
|
34 |
AC_ARG_WITH([gecko-sdk],[ --with-gecko-sdk=<path> prefix of gecko-sdk installation], |
34 |
AC_ARG_WITH([gecko-sdk],[ --with-gecko-sdk=<path> prefix of gecko-sdk installation], |
Lines 54-100
Link Here
|
54 |
|
54 |
|
55 |
],[ |
55 |
],[ |
56 |
AC_MSG_NOTICE([Determining mozilla/firefox packages to build against]) |
56 |
AC_MSG_NOTICE([Determining mozilla/firefox packages to build against]) |
|
|
57 |
|
58 |
PKG_CHECK_MODULES(MOZPLUG,[libxul],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir libxul`" |
59 |
MOZILLA_HOME=`$PKG_CONFIG --variable=sdkdir libxul` |
60 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir libxul`/`pkg-config --variable=includetype libxul` |
61 |
],[AC_MSG_WARN([xulrunner 1.9 found])]) |
62 |
if test "$MOZPLUG_CFLAGS" = ""; then |
63 |
PKG_CHECK_MODULES(MOZPLUG,[xulrunner-plugin xulrunner-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir xulrunner-plugin`" |
64 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir xulrunner-plugin` |
65 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir xulrunner-xpcom` |
66 |
],[AC_MSG_WARN([xulrunner 1.8 not found])]) |
67 |
fi |
68 |
if test "$MOZPLUG_CFLAGS" = ""; then |
57 |
PKG_CHECK_MODULES(MOZPLUG,[mozilla-plugin mozilla-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir mozilla-plugin`" |
69 |
PKG_CHECK_MODULES(MOZPLUG,[mozilla-plugin mozilla-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir mozilla-plugin`" |
58 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir mozilla-plugin` |
70 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir mozilla-plugin` |
59 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir mozilla-xpcom` |
71 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir mozilla-xpcom` |
60 |
],[AC_MSG_WARN([mozilla-plugin not found])]) |
72 |
],[AC_MSG_WARN([mozilla-plugin not found])]) |
61 |
|
73 |
fi |
62 |
if test "$MOZPLUG_CFLAGS" = ""; then |
74 |
if test "$MOZPLUG_CFLAGS" = ""; then |
63 |
PKG_CHECK_MODULES(MOZPLUG,[firefox-plugin firefox-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir firefox-plugin`" |
75 |
PKG_CHECK_MODULES(MOZPLUG,[firefox-plugin firefox-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir firefox-plugin`" |
64 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir firefox-plugin` |
76 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir firefox-plugin` |
65 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir firefox-xpcom` |
77 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir firefox-xpcom` |
66 |
],[AC_MSG_WARN([firefox-plugin not found])]) |
78 |
],[AC_MSG_WARN([firefox-plugin not found])]) |
67 |
fi |
79 |
fi |
68 |
if test "$MOZPLUG_CFLAGS" = ""; then |
80 |
if test "$MOZPLUG_CFLAGS" = ""; then |
69 |
PKG_CHECK_MODULES(MOZPLUG,[seamonkey-plugin seamonkey-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir seamonkey-plugin`" |
81 |
PKG_CHECK_MODULES(MOZPLUG,[seamonkey-plugin seamonkey-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir seamonkey-plugin`" |
70 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir seamonkey-plugin` |
82 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir seamonkey-plugin` |
71 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir seamonkey-xpcom` |
83 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir seamonkey-xpcom` |
72 |
],[AC_MSG_WARN([seamonkey-plugin not found])]) |
84 |
],[AC_MSG_WARN([seamonkey-plugin not found])]) |
73 |
fi |
85 |
fi |
74 |
if test "$MOZPLUG_CFLAGS" = ""; then |
86 |
if test "$MOZPLUG_CFLAGS" = ""; then |
75 |
PKG_CHECK_MODULES(MOZPLUG,[xulrunner-plugin xulrunner-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir xulrunner-plugin`" |
87 |
PKG_CHECK_MODULES(MOZPLUG,[iceape-plugin iceape-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir iceape-plugin`" |
76 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir xulrunner-plugin` |
88 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir iceape-plugin` |
77 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir xulrunner-xpcom` |
89 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir iceape-xpcom` |
78 |
],[AC_MSG_WARN([xulrunner-plugin not found])]) |
90 |
],[AC_MSG_WARN([iceape-plugin not found])]) |
79 |
fi |
91 |
fi |
80 |
if test "$MOZPLUG_CFLAGS" = ""; then |
92 |
]) |
81 |
PKG_CHECK_MODULES(MOZPLUG,[libxul],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir libxul`" |
93 |
|
82 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir libxul` |
94 |
if test "$MOZPLUG_CFLAGS" = ""; then |
83 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir libxul` |
95 |
AC_MSG_ERROR([Unable to find mozilla or firefox development files]) |
84 |
],[AC_MSG_WARN([libxul not found])]) |
96 |
fi |
85 |
fi |
|
|
86 |
if test "$MOZPLUG_CFLAGS" = ""; then |
87 |
PKG_CHECK_MODULES(MOZPLUG,[iceape-plugin iceape-xpcom],[AC_SUBST(MOZPLUG_CFLAGS) MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I`$PKG_CONFIG --variable=includedir iceape-plugin`" |
88 |
MOZILLA_HOME=`$PKG_CONFIG --variable=libdir iceape-plugin` |
89 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir iceape-xpcom` |
90 |
],[AC_MSG_WARN([iceape-plugin not found])]) |
91 |
fi |
92 |
|
93 |
if test "$MOZPLUG_CFLAGS" = ""; then |
94 |
AC_MSG_ERROR([Unable to find mozilla or firefox development files]) |
95 |
fi |
96 |
] |
97 |
) |
98 |
|
97 |
|
99 |
AC_ARG_WITH([mozilla-home],[ --with-mozilla-home=<path> prefix of mozilla/firefox installation], |
98 |
AC_ARG_WITH([mozilla-home],[ --with-mozilla-home=<path> prefix of mozilla/firefox installation], |
100 |
[MOZ_HOME=$with_mozilla_home |
99 |
[MOZ_HOME=$with_mozilla_home |