mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 09:44:40 +00:00
build: apply the distcheck tricks used in xf86-input-evdev
With this change it is possible to complete "make distcheck" safely on the module, as it no longer tries to write to system directories. Since synaptics also installs a configuration file, xorg-conf-dir also needs to be overridden during distcheck. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
dac624ad2b
commit
6eb829e07e
@@ -18,6 +18,12 @@
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# During distcheck, system locations (as provided by pkg-config) are
|
||||
# not writable; provide instead relative locations.
|
||||
DISTCHECK_CONFIGURE_FLAGS = \
|
||||
--with-sdkdir='$${includedir}/xorg' \
|
||||
--with-xorg-conf-dir='$${sysconfdir}/xorg'
|
||||
|
||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
||||
@@ -146,6 +146,11 @@ if test "x$have_libxtst" = "xyes" ; then
|
||||
fi
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Workaround overriding sdkdir to be able to create a tarball when user has no
|
||||
# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
|
||||
AC_ARG_WITH([sdkdir], [], [sdkdir="$withval"])
|
||||
AC_SUBST([sdkdir])
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
xorg-synaptics.pc])
|
||||
AC_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user