Commit d636cba5 authored by Christophe Mutricy's avatar Christophe Mutricy

configure.ac: Detect the Xulrunner sdk (from sam's debian patch)

parent dea97330
...@@ -5082,8 +5082,15 @@ then ...@@ -5082,8 +5082,15 @@ then
AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no) AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no)
if test "${MOZILLA_CONFIG}" = "no" if test "${MOZILLA_CONFIG}" = "no"
then then
AC_MSG_ERROR([Please install the Mozilla development tools, mozilla-config was not found.]) AC_PATH_PROG(XULRUNNER_CONFIG, xulrunner-config, no)
if test "${XULRUNNER_CONFIG}" != "no"
then
have_xul=true
MOZILLA_CONFIG="${XULRUNNER_CONFIG}"
else else
AC_MSG_ERROR([Please install the Mozilla development tools, mozilla-config was not found.])
fi
fi
if ${MOZILLA_CONFIG} --defines | grep -q 'MOZ_X11=1'; then if ${MOZILLA_CONFIG} --defines | grep -q 'MOZ_X11=1'; then
LDFLAGS="${LDFLAGS_save} ${X_LIBS} ${X_PRE_LIBS}" LDFLAGS="${LDFLAGS_save} ${X_LIBS} ${X_PRE_LIBS}"
AC_CHECK_LIB(Xt,XtStrings, AC_CHECK_LIB(Xt,XtStrings,
...@@ -5110,15 +5117,20 @@ then ...@@ -5110,15 +5117,20 @@ then
MOZILLA_SDK_PATH="`${MOZILLA_CONFIG} --prefix`" MOZILLA_SDK_PATH="`${MOZILLA_CONFIG} --prefix`"
XPIDL_INCL="`${MOZILLA_CONFIG} --cflags plugin xpcom java` \ XPIDL_INCL="`${MOZILLA_CONFIG} --cflags plugin xpcom java` \
`${MOZILLA_CONFIG} --idlflags plugin xpcom java` " `${MOZILLA_CONFIG} --idlflags plugin xpcom java` "
if ${have_xul}
then
xpidl_path="`${MOZILLA_CONFIG} --prefix`/lib/xulrunner"
else
xpidl_path="`${MOZILLA_CONFIG} --prefix`/bin" xpidl_path="`${MOZILLA_CONFIG} --prefix`/bin"
fi fi
fi
else else
dnl special case for mingw32 dnl special case for mingw32
if test "${SYS}" = "mingw32" if test "${SYS}" = "mingw32"
then then
AC_CHECK_TOOL(CYGPATH, cygpath, "") AC_CHECK_TOOL(CYGPATH, cygpath, "")
dnl latest gecko sdk does not have an xpcom directory dnl latest gecko sdk does not have an xpcom directory
if test -d "${with_mozilla_sdk_path}/xpcom"; then if test -d "${with_mozilla_sdk_pat.}/xpcom"; then
mozilla_sdk_xpcom="/xpcom" mozilla_sdk_xpcom="/xpcom"
fi fi
fi fi
...@@ -5157,7 +5169,7 @@ then ...@@ -5157,7 +5169,7 @@ then
if test "${XPIDL}" = "no"; then if test "${XPIDL}" = "no"; then
AC_MSG_ERROR([Please install the Mozilla development tools, xpidl was not found.]) AC_MSG_ERROR([Please install the Mozilla development tools, xpidl was not found.])
fi fi
fi
fi fi
AM_CONDITIONAL(BUILD_MOZILLA,${mozilla}) AM_CONDITIONAL(BUILD_MOZILLA,${mozilla})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment