]> The Tcpdump Group git mirrors - tcpdump/commit
[bugfix]configure: fix error when cross-compile
authorMingrui <[email protected]>
Thu, 4 Nov 2021 01:07:23 +0000 (09:07 +0800)
committerGuy Harris <[email protected]>
Sat, 19 Mar 2022 21:20:29 +0000 (14:20 -0700)
commite4e58df40affa1e31a0913d280fafb396c6c0df0
treedf051b80502e19ad344192fbdd5973db1dd9e1f2
parentc2c334e671499da6a0bf6e62b6719cab988d00d7
[bugfix]configure: fix error when cross-compile

While cross-compile, ./configure --host=xxx will output:
"checking whether printf(3) supports the z length modifier...
configure: error: in `/${path_to_tcpdump}/tcpdump':"

That is casued by AC_RUN_IFELSE, as describe in
"https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Runtime.html"
, if AC_RUN_IFELSE do not have cross-compile option, configure prints an error message and exits.

Signed-off-by: Mingrui Ren [email protected]
(cherry picked from commit cb0099044b507aa6a537443ab79384e2ea5bdc94)
configure
configure.ac