File: configure.ac

package info (click to toggle)
audtty 0.1.12-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 592 kB
  • sloc: ansic: 1,560; sh: 193; makefile: 63
file content (37 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (6)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(audtty, 0.1.12, [chris@code-monkeys.org])
AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
AC_PATH_PROG(RM, rm)
AC_PATH_PROG(MV, mv)
AC_PATH_PROG(CP, cp)
AC_PATH_PROG(AR, ar)
AC_PATH_PROG(RANLIB, ranlib)
AC_PROG_MAKE_SET

# Checks for libraries.
PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 1.5],
	[],
	[AC_MSG_ERROR([Can't find Audacious development files.])])

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_CHECK_FUNCS([strcasecmp])
AC_CHECK_LIB([ncursesw], [initscr], [NCURSESW_LIBS='-lncursesw'], [NCURSESW_LIBS=''])
AC_SUBST([NCURSESW_LIBS])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT