Bug 29849

Summary: autoconf does not handle INSTALL environment variable correctly
Product: Ports & Packages Reporter: papowell
Component: Individual Port(s)Assignee: Alan Eldridge <alane>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description papowell 2001-08-18 18:00:01 UTC
I was using autoconf to generate an update for a distribution and
found that when I set the 'INSTALL' environment variable the
value of INSTALL was not getting passed to 'sub configures'.

The culprit was a test in the configure acgeneral.m4 file:
it does:

ifdef([AC_PROVIDE_AC_PROG_INSTALL],
 [  case "$ac_given_INSTALL" in
    [/$]*) INSTALL="$ac_given_INSTALL" ;;
    *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
   esac
  ])dnl

but if the INSTALL variable is set to the empty string it
causes '../' to be passed to sub-configures.  You want to add
a test for the empty string:

ifdef([AC_PROVIDE_AC_PROG_INSTALL],
 [ if test -n "$ac_given_INSTALL" ; then case "$ac_given_INSTALL" in
    [/$]*) INSTALL="$ac_given_INSTALL" ;;
    *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
   esac; fi
  ])dnl
Comment 1 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2001-09-03 17:58:46 UTC
Responsible Changed
From-To: freebsd-ports->torstenb

Over to maintainer
Comment 2 Pete Fritchman freebsd_committer freebsd_triage 2001-09-21 17:34:23 UTC
Responsible Changed
From-To: torstenb->portmgr

The maintainer of autoconf is portmgr now
Comment 3 Kris Kennaway freebsd_committer freebsd_triage 2003-01-25 00:23:44 UTC
Responsible Changed
From-To: portmgr->alane

alane maintains autoconf, not portmgr
Comment 4 Alan Eldridge freebsd_committer freebsd_triage 2003-01-25 00:44:17 UTC
State Changed
From-To: open->feedback

Need to know more details about this.
Comment 5 Alan Eldridge freebsd_committer freebsd_triage 2003-02-04 01:57:32 UTC
State Changed
From-To: feedback->closed

Should be submitted to GNU, no response from submittor