Added unknown OS clause for the version command output
This commit is contained in:
@@ -43,9 +43,12 @@ elif test "$OS" = "haiku"; then
|
|||||||
elif test "$OS" = "freeb"; then
|
elif test "$OS" = "freeb"; then
|
||||||
AC_MSG_NOTICE([OS FreeBSD detected])
|
AC_MSG_NOTICE([OS FreeBSD detected])
|
||||||
AC_DEFINE([FREEBSD], [], [Compiling on FreeBSD])
|
AC_DEFINE([FREEBSD], [], [Compiling on FreeBSD])
|
||||||
else
|
elif test "$OS" = "linux"; then
|
||||||
AC_MSG_NOTICE([OS Linux detected])
|
AC_MSG_NOTICE([OS Linux detected])
|
||||||
AC_DEFINE([LINUX], [], [Compiling on Linux])
|
AC_DEFINE([LINUX], [], [Compiling on Linux])
|
||||||
|
else
|
||||||
|
AC_MSG_NOTICE([OS not detected])
|
||||||
|
AC_DEFINE([UNKNOWN], [], [Compiling on Unknown])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
|||||||
@@ -508,8 +508,10 @@ int handleVersion (std::string &outs)
|
|||||||
<< "haiku"
|
<< "haiku"
|
||||||
#elif defined (FREEBSD)
|
#elif defined (FREEBSD)
|
||||||
<< "freebsd"
|
<< "freebsd"
|
||||||
#else
|
#elif defined (LINUX)
|
||||||
<< "linux"
|
<< "linux"
|
||||||
|
#else
|
||||||
|
<< "unknown"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
|
|||||||
Reference in New Issue
Block a user