1 --- mysql-5.0.56/configure.in~ 2008-04-07 09:44:34.000000000 +0300
2 +++ mysql-5.0.56/configure.in 2008-04-07 12:23:29.657592515 +0300
5 AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
7 -AC_CHECK_LIB(nsl_r, gethostbyname_r, [],
8 - AC_CHECK_LIB(nsl, gethostbyname_r))
9 -AC_CHECK_FUNC(gethostbyname_r)
10 +AC_CHECK_FUNC(gethostbyname_r, [],
11 + [AC_CHECK_LIB(nsl_r, gethostbyname_r, [],
12 + [AC_CHECK_LIB(nsl, gethostbyname_r)])])
14 AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
15 AC_CHECK_FUNC(yp_get_default_domain, ,
17 # This may get things to compile even if bind-8 is installed
18 AC_CHECK_FUNC(bind, , AC_CHECK_LIB(bind, bind))
19 # Check if crypt() exists in libc or libcrypt, sets LIBS if needed
20 -AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
22 +AC_CHECK_LIB(crypt, crypt, [LIBS="-lcrypt $LIBS"; LIBCRYPT="-lcrypt"])
24 +AC_CHECK_FUNC(crypt, AC_DEFINE([HAVE_CRYPT], [1], [crypt]))
26 # See if we need a library for address lookup.
27 AC_SEARCH_LIBS(inet_aton, [socket nsl resolv])
29 --- mysql-5.0.51/sql/Makefile.am~ 2007-12-06 22:13:15.000000000 +0200
30 +++ mysql-5.0.51/sql/Makefile.am 2007-12-06 22:14:55.492574255 +0200
32 @innodb_system_libs@ \
33 @ndbcluster_libs@ @ndbcluster_system_libs@ \
34 $(LDADD) $(CXXLDFLAGS) $(WRAPLIBS) @LIBDL@ \
35 - $(yassl_libs) $(openssl_libs) @MYSQLD_EXTRA_LIBS@
36 + $(yassl_libs) $(openssl_libs) @MYSQLD_EXTRA_LIBS@ @LIBCRYPT@
38 noinst_HEADERS = item.h item_func.h item_sum.h item_cmpfunc.h \
39 item_strfunc.h item_timefunc.h item_uniq.h \