From: Harlan Stenn Date: Fri, 28 Feb 2014 11:24:16 +0000 (-0500) Subject: test -nt is not portable X-Git-Tag: NTP_4_2_7P426~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026fb8e4a3e4b697e6bd0dc5a033ea7193f4fffe;p=thirdparty%2Fntp.git test -nt is not portable bk: 531071e0WJY5CNA5Z6gCzB-Uoo-1vw --- diff --git a/bootstrap b/bootstrap index 40efa2230..ebb262db4 100755 --- a/bootstrap +++ b/bootstrap @@ -141,8 +141,13 @@ cp depsver.mf sntp/ ${AUTORECONF} -i -v "$@" -test aclocal.m4 -nt config.h.in && touch config.h.in -test sntp/aclocal.m4 -nt sntp/config.h.in && touch sntp/config.h.in +# Because some systems do not support 'test a -nt b' +case `ls -1tr config.h.in aclocal.m4 | tail -1` in + aclocal.m4) touch config.h.in ;; +esac +case `ls -1tr sntp/config.h.in sntp/aclocal.m4 | tail -1` in + sntp/aclocal.m4) touch sntp/config.h.in ;; +esac # DH: 20110118: Due to our workaround for the AM_COND_IF bug that was # triggering the buggy recursive autoreconf, we can once again use a