From: Jan Engelhardt Date: Fri, 29 Feb 2008 12:48:37 +0000 (+0100) Subject: Use system's readlink program to make things work with GNU make < 3.81 X-Git-Tag: v1.5.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c09f5db2f359aca35b4213f1fb211a919c387fb;p=thirdparty%2Fxtables-addons.git Use system's readlink program to make things work with GNU make < 3.81 Signed-off-by: Jan Engelhardt --- diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in index 8e59e62..709fbc6 100644 --- a/extensions/GNUmakefile.in +++ b/extensions/GNUmakefile.in @@ -2,8 +2,16 @@ top_srcdir := @top_srcdir@ srcdir := @srcdir@ -abstop_srcdir := $(realpath ${top_srcdir}) -abssrcdir := $(realpath ${srcdir}) +abstop_srcdir := $(shell readlink -e ${top_srcdir}) +abssrcdir := $(shell readlink -e ${srcdir}) + +if (${abstop_srcdir},) +$(error Path resolution of ${top_srcdir} failed) +endif +if (${abssrcdir},) +$(error Path resolution of ${srcdir} failed) +endif + prefix := @prefix@ exec_prefix := @exec_prefix@ libdir := @libdir@