buildsystem: go back to using the makefile to expand the defaults (closes #89)

pull/92/head
William Pitcock 2016-05-19 21:12:24 -05:00
parent a7893e7572
commit 2516f7c185
2 changed files with 2 additions and 5 deletions

View File

@ -6,7 +6,7 @@ system_includedir = @SYSTEM_INCLUDEDIR@
system_libdir = @SYSTEM_LIBDIR@
pkgconfigdir = @PKGCONFIGDIR@
AM_CFLAGS = -Wall -Wextra -Wformat=2 -std=gnu99
AM_CFLAGS = -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"$(pkgconfigdir)\" -DSYSTEM_INCLUDEDIR=\"$(system_includedir)\" -DSYSTEM_LIBDIR=\"$(system_libdir)\"
bin_PROGRAMS = pkgconf
lib_LTLIBRARIES = libpkgconf.la

View File

@ -17,6 +17,7 @@ AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_HEADERS([libpkgconf/config.h])
AC_CHECK_FUNCS([strlcpy strlcat strndup strtok_r])
AM_INIT_AUTOMAKE([foreign dist-xz subdir-objects])
AM_SILENT_RULES([yes])
LT_INIT
AC_SYS_LARGEFILE
@ -56,10 +57,6 @@ AC_ARG_WITH([system-includedir],[AC_HELP_STRING([--with-system-includedir],[spec
AC_SUBST([SYSTEM_INCLUDEDIR])
AC_DEFINE_UNQUOTED([SYSTEM_LIBDIR], "$SYSTEM_LIBDIR", [System library directory list])
AC_DEFINE_UNQUOTED([SYSTEM_INCLUDEDIR], "$SYSTEM_INCLUDEDIR", [System include directory list])
AC_DEFINE_UNQUOTED([PKG_DEFAULT_PATH], "$PKGCONFIGDIR", [Default PKG_CONFIG_PATH search list])
AC_PROG_CPP
AC_PROG_CC
AC_PROG_INSTALL