Bootstrap failure with --enable-debug
Jeff Sturm
jsturm@one-point.com
Wed May 30 22:59:00 GMT 2001
On 26 May 2001, Tom Tromey wrote:
> Jeff> While looking at a mysterious bootstrap failure today, I
> Jeff> realized that configuring with --enable-debug causes libffi to
> Jeff> disable its raw API, breaking the interpreter. Is that
> Jeff> intentional?
>> We should change it either way. I can't imagine how this would be
> useful.
It seems to me the use of AC_ARG_ENABLE in libffi/configure.in is just
plain wrong. Here's my attempt at fixing it. Can someone familiar with
autoconf tell me if I'm doing the right thing here?
Also, what is the normal version of autoconf for regenerating these?
The last release (2.13) results in a diff larger than expected.
2000年05月31日 Jeff Sturm <jsturm@one-point.com>
* configure.in: Fix AC_ARG_ENABLE usage.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libffi/configure.in,v
retrieving revision 1.10.4.4
diff -u -r1.10.4.4 configure.in
--- configure.in 2001年05月06日 12:54:48 1.10.4.4
+++ configure.in 2001年05月31日 05:45:41
@@ -95,14 +95,29 @@
AC_SUBST(SHELL)
-AC_ARG_ENABLE(debug,[ --enable-debug debugging mode], AC_DEFINE(FFI_DEBUG))
+AC_ARG_ENABLE(debug,
+[ --enable-debug debugging mode],
+ if test "$enable_debug" = "yes"; then
+ AC_DEFINE(FFI_DEBUG)
+ fi)
-AC_ARG_ENABLE(debug,[ --disable-structs omit code for struct support], AC_DEFINE(FFI_NO_STRUCTS))
+AC_ARG_ENABLE(structs,
+[ --disable-structs omit code for struct support],
+ if test "$enable_structs" = "no"; then
+ AC_DEFINE(FFI_NO_STRUCTS)
+ fi)
-AC_ARG_ENABLE(debug,[ --disable-raw-api make the raw api unavailable], AC_DEFINE(FFI_NO_RAW_API))
+AC_ARG_ENABLE(raw-api,
+[ --disable-raw-api make the raw api unavailable],
+ if test "$enable_raw_api" = "no"; then
+ AC_DEFINE(FFI_NO_RAW_API)
+ fi)
AC_ARG_ENABLE(purify-safety,
-[ --enable-purify-safety purify-safe mode], AC_DEFINE(USING_PURIFY))
+[ --enable-purify-safety purify-safe mode],
+ if test "$enable_purify_safety" = "yes"; then
+ AC_DEFINE(USING_PURIFY)
+ fi)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
More information about the Java
mailing list