Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lmich
Licq
licq-config-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File licq-config-fix.patch of Package Licq
--- configure.in +++ configure.in @@ -27,7 +27,10 @@ dnl Also substitute PACKAGE and VERSION in the AC_OUTPUT files AC_SUBST(PACKAGE) AC_SUBST(VERSION) - +AC_MSG_CHECKING(what libname should be used) +AC_ARG_WITH(libname, [ --with-libname should be lib (default) or lib64], [], [with_libname=lib]) +AC_MSG_RESULT($with_libname) +AC_SUBST(LIBNAME, [$with_libname]) dnl Checks for programs. AC_PROG_CC AC_PROG_CPP @@ -190,7 +193,8 @@ share/Makefile \ src/Makefile \ include/Makefile \ - Makefile ) + Makefile \ + include/licq_constants.h) echo "" --- include/licq_constants.h.in +++ include/licq_constants.h.in @@ -0,0 +1,58 @@ +// ICQ definitions: +#ifndef CONSTANTS_H +#define CONSTANTS_H + +// Directory constants +const char DEFAULT_HOME_DIR[] = ".licq"; +const char BASE_SHARE_DIR[] = "share/licq/"; +const char BASE_LIB_DIR[] = "@LIBNAME@/licq/"; +const char USER_DIR[] = "users"; +const char HISTORY_DIR[] = "history"; +const char HISTORY_EXT[] = "history"; +const char HISTORYxOLD_EXT[] = "history.removed"; +const char TRANSLATION_DIR[] = "translations"; +const char UTILITY_DIR[] = "utilities"; +extern char BASE_DIR[]; +extern char SHARE_DIR[]; +extern char LIB_DIR[]; +enum direction { D_SENDER, D_RECEIVER }; +const char DEFAULT_SERVER_HOST[] = "login.icq.com"; + +// Plugin constants +const char PLUGIN_SIGNAL = 'S'; +const char PLUGIN_EVENT = 'E'; +const char PLUGIN_SHUTDOWN = 'X'; + +// Miscellaneous constants +extern unsigned short DEBUG_LEVEL; +const unsigned short MAX_FILENAME_LEN = 255; +const unsigned short MAX_HOSTNAME_LEN = 255; +const unsigned short MAX_CMD_LEN = 1024; +const unsigned short MAX_DATA_LEN = 1024; +const unsigned short MAX_MESSAGE_SIZE = 6800; // Maybe a little bigger? +const unsigned short MAX_OFFLINE_MESSAGE_SIZE = 450; +const unsigned short PING_FREQUENCY = 60; +const unsigned short UPDATE_FREQUENCY = 60; +const unsigned short DEFAULT_SERVER_PORT = 5190; +const unsigned short DEFAULT_SSL_PORT = 443; +const unsigned short MAX_SERVER_RETRIES = 6; +const unsigned short MAX_WAIT_ACK = 10; +const unsigned short MAX_WAIT_PLUGIN = 10; +const unsigned short MIN_SEND_DELAY = 2; +const unsigned short USER_HASH_SIZE = 128; +const unsigned short SOCKET_HASH_SIZE = 128; +const unsigned long LOCALHOST = 0x0100007F; +const unsigned short LOGON_ATTEMPT_DELAY = 300; +const unsigned short MAX_PING_TIMEOUTS = 3; + +// Thread constants +const unsigned short LOCK_N = 0; +const unsigned short LOCK_R = 1; +const unsigned short LOCK_W = 2; + +#define PIPE_READ 0 +#define PIPE_WRITE 1 +#define TIME_NOW 0 + + +#endif --- plugins/auto-reply/src/Makefile.am +++ plugins/auto-reply/src/Makefile.am @@ -1,4 +1,4 @@ -libdir=@libdir@/licq/ +#libdir = $(prefix)/lib/licq plugindir = $(libdir) licq_incdir = @LICQ_INCLUDES@ --- plugins/console/src/Makefile.am +++ plugins/console/src/Makefile.am @@ -1,4 +1,4 @@ -libdir=@libdir@/licq/ +#libdirlibdir=@libdir@/licq/ plugindir = $(libdir) licq_incdir = @LICQ_INCLUDES@ --- plugins/email/src/Makefile.am +++ plugins/email/src/Makefile.am @@ -1,4 +1,4 @@ -libdir=@libdir@/licq/ +#libdir = $(prefix)/lib/licq/ plugindir = $(libdir) licq_incdir = @LICQ_INCLUDES@ --- plugins/msn/src/Makefile.am +++ plugins/msn/src/Makefile.am @@ -1,4 +1,4 @@ -libdir=@libdir@/licq/ +#libdir=@libdir@/licq/ plugindir = $(libdir) licq_incdir = @LICQ_INCLUDES@ --- plugins/qt-gui/src/Makefile.am +++ plugins/qt-gui/src/Makefile.am @@ -1,6 +1,6 @@ EXTRA_DIST = xpm -libdir=@libdir@/licq/ +#libdir=@libdir@/licq/ licq_incdir = $(LICQ_INCLUDES) AM_CPPFLAGS = -D_REENTRANT \ --- plugins/rms/src/Makefile.am +++ plugins/rms/src/Makefile.am @@ -1,4 +1,4 @@ -libdir=@libdir@/licq/ +#libdir = $(prefix)/lib/licq/ plugindir = $(libdir) licq_incdir = @LICQ_INCLUDES@
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor