|
|
@ -3,9 +3,12 @@ AC_DEFUN([AC_PATH_MOZILLA],
|
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for Mozilla development headers])
|
|
|
|
AC_MSG_CHECKING([for Mozilla development headers])
|
|
|
|
|
|
|
|
|
|
|
|
mozilla_incldirs="/usr/include /usr/include/mozilla /usr/local/include /usr/X11R6/include/mozilla /opt/include /opt/mozilla/include"
|
|
|
|
mozilla_incldirs="/usr/include /usr/include/mozilla /usr/local/include /usr/X11R6/include/mozilla /opt/include /opt/mozilla/include /usr/include/xulrunner*"
|
|
|
|
AC_FIND_FILE(gtkmozembed.h, $mozilla_incldirs, mozilla_incdir)
|
|
|
|
AC_FIND_FILE(gtkmozembed.h, $mozilla_incldirs, mozilla_incdir)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mozilla_libdirs="/usr/lib /usr/lib/xulrunner*"
|
|
|
|
|
|
|
|
AC_FIND_FILE(libxul.so, $mozilla_libdirs, mozilla_libdir)
|
|
|
|
|
|
|
|
|
|
|
|
if test "$mozilla_incdir" = NO; then
|
|
|
|
if test "$mozilla_incdir" = NO; then
|
|
|
|
AC_FIND_FILE(gtkembedmoz/gtkmozembed.h, $mozilla_incldirs, mozilla_incdir)
|
|
|
|
AC_FIND_FILE(gtkembedmoz/gtkmozembed.h, $mozilla_incldirs, mozilla_incdir)
|
|
|
|
|
|
|
|
|
|
|
@ -19,7 +22,9 @@ if test "$mozilla_incdir" = NO; then
|
|
|
|
else
|
|
|
|
else
|
|
|
|
have_mozilla=yes;
|
|
|
|
have_mozilla=yes;
|
|
|
|
MOZILLA_INCLUDES="-I$mozilla_incdir"
|
|
|
|
MOZILLA_INCLUDES="-I$mozilla_incdir"
|
|
|
|
|
|
|
|
MOZILLA_LDFLAGS="-L$mozilla_libdir"
|
|
|
|
AC_SUBST(MOZILLA_INCLUDES)
|
|
|
|
AC_SUBST(MOZILLA_INCLUDES)
|
|
|
|
|
|
|
|
AC_SUBST(MOZILLA_LDFLAGS)
|
|
|
|
AC_MSG_RESULT([found in $mozilla_incdir]);
|
|
|
|
AC_MSG_RESULT([found in $mozilla_incdir]);
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -27,5 +32,6 @@ AM_CONDITIONAL(include_MOZILLA_support, [test "$mozilla_incdir" != NO])
|
|
|
|
|
|
|
|
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_PATH_MOZILLA
|
|
|
|
AC_PATH_MOZILLA
|
|
|
|
|
|
|
|
AC_GLIB_2
|
|
|
|
|
|
|
|
AC_GTK_2
|
|
|
|