Ludovic Rousseau wrote:
Commited in revision 3444 and 3445 with some changes.
Thanks.
I can now make:
$ make distclean
$ mkdir foobar
$ cd foobar
$ ../configure --srcdir=..
$ make
$ make dist
I found two more places where S(srcdir) should be replaced by $(builddir)
Without these changes, you may have compiled using the /usr/include/opensc
files rather then the ones in the build directory.
The attached changes is against svn 3447.
I also note that the opensc.conf now has in the the reader pcsc section
#library_name = /usr/lib/libpcsclite.so
This was not updated, even though I specified --with-pcslite=/opt/smartcard
I also had to specify --enable-pcsc
But got it running on Solaris 10, and compiled on Ubuntu 7.10.
I still can't do "make distcheck" because it fails in the doc/
directory. xsltproc can't find the xsl-stylesheets files when built
from a different directory.
I got further with building doc. The diff.doc.makefile.am.txt
is a partial attempt.
I gave up on that as well. I could not find a way to turn off the
build of the doc when building from SVN. --disable-doc does not work.
I got further with building the and the diff.doc.makefile.am.txt
is a partial attempt.
bye
--
Douglas E. Engert <[EMAIL PROTECTED]>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
Index: src/libopensc/Makefile.am
===================================================================
--- src/libopensc/Makefile.am (revision 3447)
+++ src/libopensc/Makefile.am (working copy)
@@ -17,7 +17,7 @@
AM_CFLAGS = $(OPTIONAL_OPENSSL_CFLAGS) $(OPTIONAL_OPENCT_CFLAGS) \
$(OPTIONAL_ZLIB_CFLAGS) $(LTLIB_CFLAGS)
-INCLUDES = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/common
+INCLUDES = -I$(top_builddir)/src/include -I$(top_srcdir)/src/include
-I$(top_srcdir)/src/common
libopensc_la_SOURCES = \
sc.c ctx.c ui.c log.c errors.c \
Index: etc/Makefile.am
===================================================================
--- etc/Makefile.am (revision 3447)
+++ etc/Makefile.am (working copy)
@@ -12,7 +12,7 @@
sysconf_DATA=#required in order to create dir
install-exec-hook: install-sysconfDATA opensc.conf
if [ -f $(DESTDIR)$(sysconfdir)/opensc.conf ]; then \
- $(INSTALL_DATA) $(srcdir)/opensc.conf
$(DESTDIR)$(sysconfdir)/opensc.conf.new; \
+ $(INSTALL_DATA) $(builddir)/opensc.conf
$(DESTDIR)$(sysconfdir)/opensc.conf.new; \
else \
- $(INSTALL_DATA) $(srcdir)/opensc.conf
$(DESTDIR)$(sysconfdir)/opensc.conf; \
+ $(INSTALL_DATA) $(builddir)/opensc.conf
$(DESTDIR)$(sysconfdir)/opensc.conf; \
fi
--- ,Makefile.am Tue Apr 1 09:05:15 2008
+++ Makefile.am Tue Apr 1 12:40:05 2008
@@ -41,21 +41,22 @@
test -n "$(XSLTPROC)"
-rm -fr html.tmp
$(MKDIR_P) html.tmp
- $(XSLTPROC) --nonet --xinclude -o "html.out/api.html"
"$(srcdir)/api/html.xsl" "$(srcdir)/api/api.xml"
- $(XSLTPROC) --nonet --xinclude -o "html.out/tools.html"
"$(srcdir)/api/html.xsl" "$(srcdir)/tools/tools.xml"
+ $(XSLTPROC) --nonet --xinclude -o "html.out/api.html"
"$(srcdir)/api/html.xsl" "api/api.xml"
+ $(XSLTPROC) --nonet --xinclude -o "html.out/tools.html"
"$(srcdir)/api/html.xsl" "tools/tools.xml"
mv html.tmp html.out
man.out/*.1: api/xsl-stylesheets
test -n "$(XSLTPROC)"
-rm -fr man.tmp
$(MKDIR_P) man.tmp
- $(XSLTPROC) --nonet --xinclude -o "man.out/" "$(srcdir)/api/man.xsl"
"$(srcdir)/api/api.xml"
- $(XSLTPROC) --nonet --xinclude -o "man.out/" "$(srcdir)/api/man.xsl"
"$(srcdir)/tools/tools.xml"
+ $(XSLTPROC) --nonet --xinclude -o "man.out/" "$(srcdir)/api/man.xsl"
"api/api.xml"
+ $(XSLTPROC) --nonet --xinclude -o "man.out/" "$(srcdir)/api/man.xsl"
"tools/tools.xml"
mv man.tmp man.out
man.out/*.3 man.out/*.5: man.out/*.1
api/xsl-stylesheets:
+ -mkdir api
$(LN_S) "$(xslstylesheetsdir)" api/xsl-stylesheets
else
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel