GNU Autoconf jest rozszerzalnym pakietem makr M4 do tworzenia skryptów powłoki do automatycznej konfiguracji pakietów oprogramowania Open Source. Tworzenie skryptów konfiguracyjnych przy użyciu Autoconf wymaga instalacji GNU M4.
Konfiguracja i kompilacja GNU Autoconf przy użyciu skryptu (w załączeniu):
soft@wega:~/autoconf% ./drf_autoconf-2.68_conf
cc: Sun C 5.10 SunOS_sparc 2009/06/03
usage: cc [ options] files. Use 'cc -flags' for details
MANPATH=/usr/local/share/man:/usr/local/man:/usr/share/man
PATH=/usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin
CFLAGS=-fast
CPPFLAGS=-I/usr/local/include
CXXFLAGS=-fast
LDFLAGS=-L/usr/local/lib -R/usr/local/lib
=============================================
dmake clean [y|n] ?
n
=============================================
configure [y|n] ?
y
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether dmake sets $(MAKE)... yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.68
configure: autobuild hostname... wega
configure: autobuild timestamp... 20110517T070454Z
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... /usr/local/bin/gm4
checking whether /usr/local/bin/gm4 accepts --gnu... yes
checking how m4 supports trace files... --debugfile
checking for perl... /usr/bin/perl
checking whether /usr/bin/perl Fcntl::flock is implemented... yes
checking for emacs... no
checking for xemacs... no
checking for emacs... no
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking whether dmake is case sensitive... yes
configure: creating ./config.status
config.status: creating tests/Makefile
config.status: creating tests/atlocal
config.status: creating man/Makefile
config.status: creating lib/emacs/Makefile
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating lib/Autom4te/Makefile
config.status: creating lib/autoscan/Makefile
config.status: creating lib/m4sugar/Makefile
config.status: creating lib/autoconf/Makefile
config.status: creating lib/autotest/Makefile
config.status: creating bin/Makefile
config.status: executing tests/atconfig commands
=============================================
Kompilacja:
dmake [y|n] ?
y
dmake all-recursive
Making all in bin
rm -f autom4te autom4te.tmp
...
chmod +x ifnames.tmp
chmod a-w ifnames.tmp
mv -f ifnames.tmp ifnames
Making all in man
Compilation succesful
=============================================
Testowanie:
dmake check [y|n] ?
y
dmake check-recursive
Making check in bin
Making check in .
Making check in lib
Making check in Autom4te
Making check in m4sugar
dmake check-local
...
/bin/bash ./testsuite
## ----------------------------- ##
## GNU Autoconf 2.68 test suite. ##
## ----------------------------- ##
Executables (autoheader, autoupdate...).
1: Syntax of the shell scripts skipped (tools.at:48)
2: Syntax of the Perl scripts ok
3: autom4te cache ok
...
## ------------- ##
## Test results. ##
## ------------- ##
463 tests behaved as expected.
23 tests were skipped.
Making check in man
Jak widać testy przeszły pomyślnie. dmake install po przełączeniu na roota.