diff options
Diffstat (limited to 'java/eclipse/files/post-patch-plugins-swt-gtk-build.sh')
| -rw-r--r-- | java/eclipse/files/post-patch-plugins-swt-gtk-build.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/eclipse/files/post-patch-plugins-swt-gtk-build.sh b/java/eclipse/files/post-patch-plugins-swt-gtk-build.sh index 5242e07e782f..516e926da1e5 100644 --- a/java/eclipse/files/post-patch-plugins-swt-gtk-build.sh +++ b/java/eclipse/files/post-patch-plugins-swt-gtk-build.sh @@ -68,9 +68,9 @@ - echo " *** Mozilla embedding support will not be compiled." +if [ ${MAKE_MOZILLA} != "" ]; then + if [ -z "${GECKO_INCLUDES}" -a -z "${GECKO_LIBS}" ]; then -+ if [ x`pkg-config --exists mozilla-xpcom && echo YES` = "xYES" ]; then -+ GECKO_INCLUDES=`pkg-config --cflags mozilla-xpcom` -+ GECKO_LIBS=`pkg-config --libs mozilla-xpcom` ++ if [ x`pkg-config --exists %%GECKO%%-xpcom && echo YES` = "xYES" ]; then ++ GECKO_INCLUDES=`pkg-config --cflags %%GECKO%%-xpcom` ++ GECKO_LIBS=`pkg-config --libs %%GECKO%%-xpcom` + export GECKO_INCLUDES + export GECKO_LIBS + MAKE_MOZILLA=make_mozilla |
