1dnl -*- Autoconf -*- 2dnl Process this file with autoconf to produce a configure script. 3 4dnl Copyright (c) 2013 Tiancheng "Timothy" Gu 5dnl Modifications copyright (c) 2016 Mike Brady 6dnl Licensed under the Apache License, Version 2.0 (the "License"); 7dnl you may not use this file except in compliance with the License. 8dnl You may obtain a copy of the License at 9dnl 10dnl http://www.apache.org/licenses/LICENSE-2.0 11dnl 12dnl Unless required by applicable law or agreed to in writing, software 13dnl distributed under the License is distributed on an "AS IS" BASIS, 14dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15dnl See the License for the specific language governing permissions and 16dnl limitations under the License. 17 18AC_PREREQ([2.68]) 19AC_INIT([alac], [0.0.7], [mikebrady@eircom.net]) 20AM_INIT_AUTOMAKE 21AC_CONFIG_SRCDIR([codec/dp_enc.c]) 22AC_CONFIG_HEADERS([config.h]) 23 24dnl AC_CONFIG_AUX_DIR(.) 25AC_CONFIG_MACRO_DIR([m4]) 26dnl AM_INIT_AUTOMAKE([tar-ustar foreign]) 27dnl m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 28dnl AM_MAINTAINER_MODE 29 30dnl Various options for configure 31AC_ARG_ENABLE([example], 32 [AS_HELP_STRING([--enable-example], 33 [enable example encoding program (default is no)])], 34 [example=$enableval], [example=no]) 35 36dnl Automake conditionals to set 37AM_CONDITIONAL(EXAMPLE, test x$example = xyes) 38 39dnl Checks for programs. 40AC_PROG_CC 41AC_PROG_CXX 42 43dnl Checks for header files. 44AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) 45 46dnl Checks for typedefs, structures, and compiler characteristics. 47dnl AC_CHECK_HEADER_STDBOOL 48AC_C_INLINE 49AC_TYPE_INT16_T 50AC_TYPE_INT32_T 51AC_TYPE_INT64_T 52AC_TYPE_INT8_T 53AC_TYPE_SIZE_T 54AC_TYPE_UINT16_T 55AC_TYPE_UINT32_T 56AC_TYPE_UINT64_T 57AC_TYPE_UINT8_T 58 59# Checks for library functions. 60AC_CHECK_FUNCS([memset strrchr]) 61 62dnl Setup for libtool 63LT_INIT 64 65dnl soname version to use 66dnl goes by ‘current[:revision[:age]]’ with the soname ending up as 67dnl current.age.revision. 68ALAC_VERSION=0 69 70AC_SUBST(ALAC_VERSION) 71 72AC_CONFIG_FILES([Makefile 73 codec/Makefile 74 convert-utility/Makefile 75 codec/alac.pc]) 76AC_OUTPUT 77