[libxslt] xslt-config.in: Simplify basic library handling



commit b0c4b62ed386f4962988fb0bef79153213ba5174
Author: Hugh McMaster <hugh mcmaster outlook com>
Date:   Mon Jul 29 21:34:03 2019 +1000

    xslt-config.in: Simplify basic library handling

 xslt-config.in | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/xslt-config.in b/xslt-config.in
index 38342863..e40ea299 100644
--- a/xslt-config.in
+++ b/xslt-config.in
@@ -29,8 +29,6 @@ if test $# -eq 0; then
     usage 1
 fi
 
-libs=false
-
 while test $# -gt 0; do
     case "$1" in
     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
@@ -81,7 +79,8 @@ while test $# -gt 0; do
                ;;
 
     --libs)
-               libs=true
+        libs="@XSLT_LIBDIR@ @XSLT_LIBS@ @EXTRA_LIBS@"
+        all_flags="$all_flags $libs"
                ;;
 
     *)
@@ -92,12 +91,6 @@ while test $# -gt 0; do
     shift
 done
 
-the_libs="@XSLT_LIBDIR@ @XSLT_LIBS@ @EXTRA_LIBS@"
-
-if $libs; then
-    all_flags="$all_flags $the_libs"
-fi
-
 if test -z "$all_flags" || test "x$all_flags" = "x "; then
     exit 1
 fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]