maint: remove unused #include directives spotted by "make syntax-check"
[iwhd.git] / configure.ac
blob2e1e5a1e7f6ce21b4c072bcb06dc220def319140
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 # Copyright (C) 1991, 1993-2010 Red Hat, Inc.
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 AC_PREREQ([2.65])
20 AC_INIT([iwhd],
21         m4_esyscmd([build-aux/git-version-gen .tarball-version]),
22         [iwhd-devel@fedorahosted.org])
23 AC_CONFIG_AUX_DIR([build-aux])
25 AC_CONFIG_HEADERS([config.h:config.hin])
26 AM_INIT_AUTOMAKE([1.11.1 color-tests parallel-tests])
27 AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
29 # Checks for programs.
30 AC_PROG_CXX
31 AC_PROG_CC
32 AM_PROG_CC_C_O
33 gl_EARLY
34 AC_PROG_RANLIB
35 AC_TYPE_UINT64_T
37 gl_INIT
39 AC_PROG_YACC
40 AC_PROG_LEX
41 AM_MISSING_PROG([HELP2MAN], [help2man])
43 AC_CHECK_LIB([curl], [curl_easy_init],
44         [CURL_LIB=-lcurl],
45         [AC_MSG_ERROR([Missing required CURL lib])])
46 AC_SUBST([CURL_LIB])
48 AC_CHECK_LIB([jansson], [json_object_get],
49         [JANSSON_LIB=-ljansson],
50         [AC_MSG_ERROR([Missing required Jansson lib])])
51 AC_SUBST([JANSSON_LIB])
53 AC_CHECK_LIB([microhttpd], [MHD_start_daemon],
54         [UHTTPD_LIB=-lmicrohttpd],
55         [AC_MSG_ERROR([Missing required microhttpd lib])])
56 AC_SUBST([UHTTPD_LIB])
58 AC_CHECK_LIB([pthread], [pthread_create],
59         [PTHREAD_LIB=-lpthread],
60         [AC_MSG_ERROR([Missing required pthread lib])])
61 AC_SUBST([PTHREAD_LIB])
63 AC_CHECK_LIB([glib-2.0], [g_hash_table_new_full],
64         [GLIB2_LIB=-lglib-2.0],
65         [AC_MSG_ERROR([Missing required glib2 lib])])
66 AC_SUBST([GLIB2_LIB])
68 PKG_CHECK_MODULES([HAIL],[libhail >= 0.8])
69 AC_SUBST([HAIL_LIBS])
70 AC_SUBST([HAIL_CFLAGS])
72 AC_CHECK_LIB([xml2], [xmlInitParser],
73         [XML2_LIB=-lxml2],
74         [AC_MSG_ERROR([Missing required XML2 lib])])
75 AC_SUBST([XML2_LIB])
77 # from http://www.gnu.org/software/autoconf-archive/
78 AX_BOOST_BASE
79 AX_BOOST_SYSTEM
80 AX_BOOST_THREAD
82 AC_CONFIG_FILES([
83 Makefile
84 gnulib-tests/Makefile
85 lib/Makefile
86 man/Makefile
87 t/Makefile
89 AC_OUTPUT