forked from jgoerzen/wview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.in
More file actions
executable file
·139 lines (122 loc) · 4.25 KB
/
configure.in
File metadata and controls
executable file
·139 lines (122 loc) · 4.25 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.5)
AC_INIT([wview],[5.20.2ext],[mteel@users.sourceforge.net])
AC_CONFIG_SRCDIR([ftp/ftpUtils.c])
AM_INIT_AUTOMAKE([wview],[5.20.2ext])
AM_CONFIG_HEADER([config.h])
# Provide a switch for installing databases:
AC_ARG_ENABLE(install-dpkg,
[ --enable-install-dpkg install debian package environment],
[case "${enableval}" in
yes) install_dpkg=true ;;
no) install_dpkg=false ;;
*) install_dpkg=false ;;
esac],[install_dpkg=false])
AM_CONDITIONAL(INSTALL_DPKG, test x$install_dpkg = xtrue)
# grab autoconf version of the host system (not the same as gcc name):
AC_CANONICAL_HOST
# Check for big endian host:
AC_C_BIGENDIAN()
# Check where to get timezone (GMT offset) from
AC_STRUCT_TIMEZONE
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LN_S
# Set a flag here if we are cross compiling (must be after AC_PROG_CC)
AM_CONDITIONAL(CROSSCOMPILE, test x$cross_compiling = xyes)
# Determine host system (autoconf version):
case $host_os in
darwin*)
os_darwin=yes
os_linux=no
os_freebsd=no
os_solaris=no
;;
freebsd*)
os_darwin=no
os_linux=no
os_freebsd=yes
os_solaris=no
;;
solaris*)
os_darwin=no
os_linux=no
os_freebsd=no
os_solaris=yes
;;
*)
os_darwin=no
os_linux=yes
os_freebsd=no
os_solaris=no
;;
esac
AM_CONDITIONAL([DARWIN], [test x$os_darwin = xyes])
AM_CONDITIONAL([LINUX], [test x$os_linux = xyes])
AM_CONDITIONAL([FREEBSD], [test x$os_freebsd = xyes])
AM_CONDITIONAL([SOLARIS], [test x$os_solaris = xyes])
# Checks for libraries.
AC_CHECK_LIB([c], [strncpy], [], [echo "libc is missing!";exit -1])
AC_CHECK_LIB([gd], [gdImageCreate], [], [echo "libgd is missing!";exit -1])
AC_CHECK_LIB([m], [exp], [], [echo "libm is missing!";exit -1])
AC_CHECK_LIB([png], [png_write_chunk], [], [echo "libpng is missing!";exit -1])
AC_CHECK_LIB([sqlite3], [sqlite3_open], [], [echo "libsqlite3 is missing!";exit -1])
AC_CHECK_LIB([pthread], [pthread_create], [], [echo "libpthread is missing!";exit -1])
AC_CHECK_LIB([rad], [radthreadLock], [], [echo "librad is missing or old version!";exit -1])
AC_CHECK_LIB([curl], [curl_easy_init], [], [echo "libcurl is missing!";exit -1])
AC_CHECK_LIB([z], [inflate], [], [echo "libz is missing!";exit -1])
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h termios.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics
AC_C_CONST
AC_TYPE_PID_T
AC_HEADER_TIME
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MKTIME
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_CHECK_FUNCS([localtime_r memset mkdir pow strrchr])
AC_CHECK_FUNCS(flock)
AC_CONFIG_FILES([Makefile \
stations/Makefile \
stations/Simulator/Makefile \
stations/Virtual/Makefile \
stations/VantagePro/Makefile \
stations/VantagePro/vpconfig/Makefile \
stations/WS-2300/Makefile \
stations/WMR918/Makefile \
stations/WMRUSB/Makefile \
stations/WXT510/Makefile \
stations/WXT510/wxt510config/Makefile \
stations/TWI/Makefile \
stations/WH1080/Makefile \
stations/TE923/Makefile \
htmlgenerator/Makefile \
alarms/Makefile \
cwop/Makefile \
http/Makefile \
ftp/Makefile \
ssh/Makefile \
procmon/Makefile \
wviewconfig/Makefile \
wviewmgmt/Makefile \
dbexport/Makefile \
examples/Makefile \
examples/Debian/Makefile \
examples/FedoraCore/Makefile \
examples/FreeBSD/Makefile \
examples/MacOSX/wview/Makefile \
examples/NSLU2/Makefile \
examples/SuSE/Makefile \
utilities/Makefile \
utilities/wlk2sqlite/Makefile \
utilities/sqlite2wlk/Makefile \
utilities/archive-be2le/Makefile \
utilities/archive-le2be/Makefile \
utilities/hilowcreate/Makefile])
AC_OUTPUT