Skip to content

Commit 768d992

Browse files
committed
Fix BASHisn in test for raptor version: use -lt for string less than
1 parent d9d0a15 commit 768d992

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

+2-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ RAPTOR_VERSION_DEC=`echo $RAPTOR_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 +
441441
AC_SUBST(RAPTOR_VERSION_DEC)
442442
AC_SUBST(RAPTOR_MIN_VERSION)
443443

444-
AM_CONDITIONAL(RASQAL_SORT, test $RAPTOR_VERSION_DEC '<' 20015)
444+
# String comparison: -lt is portable (ksh, bash) but '<' is bash
445+
AM_CONDITIONAL(RASQAL_SORT, test $RAPTOR_VERSION_DEC -lt '20015')
445446

446447
dnl Checks for regex libraries
447448
have_regex_pcre=0

0 commit comments

Comments
 (0)