From a3310b77f853e9d86461d96b76cbda0e06867f64 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sat, 8 Feb 2003 21:40:03 +0000 Subject: [PATCH] Added a small trap detecting incorrect --with-aufs-threads arguments --- configure.in | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 69eeeb8b9b..6af7d9e621 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.318 2003/02/02 12:55:23 robertc Exp $ +dnl $Id: configure.in,v 1.319 2003/02/08 14:40:03 hno Exp $ dnl dnl dnl @@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([src/main.cc]) AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE(squid, 3.0-DEVEL) AM_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.318 $)dnl +AC_REVISION($Revision: 1.319 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -326,7 +326,16 @@ AC_ARG_WITH(aufs-threads, [ --with-aufs-threads=N_THREADS Tune the number of worker threads for the aufs object store.], -[ aufs_io_threads=$withval ]) +[ case $withval in + [[0-9]]*) + aufs_io_threads=$withval + ;; + *) + echo "ERROR: Invalid --with-aufs-threads argument" + exit 1 + ;; + esac +]) if test "$aufs_io_threads"; then echo "With $aufs_io_threads aufs threads" AC_DEFINE_UNQUOTED(AUFS_IO_THREADS,$aufs_io_threads, -- 2.47.3