# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) AC_INIT(libkpass, 6, [libkpass@bldewolf.com]) AC_CONFIG_SRCDIR([src/kpass.c]) AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([-Wall]) AM_PROG_AR AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_RANLIB AC_PROG_LIBTOOL # Checks for programs. AC_PROG_CC # Checks for libraries. AC_CHECK_LIB([nettle], [nettle_sha256_init], [], [AS_ECHO "Sorry, you need nettle."; exit 1]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h termios.h unistd.h byteswap.h sys/endian.h]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_UINT16_T AC_TYPE_UINT32_T AC_TYPE_UINT8_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_MMAP AC_CHECK_FUNCS([memset munmap strdup getpass]) # Check for gettext. AM_GNU_GETTEXT_VERSION([0.18.1]) AM_GNU_GETTEXT([external]) # Let's make gcc noisy CFLAGS="$CFLAGS -Wall" AC_CONFIG_FILES([Makefile po/Makefile.in]) AC_OUTPUT