[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Sun, 23 Oct 2022 16:46:29 -0400 (EDT) |
branch: master
commit 43154ca208485a7cc537aea776e071c437c2cef6
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Oct 23 22:20:59 2022 +0200
* configure.ac (HOST_IS_WINDOWS_VARIABLE), tp/defs.in: add variable
set to yes if host is Windows.
---
ChangeLog | 5 +++++
configure.ac | 5 +++++
tp/defs.in | 1 +
3 files changed, 11 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9d2281b3db..92c062354d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-10-23 Patrice Dumas <pertusus@free.fr>
+
+ * configure.ac (HOST_IS_WINDOWS_VARIABLE), tp/defs.in: add variable
+ set to yes if host is Windows.
+
2022-10-23 Gavin Smith <gavinsmith0123@gmail.com>
* configure.ac (TI_AWK): Check for "nawk" before awk, as
diff --git a/configure.ac b/configure.ac
index d0c2f9f530..36837e41e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -483,6 +483,11 @@ case "$host" in
*-mingw32 | *-mingw64 | *-msdosdjgpp ) host_is_windows=yes ;;
esac
AM_CONDITIONAL([HOST_IS_WINDOWS], [test "x$host_is_windows" = "xyes"])
+HOST_IS_WINDOWS_VARIABLE=
+if test "x$host_is_windows" = "xyes" ; then
+ HOST_IS_WINDOWS_VARIABLE=yes
+fi
+AC_SUBST([HOST_IS_WINDOWS_VARIABLE])
# The config files to generate.
AC_CONFIG_FILES([\
diff --git a/tp/defs.in b/tp/defs.in
index 7ee906d8f7..d995dd1c17 100644
--- a/tp/defs.in
+++ b/tp/defs.in
@@ -1,6 +1,7 @@
PERL="@PERL@"
DIFF_U_OPTION="@DIFF_U_OPTION@"
DIFF_A_OPTION="@DIFF_A_OPTION@"
+HOST_IS_WINDOWS_VARIABLE="@HOST_IS_WINDOWS_VARIABLE@"
if [ "z$srcdir" = 'z' ]; then
srcdir="@srcdir@"
fi