Added check for NULL hModule to DLClose
[public/netxms.git] / configure.ac
CommitLineData
380dd136 1# $Id: configure.ac,v 1.102 2005-09-13 11:10:36 victor Exp $
d16cf8a5
AK
2#
3# Process this file with autoconf to produce a configure script.
4#
5
380dd136 6AC_INIT([NetXMS], [0.2.6-dev], [NetXMS Team <bugs@netxms.org>])
d16cf8a5
AK
7AC_CONFIG_AUX_DIR([config])
8AM_CONFIG_HEADER([config.h])
9AM_INIT_AUTOMAKE
10
5387ff75
VK
11
12# --------------------------------------------------------------------------
13# checks for programs.
14
15AC_PROG_CC
16AC_PROG_CPP
17AC_PROG_CXX
18AC_PROG_INSTALL
19
12249937 20AC_DISABLE_STATIC
5387ff75
VK
21AC_LIBTOOL_DLOPEN
22AC_PROG_LIBTOOL
23
24
d16cf8a5 25# --------------------------------------------------------------------------
e0760102 26# disable C++ exceptions
063e34ad 27CFLAGS="$CFLAGS -fno-exceptions"
e0760102 28CPPFLAGS="$CPPFLAGS -fno-exceptions"
6f926182 29LDFLAGS="$LDFLAGS"
5387ff75 30
e0760102 31# --------------------------------------------------------------------------
d16cf8a5
AK
32# misc
33
34AC_ARG_VAR(PERL,local path to the perl interpreter)
35perl_possible_path="/usr/bin:/usr/local/bin:/bin:/opt/perl/bin:/opt/perl/usr/bin:/opt/perl/usr/local/bin"
36AC_PATH_PROG(PERL,perl,/usr/bin/env perl,$perl_possible_path)
37
38if test -d /usr/local/include; then
39 CFLAGS="$CFLAGS -I/usr/local/include"
2cb1fb26 40 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
d16cf8a5
AK
41fi
42
43if test -d /usr/kerberos/include; then
44 CFLAGS="$CFLAGS -I/usr/kerberos/include"
2cb1fb26 45 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
d16cf8a5 46fi
521d90e7 47
d16cf8a5
AK
48if test -d /usr/local/lib; then
49 LDFLAGS="$LDFLAGS -L/usr/local/lib"
50fi
51
52# --------------------------------------------------------------------------
ae82f88f
VK
53# check for system pthread.h
54
55AC_CHECK_HEADERS([/usr/include/pthread.h])
56
57# --------------------------------------------------------------------------
d16cf8a5
AK
58# command line options
59
c4b88c3d
VK
60AC_ARG_WITH(odbc,
61[AS_HELP_STRING(--with-odbc,build ODBC database driver)],
62[ if test "x$withval" != "xno" ; then
63 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
64 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
65 LDFLAGS="$LDFLAGS -L${withval}/lib"
66 CPPFLAGS="$CPPFLAGS -I${withval}/include"
67 fi
68 with_odbc="yes"
69 AC_DEFINE(WITH_ODBC,,[with odbc])
70 DB_DRIVERS="$DB_DRIVERS odbc"
71 AC_CHECK_LIB(odbc, SQLAllocHandle, ,
b11f69d6 72 [AC_MSG_ERROR(libodbc is required for ODBC support)])
c4b88c3d
VK
73fi ])
74
d16cf8a5 75AC_ARG_WITH(mysql,
c4b88c3d 76[AS_HELP_STRING(--with-mysql,build MySQL database driver)],
d16cf8a5
AK
77[ if test "x$withval" != "xno" ; then
78 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
79 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
80 LDFLAGS="$LDFLAGS -L${withval}/lib -L${withval}/lib/mysql -L${withval}/mysql/lib"
6693a1d0 81 CPPFLAGS="$CPPFLAGS -I${withval}/include -I${withval}/include/mysql -I${withval}/mysql/include"
d16cf8a5
AK
82 else
83 LD_RUN_PATH="/usr/local/mysql/lib:/usr/local/mysql/lib/mysql:/usr/lib/mysql:/usr/mysql/lib:/usr/mysql/lib/mysql:/usr/local/lib/mysql:${LD_RUN_PATH:+:}${LD_RUN_PATH}"
84 LDFLAGS="$LDFLAGS -L/usr/local/mysql/lib -L/usr/lib/mysql -L/usr/mysql/lib -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql"
6693a1d0 85 CPPFLAGS="$CPPFLAGS -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql"
d16cf8a5
AK
86 fi
87 AC_CHECK_LIB(m, floor)
88 AC_CHECK_LIB(z, gzclose)
89 with_mysql="yes"
90 AC_DEFINE(WITH_MYSQL,,[with mysql])
6693a1d0 91 DB_DRIVERS="$DB_DRIVERS mysql"
d16cf8a5 92 AC_CHECK_LIB(mysqlclient, mysql_init, ,
b11f69d6 93 [AC_MSG_ERROR(libmysqlclient is requred for MySQL support)])
d16cf8a5
AK
94 AC_MSG_CHECKING(whether mysql clients can run)
95 AC_RUN_IFELSE([AC_LANG_SOURCE([[
96 #include <stdio.h>
97 #include <mysql.h>
98 int main(void)
99 {
100 MYSQL *a = mysql_init(NULL);
101 return 0;
102 }
103 ]])],[],[
104 AC_MSG_RESULT(no)
105 AC_MSG_ERROR(Your MySQL client libraries aren't properly installed)
106 ],[])
107 AC_MSG_RESULT(yes)
108 AC_CHECK_FUNCS(mysql_real_escape_string)
6693a1d0 109fi ])
d16cf8a5
AK
110
111AC_ARG_WITH(pgsql,
c4b88c3d 112[AS_HELP_STRING(--with-pgsql,build PostgreSQL database driver)],
d16cf8a5 113[ if test "x$withval" != "xno" ; then
6693a1d0
AK
114 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
115 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
116 LDFLAGS="$LDFLAGS -L${withval}/lib -L${withval}/lib/pgsql -L${withval}/lib/postgresql -L${withval}/pgsql/lib -L${withval}/postgresql/lib"
117 CPPFLAGS="$CPPFLAGS -I${withval}/include -I${withval}/include/pgsql -I${withval}/include/postgresql -I${withval}/pgsql/include -I${withval}/postgresql/include"
118 else
119 LD_RUN_PATH="/usr/local/pgsql/lib:/usr/local/pgsql/lib/pgsql:/usr/lib/pgsql:/usr/pgsql/lib:/usr/pgsql/lib/pgsql:/usr/local/lib/pgsql:/usr/local/postgresql/lib:/usr/local/postgresql/lib/postgresql:/usr/lib/postgresql:/usr/postgresql/lib:/usr/postgresql/lib/postgresql:/usr/local/lib/postgresql:${LD_RUN_PATH:+:}${LD_RUN_PATH}"
120 LDFLAGS="$LDFLAGS -L/usr/local/pgsql/lib -L/usr/lib/pgsql -L/usr/pgsql/lib -L/usr/local/lib/pgsql -L/usr/local/pgsql/lib/pgsql -L/usr/pgsql/lib/pgsql -L/usr/local/postgresql/lib -L/usr/lib/postgresql -L/usr/postgresql/lib -L/usr/local/lib/postgresql -L/usr/local/postgresql/lib/postgresql -L/usr/postgresql/lib/postgresql"
121 CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include -I/usr/include/pgsql -I/usr/pgsql/include -I/usr/local/include/pgsql -I/usr/local/pgsql/include/pgsql -I/usr/pgsql/include/pgsql -I/usr/local/postgresql/include -I/usr/include/postgresql -I/usr/postgresql/include -I/usr/local/include/postgresql -I/usr/local/postgresql/include/postgresql -I/usr/postgresql/include/postgresql"
122 fi
123 AC_CHECK_LIB(m, floor)
124 AC_CHECK_LIB(z, gzclose)
125 with_pgsql="yes"
126 DB_DRIVERS="$DB_DRIVERS pgsql"
127 AC_DEFINE(WITH_PGSQL,,[with pgsql])
128 AC_CHECK_LIB(pq, PQconnectdb, ,
b11f69d6 129 [AC_MSG_ERROR(libpq is required for PostgreSQL support)])
6693a1d0
AK
130 AC_MSG_CHECKING(whether postgresql clients can run)
131 AC_RUN_IFELSE([AC_LANG_SOURCE([[
132 #include <stdio.h>
133 #include <libpq-fe.h>
134 int main(void)
135 {
136 PGconn *a = PQconnectdb("");
137 return 0;
138 }
139 ]])],[],[
140 AC_MSG_RESULT(no)
141 AC_MSG_ERROR(Your PostgreSQL client libraries aren't properly installed)
142 ],[])
143 AC_MSG_RESULT(yes)
144fi ])
d16cf8a5 145
3a7ce527
AK
146AC_ARG_WITH(server,
147[AS_HELP_STRING(--with-server,build server)],
148[
abc48356
VK
149 MODULES="$MODULES libnxsnmp server"
150 TOP_LEVEL_MODULES="$TOP_LEVEL_MODULES sql images"
151 CONTRIB_MODULES="$CONTRIB_MODULES mibs"
08ffa53e 152 BUILD_SERVER="yes"
3a7ce527 153])
3a7ce527
AK
154
155
e0760102
VK
156AC_ARG_WITH(client,
157[AS_HELP_STRING(--with-client,build client library and tools)],
158[
1e8eed7a 159 MODULES="$MODULES libnxcl nxevent nxreport console"
e0760102
VK
160 BUILD_CLIENT="yes"
161])
162
163
3a7ce527
AK
164SUBAGENT_DIRS=""
165AC_ARG_WITH(agent,
166[AS_HELP_STRING(--with-agent,build agent)],
167[
a7442678 168 BUILD_AGENT=yes
0c3c0c39 169 MODULES="$MODULES agent"
3a7ce527
AK
170 case `uname -s` in
171 Linux)
172 SUBAGENT_DIRS="linux"
173 ;;
174 FreeBSD)
175 SUBAGENT_DIRS="freebsd"
176 ;;
177 SunOS)
178 SUBAGENT_DIRS="sunos"
179 ;;
180 *)
181 # unknown
182 ;;
183 esac
184])
0c3c0c39
AK
185
186AC_ARG_WITH(dist,
187[AS_HELP_STRING(--with-dist,for maintainers only)],
188 DB_DRIVERS="mysql pgsql odbc mssql"
abc48356 189 MODULES="libnxsnmp server agent libnxcl nxevent nxreport console www"
0c3c0c39 190 SUBAGENT_DIRS="linux freebsd sunos"
5b0c7d0d 191 NXCONFIG="nxconfig"
abc48356
VK
192 TOP_LEVEL_MODULES="sql images"
193 CONTRIB_MODULES="mibs"
0c3c0c39
AK
194)
195
b97191d2
AK
196AC_ARG_WITH(nxsm,
197[AS_HELP_STRING(--with-nxsm,build session manager for web interface)],
198[
199 MODULES="$MODULES www"
200 BUILD_CLIENT="yes"
201])
202
6619a6b0 203AC_ARG_WITH(openssl,
a7442678
AK
204 [AS_HELP_STRING(--with-openssl,specify OpenSSL location)],
205 [
a7442678
AK
206 if test "x$withval" != "xno" ; then
207 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
208 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
209 LDFLAGS="$LDFLAGS -L${withval}/lib"
210 CPPFLAGS="$CPPFLAGS -I${withval}/include"
211 else
212 LD_RUN_PATH="/usr/local/lib:/opt/openssl/lib:${LD_RUN_PATH:+:}${LD_RUN_PATH}"
213 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/opt/openssl/lib"
214 CPPFLAGS="$CPPFLAGS -I/usr/local/include -I/opt/openssl/include"
215 fi
ad6eb83b
AK
216 AC_CHECK_LIB(crypto, RSA_new,
217 [
218 AC_DEFINE(WITH_OPENSSL,,[with openssl])
219 AC_CHECK_LIB(crypto, EVP_aes_256_cbc,
220 [], [AC_DEFINE(NETXMS_NO_AES,,[desc])])
221 AC_CHECK_LIB(crypto, EVP_bf_cbc,
222 [], [AC_DEFINE(NETXMS_NO_BF,,[desc])])
223 AC_CHECK_LIB(crypto, EVP_idea_cbc,
224 [], [AC_DEFINE(NETXMS_NO_IDEA,,[desc])])
225 AC_CHECK_LIB(crypto, EVP_des_ede3_cbc,
226 [], [AC_DEFINE(NETXMS_NO_DES,,[desc])])
227 ],
a7442678
AK
228 [AC_MSG_ERROR(libcrypto is required for encryption support)])
229 fi
a7442678 230 ],
ad6eb83b
AK
231 [
232 AC_CHECK_LIB(crypto, RSA_new,
233 [
234 AC_DEFINE(WITH_OPENSSL,,[with openssl])
235 AC_CHECK_LIB(crypto, EVP_aes_256_cbc,
236 [], [AC_DEFINE(NETXMS_NO_AES,,[desc])])
237 AC_CHECK_LIB(crypto, EVP_bf_cbc,
238 [], [AC_DEFINE(NETXMS_NO_BF,,[desc])])
239 AC_CHECK_LIB(crypto, EVP_idea_cbc,
240 [], [AC_DEFINE(NETXMS_NO_IDEA,,[desc])])
241 AC_CHECK_LIB(crypto, EVP_des_ede3_cbc,
242 [], [AC_DEFINE(NETXMS_NO_DES,,[desc])])
243 ],
244 [AC_MSG_RESULT(libcrypto is required for encryption support)])
245 ])
6619a6b0 246
0c3c0c39
AK
247AC_SUBST(DB_DRIVERS)
248AC_SUBST(MODULES)
3a7ce527 249AC_SUBST(SUBAGENT_DIRS)
5b0c7d0d 250AC_SUBST(NXCONFIG)
abc48356
VK
251AC_SUBST(TOP_LEVEL_MODULES)
252AC_SUBST(CONTRIB_MODULES)
3a7ce527 253
d16cf8a5
AK
254# --------------------------------------------------------------------------
255# checks for libs.
256
257#AC_CHECK_LIB([socket], [socket])
258#AC_CHECK_LIB([nsl], [gethostbyname])
259
521d90e7 260AC_CHECK_LIB(socket, if_nameindex)
87bb64a7 261AC_CHECK_LIB(dl, dlopen)
1b3c0ef0 262AC_CHECK_LIB(kstat, kstat_open)
d16cf8a5 263
e0760102
VK
264if test "x$BUILD_SERVER" = "xyes" ; then
265 AC_CHECK_LIB(termcap, tgetstr, [], [AC_CHECK_LIB(ncurses, tgetstr, [], AC_CHECK_LIB(curses, tgetstr))])
266 AC_CHECK_LIB(readline, readline)
267fi
268
08ffa53e 269# --------------------------------------------------------------------------
d16cf8a5
AK
270# checks for headers.
271
272AC_HEADER_STDC
273AC_HEADER_STAT
274AC_HEADER_TIME
521d90e7 275AC_CHECK_HEADERS([sys/int_types.h])
d16cf8a5 276AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h sys/socket.h])
467e30e1 277AC_CHECK_HEADERS([fcntl.h dirent.h sys/ioctl.h sys/sockio.h poll.h])
85303064 278AC_CHECK_HEADERS([net/if.h net/if_arp.h net/if_dl.h])
14ab1131 279AC_CHECK_HEADERS([readline/readline.h])
f52be742 280AC_CHECK_HEADERS([byteswap.h])
eca0b061 281AC_CHECK_HEADERS([sys/mman.h])
31a11006 282AC_CHECK_HEADERS([sys/utsname.h])
d16cf8a5 283
d16cf8a5
AK
284# --------------------------------------------------------------------------
285# types
286AC_CHECK_SIZEOF(short)
287AC_CHECK_SIZEOF(int)
288AC_CHECK_SIZEOF(long)
289AC_CHECK_SIZEOF(long long)
290
291AC_TYPE_PID_T
292AC_TYPE_SIGNAL
293AC_TYPE_SIZE_T
294AC_STRUCT_TIMEZONE
295
521d90e7 296AC_CHECK_TYPES([int64_t, uint64_t, u_int64_t])
eca0b061 297AC_CHECK_TYPES([off_t])
521d90e7 298
d16cf8a5
AK
299# --------------------------------------------------------------------------
300# C/CPP caps
301
302AC_PROG_GCC_TRADITIONAL
303AC_C_CONST
304AC_C_BIGENDIAN
305
306# --------------------------------------------------------------------------
f52be742
VK
307# macros
308
309AC_CHECK_DECLS([__bswap_64],,,[
310#if HAVE_BYTESWAP_H
311#include <byteswap.h>
312#endif
313])
85303064
VK
314AC_CHECK_DECLS([SIOCGIFADDR, SIOCGIFNETMASK, SIOCGIFHWADDR],,,[
315#if HAVE_SYS_IOCTL_H
316#include <sys/ioctl.h>
317#endif
318#if HAVE_SYS_SOCKIO_H
319#include <sys/sockio.h>
320#endif
321])
f52be742
VK
322
323# --------------------------------------------------------------------------
d16cf8a5
AK
324# library functions
325
326AC_FUNC_ERROR_AT_LINE
abc48356
VK
327#AC_FUNC_MALLOC
328#AC_FUNC_REALLOC
d16cf8a5 329AC_FUNC_MEMCMP
d16cf8a5
AK
330AC_FUNC_SELECT_ARGTYPES
331AC_FUNC_STRFTIME
332AC_FUNC_STRTOD
333AC_FUNC_VPRINTF
334
b50f1100
VK
335AC_CHECK_FUNCS([gettimeofday memmove memset strchr strcspn strdup strerror])
336AC_CHECK_FUNCS([strrchr strtol strtoul strtoll strtoull])
467e30e1 337AC_CHECK_FUNCS([if_nametoindex daemon mmap strerror_r scandir uname poll])
d16cf8a5 338
d16cf8a5
AK
339# sockets/resolver (probably for solaris)
340AC_CHECK_FUNC(connect, , [AC_CHECK_LIB(socket, connect)])
341AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(resolv, gethostbyname)])
342AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl, gethostbyname)])
343
344if test "x$ac_cv_lib_nsl_gethostbyname" != "xyes" && test "x$ac_cv_func_gethostbyname" != "xyes" ; then
345 AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(socket, gethostbyname)])
346fi
347
348if test "$ac_cv_lib_nsl_gethostbyname" = "$ac_cv_func_gethostbyname" ; then
349 AC_MSG_CHECKING([if we can include libnsl + libsocket])
350 LIBS="-lnsl -lsocket $LIBS"
351 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[(void) gethostbyname]])],[my_ac_link_result=yes],[my_ac_link_result=no ])
352 if test "$my_ac_link_result" = "no" ; then
353 AC_MSG_RESULT([failure])
354 AC_MSG_ERROR([unable to use gethostbyname()])
355 else
356 AC_MSG_RESULT([success])
357 fi
358fi
359
3d9b275c 360#ALK: CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" PTHREAD_LIBS="-pthread",
d16cf8a5
AK
361# posix threads
362AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***]))
363
364PTHREAD_LIBS=error
365AC_MSG_CHECKING(for old style FreeBSD -pthread flag)
366AC_EGREP_CPP(yes,
a910e139 367 [#if defined(__FreeBSD_cc_version) || defined(__OpenBSD__)
d16cf8a5
AK
368 yes
369 #endif
370 ], AC_MSG_RESULT(yes)
6693a1d0 371 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" PTHREAD_LIBS="-pthread",
d16cf8a5
AK
372 AC_MSG_RESULT(no))
373if test "x$PTHREAD_LIBS" = xerror; then
374 AC_CHECK_LIB(pthread, pthread_attr_init,
6693a1d0 375 PTHREAD_LIBS="-lpthread")
d16cf8a5
AK
376fi
377if test "x$PTHREAD_LIBS" = xerror; then
378 AC_CHECK_LIB(pthreads, pthread_attr_init,
6693a1d0 379 PTHREAD_LIBS="-lpthreads")
d16cf8a5
AK
380fi
381if test "x$PTHREAD_LIBS" = xerror; then
6693a1d0
AK
382 AC_CHECK_FUNC(pthread_attr_init,
383 PTHREAD_LIBS="")
d16cf8a5
AK
384fi
385if test "x$PTHREAD_LIBS" = xerror; then
386 AC_MSG_ERROR(*** Unable to locate working posix thread library ***)
387fi
388AC_SUBST(PTHREAD_LIBS)
389
696fc54f
VK
390# Extensions to posix threads
391AC_CHECK_FUNCS([pthread_cond_reltimedwait_np])
392
82fa7c5d
AK
393# misc
394CPPFLAGS="$CPPFLAGS -DDATADIR=\\\"\${pkgdatadir}\\\""
395
d16cf8a5
AK
396# --------------------------------------------------------------------------
397
398# shared libs versions
399#
400# versioning scheme: current:revision:age
401#
402# current
403# The number of the current interface exported by the library. A current
404# value of `0', means that you are calling the interface exported by this
405# library interface 0.
406#
407# revision
408# The implementation number of the most recent interface exported by this
409# library. In this case, a revision value of `0' means that this is the
410# first implementation of the interface.
411# If the next release of this library exports the same interface, but has a
412# different implementation (perhaps some bugs have been fixed), the revision
413# number will be higher, but current number will be the same. In that case,
414# when given a choice, the library with the highest revision will always
415# be used by the runtime loader.
416#
417# age
418# The number of previous additional interfaces supported by this library.
419# If age were `2', then this library can be linked into executables which
420# were built with a release of this library that exported the current
421# interface number, current, or any of the previous two interfaces.
422# By definition age must be less than or equal to current. At the outset,
423# only the first ever interface is implemented, so age can only be `0'.
424#
425#
426#
427
d8f2e39b
VK
428LIBNETXMS_LIBRARY_VERSION=0:2:0
429LIBNXCSCP_LIBRARY_VERSION=0:2:0
430LIBNXSNMP_LIBRARY_VERSION=0:2:0
431LIBNXSRV_LIBRARY_VERSION=0:2:0
432LIBNXCORE_LIBRARY_VERSION=0:2:0
433DBDRV_LIBRARY_VERSION=0:2:0
434SMSDRV_LIBRARY_VERSION=0:2:0
d16cf8a5 435AC_SUBST(LIBNETXMS_LIBRARY_VERSION)
3e7f0791 436AC_SUBST(LIBNXCSCP_LIBRARY_VERSION)
d853cd74 437AC_SUBST(LIBNXSNMP_LIBRARY_VERSION)
aa3b26fd 438AC_SUBST(LIBNXSRV_LIBRARY_VERSION)
17a48052 439AC_SUBST(LIBNXCORE_LIBRARY_VERSION)
b900a78b 440AC_SUBST(DBDRV_LIBRARY_VERSION)
d8f2e39b 441AC_SUBST(SMSDRV_LIBRARY_VERSION)
d16cf8a5
AK
442
443# --------------------------------------------------------------------------
444
445AC_CONFIG_FILES([
d16cf8a5 446 README
0c3c0c39
AK
447 Makefile
448 contrib/Makefile
0c3c0c39
AK
449 contrib/dct/Makefile
450 contrib/startup/Makefile
451 contrib/startup/redhat/Makefile
82fa7c5d 452 contrib/mibs/Makefile
0c3c0c39
AK
453 doc/Makefile
454 images/Makefile
455 include/Makefile
456 m4/Makefile
457 netware/Makefile
458 sql/Makefile
0c3c0c39
AK
459 src/Makefile
460 src/libnetxms/Makefile
461 src/libnxcscp/Makefile
d853cd74 462 src/libnxsnmp/Makefile
0c3c0c39 463 src/libnxcl/Makefile
1b1edd49
VK
464 src/install/Makefile
465 src/install/windows/Makefile
0c3c0c39
AK
466 src/console/Makefile
467 src/console/win32/Makefile
468 src/console/win32/icons/Makefile
469 src/console/win32/res/Makefile
470 src/console/win32starter/Makefile
672441ac 471 src/console/nxav/Makefile
2b463d08 472 src/console/nxav/res/Makefile
672441ac 473 src/console/cmdline/Makefile
2b463d08
VK
474 src/console/PocketPC/Makefile
475 src/console/PocketPC/res/Makefile
0c3c0c39 476 src/nxevent/Makefile
1e8eed7a 477 src/nxreport/Makefile
0c3c0c39
AK
478 src/server/Makefile
479 src/server/core/Makefile
a551fe4d 480 src/server/netxmsd/Makefile
0c3c0c39
AK
481 src/server/dbdrv/Makefile
482 src/server/dbdrv/odbc/Makefile
483 src/server/dbdrv/mssql/Makefile
484 src/server/dbdrv/mysql/Makefile
485 src/server/dbdrv/pgsql/Makefile
d8f2e39b
VK
486 src/server/smsdrv/Makefile
487 src/server/smsdrv/generic/Makefile
0c3c0c39
AK
488 src/server/tools/Makefile
489 src/server/tools/nxget/Makefile
490 src/server/tools/nxaction/Makefile
491 src/server/tools/nxadm/Makefile
5b0c7d0d
VK
492 src/server/tools/nxconfig/Makefile
493 src/server/tools/nxconfig/res/Makefile
f90d7fc5 494 src/server/tools/nxdbmgr/Makefile
d853cd74 495 src/server/tools/nxsnmpget/Makefile
734c670f 496 src/server/tools/nxsnmpwalk/Makefile
d24fdaf4 497 src/server/tools/nxupload/Makefile
0c3c0c39
AK
498 src/server/libnxsrv/Makefile
499 src/agent/Makefile
500 src/agent/core/Makefile
5795bf90 501 src/agent/install/Makefile
0c3c0c39
AK
502 src/agent/subagents/Makefile
503 src/agent/subagents/linux/Makefile
504 src/agent/subagents/sunos/Makefile
505 src/agent/subagents/skeleton/Makefile
506 src/agent/subagents/freebsd/Makefile
507 src/agent/subagents/netware/Makefile
1bc607cc
VK
508 src/agent/subagents/winnt/Makefile
509 src/agent/subagents/win9x/Makefile
0c3c0c39 510 src/agent/subagents/winperf/Makefile
93f15c2a 511 src/agent/subagents/portCheck/Makefile
abc48356 512 src/agent/subagents/ping/Makefile
b97191d2
AK
513 src/www/Makefile
514 src/www/iis/Makefile
515 src/www/nxsm/Makefile
0c3c0c39 516 tools/Makefile
d16cf8a5
AK
517])
518
12249937
VK
519AC_OUTPUT
520
6f926182
AK
521#echo "Updating libtool-1"
522#sed 's/-lc_r/-lc_rXXX/' < ./libtool > libtool.new && mv libtool.new libtool && chmod +x ./libtool
5cecf50e
AK
523
524echo "Updating libtool-2"
525sed 's,$SED -e "/${host}-//g",$SED -e "s/${host}-//g",g' < ./libtool > libtool.new && mv libtool.new libtool && chmod +x ./libtool
526
6f926182
AK
527#if test ! "x$BUILD_SERVER" = "xyes" ; then
528# echo "Updating libtool-3"
529# $PERL tools/patch_libtool.pl <libtool >libtool.new
530# mv libtool.new libtool
531# chmod 755 libtool
532#fi
a7442678
AK
533
534
535
536###########################
537#
538echo
539echo
540echo
541echo '---------------------------------------------------------------------'
542echo ' Configure results'
543echo '---------------------------------------------------------------------'
544echo
545 echo "Prefix : ${prefix}"
546if test "x${BUILD_SERVER}" = "xyes"; then
547 echo "Build Server : YES"
548else
549 echo "Build Server : NO"
550fi
551if test "x${ac_cv_lib_crypto_RSA_new}" = "xyes"; then
552 echo "Encryption enabled : YES"
553else
554 echo "Encryption enabled : NO"
555fi
556if test "x${DB_DRIVERS}" != "x"; then
557 echo "Build DB-Drivers : ${DB_DRIVERS}"
558else
559 echo "Build DB-Drivers : NO"
560fi
561if test "x${BUILD_CLIENT}" = "xyes"; then
562 echo "Build Clients : YES"
563else
564 echo "Build Clients : NO"
565fi
566if test "x${BUILD_AGENT}" = "xyes"; then
567 echo "Build Agent : YES"
568 echo "Subagents list : ${SUBAGENT_DIRS}"
569else
570 echo "Build Agent : NO"
571fi