+
+ dnl This test is required to make the following idempotent.
+ dnl Otherwise running config.status or rerunning configure
+ dnl would stomp the wx-config link or try to move it onto
+ dnl itself.
+ dnl Use -h instead of -L to test for link (GD)
+ dnl -h is documented as obsolete under Mac OS X but works
+ dnl -L is obsolete under Solaris8
+ if test ! -h wx-config; then
+ chmod +x wx-config
+ mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
+ ${LN_S} wx-config-${WX_RELEASE} wx-config
+ fi
+ ( cd lib/wx/config ;
+ rm -f ${TOOLCHAIN_NAME}
+ ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
+
+ if test -f wx-config-wrapper; then
+ chmod +x wx-config-wrapper
+ mv -f wx-config-wrapper wx-config-${WX_RELEASE}
+ rm -f wx${TOOLCHAIN_NAME}-config
+ ${LN_S} wx-config-${WX_RELEASE} wx${TOOLCHAIN_NAME}-config
+ fi