Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Initial import of code already done for Xestia Address Book
[xestiaab/.git] / source / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ([2.68])
5 AC_INIT([Xestia Address Book], [1.0], [bugs@xestia.co.uk])
6 #AC_CONFIG_SRCDIR([version.h])
7 #AC_CONFIG_HEADERS([config.h])
9 # Checks for programs.
10 AC_PROG_CXX
11 AC_PROG_CC
12 AC_PROG_CPP
14 # Checks for libraries.
16 AM_OPTIONS_WXCONFIG
17 reqwx=2.8.0
18 AM_PATH_WXCONFIG($reqwx, wxWin=1)
19 if test "$wxWin" != 1; then
20         AC_MSG_ERROR([
21 wxWidgets must be installed on your system.
22  
23 Please check that wx-config is in path, the directory where wxWidgets libraries 
24 are installed (returned by 'wx-config --libs' or 'wx-config --static --libs' 
25 command) is in LD_LIBRARY_PATH or equivalent variable and wxWidgets version 
26 is $reqwx or above.
27                 ])
28 fi
29  
30 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
31 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
32 CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
33 LIBS="$LIBS $WX_LIBS"
35 # FIXME: Replace `main' with a function in `-lboost_filesystem':
36 AC_CHECK_LIB([boost_filesystem], [main], [], [
37         echo "Error! Boost Filesystem Library (libboost_filesystem) is not installed!
38 Please check that this library is installed property before 
39 running configure again."
40         exit -1
41         ])
42 # FIXME: Replace `main' with a function in `-lboost_system':
43 AC_CHECK_LIB([boost_system], [main], [], [
44         echo "Error! Boost System Library (libboost_system) is not installed!
45 Please check that this library is installed property before 
46 running configure again."
47         exit -1
48         ])
49 #AC_CHECK_PROG([WXCONFIG], [wx-config])
51 # Checks for header files.
52 AC_CHECK_HEADERS([stdlib.h string.h])
54 # Checks for typedefs, structures, and compiler characteristics.
55 AC_HEADER_STDBOOL
56 AC_C_INLINE
58 # Checks for library functions.
60 AC_CONFIG_FILES([Makefile])
61 AC_OUTPUT
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy