diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2009-12-28 15:25:27 +0100 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2009-12-28 15:25:27 +0100 |
commit | 27e306c66e433cf82a7539f2baa631d4aea20fa0 (patch) | |
tree | 7ee1c55c0e6a6f0c137e9ffa446446e939eb7731 | |
parent | Use clock_gettime() to read current time. (diff) | |
download | redshift-ng-27e306c66e433cf82a7539f2baa631d4aea20fa0.tar.gz redshift-ng-27e306c66e433cf82a7539f2baa631d4aea20fa0.tar.bz2 redshift-ng-27e306c66e433cf82a7539f2baa631d4aea20fa0.tar.xz |
Add autoconf check for clock_gettime() and floor().
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 7aae610..523eb36 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,7 +12,7 @@ EXTRA_redshift_SOURCES = \ src/vidmode.c src/vidmode.h AM_CFLAGS = -redshift_LDADD = -lm -lrt +redshift_LDADD = if ENABLE_RANDR redshift_SOURCES += src/randr.c src/randr.h diff --git a/configure.ac b/configure.ac index 1ce7ffd..09ee959 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,9 @@ AC_TYPE_UINT16_T # Checks for library functions. AC_FUNC_MALLOC -AC_CHECK_FUNCS([pow setlocale strchr]) +AC_SEARCH_LIBS([clock_gettime], [rt]) +AC_SEARCH_LIBS([floor], [m]) +AC_CHECK_FUNCS([setlocale strchr floor pow clock_gettime]) AC_CONFIG_FILES([ Makefile |