diff options
author | Eric Blake <ebb9@byu.net> | 2009-02-24 09:27:15 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-02-24 09:38:01 -0700 |
commit | b35598a688ebba088500e96735bf25f920db6192 (patch) | |
tree | 343bd4ee4e3b0603e4c877b38a985c57357f805b /bin | |
parent | 4da1abd28bae9bbe54e49159929f33628476fc9a (diff) | |
download | autoconf-b35598a688ebba088500e96735bf25f920db6192.tar.gz |
Use pkgdatadir consistently.
* bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
* lib/Makefile.am (edit): Likewise.
* lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
(M4sugar): Use @pkgdatadir@, not @datadir@.
* bin/autoheader.in ($datadir): Likewise.
* bin/autom4te.in ($datadir): Likewise.
* bin/autoreconf.in ($datadir): Likewise.
* bin/autoscan.in ($datadir): Likewise.
* bin/autoupdate.in ($datadir): Likewise.
* bin/ifnames.in ($datadir): Likewise.
* doc/autoconf.texi (Installation Directory Variables): Update
example to be consistent; focus on $(bindir) as an autoconf
variable, and mention that $(pkgdatadir) comes from automake.
Reported by Reuben Thomas.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/Makefile.am | 6 | ||||
-rw-r--r-- | bin/autoheader.in | 4 | ||||
-rw-r--r-- | bin/autom4te.in | 8 | ||||
-rw-r--r-- | bin/autoreconf.in | 4 | ||||
-rw-r--r-- | bin/autoscan.in | 6 | ||||
-rw-r--r-- | bin/autoupdate.in | 6 | ||||
-rw-r--r-- | bin/ifnames.in | 4 |
7 files changed, 19 insertions, 19 deletions
diff --git a/bin/Makefile.am b/bin/Makefile.am index acb5e61b..ba88ab01 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -1,7 +1,7 @@ # Make Autoconf commands. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free -# Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, +# 2009 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -39,7 +39,7 @@ edit = sed \ -e 's|@SHELL[@]|$(SHELL)|g' \ -e 's|@PERL[@]|$(PERL)|g' \ -e 's|@bindir[@]|$(bindir)|g' \ - -e 's|@datadir[@]|$(pkgdatadir)|g' \ + -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \ -e 's|@prefix[@]|$(prefix)|g' \ -e 's|@autoconf-name[@]|'`echo autoconf | sed '$(transform)'`'|g' \ -e 's|@autoheader-name[@]|'`echo autoheader | sed '$(transform)'`'|g' \ diff --git a/bin/autoheader.in b/bin/autoheader.in index 66a2f2cf..9f9fba36 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -31,8 +31,8 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' BEGIN { - my $datadir = $ENV{'autom4te_perllibdir'} || '@datadir@'; - unshift @INC, "$datadir"; + my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; + unshift @INC, "$pkgdatadir"; # Override SHELL. On DJGPP SHELL may not be set to a shell # that can handle redirection and quote arguments correctly, diff --git a/bin/autom4te.in b/bin/autom4te.in index 946452cd..471b1656 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -27,8 +27,8 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' BEGIN { - my $datadir = $ENV{'autom4te_perllibdir'} || '@datadir@'; - unshift @INC, $datadir; + my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; + unshift @INC, $pkgdatadir; # Override SHELL. On DJGPP SHELL may not be set to a shell # that can handle redirection and quote arguments correctly, @@ -47,7 +47,7 @@ use File::Basename; use strict; # Data directory. -my $datadir = $ENV{'AC_MACRODIR'} || '@datadir@'; +my $pkgdatadir = $ENV{'AC_MACRODIR'} || '@pkgdatadir@'; # $LANGUAGE{LANGUAGE} -- Automatic options for LANGUAGE. my %language; @@ -958,7 +958,7 @@ sub freeze ($) ## -------------- ## mktmpdir ('am4t'); -load_configuration ($ENV{'AUTOM4TE_CFG'} || "$datadir/autom4te.cfg"); +load_configuration ($ENV{'AUTOM4TE_CFG'} || "$pkgdatadir/autom4te.cfg"); load_configuration ("$ENV{'HOME'}/.autom4te.cfg") if exists $ENV{'HOME'} && -f "$ENV{'HOME'}/.autom4te.cfg"; load_configuration (".autom4te.cfg") diff --git a/bin/autoreconf.in b/bin/autoreconf.in index 9bedbf64..2eae7176 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -29,8 +29,8 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' BEGIN { - my $datadir = $ENV{'autom4te_perllibdir'} || '@datadir@'; - unshift @INC, $datadir; + my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; + unshift @INC, $pkgdatadir; # Override SHELL. On DJGPP SHELL may not be set to a shell # that can handle redirection and quote arguments correctly, diff --git a/bin/autoscan.in b/bin/autoscan.in index df39c9b1..75abd1cd 100644 --- a/bin/autoscan.in +++ b/bin/autoscan.in @@ -28,8 +28,8 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' BEGIN { - my $datadir = $ENV{'autom4te_perllibdir'} || '@datadir@'; - unshift @INC, $datadir; + my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; + unshift @INC, $pkgdatadir; # Override SHELL. On DJGPP SHELL may not be set to a shell # that can handle redirection and quote arguments correctly, @@ -97,7 +97,7 @@ my $log; my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@'; my $autoconf = "$autom4te --language=autoconf"; my @prepend_include; -my @include = ('@datadir@'); +my @include = ('@pkgdatadir@'); # $help # ----- diff --git a/bin/autoupdate.in b/bin/autoupdate.in index 50987b47..e6f17e7f 100644 --- a/bin/autoupdate.in +++ b/bin/autoupdate.in @@ -29,8 +29,8 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' BEGIN { - my $datadir = $ENV{'autom4te_perllibdir'} || '@datadir@'; - unshift @INC, $datadir; + my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; + unshift @INC, $pkgdatadir; # Override SHELL. On DJGPP SHELL may not be set to a shell # that can handle redirection and quote arguments correctly, @@ -53,7 +53,7 @@ my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@'; my $autoconf = "$autom4te --language=autoconf"; # We need to find m4sugar. my @prepend_include; -my @include = ('@datadir@'); +my @include = ('@pkgdatadir@'); my $force = 0; # m4. my $m4 = $ENV{"M4"} || '@M4@'; diff --git a/bin/ifnames.in b/bin/ifnames.in index f99e4b97..d470744c 100644 --- a/bin/ifnames.in +++ b/bin/ifnames.in @@ -33,8 +33,8 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' BEGIN { - my $datadir = $ENV{'autom4te_perllibdir'} || '@datadir@'; - unshift @INC, $datadir; + my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; + unshift @INC, $pkgdatadir; # Override SHELL. On DJGPP SHELL may not be set to a shell # that can handle redirection and quote arguments correctly, |