~ubuntu-branches/ubuntu/oneiric/libuninum/oneiric

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Bartosz Fenski
  • Date: 2007-10-11 11:51:01 UTC
  • Revision ID: james.westby@ubuntu.com-20071011115101-lthr3ez79qz2put5
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_PREREQ(2.59)
 
2
AC_INIT(libuninum, 2.6, billposer@alum.mit.edu)
 
3
AM_CONFIG_HEADER([config.h])
 
4
AM_INIT_AUTOMAKE
 
5
 
 
6
AC_ARG_ENABLE(allocaok,
 
7
[--disable-allocaok Do not use alloca - use heap instead.],
 
8
[case "${enableval}" in
 
9
  yes) allocaok=true ;;
 
10
  no)  allocaok=false ;;
 
11
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-allocaok) ;;
 
12
esac],[allocaok=true])
 
13
 
 
14
AM_CONDITIONAL(ALLOCAOK,test "$allocaok" = true)
 
15
 
 
16
# Checks for programs.
 
17
AC_PROG_CC
 
18
AC_PROG_INSTALL
 
19
AC_PROG_LIBTOOL
 
20
 
 
21
# Checks for header files.
 
22
AC_HEADER_STDC
 
23
AC_CHECK_HEADERS([alloca.h ctype.h gmp.h langinfo.h limits.h locale.h math.h stddef.h stdlib.h string.h strings.h unistd.h wchar.h])
 
24
 
 
25
# Checks for typedefs, structures, and compiler characteristics.
 
26
AC_C_CONST
 
27
AC_C_INLINE
 
28
AC_TYPE_SIZE_T
 
29
 
 
30
# Checks for library functions.
 
31
AC_FUNC_ALLOCA
 
32
AC_FUNC_MALLOC
 
33
AC_CHECK_FUNCS([getopt_long localeconv setlocale strrchr wcschr])
 
34
AC_CHECK_LIB(gmp, __gmpz_init,,[AC_MSG_ERROR([GNU MP not found, see http://swox.com/gmp/])])
 
35
 
 
36
AC_CONFIG_FILES([Makefile])
 
37
AC_OUTPUT