File: configure.ac

package info (click to toggle)
nodm 0.13-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 548 kB
  • sloc: ansic: 1,942; sh: 368; makefile: 84
file content (39 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (4)
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
35
36
37
38
39
dnl Process this file with autoconf to produce a configure script.
AC_INIT(nodm, 0.13, [enrico@enricozini.org, nomeata@debian.org, sunweaver@debian.org])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([-Wall std-options foreign])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])

dnl AC_GNU_SOURCE
dnl AM_MAINTAINER_MODE

dnl Checks for programs.
AC_PROG_CC
AC_ISC_POSIX

dnl We use C99
AC_PROG_CC_C99

dnl Checks for header files.
AC_HEADER_STDC

dnl Checks for libraries.
PKG_CHECK_MODULES(X11, x11)

AC_CHECK_LIB(pam, pam_start,
	[ PAM_LIBS="-lpam" ],
	AC_MSG_ERROR(libpam is missing)
)

AC_CHECK_LIB(pam_misc, main,
	[ PAM_LIBS="$PAM_LIBS -lpam_misc" ],
	AC_MSG_ERROR(libpam_misc is missing)
)
AC_SUBST(PAM_LIBS)

AC_CONFIG_FILES([
	Makefile
])
AC_OUTPUT