the server. The ap_ugly_hack variable is only valid if Autoconf was used
for the configuration.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86802
13f79535-47bb-0310-9956-
ffa450edef68
APACHE_SUBST(AP_LIB_DIRS)
APACHE_SUBST(AP_LIBS)
+AC_DEFINE(AP_USING_AUTOCONF, 1,
+ [Using autoconf to configure Apache])
+
dnl check for endianness
if test "$cross_compiling" = "no"; then
AC_C_BIGENDIAN
APACHE_GEN_MAKEFILES
])
-
* effect the server based on command line options */
extern AP_DECLARE_DATA apr_array_header_t *ap_server_config_defines;
-#ifndef WIN32 /* A -feature- (?) macro is needed here */
+#ifdef AP_USING_AUTOCONF
extern void *ap_ugly_hack;
#endif
apr_initialize();
-#ifndef WIN32 /* A -feature- (?) macro is needed here */
+#ifdef AP_USING_AUTOCONF
/* This ugly little hack pulls any function referenced in exports.c into
* the web server. exports.c is generated by buildconf, and it
* has all of the apr functions specified by httpd.exp.