virt-viewer/configure.ac

44 lines
1.3 KiB
Plaintext
Raw Normal View History

AC_INIT(virt-viewer, 0.0.2)
AC_CONFIG_SRCDIR(src/main.c)
AM_CONFIG_HEADER(config.h)
dnl Make automake keep quiet about wildcards & other GNUmake-isms
AM_INIT_AUTOMAKE([-Wno-portability])
AC_CANONICAL_HOST
2007-07-20 15:26:08 -04:00
AC_PROG_CC
2008-01-25 16:27:04 -05:00
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
2007-07-20 15:26:08 -04:00
AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions])
2007-07-20 15:26:08 -04:00
VIRT_VIEWER_COMPILE_WARNINGS(maximum)
PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.6.0)
PKG_CHECK_MODULES(LIBVIRT, libvirt >= 0.2.0)
PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0)
PKG_CHECK_MODULES(GTKVNC, gtk-vnc-1.0 >= 0.0.1)
2008-01-25 16:27:04 -05:00
dnl --enable-plugin to enable the browser plugin.
NSPR_REQUIRED=4.0.0
FIREFOX_PLUGIN_REQUIRED=2.0.0
AC_ARG_ENABLE(plugin,
[ --enable-plugin=[no/yes] enable browser plugin [default=no]],,
enable_plugin=no)
if test "x$enable_plugin" = "xyes"; then
dnl Check for Netscape Portable Runtime development package.
PKG_CHECK_MODULES(NSPR, nspr >= $NSPR_REQUIRED)
dnl Check for Firefox plugin package (also includes NSPR cflags/libs).
PKG_CHECK_MODULES(FIREFOX_PLUGIN,
firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED)
AC_SUBST(FIREFOX_PLUGIN_CFLAGS)
AC_SUBST(FIREFOX_PLUGIN_LIBS)
fi
AM_CONDITIONAL(ENABLE_PLUGIN, [test "x$enable_plugin" = "xyes"])
2007-07-20 15:26:08 -04:00
AC_OUTPUT(Makefile
src/Makefile
2007-07-20 15:59:19 -04:00
man/Makefile
2008-01-25 16:27:04 -05:00
plugin/Makefile
2007-07-20 15:26:08 -04:00
virt-viewer.spec)