summaryrefslogtreecommitdiff
path: root/sofort/tools
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-08-21 09:31:15 +0000
committermidipix <writeonce@midipix.org>2019-08-21 09:35:31 +0000
commit7e95c5893a231597917784d2feef554165908b79 (patch)
tree6e680eb2f74521970c7ae33d0922cd0e11e14dc4 /sofort/tools
parentd6e02b8ff5da79d895197a3a1c4839e1047d6c57 (diff)
downloadperk-7e95c5893a231597917784d2feef554165908b79.tar.bz2
perk-7e95c5893a231597917784d2feef554165908b79.tar.xz
build system: pkgconf.sh: properly handle empty prefix variable.
Diffstat (limited to 'sofort/tools')
-rwxr-xr-xsofort/tools/pkgconf.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/sofort/tools/pkgconf.sh b/sofort/tools/pkgconf.sh
index 614fdec..392647a 100755
--- a/sofort/tools/pkgconf.sh
+++ b/sofort/tools/pkgconf.sh
@@ -20,6 +20,10 @@ else
prefix=$(dirname "$PKGCONF_INCLUDEDIR")
base=$(basename "$PKGCONF_INCLUDEDIR")
+ if [ "$prefix" = '/' ]; then
+ prefix=
+ fi
+
if [ "$prefix/$base" = "$PKGCONF_PREFIX/$base" ]; then
pkgconf_includedir='${prefix}/'"${base}"
pkgconf_cflags='-I${includedir}'
@@ -37,6 +41,10 @@ else
prefix=$(dirname "$PKGCONF_LIBDIR")
base=$(basename "$PKGCONF_LIBDIR")
+ if [ "$prefix" = '/' ]; then
+ prefix=
+ fi
+
if [ "$prefix/$base" = "$PKGCONF_EXEC_PREFIX/$base" ]; then
pkgconf_libdir='${exec_prefix}/'"${base}"
else