~ubuntu-branches/debian/jessie/libccd/jessie

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Jose Luis Rivero
  • Date: 2014-03-24 16:51:48 UTC
  • Revision ID: package-import@ubuntu.com-20140324165148-mfno979f58rv322z
Tags: upstream-2.0
ImportĀ upstreamĀ versionĀ 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#                                               -*- Autoconf -*-
 
2
# Process this file with autoconf to produce a configure script.
 
3
 
 
4
#AC_PREREQ([2.65])
 
5
AC_INIT([libccd], [2.0], [danfis@danfis.cz])
 
6
AC_CONFIG_SRCDIR([src/ccd.c])
 
7
AC_CONFIG_HEADERS([src/ccd/config.h])
 
8
AM_INIT_AUTOMAKE
 
9
 
 
10
# Checks for programs.
 
11
AC_PROG_CXX
 
12
AC_PROG_CC
 
13
AC_PROG_INSTALL
 
14
AC_DISABLE_SHARED
 
15
LT_INIT
 
16
 
 
17
# Checks for libraries.
 
18
AC_CHECK_LIB([m], [main])
 
19
# FIXME: Replace `main' with a function in `-lrt':
 
20
AC_CHECK_LIB([rt], [main])
 
21
 
 
22
# Checks for header files.
 
23
AC_CHECK_HEADERS([float.h stdlib.h string.h unistd.h])
 
24
 
 
25
# Checks for typedefs, structures, and compiler characteristics.
 
26
AC_TYPE_SIZE_T
 
27
 
 
28
# Checks for library functions.
 
29
AC_FUNC_FORK
 
30
AC_FUNC_REALLOC
 
31
AC_CHECK_FUNCS([clock_gettime])
 
32
 
 
33
use_double=no
 
34
AC_ARG_ENABLE(double-precision,
 
35
              AS_HELP_STRING([--enable-double-precision],
 
36
                             [enable double precision computations instead of single precision]),
 
37
              [use_double=yes])
 
38
if test $use_double = no
 
39
then
 
40
        AC_DEFINE([CCD_SINGLE], [], [use single precision])
 
41
else
 
42
        AC_DEFINE([CCD_DOUBLE], [], [use double precision])
 
43
fi
 
44
 
 
45
 
 
46
AC_CONFIG_FILES([Makefile
 
47
                 src/Makefile
 
48
                 src/testsuites/Makefile
 
49
                 src/testsuites/cu/Makefile])
 
50
AC_OUTPUT