[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conditional LDFLAGS not working
From: |
Sam Bromley |
Subject: |
Conditional LDFLAGS not working |
Date: |
Tue, 04 Mar 2008 16:39:29 -0330 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20080227) |
Hi all,
I have a problem with conditional LDFLAGS showing up
at the *end* of the generated Makefile, rather than
where I expect them to show up.
I really don't know what else to try. Here is my latest
attempt:
In configure.ac:
AC_ARG_ENABLE([tclstubs],
AS_HELP_STRING([--enable-tclstubs],[use Tcl stubs interface (default is
YES)]),
[case "${enableval}" in
yes) ac_cv_enable_tclstubs=$enableval;;
no) ac_cv_enable_tclstubs=$enableval;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-tclstubs]);;
esac],[ac_cv_enable_tclstubs=yes])
AC_CACHE_CHECK([whether to use Tcl stubs],
[ac_cv_enable_tclstubs],
[ac_cv_enable_tclstubs=yes])
AM_CONDITIONAL([COND_TCLSTUBS],[test "x$ac_cv_enable_tclstubs" = "xyes"])
if test "x${ac_cv_enable_tclstubs}" = "xyes"; then
AC_DEFINE(USE_TCL_STUBS,1,[Use Tcl stubs])
fi
------------
In Makefile.am:
libTclParseArgv_la_LDFLAGS = -export-dynamic
if COND_TCLSTUBS
libTclParseArgv_la_LDFLAGS += @TCL_STUB_LIB_SPEC@
else
libTclParseArgv_la_LDFLAGS += @TCL_LIB_SPEC@
endif
-----
But in the generated Makefile, the line
libTclParseArgv_la_LDFLAGS += -L/usr/lib -ltclstub8.4
shows up at the *end*, after any other targets are
defined.
Can anyone please help? I don't know what
else to try or where to look.
Please CC me as I am not subscribed.
Thank you,
Sam
- Conditional LDFLAGS not working,
Sam Bromley <=