Added MIT license to source and headers.
[libxdg-basedir.git] / configure.ac
blob560e1fc1d082901b06ff26ba6a0a8d6156a71ce7
1 AC_PREREQ(2.60)
2 AC_INIT([libxdg-basedir], [0.1.0], mark.nevill@gmail.com)
3 AM_INIT_AUTOMAKE([-Wall foreign])
4 AC_ARG_VAR(HAS_DOXYGEN, "Is doxygen in PATH?")
5 # Checks for programs.
6 AC_PROG_CC
7 AC_PROG_INSTALL
8 AC_PROG_LIBTOOL
9 AC_CHECK_PROG([has_doxygen], [doxygen], [yes])
10 # Checks for header files.
11 AC_HEADER_STDC
12 AC_CHECK_HEADERS([stdlib.h string.h])
13 # Checks for typedefs, structures, and compiler characteristics.
14 AC_HEADER_STDBOOL
15 AC_C_CONST
16 # Checks for library functions.
17 AC_FUNC_MALLOC
18 AC_FUNC_REALLOC
19 AC_CHECK_FUNCS([memset])
21 AM_CONDITIONAL(HAS_DOXYGEN, test x$has_doxygen = xyes)
23 AC_CONFIG_HEADER([config.h])
24 AC_CONFIG_FILES([Makefile
25                                 include/Makefile
26                                 src/Makefile
27                                 tests/Makefile])
28 AC_OUTPUT