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