-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
34 lines (27 loc) · 883 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([sushi], [0.1], [gregnietsky@gmail.com])
AC_CONFIG_SRCDIR([src/sushi.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB([ncurses], [initscr])
AC_CHECK_LIB([pam], [pam_start])
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([util], [forkpty])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h utmp.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_TYPE_PID_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_GETGROUPS
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset strdup strndup])
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT