]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
test -nt is not portable
authorHarlan Stenn <stenn@ntp.org>
Fri, 28 Feb 2014 11:24:16 +0000 (06:24 -0500)
committerHarlan Stenn <stenn@ntp.org>
Fri, 28 Feb 2014 11:24:16 +0000 (06:24 -0500)
bk: 531071e0WJY5CNA5Z6gCzB-Uoo-1vw

bootstrap

index 40efa22309543d830c17bdeab2974c531a467f7a..ebb262db45a5961d8cc6fc19a061f7c77151e59d 100755 (executable)
--- 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