Hello,

At the moment I try to compile the MCardPlugin.

Again the the chain of autoconf - configure ... is making trouble.

I found the reconf script and executed.

But it does not compile after a configure. After hours of reading autoconf and automake I found a problem:

PKG_CHECK_MODULES(MUSCLECARD, libmusclecard)
AC_SUBST(MUSCLECARD_LIBS)
AC_SUBST(MUSCLECARD_CFLAGS)

The AC_SUBSTs were missing. So this necessary variables were never set in the src/Makefile. How could it compile??? At me never without.

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

In addition I made a cosmetic correction:

AC_INIT(MuscleCard CardEdge Plug-in, 1.3.0)
AC_COPYRIGHT(COPYING)
AM_INIT_AUTOMAKE(MCardPlugin, 1.3.0)
AM_CONFIG_HEADER(config.h)

The AC_INIT style has changed since some time, I have read.

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

It should be pointed out, that the switch --enable-debug is important to get debugging messages.

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

There is a strange problem and I can't imagine that is is intended to be like this:

In the file Makefile.am I had to give the libmusclecardApplet_la_CPPFLAGS to AM_CPPFLAGS. Else it does not compile, the necessary header files are not included automatically by the configure process.

libmusclecardApplet_la_SOURCES = musclecardApplet.c musclecardApplet.h debug.c debug.h
libmusclecardApplet_la_CPPFLAGS = $(MUSCLECARD_CFLAGS)
libmusclecardApplet_la_LDFLAGS = -version-info 1:3:0 $(MUSCLECARD_LIBS) $(SOLARIS_LIBS)
AM_CPPFLAGS += $(libmusclecardApplet_la_CPPFLAGS)

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Maybe it is also important to mention, that pkg-config must be installed and the PK_CONFIG_PATH variable must be set to the correct directory, so that the libmusclecard.pc is found.

Bye, Karsten


_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to