1
AC_INIT(src/profileeditor.cpp)
2
AM_INIT_AUTOMAKE(profileeditor, 0.9)
9
CPPFLAGS="$CPPFLAGS -Wall -g -fexceptions"
10
CXXFLAGS="$CPPFLAGS -Wall -g -fexceptions"
13
AC_ARG_WITH(wx-config,
14
[[ --with-wx-config=FILE Use the given path to wx-config when determining
15
wxWidgets configuration; defaults to "wx-config"]],
17
if test "$withval" != "yes" -a "$withval" != ""; then
26
AC_REQUIRE([AC_PROG_AWK])
27
AC_MSG_CHECKING([wxWidgets version])
28
if wxversion=`$WXCONFIG --version`; then
29
AC_MSG_RESULT([$wxversion])
31
AC_MSG_RESULT([not found])
32
AC_MSG_ERROR([wxWidgets is required. Try --with-wx-config.])
38
# Verify minimus requires
39
vers=`echo $wxversion | $AWK 'BEGIN { FS = "."; } { printf "% d", ($1 * 1000 + $2) * 1000 + $3;}'`
40
if test -n "$vers" && test "$vers" -ge 2006000; then
41
WX_CPPFLAGS="`$WXCONFIG --cppflags`"
42
WX_CXXFLAGS="`$WXCONFIG --cxxflags | sed -e 's/-fno-exceptions//'`"
43
WX_LIBS="`$WXCONFIG --libs`"
45
AC_MSG_ERROR([wxWidgets 2.6.0 or newer is required])
49
CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
50
CXXFLAGS="$CXXFLAGS $WX_CPPFLAGS"
55
AC_OUTPUT(Makefile src/Makefile src/wxStyledTextCtrl/Makefile doc/Makefile)