Skip to content

Commit

Permalink
add --with-system-libltdl
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzini committed Mar 4, 2010
1 parent 2270435 commit 0757a0c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
16 changes: 16 additions & 0 deletions configure.ac
Expand Up @@ -100,6 +100,22 @@ AM_MISSING_PROG(AUTOM4TE, autom4te, $missing_dir)
dnl
dnl ------------------------------ SUBDIRS --------------------

AC_ARG_WITH(system-libltdl,
[ --with-system-libltdl[=PATH] use system libltdl.la (search in PATH if given)],
[], [with_system_libltdl=no])

if test $with_system_libltdl = no; then
AC_LIBOBJ(ltdl)
AC_CONFIG_LINKS([lib-src/ltdl.h:lib-src/ltdl_.h])
INCLTDL= LIBLTDL=
elif test $with_system_libltdl = yes; then
INCLTDL= LIBLTDL=-lltdl
else
INCLTDL="-I$withval/../include" LIBLTDL="-L$withval -lltdl"
fi
AC_SUBST(INCLTDL)
AC_SUBST(LIBLTDL)

AC_ARG_WITH(system-libffi,
[ --with-system-libffi[=PATH] use system libffi.la (search in PATH if given)],
[], [with_system_libffi=no])
Expand Down
6 changes: 3 additions & 3 deletions lib-src/Makefile.am
Expand Up @@ -6,12 +6,12 @@ library_la_DEPENDENCIES = @LTLIBOBJS@ @LTALLOCA@
# These are to be included *always*, the rest are driven by configure.in
library_la_SOURCES = \
qsort.c getopt.c getopt1.c md5.c avltrees.c rbtrees.c lock.c \
strspell.c ltdl.c regex.c socketx.c pointer-set.c
strspell.c regex.c socketx.c pointer-set.c

noinst_HEADERS = \
obstack.h poll_.h getopt.h md5.h ansidecl.h strspell.h lock.h \
mathl.h trigl.h avltrees.h rbtrees.h trigl.c sincosl.c getaddrinfo.h \
socketx.h ltdl.h regex.h pointer-set.h
socketx.h ltdl_.h regex.h pointer-set.h

DISTCLEANFILES = poll.h
DISTCLEANFILES = poll.h ltdl.h

File renamed without changes.
6 changes: 3 additions & 3 deletions libgst/Makefile.am
Expand Up @@ -5,7 +5,7 @@ AM_LFLAGS = -Cfe -o$(LEX_OUTPUT_ROOT).c
AM_YFLAGS = -vy
AM_CPPFLAGS = $(RELOC_CPPFLAGS) \
-I$(top_srcdir)/lib-src -I$(top_builddir)/lib-src \
$(INCFFI) $(INCLIGHTNING) $(INCSNPRINTFV) $(INCSIGSEGV)
$(INCFFI) $(INCLIGHTNING) $(INCSNPRINTFV) $(INCSIGSEGV) $(INCLTDL)

if !HAVE_INSTALLED_LIGHTNING
AM_CPPFLAGS += -I$(top_srcdir)/lightning -I$(top_builddir)/lightning \
Expand All @@ -21,8 +21,8 @@ CLEANFILES = genprims$(EXEEXT) genbc$(EXEEXT) genvm$(EXEEXT) \
# definitions for libgst.la

libgst_la_LIBADD=$(top_builddir)/lib-src/library.la $(SOCKET_LIBS) \
$(LIBSIGSEGV) $(LIBFFI) $(LIBSNPRINTFV) $(LIBREADLINE) $(LIBGMP) \
$(LIBTHREAD)
$(LIBSIGSEGV) $(LIBFFI) $(LIBSNPRINTFV) $(LIBREADLINE) $(LIBLTDL) \
$(LIBGMP) $(LIBTHREAD)

libgst_la_DEPENDENCIES=$(top_builddir)/lib-src/library.la $(LIBSNPRINTFV)

Expand Down

0 comments on commit 0757a0c

Please sign in to comment.