From befce025c0a60e420f81327a05be86a60771f710 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 8 Jul 2007 20:55:10 +0000 Subject: [PATCH] merge slightly adapted version of bug #478 patch Originally committed to SVN as r1396. --- configure.ac | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/configure.ac b/configure.ac index 62a9ef5dc..88b784e50 100644 --- a/configure.ac +++ b/configure.ac @@ -79,15 +79,6 @@ PKG_CHECK_MODULES([FREETYPE], freetype2 >= 9.7.0,, [ AC_MSG_XFAILURE([aegisub needs FreeType2 2.1.9, go install it]) ]) -WXCONFIG=wx-config -AC_ARG_WITH(wx-config, - AC_HELP_STRING([--with-wx-config=FILE], [Use specific wx-config script to determine wxWidgets configuration. [[wx-config]]]), -[ - if test "$withval" != "yes" -a "$withval" != ""; then - WXCONFIG=$withval - fi -]) - AX_CHECK_GL if test ! "$GL_LIBS"; then AC_MSG_WARN([Could not find system GL library]) @@ -96,16 +87,27 @@ fi CPPFLAGS="$CPPFLAGS $GL_CFLAGS" LIBS="$LIBS $GL_LIBS" -AC_MSG_CHECKING([wxWidgets version]) -if wxversion=`$WXCONFIG --version`; then - AC_MSG_RESULT([$wxversion]) -else - AC_MSG_RESULT([not found]) - AC_MSG_XFAILURE([wxWidgets is required. Try --with-wx-config.]) +AM_OPTIONS_WXCONFIG +AM_PATH_WXCONFIG(2.8.1, [has_wxconfig=1], [has_wxconfig=0], [std,gl,stc]) +if test "$has_wxconfig" != 1; then + echo <