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