aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f0a3c72c5..7bfeb1954 100644
--- a/configure.ac
+++ b/configure.ac
@@ -622,6 +622,16 @@ AC_SYS_LARGEFILE
GNUPG_CHECK_USTAR
+# GNU AWK requires -n option to interpret "0xHH" as a number
+if $AWK 'BEGIN { if (PROCINFO@<:@"version"@:>@) exit 1 }'; then
+ AWK_HEX_NUMBER_OPTION=''
+ AC_MSG_NOTICE([awk with no option for hexadecimal])
+else
+ AWK_HEX_NUMBER_OPTION='-n'
+ AC_MSG_NOTICE([awk with an option -n for hexadecimal])
+fi
+AC_SUBST(AWK_HEX_NUMBER_OPTION)
+
# We need to compile and run a program on the build machine. A
# comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
# the AC archive is broken for autoconf 2.57. Given that there is no