configure.ac 944 Bytes
Newer Older
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
1 2
AC_PREREQ([2.64])
AC_INIT([libaec], [0.1.0], [rosenhauer@dkrz.de])
Luis Kornblueh's avatar
Luis Kornblueh committed
3 4

AC_CONFIG_MACRO_DIR([m4])
5
AC_CONFIG_AUX_DIR([config])
6
AC_CONFIG_SRCDIR([src/libaec.h])
7 8
AC_CONFIG_HEADERS(config/config.h)

Luis Kornblueh's avatar
Luis Kornblueh committed
9 10 11
LT_INIT

AM_INIT_AUTOMAKE
12 13 14 15 16

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
17
AC_CHECK_LIB([aec], [aec_decode])
18 19

# Checks for header files.
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
20
AC_HEADER_STDC
21 22

# Checks for typedefs, structures, and compiler characteristics.
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
23
AC_C_BIGENDIAN
24 25 26 27 28 29 30 31 32
AC_C_INLINE
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T

# Checks for library functions.
AC_CHECK_FUNCS([memset strstr])
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
33
AC_MSG_CHECKING(for __builtin_clzll)
34
AC_TRY_LINK([],[
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
35
  __builtin_clzll(1);
36
],[
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
37 38
  AC_DEFINE(AEC_HAVE___BUILTIN_CLZLL, 1, \
  [Define to 1 if you have the '__builtin__clzll' function.])
39 40 41 42
  AC_MSG_RESULT(yes)
],[
  AC_MSG_RESULT(no)
])
43

Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
44 45
AC_CONFIG_FILES([Makefile         \
                 src/Makefile     \
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
46
                 tests/Makefile])
47 48

AC_OUTPUT