-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
31 lines (27 loc) · 847 Bytes
/
configure.ac
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
# Fire up the whole enchilada
AC_INIT([libsmth], [0.0.3])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
LT_INIT
# Check headers and libs
AC_STDC_HEADERS
AC_CHECK_HEADER(expat.h, [],
[AC_MSG_ERROR(missing required header <expat.h>)])
AC_CHECK_LIB(expat, [XML_ParserCreate], [],
[AC_MSG_ERROR(missing required library <libexpat>)])
AC_CHECK_HEADER(curl/curl.h, [],
[AC_MSG_ERROR(missing required header <curl.h>)])
AC_CHECK_LIB(curl, [curl_easy_init], [],
[AC_MSG_ERROR(missing required library <libcurl>)])
# Check compiler environment
AC_PROG_CC
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LIBTOOL
#PKG_PROG_PKG_CONFIG
# Generate makefiles
AC_CONFIG_MACRO_DIR([m4])
#AC_CONFIG_SRCDIR([src/foo.c])
#AC_CONFIG_HEADERS([expat.h])
AC_CONFIG_FILES([Makefile src/Makefile src/tools/Makefile src/gstreamer/Makefile])
AC_OUTPUT
# vim: set ts=4 sw=4 tw=0: