AC_SUBST(CD_KEYBOARD)
AC_SUBST(CD_TIMEZONE)
+dnl Allow a local repository.
+AC_ARG_ENABLE([localrepo],
+ [AS_HELP_STRING([--enable-localrepo],
+ [set path to local repository with additional packages])],
+ [LOCALREPO=$enableval],
+ [LOCALREPO=no])
+
+if test "x$LOCALREPO" != "xno"; then
+ if test -d "$LOCALREPO"; then
+ # Turn a pathname into a file URL.
+ LOCALREPO=`cd $LOCALREPO && pwd`
+ LOCALREPO=file://$LOCALREPO
+ fi
+ LOCALREPO="repo --name=local --baseurl=$LOCALREPO"
+else
+ LOCALREPO=""
+fi
+AC_SUBST(LOCALREPO)
+
dnl Check for basic OCaml script interpreter.
AC_PROG_OCAML
repo --name=released --baseurl=@CD_BASE_URL@
#repo --name=released --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-@CD_BASE@&arch=@CD_ARCH@
-repo --name=local --baseurl=file:///home/rjones/d/virt-p2v--devel/localrepo
+@LOCALREPO@
%packages
bash