From c544c983e43ee1f45a0bf9e1764cf0982b6bef5c Mon Sep 17 00:00:00 2001 From: einarr Date: Fri, 5 Dec 2008 19:59:21 +0000 Subject: [PATCH] Added --root to allow deb builds to go smoother. --- configure | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/configure b/configure index c66407e..dc346bd 100755 --- a/configure +++ b/configure @@ -1,7 +1,7 @@ #!/bin/bash -TEMP=`getopt -o "" --long prefix:,bindir:,datadir:,pydir: \ +TEMP=`getopt -o "" --long prefix:,bindir:,datadir:,pydir:,root: \ -n 'configure' -- "$@"` eval set -- "$TEMP" @@ -12,24 +12,25 @@ while true ; do --bindir) BINDIR=$2 ; shift 2 ;; --datadir) DATADIR=$2 ; shift 2 ;; --pydir) PYDIR=$2 ; shift 2 ;; + --root) ROOT=$2 ; shift 2 ;; --) shift ; break ;; *) echo "Internal error!" ; exit 1 ;; esac done -if [[ $PREFIX == "" ]] ; then PREFIX=/usr/local ; fi +#if [[ $PREFIX == "" ]] ; then PREFIX=/usr/local ; fi if [[ $BINDIR == "" ]] ; then BINDIR=$PREFIX/bin ; fi if [[ $DATADIR == "" ]] ; then DATADIR=$PREFIX/share/laydi ; fi if [[ $DOCDIR == "" ]] ; then DOCDIR=$PREFIX/share/doc/laydi; fi if [[ $PYDIR == "" ]] ; then PYDIR=$PREFIX/share/python-support/laydi; fi -m4 -D M4_PREFIX=$PREFIX -D M4_BINDIR=$BINDIR \ - -D M4_DATADIR=$DATADIR -D M4_DOCDIR=$DOCDIR \ - -D M4_PYDIR=$PYDIR Makefile.m4 > Makefile +m4 -D M4_PREFIX=$ROOT/$PREFIX -D M4_BINDIR=$ROOT/$BINDIR \ + -D M4_DATADIR=$ROOT/$DATADIR -D M4_DOCDIR=$ROOT/$DOCDIR \ + -D M4_PYDIR=$ROOT/$PYDIR Makefile.m4 > Makefile -m4 -D M4_PREFIX=$PREFIX -D M4_BINDIR=$BINDIR \ - -D M4_DATADIR=$DATADIR -D M4_DOCDIR=$DOCDIR \ - -D M4_PYDIR=$PYDIR doc/Makefile.m4 > doc/Makefile +m4 -D M4_PREFIX=$ROOT/$PREFIX -D M4_BINDIR=$ROOT/$BINDIR \ + -D M4_DATADIR=$ROOT/$DATADIR -D M4_DOCDIR=$ROOT/$DOCDIR \ + -D M4_PYDIR=$ROOT/$PYDIR doc/Makefile.m4 > doc/Makefile m4 -D M4_PREFIX=$PREFIX -D M4_BINDIR=$BINDIR \ -D M4_DATADIR=$DATADIR -D M4_DOCDIR=$DOCDIR \