GNU Build System

Autoconf

http://www.gnu.org/software/autoconf/

http://www.gnu.org/software/autoconf/manual/

Debian 5.0.3 Lenny

AC_PREREQ([2.59])

Ubuntu 8.04.3

AC_PREREQ([2.61])

Ubuntu 9.04

AC_PREREQ([2.63])

Ubuntu 10.04

AC_PREREQ([2.65])

Ubuntu 11.04

AC_PREREQ([2.67])

Automake

http://www.gnu.org/software/automake/

http://www.gnu.org/software/automake/manual/

AM_INIT_AUTOMAKE([-Wall -Werror foreign])

Libtool

http://www.gnu.org/software/libtool/

http://www.gnu.org/software/libtool/manual/

    • 1.5.26 - Debian 5.0.3 Lenny / Ubuntu 8.04.3 Hardy

      • configure.ac

dnl Enable building of the convenience library

dnl and set LIBLTDL accordingly

AC_LIBLTDL_CONVENIENCE

dnl Check for dlopen support

AC_LIBTOOL_DLOPEN

dnl Configure libtool

AC_PROG_LIBTOOL

dnl Configure libltdl

AC_CONFIG_SUBDIRS(libltdl)

AC_SUBST(INCLTDL)

AC_SUBST(LIBLTDL)

      • Makefile.am

SUBDIRS = libltdl

INCLUDES = $(LTDLINCL)

myprog_LDFLAGS = -export-dynamic

# The quotes around -dlopen below fool automake <= 1.4 into accepting it

myprog_LDADD = $(LIBLTDL) "-dlopen" self "-dlopen" foo1.la

myprog_DEPENDENCIES = $(LIBLTDL) foo1.la

    • 2.2.6a - Ubuntu 9.04

      • configure.ac

LT_PREREQ([2.2.6])

# Name the subdirectory that contains libltdl sources

LT_CONFIG_LTDL_DIR([libltdl])

# Configure libtool with dlopen support if possible

LT_INIT([dlopen])

# Enable building of the installable libltdl library

LTDL_INIT([installable])

      • Makefile.am

SUBDIRS = libltdl

AM_CPPFLAGS = $(LTDLINCL)

myprog_LDFLAGS = -export-dynamic

myprog_LDADD = $(LIBLTDL) -dlopen self -dlopen foo1.la

myprog_DEPENDENCIES = $(LTDLDEPS) foo1.la

LTDL_LIBRARY_PATH

libltdl's search path: This search path is the value of the environment variable LTDL_LIBRARY_PATH.

-XCClinker FLAG

Pass a link specific flag to the compiler driver (CC) during linking.

Reference

18.2 Using libltdl - http://sourceware.org/autobook/autobook/autobook_166.html