You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add MSYS environment support to configure.ac so users building from the
MSYS shell get proper Windows configuration (winsock2.h, ws2_32 lib)
instead of falling through to the Unix case (arpa/inet.h).
Changes:
- configure.ac: Add *-msys* case with Windows config and warning about
msys-2.0.dll dependency
- configure.ac: Add host triplet and Windows build status to summary
- appveyor.yml: Add MSYS environment to CI matrix alongside MinGW64
- README.md: Add Windows/MSYS2 build section with step-by-step
instructions and explanation of shell differences
4. Build and install [libmicrohttpd](https://www.gnu.org/software/libmicrohttpd/) (>= 0.9.64)
145
+
146
+
5. Build libhttpserver:
147
+
```bash
148
+
./bootstrap
149
+
mkdir build &&cd build
150
+
../configure --disable-fastopen
151
+
make
152
+
make check # run tests
153
+
```
154
+
155
+
**Important:** The `--disable-fastopen` flag is required on Windows as TCP_FASTOPEN is not supported.
156
+
157
+
#### If you use the MSYS shell
158
+
159
+
Building from the MSYS shell also works but the resulting binaries will depend on `msys-2.0.dll`. The configure script will display a warning when building in this environment. If you see:
160
+
161
+
```
162
+
configure: WARNING: Building from MSYS environment. Binaries will depend on msys-2.0.dll.
163
+
```
164
+
165
+
Consider switching to the MinGW64 shell for native Windows binaries.
166
+
167
+
[Back to TOC](#table-of-contents)
168
+
122
169
## Getting Started
123
170
The most basic example of creating a server and handling a requests for the path `/hello`:
0 commit comments