Unable to configure / compile when cross compiling.
I needed to apply this patch in order to cross compile this project for OpenWRT.
--- a/configure.ac
+++ b/configure.ac
@@ -3148,7 +3148,9 @@ if test "x$openssl" = "xyes" ; then
exit(e == NULL || m == NULL);
]])],
[ssh_cv_working_secp521r1=yes],
- [ssh_cv_working_secp521r1=no]
+ [ssh_cv_working_secp521r1=no],
+ [AC_MSG_WARN([cross-compiling: assuming yes])
+ ssh_cv_working_secp521r1=yes]
)])
if test "x$ssh_cv_working_secp521r1" = xyes ; then
enable_nistp521=1
--- a/configure
+++ b/configure
@@ -13941,10 +13953,10 @@ if ${ssh_cv_working_secp521r1+:} false;
else
if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
+$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
+ ssh_cv_working_secp521r1=yes
+
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Edited by Michael Jones