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)
commitcdbf6256e515684d9dcc0e126b7b03ae784e9446
tree20abb916144ce7308f9f026f25823e29af0eb183
parent5fc4cfb624c0b5ab40749480dd011931532de823
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: http://svn.enlightenment.org/svn/e/trunk/ecore@52863 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
configure.ac
src/lib/ecore/ecore_time.c