root/trunk/configure.ac

Revision 580, 3.5 kB (checked in by uncle_fungus, 2 years ago)

Updated build system for 2.3.99.4

Line 
1 # Copyright (C) 2007-9 Andrew Schofield <andrew_s@fahmon.net>
2 #
3 # This file is free software; as a special exception the author gives
4 # unlimited permission to copy and/or distribute it, with or without
5 # modifications, as long as this notice is preserved.
6 #
7 # This program is distributed in the hope that it will be useful, but
8 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 m4_include(m4/wxwin.m4)
11 m4_include(m4/libcurl.m4)
12 m4_define([wxcurl_lt_current], [1])
13
14 AC_INIT([FahMon],
15         [2.3.99.4],
16         [Andrew Schofield andrew_s@fahmon.net],
17         [FahMon])
18 AC_PREFIX
19 AM_CONFIG_HEADER(config.h)
20 AM_INIT_AUTOMAKE([dist-bzip2])
21
22 WXCURL_LT_VERSION_INFO="wxcurl_lt_current"
23 AC_SUBST(WXCURL_LT_VERSION_INFO)
24
25 AC_PROG_CXX
26 AC_PROG_LIBTOOL
27
28 LIBCURL_CHECK_CONFIG([yes], [7.15.0], [curlOk=1], [curlOk=0])
29 if [[ $curlOk = 0 ]]; then
30     AC_MSG_ERROR([
31     Could not find a valid libCURL installation on your system.
32
33     If you do not have libCURL installed or you have an old version
34     then please install the latest version from
35       http://curl.haxx.se/libcurl/
36
37     If you have a valid libCURL installed, then please check the config.log
38     file for more details about the failure of this check.
39     ])
40 fi
41
42 AM_OPTIONS_WXCONFIG
43 reqwx=2.8.0
44 AC_MSG_NOTICE([ANSI wxWidgets])
45 AM_PATH_WXCONFIG($reqwx, wxWin=1, wxWin=0, adv core qa net)
46 AC_MSG_NOTICE([Unicode wxWidgets])
47 AM_PATH_WXCONFIG($reqwx, wxWinU=1, wxWinU=0, --unicode adv core qa net)
48 if test "$wxWin" != 1; then
49         if test "$wxWinU" != 1; then
50                 AC_MSG_ERROR([
51                         wxWidgets must be installed on your system.
52
53                         Please check that wx-config is in path, the directory
54                         where wxWidgets libraries are installed (returned by
55                         'wx-config --libs' or 'wx-config --static --libs' command)
56                         is in LD_LIBRARY_PATH or equivalent variable and
57                         wxWidgets version is $reqwx or above.
58                         ])
59         fi
60 fi
61 if test "$wxWinU" != 1; then
62         AC_MSG_WARN([
63                 Unicode build of wxWidgets not found.
64
65                 While FahMon will still compile with the ansi version
66                 of wxWidgets, you will lose the ability to use any unicode
67                 character sets for translations. If this is not what you
68                 want, install the unicode build of wxWidgets and run
69                 configure again.
70                 ])
71 fi
72
73 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS $LIBCURL_CPPFLAGS"
74 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY $LIBCURL_CPPFLAGS"
75 CFLAGS="$CFLAGS $WX_CFLAGS_ONLY $LIBCURL_CPPFLAGS"
76 LIBS="$LIBS $WX_LIBS $LIBCURL"
77
78 ALL_LINGUAS="en_GB fr_FR pt_PT ru_RU pl_PL sv_SE cs_CZ nl_NL pt_BR es_ES de_DE it_IT nb_NB zh_CN sk_SK"
79
80 AM_GNU_GETTEXT([external])
81
82 AC_CONFIG_FILES([
83    Makefile
84    README
85    FahMon.nsi
86    fahmon.spec
87    doxconf
88    FahMon-Info.plist
89    doc/Makefile
90    doc/help/Makefile
91    doc/help/User_Guide.tex
92    m4/Makefile
93    po/Makefile.in
94    resources/Makefile
95    wxcurl/Makefile
96    wxcurl/include/Makefile
97    wxcurl/include/wx/Makefile
98    wxcurl/include/wx/curl/Makefile
99    wxcurl/src/Makefile
100    wxcurl/win32_libcurl/Makefile
101    wxcurl/win32_libcurl/include/Makefile
102    wxcurl/win32_libcurl/include/curl/Makefile
103    wxcurl/win32_libcurl/lib/Makefile
104    src/Makefile
105    src/include/Makefile
106    src/include/fahmonConsts.h
107    src/images/Makefile
108    src/images/icons/Makefile
109    src/images/icons/16/Makefile
110    src/images/icons/24/Makefile
111    src/images/icons/32/Makefile
112    src/images/icons/48/Makefile
113    src/images/icons/64/Makefile
114    src/images/icons/128/Makefile
115    src/images/icons/256/Makefile
116    templates/Makefile
117    FahMon.xcodeproj/Makefile
118    mac/FahMon-Info.plist
119    mac/Makefile
120 ])
121
122 AC_OUTPUT
Note: See TracBrowser for help on using the browser.