File: configure.in

package info (click to toggle)
mminstance 1.16.3-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 764 kB
  • ctags: 1,691
  • sloc: cpp: 10,472; ansic: 1,178; sh: 330; makefile: 186
file content (75 lines) | stat: -rw-r--r-- 1,532 bytes parent folder | download
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
dnl Process this file with autoconf to produce a configure script.
AC_INIT(NEWS)
AM_INIT_AUTOMAKE(mminstance, 1.16.3)
AM_CONFIG_HEADER(config.h)

AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP

AC_PROG_RANLIB

AC_ARG_ENABLE(warnings, [  --enable-warnings       compile with -Wall],
[CC="$CC -W -Wall"; CXX="$CXX -W -Wall"])

dnl
dnl dependencies
dnl

AC_ARG_ENABLE(dependencies, [  --enable-dependencies   track dependencies (requires GCC, G++ and GNU Make)],
[CC="$CC -MMD"; CXX="$CXX -MMD"
AUTODEPENDENCIES='DEPFILES := $(wildcard *.d)\
ifneq ($(DEPFILES),)\
include $(DEPFILES)\
endif'])
AC_SUBST(AUTODEPENDENCIES)

dnl
dnl directory searching
dnl

AC_HEADER_DIRENT

dnl
dnl strerror, working strtod, strtoul, time
dnl

FIXLIBC_O=''
AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR), FIXLIBC_O='fixlibc.o')
AC_CHECK_FUNCS(strtoul ctime)

AC_CACHE_CHECK(whether strtod works, ac_cv_working_strtod,
[AC_TRY_RUN([#include <stdio.h>
#include <stdlib.h>
int main(int c, char **v) {
  char s[] = "12 ";
  char *endp;
  double d = strtod(s, &endp);
  exit(*endp == 0 ? 1 : 0);
}], ac_cv_working_strtod=yes, ac_cv_working_strtod=no,
ac_cv_working_strtod=yes)])
if test $ac_cv_working_strtod = no ;
then FIXLIBC_O='fixlibc.o'; AC_DEFINE_UNQUOTED(BROKEN_STRTOD)
fi

AC_SUBST(FIXLIBC_O)

dnl
dnl floor
dnl

AC_CHECK_FUNC(floor, :, AC_CHECK_LIB(m, floor))

dnl
dnl new.h
dnl

AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS(new.h)

dnl
dnl Output
dnl

AC_OUTPUT(Makefile edlib/Makefile t1lib/Makefile metricslib/Makefile mmafm/Makefile mmpfb/Makefile)