# 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
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`
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)
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
tinyos/ncc/ncg
tinyos/ncc/nesdoc
tinyos/ncc/nesdoc-py/Makefile
+ tinyos/tosthreads/Makefile
+ tinyos/safe/Makefile
)