Added audiodup, script that uses audiosum to find duplicate mp3.
[audiosum.git] / configure.ac
blob6d1cd77878d9370e75ca199b90d0d33b93cc731b
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT([audiosum], [0.1], [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