> From: Andreas Schwab <[email protected]>
> Cc: [email protected],  [email protected]
> Date: Sun, 23 Dec 2012 00:09:30 +0100
> 
> [email protected] (Karl Berry) writes:
> 
> >     Did I use an incorrect variable?
> >
> > I don't know.  Sorry.  I trust someone else can help.
> 
> $target has no use in anything but a compiler.  Everyone else should
> look at $host only.

Here's the patch to fix this:

2012-12-30  Eli Zaretskii  <[email protected]>

        * configure.ac: Use $host, not $target, to detect MS-Windows
        builds, and set HOST_IS_WINDOWS if so.

        * util/Makefile.am (bin_SCRIPTS): Decide whether to install
        Windows batch files using HOST_IS_WINDOWS.

--- configure.ac~0      2012-12-18 03:36:12.000000000 +0200
+++ configure.ac        2012-12-30 06:58:29.250000000 +0200
@@ -378,11 +378,11 @@
 AC_MSG_RESULT([$pod_simple_texinfo_tests])
 AM_CONDITIONAL([POD_SIMPLE_TEXINFO_TESTS], [test "z$pod_simple_texinfo_tests" 
= 'zyes'])
 
-tgt_is_windows=no
-case "$target" in
-   *-mingw32 | *-mingw64 | *-msdosdjgpp )  tgt_is_windows=yes ;;
+host_is_windows=no
+case "$host" in
+   *-mingw32 | *-mingw64 | *-msdosdjgpp )  host_is_windows=yes ;;
 esac     
-AM_CONDITIONAL([TGT_IS_WINDOWS], [test "x$tgt_is_windows" = "xyes"])
+AM_CONDITIONAL([HOST_IS_WINDOWS], [test "x$host_is_windows" = "xyes"])
 
 # The config files to generate.
 AC_CONFIG_FILES([\


--- util/Makefile.am~0  2012-12-14 21:49:18.000000000 +0200
+++ util/Makefile.am    2012-12-30 06:58:57.562500000 +0200
@@ -15,7 +15,7 @@
 
 bin_PROGRAMS = texindex
 bin_SCRIPTS = texi2dvi texi2pdf pdftexi2dvi
-if TGT_IS_WINDOWS
+if HOST_IS_WINDOWS
  bin_SCRIPTS += makeinfo.bat pod2texi.bat texi2any.bat
 endif
 nodist_noinst_SCRIPTS = txixml2texi

Reply via email to