[Pcsclite-cvs-commit] CVS libmusclecard
CVS User rousseau
ludovic.rousseau@free.fr
Wed, 06 Oct 2004 03:13:19 -0600
Update of /cvsroot/pcsclite/libmusclecard
In directory haydn:/tmp/cvs-serv23172
Added Files:
AUTHORS COPYING ChangeLog INSTALL Makefile.am NEWS README
bootstrap configure.in
Log Message:
new build infrastructure. Patch from Toni Andjelkovic
--- /cvsroot/pcsclite/libmusclecard/AUTHORS 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/AUTHORS 2004/10/06 09:13:19 1.1
Main authors:
David Corcoran <corcoran@linuxnet.com>
Ludovic Rousseau <ludovic.rousseau@free.fr>
--- /cvsroot/pcsclite/libmusclecard/COPYING 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/COPYING 2004/10/06 09:13:19 1.1
Copyright (c) 1999-2003 David Corcoran <corcoran@linuxnet.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
Changes to this license can be made only by the copyright author with
explicit written consent.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- /cvsroot/pcsclite/libmusclecard/ChangeLog 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/ChangeLog 2004/10/06 09:13:19 1.1
0.9.1 - Mi Sep 29 03:27:08 CEST 2004, Toni Andjelkovic
- split from pcsclite
- autoconf/automake support
--- /cvsroot/pcsclite/libmusclecard/INSTALL 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/INSTALL 2004/10/06 09:13:19 1.1
PKG_CONFIG_PATH=/usr/local/pcsc/lib/pkgconfig
./configure --prefix=/usr/local/musclecard
make install
--- /cvsroot/pcsclite/libmusclecard/Makefile.am 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/Makefile.am 2004/10/06 09:13:19 1.1
# Process this file with automake to create Makefile.in.
SUBDIRS = doc src utils
EXTRA_DIST = bootstrap ChangeLog.cvs
ChangeLog.cvs:
rcs2log | perl -pe 's/rousseau /Ludovic Rousseau /; \
s/corcoran /David Corcoran /; s/oznet /Chris Osgood/; \
s/toni-guest /Toni Andjelkovic/' > $@
--- /cvsroot/pcsclite/libmusclecard/NEWS 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/NEWS 2004/10/06 09:13:19 1.1
--- /cvsroot/pcsclite/libmusclecard/README 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/README 2004/10/06 09:13:19 1.1
Title : MuscleCard
Authors : David Corcoran, Ludovic Rousseau
Version : 1.0.0
License : See file COPYING
Document: docs/muscle-api-1.3.0.pdf
--- /cvsroot/pcsclite/libmusclecard/bootstrap 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/bootstrap 2004/10/06 09:13:19 1.1
#!/bin/sh
[ -f Makefile ] && make distclean
autoreconf --verbose --install
--- /cvsroot/pcsclite/libmusclecard/configure.in 2004/10/06 09:13:19 NONE
+++ /cvsroot/pcsclite/libmusclecard/configure.in 2004/10/06 09:13:19 1.1
dnl Process this file with autoconf to produce a configure script
dnl Require autoconf 2.52
AC_PREREQ(2.52)
AC_INIT(libmusclecard, 0.9.1)
AC_CONFIG_SRCDIR(src/musclecard.c)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE()
dnl Options
AM_MAINTAINER_MODE
dnl check programs
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AM_PROG_LIBTOOL
dnl compiler features
AC_C_BIGENDIAN
AC_C_INLINE
dnl check header files
AC_HEADER_STDC
AC_HEADER_STAT
AC_HEADER_DIRENT
AC_CHECK_HEADER(stdio.h)
AC_CHECK_HEADER(string.h)
AC_CHECK_HEADER(errno.h)
dnl check library functions
AC_FUNC_STAT
AC_FUNC_MALLOC
AC_CHECK_FUNCS(closedir fgets strlen memcpy opendir)
AC_CHECK_FUNCS(readdir sprintf strcmp strstr)
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_PATH
PKG_CHECK_MODULES(PCSCLITE, libpcsclite)
if ! `pkg-config --print-errors --atleast-version=1.2.9-beta7 libpcsclite`
then
AC_MSG_ERROR([install pcsc-lite 1.2.9-beta7 or later])
fi
dnl special check for pthread support
ACX_PTHREAD(
[
AC_DEFINE(HAVE_PTHREAD, 1,
[Define if you have POSIX threads libraries and header files.])
], [
AC_MSG_ERROR([POSIX thread support required])
])
if test x"$HAVE_PTHREAD" == 1; then
CC="$PTHREAD_CC"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"
fi
dnl strlcpy, strlcat from OpenBSD
AC_CHECK_FUNC(strlcpy,
need_strlcpy=false; AC_DEFINE(HAVE_STRLCPY, 1, [have strlcpy])
, need_strlcpy=true)
AM_CONDITIONAL(NEED_STRLCPY, test x$need_strlcpy=xtrue)
AC_CHECK_FUNC(strlcat,
need_strlcat=false; AC_DEFINE(HAVE_STRLCAT, 1, [have strlcat])
, need_strlcat=true)
AM_CONDITIONAL(NEED_STRLCAT, test x$need_strlcat=xtrue)
dnl Use 'uname' output as an architecture define
uname=`uname`
case "$uname" in
Darwin)
uname=MacOS
;;
esac
AC_DEFINE_UNQUOTED(MSC_ARCH, "$uname", [MuscleCard target architecture])
dnl --enable-muscledropdir=DIR
AC_ARG_ENABLE(muscledropdir,
AC_HELP_STRING([--enable-muscledropdir=DIR],[directory containing
MuscleCard bundles (default /usr/local/pcsc/services)]),
[muscledropdir="${enableval}"], [muscledropdir=false])
if test x${muscledropdir} = xfalse ; then
if test "x$prefix" != xNONE; then
muscledropdir="$prefix/services"
else
muscledropdir="$ac_default_prefix/pcsc/services"
fi
fi
AC_MSG_RESULT([enable MuscleCard bundles dir : $muscledropdir])
AC_DEFINE_UNQUOTED(MSC_SVC_DROPDIR, "$muscledropdir", [directory containing MuscleCard bundles])
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],[enable debug messages from pcscd]),
[ case "${enableval}" in
yes)
debug=true ;;
no)
debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac], [debug=true])
AC_MSG_RESULT([enable debug messages : $debug])
if test x${debug} = xfalse ; then
AC_DEFINE(NO_MSC_DEBUG, 1, [disable MuscleCard debug messaging.])
fi
dnl Setup dist stuff
AC_SUBST(muscledropdir)
dnl Write Makefiles
AC_OUTPUT([
Makefile
doc/Makefile
src/Makefile
src/libmusclecard.pc
utils/Makefile
utils/bundleTool/Makefile
utils/bundleTool/bundleTool.8
])