From ac22c2d05f11659238f619154f7e9d6274de38a0 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 28 Mar 2003 20:03:06 +0000 Subject: [PATCH] Fail the configure if neither ffcall nor ffi are available unless overridden by --disable-do. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16287 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 9 +++++++++ configure | 30 ++++++++++++++++++++++++++---- configure.ac | 23 +++++++++++++++++++---- 3 files changed, 54 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5d0355f3b..f25a71e70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2003-03-28 20:48 Alexander Malmberg + + * configure.ac: Fail the configure if neither ffcall nor ffi is + available unless --disable-do is passed to configure. Add a message + about why a user most likely does not want to build with ffcall and + ffi, and with a link to the build guide. + + * configure: Regenerate. + 2003-03-27 Adam Fedor * Source/NSBundle.m ([NSBundle -bundleIdentifier]): New. diff --git a/configure b/configure index e8489a4ae..21ca13cb4 100755 --- a/configure +++ b/configure @@ -850,6 +850,7 @@ Optional Features: --enable-fake-main Force redefine of user main function --enable-libffi Enable use of libffi library --enable-ffcall Enable use of ffcall library + --disable-do Compile even if DO-dependencies are not met --disable-xmltest Do not try to compile and run a test XML program Optional Packages: @@ -11922,6 +11923,14 @@ else enable_ffcall=yes fi; +# Check whether --enable-do or --disable-do was given. +if test "${enable_do+set}" = set; then + enableval="$enable_do" + +else + enable_do=yes +fi; + if test "${ac_cv_header_ffi_h+set}" = set; then echo "$as_me:$LINENO: checking for ffi.h" >&5 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6 @@ -12252,12 +12261,25 @@ echo "${ECHO_T}ffcall" >&6 else echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6 + 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, 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." + echo "For more information, read the GNUstep build guide, ffcall section:" + echo "http://documents.made-it.com/GNUstep/buildguide.html" + { { echo "$as_me:$LINENO: error: No ffcall interface library found." >&5 +echo "$as_me: error: No ffcall interface library found." >&2;} + { (exit 1); exit 1; }; } + fi { echo "$as_me:$LINENO: WARNING: No ffcall interface library found" >&5 echo "$as_me: WARNING: No ffcall interface library found" >&2;} - 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" fi diff --git a/configure.ac b/configure.ac index aa431480f..649412492 100644 --- a/configure.ac +++ b/configure.ac @@ -858,6 +858,10 @@ AC_ARG_ENABLE(ffcall, [ --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,22 @@ elif test $enable_ffcall = yes; then 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." + echo "For more information, read the GNUstep build guide, ffcall section:" + echo "http://documents.made-it.com/GNUstep/buildguide.html" + AC_MSG_ERROR([No ffcall interface library found.]) + fi + AC_MSG_WARN([No ffcall interface library found]) fi AC_SUBST(WITH_FFI)