34 |
[AC_SUBST([JAVAC], ["$withval"])], |
[AC_SUBST([JAVAC], ["$withval"])], |
35 |
[AC_SUBST([JAVAC], ["gcj -C"])]) |
[AC_SUBST([JAVAC], ["gcj -C"])]) |
36 |
AC_MSG_RESULT([$JAVAC]) |
AC_MSG_RESULT([$JAVAC]) |
37 |
|
dnl No fancy checking of the executable here. |
38 |
|
dnl GCJWEBPLUGIN_CHECK_FEATURE_EMBEDDEDWINDOW will do this for us. |
39 |
]) |
]) |
40 |
|
|
41 |
dnl --------------------------------------------------------------------------- |
dnl --------------------------------------------------------------------------- |
93 |
AC_DEFUN([GCJWEBPLUGIN_ENABLE_NATIVE_VIEWER],[ |
AC_DEFUN([GCJWEBPLUGIN_ENABLE_NATIVE_VIEWER],[ |
94 |
AC_ARG_ENABLE([native-viewer], |
AC_ARG_ENABLE([native-viewer], |
95 |
[AS_HELP_STRING([--enable-native-viewer], |
[AS_HELP_STRING([--enable-native-viewer], |
96 |
[build native viewer process (default: disabled)])]) |
[build native viewer process (default: enabled if libgcj found)])]) |
97 |
AM_CONDITIONAL([NATIVE_VIEWER], |
AM_CONDITIONAL([NATIVE_VIEWER], |
98 |
[test "x$enable_native_viewer" = xyes]) |
[test "x$enable_native_viewer" = xyes]) |
99 |
|
|
100 |
if test "x$enable_native_viewer" = xyes |
if test "x$enable_native_viewer" = xyes |
101 |
then |
then |
102 |
PKG_CHECK_MODULES(LIBGCJ, libgcj >= 3.4) |
if test "FOUND_LIBGCJ" = "yes" |
103 |
AC_SUBST(LIBGCJ_CFLAGS) |
then |
104 |
AC_SUBST(LIBGCJ_LIBS) |
AC_SUBST([USE_NATIVE_VIEWER],[yes]) |
105 |
AC_SUBST([USE_NATIVE_VIEWER],[yes]) |
else |
106 |
|
AC_SUBST([USE_NATIVE_VIEWER],[no]) |
107 |
|
fi |
108 |
else |
else |
109 |
AC_SUBST([USE_NATIVE_VIEWER],[no]) |
AC_SUBST([USE_NATIVE_VIEWER],[no]) |
110 |
fi |
fi |