2 ## This file is part of the sigrok-androidutils project.
4 ## Copyright (C) 2014 Marcus Comstedt <marcus@mc.pp.se>
6 ## This program is free software: you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, either version 3 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
20 AC_INIT([sigrok-androidutils], [0.1.0])
22 AC_CONFIG_SRCDIR([src/org/sigrok/androidutils/UsbHelper.java])
24 AM_INIT_AUTOMAKE([1.11 -Wall -Werror subdir-objects])
25 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
27 AC_ARG_WITH([android-sdk],
28 [AS_HELP_STRING([--with-android-sdk],
29 [specify path to android SDK @<:@default=/usr/local/android@:>@])],
30 [ANDROID_SDK="$withval"],
31 [ANDROID_SDK=/usr/local/android])
33 AC_ARG_WITH([android-platform],
34 [AS_HELP_STRING([--with-android-platform],
35 [select android platform to build for @<:@default=android-14@:>@])],
36 [ANDROID_PLATFORM="$withval"],
37 [ANDROID_PLATFORM=android-14])
43 AC_SUBST([ANDROID_SDK])
44 AC_SUBST([ANDROID_PLATFORM])
46 AC_OUTPUT([Makefile lib/libsigrokandroidutils.pc])