File: configure.ac

package info (click to toggle)
aribb24 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 356 kB
  • sloc: ansic: 4,105; makefile: 17; sh: 2
file content (29 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
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
AC_PREREQ([2.69])
AC_INIT([aribb24], [1.0.3], [nkoriyama@gmail.com])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_MACRO_DIR([m4])

AC_USE_SYSTEM_EXTENSIONS

AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
LT_INIT

# Checks for libraries.
AC_SEARCH_LIBS(sqrt, m)

pkg_requires=""
PKG_CHECK_MODULES(PNG, "libpng", [
  AC_DEFINE(HAVE_PNG, 1, "have libpng")
  pkg_requires="libpng"
], [])

AC_SUBST([PKG_REQUIRES], [$(test x$enable_shared = xno && echo ${pkg_requires})])

AC_CHECK_FUNCS([vasprintf])

AC_CONFIG_FILES([Makefile src/aribb24.pc])
AC_OUTPUT