X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2baaf735f4e71ebb35b9938ca8bca917bc51a80b..9c64071583c62026eb8f25638aec9f3843209d4d:/wx-config.in diff --git a/wx-config.in b/wx-config.in index af75d05c1c..74ba23e94d 100755 --- a/wx-config.in +++ b/wx-config.in @@ -4,15 +4,38 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix_set=no CC="@CC@" +GCC="@GCC@" CXX="@CXX@" LD="@SHARED_LD@" +srcdir=@top_srcdir@ +builddir=@top_builddir_wxconfig@ cross_compiling=@cross_compiling@ +target=@host_alias@ +static_flag=@STATIC_FLAG@ + +# return the absolute path prepending builddir to it if needed +makeabs() +{ + path=$1 + # TODO: this only works under Unix and even there it could be + # enhanced to remove ".." and "." + if [ `echo $path | sed 's/^\(.\).*/\1/'` != "/" ]; then + if [ $path = "." ]; then + path=$builddir + else + path="$builddir/$path" + fi + fi + + echo $path +} usage() { cat <