1#
2# SYNOPSIS
3#
4#   CHECK_QTCHARTS
5#
6# DESCRIPTION
7#
8#   This macro will check for the presence of Qt Charts library.
9#
10# LAST MODIFICATION
11#
12#   2018-01-31
13#
14# COPYLEFT
15#
16#   Copyright (c) 2018 Cedric Tissieres
17#
18#   Copying and distribution of this file, with or without
19#   modification, are permitted in any medium without royalty provided
20#   the copyright notice and this notice are preserved.
21AC_DEFUN([CHECK_QTCHARTS],
22[
23  PKG_PROG_PKG_CONFIG
24
25  # Check for Qt libraries
26  PKG_CHECK_MODULES(Qt5Charts, [Qt5Charts],
27    [ac_qt5charts=$($PKG_CONFIG --cflags-only-I Qt5Charts)],
28    [ac_qt5charts="no"])
29
30  if test "x$ac_qt5charts" = "xno"; then
31    AC_MSG_ERROR([
32		  ophcrack requires Qt5Charts library.
33		  Please disable the GUI via '--disable-gui',
34		  or see http://www.trolltech.com/ to obtain it.
35    ])
36  fi
37])
38