File: configure.in

package info (click to toggle)
nam 1.15-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 29,240 kB
  • sloc: cpp: 17,338; tcl: 10,655; sh: 2,997; ansic: 1,252; makefile: 139; perl: 66
file content (62 lines) | stat: -rw-r--r-- 1,393 bytes parent folder | download | duplicates (5)
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
dnl Process this file with autoconf to produce a configure script.
dnl
AC_INIT(main.cc)

AC_CONFIG_HEADER(autoconf.h)

V_PROG="nam"
V_ALL="$V_PROG"
V_SHM="-DUSE_SHM"
V_LIB=""
V_SHELL=""

AC_HEADER_STDC

builtin(include, ./conf/configure.in.fns)

builtin(include, ./conf/configure.in.head)
builtin(include, ./conf/configure.in.misc)
builtin(include, ./conf/configure.in.z)
builtin(include, ./conf/configure.in.x11)
builtin(include, ./conf/configure.in.tcl)
builtin(include, ./conf/configure.in.tk)
builtin(include, ./conf/configure.in.tcldebug)
builtin(include, ./conf/configure.in.otcl)
builtin(include, ./conf/configure.in.TclCL)

dnl
dnl figure out random return type
dnl
AC_MSG_CHECKING(return type of random)
touch confdefs.h
AC_TRY_RUN([#include <stdlib.h>
#include "confdefs.h"
long random() { return 1; }
main() { exit(0); }
],
AC_MSG_RESULT(long)
AC_DEFINE(RANDOM_RETURN_TYPE,long)
,
AC_MSG_RESULT(int)
AC_DEFINE(RANDOM_RETURN_TYPE,int)
,
AC_MSG_RESULT(cross compiling--guessing int)
AC_DEFINE(RANDOM_RETURN_TYPE,int)
)

dnl
dnl check some types
dnl
AC_CHECK_TYPE(int8_t,signed char)
AC_CHECK_TYPE(int16_t,short)
AC_CHECK_TYPE(int32_t,int)
AC_CHECK_TYPE(u_int8_t,unsigned char)
AC_CHECK_TYPE(u_int16_t,unsigned short)
AC_CHECK_TYPE(u_int32_t,unsigned int)

builtin(include, ./conf/configure.in.int64_t)

AC_CHECK_FUNCS(snprintf)

NS_FNS_TAIL
builtin(include, ./conf/configure.in.tail)