Skip to content

Commit

Permalink
add test for Xt
Browse files Browse the repository at this point in the history
  • Loading branch information
s-u committed Jul 20, 2024
1 parent bf3f1a9 commit f5728f1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,27 @@ int main(void) {
CAIRO_CFLAGS="${CAIRO_CFLAGS} ${FT_CPPFLAGS}"
],[
AC_MSG_RESULT(no)
AC_MSG_ERROR([Cannot use cairo-ft backend, although cairo claims it is working. Please check your caito installation and/or update cairo if necessary or set CAIRO_CFLAGS/CAIRO_LIBS accordingly.])
AC_MSG_ERROR([Cannot use cairo-ft backend, although cairo claims it is working. Please check your cairo installation and/or update cairo if necessary or set CAIRO_CFLAGS/CAIRO_LIBS accordingly.])
])
fi
fi ## with_freetype

# --- check for Xt support (we need it in additon to xlib surface) ---
if test -n "${PKGCONF}"; then
AC_MSG_CHECKING([whether pkg-config knows about Xt])
xtmod=''
for module in xt; do
if "${PKGCONF}" --exists ${module}; then xtmod="${xtmod} ${module}"; fi
done
if test -n "${ftmod}"; then
AC_MSG_RESULT(yes)
XT_CPPFLAGS=`"${PKGCONF}" --cflags ${xtmod}`
XT_LIBS=`"${PKGCONF}" --libs ${PKGCONF_LIB_ADD} ${xtmod}`
else
AC_MSG_RESULT(no)
fi
fi

# --- check for JPEG support ---
AC_MSG_CHECKING([whether libjpeg works])
zLIBS="${LIBS}"
Expand Down

0 comments on commit f5728f1

Please sign in to comment.