From: Nick Bowler Date: Tue, 9 Jun 2009 03:50:16 +0000 (-0400) Subject: Add libltdl. X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/commitdiff_plain/382855dd3f69cdce3e3b4eb6da392f881e7825da Add libltdl. --- diff --git a/.gitignore b/.gitignore index 56e731f..527fdf7 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ aclocal.m4 autom4te.cache configure libtool +libltdl ltmain.sh install-sh depcomp diff --git a/Makefile.am b/Makefile.am index f8238b2..4f0f2a8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,10 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src +DIST_SUBDIRS = libltdl src +SUBDIRS = + +if BUNDLED_LIBLTDL +SUBDIRS += libltdl +endif + +SUBDIRS += src diff --git a/autogen.sh b/autogen.sh index 9db4e70..6bcc421 100755 --- a/autogen.sh +++ b/autogen.sh @@ -10,6 +10,6 @@ test -d m4 || mkdir m4 aclocal -I m4 || die "Failed to run aclocal." autoheader || die "Failed to run autoheader." -libtoolize --copy || die "Failed to run libtoolize." +libtoolize --copy --ltdl || die "Failed to run libtoolize." automake --add-missing || die "Failed to run automake." autoconf || die "Failed to run autoconf." diff --git a/configure.ac b/configure.ac index 5b8dbf7..f86b8dd 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ AC_CONFIG_SRCDIR([src/libupkg.c]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) AC_PROG_CC_C99 @@ -22,10 +22,15 @@ fi AM_CONDITIONAL([BUILD_UPKG], [test x$have_gobject = xyes]) -LT_INIT +LT_CONFIG_LTDL_DIR([libltdl]) +LT_INIT([dlopen]) +LTDL_INIT([recursive]) + +AM_CONDITIONAL([BUNDLED_LIBLTDL], [test x$LTDLDEPS != x]) AC_CONFIG_FILES([ Makefile + libltdl/Makefile src/Makefile ]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index a631216..95e7082 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,5 +9,5 @@ bin_PROGRAMS = upkg upkg_SOURCES = upkg.c exportable.c serializable.c music.c upkg_CFLAGS = $(GLIB_CFLAGS) upkg_LDFLAGS = $(GLIB_LIBS) -upkg_LDADD = libupkg.la +upkg_LDADD = libupkg.la $(LIBLTDL) endif