]> Savannah Git Hosting - gnulib.git/commitdiff
dfa: port to Solaris 9
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Sep 2016 23:13:11 +0000 (16:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Sep 2016 23:13:46 +0000 (16:13 -0700)
Problems reported by Tom G. Christensen in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
* modules/dfa (Depends-on): Add isblank.
* modules/dfa-tests (dfa_match_aux_LDADD):
Rename from test_stat_LDADD, to fix typo.
* tests/dfa-match.sh: Don't require 'timeout'; use it if available.

ChangeLog
modules/dfa
modules/dfa-tests
tests/dfa-match.sh

index d37fdaecf8127c3e995ca9e2efadda4bc64c9d5f..adcbe8a26883ffc1ea3917aaa165f006c4d67b88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       dfa: port to Solaris 9
+       Problems reported by Tom G. Christensen in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
+       * modules/dfa (Depends-on): Add isblank.
+       * modules/dfa-tests (dfa_match_aux_LDADD):
+       Rename from test_stat_LDADD, to fix typo.
+       * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
+
 2016-09-10  Jim Meyering  <meyering@fb.com>
 
        strverscmp: avoid link failure on OS X
index 5708ed13855c938cf3823144acc5922396828567..e95035a63342c003bc49c6c80adb45c4f4af6591 100644 (file)
@@ -10,6 +10,7 @@ lib/localeinfo.h
 Depends-on:
 assert
 ctype
+isblank
 locale
 regex
 stdbool
index 6a64ff92e359685444752560a36311704459da69..9f00d8125dc211a3b8e4299f7a14273b000add39 100644 (file)
@@ -18,4 +18,4 @@ TESTS +=                      \
   dfa-match.sh
 
 check_PROGRAMS += dfa-match-aux
-test_stat_LDADD = $(LDADD) $(LIBINTL)
+dfa_match_aux_LDADD = $(LDADD) @LIBINTL@
index e9efd475517f26ca5caef8bcb7f1c18206049c3a..5da1985ce3bd843efd2407ea9679a50fb34dfa1e 100755 (executable)
 # Add "." to PATH for the use of dfa-match-aux.
 path_prepend_ .
 
-require_timeout_
+if (type timeout) >/dev/null 2>&1; then
+  timeout_10='timeout 10'
+else
+  timeout_10=
+fi
 
 fail=0
 
@@ -29,7 +33,7 @@ dfa-match-aux a ba 0 > out || fail=1
 compare /dev/null out || fail=1
 
 in=$(printf "bb\nbb")
-timeout 10 dfa-match-aux a "$in" 1 > out || fail=1
+$timeout_10 dfa-match-aux a "$in" 1 > out || fail=1
 compare /dev/null out || fail=1
 
 Exit $fail