dnl -*- Mode: M4 -*- dnl -------------------------------------------------------------------- dnl make.m4 --- determine correct make include syntax. dnl dnl Author: Gary V. Vaughan dnl Maintainer: Gary V. Vaughan dnl Created: Mon Jul 20 01:23:02 1998 dnl Last Modified: Wed Jul 22 01:52:32 1998 dnl by: Gary V. Vaughan dnl -------------------------------------------------------------------- dnl @(#) $Id$ dnl -------------------------------------------------------------------- dnl dnl Copyright (C) 1998 Gary V. Vaughan dnl dnl This file is distributed freely, but without warranty. No author or dnl distributer accepts responsibility to anyone for any damage caused dnl to hardware or software through the use or misuse of this file in dnl any form, or for whether it serves any particular purpose or works dnl at all, regardless of further modifications made to it by any dnl subsequent distributers. dnl dnl Permission is granted to copy, use, modify or redistribute this file dnl provided the copyright notice and this notice remains intact in its dnl entirety in any and all subsequent copies. dnl dnl Code: # Find the include syntax used by the make program, define MAKEINCLUDE # and MAKEQUOTE so that using the following in a Makefile.in should work # most anywhere: # @MAKEINCLUDE@ @address@hidden@MAKEQUOTE@ # serial 1 dnl LILAC_PROG_MAKE_INCLUDE dnl Some make programs require includes to be dnl .include "file" dnl others... dnl include file dnl Checks the MAKE environment variable for the name of the make command dnl to use. AC_DEFUN(LILAC_PROG_MAKE_INCLUDE, [AC_MSG_CHECKING([how make handles includes]) AC_CACHE_VAL(lilac_cv_prog_make_include, [cat > confmakeinc < confmakefile </dev/null 2>&1; then lilac_cv_make_include="include" lilac_cv_make_quote='' else lilac_cv_make_include=".include" lilac_cv_make_quote='"' fi rm confmakefile confmakeinc]) AC_MSG_RESULT([$lilac_cv_make_include ${lilac_cv_make_quote}file${lilac_cv_make_quote}]) MAKEINCLUDE=$lilac_cv_make_include MAKEQUOTE=$lilac_cv_make_quote AC_SUBST(MAKEINCLUDE) AC_SUBST(MAKEQUOTE)]) dnl make.m4 ends here