From d3e1112b63bf24e3d6fad0af77c420016e1e0dca Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sun, 7 Sep 2014 15:56:09 +0100 Subject: [PATCH] Modify to correctly identify a linux installation --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 5bafb0b4..3c9fe638 100644 --- a/configure.ac +++ b/configure.ac @@ -8,15 +8,15 @@ AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([shairport.c]) AC_CONFIG_HEADERS([config.h]) -#The following would print linux or darwin -#echo "Target OS: ${target_os%%[[[:digit:]]]*}" +#The following should print linux or darwin +#echo "Target OS: ${target_os%-*}" # Checks for programs. AC_PROG_CC AC_PROG_INSTALL # Checks for libraries. -if test "x${target_os%-gnu}" = xlinux; then +if test "x${target_os%-*}" = xlinux; then AC_CHECK_LIB([rt],[clock_gettime], , AC_MSG_ERROR(librt needed)) fi