summaryrefslogtreecommitdiff
path: root/configure.ac
blob: a08c656f21ea3dd682fc22d71a0de558711e6f6a (plain)
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
AC_INIT([icclient], [0.0], [pt@darapsa.co.id])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
AM_PROG_AR
LT_INIT
PKG_CHECK_MODULES([TIDY], [tidy])
AC_CHECK_HEADERS([stddef.h, locale.h])
AC_CHECK_HEADERS([threads.h],
		 [AC_DEFINE([HAVE_THREADS_H])])
AC_CHECK_HEADERS([langinfo.h],
		 [AC_DEFINE([HAVE_LANGINFO_H])])
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_CHECK_FUNCS([memset strchr strrchr strstr])
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CANONICAL_HOST
case $host_cpu in
	*wasm* ) wasm=true;;
	*) wasm=false;;
esac
AM_CONDITIONAL([WASM], [test x$wasm = xtrue])
case $host in
	*arm*apple-darwin1* ) ios=true;;
	*) ios=false;;
esac
AM_CONDITIONAL([IOS], [test x$ios = xtrue])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT