X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e57a3cb7f2d656644bc46d5bdd89a9199754c614..482253bd2396d1388748110a65a9afbf3d48f8d8:/tools/automake/files/aclocal diff --git a/tools/automake/files/aclocal b/tools/automake/files/aclocal index a586ccc61..60278e2ab 100755 --- a/tools/automake/files/aclocal +++ b/tools/automake/files/aclocal @@ -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 $@