forked from sauce-archives/adb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
50 lines (42 loc) · 1.5 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.67)
AC_INIT(adb, 1.0.1, [email protected])
AC_CONFIG_SRCDIR(src/adb.h)
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE(test, 1.0)
# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AC_PROG_INSTALL
# Checks for libraries.
AC_CHECK_LIB(rt, sched_setscheduler)
AC_CHECK_LIB(pthread, pthread_create)
AC_CHECK_LIB(ncurses, delscreen)
AC_CHECK_LIB(z, inflateInit2_)
AC_CHECK_LIB(ssl, SSL_library_init)
# Checks for header files.
AC_CHECK_HEADERS(fcntl.h limits.h memory.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/socket.h sys/time.h termios.h unistd.h utime.h)
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_INT64_T
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_HEADER_STDBOOL
AC_TYPE_UINT16_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_FORK
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS(atexit dup2 getcwd gethostbyname gettimeofday localtime_r memset mkdir select socket strchr strdup strerror strpbrk strrchr strtol strtoul tzset utime)
hosttype=`uname -s`
AM_CONDITIONAL(HOST_IS_LINUX, test x"$hosttype" = xLinux)
AM_CONDITIONAL(HOST_IS_DARWIN, test x"$hosttype" = xDarwin)
AC_OUTPUT(Makefile src/Makefile libcutils/Makefile libzipfile/Makefile libmincrypt/Makefile libsparse/Makefile)