if test "x$enable_gecko" = "xyes" -o "x$enable_gecko" = "xmozilla" ; then
gecko_provider=mozilla
pkg_failed=no
{ echo "$as_me:$LINENO: checking for MOZILLA" >&5
echo $ECHO_N "checking for MOZILLA... $ECHO_C" >&6; }
if test -n "$PKG_CONFIG"; then
if test -n "$MOZILLA_CFLAGS"; then
pkg_cv_MOZILLA_CFLAGS="$MOZILLA_CFLAGS"
else
if test -n "$PKG_CONFIG" && \
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gecko_provider-gtkmozembed\"") >&5
($PKG_CONFIG --exists --print-errors "$gecko_provider-gtkmozembed") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
pkg_cv_MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "$gecko_provider-gtkmozembed" 2>/dev/null`
else
pkg_failed=yes
fi
fi
else
pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
if test -n "$MOZILLA_LIBS"; then
pkg_cv_MOZILLA_LIBS="$MOZILLA_LIBS"
else
if test -n "$PKG_CONFIG" && \
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gecko_provider-gtkmozembed\"") >&5
($PKG_CONFIG --exists --print-errors "$gecko_provider-gtkmozembed") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
pkg_cv_MOZILLA_LIBS=`$PKG_CONFIG --libs "$gecko_provider-gtkmozembed" 2>/dev/null`
else
pkg_failed=yes
fi
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
MOZILLA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$gecko_provider-gtkmozembed"`
else
MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$gecko_provider-gtkmozembed"`
fi
# Put the nasty error message in config.log where it belongs
echo "$MOZILLA_PKG_ERRORS" >&5
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
enable_mozilla=no
elif test $pkg_failed = untried; then
enable_mozilla=no
else
MOZILLA_CFLAGS=$pkg_cv_MOZILLA_CFLAGS
MOZILLA_LIBS=$pkg_cv_MOZILLA_LIBS
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
enable_mozilla=yes
fi
{ echo "$as_me:$LINENO: result: $gecko_provider: $enable_mozilla" >&5
echo "${ECHO_T}$gecko_provider: $enable_mozilla" >&6; }
fi
if test "x$enable_mozilla" != "xyes" -a \( "x$enable_gecko" = "xyes" -o "x$enable_gecko" = "xfirefox" \) ; then
gecko_provider=firefox
pkg_failed=no
{ echo "$as_me:$LINENO: checking for MOZILLA" >&5
echo $ECHO_N "checking for MOZILLA... $ECHO_C" >&6; }
if test -n "$PKG_CONFIG"; then
if test -n "$MOZILLA_CFLAGS"; then
pkg_cv_MOZILLA_CFLAGS="$MOZILLA_CFLAGS"
else
if test -n "$PKG_CONFIG" && \
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gecko_provider-gtkmozembed\"") >&5
($PKG_CONFIG --exists --print-errors "$gecko_provider-gtkmozembed") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
pkg_cv_MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "$gecko_provider-gtkmozembed" 2>/dev/null`
else
pkg_failed=yes
fi
fi
else
pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
if test -n "$MOZILLA_LIBS"; then
pkg_cv_MOZILLA_LIBS="$MOZILLA_LIBS"
else
if test -n "$PKG_CONFIG" && \
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gecko_provider-gtkmozembed\"") >&5
($PKG_CONFIG --exists --print-errors "$gecko_provider-gtkmozembed") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
pkg_cv_MOZILLA_LIBS=`$PKG_CONFIG --libs "$gecko_provider-gtkmozembed" 2>/dev/null`
else
pkg_failed=yes
fi
fi
else
pkg_failed=untried
fi