2 [AC_PATH_PROG([SORT], [sort], [sort])
3 AC_MSG_CHECKING([if $SORT supports the -z option])
4 # find out if the sort command has a working -z option.
5 if $SORT -z -c < "${srcdir:-.}/m4/order-good.bin" 2>/dev/null >/dev/null
7 # sort has a -z option, but we have not yet established that
8 # sort thinks there is more than one input line there. We have
9 # to make sort -c do its thing with the input lines in the wrong
10 # order to determine that (we can't do it in one shot because
11 # if sort returns nonzero we cant tell that it wasn't just
12 # complaining about this unknown -z option.
13 if $SORT -z -c < "${srcdir:-.}/m4/order-bad.bin" 2>/dev/null >/dev/null
15 # sort likes -z but it doesn't seem to make \0
22 # Doesn't like the z option.
28 AC_SUBST(SORT_SUPPORTS_Z,[true])
31 AC_SUBST(SORT_SUPPORTS_Z,[false])