From b9fb2ffdc602332f82f488ea28748ac494c6dc0d Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 30 Nov 2010 10:41:44 -0500 Subject: [PATCH] configure: Add --with-tui option for enabling/disabling TUI install --- configure.ac | 9 +++++++++ src/Makefile.am | 22 ++++++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 933920194..d1c01db96 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,15 @@ dnl ==================================== dnl = End tests for scrollkeeper dnl ==================================== +dnl Avahi library +AC_ARG_WITH([tui], + AC_HELP_STRING( + [--with-tui], + [install virt-manager command line interface @<:@default=yes@:>@]), + [], + [with_tui=yes]) + +AM_CONDITIONAL([INSTALL_TUI], [test "x$with_tui" = "xyes"]) AC_OUTPUT(Makefile pixmaps/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 96b8f03e2..38e83c4ba 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,12 +1,12 @@ -SUBDIRS = virtManager virtManagerTui +SUBDIRS = virtManager -bin_SCRIPTS_IN = virt-manager.in virt-manager-tui.in -bin_SCRIPTS = virt-manager virt-manager-tui +bin_SCRIPTS_IN = virt-manager.in +bin_SCRIPTS = virt-manager pythondir = $(pkgdatadir) -python_DATA_IN = $(PACKAGE).py.in $(PACKAGE)-tui.py.in -python_DATA = $(PACKAGE).py $(PACKAGE)-tui.py +python_DATA_IN = $(PACKAGE).py.in +python_DATA = $(PACKAGE).py libexec_DATA_IN = $(PACKAGE)-launch.in libexec_SCRIPTS = $(PACKAGE)-launch @@ -26,10 +26,20 @@ schemadir = $(sysconfdir)/gconf/schemas schema_DATA_IN = $(PACKAGE).schemas.in schema_DATA = $(PACKAGE).schemas -CLEANFILES = $(bin_SCRIPTS) $(desktop_DATA) $(dbus_DATA) $(python_DATA) $(libexec_SCRIPTS) $(schema_DATA) $(PACKAGE).desktop.in +CLEANFILES = $(bin_SCRIPTS) $(desktop_DATA) $(dbus_DATA) $(python_DATA) $(libexec_SCRIPTS) $(schema_DATA) $(PACKAGE).desktop.in EXTRA_DIST = $(bin_SCRIPTS_IN) $(desktop_DATA_IN) $(dbus_DATA_IN) $(python_DATA_IN) $(glade_DATA) $(libexec_DATA_IN) $(schema_DATA_IN) +if INSTALL_TUI +SUBDIRS += virtManagerTui + +bin_SCRIPTS_IN += virt-manager-tui.in +bin_SCRIPTS += virt-manager-tui + +python_DATA_IN += $(PACKAGE)-tui.py.in +python_DATA = $(PACKAGE)-tui.py +endif + @INTLTOOL_DESKTOP_RULE@ %.desktop.in: $(srcdir)/%.desktop.in.in