Lines 30-96
Link Here
|
30 |
AC_SUBST(GLIB_CFLAGS) |
30 |
AC_SUBST(GLIB_CFLAGS) |
31 |
AC_SUBST(GLIB_LIBS) |
31 |
AC_SUBST(GLIB_LIBS) |
32 |
|
32 |
|
33 |
AC_ARG_WITH([xulrunner-sdk], |
|
|
34 |
[AS_HELP_STRING([--with-xulrunner-sdk], |
35 |
[Use xulrunner SDK for build])], |
36 |
[ |
37 |
XULRUNNER_SDK_PREFIX=$with_xulrunner_sdk |
38 |
GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/plugin -I$XULRUNNER_SDK_PREFIX/include/nspr -I$XULRUNNER_SDK_PREFIX/include/xpcom -I$XULRUNNER_SDK_PREFIX/include/string -I$XULRUNNER_SDK_PREFIX/include/java" |
39 |
GECKO_LIBS="-L$XULRUNNER_SDK_PREFIX/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl" |
40 |
GECKO_HOME="$XULRUNNER_SDK_PREFIX/bin" |
41 |
GECKO_IDLDIR="$XULRUNNER_SDK_PREFIX/idl" |
42 |
], |
43 |
[]) |
44 |
|
45 |
if test "$GECKO_CFLAGS" = ""; then |
46 |
PKG_CHECK_MODULES(GECKO, [mozilla-plugin mozilla-xpcom],[ |
47 |
GECKO_HOME=`$PKG_CONFIG --variable=libdir mozilla-plugin` |
48 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir mozilla-xpcom` |
49 |
],[AC_MSG_WARN([mozilla-plugin not found, trying another])]) |
50 |
fi |
51 |
|
52 |
if test "$GECKO_CFLAGS" = ""; then |
53 |
PKG_CHECK_MODULES(GECKO, [firefox-plugin firefox-xpcom],[ |
54 |
GECKO_HOME=`$PKG_CONFIG --variable=libdir firefox-plugin` |
55 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir firefox-xpcom` |
56 |
],[AC_MSG_WARN([firefox-plugin not found, trying another])]) |
57 |
fi |
58 |
|
59 |
if test "$GECKO_CFLAGS" = ""; then |
60 |
PKG_CHECK_MODULES(GECKO, [seamonkey-plugin seamonkey-xpcom],[ |
61 |
GECKO_HOME=`$PKG_CONFIG --variable=libdir seamonkey-plugin` |
62 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir seamonkey-xpcom` |
63 |
],[AC_MSG_WARN([seamokey-plugin not found, trying another])]) |
64 |
fi |
65 |
|
66 |
if test "$GECKO_CFLAGS" = ""; then |
67 |
PKG_CHECK_MODULES(GECKO, [xulrunner-plugin xulrunner-xpcom],[ |
68 |
GECKO_HOME=`$PKG_CONFIG --variable=libdir xulrunner-plugin` |
69 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir xulrunner-xpcom` |
70 |
],[AC_MSG_WARN([xulrunner-plugin not found, trying another])]) |
71 |
fi |
72 |
|
73 |
if test "$GECKO_CFLAGS" = ""; then |
74 |
PKG_CHECK_MODULES(GECKO, [libxul],[ |
33 |
PKG_CHECK_MODULES(GECKO, [libxul],[ |
75 |
GECKO_HOME=`$PKG_CONFIG --variable=libdir libxul` |
34 |
GECKO_HOME=`$PKG_CONFIG --variable=sdkdir libxul` |
76 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir libxul` |
35 |
GECKO_IDLDIR=$GECKO_HOME/idl |
77 |
],[AC_MSG_WARN([libxul not found, trying another])]) |
36 |
],[AC_MSG_WARN([libxul not found, trying another])]) |
78 |
fi |
|
|
79 |
|
80 |
if test "$GECKO_CFLAGS" = ""; then |
81 |
PKG_CHECK_MODULES(GECKO, [libxul-unstable],[ |
82 |
GECKO_HOME=`$PKG_CONFIG --variable=libdir libxul-unstable` |
83 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir libxul-unstable` |
84 |
],[AC_MSG_WARN([libxul-unstable not found, trying another])]) |
85 |
fi |
86 |
|
87 |
|
88 |
if test "$GECKO_CFLAGS" = ""; then |
89 |
PKG_CHECK_MODULES(GECKO, [iceape-plugin iceape-xpcom],[ |
90 |
GECKO_HOME=`$PKG_CONFIG --variable=libdir iceape-plugin` |
91 |
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir iceape-xpcom` |
92 |
],[AC_MSG_WARN([iceape-plugin not found, trying another])]) |
93 |
fi |
94 |
|
37 |
|
95 |
PKG_CHECK_MODULES(NSPR, [nspr],[ |
38 |
PKG_CHECK_MODULES(NSPR, [nspr],[ |
96 |
libdir=`$PKG_CONFIG --variable=libdir nspr` |
39 |
libdir=`$PKG_CONFIG --variable=libdir nspr` |