Opened 14 years ago

Closed 14 years ago

#408 closed task (fixed)

we should not require pkg-config

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: major Milestone: svndigest 0.8
Component: build Version: trunk
Keywords: Cc:

Description

README says that pkg-config is a new requirement. If that's tru I think we should change it. pkg-config is useful tool to propagate needed compiler and linker flags from a library to user. I think we should use it when it is available, but when not found or if the *.pc file is not found by pkg-config we should fall back on traditional testing, in other words, it is up to the user to provide the needed flags via CPPFLAGS, CXXFLAGS, LDFLAGS, and LIBS.

Change History (2)

comment:1 Changed 14 years ago by Peter Johansson

Status: newassigned

comment:2 Changed 14 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

(In [901]) refs #401 fixes #408

Modifications of detection of plplot;

  • detection of plplot will not fail due to absent pkg-config
  • if pkg-config is available and it finds pc file for plplot, then we use it to retrieve compiler/linker flags, otherwise we guess.
  • new AC_DEFINE(HAVE_PLPLOT)
  • configure now accepts --without-plplot (or --with-plplot=no) and tests are skipped (following build will currently not work)
  • added a test linking against plplot library
Note: See TracTickets for help on using tickets.