The file containing CONFIGURE_DEFINES variable, configure.h, is not present if
openvpn is built using the Python + Visual C -based buildsystem. This causes the
build to fail. This patch adds a check to see if variable exists before trying
to use it.
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: Peter Stuge <peter@stuge.se>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
... | ... |
@@ -2763,8 +2763,10 @@ usage_version (void) |
2763 | 2763 |
#ifdef CONFIGURE_CALL |
2764 | 2764 |
msg (M_INFO|M_NOPREFIX, "\n%s\n", CONFIGURE_CALL); |
2765 | 2765 |
#endif |
2766 |
+#ifdef CONFIGURE_DEFINES |
|
2766 | 2767 |
msg (M_INFO|M_NOPREFIX, "Compile time defines: %s", CONFIGURE_DEFINES); |
2767 | 2768 |
#endif |
2769 |
+#endif |
|
2768 | 2770 |
openvpn_exit (OPENVPN_EXIT_STATUS_USAGE); /* exit point */ |
2769 | 2771 |
} |
2770 | 2772 |
|