Commit a241a03f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fetch the gecko headers if we are missing them.

parent 87a07241
......@@ -15,6 +15,12 @@ if BUILD_ACTIVEX
SUBDIRS += activex
endif
if HAVE_SDK
npapi-headers:
svn export http://npapi-sdk.googlecode.com/svn/trunk/headers gecko -r HEAD
touch $@
endif
EXTRA_DIST = \
autogen.sh \
extras/macosx/Info.plist.in \
......
......@@ -197,9 +197,11 @@ CPPFLAGS="${CPPFLAGS} ${MOZILLA_CFLAGS} -Igecko/"
AC_CHECK_HEADERS(npapi.h npruntime.h, [
dnl if found
have_headers="true"
],[
dnl if not found
AC_MSG_ERROR([Please install the Mozilla development tools, required headers were not found.])
AC_MSG_WARN([Please install the Mozilla development tools, required headers were not found.])
have_headers="false"
], [
#include <stdint.h>
#if HAVE_NPAPI_H
......@@ -207,7 +209,7 @@ AC_CHECK_HEADERS(npapi.h npruntime.h, [
#endif
]
)
AM_CONDITIONAL(FETCH_NPAPI, [ test "${have_headers}" != "true" ])
dnl
dnl check the const-ness of GetMIMEDesc, since it changed in latest npapi headers
......
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