package-version-override always calls autoreconf
authorJohn Crispin <john@openwrt.org>
Tue, 24 Jul 2012 23:07:30 +0000 (23:07 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 24 Jul 2012 23:07:30 +0000 (23:07 +0000)
make it conditional on the existance of autoreconf

Signed-off-by: Ryan Nowakowski <tubaman@fattuba.com>
SVN-Revision: 32831

include/package-version-override.mk

index eaaa3520f83d7b603443f566997845f0880165f6..f69d9b1776b46f1a1402136712f6a4fc35aa6ebe 100644 (file)
@@ -62,7 +62,7 @@ define prepare_custom_source_directory
                rm -Rf $(PKG_BUILD_DIR); \
                echo "Preparing Custom Source Directory link: $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR)"; \
                ln -snf $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR) $(PKG_BUILD_DIR); \
-               ( cd $(PKG_BUILD_DIR); autoreconf -i; ) \
+               [ -x "$(PKG_BUILD_DIR)/autoreconf" ] && (cd $(PKG_BUILD_DIR); autoreconf -i;) \
        else \
                echo "Custom Source Directory $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR) is invalid"; \
                false; \