| 93 | } |
| 94 | |
| 95 | static void show_compile_settings(void) |
| 96 | { |
| 97 | printf("Server version: %s\n", ap_get_server_description()); |
| 98 | printf("Server built: %s\n", ap_get_server_built()); |
| 99 | printf("Server's Module Magic Number: %u:%u\n", |
| 100 | MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR); |
| 101 | #if APR_MAJOR_VERSION >= 2 |
| 102 | printf("Server loaded: APR %s, PCRE %s\n", |
| 103 | apr_version_string(), ap_pcre_version_string(AP_REG_PCRE_LOADED)); |
| 104 | printf("Compiled using: APR %s, PCRE %s\n", |
| 105 | APR_VERSION_STRING, ap_pcre_version_string(AP_REG_PCRE_COMPILED)); |
| 106 | #else |
| 107 | printf("Server loaded: APR %s, APR-UTIL %s, PCRE %s\n", |
| 108 | apr_version_string(), apu_version_string(), |
| 109 | ap_pcre_version_string(AP_REG_PCRE_LOADED)); |
| 110 | printf("Compiled using: APR %s, APR-UTIL %s, PCRE %s\n", |
| 111 | APR_VERSION_STRING, APU_VERSION_STRING, |
| 112 | ap_pcre_version_string(AP_REG_PCRE_COMPILED)); |
| 113 | #endif |
| 114 | /* sizeof(foo) is long on some platforms so we might as well |
| 115 | * make it long everywhere to keep the printf format |
| 116 | * consistent |
| 117 | */ |
| 118 | printf("Architecture: %ld-bit\n", 8 * (long)sizeof(void *)); |
| 119 | |
| 120 | show_mpm_settings(); |
| 121 | |
| 122 | printf("Server compiled with....\n"); |
| 123 | #ifdef BIG_SECURITY_HOLE |
| 124 | printf(" -D BIG_SECURITY_HOLE\n"); |
| 125 | #endif |
| 126 | |
| 127 | #ifdef SECURITY_HOLE_PASS_AUTHORIZATION |
| 128 | printf(" -D SECURITY_HOLE_PASS_AUTHORIZATION\n"); |
| 129 | #endif |
| 130 | |
| 131 | #ifdef OS |
| 132 | printf(" -D OS=\"" OS "\"\n"); |
| 133 | #endif |
| 134 | |
| 135 | #ifdef HAVE_SHMGET |
| 136 | printf(" -D HAVE_SHMGET\n"); |
| 137 | #endif |
| 138 | |
| 139 | #if APR_FILE_BASED_SHM |
| 140 | printf(" -D APR_FILE_BASED_SHM\n"); |
| 141 | #endif |
| 142 | |
| 143 | #if APR_HAS_SENDFILE |
| 144 | printf(" -D APR_HAS_SENDFILE\n"); |
| 145 | #endif |
| 146 | |
| 147 | #if APR_HAS_MMAP |
| 148 | printf(" -D APR_HAS_MMAP\n"); |
| 149 | #endif |
| 150 | |
| 151 | #ifdef NO_WRITEV |
| 152 | printf(" -D NO_WRITEV\n"); |
no test coverage detected