[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -gui and ffcall/ffi
From: |
Alexander Malmberg |
Subject: |
Re: -gui and ffcall/ffi |
Date: |
Thu, 27 Mar 2003 19:47:35 +0100 |
Thomas Cherryhomes wrote:
[snip]
> I suggested that ffcall should now be a requirement. Alex suggested that we
> should put a flag in base that allows one to override the requirement of
> ffcall
> from base.
I've attached a patch that does this (only for configure.ac; remember to
run autoconf if you want to test it). If neither ffcall nor ffi is
found, and --disable-do is not passed in, it prints an explanation (in
addition to the existing warning):
""
You most likely do not want to build -base without DO support. Many
things, including all applications, won't work at all without DO.
If you really want to build -base without DO support, add --disable-do
to the configure arguments.
""
and fails. Perhaps the explanation should be extended to say that
ffcall is recommended, and with url:s to it and/or the build guide.
Any comments? Should I commit this?
- Alexander Malmberg
Index: configure.ac
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/configure.ac,v
retrieving revision 1.13
diff -u -r1.13 configure.ac
--- configure.ac 23 Mar 2003 07:06:26 -0000 1.13
+++ configure.ac 27 Mar 2003 18:41:29 -0000
@@ -858,6 +858,10 @@
[ --enable-ffcall Enable use of ffcall library],,
enable_ffcall=yes)
+AC_ARG_ENABLE(do,
+ [ --disable-do Compile even if DO-dependencies are not
met],,
+ enable_do=yes)
+
AC_CHECK_HEADER(ffi.h, , enable_libffi=no)
AC_MSG_CHECKING("for forwarding callback in runtime")
@@ -881,11 +885,20 @@
AC_MSG_RESULT(ffcall)
else
AC_MSG_RESULT(none)
- AC_MSG_WARN([No ffcall interface library found])
echo
- echo "GNUstep requires the ffcall library to do invocations and DO"
- echo "Make sure this library is installed (see installation instructions)"
- echo "Otherwise DO will not be compatible with other systems"
+ echo "GNUstep requires the ffcall library to do invocations and DO."
+ echo "Make sure this library is installed (see installation instructions)."
+ echo "Otherwise DO will not be compatible with other systems, and you will
not"
+ echo "be able to use gnustep-gui."
+ if test $enable_do = yes; then
+ echo
+ echo "You most likely do not want to build -base without DO support. Many"
+ echo "things, including all applications, won't work at all without DO."
+ echo "If you really want to build -base without DO support, add
--disable-do"
+ echo "to the configure arguments."
+ AC_MSG_ERROR([No ffcall interface library found.])
+ fi
+ AC_MSG_WARN([No ffcall interface library found])
fi
AC_SUBST(WITH_FFI)