Autoconf

From Genunix

autoconf - A package of M4 macros to produce scripts to automatically configure sourcecode

Contents

Rating

4 points (out of 4)

Rating scheme: 4 points means the source builds seamlessly on Solaris Express (OpenSolaris). Points are subtracted as follows:

  • Minus 1 if the source doesn't come with an automated way to localize the build (e.g. configure)
  • Minus 1 if the source won't compile with Sun's cc (this usually means the code is gcc-centric)
  • Minus 1 if a minor patch is required, or
  • Minus 2 if a major patch(es) is required

How to build autoconf-2.60 on Solaris Express

Build Environment (platform, compiler, tools, PATH, ld)

Configure and compile steps (on x86 hardware)

/usr/bin/bzip2 -dc autoconf-2.60.tar.bz2 | /usr/sfw/bin/gtar xf -

cd autoconf-2.60

export CFLAGS="-i -xO4 -xspace -xstrconst -xpentium -mr -I/usr/sfw/include -DANSICPP"
export LDFLAGS="-Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect -R/usr/local/lib"

./configure --prefix=/usr/local			\
	    --libexecdir=/usr/local/lib         \
	    --mandir=/usr/local/share/man                 \
	    --datadir=/usr/local/share               \
            --infodir=/usr/local/share/info

# Note: do not try to use parallel build, it will break with broken deps
make

Other configure options

output of ./configure --help

Directory paths that autoconf installs to

bin
share/autoconf
share/autoconf/Autom4te
share/autoconf/autoconf
share/autoconf/autoscan
share/autoconf/autotest
share/autoconf/m4sugar
share/emacs/site-lisp
share/info
share/man/man1

Other 3rd party software autoconf requires

Requires: m4