From: jow Date: Wed, 8 Dec 2010 01:15:38 +0000 (+0000) Subject: [include] autotools.mk: if ./autogen.sh exists, call that. Call autoreconfig only... X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=833f7d02418247e5db690f00ab2a8e8ff3543407;p=openwrt.git [include] autotools.mk: if ./autogen.sh exists, call that. Call autoreconfig only if configure.in or configure.ac exists git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24319 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/include/autotools.mk b/include/autotools.mk index a2d57d6971..3203604682 100644 --- a/include/autotools.mk +++ b/include/autotools.mk @@ -23,7 +23,14 @@ define libtool_remove_files endef define autoreconf - (cd $(PKG_BUILD_DIR); $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s $(patsubst %,-I %,$(PKG_LIBTOOL_PATHS)) $(PKG_LIBTOOL_PATHS)); + (cd $(PKG_BUILD_DIR); \ + if [ -x ./autogen.sh ]; then \ + ./autogen.sh; \ + elif [ -f ./configure.ac ] || [ -f ./configure.in ]; then \ + $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \ + $(patsubst %,-I %,$(PKG_LIBTOOL_PATHS)) $(PKG_LIBTOOL_PATHS); \ + fi \ + ); endef Hooks/InstallDev/Post += libtool_remove_files