Index: /issm/trunk-jpl/configs/config-arm-linux.sh
===================================================================
--- /issm/trunk-jpl/configs/config-arm-linux.sh	(revision 13708)
+++ /issm/trunk-jpl/configs/config-arm-linux.sh	(revision 13709)
@@ -6,4 +6,5 @@
     --host="arm-linux-androideabi" \
     --enable-shared \
+    --with-android\
     --without-fortran \
 	--without-wrappers \
Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 13708)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 13709)
@@ -1402,4 +1402,22 @@
 	AC_MSG_RESULT($HAVE_RIFTS)
 	dnl }}}
+	dnl with-android{{{
+	AC_ARG_WITH([android],
+		AS_HELP_STRING([--with-android = YES], [compile with android capabilities (default is no)]),
+		[ANDROID=$withval],[ANDROID=no]) 
+	AC_MSG_CHECKING(for android capability compilation)
+
+	if test "x$ANDROID" = "xyes"; then
+
+		dnl defaults
+		HAVE_ANDROID=yes
+
+		AC_DEFINE([_HAVE_ANDROID_],[1],[with android capability])
+	else
+		HAVE_ANDROID=no
+	fi
+	AM_CONDITIONAL([ANDROID], [test x$HAVE_ANDROID = xyes])
+	AC_MSG_RESULT($HAVE_ANDROID)
+	dnl }}}
 	dnl with-3d{{{
 	AC_ARG_WITH([3d],
Index: /issm/trunk-jpl/src/c/Makefile.am
===================================================================
--- /issm/trunk-jpl/src/c/Makefile.am	(revision 13708)
+++ /issm/trunk-jpl/src/c/Makefile.am	(revision 13709)
@@ -546,4 +546,8 @@
 				    ./modules/ConstraintsStatex/RiftConstraintsState.cpp
 #}}}
+#Android sources  {{{
+android_sources = ./android/fac.h\
+				  ./android/fac.cpp
+#}}}
 #3D sources  {{{
 threed_sources = ./classes/gauss/GaussPenta.h\
@@ -941,4 +945,8 @@
 endif
 
+if ANDROID
+issm_sources +=  $(android_sources)
+endif
+
 if THREED
 issm_sources +=  $(threed_sources)
Index: /issm/trunk-jpl/src/c/android/fac.cpp
===================================================================
--- /issm/trunk-jpl/src/c/android/fac.cpp	(revision 13709)
+++ /issm/trunk-jpl/src/c/android/fac.cpp	(revision 13709)
@@ -0,0 +1,26 @@
+/*!\file fac.cpp
+ * \brief: implementation of the fac class
+ */
+
+/*Headers{{{*/
+#ifdef HAVE_CONFIG_H
+	#include <config.h>
+#else
+#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
+#endif
+
+#include "./fac.h"
+
+/*}}}*/
+
+long fac::factorial(long n) {
+	long f = 1;
+	long i;
+	
+	for(i = 1; i <= n; i++){
+		f *= i;
+	}
+	
+	return f;
+}
+
Index: /issm/trunk-jpl/src/c/android/fac.h
===================================================================
--- /issm/trunk-jpl/src/c/android/fac.h	(revision 13709)
+++ /issm/trunk-jpl/src/c/android/fac.h	(revision 13709)
@@ -0,0 +1,14 @@
+/*
+ * fac.h:  prototype fac class with a simple factorial routine
+ */
+
+#ifndef _FAC_H_
+#define _FAC_H_
+
+class fac {
+
+	public:
+		long factorial(long n);
+};
+
+#endif
