-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfigure.ac
50 lines (39 loc) · 1.27 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
46
47
48
49
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59]) # Sorry troy
AC_INIT([composite-video-simulator], [1.0], [[email protected]])
AM_INIT_AUTOMAKE([composite-video-simulator],[1.0])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_PREFIX_DEFAULT([/usr])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_C_O
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/socket.h unistd.h])
# we require pkg-config
PKG_PROG_PKG_CONFIG
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INT64_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([memset])
# FFMPEG
PKG_CHECK_MODULES([AVCODEC], [libavcodec >= 55.39.101])
PKG_CHECK_MODULES([AVFORMAT], [libavformat >= 55.19.104])
PKG_CHECK_MODULES([SWSCALE], [libswscale >= 4.0.100])
PKG_CHECK_MODULES([AVUTIL], [libavutil >= 52.48.101])
PKG_CHECK_MODULES([SWRESAMPLE], [libswresample >= 2.0.101])
# variables for multi-target
AM_CONDITIONAL(WIN32,false)
AM_CONDITIONAL(LINUX,true)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
# where are we?
top="`pwd`"