]> git.pond.sub.org Git - empserver/commitdiff
Fix standalone client build for Windows
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 20 Sep 2008 15:57:59 +0000 (11:57 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 20 Sep 2008 15:57:59 +0000 (11:57 -0400)
Need to compile with -mthreads since commit f082ef9f, v4.3.11.

src/client/configure.ac

index 54e00a2920d358f10220ee807d34095b3fe56b2e..57d4d26a70fba5816d8ef1ae1e24e01d43c9d31f 100644 (file)
@@ -69,6 +69,15 @@ fi
 
 ### Checks for typedefs, structures, and compiler characteristics.
 
+AC_MSG_CHECKING([for Windows])
+AC_COMPILE_IFELSE(
+    [AC_LANG_SOURCE([[#ifdef _WIN32
+#Here's a nickel, kid
+#endif]])],
+    [Windows_res=no],
+    [Windows_res=yes CFLAGS="$CFLAGS -mthreads"])
+AC_MSG_RESULT([$Windows_res])
+
 
 ### Checks for library functions.