2001-11-24 23:55:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
2005-06-01 16:53:40 +00:00
|
|
|
dnl Macros for wxWidgets detection. Typically used in configure.in as:
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl
|
2003-01-19 12:04:07 +00:00
|
|
|
dnl AC_ARG_ENABLE(...)
|
|
|
|
dnl AC_ARG_WITH(...)
|
|
|
|
dnl ...
|
|
|
|
dnl AM_OPTIONS_WXCONFIG
|
|
|
|
dnl ...
|
|
|
|
dnl ...
|
2005-05-22 14:42:31 +00:00
|
|
|
dnl AM_PATH_WXCONFIG(2.6.0, wxWin=1)
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl if test "$wxWin" != 1; then
|
|
|
|
dnl AC_MSG_ERROR([
|
2005-06-01 16:53:40 +00:00
|
|
|
dnl wxWidgets must be installed on your system
|
2003-01-19 12:04:07 +00:00
|
|
|
dnl but wx-config script couldn't be found.
|
|
|
|
dnl
|
|
|
|
dnl Please check that wx-config is in path, the directory
|
2005-06-01 16:53:40 +00:00
|
|
|
dnl where wxWidgets libraries are installed (returned by
|
2003-01-19 12:04:07 +00:00
|
|
|
dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or
|
2005-06-01 16:53:40 +00:00
|
|
|
dnl equivalent variable and wxWidgets version is 2.3.4 or above.
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl ])
|
|
|
|
dnl fi
|
|
|
|
dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
|
|
|
|
dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
|
|
|
|
dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
|
2003-01-19 12:04:07 +00:00
|
|
|
dnl
|
2005-05-22 14:42:31 +00:00
|
|
|
dnl LIBS="$LIBS $WX_LIBS"
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl AM_OPTIONS_WXCONFIG
|
|
|
|
dnl
|
2003-01-19 12:04:07 +00:00
|
|
|
dnl adds support for --wx-prefix, --wx-exec-prefix, --with-wxdir and
|
|
|
|
dnl --wx-config command line options
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2004-04-06 07:53:23 +00:00
|
|
|
AC_DEFUN([AM_OPTIONS_WXCONFIG],
|
2001-11-24 23:55:29 +00:00
|
|
|
[
|
2003-01-19 12:04:07 +00:00
|
|
|
AC_ARG_WITH(wxdir,
|
2005-06-01 16:53:40 +00:00
|
|
|
[ --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH],
|
2003-01-19 12:04:07 +00:00
|
|
|
[ wx_config_name="$withval/wx-config"
|
|
|
|
wx_config_args="--inplace"])
|
|
|
|
AC_ARG_WITH(wx-config,
|
|
|
|
[ --with-wx-config=CONFIG wx-config script to use (optional)],
|
|
|
|
wx_config_name="$withval" )
|
|
|
|
AC_ARG_WITH(wx-prefix,
|
2005-06-01 16:53:40 +00:00
|
|
|
[ --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)],
|
2003-01-19 12:04:07 +00:00
|
|
|
wx_config_prefix="$withval", wx_config_prefix="")
|
|
|
|
AC_ARG_WITH(wx-exec-prefix,
|
|
|
|
[ --with-wx-exec-prefix=PREFIX
|
2005-06-01 16:53:40 +00:00
|
|
|
Exec prefix where wxWidgets is installed (optional)],
|
2003-01-19 12:04:07 +00:00
|
|
|
wx_config_exec_prefix="$withval", wx_config_exec_prefix="")
|
2001-11-24 23:55:29 +00:00
|
|
|
])
|
|
|
|
|
2005-06-01 20:02:47 +00:00
|
|
|
dnl Helper macro for checking if wx version is at least $1.$2.$3, set's
|
|
|
|
dnl wx_ver_ok=yes if it is:
|
|
|
|
AC_DEFUN([_WX_PRIVATE_CHECK_VERSION],
|
|
|
|
[
|
|
|
|
wx_ver_ok=""
|
|
|
|
if test "x$WX_VERSION" != x ; then
|
|
|
|
if test $wx_config_major_version -gt $1; then
|
|
|
|
wx_ver_ok=yes
|
|
|
|
else
|
|
|
|
if test $wx_config_major_version -eq $1; then
|
|
|
|
if test $wx_config_minor_version -gt $2; then
|
|
|
|
wx_ver_ok=yes
|
|
|
|
else
|
|
|
|
if test $wx_config_minor_version -eq $2; then
|
|
|
|
if test $wx_config_micro_version -ge $3; then
|
|
|
|
wx_ver_ok=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
2003-07-30 15:48:55 +00:00
|
|
|
dnl AM_PATH_WXCONFIG(VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND
|
2004-07-18 11:19:34 +00:00
|
|
|
dnl [, WX-LIBS [, ADDITIONAL-WX-CONFIG-FLAGS]]]])
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl
|
2005-06-01 16:53:40 +00:00
|
|
|
dnl Test for wxWidgets, and define WX_C*FLAGS, WX_LIBS and WX_LIBS_STATIC
|
|
|
|
dnl (the latter is for static linking against wxWidgets). Set WX_CONFIG_NAME
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl environment variable to override the default name of the wx-config script
|
|
|
|
dnl to use. Set WX_CONFIG_PATH to specify the full path to wx-config - in this
|
|
|
|
dnl case the macro won't even waste time on tests for its existence.
|
2003-07-30 15:48:55 +00:00
|
|
|
dnl
|
2004-07-18 11:19:34 +00:00
|
|
|
dnl Optional WX-LIBS argument contains comma- or space-separated list of
|
2005-06-01 16:53:40 +00:00
|
|
|
dnl wxWidgets libraries to link against (it may include contrib libraries). If
|
2004-07-18 11:19:34 +00:00
|
|
|
dnl it is not specified then WX_LIBS and WX_LIBS_STATIC will contain flags to
|
2005-06-01 16:53:40 +00:00
|
|
|
dnl link with all of the core wxWidgets libraries.
|
2004-07-18 11:19:34 +00:00
|
|
|
dnl
|
|
|
|
dnl Optional ADDITIONAL-WX-CONFIG-FLAGS argument is appended to wx-config
|
|
|
|
dnl invocation command in present. It can be used to fine-tune lookup of
|
|
|
|
dnl best wxWidgets build available.
|
2003-07-30 15:48:55 +00:00
|
|
|
dnl
|
|
|
|
dnl Example use:
|
2004-07-18 11:19:34 +00:00
|
|
|
dnl AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], [html,core,net]
|
|
|
|
dnl [--unicode --debug])
|
2001-11-24 23:55:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Get the cflags and libraries from the wx-config script
|
|
|
|
dnl
|
2004-04-06 07:53:23 +00:00
|
|
|
AC_DEFUN([AM_PATH_WXCONFIG],
|
2001-11-24 23:55:29 +00:00
|
|
|
[
|
|
|
|
dnl do we have wx-config name: it can be wx-config or wxd-config or ...
|
|
|
|
if test x${WX_CONFIG_NAME+set} != xset ; then
|
|
|
|
WX_CONFIG_NAME=wx-config
|
|
|
|
fi
|
2003-01-19 12:04:07 +00:00
|
|
|
|
2001-11-24 23:55:29 +00:00
|
|
|
if test "x$wx_config_name" != x ; then
|
|
|
|
WX_CONFIG_NAME="$wx_config_name"
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl deal with optional prefixes
|
|
|
|
if test x$wx_config_exec_prefix != x ; then
|
|
|
|
wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
|
2002-01-24 21:11:46 +00:00
|
|
|
WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
|
2001-11-24 23:55:29 +00:00
|
|
|
fi
|
|
|
|
if test x$wx_config_prefix != x ; then
|
|
|
|
wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
|
2002-01-24 21:11:46 +00:00
|
|
|
WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
|
2001-11-24 23:55:29 +00:00
|
|
|
fi
|
2004-07-21 10:17:51 +00:00
|
|
|
if test "$cross_compiling" = "yes"; then
|
|
|
|
wx_config_args="$wx_config_args --host=$host_alias"
|
|
|
|
fi
|
2001-11-24 23:55:29 +00:00
|
|
|
|
2002-01-24 21:11:46 +00:00
|
|
|
dnl don't search the PATH if WX_CONFIG_NAME is absolute filename
|
|
|
|
if test -x "$WX_CONFIG_NAME" ; then
|
|
|
|
AC_MSG_CHECKING(for wx-config)
|
|
|
|
WX_CONFIG_PATH="$WX_CONFIG_NAME"
|
|
|
|
AC_MSG_RESULT($WX_CONFIG_PATH)
|
|
|
|
else
|
|
|
|
AC_PATH_PROG(WX_CONFIG_PATH, $WX_CONFIG_NAME, no, "$WX_LOOKUP_PATH:$PATH")
|
2001-11-24 23:55:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$WX_CONFIG_PATH" != "no" ; then
|
|
|
|
WX_VERSION=""
|
|
|
|
|
|
|
|
min_wx_version=ifelse([$1], ,2.2.1,$1)
|
2004-07-18 11:19:34 +00:00
|
|
|
if test -z "$5" ; then
|
2005-06-01 16:53:40 +00:00
|
|
|
AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version])
|
2004-07-18 11:19:34 +00:00
|
|
|
else
|
2005-06-01 16:53:40 +00:00
|
|
|
AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version ($5)])
|
2004-07-18 11:19:34 +00:00
|
|
|
fi
|
2001-11-24 23:55:29 +00:00
|
|
|
|
2004-07-18 11:19:34 +00:00
|
|
|
WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $5 $4"
|
2001-11-24 23:55:29 +00:00
|
|
|
|
2004-07-18 11:19:34 +00:00
|
|
|
WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
|
2001-11-24 23:55:29 +00:00
|
|
|
wx_config_major_version=`echo $WX_VERSION | \
|
|
|
|
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
|
|
wx_config_minor_version=`echo $WX_VERSION | \
|
|
|
|
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
|
|
wx_config_micro_version=`echo $WX_VERSION | \
|
|
|
|
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
|
|
|
|
|
|
wx_requested_major_version=`echo $min_wx_version | \
|
|
|
|
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
|
|
wx_requested_minor_version=`echo $min_wx_version | \
|
|
|
|
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
|
|
wx_requested_micro_version=`echo $min_wx_version | \
|
|
|
|
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
|
|
|
2005-06-01 20:02:47 +00:00
|
|
|
_WX_PRIVATE_CHECK_VERSION([$wx_requested_major_version],
|
|
|
|
[$wx_requested_minor_version],
|
|
|
|
[$wx_requested_micro_version])
|
2001-11-24 23:55:29 +00:00
|
|
|
|
2004-10-12 13:23:09 +00:00
|
|
|
if test -n "$wx_ver_ok"; then
|
|
|
|
|
|
|
|
AC_MSG_RESULT(yes (version $WX_VERSION))
|
2004-07-18 11:19:34 +00:00
|
|
|
WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
|
2004-10-12 13:23:09 +00:00
|
|
|
|
|
|
|
dnl is this even still appropriate? --static is a real option now
|
|
|
|
dnl and WX_CONFIG_WITH_ARGS is likely to contain it if that is
|
|
|
|
dnl what the user actually wants, making this redundant at best.
|
|
|
|
dnl For now keep it in case anyone actually used it in the past.
|
2005-06-01 16:53:40 +00:00
|
|
|
AC_MSG_CHECKING([for wxWidgets static library])
|
2004-11-17 08:57:09 +00:00
|
|
|
WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
|
|
|
|
if test "x$WX_LIBS_STATIC" = "x"; then
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
else
|
2004-10-12 13:23:09 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
fi
|
2001-11-24 23:55:29 +00:00
|
|
|
|
|
|
|
dnl starting with version 2.2.6 wx-config has --cppflags argument
|
|
|
|
wx_has_cppflags=""
|
|
|
|
if test $wx_config_major_version -gt 2; then
|
|
|
|
wx_has_cppflags=yes
|
|
|
|
else
|
|
|
|
if test $wx_config_major_version -eq 2; then
|
|
|
|
if test $wx_config_minor_version -gt 2; then
|
|
|
|
wx_has_cppflags=yes
|
|
|
|
else
|
|
|
|
if test $wx_config_minor_version -eq 2; then
|
|
|
|
if test $wx_config_micro_version -ge 6; then
|
|
|
|
wx_has_cppflags=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2006-03-11 14:51:45 +00:00
|
|
|
dnl starting with version 2.7.0 wx-config has --rescomp option
|
|
|
|
wx_has_rescomp=""
|
|
|
|
if test $wx_config_major_version -gt 2; then
|
|
|
|
wx_has_rescomp=yes
|
|
|
|
else
|
|
|
|
if test $wx_config_major_version -eq 2; then
|
|
|
|
if test $wx_config_minor_version -ge 7; then
|
|
|
|
wx_has_rescomp=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$wx_has_rescomp" = x ; then
|
|
|
|
dnl cannot give any useful info for resource compiler
|
|
|
|
WX_RESCOMP=
|
|
|
|
else
|
|
|
|
WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
|
|
|
|
fi
|
|
|
|
|
2001-11-24 23:55:29 +00:00
|
|
|
if test "x$wx_has_cppflags" = x ; then
|
|
|
|
dnl no choice but to define all flags like CFLAGS
|
|
|
|
WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
|
|
|
|
WX_CPPFLAGS=$WX_CFLAGS
|
|
|
|
WX_CXXFLAGS=$WX_CFLAGS
|
|
|
|
|
|
|
|
WX_CFLAGS_ONLY=$WX_CFLAGS
|
|
|
|
WX_CXXFLAGS_ONLY=$WX_CFLAGS
|
|
|
|
else
|
|
|
|
dnl we have CPPFLAGS included in CFLAGS included in CXXFLAGS
|
|
|
|
WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
|
|
|
|
WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
|
|
|
|
WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
|
|
|
|
|
|
|
|
WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
|
|
|
|
WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
|
|
|
|
fi
|
|
|
|
|
2004-10-12 13:23:09 +00:00
|
|
|
ifelse([$2], , :, [$2])
|
|
|
|
|
2001-11-24 23:55:29 +00:00
|
|
|
else
|
2004-10-12 13:23:09 +00:00
|
|
|
|
2001-11-24 23:55:29 +00:00
|
|
|
if test "x$WX_VERSION" = x; then
|
2003-01-19 12:04:07 +00:00
|
|
|
dnl no wx-config at all
|
|
|
|
AC_MSG_RESULT(no)
|
2001-11-24 23:55:29 +00:00
|
|
|
else
|
2003-01-19 12:04:07 +00:00
|
|
|
AC_MSG_RESULT(no (version $WX_VERSION is not new enough))
|
2001-11-24 23:55:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
WX_CFLAGS=""
|
|
|
|
WX_CPPFLAGS=""
|
|
|
|
WX_CXXFLAGS=""
|
|
|
|
WX_LIBS=""
|
|
|
|
WX_LIBS_STATIC=""
|
2006-03-11 14:51:45 +00:00
|
|
|
WX_RESCOMP=""
|
2001-11-24 23:55:29 +00:00
|
|
|
ifelse([$3], , :, [$3])
|
2004-10-12 13:23:09 +00:00
|
|
|
|
2001-11-24 23:55:29 +00:00
|
|
|
fi
|
2005-05-22 14:42:31 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
WX_CFLAGS=""
|
|
|
|
WX_CPPFLAGS=""
|
|
|
|
WX_CXXFLAGS=""
|
|
|
|
WX_LIBS=""
|
|
|
|
WX_LIBS_STATIC=""
|
2006-03-11 14:51:45 +00:00
|
|
|
WX_RESCOMP=""
|
|
|
|
|
2005-05-22 14:42:31 +00:00
|
|
|
ifelse([$3], , :, [$3])
|
|
|
|
|
2001-11-24 23:55:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(WX_CPPFLAGS)
|
|
|
|
AC_SUBST(WX_CFLAGS)
|
|
|
|
AC_SUBST(WX_CXXFLAGS)
|
|
|
|
AC_SUBST(WX_CFLAGS_ONLY)
|
|
|
|
AC_SUBST(WX_CXXFLAGS_ONLY)
|
|
|
|
AC_SUBST(WX_LIBS)
|
|
|
|
AC_SUBST(WX_LIBS_STATIC)
|
|
|
|
AC_SUBST(WX_VERSION)
|
2006-03-11 14:51:45 +00:00
|
|
|
AC_SUBST(WX_RESCOMP)
|
2001-11-24 23:55:29 +00:00
|
|
|
])
|
2005-06-01 20:02:47 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Get information on the wxrc program for making C++, Python and xrs
|
|
|
|
dnl resource files.
|
|
|
|
dnl
|
|
|
|
dnl AC_ARG_ENABLE(...)
|
|
|
|
dnl AC_ARG_WITH(...)
|
|
|
|
dnl ...
|
|
|
|
dnl AM_OPTIONS_WXCONFIG
|
|
|
|
dnl ...
|
|
|
|
dnl AM_PATH_WXCONFIG(2.6.0, wxWin=1)
|
|
|
|
dnl if test "$wxWin" != 1; then
|
|
|
|
dnl AC_MSG_ERROR([
|
|
|
|
dnl wxWidgets must be installed on your system
|
|
|
|
dnl but wx-config script couldn't be found.
|
|
|
|
dnl
|
|
|
|
dnl Please check that wx-config is in path, the directory
|
|
|
|
dnl where wxWidgets libraries are installed (returned by
|
|
|
|
dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or
|
|
|
|
dnl equivalent variable and wxWidgets version is 2.6.0 or above.
|
|
|
|
dnl ])
|
|
|
|
dnl fi
|
|
|
|
dnl
|
|
|
|
dnl AM_PATH_WXRC([HAVE_WXRC=1], [HAVE_WXRC=0])
|
|
|
|
dnl if test "x$HAVE_WXRC" != x1; then
|
|
|
|
dnl AC_MSG_ERROR([
|
|
|
|
dnl The wxrc program was not installed or not found.
|
|
|
|
dnl
|
|
|
|
dnl Please check the wxWidgets installation.
|
|
|
|
dnl ])
|
|
|
|
dnl fi
|
|
|
|
dnl
|
|
|
|
dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
|
|
|
|
dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
|
|
|
|
dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
|
|
|
|
dnl
|
|
|
|
dnl LDFLAGS="$LDFLAGS $WX_LIBS"
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl AM_PATH_WXRC([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
|
|
|
dnl
|
|
|
|
dnl Test for wxWidgets' wxrc program for creating either C++, Python or XRS
|
|
|
|
dnl resources. The variable WXRC will be set and substituted in the configure
|
|
|
|
dnl script and Makefiles.
|
|
|
|
dnl
|
|
|
|
dnl Example use:
|
|
|
|
dnl AM_PATH_WXRC([wxrc=1], [wxrc=0])
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl wxrc program from the wx-config script
|
|
|
|
dnl
|
|
|
|
AC_DEFUN([AM_PATH_WXRC],
|
|
|
|
[
|
|
|
|
AC_ARG_VAR([WXRC], [Path to wxWidget's wxrc resource compiler])
|
|
|
|
|
|
|
|
if test "x$WX_CONFIG_NAME" = x; then
|
|
|
|
AC_MSG_ERROR([The wxrc tests must run after wxWidgets test.])
|
|
|
|
else
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for wxrc])
|
|
|
|
|
|
|
|
if test "x$WXRC" = x ; then
|
|
|
|
dnl wx-config --utility is a new addition to wxWidgets:
|
|
|
|
_WX_PRIVATE_CHECK_VERSION(2,5,3)
|
|
|
|
if test -n "$wx_ver_ok"; then
|
|
|
|
WXRC=`$WX_CONFIG_WITH_ARGS --utility=wxrc`
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$WXRC" = x ; then
|
|
|
|
AC_MSG_RESULT([not found])
|
|
|
|
ifelse([$2], , :, [$2])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([$WXRC])
|
|
|
|
ifelse([$1], , :, [$1])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(WXRC)
|
|
|
|
fi
|
|
|
|
])
|