1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ(2.61) 5AC_INIT(libkpass, 6, [libkpass@bldewolf.com]) 6AC_CONFIG_SRCDIR([src/kpass.c]) 7AC_CONFIG_HEADERS([src/config.h]) 8AC_CONFIG_AUX_DIR([build-aux]) 9AC_CONFIG_MACRO_DIR([m4]) 10 11AM_INIT_AUTOMAKE([-Wall]) 12 13AM_PROG_AR 14 15AC_PROG_INSTALL 16AC_PROG_LN_S 17AC_PROG_RANLIB 18AC_PROG_LIBTOOL 19 20# Checks for programs. 21AC_PROG_CC 22 23# Checks for libraries. 24AC_CHECK_LIB([nettle], [nettle_sha256_init], [], [AS_ECHO "Sorry, you need nettle."; exit 1]) 25 26# Checks for header files. 27AC_HEADER_STDC 28AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h termios.h unistd.h byteswap.h sys/endian.h]) 29 30# Checks for typedefs, structures, and compiler characteristics. 31AC_TYPE_UINT16_T 32AC_TYPE_UINT32_T 33AC_TYPE_UINT8_T 34 35# Checks for library functions. 36AC_FUNC_MALLOC 37AC_FUNC_MEMCMP 38AC_FUNC_MMAP 39AC_CHECK_FUNCS([memset munmap strdup getpass]) 40 41# Check for gettext. 42AM_GNU_GETTEXT_VERSION([0.18.1]) 43AM_GNU_GETTEXT([external]) 44 45# Let's make gcc noisy 46CFLAGS="$CFLAGS -Wall" 47 48AC_CONFIG_FILES([Makefile po/Makefile.in]) 49AC_OUTPUT 50