Hi Harlan, On 08/18/12 14:41, Harlan Stenn wrote:
Have you tried using pkg-config in autogen's configure to find the guile CFLAGS and loader stuff?
I'd prefer to use guile.m4, even though it uses guile-config. It insists. Unfortunately, it does not work. For me.
configure.ac:140: the top level configure:14130: error: possibly undefined macro: AC_LIB_LINKFLAGS_FROM_LIBS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. bootstrap failure: trapped exit signal mk-all: line 197: 5702 Killed
Here's the configure script fragment with the reference:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5 $as_echo_n "checking libguile link flags... " >&6; } GUILE_LDFLAGS="`$GUILE_CONFIG link`" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5 $as_echo "$GUILE_LDFLAGS" >&6; } AC_LIB_LINKFLAGS_FROM_LIBS(GUILE_LIBS, $GUILE_LDFLAGS, ) GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS" AC_LIB_LINKFLAGS_FROM_LIBS(GUILE_LTLIBS, $GUILE_LDFLAGS, yes) GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
Since this guile.m4 comes from Guile 2.0.4, it is recent enough that any fully supported AC_* macro should not have been removed from autoconf 2.69. If I delete the GUILE_FLAGS invocation, then all is fine. *sigh*.