X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2baaf735f4e71ebb35b9938ca8bca917bc51a80b..abfcca57dd0d805ceec9e19c4be207614d79252a:/wx-config.in diff --git a/wx-config.in b/wx-config.in index af75d05c1c..c52a0b11a4 100755 --- a/wx-config.in +++ b/wx-config.in @@ -7,6 +7,7 @@ CC="@CC@" CXX="@CXX@" LD="@SHARED_LD@" cross_compiling=@cross_compiling@ +target=@host_alias@ usage() { @@ -27,9 +28,10 @@ EOF cppflags() { - if test "${cross_compiling}" != "yes" \ - -a @includedir@ != /usr/include \ - -a @includedir@ != /usr/include/c++ ; + if test "@includedir@" != "/usr/include" \ + -a "@includedir@" != "/usr/include/c++" \ + -a \( "${cross_compiling}" != "yes" \ + -o "@includedir@" != "/usr/${target}/include" \) ; then includes=-I@includedir@ fi @@ -80,8 +82,9 @@ while test $# -gt 0; do echo @LIBWXMACRESWXCONFIG@ ;; --libs) - if test "${cross_compiling}" != "yes" \ - -a @libdir@ != /usr/lib ; + if test "@libdir@" != "/usr/lib" \ + -a \( "${cross_compiling}" != "yes" \ + -o "@libdir@" != "/usr/${target}/lib" \) ; then libs="-L@libdir@" fi