-if [ -z "$this_prefix" ]; then
- printf "\n *** Error: Directory '@abs_top_builddir@'\n" 1>&2
- printf " no longer exists.\n\n" 1>&2
+# 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