]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Match any glibc and musl ABIs on the host_os AS_CASE
authorGuillem Jover <guillem@hadrons.org>
Fri, 9 Jun 2017 03:14:24 +0000 (05:14 +0200)
committerGuillem Jover <guillem@hadrons.org>
Fri, 9 Jun 2017 03:47:07 +0000 (05:47 +0200)
Reported-by: Helmut Grohne <helmut@subdivi.de>
configure.ac

index 5fed4c9ed6a064ab394163885b349b2d8eda7ec5..6b3ba2dbb4eecbe72061c84849759eea412361b4 100644 (file)
@@ -45,14 +45,14 @@ AM_CONDITIONAL([HAVE_LIBTESTU01],
                [test "x$ac_cv_lib_testu01_unif01_CreateExternGenBits" = "xyes"])
 
 AS_CASE([$host_os],
-  [*-gnu], [
+  [*-gnu*], [
     # In old glibc versions (< 2.17) clock_gettime() is in librt.
     saved_LIBS="$LIBS"
     AC_SEARCH_LIBS([clock_gettime], [rt], [CLOCK_GETTIME_LIBS="-lrt"])
     AC_SUBST([CLOCK_GETTIME_LIBS])
     LIBS="$saved_LIBS"
   ],
-  [*-musl], [
+  [*-musl*], [
     # Upstream refuses to define this, we will do it ourselves then.
     AC_DEFINE([__MUSL__], [1], [Define to 1 if we are building for musl])
   ],