From: Akim Demaille Date: Tue, 1 Aug 2000 08:21:38 +0000 (+0000) Subject: * doc/autoconf.texi (Installation Directory Variables): X-Git-Tag: autoconf-2.50~688 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c528b19557e882531dd466efac6bc8decb5468ab;p=thirdparty%2Fautoconf.git * doc/autoconf.texi (Installation Directory Variables): Clarifications and typos. --- diff --git a/ChangeLog b/ChangeLog index 057171fc7..133486130 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-08-01 Greg A. Woods + + * doc/autoconf.texi (Installation Directory Variables): + Clarifications and typos. + 2000-08-01 Didier Verna * acgeneral.m4 (AC_REVISION): Put a dot at the end of the line. diff --git a/THANKS b/THANKS index 9e2044741..f9e4a5d62 100644 --- a/THANKS +++ b/THANKS @@ -42,6 +42,7 @@ Glenn P. Davis davis@unidata.ucar.edu Godmar Back gback@cs.utah.edu Gordon Matzigkeit gord@trick.fig.org Graham Jenkins c714553@vus415.telstra.com.au +Greg A. Woods woods@weird.com Guido Flohr gufl0000@stud.uni-sb.de Guillermo Gomez gomez@mi.uni-erlangen.de Hans Olsson Hans.Olsson@dna.lth.se diff --git a/doc/autoconf.texi b/doc/autoconf.texi index e08375c25..407bfc8e6 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -1812,12 +1812,12 @@ current value of @code{prefix}. A corollary is that you should not use these variables but in Makefiles. For instance instead of trying to resolve the dependencies of @code{datadir} upon @code{prefix} and using -@samp{AC_DEFINE_UNQUOTED(DATADIR, $datadir)}, you should add -@samp{-DDATADIR=$(datadir)} to your @code{CFLAGS}. +@samp{AC_DEFINE_UNQUOTED(DATADIR, "$datadir")}, you should add +@samp{-DDATADIR="$(datadir)"} to your @code{CFLAGS}. Similarly you should not rely on @code{AC_OUTPUT_FILES} to replace @code{datadir} and friends in your shell scripts and other files, rather -let @command{make} their replacement. For instance Autoconf ships +let @command{make} manage their replacement. For instance Autoconf ships templates of its shell scripts ending with @samp{.sh}, and uses this Makefile snippet: @@ -1834,13 +1834,15 @@ Three things are noteworthy: @table @samp @item @@datadir\@@ The backslash prevents @command{configure} from replacing -@samp{@@datadir@@}. +@samp{@@datadir@@} in the sed expression itself. @item $(pkgdatadir) -Don't use @samp{@@datadir@@}! +Don't use @samp{@@pkgdatadir@@}! Use the matching makefile variable +instead. @item , -Don't use @samp{/} since most probably @samp{$(pkgdatadir)} will have +Don't use @samp{/} in the sed expression(s) since most probably the +variables you use, such as @samp{$(pkgdatadir)}, will contain some. @end table