comparison configure.ac @ 1692:1051e4eea25a

Update LibTomMath to 1.2.0 (#84) * update C files * update other files * update headers * update makefiles * remove mp_set/get_double() * use ltm 1.2.0 API * update ltm_desc * use bundled tommath if system-tommath is too old * XMALLOC etc. were changed to MP_MALLOC etc.
author Steffen Jaeckel <s@jaeckel.eu>
date Tue, 26 May 2020 17:36:47 +0200
parents 49cb3cf4bd6f
children 39534eedf429
comparison
equal deleted inserted replaced
1691:2d3745d58843 1692:1051e4eea25a
536 if test "x$enableval" = "xyes"; then 536 if test "x$enableval" = "xyes"; then
537 BUNDLED_LIBTOM=1 537 BUNDLED_LIBTOM=1
538 AC_MSG_NOTICE(Forcing bundled libtom*) 538 AC_MSG_NOTICE(Forcing bundled libtom*)
539 else 539 else
540 BUNDLED_LIBTOM=0 540 BUNDLED_LIBTOM=0
541 AC_CHECK_LIB(tommath, mp_exptmod, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS", 541 AC_CHECK_LIB(tommath, mp_to_ubin, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS",
542 [AC_MSG_ERROR([Missing system libtommath and --disable-bundled-libtom was specified])] ) 542 [AC_MSG_ERROR([Missing system libtommath and --disable-bundled-libtom was specified])] )
543 AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", 543 AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS",
544 [AC_MSG_ERROR([Missing system libtomcrypt and --disable-bundled-libtom was specified])] ) 544 [AC_MSG_ERROR([Missing system libtomcrypt and --disable-bundled-libtom was specified])] )
545 fi 545 fi
546 ], 546 ],
547 [ 547 [
548 BUNDLED_LIBTOM=0 548 BUNDLED_LIBTOM=0
549 AC_CHECK_LIB(tommath, mp_exptmod, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS", BUNDLED_LIBTOM=1) 549 AC_CHECK_LIB(tommath, mp_to_ubin, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS", BUNDLED_LIBTOM=1)
550 AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", BUNDLED_LIBTOM=1) 550 AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", BUNDLED_LIBTOM=1)
551 ] 551 ]
552 ) 552 )
553 553
554 if test $BUNDLED_LIBTOM = 1 ; then 554 if test $BUNDLED_LIBTOM = 1 ; then