From: Vadim Zeitlin Date: Tue, 20 Sep 2005 23:01:01 +0000 (+0000) Subject: better (i.e. actually working) fix for the problem on systems where /bin/sh is a... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ea4806251e2d46d9926d7f1d695b6303f303b7b7 better (i.e. actually working) fix for the problem on systems where /bin/sh is a Bourne shell git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wx-config-inplace.in b/wx-config-inplace.in index 06b0742631..1ffb80da62 100644 --- a/wx-config-inplace.in +++ b/wx-config-inplace.in @@ -3,7 +3,7 @@ # Name: wx-config-inplace # Purpose: wx configuration in tree search and query tool # Author: Ron -# Modified by: VZ on 2005-09-21 to actually work with Bourne shell +# Modified by: # Created: 14/9/2004 # RCS-ID: $Id$ # Copyright: (c) 2004 Ron @@ -21,10 +21,13 @@ check_dirname() printf " no longer exists.\n\n" 1>&2 exit 1 fi + ( cd $1 && pwd ) } -check_dirname "@abs_top_srcdir@" -check_dirname "@abs_top_builddir@" +# 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@"` +this_exec_prefix=`check_dirname "@abs_top_builddir@"` -. "@abs_top_builddir@/lib/wx/config/@TOOLCHAIN_FULLNAME@" +. "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"