| 1 | ## Process this file with automake to create Makefile.in
|
|---|
| 2 | # Copyright 1997-1998, 2005-2012 Free Software Foundation, Inc.
|
|---|
| 3 | #
|
|---|
| 4 | # This program is free software; you can redistribute it and/or modify
|
|---|
| 5 | # it under the terms of the GNU General Public License as published by
|
|---|
| 6 | # the Free Software Foundation; either version 3, or (at your option)
|
|---|
| 7 | # any later version.
|
|---|
| 8 | #
|
|---|
| 9 | # This program is distributed in the hope that it will be useful,
|
|---|
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 12 | # GNU General Public License for more details.
|
|---|
| 13 | #
|
|---|
| 14 | # You should have received a copy of the GNU General Public License
|
|---|
| 15 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|---|
| 16 |
|
|---|
| 17 | check_PROGRAMS = get-mb-cur-max
|
|---|
| 18 | AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
|
|---|
| 19 | AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
|
|---|
| 20 |
|
|---|
| 21 | # Tell the linker to omit references to unused shared libraries.
|
|---|
| 22 | AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS)
|
|---|
| 23 | LDADD = ../lib/libgreputils.a $(LIBINTL) ../lib/libgreputils.a
|
|---|
| 24 |
|
|---|
| 25 | # Remove this definition once the failing test passes.
|
|---|
| 26 | XFAIL_TESTS = \
|
|---|
| 27 | word-delim-multibyte \
|
|---|
| 28 | grep-dir
|
|---|
| 29 |
|
|---|
| 30 | # Equivalence classes are only supported when using the system
|
|---|
| 31 | # matcher (which means only with glibc).
|
|---|
| 32 | if USE_INCLUDED_REGEX
|
|---|
| 33 | XFAIL_TESTS += equiv-classes
|
|---|
| 34 | endif
|
|---|
| 35 | XFAIL_TESTS += turkish-I
|
|---|
| 36 |
|
|---|
| 37 | TESTS = \
|
|---|
| 38 | backref \
|
|---|
| 39 | backref-multibyte-slow \
|
|---|
| 40 | backref-word \
|
|---|
| 41 | big-match \
|
|---|
| 42 | bogus-wctob \
|
|---|
| 43 | bre \
|
|---|
| 44 | case-fold-backref \
|
|---|
| 45 | case-fold-backslash-w \
|
|---|
| 46 | case-fold-char-class \
|
|---|
| 47 | case-fold-char-range \
|
|---|
| 48 | case-fold-char-type \
|
|---|
| 49 | char-class-multibyte \
|
|---|
| 50 | dfa-heap-overrun \
|
|---|
| 51 | dfaexec-multibyte \
|
|---|
| 52 | empty \
|
|---|
| 53 | epipe \
|
|---|
| 54 | equiv-classes \
|
|---|
| 55 | ere \
|
|---|
| 56 | euc-mb \
|
|---|
| 57 | fedora \
|
|---|
| 58 | fgrep-infloop \
|
|---|
| 59 | file \
|
|---|
| 60 | fmbtest \
|
|---|
| 61 | foad1 \
|
|---|
| 62 | grep-dev-null \
|
|---|
| 63 | grep-dir \
|
|---|
| 64 | help-version \
|
|---|
| 65 | ignore-mmap \
|
|---|
| 66 | in-eq-out-infloop \
|
|---|
| 67 | include-exclude \
|
|---|
| 68 | inconsistent-range \
|
|---|
| 69 | khadafy \
|
|---|
| 70 | max-count-vs-context \
|
|---|
| 71 | unibyte-bracket-expr \
|
|---|
| 72 | high-bit-range \
|
|---|
| 73 | options \
|
|---|
| 74 | pcre \
|
|---|
| 75 | pcre-abort \
|
|---|
| 76 | pcre-z \
|
|---|
| 77 | prefix-of-multibyte \
|
|---|
| 78 | r-dot \
|
|---|
| 79 | repetition-overflow \
|
|---|
| 80 | reversed-range-endpoints \
|
|---|
| 81 | skip-device \
|
|---|
| 82 | sjis-mb \
|
|---|
| 83 | spencer1 \
|
|---|
| 84 | spencer1-locale \
|
|---|
| 85 | status \
|
|---|
| 86 | symlink \
|
|---|
| 87 | turkish-I \
|
|---|
| 88 | warn-char-classes \
|
|---|
| 89 | word-delim-multibyte \
|
|---|
| 90 | word-multi-file \
|
|---|
| 91 | yesno
|
|---|
| 92 |
|
|---|
| 93 | EXTRA_DIST = \
|
|---|
| 94 | $(TESTS) \
|
|---|
| 95 | bre.awk \
|
|---|
| 96 | bre.tests \
|
|---|
| 97 | ere.awk \
|
|---|
| 98 | ere.tests \
|
|---|
| 99 | init.cfg \
|
|---|
| 100 | init.sh \
|
|---|
| 101 | khadafy.lines \
|
|---|
| 102 | khadafy.regexp \
|
|---|
| 103 | spencer1.awk \
|
|---|
| 104 | spencer1.tests \
|
|---|
| 105 | spencer1-locale.awk
|
|---|
| 106 |
|
|---|
| 107 | # Default to a nonzero value. Environment overrides.
|
|---|
| 108 | # http://udrepper.livejournal.com/11429.html
|
|---|
| 109 | MALLOC_PERTURB_ = 1
|
|---|
| 110 |
|
|---|
| 111 | TESTS_ENVIRONMENT = \
|
|---|
| 112 | tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \
|
|---|
| 113 | TMPDIR=$$tmp__; export TMPDIR; \
|
|---|
| 114 | \
|
|---|
| 115 | if test -n "$$BASH_VERSION" || (eval "export v=x") 2>/dev/null; then \
|
|---|
| 116 | export_with_values () { export "$$@"; }; \
|
|---|
| 117 | else \
|
|---|
| 118 | export_with_values () \
|
|---|
| 119 | { \
|
|---|
| 120 | sed_extract_var='s/=.*//'; \
|
|---|
| 121 | sed_quote_value="s/'/'\\\\''/g;s/=\\(.*\\)/='\\1'/";\
|
|---|
| 122 | for arg in "$$@"; do \
|
|---|
| 123 | var=`echo "$$arg" | sed "$$sed_extract_var"`; \
|
|---|
| 124 | arg=`echo "$$arg" | sed "$$sed_quote_value"`; \
|
|---|
| 125 | eval "$$arg"; \
|
|---|
| 126 | export "$$var"; \
|
|---|
| 127 | done; \
|
|---|
| 128 | }; \
|
|---|
| 129 | fi; \
|
|---|
| 130 | \
|
|---|
| 131 | export_with_values \
|
|---|
| 132 | VERSION='$(VERSION)' \
|
|---|
| 133 | LOCALE_FR='$(LOCALE_FR)' \
|
|---|
| 134 | LOCALE_FR_UTF8='$(LOCALE_FR_UTF8)' \
|
|---|
| 135 | AWK=$(AWK) \
|
|---|
| 136 | GREP_OPTIONS='' \
|
|---|
| 137 | LC_ALL=C \
|
|---|
| 138 | abs_top_builddir='$(abs_top_builddir)' \
|
|---|
| 139 | abs_top_srcdir='$(abs_top_srcdir)' \
|
|---|
| 140 | abs_srcdir='$(abs_srcdir)' \
|
|---|
| 141 | built_programs='grep egrep fgrep' \
|
|---|
| 142 | srcdir='$(srcdir)' \
|
|---|
| 143 | top_srcdir='$(top_srcdir)' \
|
|---|
| 144 | CC='$(CC)' \
|
|---|
| 145 | GREP_TEST_NAME=`echo $$tst|sed 's,^\./,,;s,/,-,g'` \
|
|---|
| 146 | MAKE=$(MAKE) \
|
|---|
| 147 | MALLOC_PERTURB_=$(MALLOC_PERTURB_) \
|
|---|
| 148 | PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \
|
|---|
| 149 | PACKAGE_VERSION=$(PACKAGE_VERSION) \
|
|---|
| 150 | PERL='$(PERL)' \
|
|---|
| 151 | SHELL='$(SHELL)' \
|
|---|
| 152 | PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
|
|---|
| 153 | ; 9>&2
|
|---|
| 154 |
|
|---|
| 155 | LOG_COMPILER = $(SHELL)
|
|---|
| 156 |
|
|---|
| 157 | VERBOSE = yes
|
|---|
| 158 |
|
|---|
| 159 | check: check_executable_TESTS
|
|---|
| 160 | .PHONY: check_executable_TESTS
|
|---|
| 161 | check_executable_TESTS: Makefile
|
|---|
| 162 | $(AM_V_GEN)fail=0; \
|
|---|
| 163 | cd $(srcdir) && for i in $(TESTS); do \
|
|---|
| 164 | test -x $$i || { fail=1; echo $$i >&2; }; \
|
|---|
| 165 | done; \
|
|---|
| 166 | test $$fail = 1 \
|
|---|
| 167 | && { echo the above test scripts are not executable >&2; exit 1; } \
|
|---|
| 168 | || :
|
|---|