From: David MacKenzie Date: Sat, 26 Mar 1994 22:34:06 +0000 (+0000) Subject: Document AC_SET_MAKE. X-Git-Tag: fsf-origin~745 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=882abaa861cae90fdf191fd40c6eff1965c08b37;p=thirdparty%2Fautoconf.git Document AC_SET_MAKE. Note that vsprintf and vfprintf come with vprintf. Note that env can be used to set env vars. --- diff --git a/autoconf.texi b/autoconf.texi index fc633f1dd..56d00ed27 100644 --- a/autoconf.texi +++ b/autoconf.texi @@ -4,10 +4,10 @@ @settitle Autoconf @setchapternewpage odd @c %**end of header -@c Use on instead of odd in the setchapternewpage for single-sided printing. +@c For single-sided printing, use on instead of odd in the setchapternewpage. -@set EDITION 1.7.7 -@set VERSION 1.7.7 +@set EDITION 1.7.8 +@set VERSION 1.7.8 @set UPDATED March 1994 @iftex @@ -627,6 +627,26 @@ exists (implying the @code{rexec} function), and in addition define available, define @code{NO_REMOTE}. @end defmac +@defmac AC_SET_MAKE +@maindex SET_MAKE +If @code{make} predefines the variable @code{MAKE}, define @code{make} +variable @code{SET_MAKE} to be empty. Otherwise, define @code{SET_MAKE} +to contain @samp{MAKE=make}. Calls @code{AC_SUBST} for @code{SET_MAKE}. + +In recent versions of @code{make}, the variable @code{MAKE} contains the +name of the @code{make} program plus options it was given. It is used +when running @code{make} recursively in subdirectories. But some old +versions of @code{make} don't set the @code{MAKE} variable. +This macro allows use of @code{MAKE} on all systems. + +If you use this macro, simply place a line like this in your +@file{Makefile.in} file(s): + +@example +@@SET_MAKE@@ +@end example +@end defmac + @node Header Files, Typedefs, Alternative Programs, Specific Tests @section Header Files @@ -1022,7 +1042,9 @@ detects any of them. @vindex HAVE_VPRINTF @vindex HAVE_DOPRNT If @code{vprintf} is found, define @code{HAVE_VPRINTF}. Otherwise, if -@code{_doprnt} is found, define @code{HAVE_DOPRNT}. +@code{_doprnt} is found, define @code{HAVE_DOPRNT}. (If @code{vprintf} +is available, you may assume that @code{vfprintf} and @code{vsprintf} +are also available.) @end defmac @defmac AC_WAIT3 @@ -2655,6 +2677,13 @@ command line like this: CC='gcc -traditional' LIBS=-lposix ./configure @end example +@noindent +On systems that have the @code{env} program, you can do it like this: + +@example +env CC='gcc -traditional' LIBS=-lposix ./configure +@end example + Here are the @code{make} variables that you might want to override with environment variables when running @code{configure}. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index fc633f1dd..56d00ed27 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4,10 +4,10 @@ @settitle Autoconf @setchapternewpage odd @c %**end of header -@c Use on instead of odd in the setchapternewpage for single-sided printing. +@c For single-sided printing, use on instead of odd in the setchapternewpage. -@set EDITION 1.7.7 -@set VERSION 1.7.7 +@set EDITION 1.7.8 +@set VERSION 1.7.8 @set UPDATED March 1994 @iftex @@ -627,6 +627,26 @@ exists (implying the @code{rexec} function), and in addition define available, define @code{NO_REMOTE}. @end defmac +@defmac AC_SET_MAKE +@maindex SET_MAKE +If @code{make} predefines the variable @code{MAKE}, define @code{make} +variable @code{SET_MAKE} to be empty. Otherwise, define @code{SET_MAKE} +to contain @samp{MAKE=make}. Calls @code{AC_SUBST} for @code{SET_MAKE}. + +In recent versions of @code{make}, the variable @code{MAKE} contains the +name of the @code{make} program plus options it was given. It is used +when running @code{make} recursively in subdirectories. But some old +versions of @code{make} don't set the @code{MAKE} variable. +This macro allows use of @code{MAKE} on all systems. + +If you use this macro, simply place a line like this in your +@file{Makefile.in} file(s): + +@example +@@SET_MAKE@@ +@end example +@end defmac + @node Header Files, Typedefs, Alternative Programs, Specific Tests @section Header Files @@ -1022,7 +1042,9 @@ detects any of them. @vindex HAVE_VPRINTF @vindex HAVE_DOPRNT If @code{vprintf} is found, define @code{HAVE_VPRINTF}. Otherwise, if -@code{_doprnt} is found, define @code{HAVE_DOPRNT}. +@code{_doprnt} is found, define @code{HAVE_DOPRNT}. (If @code{vprintf} +is available, you may assume that @code{vfprintf} and @code{vsprintf} +are also available.) @end defmac @defmac AC_WAIT3 @@ -2655,6 +2677,13 @@ command line like this: CC='gcc -traditional' LIBS=-lposix ./configure @end example +@noindent +On systems that have the @code{env} program, you can do it like this: + +@example +env CC='gcc -traditional' LIBS=-lposix ./configure +@end example + Here are the @code{make} variables that you might want to override with environment variables when running @code{configure}.