The ltoptions machinery has one little bug. Two showstoppers are the result of this: AC_DISABLE_STATIC not working, and AC_LIBTOOL_WIN32_DLL not working. (The other old-style option setting macros don't work either, I believe):
To reproduce: AC_INIT(a,1,b) AM_INIT_AUTOMAKE(foreign) AC_PROG_CC AM_ENABLE_SHARED AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL AC_CONFIG_FILES(Makefile) AC_OUTPUT and AC_INIT(a,1,b) AM_INIT_AUTOMAKE(foreign) AC_PROG_CC AC_LIBTOOL_DLOPEN LT_INIT([enable-shared]) AC_CONFIG_FILES(Makefile) AC_OUTPUT should produce an identical configure script. They don't: the first one is missing completely the expansion of _LT_ENABLE_SHARED, the second one is OK. I don't know whether there is a more generic solution than Robert's idea: http://lists.gnu.org/archive/html/libtool/2005-03/msg00158.html or even whether Robert's idea is a correct solution. But it applies to all of the option macros. Can someone with m4-fu see this and fix it? Cheers, Ralf
