summaryrefslogtreecommitdiff
path: root/libwardrobe/configure.in
blob: 5556532aec0afd46c7a27de64e8236ab0a1d4493 (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
33
34
# init
AC_PREREQ(2.62)
AC_INIT([libwardrobe], [0.1], [PromyLOPh@gmail.com])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_SRCDIR([src/main.c])
AM_CONFIG_HEADER([src/config.h])
AM_INIT_AUTOMAKE([-Wall])

# progs
AC_PROG_CC
AM_PROG_CC_C_O
AM_SANITY_CHECK
AM_PROG_LIBTOOL

PKG_PROG_PKG_CONFIG

# libs
PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.18.0)
AC_SUBST(LIBCURL_CFLAGS)
AC_SUBST(LIBCURL_LIBS)

# headers
AC_CHECK_HEADERS([stdlib.h string.h])

# compiler characteristics
AC_TYPE_SIZE_T

# libc functions
AC_CHECK_FUNCS([memset strchr strdup])

# output
AC_CONFIG_FILES(Makefile src/Makefile)

AC_OUTPUT