diff --git a/configure b/configure index 8b1ee814ec..2cfa921283 100755 --- a/configure +++ b/configure @@ -29187,10 +29187,6 @@ for i in \${libnames} ; do ${HOST_PREFIX}install_name_tool \${changes} -id \${3}/\${i} \${1}/\${i} done EOF - if test $USE_XRC = 1; then - echo "${HOST_PREFIX}install_name_tool \${changes} \${2}/wxrc-${WX_RELEASE}" >> change-install-names - fi - chmod +x change-install-names DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \${DESTDIR}\${bindir} \${libdir} \$(wx_top_builddir)/lib" fi @@ -36507,6 +36503,8 @@ $as_echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} USE_XRC=1 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" + + echo "${HOST_PREFIX}install_name_tool \${changes} \${2}/wxrc-${WX_RELEASE}" >> change-install-names fi fi diff --git a/configure.in b/configure.in index 2634551717..1f6adae4fe 100644 --- a/configure.in +++ b/configure.in @@ -3787,10 +3787,6 @@ for i in \${libnames} ; do ${HOST_PREFIX}install_name_tool \${changes} -id \${3}/\${i} \${1}/\${i} done EOF - if test $USE_XRC = 1; then - echo "${HOST_PREFIX}install_name_tool \${changes} \${2}/wxrc-${WX_RELEASE}" >> change-install-names - fi - chmod +x change-install-names DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \${DESTDIR}\${bindir} \${libdir} \$(wx_top_builddir)/lib" fi @@ -7137,6 +7133,8 @@ if test "$wxUSE_XRC" = "yes"; then AC_DEFINE(wxUSE_XRC) USE_XRC=1 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" + + echo "${HOST_PREFIX}install_name_tool \${changes} \${2}/wxrc-${WX_RELEASE}" >> change-install-names fi fi