Skip to content

Commit

Permalink
Merge pull request #186 from rrthomas/master
Browse files Browse the repository at this point in the history
Compute libdir_subdir for the tests properly (fixes issue #185)
  • Loading branch information
rrthomas authored Feb 3, 2018
2 parents bf33671 + 74eff0c commit b5bba26
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ matrix:
- os: linux
env:
- COMPILER=g++-5
- os: osx
osx_image: xcode7.3
- os: osx
osx_image: xcode9.2
- compiler: gcc
Expand Down
3 changes: 2 additions & 1 deletion bootstrap.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bootstrap.conf (Enchant) version 2018-01-15
# bootstrap.conf (Enchant) version 2018-02-02

# This file is part of Enchant.
#
Expand Down Expand Up @@ -50,6 +50,7 @@ gnulib_modules='
c99
configmake
flock
gnu-make
manywarnings
relocatable-lib-lgpl
snippet/unused-parameter
Expand Down
5 changes: 1 addition & 4 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([enchant],[2.2.1])
AC_INIT([enchant],[2.2.2])
AC_CONFIG_SRCDIR(src/enchant.h)
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([subdir-objects])
Expand Down Expand Up @@ -120,9 +120,6 @@ else
fi
AC_SUBST([ISYSTEM])

libdir_subdir=`echo "$libdir" | sed -e 's|^${exec_prefix}/||'`
AC_SUBST([libdir_subdir])

# FIXME: Use just GLIB_CFLAGS, GLIB_LIBS
ENCHANT_CFLAGS=$GLIB_CFLAGS
ENCHANT_LIBS=$GLIB_LIBS
Expand Down
1 change: 1 addition & 0 deletions m4/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@
/rawmemchr.m4
/strchrnul.m4
/manywarnings-c++.m4
/gnu-make.m4
3 changes: 2 additions & 1 deletion m4/gnulib-cache.m4
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


# Specification in the form of a command-line invocation:
# gnulib-tool --import --local-dir=gl --local-dir=gl-mod/bootstrap --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl --makefile-name=Makefile.gnulib --no-conditional-dependencies --libtool --macro-prefix=gl bootstrap c99 configmake flock manywarnings relocatable-lib-lgpl snippet/unused-parameter ssize_t strchrnul strdup-posix valgrind-tests
# gnulib-tool --import --local-dir=gl --local-dir=gl-mod/bootstrap --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl --makefile-name=Makefile.gnulib --no-conditional-dependencies --libtool --macro-prefix=gl bootstrap c99 configmake flock gnu-make manywarnings relocatable-lib-lgpl snippet/unused-parameter ssize_t strchrnul strdup-posix valgrind-tests

# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([gl:gl-mod/bootstrap])
Expand All @@ -36,6 +36,7 @@ gl_MODULES([
c99
configmake
flock
gnu-make
manywarnings
relocatable-lib-lgpl
snippet/unused-parameter
Expand Down
7 changes: 7 additions & 0 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
SUBDIRS = enchant_providers

# Get libdir suffix
if !GNU_MAKE
libdir_subdir=$(shell echo "$(libdir)" | sed -e 's|^$(exec_prefix)/||' | sed -e 's|^/||')
else
libdir_subdir=lib
endif

AM_CPPFLAGS = -I$(top_srcdir)/src $(ENCHANT_CFLAGS) -DENCHANT_MAJOR_VERSION=\"@ENCHANT_MAJOR_VERSION@\"

ENCHANT_CONFIG_DIR = config
Expand Down
7 changes: 7 additions & 0 deletions tests/enchant_providers/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# FIXME: common up with tests/Makefile.am

# Get libdir suffix
if GNU_MAKE
libdir_subdir=$(shell echo "$(libdir)" | sed -e 's|^$(exec_prefix)/||' | sed -e 's|^/||')
else
Tests require GNU Make!
endif

AM_CPPFLAGS = -I$(top_srcdir)/src $(ENCHANT_CFLAGS)

ENCHANT_CONFIG_DIR = config
Expand Down

0 comments on commit b5bba26

Please sign in to comment.