[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk 3.1.0 DEFPATH problem
From: |
Aharon Robbins |
Subject: |
Re: gawk 3.1.0 DEFPATH problem |
Date: |
Sun, 14 Apr 2002 14:13:19 +0300 |
Once more into the breach:
> Date: Fri, 5 Apr 2002 22:31:06 -0800 (PST)
> From: Tony Leneis <address@hidden>
> To: address@hidden
> Subject: gawk 3.1.0 DEFPATH problem
>
> I just upgraded from gawk 3.0.3 to gawk 3.1.0 and discovered that
> the default for AWKPATH has changed. It used to be
>
> .:/usr/local/share/awk
>
> but now it's
>
> .:/usr/local/share
>
> I suspect this is a bug, since 3.1.0 still includes a number of files in
> /usr/local/share/awk (most notably getopt.awk for me.) I was able to solve
> the problem by changing the definition of DEFPATH in the Makefile from
>
> DEFPATH = "\".:$(datadir)\""
>
> to
>
> DEFPATH = "\".:$(datadir)/awk\""
>
> This was on a Tru64 4.0F system and the Makefile was generated by running
> configure without any options, if it makes a difference...
>
> -Tony
As mentioned, it's a bug. Disregard my previous fix.
The correct fix is to add these lines:
# Set autoconf Makefile.in variables correctly
datadir = @datadir@/awk
libexecdir = @libexecdir@/awk
in front of the setting of DEFPATH in Makefile.am. Then rebuild
with automake 1.5, but not automake 1.6, since I haven't switched
autoconf versions yet.
Diffs of my current sources against 3.1.0 have other stuff in them, it
doesn't pay to post them here.
Thanks,
Arnold