AC_MSG_WARN([No C++ compiler found. The wxWidgets terminal will not be compiled.])
enable_wxwidgets_ok=no
fi
dnl The user can specify another path for wx-config
WXWIDGETS_PATH="${PATH}"
AC_ARG_WITH(wx,dnl
[--with-wx=DIR Where to find wx-config, the wxWidgets configuration program
(default search in $PATH)],
[ if test "${with_wx}" != "no" ; then
WXWIDGETS_PATH="${with_wx}:${PATH}"
fi ])
dnl Look for wx-config in the path
AC_PATH_PROG(WX_CONFIG, wx-config, no, ${WXWIDGETS_PATH})
if test "${WX_CONFIG}" = "no"; then
AC_MSG_WARN([wxWidgets can't be found. You can try --with-wx=DIR to give the right path to wx-config. The wxWidgets terminal will not be compiled.])
enable_wxwidgets_ok=no
else
dnl Ckeck for wxWidgets version
WXWIDGETS_VERSION=`${WX_CONFIG} --release`
if expr 2.6 \> ${WXWIDGETS_VERSION} >/dev/null; then
AC_MSG_WARN([Your development package for wxWidgets is too old, you need at least version 2.6. The wxWidgets terminal will not be compiled.])
enable_wxwidgets_ok=no
fi
if expr ${WXWIDGETS_VERSION} \> 2.8 >/dev/null; then
AC_DEFINE(WX_NEEDS_XINITTHREADS, 1, [wxWidgets >= 2.9 wants calling program to invoke XInit()])
fi
dnl Make sure we're using more than the 'base' wxWidgets. Those
if expr `${WX_CONFIG} --basename` : '.*base' >/dev/null; then
AC_MSG_WARN([You only have the 'base' flavor of wxWidgets. A full wxWidgets library is required. On Debian/Ubuntu, please make sure that you have a 'libwx...-dev' package other than just 'libwxbase...-dev' installed. The wxWidgets terminal will not be compiled.])