diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-08-20 11:38:34 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-08-20 11:38:34 +0000 |
commit | eeaafe0ab54a2de6b08221d9a446eee67008fd0b (patch) | |
tree | 91391483b901e8ebcff242d57f0ba1bcfdd734e1 | |
parent | 7643226b3089604c446313cc90cb70f8deea6a20 (diff) | |
download | s6-linux-utils-eeaafe0ab54a2de6b08221d9a446eee67008fd0b.tar.gz s6-linux-utils-eeaafe0ab54a2de6b08221d9a446eee67008fd0b.tar.xz s6-linux-utils-eeaafe0ab54a2de6b08221d9a446eee67008fd0b.zip |
Support conditional slashpackage builds
-rwxr-xr-x | configure | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/configure b/configure index 68d89d2..c147abb 100755 --- a/configure +++ b/configure @@ -250,12 +250,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 |