Code

configure.ac: set HAVE_WINDOWS=0 to avoid a "test" warning
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 2 May 2012 17:27:53 +0000 (19:27 +0200)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 2 May 2012 17:27:53 +0000 (19:27 +0200)
The warning would be:
./configure: line 5033: test: -eq: unary operator expected

configure.ac

index c50445eaa898f18f2e4fc8ee0c287463f4ee4252..1f99b218b4a652a22f836b01fe6a1dda4686ea63 100644 (file)
@@ -76,6 +76,8 @@ mingw32* | windows*)
                [AC_CHECK_LIB([nsl],[gethostbyname],[LIBS="$LIBS -lnsl"],
                [AC_MSG_ERROR(No UNIX gethostbyname API found)])
                ])
+
+       HAVE_WINDOWS=0
 esac
 AM_CONDITIONAL([HAVE_WINDOWS], [test $HAVE_WINDOWS -eq 1])