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/>.
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.
41 AM_MISSING_PROG([HELP2MAN], [help2man])
43 AC_CHECK_LIB([curl], [curl_easy_init],
45 [AC_MSG_ERROR([Missing required 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])])
68 PKG_CHECK_MODULES([HAIL],[libhail >= 0.8])
70 AC_SUBST([HAIL_CFLAGS])
72 AC_CHECK_LIB([xml2], [xmlInitParser],
74 [AC_MSG_ERROR([Missing required XML2 lib])])
77 # from http://www.gnu.org/software/autoconf-archive/