-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.in
50 lines (35 loc) · 1.69 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
AC_INIT(src/ns_init.cc)
AC_ARG_WITH(xul-sdk, [ --with-xul-sdk directory in which the xulrunner-sdk distribution is located],
XUL_SDK=${withval})
AC_ARG_WITH(firefox, [ --with-firefox firefox executable (including path if necessary)], FF=${withval}, FF=firefox)
AC_ARG_WITH(r-home, [--with-r-home Location of an R build with a shared library], R_HOME=${withval}, : ${R_HOME='R RHOME'})
AC_ARG_WITH(arch, [--with-arch Specify the architecture of the system. Defaults to x86_64], ARCH=${withval}, ARCH=x86_64)
#The plan is to detect this automatically, hopefully using configure variables created by R during installation.
AC_ARG_ENABLE(mac, [--enable-mac Configure RFirefox for Mac OS X], IS_MAC=1, IS_MAC=0)
AC_ARG_WITH(npapi-sdk, [ --with-npapi-sdk directory in which npapi sdk is located],
NPAPI_SDK=${withval})
AC_ARG_ENABLE(rfirefox, [ --enable-rfirefox build the RFirefox Firefox extension],
RFIREFOX_DEF="-DBUILD_RFIREFOX", RFIREFOX_DEF="")
if test `uname` = "Darwin"; then
echo "***** Mac OSX detected *****"
IS_MAC=1
else
IS_MAC=0
fi
AC_SUBST(XUL_SDK)
AC_SUBST(R_HOME)
AC_SUBST(IS_MAC)
AC_SUBST(FF)
AC_SUBST(ARCH)
AC_SUBST(NPAPI_SDK)
AC_SUBST(RFIREFOX_DEF)
#if ! test -d "$XUL_SDK" ; then
# echo "Can't find the Xulrunner SDK. Unable to prepare the package for compilation."
# echo "For now, specify the Xulrunner SDK directory using --with-xul-sdk=<path> in configure-args"
# AC_MSG_ERROR( "Eventually this will be detected automatically.")
#fi
if test -z "${R_HOME}"; then
echo "could not determine R_HOME"
exit 1
fi
AC_OUTPUT(src/Makevars inst/components/GNUmakefile inst/runfirefox.sh inst/NPAPI/Makefile inst/NPAPI/Makefile.win)