Bump version
[libmpd.git] / configure.ac
blob8b6d290b088e9a02ce3e347fa7698f9b75fc6311
1 AC_INIT(src)
2 AM_CONFIG_HEADER(config.h)
3 AM_INIT_AUTOMAKE(libmpd, 0.14.102, Qball@Sarine.nl)
5 AC_PROG_CC
6 AC_LIBTOOL_WIN32_DLL
7 AM_PROG_LIBTOOL
9 AC_REPLACE_FUNCS(strndup)
11 EXTRA_CFLAGS=
12 EXTRA_LDFLAGS=
13 case $host in
14   *-*-mingw32* | *-*-windows)
15     EXTRA_CFLAGS="-mno-cygwin -mwindows -mms-bitfields -fno-strict-aliasing -DMPD_NO_GAI"
16     EXTRA_LDFLAGS="-export-all-symbols -mwindows -no-undefined -lregex -lws2_32 -mms-bitfields" ;;
17   *-*-cygwin*)
18     EXTRA_CFLAGS="-fno-strict-aliasing"
19     EXTRA_LDFLAGS="-export-all-symbols -mms-bitfields";;
20 esac
21 AC_SUBST(EXTRA_CFLAGS)
22 AC_SUBST(EXTRA_LDFLAGS)   
24 PKG_CHECK_MODULES([glib], glib-2.0 >= 2.10)
25 AC_SUBST(glib_LIBS)
26 AC_SUBST(glib_CFLAGS)
28 # Checks for header files.
29 AC_HEADER_STDC
30 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
31 AC_CHECK_HEADER([regex.h], [],
32                 [AC_MSG_ERROR([Required header regex.h not found.])])
34 AC_OUTPUT([
35 Makefile
36 src/Makefile
37 doc/Makefile
38 example/Makefile
39 example/testcase/Makefile
40 libmpd.pc
41 src/libmpd-version.h
42 doc/libmpd.doxy