-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
36 lines (26 loc) · 1012 Bytes
/
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
AC_PREREQ([2.68])
AC_INIT([srt], [0.1], [thedesignerpenguin@gmail.com], [srt])
# Hide away generated files in subdirs
AC_CONFIG_AUX_DIR([bin])
AC_CONFIG_MACRO_DIR([m4])
# Force automake all warnings are errors and non GNU structure
AM_INIT_AUTOMAKE([foreign dist-xz subdir-objects -Wall -Werror])
# Safety check
AC_CONFIG_SRCDIR([src/SRT_endian.h])
# The results of a config for inclusion in project
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC_C99
AC_PROG_CPP
AC_LANG([C])
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdio.h stdlib.h malloc.h stddef.h stdarg.h string.h inttypes.h stdint.h limits.h math.h time.h unistd.h syslog.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_DEFINE(M_PI, math.h)
AC_CHECK_DEFINE(CHAR_BIT, limits.h)
# Checks for library functions.
AC_CHECK_FUNCS([malloc calloc realloc free memset memcpy memmove strlen strnlen strcmp vsnprintf snprintf])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT