Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wim Lewis
nettle
Commits
66191edc
Commit
66191edc
authored
23 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Commented out gmp-related macros, they're probably
not needed anymore. Rev: src/nettle/acinclude.m4:1.2
parent
8005f543
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
acinclude.m4
+63
-63
63 additions, 63 deletions
acinclude.m4
with
63 additions
and
63 deletions
acinclude.m4
+
63
−
63
View file @
66191edc
# checks for gmp version 3 or later.
##
# checks for gmp version 3 or later.
# AC_CHECK_LIBGMP(library, [, if-found [, if-not-found]])
##
# AC_CHECK_LIBGMP(library, [, if-found [, if-not-found]])
AC_DEFUN([AC_CHECK_LIBGMP],
##
AC_DEFUN([AC_CHECK_LIBGMP],
[AC_CACHE_CHECK([for mpz_getlimbn in -l$1], ac_cv_lib_$1_mpz_getlimbn,
##
[AC_CACHE_CHECK([for mpz_getlimbn in -l$1], ac_cv_lib_$1_mpz_getlimbn,
[ac_save_libs="$LIBS"
##
[ac_save_libs="$LIBS"
LIBS="-l$1 $LIBS"
##
LIBS="-l$1 $LIBS"
AC_TRY_LINK(dnl
##
AC_TRY_LINK(dnl
[#if HAVE_GMP_H
##
[#if HAVE_GMP_H
#include <gmp.h>
##
#include <gmp.h>
#elif HAVE_GMP2_GMP_H
##
#elif HAVE_GMP2_GMP_H
#include <gmp2/gmp.h>
##
#include <gmp2/gmp.h>
#endif
##
#endif
],
##
],
[mpz_getlimbn(NULL, 0);],
##
[mpz_getlimbn(NULL, 0);],
ac_cv_lib_$1_mpz_getlimbn=yes,
##
ac_cv_lib_$1_mpz_getlimbn=yes,
ac_cv_lib_$1_mpz_getlimbn=no)
##
ac_cv_lib_$1_mpz_getlimbn=no)
LIBS="$ac_save_LIBS"
##
LIBS="$ac_save_LIBS"
])
##
])
if test x$ac_cv_lib_$1_mpz_getlimbn = xyes ; then
##
if test x$ac_cv_lib_$1_mpz_getlimbn = xyes ; then
ifelse([$2], ,
##
ifelse([$2], ,
[AC_DEFINE(HAVE_LIBGMP)
##
[AC_DEFINE(HAVE_LIBGMP)
LIBS="-l$1 $LIBS"
##
LIBS="-l$1 $LIBS"
], [$2])
##
], [$2])
ifelse([$3], , ,
##
ifelse([$3], , ,
[else
##
[else
$3
##
$3
])dnl
##
])dnl
fi
##
fi
])
##
])
##
# checks for gmp version
2
or later.
##
# checks for gmp version
3
or later.
# AC_SEARCH_LIBGMP(libraries, [, if-found [, if-not-found]])
##
# AC_SEARCH_LIBGMP(libraries, [, if-found [, if-not-found]])
AC_DEFUN([AC_SEARCH_LIBGMP],
##
AC_DEFUN([AC_SEARCH_LIBGMP],
[AC_CACHE_CHECK([for library containing mpz_getlimbn], ac_cv_search_mpz_getlimbn,
##
[AC_CACHE_CHECK([for library containing mpz_getlimbn], ac_cv_search_mpz_getlimbn,
[ac_search_save_LIBS="$LIBS"
##
[ac_search_save_LIBS="$LIBS"
ac_cv_search_mpz_getlimbn="no"
##
ac_cv_search_mpz_getlimbn="no"
for i in $1; do
##
for i in $1; do
LIBS="-l$i $ac_search_save_LIBS"
##
LIBS="-l$i $ac_search_save_LIBS"
AC_TRY_LINK(dnl
##
AC_TRY_LINK(dnl
[#if HAVE_GMP_H
##
[#if HAVE_GMP_H
#include <gmp.h>
##
#include <gmp.h>
#elif HAVE_GMP2_GMP_H
##
#elif HAVE_GMP2_GMP_H
#include <gmp2/gmp.h>
##
#include <gmp2/gmp.h>
#endif
##
#endif
],
##
],
[mpz_getlimbn(0);],
##
[mpz_getlimbn(0);],
[ac_cv_search_mpz_getlimbn=-l$i
##
[ac_cv_search_mpz_getlimbn=-l$i
break
##
break
])
##
])
done
##
done
LIBS="$ac_search_save_LIBS"
##
LIBS="$ac_search_save_LIBS"
])
##
])
if test "x$ac_cv_search_mpz_getlimbn" != xno ; then
##
if test "x$ac_cv_search_mpz_getlimbn" != xno ; then
LIBS="$ac_cv_search_mpz_getlimbn $LIBS"
##
LIBS="$ac_cv_search_mpz_getlimbn $LIBS"
ifelse([$2], ,
##
ifelse([$2], ,
[AC_DEFINE(HAVE_LIBGMP)
##
[AC_DEFINE(HAVE_LIBGMP)
], [$2])
##
], [$2])
ifelse([$3], , ,
##
ifelse([$3], , ,
[else
##
[else
$3
##
$3
])dnl
##
])dnl
fi
##
fi
])
##
])
# LSH_PATH_ADD(path-id, directory)
# LSH_PATH_ADD(path-id, directory)
AC_DEFUN([LSH_PATH_ADD],
AC_DEFUN([LSH_PATH_ADD],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment