[Spread-users] [PATCH] Install of header files

Daniel Rall dlr at finemaltcoding.com
Tue Oct 1 12:31:55 EDT 2002


Jonathan Stanton <jonathan at cnds.jhu.edu> writes:

> Yes, the new makefile doesn't 'install' the include files anywhere when
> you do 'make install' This isn't on purpose, just an oversight. 
> 
> The old 'make install' only worked on linux and was a hack, so I didn't
> think to look at what it did once Theo's autoconf patch was applied and
> provided a make install. I guess noone using the autoconf patch previously
> built programs against installed binaries, but rather built against
> complete sources.

I'm not particularly autoconf-savvy, but this seems to be doing the
trick for me.  I'm using this patch in conjunction with the Python
Spread module, which incidently I have to heavily patch the setup.py
file for.

Guido, is there an accepted manner of parameterizing distutils-using
setup.py scripts which I could adopt and send you a patch for?

--- spread-src-3.17.0/configure.in	Wed Sep 25 09:35:26 2002
+++ spread-src-3.17.0-dlr/configure.in	Mon Sep 30 21:36:37 2002
@@ -707,6 +707,7 @@
 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
 H=`eval echo ${LIBSPSO}`; H=`eval echo ${H}`
 I=`eval echo ${LIBTSPSO}`; I=`eval echo ${I}`
+J=`eval echo ${includedir}`; J=`eval echo ${J}`
 
 echo ""
 echo "Spread has been configured with the following options:"
@@ -716,6 +717,7 @@
 echo "                   User libraries: $E"
 echo "            Shared Spread LIbrary: $H"
 echo "Shared Thread-safe Spread LIbrary: $I"
+echo "                     Header files: $J"
 echo "                     Manual pages: $F"
 echo "                         PID file: $G"
 echo "                   Manpage format: $MANTYPE"
--- spread-src-3.17.0/configure	Wed Sep 25 09:35:26 2002
+++ spread-src-3.17.0-dlr/configure	Mon Sep 30 21:36:36 2002
@@ -3956,6 +3956,7 @@
 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
 H=`eval echo ${LIBSPSO}`; H=`eval echo ${H}`
 I=`eval echo ${LIBTSPSO}`; I=`eval echo ${I}`
+J=`eval echo ${includedir}`; J=`eval echo ${J}`
 
 echo ""
 echo "Spread has been configured with the following options:"
@@ -3965,6 +3966,7 @@
 echo "                   User libraries: $E"
 echo "            Shared Spread LIbrary: $H"
 echo "Shared Thread-safe Spread LIbrary: $I"
+echo "                     Header files: $J"
 echo "                     Manual pages: $F"
 echo "                         PID file: $G"
 echo "                   Manpage format: $MANTYPE"
--- spread-src-3.17.0/Makefile.in	Fri Sep 27 15:38:59 2002
+++ spread-src-3.17.0-dlr/Makefile.in	Mon Sep 30 21:29:26 2002
@@ -5,6 +5,7 @@
 bindir=@bindir@
 sbindir=@sbindir@
 libdir=@libdir@
+includedir=@includedir@
 mandir=@mandir@
 mansubdir=@mansubdir@
 sysconfdir=@sysconfdir@
@@ -211,6 +212,7 @@
 install-files:
 	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(bindir)
 	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(sbindir)
+	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(includedir)
 	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(mandir)
 	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1
 	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)3
@@ -222,6 +224,9 @@
 	$(INSTALL) -m 0755 -s spread$(EXEEXT) $(DESTDIR)$(sbindir)/spread$(EXEEXT)
 	$(INSTALL) -m 644 libspread.a $(DESTDIR)$(libdir)/libspread.a
 	$(INSTALL) -m 644 libtspread.a $(DESTDIR)$(libdir)/libtspread.a
+	$(INSTALL) -m 644 sp.h $(DESTDIR)$(includedir)/sp.h
+	$(INSTALL) -m 644 sp_func.h $(DESTDIR)$(includedir)/sp_func.h
+	$(INSTALL) -m 644 sp_events.h $(DESTDIR)$(includedir)/sp_events.h
 	$(INSTALL) -m 644 docs/spread.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/spread.1
 	$(INSTALL) -m 644 docs/spuser.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/spuser.1
 	$(INSTALL) -m 644 docs/sptuser.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sptuser.1

-- 

Daniel Rall <dlr at finemaltcoding.com>




More information about the Spread-users mailing list