mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 00:14:05 +02:00
[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
This commit is contained in:
parent
78e0d83714
commit
833f7d0241
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user