Fix clock_gettime detection in autotools
authorlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 28 Sep 2010 19:36:50 +0000 (19:36 +0000)
committerlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 28 Sep 2010 19:36:50 +0000 (19:36 +0000)
commitd5f832c772457d4d20f98d8cfd5174aaa0340580
tree20abb916144ce7308f9f026f25823e29af0eb183
parent53d55924d008d0af9f79be310100e64f91fb2396
Fix clock_gettime detection in autotools
AC_CHECK_FUNCS checks for the existence of functions in the C standard
library, so we don't need it. Instead, we need to define
HAVE_CLOCK_GETTIME if the function was found inside the librt.

Moreover, in source file check if HAVE_CLOCK_GETTIME is defined rather
than of checking if it's 0.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@52863 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
configure.ac
src/lib/ecore/ecore_time.c