From 8ff365db634e1e848439ad4567b7824972abbd33 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 19 Jan 2012 20:43:31 -0500 Subject: Fix BINDIR in configure. --- (limited to 'configure') diff --git a/configure b/configure index 0eefd30..655fd82 100755 --- a/configure +++ b/configure @@ -44,8 +44,8 @@ Configuration: Installation directories: --prefix=PREFIX install files under PREFIX default: /usr/local - --sbindir=SBINDIR install scripts in SBINDIR - default: PREFIX/sbin + --bindir=BINDIR install scripts in BINDIR + default: PREFIX/bin EOF } @@ -91,9 +91,9 @@ while true; do PREFIX="${2}" shift 2 ;; - --sbindir) + --bindir) # Leave PREFIX unexpanded for now, in case it isn't set yet. - SBINDIR="\${PREFIX}/${2}" + BINDIR="\${PREFIX}/${2}" shift 2 ;; --) @@ -117,11 +117,11 @@ fi if [ -z "${PREFIX}" ]; then PREFIX=/usr/local fi -if [ -z "${SBINDIR}" ]; then - SBINDIR=${PREFIX}/sbin +if [ -z "${BINDIR}" ]; then + BINDIR=${PREFIX}/sbin fi # Expand PREFIX if it's there. -eval "SBINDIR=${SBINDIR}" +eval "BINDIR=${BINDIR}" find_dependency() { @@ -161,7 +161,7 @@ s&@shell@&${SHELL}& s&@install@&${INSTALL} -c& s&@srcdir@&${SRCDIR}& s&@prefix@&${PREFIX}& -s&@sbindir@&${SBINDIR}&" +s&@bindir@&${BINDIR}&" # Replace configuration variables in Makefile.in sed "$sed_script" ${SRCDIR}/Makefile.in > Makefile -- cgit v0.9.1