- dnl don't search the PATH if we already have the full name
- if test "x$WX_CONFIG_PATH" = "x" ; then
- AC_PATH_PROG(WX_CONFIG_PATH, $WX_CONFIG_NAME, no)
+ dnl don't search the PATH if WX_CONFIG_NAME is absolute filename
+ if test -x "$WX_CONFIG_NAME" ; then
+ AC_MSG_CHECKING(for wx-config)
+ WX_CONFIG_PATH="$WX_CONFIG_NAME"
+ AC_MSG_RESULT($WX_CONFIG_PATH)
+ else
+ AC_PATH_PROG(WX_CONFIG_PATH, $WX_CONFIG_NAME, no, "$WX_LOOKUP_PATH:$PATH")