]> git.saurik.com Git - wxWidgets.git/blobdiff - wx-config-inplace.in
Upgrade bundled zlib to 1.2.8.
[wxWidgets.git] / wx-config-inplace.in
index 28969c3eb55ed2469c30226466d000d6155140a3..4a948d37ad76977ac162b08e7d8fe742e87a2949 100644 (file)
@@ -3,9 +3,8 @@
 # Name:        wx-config-inplace
 # Purpose:     wx configuration in tree search and query tool
 # Author:      Ron <ron@debian.org>
-# Modified by:
+# Modified by: VZ on 2005-09-20 to make it work with Bourne shell
 # Created:     14/9/2004
-# RCS-ID:      $Id$
 # Copyright:   (c) 2004 Ron <ron@debian.org>
 # Licence:     wxWindows licence
 ############################################################################
@@ -24,8 +23,16 @@ check_dirname()
     ( cd $1 && pwd )
 }
 
-this_prefix=$(check_dirname "@abs_top_srcdir@")         || exit
-this_exec_prefix=$(check_dirname "@abs_top_builddir@")  || exit
+# set the variables which allow the real wx-config to check if we're using it
+# in place or after installation
+this_prefix=`check_dirname "@abs_top_srcdir@"`
+if [ "x$this_prefix" = "x" ]; then
+    exit 1
+fi
+this_exec_prefix=`check_dirname "@abs_top_builddir@"`
+if [ "x$this_exec_prefix" = "x" ]; then
+    exit 1
+fi
 
 . "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"