diff --git a/Makefile.in b/Makefile.in index ee611fc..7a92eaf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,11 +1,12 @@ VPATH=%VPATH% -UNAME=$(shell uname) - -ifeq ($(UNAME),Darwin) +ifeq ($(CFG_OSTYPE),apple-darwin) OSTYPE=darwin endif -ifeq ($(UNAME),Linux) +ifeq ($(CFG_OSTYPE),unknown-linux-gnu) + OSTYPE=linux +endif +ifeq ($(CFG_OSTYPE),linux-androideabi) OSTYPE=linux endif diff --git a/configure b/configure index ed6c06e..0183abc 100644 --- a/configure +++ b/configure @@ -1,5 +1,4 @@ #!/bin/bash SRCDIR="$(cd $(dirname $0) && pwd)" -sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile - +sed -e "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile