Skip to content

Commit

Permalink
If WX_CONFIG_CHECK missing, disable WX. (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrincayc authored Dec 28, 2020
1 parent 2d09c86 commit 8374535
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ AS_IF([test x${enable_gitid} = xyes],
[AC_DEFINE([GITID],[1],[enable gitid in version])])
AM_CONDITIONAL([GITID], [test x${enable_gitid} = xyes])

m4_ifdef([WX_CONFIG_CHECK], [
WX_CONFIG_OPTIONS
WX_CONFIG_CHECK([3.0.0], [wxWin=1])
Expand All @@ -48,6 +49,11 @@ AM_COND_IF([WX],
CXXFLAGS="$WX_CXXFLAGS_ONLY $CXXFLAGS"
CFLAGS="$WX_CFLAGS_ONLY $CFLAGS"
LIBS="$WX_LIBS $LIBS"])
], [
AC_MSG_NOTICE([No WX_CONFIG_CHECK available])
AM_CONDITIONAL([WX], [test 1 = 0])
])


AC_MSG_CHECKING([enable_x11])
AC_ARG_ENABLE([x11],
Expand Down

0 comments on commit 8374535

Please sign in to comment.