summaryrefslogtreecommitdiffstats
blob: 6b55c1386ba77c2a0efcf9c501933660972cc6a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Author: Remko Tronçon

AC_DEFUN([AX_QT],
[
	AC_ARG_WITH(
		[qt],
		AC_HELP_STRING([--with-qt=@<:@ARG@:>@],[Path to Qt installation]),
		[
			WITH_QT="$withval"
			if test "$withval" != "no" -a "$withval" != "yes"; then
        QT_PATH="$withval/bin"
      else
        QT_PATH="$PATH"
			fi
		],
		[
      WITH_QT="yes"
      QT_PATH="$PATH"
    ])

	if test "$WITH_QT" != "no"; then
    AC_PATH_PROG(QMAKE, qmake, [], $QT_PATH)
    if test "$QMAKE"; then
      HAVE_QT=yes
    fi
	fi
])