Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2004 17:32:20 +0100
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   CONFIGURE_TARGET
Message-ID:  <20040109163220.GB5994@freepuppy.bellavista.cz>

next in thread | raw e-mail | index | archive | help
bsd.port.mk defines

    CONFIGURE_TARGET?=	${MACHINE_ARCH}-portbld-freebsd${OSREL}

but porters-handbook/makefile-build.html says

    Note: If your package uses GNU configure, and the resulting
    executable file has a ``strange'' name like
    i386-portbld-freebsd4.7-appname, you will need to additionally
    override the CONFIGURE_TARGET variable to specify the target in the
    way required by scripts generated by recent versions of autoconf.
    Add the following line immediately after the GNU_CONFIGURE=yes line
    in your Makefile:

    CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

now, couple of questions:

* what is the first recent of version of autoconf to require --build=?

* what is the percentage of ports that want --build=?  (IOW, wouldn't it
  already make more sense to make that the default value in bsd.port.mk?
  
* how about suggesting

  CONFIGURE_TARGET:=--build=${CONFIGURE_TARGET}

  instead?

* can't the value be decided automagically? e. g.

  CONFIGURE_TARGET!=.../configure --help|grep -Fe --build...

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040109163220.GB5994>