diff options
author | наб <[email protected]> | 2022-04-10 19:00:47 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-10 10:20:28 -0700 |
commit | eaf94bda6cc31eb11822be5c782b8b43279212ee (patch) | |
tree | 3672b85e95cd148e005e2a4618bb85fbaed35bbe /configure.ac | |
parent | ea04cc4a22a865199ab6ef1c4215117d5b1bae64 (diff) |
Replace config/config.awk with simple sed invocation
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13316
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 3e2ff3e8f..7e356cbd2 100644 --- a/configure.ac +++ b/configure.ac @@ -40,10 +40,10 @@ AC_CANONICAL_TARGET AM_MAINTAINER_MODE m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AM_INIT_AUTOMAKE([subdir-objects foreign]) +# Remove default macros from config.h: +# PACKAGE, PACKAGE_{BUGREPORT,NAME,STRING,TARNAME,VERSION}, STDC_HEADERS, VERSION AC_CONFIG_HEADERS([zfs_config.h], [ - (mv zfs_config.h zfs_config.h.tmp && - awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h && - rm zfs_config.h.tmp) || exit 1]) + sed -nEi~ -e '/^$/be' -e 'N;N;/#define (PACKAGE|VERSION|STDC_HEADERS)/d' -e ':e' -e 'p' zfs_config.h && rm zfs_config.h~ || exit]) LT_INIT AC_PROG_INSTALL |