Re #1657: allow --simulator argument to appear at any position in configure-bb10 arguments

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4508 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2013-04-26 11:44:26 +00:00
parent 952741e4c5
commit 5a2bb8505b
1 changed files with 13 additions and 3 deletions

View File

@ -15,8 +15,18 @@ if test "$*" = "--help" -o "$*" = "-h"; then
exit 0
fi
if test "$1" = "--simulator"; then
shift
# Find simulator argument
args=""
simulator="no"
for arg in "$@"; do
if test "$arg" = "--simulator"; then
simulator="yes"
else
args="$args $arg"
fi
done
if test "$simulator" = "yes"; then
TARGET_ARCH="x86"
TARGET_ARCHEND=${TARGET_ARCH}
LIBDIR=${TARGET_ARCH}
@ -41,7 +51,7 @@ fi
export CFLAGS="$CFLAGS -fPIC -DPJ_CONFIG_BB10=1 -DPJMEDIA_AUDIO_DEV_HAS_BB10=1"
# Invoke configure
./configure --host=${TARGET_HOST} --disable-oss $*
./configure --host=${TARGET_HOST} --disable-oss $args
RETVAL=$?
# Write to pjsip.pri only if configure was successful