git-svn-id: https://scorched3d.svn.sourceforge.net/svnroot/scorched3d/trunk/scorched...
[scorched3d.git] / configure-wx.m4
blobc2441290c44306f0e560cb5101cbe82a2efc277b
1 dnl Checks for static linking for wx windows\r
2 AC_ARG_WITH([wx-static],\r
3             AC_HELP_STRING([--with-wx-static],\r
4                            [enable static linking for wxwindows (default no)]),\r
5             [use_static_wx=${withval}],,)\r
6 \r
7 dnl Check for wxwindows\r
8 AM_OPTIONS_WXCONFIG\r
9 AM_PATH_WXCONFIG(2.4.0, wxWin=1)\r
10 if test "$wxWin" != 1; then\r
11         AC_MSG_ERROR([\r
12                 wxWindows must be installed on your system\r
13                 but the wx-config script couldn't be found.\r
14                 Please check that wx-config is in path, the directory\r
15                 where wxWindows libraries are installed (returned by\r
16                 'wx-config --libs' command) is in LD_LIBRARY_PATH or\r
17                 equivalent variable and wxWindows version is 2.4.0 or above\r
18                 Try http://www.wxwindows.org to download wxwindows.\r
19         ])\r
20 fi\r
21      \r
22 if test x"$use_static_wx" = x"yes"; then\r
23         WX_LIBS="$WX_LIBS_STATIC"\r
24 fi\r