X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tools%2Fconfigure.ac;h=992d2a659825f28a76f0c2000b58d0fe5640be34;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=debc3de254939f5e19b5e649c12c7095cef8ac67;hpb=1ba974b83d19fc41bf80acd52726f36f7f1df297;p=tinyos-2.x.git diff --git a/tools/configure.ac b/tools/configure.ac index debc3de2..992d2a65 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -12,7 +12,7 @@ dnl -*- m4 -*- # force autoconf 2.5 on Debian systems AC_PREREQ(2.50) -AC_INIT(tinyos-tools, 1.2.1) +AC_INIT(tinyos-tools, 1.2.4) AC_CONFIG_AUX_DIR(config-aux) AM_INIT_AUTOMAKE AC_CANONICAL_HOST @@ -73,17 +73,28 @@ case $host in AC_MSG_RESULT(yes) JNIPREFIX= JNISUFFIX=dll + JNIVERSIONS=. INSTALLJNI="install --group=SYSTEM" CYGWIN=yes ;; + *-apple-darwin*) + JNIPREFIX=lib + JNISUFFIX=jnilib + JNIVERSIONS=. + INSTALLJNI="install" + AC_MSG_RESULT(no) + DARWIN=yes + ;; *) JNIPREFIX=lib JNISUFFIX=so + JNIVERSIONS="-32. -64." INSTALLJNI="install" AC_MSG_RESULT(no) esac AM_CONDITIONAL([CYGWIN], [test "$CYGWIN"]) +AM_CONDITIONAL([DARWIN], [test "$DARWIN"]) AC_MSG_CHECKING(for JDK location) JAVAC_DIR=`/bin/sh tinyos/misc/tos-locate-jre --javac` @@ -93,8 +104,14 @@ fi JDK=`dirname "$JAVAC_DIR"` AC_MSG_RESULT($JDK) -GETENVLIB=${JNIPREFIX}getenv.$JNISUFFIX -TOSCOMMLIB=${JNIPREFIX}toscomm.$JNISUFFIX +function jnimap { + for v in $JNIVERSIONS; do + /bin/echo -n "${JNIPREFIX}$1$v$JNISUFFIX " + done +} + +GETENVLIB=`jnimap getenv` +TOSCOMMLIB=`jnimap toscomm` AC_SUBST(GETENVLIB) AC_SUBST(TOSCOMMLIB) @@ -122,9 +139,11 @@ AC_OUTPUT( tinyos/misc/tos-ident-flags tinyos/misc/tos-install-jni tinyos/misc/tos-set-symbols + tinyos/misc/tos-write-buildinfo tinyos/misc/tos-write-image tinyos/misc/tos-storage-at45db tinyos/misc/tos-storage-stm25p + tinyos/misc/tos-storage-pxa27xp30 tinyos/misc/Makefile tinyos/ncc/Makefile tinyos/ncc/mig @@ -132,4 +151,6 @@ AC_OUTPUT( tinyos/ncc/ncg tinyos/ncc/nesdoc tinyos/ncc/nesdoc-py/Makefile + tinyos/tosthreads/Makefile + tinyos/safe/Makefile )