Use AC_SEARCH_LIBS to detect the required sockets libraries instead of
hardcoding them in LDFLAGS for the Sun Studio compiler.
fi
else
CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ $CFLAGS"
- LDFLAGS="-lsocket -lnsl $LDFLAGS"
DTRACEFLAGS="$DTRACEFLAGS"
fi
AC_HEADER_TIME
AC_TYPE_SIZE_T
AC_SEARCH_LIBS(getopt_long, gnugetopt)
+AC_SEARCH_LIBS(socket, socket)
+AC_SEARCH_LIBS(gethostbyname, nsl)
AC_OUTPUT(Makefile clients/Makefile tests/Makefile docs/Makefile libmemcached/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec)
EXTRA_DIST = libmemcached_probes.d memcached/README.txt
INCLUDES = -I$(top_builddir)
-LIBS =
+LIBS = @LIBS@
DTRACE = @DTRACE@
DTRACEFLAGS = @DTRACEFLAGS@