projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Detect the required libraries instead of hardcoding them in LDFLAGS
[awesomized/libmemcached]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index a99c994b10490218d367566b78bdaf6edf0d143a..3376f4503c0c73df8eb921810ef6cec560e09f2f 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-66,7
+66,6
@@
then
fi
else
CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ $CFLAGS"
fi
else
CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ $CFLAGS"
- LDFLAGS="-lsocket -lnsl $LDFLAGS"
DTRACEFLAGS="$DTRACEFLAGS"
fi
DTRACEFLAGS="$DTRACEFLAGS"
fi
@@
-74,4
+73,6
@@
AC_C_CONST
AC_HEADER_TIME
AC_TYPE_SIZE_T
AC_SEARCH_LIBS(getopt_long, gnugetopt)
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)
AC_OUTPUT(Makefile clients/Makefile tests/Makefile docs/Makefile libmemcached/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec)