Check for existence of target aclocal folder before including them.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12934 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
31b995b49c
commit
5396ed0639
|
@ -1,5 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
aclocal.real \
|
||||
-I ${STAGING_DIR}/host/share/aclocal \
|
||||
-I ${STAGING_DIR}/usr/share/aclocal \
|
||||
$@
|
||||
if [ -d ${STAGING_DIR}/host/share/aclocal ]; then
|
||||
aclocal_include_dirs="-I ${STAGING_DIR}/host/share/aclocal"
|
||||
else
|
||||
aclocal_include_dirs=
|
||||
fi
|
||||
if [ -d ${STAGING_DIR}/usr/share/aclocal ]; then
|
||||
aclocal_include_dirs="$aclocal_include_dirs -I ${STAGING_DIR}/usr/share/aclocal"
|
||||
fi
|
||||
aclocal.real $aclocal_include_dirs $@
|
||||
|
|
Loading…
Reference in New Issue