Added README.md and LICENSE files
[audiosum.git] / configure.ac
blobfd06b820e5961abaaed3793dff49f6e0751d4597
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT([audiosum], [0.2+git], [alvarezp@alvarezp.ods.org])
6 AC_CONFIG_AUX_DIR([config])
7 AC_CONFIG_SRCDIR([src/audiosum.c])
8 AC_CONFIG_HEADER([config.h])
10 AM_INIT_AUTOMAKE([-Wall foreign])
12 # Checks for programs.
13 AC_PROG_CC
15 # Checks for libraries.
17 # Checks for header files.
18 AC_HEADER_STDC
19 AC_CHECK_HEADERS([string.h])
21 # Checks for typedefs, structures, and compiler characteristics.
22 AC_C_CONST
24 # Checks for library functions.
25 AC_CHECK_LIB([mhash], [mhash_init], , [ERROR=1; ERROR_MSG=`printf "%s\n%s\n" "$ERROR_MSG" "Requirement missing: mhash library."`])
26 AC_CHECK_FUNCS([pow strstr])
28 AS_IF([test "$ERROR" = "1"], [echo; echo $ERROR_MSG; echo; exit])
30 AC_CONFIG_FILES([Makefile
31                  src/Makefile])
32 AC_OUTPUT