2008-04-24 14:49:12 +02:00
|
|
|
dnl ---- configure.ac for gb.qt
|
|
|
|
|
2014-04-05 23:22:43 +02:00
|
|
|
m4_include([../version.m4])
|
|
|
|
AC_INIT(gambas3-gb-qt4, GB_VERSION, GB_MAIL, [], GB_URL)
|
2009-08-17 00:07:48 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2014-04-05 23:22:43 +02:00
|
|
|
|
2008-04-24 14:49:12 +02:00
|
|
|
GB_INIT(gb.qt4)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(
|
|
|
|
qt-translation,
|
|
|
|
[ --enable-qt-translation use qt translation files (default: yes)],
|
|
|
|
gb_use_qt_translation=$enableval,
|
|
|
|
gb_use_qt_translation=yes
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$gb_use_qt_translation" = "yes"; then
|
|
|
|
AC_DEFINE(USE_QT_TRANSLATION, 1, [Use QT translation])
|
|
|
|
fi
|
|
|
|
|
|
|
|
GB_CHECK_XWINDOW
|
2010-12-13 15:00:28 +01:00
|
|
|
AM_CONDITIONAL(XWINDOW, test x"$have_x" = xyes)
|
2008-04-24 14:49:12 +02:00
|
|
|
|
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
2012-05-18 03:19:15 +02:00
|
|
|
qt, QT, gb.qt4, [src],
|
2015-05-10 02:32:42 +02:00
|
|
|
'QtCore >= 4.5.0' QtGui QtSvg
|
2008-04-29 15:40:55 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
2012-05-18 03:19:15 +02:00
|
|
|
qtext, QTEXT, gb.qt4.ext, [ext],
|
2012-05-29 07:55:35 +02:00
|
|
|
'QtCore >= 4.5.0' QtGui Qt3Support
|
2008-04-24 14:49:12 +02:00
|
|
|
)
|
|
|
|
|
2009-07-23 18:53:06 +02:00
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
2012-05-18 03:19:15 +02:00
|
|
|
qtwebkit, QTWEBKIT, gb.qt4.webkit, [webkit],
|
2012-05-29 07:55:35 +02:00
|
|
|
'QtCore >= 4.5.0' QtGui QtNetwork QtDBus QtXml 'QtWebKit >= 4.5.0'
|
2009-07-23 18:53:06 +02:00
|
|
|
)
|
|
|
|
|
2008-04-24 14:49:12 +02:00
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
2012-05-18 03:19:15 +02:00
|
|
|
qtopengl, QTOPENGL, gb.qt4.opengl, [opengl],
|
2012-05-29 07:55:35 +02:00
|
|
|
'QtCore >= 4.5.0' QtGui QtOpenGL
|
2008-04-24 14:49:12 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
MOC=`pkg-config --variable=moc_location QtCore`
|
|
|
|
AC_SUBST(MOC)
|
|
|
|
|
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
src/ext/Makefile \
|
2009-07-23 18:53:06 +02:00
|
|
|
src/webkit/Makefile \
|
2008-04-24 14:49:12 +02:00
|
|
|
src/opengl/Makefile \
|
|
|
|
)
|
2010-07-14 03:50:18 +02:00
|
|
|
|
|
|
|
GB_PRINT_MESSAGES
|