update urcutorture to include arch.h
[urcu.git] / configure.ac
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4
5 AC_PREREQ([2.63])
6 AC_INIT([userspace-rcu], [0.2.2], [mathieu dot desnoyers at polymtl dot ca])
7 AC_CONFIG_AUX_DIR([config])
8 AC_CONFIG_MACRO_DIR([m4])
9 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])
10 AC_CONFIG_SRCDIR([urcu.h])
11 AC_CONFIG_HEADERS([config.h])
12
13 # Checks for programs.
14 AC_PROG_CC
15 AC_PROG_MAKE_SET
16 AC_PROG_LIBTOOL
17
18 # Checks for typedefs, structures, and compiler characteristics.
19 AC_C_INLINE
20 AC_TYPE_PID_T
21 AC_TYPE_SIZE_T
22
23 # Checks for library functions.
24 AC_FUNC_MALLOC
25 AC_FUNC_MMAP
26 AC_CHECK_FUNCS([bzero gettimeofday munmap strtoul])
27
28 # Find arch type
29 case $host_cpu in
30 x86_64) ARCHTYPE="x86";;
31 i586) ARCHTYPE="x86" ;;
32 i686) ARCHTYPE="x86" ;;
33 powerpc) ARCHTYPE="ppc" ;;
34 ppc64) ARCHTYPE="ppc" ;;
35 ppc) ARCHTYPE="ppc" ;;
36 s390) ARCHTYPE="s390" ;;
37 s390x) ARCHTYPE="s390" ;;
38 *) ARCHTYPE="unknown";;
39 esac
40
41 if test "$ARCHTYPE" = "unknown"; then
42 AC_MSG_ERROR([Unable to detect the architecture.])
43 fi
44 AC_SUBST(ARCHTYPE)
45
46 AM_CONDITIONAL([GCC_API], [test "x@ARCHTYPE@" != xx86 -a "x@ARCHTYPE@" != xppc])
47
48
49 AC_CONFIG_FILES([
50 Makefile
51 tests/Makefile
52 ])
53 AC_OUTPUT
This page took 0.03074 seconds and 5 git commands to generate.