Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from knocte/gui_configure
Browse files Browse the repository at this point in the history
configure: if gtk is not found, advice about --disable-gui
  • Loading branch information
Therzok committed May 8, 2016
2 parents 8f4f873 + 196f419 commit 92c29f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ AC_ARG_ENABLE(docs,
AM_CONDITIONAL(ENABLE_DOCS, test x$enable_docs = xyes)

if test "x$enable_gui" = "xyes"; then
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0],
has_gtk=yes, has_gtk=no)

if test "x$has_gtk" = "xno"; then
AC_MSG_ERROR([gtk is needed for GUI features, install it or use --disable-gui])
fi
fi

if test "x$enable_gui_gtk3" = "xyes"; then
Expand Down

0 comments on commit 92c29f7

Please sign in to comment.