-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
37 lines (26 loc) · 1.1 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([x52mfd],[0.1.1],[[email protected]])
AC_CONFIG_SRCDIR([include/x52mfd.h])
AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_MACRO_DIRS([m4])
AC_PREFIX_DEFAULT([$HOME/.local])
AM_INIT_AUTOMAKE([subdir-objects])
#CFLAGS="-std=gnu11 -g -ggdb -O0 -Wall -Werror"
CFLAGS="-std=gnu11 -Wall -Werror"
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AX_PTHREAD
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="-D_GNU_SOURCE $CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
# Checks for header files.
AC_CHECK_HEADERS([pthread.h stdarg.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
PKG_CHECK_MODULES([LIBX52], [libx52 >= 1.0.0], [], AC_MSG_ERROR([libx52 >= 1.0.0 required (get it here: https://github.com/nirenjan/x52pro-linux.git)]))
PKG_CHECK_MODULES([LIBX52IO], [libx52io >= 1.0.0], [], AC_MSG_ERROR([libx52io >= 1.0.0 required (get it here: https://github.com/nirenjan/x52pro-linux.git)]))
AC_OUTPUT