summaryrefslogtreecommitdiffhomepage
path: root/pkg.build
diff options
context:
space:
mode:
Diffstat (limited to 'pkg.build')
-rw-r--r--pkg.build17
1 files changed, 11 insertions, 6 deletions
diff --git a/pkg.build b/pkg.build
index c95e8203..03309d87 100644
--- a/pkg.build
+++ b/pkg.build
@@ -64,12 +64,17 @@ if [ -e ${PKG_SUBDIR}/configure -o \
if [ -e ${PKG_SUBDIR}/configure.ac -a \
! -e ${PKG_SUBDIR}/configure ]; then
if [ -x ${PKG_SUBDIR}/autogen.sh ]; then
- if [ ! -e ${PKG_SUBDIR}/build-aux/config.sub ]; then
- echo install -m 0700 ${MIDIPIX_BUILD_PWD}/config.sub \
- ${PKG_SUBDIR}/build-aux/config.sub;
- install -m 0700 ${MIDIPIX_BUILD_PWD}/config.sub \
- ${PKG_SUBDIR}/build-aux/config.sub;
- fi;
+ for __ in ${PKG_SUBDIR}/build-aux ${PKG_SUBDIR}; do
+ if [ -e ${__} ]; then
+ echo install -m 0700 \
+ ${MIDIPIX_BUILD_PWD}/config.sub \
+ ${__}/config.sub;
+ install -m 0700 \
+ ${MIDIPIX_BUILD_PWD}/config.sub \
+ ${__}/config.sub;
+ break;
+ fi;
+ done;
(cd ${PKG_SUBDIR} && ./autogen.sh) || exit 1;
else
(cd ${PKG_SUBDIR} && autoconf) || exit 1;