diff options
Diffstat (limited to 'pkg.build')
-rw-r--r-- | pkg.build | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -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; |