From 5cfd594c71345bcb91a56100fc3bbfef15253a95 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 2 Jan 2018 19:04:45 +0900 Subject: [PATCH] do not check the existence of itstool on win32 --- configure.ac | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index b0fc537..6fe78e8 100644 --- a/configure.ac +++ b/configure.ac @@ -89,6 +89,16 @@ AC_SUBST(LIBT_CURRENT_MINUS_AGE) PKGCONFIG_REQUIRES= PKGCONFIG_REQUIRES_PRIVATELY= +dnl ========================================================================== +case "$host" in + *-*-mingw*) + os_win32=yes + ;; + *) + os_win32=no +esac +AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") + dnl ========================================================================== dnl gettext stuff dnl ========================================================================== @@ -99,22 +109,15 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) AM_GNU_GETTEXT_VERSION([0.19.8]) AM_GNU_GETTEXT([external]) +if test "$os_win32" = "no"; then AC_PATH_PROG(ITSTOOL, [itstool]) if test -z "$ITSTOOL"; then AC_MSG_ERROR([The itstool were not found. Please install itstool.]) fi +fi dnl ========================================================================== -case "$host" in - *-*-mingw*) - os_win32=yes - ;; - *) - os_win32=no -esac -AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") - if test "$os_win32" = "yes"; then AC_CHECK_PROG(ms_librarian, lib.exe, yes, no) fi