From 65bfd54d3606ffb6812e35cfe5152010b48ff97c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 25 Nov 2013 12:34:03 +0100 Subject: [PATCH] configure: added --localstatedir (defaults to /var). --- configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 037c73d1..acaa8202 100755 --- a/configure +++ b/configure @@ -35,6 +35,7 @@ for instance \`--prefix=\$HOME'. --sysconfdir=DIR Configuration files directory [PREFIX/etc] --pkgconfigdir=DIR pkg-config directory [EPREFIX/lib/pkgconfig] --testsdir=DIR Test suite directory [EPREFIX/tests] +--localstatedir=DIR Local state directory to store XBPS db files [/var] --verbose Disable silent build to see compilation details --enable-api-docs Install XBPS API Library documentation (default disabled) @@ -61,6 +62,7 @@ for x; do --target) TARGET=$var;; --includedir) INCLUDEDIR=$var;; --sysconfdir) ETCDIR=$var;; + --localstatedir) LOCALSTATEDIR=$var;; --libdir) LIBDIR=$var;; --datadir|--infodir) ;; # ignore autotools --enable-api-docs) BUILD_API_DOCS=$var;; @@ -87,6 +89,8 @@ done : ${ETCDIR:=${PREFIX}/etc} : ${PKGCONFIGDIR:=${LIBDIR}/pkgconfig} : ${TESTSDIR:=${EPREFIX}/tests} +: ${LOCALSTATEDIR:=/var} +: ${DBDIR:=${LOCALSTATEDIR}/db/xbps} : ${TOPDIR:=..} _which() @@ -149,6 +153,7 @@ echo "MANDIR ?= $MANDIR" >>$CONFIG_MK echo "SHAREDIR ?= $SHAREDIR" >>$CONFIG_MK echo "PKGCONFIGDIR ?= $PKGCONFIGDIR" >>$CONFIG_MK echo "TESTSDIR ?= $TESTSDIR" >>$CONFIG_MK +echo "DBDIR ?= $DBDIR" >>$CONFIG_MK ETCDIR="${ETCDIR}/xbps" echo "ETCDIR ?= $ETCDIR" >>$CONFIG_MK @@ -700,6 +705,7 @@ echo " INCLUDEDIR = $INCLUDEDIR" echo " SHAREDIR = $SHAREDIR" echo " MANDIR = $MANDIR" echo " ETCDIR = $ETCDIR" +echo " DBDIR = $DBDIR" if [ -n "$CFLAGS" ]; then echo " CFLAGS = $CFLAGS"