|
|
|
@ -27,24 +27,30 @@ |
|
|
|
|
# data files themselves. |
|
|
|
|
|
|
|
|
|
AC_DEFUN([AX_CXX_QT_TOOL], [ |
|
|
|
|
AC_ARG_VAR([$1], [path to Qt tool $2]) |
|
|
|
|
$1=${$1:-$(pkg-config --variable=$2_location Qt5Core)} |
|
|
|
|
$1=${$1:-$(pkg-config --variable=host_bins Qt5Core)/$2} |
|
|
|
|
$1=${$1:-$(pkg-config --variable=$2_location QtCore)} |
|
|
|
|
$1=${$1:-$(pkg-config --variable=host_bins QtCore)/$2} |
|
|
|
|
if ! which "${$1%% *}" > /dev/null; then |
|
|
|
|
if which "$2" > /dev/null; then |
|
|
|
|
$1=$2 |
|
|
|
|
else |
|
|
|
|
if test -n "$$1"; then |
|
|
|
|
AC_MSG_ERROR([Missing Qt program: $2 (tested: $$1)]) |
|
|
|
|
if test -z "$HAVE_$1"; then |
|
|
|
|
HAVE_$1=1 |
|
|
|
|
AC_MSG_CHECKING([for $2]) |
|
|
|
|
AC_ARG_VAR([$1], [path to Qt tool $2]) |
|
|
|
|
$1=${$1:-$(pkg-config --variable=$2_location Qt5Core)} |
|
|
|
|
$1=${$1:-$(pkg-config --variable=host_bins Qt5Core)/$2} |
|
|
|
|
$1=${$1:-$(pkg-config --variable=$2_location QtCore)} |
|
|
|
|
$1=${$1:-$(pkg-config --variable=host_bins QtCore)/$2} |
|
|
|
|
if ! which "${$1%% *}" > /dev/null; then |
|
|
|
|
if which "$2" > /dev/null; then |
|
|
|
|
$1=$2 |
|
|
|
|
else |
|
|
|
|
AC_MSG_ERROR([Missing Qt program: $2 (specify variable $1)]) |
|
|
|
|
HAVE_$1=0 |
|
|
|
|
$1="" |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
AC_SUBST($1) |
|
|
|
|
AM_CONDITIONAL(HAVE_$1, test $HAVE_$1 -eq 1) |
|
|
|
|
if test $HAVE_$1 -eq 1; then |
|
|
|
|
AC_MSG_RESULT([$$1]) |
|
|
|
|
else |
|
|
|
|
AC_MSG_RESULT([not found]) |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
AC_SUBST($1) |
|
|
|
|
AC_MSG_NOTICE([using $$1 for $2]) |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
AC_DEFUN([AX_CXX_QT_TOOLS], [ |
|
|
|
|