]> git.saurik.com Git - wxWidgets.git/commitdiff
Quote variables in -z tests correctly in wx-config.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Dec 2011 21:41:36 +0000 (21:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Dec 2011 21:41:36 +0000 (21:41 +0000)
The changes of r69944 broke wx-config for the traditional Unix systems (at
least Solaris and AIX, probably others too) which don't support using -z
without any value (unlike Linux/bash).

Fix this by quoting the possible empty variables in the tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wx-config.in

index 9b92bddde0b59082fff06a525b1f2b245688c929..261e024e9b82474e0ec542c2bf17a955827b9bd8 100755 (executable)
@@ -1057,11 +1057,11 @@ order_libs()
 
         # Add the libraries that we postponed adding above.
         # Order of the checks here is important.
-        [ -z $use_html ] || libs="$libs html"
-        [ -z $use_adv ] || libs="$libs adv"
-        [ -z $use_core ] || libs="$libs core"
-        [ -z $use_xml ] || libs="$libs xml"
-        [ -z $use_base ] || libs="$libs base"
+        [ -z "$use_html" ] || libs="$libs html"
+        [ -z "$use_adv" ] || libs="$libs adv"
+        [ -z "$use_core" ] || libs="$libs core"
+        [ -z "$use_xml" ] || libs="$libs xml"
+        [ -z "$use_base" ] || libs="$libs base"
     else
         # No need to order them.
         libs="$@"