-this_prefix=$(check_dirname "@abs_top_srcdir@") || exit
-this_exec_prefix=$(check_dirname "@abs_top_builddir@") || exit
-flag_option_inplace=yes
+# 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