-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
45 lines (35 loc) · 1.32 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([ddb_misc_headerbar_GTK3], [1.0], [[email protected]])
AC_CONFIG_SRCDIR([src/headerbarui.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign -Wall subdir-objects dist-xz no-dist-gzip])
AM_SILENT_RULES([yes])
dnl Override $PACKAGE to make $pkglibdir use deadbeef search path
dnl PACKAGE=deadbeef
AC_PROG_CC
AM_PROG_AR
AC_PROG_INSTALL
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
AC_ARG_VAR([GLIB_COMPILE_RESOURCES],[the glib-compile-resources program])
AC_PATH_PROG([GLIB_COMPILE_RESOURCES],[glib-compile-resources],[])
if test -z "$GLIB_COMPILE_RESOURCES"; then
AC_MSG_ERROR([glib-compile-resources not found])
fi
LT_INIT
AC_SEARCH_LIBS([roundf], [m])
AC_CHECK_HEADERS([libintl.h stdlib.h string.h])
AC_TYPE_UINT32_T
AC_CHECK_FUNCS([atexit])
AC_CHECK_HEADERS([deadbeef/deadbeef.h],,
[
AC_MSG_ERROR([missing required header (see above)])
])
PKG_CHECK_MODULES([GTK_DEPS], [gtk+-3.0], , AC_MSG_ERROR([gtk+-3.0 is required for this package]))
PKG_CHECK_MODULES([GLIB_DEPS], [glib-2.0], , AC_MSG_ERROR([glibc-2 is required for this package]))
PKG_CHECK_MODULES([GIO_DEPS], [gio-2.0], , AC_MSG_ERROR([gio-2 is required for this package]))
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT