Help us shape the future of Go! Take the 2026 Go Developer Survey

autotools

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package autotools wraps the classic configure/make/make-install workflow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoTools

type AutoTools struct {
	// contains filtered or unexported fields
}

AutoTools drives Autotools-style builds.

func New

func New(sourceDir, buildDir, installDir string) *AutoTools

New returns a ready-to-use AutoTools.

func (*AutoTools) Build

func (a *AutoTools) Build(args ...string) error

Build runs "make" with optional extra arguments.

func (*AutoTools) Configure

func (a *AutoTools) Configure(args ...string) error

Configure runs the configure script from sourceDir in the build directory. --prefix is prepended automatically when installDir is set. Extra flags are appended after --prefix.

func (*AutoTools) Install

func (a *AutoTools) Install(args ...string) error

Install runs "make install" with optional extra arguments appended.

func (*AutoTools) OutputDir

func (a *AutoTools) OutputDir() string

OutputDir returns installDir if set, otherwise buildDir.

func (*AutoTools) Source

func (a *AutoTools) Source(dir string)

Source overrides the source directory.

func (*AutoTools) Use

func (a *AutoTools) Use(root string)

Use configures the process environment so that compilers and build tools find headers, libraries and pkg-config files from a non-system dependency installed at root.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL