Changeset 14395


Ignore:
Timestamp:
02/26/13 14:13:28 (12 years ago)
Author:
Eric.Larour
Message:

CHG: added _HAVE_ANDROID_ and iOS conditionals

File:
1 edited

Legend:

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

    r14387 r14395  
    13571357        AC_MSG_RESULT($HAVE_RIFTS)
    13581358        dnl }}}
     1359        dnl with-ios{{{
     1360        AC_ARG_WITH([ios],
     1361                AS_HELP_STRING([--with-ios = YES], [compile with iOS capabilities (default is no, alternatives are yes)]),
     1362                [IOS=$withval],[IOS=no])
     1363        AC_MSG_CHECKING(for iOS compilation)
     1364
     1365        if test "x$IOS" = "xyes"; then
     1366                dnl defaults
     1367                HAVE_IOS=yes
     1368
     1369                AC_DEFINE([_HAVE_IOS_],[1],[with android capability])
     1370        elif test "x$IOS" = "xno"; then
     1371                HAVE_IOS=no
     1372        else
     1373          AC_MSG_ERROR([--with-ios should be either no or yes])
     1374        fi
     1375        AM_CONDITIONAL([IOS], [test x$HAVE_IOS != xno])
     1376        AC_DEFINE([_HAVE_IOS_],[1],[with ios.])
     1377        AC_MSG_RESULT($HAVE_IOS)
     1378        dnl }}}
    13591379        dnl with-android{{{
    13601380        AC_ARG_WITH([android],
     
    13821402        AM_CONDITIONAL([ANDROIDJNI], [test x$HAVE_ANDROID = xjni])
    13831403        AM_CONDITIONAL([ANDROIDEXE], [test x$HAVE_ANDROID = xexe])
     1404        AC_DEFINE([_HAVE_ANDROID_],[1],[with android.])
    13841405        AC_MSG_RESULT($HAVE_ANDROID)
    13851406        dnl }}}
Note: See TracChangeset for help on using the changeset viewer.