Index: Makefile.in ================================================================== --- Makefile.in +++ Makefile.in @@ -7,10 +7,11 @@ LIBS = @LIBS@ @PTHREAD_LIBS@ SHOBJFLAGS = @SHOBJFLAGS@ SHOBJLDFLAGS = @SHOBJLDFLAGS@ AR = @AR@ RANLIB = @RANLIB@ +STRIP = @STRIP@ prefix = @prefix@ exec_prefix = @exec_prefix@ libdir = @libdir@ @SET_MAKE@ @@ -30,10 +31,11 @@ asn1-x509_g.o: asn1-x509.c asn1-x509.h config.h $(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) -o asn1-x509_g.o -c asn1-x509.c libcackey.@SHOBJEXT@: cackey.o asn1-x509.o $(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey.@SHOBJEXT@ cackey.o asn1-x509.o $(LIBS) + -$(STRIP) -g "libcackey.@SHOBJEXT@" libcackey_g.@SHOBJEXT@: cackey_g.o asn1-x509_g.o $(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey_g.@SHOBJEXT@ cackey_g.o asn1-x509_g.o $(LIBS) test: test.c libcackey_g.@SHOBJEXT@ @@ -42,12 +44,12 @@ splint-cackey.txt: cackey.c asn1-x509.c asn1-x509.h config.h splint $(CPPFLAGS) -weak +posixlib -I/usr/include/PCSC -Ipkcs11 cackey.c > splint-cackey.txt install: libcackey.@SHOBJEXT@ -mkdir "$(DESTDIR)$(libdir)" - cp libcackey.@SHOBJEXT@ "$(DESTDIR)$(libdir)/" - -cp libcackey_g.@SHOBJEXT@ "$(DESTDIR)$(libdir)/" + cp "libcackey.@SHOBJEXT@" "$(DESTDIR)$(libdir)/" + -cp "libcackey_g.@SHOBJEXT@" "$(DESTDIR)$(libdir)/" clean: rm -f libcackey.@SHOBJEXT@ libcackey_g.@SHOBJEXT@ rm -f cackey.o asn1-x509.o cackey_g.o asn1-x509_g.o rm -f test Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -18,13 +18,16 @@ ]) dnl Determine how to create static archives on this platform AC_CHECK_TOOL(AR, ar) AC_CHECK_TOOL(RANLIB, ranlib) + +dnl Determine how to strip executables +AC_CHECK_TOOL(STRIP, strip) dnl Check for all required headers -AC_CHECK_HEADERS(arpa/inet.h inttypes.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/socket.h sys/types.h sys/un.h unistd.h pthread.h zlib.h,,[ +AC_CHECK_HEADERS(arpa/inet.h inttypes.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/socket.h sys/types.h sys/un.h unistd.h pthread.h zlib.h limits.h,,[ AC_WARN([Required header missing, compilation will likely fail.]) ], [ #ifdef HAVE_ARPA_INET_H # include #endif @@ -59,10 +62,13 @@ # include #endif #ifdef HAVE_PTHREAD_H # include #endif +#ifdef HAVE_LIMITS_H +# include +#endif #ifdef HAVE_ZLIB_H # include #endif ])