summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-10-18 15:54:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-10-18 15:54:23 +0000
commit42da32a77b61fb2f601767fb19c461c4bd75462b (patch)
tree586b743cf5bd68fd523111c6db3c12db6bd80cde /configure
parent6f66618a9530bc7ac741217913b682d553b920a5 (diff)
downloadexecline-42da32a77b61fb2f601767fb19c461c4bd75462b.tar.xz
Fix shebangdir with --enable-slashpackage
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 780384a..2f16b95 100755
--- a/configure
+++ b/configure
@@ -134,6 +134,7 @@ bindir='$exec_prefix/bin'
libdir='$prefix/lib/$package'
includedir='$prefix/include'
shebangdir='$bindir'
+shebangisdefault=true
sysdeps='$prefix/lib/skalibs/sysdeps'
manualsysdeps=false
shared=false
@@ -162,7 +163,7 @@ for arg ; do
--bindir=*) bindir=${arg#*=} ;;
--libdir=*) libdir=${arg#*=} ;;
--includedir=*) includedir=${arg#*=} ;;
- --shebangdir=*) shebangdir=${arg#*=} ;;
+ --shebangdir=*) shebangisdefault=false ; shebangdir=${arg#*=} ;;
--with-sysdeps=*) sysdeps=${arg#*=} manualsysdeps=true ;;
--with-include=*) var=${arg#*=} ; stripdir var ; addincpath="$addincpath -I$var" ;;
--with-lib=*) var=${arg#*=} ; stripdir var ; addlibspath="$addlibspath -L$var" ; vpaths="$vpaths $var" ;;
@@ -239,6 +240,9 @@ if $slashpackage ; then
libdir=${home}/library
libexecdir=$bindir
includedir=${home}/include
+ if $shebangisdefault ; then
+ shebangdir=${extbinprefix}
+ fi
while read dep ; do
addincpath="$addincpath -I${sproot}${dep}/include"
vpaths="$vpaths ${sproot}${dep}/library"