projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5c75bf5
)
[include] autotools.mk: if ./autogen.sh exists, call that. Call autoreconfig only...
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 8 Dec 2010 01:15:38 +0000
(
01:15
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 8 Dec 2010 01:15:38 +0000
(
01:15
+0000)
SVN-Revision: 24319
include/autotools.mk
patch
|
blob
|
history
diff --git
a/include/autotools.mk
b/include/autotools.mk
index a2d57d6971bcb7ab5b184a49def37cfea66158ce..32036046824620d5d7fd6ca25b10115c1ad66d54 100644
(file)
--- a/
include/autotools.mk
+++ b/
include/autotools.mk
@@
-23,7
+23,14
@@
define libtool_remove_files
endef
define autoreconf
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
endef
Hooks/InstallDev/Post += libtool_remove_files