From 2c3f58f0959604af0eca3b4d9d623a738a0e70e6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 20 Aug 2018 11:39:05 +0000 Subject: Support conditional slashpackage builds --- configure | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'configure') diff --git a/configure b/configure index de87b55..9686932 100755 --- a/configure +++ b/configure @@ -246,12 +246,19 @@ if $slashpackage ; then libdir=${home}/library libexecdir=$bindir includedir=${home}/include - while read dep ; do - addincpath="$addincpath -I${sproot}${dep}/include" - vpaths="$vpaths ${sproot}${dep}/library" - addlibspath="$addlibspath -L${sproot}${dep}/library" - vpathd="$vpathd ${sproot}${dep}/library.so" - addlibdpath="$addlibdpath -L${sproot}${dep}/library.so" + while read dep condvar ; do + if test -n "$condvar" ; then + eval "cond=$condvar" + else + cond=true + fi + if $cond ; then + addincpath="$addincpath -I${sproot}${dep}/include" + vpaths="$vpaths ${sproot}${dep}/library" + addlibspath="$addlibspath -L${sproot}${dep}/library" + vpathd="$vpathd ${sproot}${dep}/library.so" + addlibdpath="$addlibdpath -L${sproot}${dep}/library.so" + fi done < package/deps-build fi -- cgit 1.4.1