diff options
author | Dagobert Michelsen <dam@opencsw.org> | 2019-07-16 13:36:12 +0200 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2019-07-17 08:16:39 +1000 |
commit | fcabd81aba9d3c5228b627b9339299d4ce6750b6 (patch) | |
tree | dec303e897acf44dc87d5b736e8c1a47f1634114 /configure.ac | |
parent | deb21bc25158d19774b0a4eb1bee6c3fdc73b1b3 (diff) | |
download | flac-fcabd81aba9d3c5228b627b9339299d4ce6750b6.tar.gz |
Add -lrt for all operating systems for clock_gettime
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 3d18bb91..76aaa6fb 100644 --- a/configure.ac +++ b/configure.ac @@ -411,11 +411,11 @@ AC_DEFINE(FLAC__HAS_DOCBOOK_TO_MAN) AH_TEMPLATE(FLAC__HAS_DOCBOOK_TO_MAN, [define if you have docbook-to-man or docbook2man]) fi -AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes) -if test x$have_clock_gettime = xyes; then +AC_CHECK_LIB(rt, clock_gettime, + LIB_CLOCK_GETTIME=-lrt AC_DEFINE(HAVE_CLOCK_GETTIME) - AH_TEMPLATE(HAVE_CLOCK_GETTIME, [define if you have clock_gettime]) -fi + AH_TEMPLATE(HAVE_CLOCK_GETTIME, [define if you have clock_gettime])) +AC_SUBST(LIB_CLOCK_GETTIME) # only matters for x86 AC_CHECK_PROGS(NASM, nasm) @@ -493,11 +493,6 @@ if test x$enable_stack_smash_protection = "xyes" ; then XIPH_GXX_STACK_PROTECTOR fi -if test "x$sys_linux" = xtrue ; then - LIB_CLOCK_GETTIME=-lrt - fi -AC_SUBST(LIB_CLOCK_GETTIME) - AC_CONFIG_FILES([ \ Makefile \ src/Makefile \ |