File: configure.ac

package info (click to toggle)
netrw 1.3.2-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 980 kB
  • sloc: ansic: 3,279; sh: 3,157; makefile: 36
file content (101 lines) | stat: -rw-r--r-- 2,372 bytes parent folder | download | duplicates (3)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
AC_REVISION([$Id: configure.ac,v 1.17 2006/02/05 15:19:12 jirka Exp $])

# Process this file with autoconf to produce a configure script.
AC_INIT([netrw tools], NW_VERSION, [jirka@ics.muni.cz], [netrw])

# save configure options
NW_CONF_OPTIONS

# linking against diet libc meta-option
NW_ENABLE_DIET


AC_CANONICAL_SYSTEM

AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dependencies no-installinfo no-installman])
AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([src/checksum.c])
AM_CONFIG_HEADER([config.h])

# Checks for compiler.
AC_SYS_LARGEFILE
AC_PROG_CC

# Checks for programs.
AC_PATH_PROG([DATE_PROGRAM], [date], [false])
AC_PATH_PROG([WHOAMI_PROGRAM], [whoami], [false])
AC_PATH_PROG([UNAME_PROGRAM], [uname], [false])
AC_PATH_PROG([HOSTNAME_PROGRAM], [hostname], [false])

# Checks for libraries.

# Checks for header files.
AC_C_CONST
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS([arpa/inet.h \
                  netdb.h \
                  netinet/in.h \
                  sys/socket.h \
                  sys/time.h \
                  sys/types.h \
                  sys/stat.h \
                  fcntl.h \
                  sys/select \
                  stdarg.h \
                  getopt.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_CHECK_TYPES([socklen_t, unsigned long long])
NW_INT_TYPES
NW_CHECK_BYTE_ORDER

# Checks for library functions.
#AC_FUNC_MALLOC
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([gethostbyname \
                inet_ntoa \
                gettimeofday \
                memset \
                select \
                socket \
                strchr \
                strerror \
                strtol \
                hstrerror])

if test x$ac_cv_func_hstrerror != xyes; then
    AC_CHECK_LIB([resolv], [hstrerror])
fi

if test x$ac_cv_func_gethostbyname != xyes; then
    AC_CHECK_LIB([nsl], [gethostbyname])
fi

if test x$ac_cv_func_socket != xyes; then
    AC_CHECK_LIB([socket], [socket])
fi

AC_REPLACE_FUNCS([getopt \
                  snprintf \
                  vsnprintf])

# Option processing.
NW_WITH_CHECKSUM
NW_ENABLE_GCC_OPTS
NW_DEFAULT_CHECKSUM
NW_ENABLE_STATIC

# Sets version.h stuff such as release date, build date, etc.
NW_VER_RELEASE_DATE
NW_VER_BUILD_DATE
NW_VER_BUILDER
NW_CONF_INFO

# Generates output files.
AC_CONFIG_FILES([Makefile version.h src/Makefile])
AC_OUTPUT

NW_SUMMARY