parent
1e61fc03f6
commit
0dffab31c2
|
@ -12,17 +12,17 @@ AC_PROG_MAKE_SET
|
|||
|
||||
dnl Checks for libraries.
|
||||
AC_ARG_ENABLE(gtk2,
|
||||
[ --enable-gtk2=[no/yes] enables the gtk2 GUI (default=yes)],,
|
||||
enable_gtk2=yes)
|
||||
[AC_HELP_STRING([--enable-gtk2],[enable gtk2 GUI (instead of GTK1) [default=yes]])],,
|
||||
[enable_gtk2=yes])
|
||||
|
||||
if [ ! test "x$enable_gtk2" != "xyes"]; then
|
||||
if test "x$enable_gtk2" = "xyes" ; then
|
||||
pkg_modules="gtk+-2.0 >= 2.0.0"
|
||||
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
|
||||
CFLAGS="$CFLAGS $PACKAGE_CFLAGS"
|
||||
LIBS="$LIBS $PACKAGE_LIBS"
|
||||
AC_DEFINE(ENABLE_GTK2, , [Define to enable gtk2 support])
|
||||
else
|
||||
if !(gtk-config --version >/dev/null 2>&1); then
|
||||
if ! gtk-config --version &> /dev/null ; then
|
||||
AC_MSG_ERROR([Gtk+ is required.])
|
||||
else
|
||||
CFLAGS="$CFLAGS `gtk-config --cflags`"
|
||||
|
|
Loading…
Reference in New Issue