2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([Xestia Address Book], [0.01], [bugs@xestia.co.uk])
6 #AC_CONFIG_SRCDIR([version.h])
7 #AC_CONFIG_HEADERS([config.h])
14 # Checks for libraries.
20 # Check for C++11 support for the compiler.
22 CPPFLAGS="$CPPFLAGS -std=c++11"
23 CXXFLAGS="$CXXFLAGS -std=c++11"
25 AC_CHECK_HEADER([thread], [], [echo "The C++ compiler does not support C++11 extensions which is
26 needed for Xestia Address Book. Please install or use a
27 compiler that supports C++11 extensions."
33 AM_PATH_WXCONFIG($reqwx, wxWin=1)
34 if test "$wxWin" != 1; then
36 wxWidgets must be installed on your system.
38 Please check that wx-config is in path, the directory where wxWidgets libraries
39 are installed (returned by 'wx-config --libs' or 'wx-config --static --libs'
40 command) is in LD_LIBRARY_PATH or equivalent variable and wxWidgets version
45 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
46 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
47 CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
52 AC_CHECK_LIB([sfml-audio], [main], [], [echo "The SFML libraries must be installed on your system.
53 Please check that this library is installed properly before
54 running configure again."
58 AC_CHECK_HEADER([SFML/Audio.hpp], [], [echo "The SFML library headers must be installed on your system.
59 Please check that the library headers are installed properly
60 before running configure again."
66 AC_CHECK_LIB([ossp-uuid++], [main], [], [echo "The OSSP UUID C++ library must be installed on your system.
67 Please check that this library is installed properly before
68 running configure again."
72 AC_CHECK_HEADER([ossp/uuid++.hh], [], [echo "The OSSP UUID C++ library headers must be installed on your system.
73 Please check that the library headers are installed properly
74 before running configure again."
82 AC_CHECK_LIB([curl], [main], [], [echo "The cURL library must be installed on your system.
83 Please check that this library is installed properly before
84 running configure again."
88 AC_CHECK_HEADER([curl/curl.h], [], [echo "The cURL library headers must be installed on your system.
89 Please check that the library headers are installed properly
90 before running configure again."
96 AC_CHECK_LIB([xml2], [main], [], [echo "The libxml2 library must be installed on your system.
97 Please check that this library is installed properly before
98 running configure again."
102 AC_CHECK_HEADERS([libxml2/libxml/parser.h libxml2/libxml/tree.h], [], [echo "The libxml2 library headers must be installed on your system.
103 Please check that the library headers are installed properly
104 before running configure again."
108 # Checks for header files.
109 AC_CHECK_HEADERS([stdlib.h string.h iostream iomanip ios algorithm map vector utility])
111 # Checks for typedefs, structures, and compiler characteristics.
115 # Checks for library functions.
117 AC_CONFIG_FILES([Makefile])