Changes in / [00f434f:578d627]


Ignore:
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r00f434f r578d627  
    5555        conf->password = NULL;
    5656        conf->configdir = g_strdup( CONFIG );
    57         conf->plugindir = g_strdup( PLUGINDIR );
    5857        conf->motdfile = g_strdup( ETCDIR "/motd.txt" );
    5958        conf->ping_interval = 180;
  • conf.h

    r00f434f r578d627  
    4141        char *hostname;
    4242        char *configdir;
    43         char *plugindir;
    4443        char *motdfile;
    4544        char *primary_storage;
  • configure

    r00f434f r578d627  
    145145fi
    146146
    147 if [ -z "$PKG_CONFIG" ]; then
    148         PKG_CONFIG=pkg-config
    149 fi
    150 
    151 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
     147if type pkg-config > /dev/null 2>/dev/null && pkg-config glib-2.0; then
    152148        cat<<EOF>>Makefile.settings
    153 EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
    154 CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
     149EFLAGS+=`pkg-config --libs glib-2.0 gmodule-2.0`
     150CFLAGS+=`pkg-config --cflags glib-2.0 gmodule-2.0`
    155151EOF
    156152        echo '#define GLIB2' >> config.h
     
    194190detect_nss()
    195191{
    196         if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then
     192        if type pkg-config > /dev/null 2>/dev/null && pkg-config mozilla-nss; then
    197193                cat<<EOF>>Makefile.settings
    198 EFLAGS+=`$PKG_CONFIG --libs mozilla-nss`
    199 CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss`
     194EFLAGS+=`pkg-config --libs mozilla-nss`
     195CFLAGS+=`pkg-config --cflags mozilla-nss`
    200196EOF
    201197               
  • protocols/nogaim.c

    r00f434f r578d627  
    8282        GError *error = NULL;
    8383
    84         dir = g_dir_open(global.conf->plugindir, 0, &error);
     84        dir = g_dir_open(PLUGINDIR, 0, &error);
    8585
    8686        if (dir) {
     
    8989
    9090                while ((entry = g_dir_read_name(dir))) {
    91                         path = g_build_filename(global.conf->plugindir, entry, NULL);
     91                        path = g_build_filename(PLUGINDIR, entry, NULL);
    9292                        if(!path) {
    9393                                log_message(LOGLVL_WARNING, "Can't build path for %s\n", entry);
Note: See TracChangeset for help on using the changeset viewer.