diff options
author | rillig <rillig@pkgsrc.org> | 2020-05-23 12:11:33 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-05-23 12:11:33 +0000 |
commit | 7a4237402d77c6392a71bbe52362651b1dfb6ebb (patch) | |
tree | 3c9c37769f65535819961bd0388db7de5d2ce0b4 /mk | |
parent | 3ea1254177d6cb2e8caf73b627fa4324c14edd57 (diff) | |
download | pkgsrc-7a4237402d77c6392a71bbe52362651b1dfb6ebb.tar.gz |
mk/configure: fix configure options check for custom CONFIGURE_SCRIPT
Seen in cross/arm-none-eabi-gdb.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/configure/gnu-configure.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/configure/gnu-configure.mk b/mk/configure/gnu-configure.mk index bdc165a66b0..6caf076b4f6 100644 --- a/mk/configure/gnu-configure.mk +++ b/mk/configure/gnu-configure.mk @@ -1,4 +1,4 @@ -# $NetBSD: gnu-configure.mk,v 1.27 2020/05/22 15:21:15 rillig Exp $ +# $NetBSD: gnu-configure.mk,v 1.28 2020/05/23 12:11:33 rillig Exp $ # # Package-settable variables: # @@ -219,8 +219,11 @@ CONFIGURE_ARGS+= --quiet _SHOW_UNKNOWN_CONFIGURE_OPTIONS_CMD= \ cd ${WRKSRC}; \ configures=$$( \ - ${FIND} ${CONFIGURE_DIRS} -name configure \ - | ${SED} -e 's,^${WRKSRC}/,,' \ + for dir in ${CONFIGURE_DIRS}; do \ + cd ${WRKSRC} && cd "$$dir" && cd ${CONFIGURE_SCRIPT:H} \ + && ${FIND} "$$PWD" -name ${CONFIGURE_SCRIPT:T}; \ + done \ + | ${SED} -e 's,^${WRKSRC}/,./,' \ | LC_ALL=C ${SORT} -u \ | ${TR} '\n' ' ' \ | ${SED} 's, $$,,'); \ |