virt-ifconfig working
[virt-tools.git] / configure.ac
index adf06f3..e1c5702 100644 (file)
@@ -15,7 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-AC_INIT([libguestfs],0.1.0)
+AC_INIT([virt-tools],0.1.0)
 AM_INIT_AUTOMAKE([foreign])
 
 AC_CONFIG_MACRO_DIR([m4])
@@ -25,11 +25,12 @@ if test "x$PERL" = "xno"; then
     AC_MSG_FAILURE([Perl must be installed])
 fi
 
-dnl Check for Perl modules that must be present to compile and
-dnl test the Perl bindings.
+AM_PROG_MKDIR_P
+
+dnl Check for required and optional Perl modules.
 missing_perl_modules=no
-required_perl_modules="Test::More Test::Pod Test::Pod::Coverage ExtUtils::MakeMaker Sys::Virt"
-optional_perl_modules="Sys::Guestfs"
+required_perl_modules="Test::More Test::Pod Test::Pod::Coverage ExtUtils::MakeMaker Sys::Virt Sys::Guestfs Locale::TextDomain"
+optional_perl_modules=""
 
 for pm in $required_perl_modules; do
     AC_MSG_CHECKING([for $pm])
@@ -60,6 +61,9 @@ AC_CHECK_PROG([POD2TEXT],[pod2text],[pod2text],[no])
 test "x$POD2TEXT" = "xno" &&
      AC_MSG_ERROR([pod2text must be installed])
 
+AC_CONFIG_FILES([linux/50-virt-tools:linux/50-virt-tools.in],
+                [chmod +x linux/50-virt-tools])
+
 AC_CONFIG_FILES([tools/virt-tools-get-key:tools/virt-tools-get-key.pl],
                 [chmod +x tools/virt-tools-get-key])
 AC_CONFIG_FILES([tools/virt-tools-get-transport:tools/virt-tools-get-transport.pl],
@@ -68,6 +72,7 @@ AC_CONFIG_FILES([tools/virt-uname:tools/virt-uname.pl],
                 [chmod +x tools/virt-uname])
 AC_CONFIG_FILES([tools/virt-ifconfig:tools/virt-ifconfig.pl],
                 [chmod +x tools/virt-ifconfig])
+
 AC_CONFIG_FILES([Makefile
                  daemon/Makefile docs/Makefile linux/Makefile tools/Makefile])
 AC_OUTPUT