File: configure.ac

package info (click to toggle)
rolo 014-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 336 kB
  • sloc: ansic: 2,643; sh: 33; makefile: 24
file content (46 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download | duplicates (2)
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
40
41
42
43
44
45
46
# Process this file with autoconf to produce a configure script.
# $Id: configure.ac,v 1.18 2004/07/25 12:07:00 ahsu Exp $

AC_INIT([rolo],[014],[rafael@debian.org])
AM_INIT_AUTOMAKE
AC_PREREQ(2.59)
AC_COPYRIGHT([Copyright (C) 2003  Andrew Hsu
Copyright (C) 2017, 2019  Rafael Laboissiere])
AC_CONFIG_SRCDIR([src/main.c])
AM_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB(vc, vc_new)
AC_CHECK_LIB(ncursesw, newwin)
AC_CHECK_LIB(menuw, new_menu)
CFLAGS="$CFLAGS -I/usr/include/ncursesw/"

# Glib settings
LIBS="$LIBS $(pkg-config glib-2.0 --libs)"
CFLAGS="$CFLAGS $(pkg-config glib-2.0 --cflags)"

# Libunac settings
LIBS="$LIBS $(pkg-config unac --libs)"
CFLAGS="$CFLAGS $(pkg-config unac --cflags)"

# Checks for header files.
AC_HEADER_STDC

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

# Checks for library functions.
AC_FUNC_MALLOC
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([strdup strstr])

AC_CHECK_PROG(HAS_SHUNIT2,shunit2,yes)
if test x"$HAS_SHUNIT2" != x"yes" ; then
    AC_MSG_WARN([shunit2 not found. Unit tests will be skipped.])
fi

AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile test/Makefile])
AC_OUTPUT