X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/77c9f49528ccb7ab669e880588b377d942dd2b88..6f3b64079f6cfa25d3e862994a417a2100be85be:/configure.ac diff --git a/configure.ac b/configure.ac index d5c6a2f..41f48e7 100644 --- a/configure.ac +++ b/configure.ac @@ -864,6 +864,9 @@ fi AC_ARG_WITH(nicklen, AC_HELP_STRING([--with-nicklen=LENGTH],[Set the nick length to LENGTH (default 15, max 50)]), [ + if ! expr "$withval" + 0 >/dev/null 2>&1; then + AC_ERROR([NICKLEN must be a numeric value]) + fi if test $withval -ge 50; then NICKLEN=50 AC_MSG_WARN([NICKLEN has a hard limit of 50. Setting NICKLEN=50]) @@ -889,12 +892,6 @@ AC_DEFINE_UNQUOTED(NICKLEN, (${NICKLEN}+1), [Nickname length]) shared_modules="yes" dnl Some first-stage sanity checks. if test "$shared_modules" = yes; then - - if test "$CYGWIN" = yes; then - AC_MSG_WARN([disabling shared modules; Cygwin is at present unable to build them.]) - shared_modules="no" - fi - dnl TenDRA's cc is called tcc too. if test "$CC" = tcc -a "$TenDRA" = "no"; then AC_MSG_WARN([disabling shared modules: Tiny C Compiler can't create PIC])