9103d280f9
to the default system location under /usr. This way the commands: wx-config --prefix=/usr/$(host) and wx-config --prefix=/usr --host=$(host) are much more congruent in their action. Another nail in the coffin for inplace hacks. Link $srcdir/include to the build dir so that --prefix=$build_dir really does point to a realistic looking installed development environment. I don't know why I didn't do this instead of (ab)using --exec-prefix to 'fix' this simple omission for so long. Probably because it is much more obvious if contrib is out of the picture. That makes it a little more work right now, but long term this is a very clean and correct thing to do. It completely absolves us of the two independent variables problem, and of the tree becoming bogus without actually being stale. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
27 lines
814 B
Bash
27 lines
814 B
Bash
#!/bin/sh
|
|
#
|
|
# Name: wx-config-inplace
|
|
# Purpose: wx configuration in tree search and query tool
|
|
# Author: Ron <ron@debian.org>
|
|
# Modified by:
|
|
# Created: 14/9/2004
|
|
# RCS-ID: $Id$
|
|
# Copyright: (c) 2004 Ron <ron@debian.org>
|
|
# Licence: wxWindows licence
|
|
############################################################################
|
|
|
|
# Not much to do here. Just initialise prefix to point things into the
|
|
# local tree by default and then source the real wx-config if it all still
|
|
# looks sane.
|
|
|
|
this_prefix=$( cd "@abs_top_builddir@" 2> /dev/null && pwd )
|
|
|
|
if [ -z "$this_prefix" ]; then
|
|
printf "\n *** Error: Directory '@abs_top_builddir@'\n" 1>&2
|
|
printf " no longer exists.\n\n" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
. "$this_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"
|
|
|