]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: make sure HAVE_TIMER_CREATE defined
authorKarel Zak <kzak@redhat.com>
Wed, 24 Oct 2018 10:18:54 +0000 (12:18 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Dec 2018 10:23:33 +0000 (11:23 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index 6ed505de531117df0f475d6c7d8a40ee2a04765e..21b04f5817f6f1a9cd8785973cc5092a2830162f 100644 (file)
@@ -544,14 +544,16 @@ AC_CHECK_FUNCS([timer_create],
        [AC_CHECK_LIB([rt], [timer_create], [
                have_timer="yes"
                REALTIME_LIBS="-lrt"
+               AC_DEFINE_UNQUOTED([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt])
        ],[
                AC_SEARCH_LIBS([timer_create], [rt], [
                        AC_MSG_RESULT(yes)
                        have_timer="yes"
                        REALTIME_LIBS="-lrt -lpthread"
+                       AC_DEFINE_UNQUOTED([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt -lpthread])
                ],[], [-lpthread]
                )
-               ])]
+       ])]
 )
 
 AC_SUBST([REALTIME_LIBS])