From: Gonéri Le Bouder Date: Sat, 31 Dec 2011 14:33:42 +0000 (+0100) Subject: drop the / from the OSNAME X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3bd5902799c6fae0bc794df60d347ec18ce2d004;p=packages%2Fb%2Fbup.git drop the / from the OSNAME on GNU kFreeBSD, uname -s returns "GNU/kFreeBSD", the / is not accepted a macro and the build fails with -Werror ../../config/config.h:9:15: error: missing whitespace after the macro name [-Werror] Signed-off-by: Gonéri Le Bouder --- diff --git a/config/configure.inc b/config/configure.inc index 2bafea0..0a1b4c0 100644 --- a/config/configure.inc +++ b/config/configure.inc @@ -653,7 +653,7 @@ EOF AC_PROG_CPP AC_PROG_INSTALL - ac_os=`uname -s | sed 's/[-_].*//'` + ac_os=`uname -s | sed 's/[-_].*//' | sed 's,/,,'` _os=`echo $ac_os | tr '[a-z]' '[A-Z]'` AC_DEFINE OS_$_os 1 eval OS_${_os}=1