]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added a small trap detecting incorrect --with-aufs-threads arguments
authorhno <>
Sat, 8 Feb 2003 21:40:03 +0000 (21:40 +0000)
committerhno <>
Sat, 8 Feb 2003 21:40:03 +0000 (21:40 +0000)
configure.in

index 69eeeb8b9b1c07c1812930a886af398560490d40..6af7d9e6213356ca7265487d863acffbf6bc5ad5 100644 (file)
@@ -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,