autotoolized adb (from Android 4.3 tree)
[adb-autotools.git] / configure.ac
1 AC_PREREQ(2.53)
2 AC_INIT(adb, 2.3.7, http://source.android.com/)
3 AM_INIT_AUTOMAKE()
4 AM_CONFIG_HEADER(config.h)
5 AM_MAINTAINER_MODE
6
7 AC_GNU_SOURCE
8 AC_ISC_POSIX
9 AC_PROG_CC
10 AC_STDC_HEADERS
11 AC_PROG_LIBTOOL
12 AC_LIBTOOL_DLOPEN
13
14 OPENSSL_REQUIRED=1.0.0e
15
16 PKG_CHECK_MODULES(OPENSSL, openssl >= $OPENSSL_REQUIRED)
17 AC_SUBST(OPENSSL_CFLAGS)
18 AC_SUBST(OPENSSL_LIBS)
19
20 dnl Check for zlib.
21 AC_CHECK_HEADER(
22     zlib.h,
23     AC_CHECK_LIB(
24         z,
25         inflateEnd,
26         LIBS="-lz $LIBS",
27         AC_MSG_ERROR(Required library zlib missing.)),
28     AC_MSG_ERROR(Header file for required library zlib missing.))
29
30 # output stuff
31 AC_CONFIG_FILES([
32 Makefile
33 libzipfile/Makefile
34 libcutils/Makefile
35 adb/Makefile
36 ])
37
38 AC_OUTPUT