Changeset 1571

Show
Ignore:
Timestamp:
06/18/08 10:05:36 (4 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1570 r1571  
    112008-06-18  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/util.h, cherokee/util.c, cherokee/info.h, 
     4        cherokee/info.c, cherokee/Makefile.am: As long as the 
     5        cherokee_server_print_build_info() depends on libcherokee-server 
     6        functions it has to be relocated within the library. 
    27 
    38        * cherokee/avl.c (cherokee_avl_get, cherokee_avl_add) 
  • cherokee/trunk/cherokee/Makefile.am

    r1569 r1571  
    10691069source.c \ 
    10701070source_interpreter.h \ 
    1071 source_interpreter.c 
     1071source_interpreter.c \ 
     1072info.h \ 
     1073info.c 
    10721074 
    10731075libcherokee_config_la_SOURCES = \ 
  • cherokee/trunk/cherokee/main.c

    r1567 r1571  
    2727#include "init.h" 
    2828#include "server.h" 
    29 #include "server-protected.h" 
    30 #include "util.h" 
     29#include "info.h" 
    3130 
    3231#ifdef HAVE_GETOPT_H 
     
    287286         
    288287        if (print_modules) { 
    289                 cherokee_build_info_print (&srv->loader); 
     288                cherokee_info_build_print (srv); 
    290289                exit (ret_ok); 
    291290        } 
  • cherokee/trunk/cherokee/util.c

    r1567 r1571  
    12711271        fflush (stdout); 
    12721272} 
    1273  
    1274  
    1275 void 
    1276 cherokee_build_info_print (cherokee_plugin_loader_t *loader) 
    1277 { 
    1278         cherokee_buffer_t builtin = CHEROKEE_BUF_INIT; 
    1279  
    1280         /* Basic info 
    1281          */ 
    1282         printf ("Compilation\n"); 
    1283         printf (" Version: " PACKAGE_VERSION "\n"); 
    1284         printf (" Compiled on: " __DATE__ " " __TIME__ "\n"); 
    1285         printf (" Arguments to configure: " CHEROKEE_CONFIG_ARGS "\n"); 
    1286         printf ("\n"); 
    1287  
    1288         /* Paths 
    1289          */ 
    1290         printf ("Installation\n"); 
    1291         printf (" Deps dir: " CHEROKEE_DEPSDIR "\n"); 
    1292         printf (" Data dir: " CHEROKEE_DATADIR "\n"); 
    1293         printf (" Icons dir: " CHEROKEE_ICONSDIR "\n"); 
    1294         printf (" Themes dir: " CHEROKEE_THEMEDIR "\n"); 
    1295         printf (" Plug-in dir: " CHEROKEE_PLUGINDIR "\n"); 
    1296         printf ("\n"); 
    1297  
    1298         /* Print plug-ins information 
    1299          */ 
    1300         printf ("Plug-ins\n"); 
    1301         cherokee_plugin_loader_get_mods_info (loader, &builtin); 
    1302         printf (" Built-in: %s\n", builtin.buf ? builtin.buf : ""); 
    1303         printf ("\n"); 
    1304         cherokee_buffer_mrproper (&builtin); 
    1305  
    1306         /* Support 
    1307          */ 
    1308         printf ("Support\n"); 
    1309 #ifdef HAVE_IPV6 
    1310         printf (" IPv6: yes\n"); 
    1311 #else 
    1312         printf (" IPv6: no\n"); 
    1313 #endif 
    1314 #ifdef HAVE_OPENSSL 
    1315         printf (" OpenSSL: yes\n"); 
    1316 #else 
    1317         printf (" OpenSSL: no\n"); 
    1318 #endif 
    1319 #ifdef HAVE_GNUTLS 
    1320         printf (" GnuTLS: yes\n"); 
    1321 #else 
    1322         printf (" GnuTLS: no\n"); 
    1323 #endif 
    1324 #ifdef HAVE_PTHREAD 
    1325         printf (" Pthreads: yes\n"); 
    1326 #else 
    1327         printf (" Pthreads: no\n"); 
    1328 #endif 
    1329 #ifdef TRACE_ENABLED 
    1330         printf (" Tracing: yes\n"); 
    1331 #else 
    1332         printf (" Tracing: no\n"); 
    1333 #endif 
    1334 #ifdef HAVE_SENDFILE 
    1335         printf (" sendfile(): yes\n"); 
    1336 #else 
    1337         printf (" sendfile(): no\n"); 
    1338 #endif 
    1339 #ifdef HAVE_SYSLOG 
    1340         printf (" syslog(): yes\n"); 
    1341 #else 
    1342         printf (" syslog(): no\n"); 
    1343 #endif 
    1344         printf ("\n"); 
    1345  
    1346  
    1347         printf ("Polling methods\n"); 
    1348 #ifdef HAVE_PORT 
    1349         printf (" Solaris' port(): yes\n"); 
    1350 #else 
    1351         printf (" Solaris' port(): no\n"); 
    1352 #endif 
    1353 #ifdef HAVE_SELECT 
    1354         printf (" select(): yes\n"); 
    1355 #else 
    1356         printf (" select(): no\n"); 
    1357 #endif 
    1358 #ifdef HAVE_WIN32_SELECT 
    1359         printf (" Win32 select(): yes\n"); 
    1360 #else 
    1361         printf (" Win32 select(): no\n"); 
    1362 #endif 
    1363 #ifdef HAVE_POLL 
    1364         printf (" poll(): yes\n"); 
    1365 #else 
    1366         printf (" poll(): no\n"); 
    1367 #endif 
    1368 #ifdef HAVE_EPOLL 
    1369         printf (" epoll(): yes\n"); 
    1370 #else 
    1371         printf (" epoll(): no\n"); 
    1372 #endif 
    1373 #ifdef HAVE_KQUEUE 
    1374         printf (" kqueue(): yes\n"); 
    1375 #else 
    1376         printf (" kqueue(): no\n"); 
    1377 #endif 
    1378 } 
  • cherokee/trunk/cherokee/util.h

    r1567 r1571  
    117117/* Debug 
    118118 */ 
    119 void  cherokee_trace            (const char *entry, const char *file, int line, const char *func, const char *fmt, ...); 
    120 void  cherokee_print_errno      (int error, char *format, ...); 
    121 void  cherokee_build_info_print (cherokee_plugin_loader_t *loader); 
     119void  cherokee_trace           (const char *entry, const char *file, int line, const char *func, const char *fmt, ...); 
     120void  cherokee_print_errno     (int error, char *format, ...); 
    122121 
    123122/* Path walking