Commit b35e18c0 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Build library test programs. Fix compiling issues.

parent 744be28b
This diff is collapsed.
......@@ -348,7 +348,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
dnl Now the hard part, how to link
dnl A few platforms have pthread support in standard libraries
dnl Check for pthread support in current $LIBS
AC_CHECK_FUNC(pthread_create,[ol_link_threads=yes])
if test $ol_link_threads = no ; then
......@@ -582,7 +582,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
if test $ac_cv_header_mach_cthreads_h = yes ; then
ol_with_threads=found
dnl A few platforms have cthread support in standard libraries
dnl check for cthread support in current $LIBS
AC_CHECK_FUNC(cthread_fork,[ol_link_threads=yes])
if test $ol_link_threads = no ; then
......@@ -898,7 +898,7 @@ dnl Checks for header files.
AC_HEADER_STDC
if test $ac_cv_header_stdc != yes; then
AC_MSG_WARN([could not locate Standard C headers])
AC_MSG_WARN([could not Standard C compliant headers])
fi
AC_HEADER_DIRENT
......@@ -914,6 +914,7 @@ AC_CHECK_HEADERS( \
malloc.h \
memory.h \
regex.h \
psap.h \
pwd.h \
sgtty.h \
stdarg.h \
......
......@@ -473,6 +473,9 @@ is provided ``as is'' without express or implied warranty.
/* Define if you have the <ndir.h> header file. */
#undef HAVE_NDIR_H
/* Define if you have the <psap.h> header file. */
#undef HAVE_PSAP_H
/* Define if you have the <pthread.h> header file. */
#undef HAVE_PTHREAD_H
......
......@@ -10,6 +10,6 @@ LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries
LIBRARY = libavl.a
XPROGRAMS = testavl
PROGRAMS = testavl
testavl: $(LIBRARY) testavl.o
......@@ -6,6 +6,15 @@ SRCS = decode.c encode.c io.c bprint.c
OBJS = decode.o encode.o io.o bprint.o
XSRCS = version.c
PROGRAMS= dtest etest idtest
dtest: $(LIBRARY) dtest.o
$(CC) $(LDFLAGS) -o $@ dtest.o $(LIBS)
etest: $(LIBRARY) etest.o
$(CC) $(LDFLAGS) -o $@ etest.o $(LIBS)
idtest: $(LIBRARY) idtest.o
$(CC) $(LDFLAGS) -o $@ idtest.o $(LIBS)
LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries
......
......@@ -16,7 +16,7 @@
#include <console.h>
#endif /* HAVE_CONSOLE_H */
#include "lber.h"
#include "lber-int.h"
static void usage( char *name )
{
......
......@@ -14,8 +14,11 @@
#include "portable.h"
#include <stdio.h>
#ifdef HAVE_PSAP_H
#include <psap.h>
#include <quipu/attr.h>
#endif
static usage( char *name )
{
......@@ -24,6 +27,7 @@ static usage( char *name )
main( int argc, char **argv )
{
#ifdef HAVE_PSAP_H
PE pe;
PS psin, psout, pserr;
......@@ -61,4 +65,8 @@ main( int argc, char **argv )
}
exit( 0 );
#else
fprintf(stderr, "requires ISODE X.500 distribution.\n");
exit( 1 );
#endif
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment