You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AC_MSG_CHECKING([for working native compiler: ${CC_FOR_BUILD}])
354
-
AC_RUN_IFELSE(
355
-
[AC_LANG_PROGRAM([], [])],
356
-
[working_native_cc=yes],
357
-
[working_native_cc=no],[:])
358
-
359
-
# Restore the environment
360
-
cross_compiling=$save_cross_compiling
361
-
CC="$SAVE_CC"
362
-
CPPFLAGS="$SAVE_CPPFLAGS"
363
-
CFLAGS="$SAVE_CFLAGS"
364
-
LDFLAGS="$SAVE_LDFLAGS"
365
-
366
-
if test x"$working_native_cc" = x"no"; then
367
-
AC_MSG_RESULT([no])
368
-
set_precomp=no
369
-
m4_define([please_set_for_build], [Please set CC_FOR_BUILD, CPPFLAGS_FOR_BUILD, CFLAGS_FOR_BUILD, and/or LDFLAGS_FOR_BUILD.])
370
-
if test x"$use_ecmult_static_precomputation" = x"yes"; then
371
-
AC_MSG_ERROR([native compiler ${CC_FOR_BUILD} does not produce working binaries. please_set_for_build])
372
-
else
373
-
AC_MSG_WARN([Disabling statically generated ecmult table because the native compiler ${CC_FOR_BUILD} does not produce working binaries. please_set_for_build])
374
-
fi
375
-
else
376
-
AC_MSG_RESULT([yes])
377
-
set_precomp=yes
378
-
fi
379
-
fi
380
-
381
-
AC_SUBST(CC_FOR_BUILD)
382
-
AC_SUBST(CPPFLAGS_FOR_BUILD)
383
-
AC_SUBST(SECP_CFLAGS_FOR_BUILD)
384
-
AC_SUBST(CFLAGS_FOR_BUILD)
385
-
AC_SUBST(LDFLAGS_FOR_BUILD)
386
-
else
387
-
set_precomp=no
388
-
fi
389
-
390
-
if test x"$set_precomp" = x"yes"; then
391
-
AC_DEFINE(USE_ECMULT_STATIC_PRECOMPUTATION, 1, [Define this symbol to use a statically generated ecmult table])
0 commit comments