Version number changed to 0.2.3
[public/netxms.git] / configure.ac
CommitLineData
1bc607cc 1# $Id: configure.ac,v 1.95 2005-08-08 20:45:38 victor Exp $
d16cf8a5
AK
2#
3# Process this file with autoconf to produce a configure script.
4#
5
9d6aa215 6AC_INIT([NetXMS], [0.2.3], [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
e0760102
VK
25# --------------------------------------------------------------------------
26# disable C++ exceptions
063e34ad 27CFLAGS="$CFLAGS -fno-exceptions"
e0760102 28CPPFLAGS="$CPPFLAGS -fno-exceptions"
6f926182 29LDFLAGS="$LDFLAGS"
5387ff75 30
d16cf8a5
AK
31# --------------------------------------------------------------------------
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
ae82f88f
VK
52# --------------------------------------------------------------------------
53# check for system pthread.h
54
55AC_CHECK_HEADERS([/usr/include/pthread.h])
56
d16cf8a5
AK
57# --------------------------------------------------------------------------
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(--without-openssl,Disable encryption)],
205 [],
206 [with_openssl=yes])
207
208AC_ARG_WITH(openssl,
209 [AS_HELP_STRING(--with-openssl,specify OpenSSL location)],
210 [
211 if test "x$withval" != "xno"; then
212 if test "x$withval" != "xno" ; then
213 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
214 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
215 LDFLAGS="$LDFLAGS -L${withval}/lib"
216 CPPFLAGS="$CPPFLAGS -I${withval}/include"
217 else
218 LD_RUN_PATH="/usr/local/lib:/opt/openssl/lib:${LD_RUN_PATH:+:}${LD_RUN_PATH}"
219 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/opt/openssl/lib"
220 CPPFLAGS="$CPPFLAGS -I/usr/local/include -I/opt/openssl/include"
221 fi
222 with_openssl="yes"
223 AC_DEFINE(WITH_OPENSSL,,[with openssl])
224 AC_CHECK_LIB(crypto, RSA_new, ,
225 [AC_MSG_ERROR(libcrypto is required for encryption support)])
226 fi
6619a6b0 227 fi
a7442678
AK
228 ],
229)
230
6619a6b0 231
0c3c0c39
AK
232AC_SUBST(DB_DRIVERS)
233AC_SUBST(MODULES)
3a7ce527 234AC_SUBST(SUBAGENT_DIRS)
5b0c7d0d 235AC_SUBST(NXCONFIG)
abc48356
VK
236AC_SUBST(TOP_LEVEL_MODULES)
237AC_SUBST(CONTRIB_MODULES)
3a7ce527 238
d16cf8a5
AK
239# --------------------------------------------------------------------------
240# checks for libs.
241
242#AC_CHECK_LIB([socket], [socket])
243#AC_CHECK_LIB([nsl], [gethostbyname])
244
521d90e7 245AC_CHECK_LIB(socket, if_nameindex)
87bb64a7 246AC_CHECK_LIB(dl, dlopen)
1b3c0ef0 247AC_CHECK_LIB(kstat, kstat_open)
d16cf8a5 248
e0760102
VK
249if test "x$BUILD_SERVER" = "xyes" ; then
250 AC_CHECK_LIB(termcap, tgetstr, [], [AC_CHECK_LIB(ncurses, tgetstr, [], AC_CHECK_LIB(curses, tgetstr))])
251 AC_CHECK_LIB(readline, readline)
252fi
253
d16cf8a5
AK
254# --------------------------------------------------------------------------
255# checks for headers.
256
257AC_HEADER_STDC
258AC_HEADER_STAT
259AC_HEADER_TIME
521d90e7 260AC_CHECK_HEADERS([sys/int_types.h])
d16cf8a5 261AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h sys/socket.h])
467e30e1 262AC_CHECK_HEADERS([fcntl.h dirent.h sys/ioctl.h sys/sockio.h poll.h])
85303064 263AC_CHECK_HEADERS([net/if.h net/if_arp.h net/if_dl.h])
14ab1131 264AC_CHECK_HEADERS([readline/readline.h])
f52be742 265AC_CHECK_HEADERS([byteswap.h])
eca0b061 266AC_CHECK_HEADERS([sys/mman.h])
31a11006 267AC_CHECK_HEADERS([sys/utsname.h])
d16cf8a5 268
d16cf8a5
AK
269# --------------------------------------------------------------------------
270# types
271AC_CHECK_SIZEOF(short)
272AC_CHECK_SIZEOF(int)
273AC_CHECK_SIZEOF(long)
274AC_CHECK_SIZEOF(long long)
275
276AC_TYPE_PID_T
277AC_TYPE_SIGNAL
278AC_TYPE_SIZE_T
279AC_STRUCT_TIMEZONE
280
521d90e7 281AC_CHECK_TYPES([int64_t, uint64_t, u_int64_t])
eca0b061 282AC_CHECK_TYPES([off_t])
521d90e7 283
d16cf8a5
AK
284# --------------------------------------------------------------------------
285# C/CPP caps
286
287AC_PROG_GCC_TRADITIONAL
288AC_C_CONST
289AC_C_BIGENDIAN
290
f52be742
VK
291# --------------------------------------------------------------------------
292# macros
293
294AC_CHECK_DECLS([__bswap_64],,,[
295#if HAVE_BYTESWAP_H
296#include <byteswap.h>
297#endif
298])
85303064
VK
299AC_CHECK_DECLS([SIOCGIFADDR, SIOCGIFNETMASK, SIOCGIFHWADDR],,,[
300#if HAVE_SYS_IOCTL_H
301#include <sys/ioctl.h>
302#endif
303#if HAVE_SYS_SOCKIO_H
304#include <sys/sockio.h>
305#endif
306])
f52be742 307
d16cf8a5
AK
308# --------------------------------------------------------------------------
309# library functions
310
311AC_FUNC_ERROR_AT_LINE
abc48356
VK
312#AC_FUNC_MALLOC
313#AC_FUNC_REALLOC
d16cf8a5 314AC_FUNC_MEMCMP
d16cf8a5
AK
315AC_FUNC_SELECT_ARGTYPES
316AC_FUNC_STRFTIME
317AC_FUNC_STRTOD
318AC_FUNC_VPRINTF
319
b50f1100
VK
320AC_CHECK_FUNCS([gettimeofday memmove memset strchr strcspn strdup strerror])
321AC_CHECK_FUNCS([strrchr strtol strtoul strtoll strtoull])
467e30e1 322AC_CHECK_FUNCS([if_nametoindex daemon mmap strerror_r scandir uname poll])
d16cf8a5 323
d16cf8a5
AK
324# sockets/resolver (probably for solaris)
325AC_CHECK_FUNC(connect, , [AC_CHECK_LIB(socket, connect)])
326AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(resolv, gethostbyname)])
327AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl, gethostbyname)])
328
329if test "x$ac_cv_lib_nsl_gethostbyname" != "xyes" && test "x$ac_cv_func_gethostbyname" != "xyes" ; then
330 AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(socket, gethostbyname)])
331fi
332
333if test "$ac_cv_lib_nsl_gethostbyname" = "$ac_cv_func_gethostbyname" ; then
334 AC_MSG_CHECKING([if we can include libnsl + libsocket])
335 LIBS="-lnsl -lsocket $LIBS"
336 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[(void) gethostbyname]])],[my_ac_link_result=yes],[my_ac_link_result=no ])
337 if test "$my_ac_link_result" = "no" ; then
338 AC_MSG_RESULT([failure])
339 AC_MSG_ERROR([unable to use gethostbyname()])
340 else
341 AC_MSG_RESULT([success])
342 fi
343fi
344
3d9b275c 345#ALK: CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" PTHREAD_LIBS="-pthread",
d16cf8a5
AK
346# posix threads
347AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***]))
348
349PTHREAD_LIBS=error
350AC_MSG_CHECKING(for old style FreeBSD -pthread flag)
351AC_EGREP_CPP(yes,
a910e139 352 [#if defined(__FreeBSD_cc_version) || defined(__OpenBSD__)
d16cf8a5
AK
353 yes
354 #endif
355 ], AC_MSG_RESULT(yes)
6693a1d0 356 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" PTHREAD_LIBS="-pthread",
d16cf8a5
AK
357 AC_MSG_RESULT(no))
358if test "x$PTHREAD_LIBS" = xerror; then
359 AC_CHECK_LIB(pthread, pthread_attr_init,
6693a1d0 360 PTHREAD_LIBS="-lpthread")
d16cf8a5
AK
361fi
362if test "x$PTHREAD_LIBS" = xerror; then
363 AC_CHECK_LIB(pthreads, pthread_attr_init,
6693a1d0 364 PTHREAD_LIBS="-lpthreads")
d16cf8a5 365fi
d16cf8a5 366if test "x$PTHREAD_LIBS" = xerror; then
6693a1d0
AK
367 AC_CHECK_FUNC(pthread_attr_init,
368 PTHREAD_LIBS="")
d16cf8a5
AK
369fi
370if test "x$PTHREAD_LIBS" = xerror; then
371 AC_MSG_ERROR(*** Unable to locate working posix thread library ***)
372fi
373AC_SUBST(PTHREAD_LIBS)
374
696fc54f
VK
375# Extensions to posix threads
376AC_CHECK_FUNCS([pthread_cond_reltimedwait_np])
377
82fa7c5d
AK
378# misc
379CPPFLAGS="$CPPFLAGS -DDATADIR=\\\"\${pkgdatadir}\\\""
380
d16cf8a5
AK
381# --------------------------------------------------------------------------
382
383# shared libs versions
384#
385# versioning scheme: current:revision:age
386#
387# current
388# The number of the current interface exported by the library. A current
389# value of `0', means that you are calling the interface exported by this
390# library interface 0.
391#
392# revision
393# The implementation number of the most recent interface exported by this
394# library. In this case, a revision value of `0' means that this is the
395# first implementation of the interface.
396# If the next release of this library exports the same interface, but has a
397# different implementation (perhaps some bugs have been fixed), the revision
398# number will be higher, but current number will be the same. In that case,
399# when given a choice, the library with the highest revision will always
400# be used by the runtime loader.
401#
402# age
403# The number of previous additional interfaces supported by this library.
404# If age were `2', then this library can be linked into executables which
405# were built with a release of this library that exported the current
406# interface number, current, or any of the previous two interfaces.
407# By definition age must be less than or equal to current. At the outset,
408# only the first ever interface is implemented, so age can only be `0'.
409#
410#
411#
412
d8f2e39b
VK
413LIBNETXMS_LIBRARY_VERSION=0:2:0
414LIBNXCSCP_LIBRARY_VERSION=0:2:0
415LIBNXSNMP_LIBRARY_VERSION=0:2:0
416LIBNXSRV_LIBRARY_VERSION=0:2:0
417LIBNXCORE_LIBRARY_VERSION=0:2:0
418DBDRV_LIBRARY_VERSION=0:2:0
419SMSDRV_LIBRARY_VERSION=0:2:0
d16cf8a5 420AC_SUBST(LIBNETXMS_LIBRARY_VERSION)
3e7f0791 421AC_SUBST(LIBNXCSCP_LIBRARY_VERSION)
d853cd74 422AC_SUBST(LIBNXSNMP_LIBRARY_VERSION)
aa3b26fd 423AC_SUBST(LIBNXSRV_LIBRARY_VERSION)
17a48052 424AC_SUBST(LIBNXCORE_LIBRARY_VERSION)
b900a78b 425AC_SUBST(DBDRV_LIBRARY_VERSION)
d8f2e39b 426AC_SUBST(SMSDRV_LIBRARY_VERSION)
d16cf8a5
AK
427
428# --------------------------------------------------------------------------
429
430AC_CONFIG_FILES([
d16cf8a5 431 README
0c3c0c39
AK
432 Makefile
433 contrib/Makefile
434 contrib/config/Makefile
435 contrib/dct/Makefile
436 contrib/startup/Makefile
437 contrib/startup/redhat/Makefile
82fa7c5d 438 contrib/mibs/Makefile
0c3c0c39
AK
439 doc/Makefile
440 images/Makefile
441 include/Makefile
442 m4/Makefile
443 netware/Makefile
444 sql/Makefile
0c3c0c39
AK
445 src/Makefile
446 src/libnetxms/Makefile
447 src/libnxcscp/Makefile
d853cd74 448 src/libnxsnmp/Makefile
0c3c0c39 449 src/libnxcl/Makefile
1b1edd49
VK
450 src/install/Makefile
451 src/install/windows/Makefile
0c3c0c39
AK
452 src/console/Makefile
453 src/console/win32/Makefile
454 src/console/win32/icons/Makefile
455 src/console/win32/res/Makefile
456 src/console/win32starter/Makefile
672441ac
VK
457 src/console/nxav/Makefile
458 src/console/cmdline/Makefile
0c3c0c39 459 src/nxevent/Makefile
1e8eed7a 460 src/nxreport/Makefile
0c3c0c39
AK
461 src/server/Makefile
462 src/server/core/Makefile
a551fe4d 463 src/server/netxmsd/Makefile
0c3c0c39
AK
464 src/server/dbdrv/Makefile
465 src/server/dbdrv/odbc/Makefile
466 src/server/dbdrv/mssql/Makefile
467 src/server/dbdrv/mysql/Makefile
468 src/server/dbdrv/pgsql/Makefile
d8f2e39b
VK
469 src/server/smsdrv/Makefile
470 src/server/smsdrv/generic/Makefile
0c3c0c39
AK
471 src/server/tools/Makefile
472 src/server/tools/nxget/Makefile
473 src/server/tools/nxaction/Makefile
474 src/server/tools/nxadm/Makefile
5b0c7d0d
VK
475 src/server/tools/nxconfig/Makefile
476 src/server/tools/nxconfig/res/Makefile
f90d7fc5 477 src/server/tools/nxdbmgr/Makefile
d853cd74 478 src/server/tools/nxsnmpget/Makefile
734c670f 479 src/server/tools/nxsnmpwalk/Makefile
d24fdaf4 480 src/server/tools/nxupload/Makefile
0c3c0c39
AK
481 src/server/libnxsrv/Makefile
482 src/agent/Makefile
483 src/agent/core/Makefile
5795bf90 484 src/agent/install/Makefile
0c3c0c39
AK
485 src/agent/subagents/Makefile
486 src/agent/subagents/linux/Makefile
487 src/agent/subagents/sunos/Makefile
488 src/agent/subagents/skeleton/Makefile
489 src/agent/subagents/freebsd/Makefile
490 src/agent/subagents/netware/Makefile
1bc607cc
VK
491 src/agent/subagents/winnt/Makefile
492 src/agent/subagents/win9x/Makefile
0c3c0c39 493 src/agent/subagents/winperf/Makefile
93f15c2a 494 src/agent/subagents/portCheck/Makefile
abc48356 495 src/agent/subagents/ping/Makefile
b97191d2
AK
496 src/www/Makefile
497 src/www/iis/Makefile
498 src/www/nxsm/Makefile
0c3c0c39 499 tools/Makefile
d16cf8a5
AK
500])
501
12249937
VK
502AC_OUTPUT
503
6f926182
AK
504#echo "Updating libtool-1"
505#sed 's/-lc_r/-lc_rXXX/' < ./libtool > libtool.new && mv libtool.new libtool && chmod +x ./libtool
5cecf50e
AK
506
507echo "Updating libtool-2"
508sed 's,$SED -e "/${host}-//g",$SED -e "s/${host}-//g",g' < ./libtool > libtool.new && mv libtool.new libtool && chmod +x ./libtool
509
6f926182
AK
510#if test ! "x$BUILD_SERVER" = "xyes" ; then
511# echo "Updating libtool-3"
512# $PERL tools/patch_libtool.pl <libtool >libtool.new
513# mv libtool.new libtool
514# chmod 755 libtool
515#fi
a7442678
AK
516
517
518
519###########################
520#
521echo
522echo
523echo
524echo '---------------------------------------------------------------------'
525echo ' Configure results'
526echo '---------------------------------------------------------------------'
527echo
528 echo "Prefix : ${prefix}"
529if test "x${BUILD_SERVER}" = "xyes"; then
530 echo "Build Server : YES"
531else
532 echo "Build Server : NO"
533fi
534if test "x${ac_cv_lib_crypto_RSA_new}" = "xyes"; then
535 echo "Encryption enabled : YES"
536else
537 echo "Encryption enabled : NO"
538fi
539if test "x${DB_DRIVERS}" != "x"; then
540 echo "Build DB-Drivers : ${DB_DRIVERS}"
541else
542 echo "Build DB-Drivers : NO"
543fi
544if test "x${BUILD_CLIENT}" = "xyes"; then
545 echo "Build Clients : YES"
546else
547 echo "Build Clients : NO"
548fi
549if test "x${BUILD_AGENT}" = "xyes"; then
550 echo "Build Agent : YES"
551 echo "Subagents list : ${SUBAGENT_DIRS}"
552else
553 echo "Build Agent : NO"
554fi