This commit is contained in:
whottgen 2004-09-27 14:35:43 +00:00
parent e88d6c7403
commit c41ee865e1
8 changed files with 81 additions and 13 deletions

View File

@ -9,9 +9,6 @@ libsmmapdfw/libsmmapdfw.a:
cd libsmmapdfw && $(MAKE) cd libsmmapdfw && $(MAKE)
.c.o:
$(CC) $(CFLAGS) -c $<
install: all install: all
$(INSTALL) -d -g $(GROUP) -o $(OWNER) -m 0755 $(PREFIX) $(PREFIX)/bin $(PREFIX)/lib $(PREFIX)/include $(PREFIX)/etc $(PREFIX)/doc $(INSTALL) -d -g $(GROUP) -o $(OWNER) -m 0755 $(PREFIX) $(PREFIX)/bin $(PREFIX)/lib $(PREFIX)/include $(PREFIX)/etc $(PREFIX)/doc
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 0644 include/*.h $(PREFIX)/include $(INSTALL) -g $(GROUP) -o $(OWNER) -m 0644 include/*.h $(PREFIX)/include

View File

@ -26,19 +26,21 @@ AC_CHECK_LIB([socket], [connect])
# Checks for header files. # Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h strings.h sys/socket.h syslog.h unistd.h]) AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h strings.h sys/socket.h syslog.h unistd.h dlfcn.h])
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_HEADER_TIME AC_HEADER_TIME
AC_CHECK_TYPES(socklen_t)
# Checks for library functions. # Checks for library functions.
AC_FUNC_FORK AC_FUNC_FORK
AC_FUNC_MALLOC AC_FUNC_MALLOC
AC_FUNC_REALLOC AC_FUNC_REALLOC
AC_FUNC_SELECT_ARGTYPES AC_FUNC_SELECT_ARGTYPES
AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup strerror strrchr strtol]) AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup strerror strrchr strtol dlopen dlsym dlerror], [],
[AC_MSG_ERROR([*** missing function, we can't go without it])])

View File

@ -1,10 +1,20 @@
#ifndef _SUNOS_COMP_H_ #ifndef _SUNOS_COMP_H_
#define _SUNOS_COMP_H_ #define _SUNOS_COMP_H_
#define socklen_t size_t #if HAVE_CONFIG_H
#define isblank(A) ((A==' ') || (A=='\t')) # include "config.h"
#endif
#ifndef HAVE_SOCKLEN_T
#define socklen_t size_t
#endif
#ifndef isblank
#define isblank(A) ((A==' ') || (A=='\t'))
#endif
#endif /* _SUNOS_COMP_H_ */ #endif /* _SUNOS_COMP_H_ */

View File

@ -1,12 +1,22 @@
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h> #include <stdlib.h>
#endif
#if HAVE_SYSLOG_H
#include <syslog.h> #include <syslog.h>
#endif
#include "cfg.h" #include "cfg.h"
#ifdef SUNOS
#include "sunos_comp.h" #include "sunos_comp.h"
#endif
#define LF 10 #define LF 10

View File

@ -1,4 +1,12 @@
#if HAVE_CONFIG_H
# include "config.h"
#endif
#if HAVE_STRING_H
#include <string.h> #include <string.h>
#endif
#include "cfg.h" #include "cfg.h"
char *findcfgl(config_item_t *cfg, char *name) { char *findcfgl(config_item_t *cfg, char *name) {

View File

@ -1,5 +1,5 @@
CC=@CC@ CC=@CC@
CFLAGS=-I../include @CFLAGS@ @DEFS@ CFLAGS=-I.. -I../include @CFLAGS@ @DEFS@
LIBS=@LIBS@ LIBS=@LIBS@
INSTALL=@INSTALL@ INSTALL=@INSTALL@

View File

@ -1,7 +1,22 @@
#if HAVE_CONFIG_H
# include "config.h"
#endif
#if HAVE_SYSLOG_H
#include <syslog.h> #include <syslog.h>
#endif
#if HAVE_STRING_H
#include <string.h> #include <string.h>
#endif
#if STDC_HEADERS
#include <stdlib.h> #include <stdlib.h>
#endif
#if HAVE_DLFCN_H
#include <dlfcn.h> #include <dlfcn.h>
#endif
#include "containers.h" #include "containers.h"
#include "cfg.h" #include "cfg.h"

View File

@ -1,14 +1,40 @@
#include <stdio.h> #if HAVE_CONFIG_H
# include "config.h"
#endif
#if HAVE_STRING_H
#include <string.h> #include <string.h>
#endif
#if STDC_HEADERS
#include <stdlib.h> #include <stdlib.h>
#endif
#if HAVE_SYSLOG_H
#include <syslog.h> #include <syslog.h>
#endif
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include <netinet/in.h> #include <netinet/in.h>
#include <errno.h> #include <errno.h>
#include <pthread.h> #include <pthread.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "queue.h" #include "queue.h"
#include "count.h" #include "count.h"