Changeset 13935


Ignore:
Timestamp:
11/09/12 18:10:23 (12 years ago)
Author:
Eric.Larour
Message:

CHG: new options for ISSM JNI and EXE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r13840 r13935  
    13181318        dnl with-android{{{
    13191319        AC_ARG_WITH([android],
    1320                 AS_HELP_STRING([--with-android = YES], [compile with android capabilities (default is no)]),
     1320                AS_HELP_STRING([--with-android = EXE], [compile with android capabilities (default is no, alternatives are exe and jni)]),
    13211321                [ANDROID=$withval],[ANDROID=no])
    13221322        AC_MSG_CHECKING(for android capability compilation)
    13231323
    1324         if test "x$ANDROID" = "xyes"; then
    1325 
    1326                 dnl defaults
    1327                 HAVE_ANDROID=yes
     1324        if test "x$ANDROID" = "xjni"; then
     1325
     1326                dnl defaults
     1327                HAVE_ANDROID=jni
    13281328
    13291329                AC_DEFINE([_HAVE_ANDROID_],[1],[with android capability])
    1330         else
     1330        elif test "x$ANDROID" = "xexe"; then
     1331                dnl defaults
     1332                HAVE_ANDROID=exe
     1333
     1334                AC_DEFINE([_HAVE_ANDROID_],[1],[with android capability])
     1335        elif test "x$ANDROID" = "xno"; then
    13311336                HAVE_ANDROID=no
    1332         fi
    1333         AM_CONDITIONAL([ANDROID], [test x$HAVE_ANDROID = xyes])
     1337        else
     1338          AC_MSG_ERROR([--with-android should be either no, exe or jni])
     1339        fi
     1340        AM_CONDITIONAL([ANDROID], [test x$HAVE_ANDROID != xno])
     1341        AM_CONDITIONAL([ANDROIDJNI], [test x$HAVE_ANDROID = xjni])
     1342        AM_CONDITIONAL([ANDROIDEXE], [test x$HAVE_ANDROID = xexe])
    13341343        AC_MSG_RESULT($HAVE_ANDROID)
    13351344        dnl }}}
Note: See TracChangeset for help on using the changeset viewer.