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