Completely rebuild the commandline processing.
[captive.git] / configure.ac
index e189390..9fa79c3 100644 (file)
@@ -102,6 +102,8 @@ AC_ARG_ENABLE(standalone,
                [  --enable-standalone=no/yes       provide initialization for static-build (def.=no)],,enable_standalone=no)
 AC_ARG_ENABLE(standalone-fonts,
                [  --enable-standalone-fonts=DIR    provide bundled Gnome fonts in directory (def.=no)],,enable_standalone_fonts=no)
+AC_ARG_ENABLE(standalone-yum,
+               [  --enable-standalone-yum=DIR      provide bundled yum(8) packaging configuration directory (def.=no)],,enable_standalone_yum=no)
 
 
 # AC_ARG_ENABLE(sbin-mountdir,[--enable-sbin-mountdir=DIR],,[enable_sbin_mountdir="/sbin"])
@@ -452,6 +454,7 @@ AC_SUBST(GNOME_VFS_READ_ENTIRE_FILE_O)
 if test x$enable_standalone = xyes;then
        AC_DEFINE(ENABLE_STANDALONE,,[Provide initialization for static-build])
 fi
+AM_CONDITIONAL(ENABLE_STANDALONE,[test x$enable_standalone = xyes])
 
 fontsdir=
 if test x$enable_standalone_fonts != xno;then
@@ -467,6 +470,13 @@ if test x$have_gnome != xtrue -a x$have_gnome != xfalse;then
 fi
 AM_CONDITIONAL(HAVE_GNOME,[test "$have_gnome" = "true"])
 
+yum_repos_ddir=
+if test x$enable_standalone_yum != xno;then
+       yum_repos_ddir="$enable_standalone_yum"
+fi
+AC_SUBST(yum_repos_ddir)
+AM_CONDITIONAL(ENABLE_STANDALONE_YUM_REPOS_D,[test "$enable_standalone_yum" != "no"])
+
 AC_SUBST(CFLAGS)
 AC_SUBST(LIBS)
 
@@ -520,6 +530,7 @@ Makefile
 ./src/libcaptive/reactos/ntoskrnl/rtl/i386/Makefile
 ./src/libcaptive/reactos/ntoskrnl/se/Makefile
 ./src/libcaptive/halcaptive/Makefile
+./src/libcaptive/captivemodid/Makefile
 ./src/libcaptive/cc/Makefile
 ./src/libcaptive/cm/Makefile
 ./src/libcaptive/ex/Makefile
@@ -555,6 +566,7 @@ Makefile
 ./doc/apiref/Makefile
 ./fonts/Makefile
 ./fonts/fonts.conf
+./yum.repos.d/Makefile
 ])
 
 dnl FIXME: Why is "po/POTFILES" being substituted?