1 dnl Copyright (C) 2013 Simon Ruderich
3 dnl This program is free software: you can redistribute it and/or modify
4 dnl it under the terms of the GNU General Public License as published by
5 dnl the Free Software Foundation, either version 3 of the License, or
6 dnl (at your option) any later version.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 dnl GNU General Public License for more details.
13 dnl You should have received a copy of the GNU General Public License
14 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
18 AC_INIT([socket2unix],[0.1],[simon@ruderich.org])
20 AC_CONFIG_AUX_DIR([build-aux])
21 AC_CONFIG_MACRO_DIR([m4])
22 AC_CONFIG_HEADERS([config.h])
23 AC_CONFIG_SRCDIR([src/socket2unix.c])
26 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
28 LT_INIT([disable-static])
32 if test "x$GCC" = xyes; then
33 CFLAGS="-Wall -Wextra -Wconversion $CFLAGS"
38 AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([dlsym() is required])])
40 AC_ARG_ENABLE([debug],
41 [AS_HELP_STRING([--enable-debug],[enable debug output])],
42 [if test "x$enableval" = xyes; then
43 AC_DEFINE([DEBUG], 1, [Define to 1 enable debug output.])
46 AC_CONFIG_FILES([Makefile src/Makefile])