Skip to content
Snippets Groups Projects
Commit 91febb3c authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Configure: Cut output from file(1) after the first colon.

Fixes ABI detection issues when the output of file(1) contains
eg timestamps (like "created Thu Sep 28 17:11:08 2023").
parent 89cf9b4f
No related branches found
No related tags found
No related merge requests found
......@@ -1506,8 +1506,8 @@ define([DO_IF_OS],
dnl variable, file-path
AC_DEFUN(PIKE_CHECK_FILE_ABI,
[
PIKE_filetype=`file "$2" 2>/dev/null | sed -e 's/.*://'`
PIKE_filetype_L=`file -L "$2" 2>/dev/null | sed -e 's/.*://'`
PIKE_filetype=`file "$2" 2>/dev/null | sed -e 's/[^:]*://'`
PIKE_filetype_L=`file -L "$2" 2>/dev/null | sed -e 's/[^:]*://'`
case "[$]PIKE_filetype:[$]PIKE_filetype_L" in
*64-bit*)
$1=64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment