From 67b9859bc89d4bd645b9756d688500de2ea52c95 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Wed, 23 Nov 2005 09:51:54 +0000 Subject: [PATCH] Check for gnustep make being installed. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@22084 72102866-910b-0410-8b05-ffd578937521 --- configure | 11 +++++++++++ configure.ac | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/configure b/configure index 17be630..7d0b3d0 100755 --- a/configure +++ b/configure @@ -1294,6 +1294,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" +if test -z "$GNUSTEP_MAKEFILES"; then + { { echo "$as_me:$LINENO: error: You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!" >&5 +echo "$as_me: error: You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!" >&2;} + { (exit 1); exit 1; }; } +fi + +# Fetch basic path information from config file. +GNUSTEP_CONFIG_FILE=`grep '^GNUSTEP_CONFIG_FILE *=' $GNUSTEP_MAKEFILES/config.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/'` +. "$GNUSTEP_CONFIG_FILE" + +#-------------------------------------------------------------------- # Check whether --with-additional-include or --without-additional-include was given. if test "${with_additional_include+set}" = set; then diff --git a/configure.ac b/configure.ac index 06060e5..930602e 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,15 @@ dnl Process this file with autoconf to produce configure. AC_INIT(SQLClient.h) AC_CONFIG_HEADER(config.h) +if test -z "$GNUSTEP_MAKEFILES"; then + AC_MSG_ERROR([You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!]) +fi + +# Fetch basic path information from config file. +GNUSTEP_CONFIG_FILE=`grep '^GNUSTEP_CONFIG_FILE *=' $GNUSTEP_MAKEFILES/config.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/'` +. "$GNUSTEP_CONFIG_FILE" + +#-------------------------------------------------------------------- AC_ARG_WITH(additional-include, [ --with-additional-include=flags specify additional include dirs to use], additional_include="$withval", additional_include="no")