Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Side by Side Diff: configure.ac

Issue 2847081: Initial code. (Closed) Base URL: ssh://git@chromiumos-git/libscrypt.git
Patch Set: Use scrypt distro and patch with changes instead. Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « configure ('k') | function_visibility.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3 m4_pattern_allow([AM_INIT_AUTOMAKE])
4 m4_pattern_allow([AC_PROG_LIBTOOL])
5
6 AC_PREREQ([2.63])
7 AC_INIT([libscrypt], [1.1.6], [http://www.tarsnap.com/scrypt.html])
8 AC_CONFIG_AUX_DIR([build-aux])
9 AC_CONFIG_MACRO_DIR([m4])
10 AC_CONFIG_SRCDIR([src/scrypt_platform.h])
11 AC_CONFIG_HEADERS([config.h])
12 AM_INIT_AUTOMAKE([foreign])
13
14 AC_PROG_LIBTOOL
15 AC_SUBST(enable_shared)
16 AC_SUBST(enable_static)
17 libtool_VERSION=1:0:0
18 AC_SUBST(libtool_VERSION)
19
20 # Checks for programs.
21 AC_PROG_CC
22
23 # Checks for libraries.
24 AC_CHECK_LIB(rt, clock_gettime)
25
26 # Checks for header files.
27 AC_CHECK_HEADERS([err.h fcntl.h inttypes.h memory.h stddef.h stdint.h stdlib.h s tring.h strings.h sys/endian.h sys/param.h sys/stat.h sys/sysinfo.h sys/time.h s ys/types.h termios.h unistd.h])
28
29 # Checks for typedefs, structures, and compiler characteristics.
30 AC_C_INLINE
31 AC_TYPE_SIZE_T
32 AC_TYPE_SSIZE_T
33 AC_TYPE_UINT32_T
34 AC_TYPE_UINT64_T
35 AC_TYPE_UINT8_T
36 AC_CHECK_TYPES([struct sysinfo],[], [], [[#include <sys/sysinfo.h>]])
37 AC_CHECK_HEADER([sys/sysinfo.h], [
38 AC_CHECK_MEMBER(struct sysinfo.mem_unit,
39 [AC_DEFINE([HAVE_STRUCT_SYSINFO_MEM_UNIT],[],[s ys/sysinfo.mem_unit])],
40 [],
41 [#include <sys/sysinfo.h>])])
42 AC_CHECK_HEADER([sys/sysinfo.h], [
43 AC_CHECK_MEMBER(struct sysinfo.totalram,
44 [AC_DEFINE([HAVE_STRUCT_SYSINFO_TOTALRAM],[],[s ys/sysinfo.totalram])],
45 [],
46 [#include <sys/sysinfo.h>])])
47
48 # Checks for library functions.
49 AC_FUNC_MALLOC
50 AC_FUNC_MMAP
51 AC_FUNC_STRTOD
52 AC_CHECK_FUNCS([clock_gettime gettimeofday memmove memset munmap posix_memalign strcspn strdup strerror strtoumax sysinfo])
53
54 AC_CHECK_DECLS(be64enc)
55
56 # Check if we have a hw.usermem sysctl.
57 if sysctl hw.usermem >/dev/null 2>/dev/null; then
58
59 cat >>confdefs.h <<\_ACEOF
60 #define HAVE_SYSCTL_HW_USERMEM 1
61 _ACEOF
62
63 fi
64
65 AC_CONFIG_FILES([Makefile])
66 AC_OUTPUT
OLDNEW
« no previous file with comments | « configure ('k') | function_visibility.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698