Allow customization of installation directory
[ext/instance-debootstrap.git] / configure.ac
index 570deb0..56f9fbb 100644 (file)
@@ -6,6 +6,16 @@ AC_CONFIG_SRCDIR(configure)
 
 AM_INIT_AUTOMAKE([1.9 foreign tar-ustar -Wall -Wno-portability])
 
+# --with-os-dir=...
+AC_ARG_WITH([os-dir],
+  [AS_HELP_STRING([--with-os-dir=DIR],
+    [top-level OS directory under which to install]
+    [ (default is $datadir/ganeti/os)]
+  )],
+  [os_dir="$withval"],
+  [os_dir="$datadir/ganeti/os"])
+AC_SUBST(OS_DIR, $os_dir)
+
 # Check common programs
 AC_PROG_INSTALL
 AC_PROG_LN_S