summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd54159)
raw | patch | inline | side by side (parent: fd54159)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 4 Jun 2007 11:15:11 +0000 (11:15 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 4 Jun 2007 11:15:11 +0000 (11:15 +0000) |
- new configure option --enable-static-programs
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1101 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1101 a5681a0c-68f1-0310-ab6d-d61299d08faa
configure.ac | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index dc197e1f9c05484d87d3d3f5587992b597d13036..fab77f5d49a700fed7bc0de821d909e3055809e2 100644 (file)
--- a/configure.ac
+++ b/configure.ac
[enable_direct_io=yes],
[])
- AC_ARG_ENABLE(pthread,[ --disable-pthread disable multithread support],
+AC_ARG_ENABLE(pthread,[ --disable-pthread disable multithread support],
[],[enable_pthread=yes])
+AC_ARG_ENABLE(static-programs,
+ [ --enable-static-programs Build static programs],
+ [case "${enableval}" in
+ yes) staticprogs=yes ;;
+ no) staticprogs=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-static-programs) ;;
+ esac],[staticprogs=no])
+AM_CONDITIONAL(STATIC_PROGRAMS,[test "x$staticprogs" = "xyes"])
CONFIGURE_PART(Audit Compilation Environment)
echo
echo " With MMAP IO: $enable_mmap"
echo " Use O_DIRECT: $enable_direct_io"
+echo " Static programs: $staticprogs"
echo " Perl Modules: $COMP_PERL"
echo " Perl Binary: $PERL"
echo " Perl Version: $PERL_VERSION"
diff --git a/src/Makefile.am b/src/Makefile.am
index 6fd4364ce32a0e87a6232fd4d9fa9ddaf5cca3d9..56ffbb2a6acb889faa94238e1fef36e83708d378 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
fontsdir = $(datadir)/rrdtool/fonts
fonts_DATA = DejaVuSansMono-Roman.ttf
+if STATIC_PROGRAMS
+AM_LDFLAGS = -all-static
+endif
+
#INCLUDES = $(FREETYPE_INCLUDES) $(ART_INCLUDES) \
# $(PNG_INCLUDES) $(ZLIB_INCLUDES)
RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@