forked from mikebrady/alac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
76 lines (63 loc) · 2.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
dnl -*- Autoconf -*-
dnl Process this file with autoconf to produce a configure script.
dnl Copyright (c) 2013 Tiancheng "Timothy" Gu
dnl Modifications copyright (c) 2016 Mike Brady
dnl Licensed under the Apache License, Version 2.0 (the "License");
dnl you may not use this file except in compliance with the License.
dnl You may obtain a copy of the License at
dnl
dnl http://www.apache.org/licenses/LICENSE-2.0
dnl
dnl Unless required by applicable law or agreed to in writing, software
dnl distributed under the License is distributed on an "AS IS" BASIS,
dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
dnl See the License for the specific language governing permissions and
dnl limitations under the License.
AC_PREREQ([2.68])
AC_INIT([alac], [0.0.7], [[email protected]])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([codec/dp_enc.c])
AC_CONFIG_HEADERS([config.h])
dnl AC_CONFIG_AUX_DIR(.)
AC_CONFIG_MACRO_DIR([m4])
dnl AM_INIT_AUTOMAKE([tar-ustar foreign])
dnl m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl AM_MAINTAINER_MODE
dnl Various options for configure
AC_ARG_ENABLE([example],
[AS_HELP_STRING([--enable-example],
[enable example encoding program (default is no)])],
[example=$enableval], [example=no])
dnl Automake conditionals to set
AM_CONDITIONAL(EXAMPLE, test x$example = xyes)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
dnl Checks for header files.
AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
dnl Checks for typedefs, structures, and compiler characteristics.
dnl AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_CHECK_FUNCS([memset strrchr])
dnl Setup for libtool
LT_INIT
dnl soname version to use
dnl goes by ‘current[:revision[:age]]’ with the soname ending up as
dnl current.age.revision.
ALAC_VERSION=0
AC_SUBST(ALAC_VERSION)
AC_CONFIG_FILES([Makefile
codec/Makefile
convert-utility/Makefile
codec/alac.pc])
AC_OUTPUT