summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index d5cf3bb..709e417 100755
--- a/configure
+++ b/configure
@@ -48,6 +48,8 @@ Installation directories:
default: PREFIX/bin
--libdir=LIBDIR install library scripts in LIBDIR
default: PREFIX/lib
+ --datadir=DATADIR expect to find data in DATADIR
+ default: PREFIX/share
--mandir=MANDIR install manual pages in MANDIR
default: PREFIX/share/man
EOF
@@ -105,6 +107,11 @@ while true; do
LIBDIR="\${PREFIX}/${2}"
shift 2
;;
+ --datadir)
+ # Leave PREFIX unexpanded for now, in case it isn't set yet.
+ DATADIR="\${PREFIX}/${2}"
+ shift 2
+ ;;
--mandir)
# Leave PREFIX unexpanded for now, in case it isn't set yet.
MANDIR="\${PREFIX}/${2}"
@@ -139,12 +146,16 @@ fi
if [ -z "${LIBDIR}" ]; then
LIBDIR=${PREFIX}/lib
fi
+if [ -z "${DATADIR}" ]; then
+ DATADIR=${PREFIX}/share
+fi
if [ -z "${MANDIR}" ]; then
MANDIR=${PREFIX}/share/man
fi
# Expand PREFIX if it's there.
eval "BINDIR=${BINDIR}"
eval "LIBDIR=${LIBDIR}"
+eval "DATADIR=${DATADIR}"
eval "MANDIR=${MANDIR}"
find_dependency()
@@ -189,6 +200,7 @@ s&@srcdir@&${SRCDIR}&
s&@prefix@&${PREFIX}&
s&@bindir@&${BINDIR}&
s&@libdir@&${LIBDIR}&
+s&@datadir@&${DATADIR}&
s&@mandir@&${MANDIR}&
s&@package@&${PACKAGE}&
s&@version@&${VERSION}&"