forked from hebcal/hebcal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
46 lines (36 loc) · 1.24 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT(hebcal,4.18,[email protected])
AM_MAINTAINER_MODE([disable])
AM_INIT_AUTOMAKE([foreign no-dependencies no-installinfo])
AC_CONFIG_SRCDIR([common.c])
AM_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
AC_CHECK_HEADERS([getopt.h])
# Checks for libraries.
dnl AC_CHECK_LIB(m, sin)
dnl AC_CHECK_LIB(m, cos)
dnl AC_CHECK_LIB(m, atan)
AC_CHECK_LIB(m, sqrt)
dnl AC_CHECK_LIB(m, acos)
dnl AC_CHECK_LIB(m, fabs)
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h sys/time.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([sqrt strchr strdup])
AC_ARG_WITH(default-city,
[[ --with-default-city=CITYNAME make the default city CITYNAME.
If unspecified, the default city will be "New York"]],
AC_DEFINE_UNQUOTED(CITY,"$withval",["The Default City"]),
AC_DEFINE(CITY,"New_York",["The default city"]))
AC_CONFIG_FILES([hebcal.1])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([tests/Makefile])
AC_OUTPUT