-dnl Copyright (C) 2011-2013 Simon Ruderich
+dnl Copyright (C) 2011-2014 Simon Ruderich
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
AC_CONFIG_SRCDIR([src/tlsproxy.c])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
+LT_INIT([disable-static])
AC_PROG_CC
LDFLAGS="-fPIE -pie -Wl,-z,relro -Wl,-z,now $LDFLAGS"
fi
+AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([dlsym() is required])])
+
AC_CHECK_LIB([gnutls], [gnutls_certificate_verify_peers2],
[], [AC_MSG_ERROR([GnuTLS is required])])
dnl Check for additional GnuTLS functions.
AC_DEFINE([USE_IPV4_ONLY], 1, [Define to not use IPv6.])
fi])
-AC_CONFIG_FILES([Makefile man/Makefile src/Makefile tests/Makefile])
+AC_CONFIG_FILES([Makefile man/Makefile src/Makefile lib/Makefile tests/Makefile])
AC_OUTPUT