[llvm-commits] [support] r44846 - /support/trunk/autoconf/m4/want_level.m4
Reid Spencer
rspencer at reidspencer.com
Mon Dec 10 21:27:47 PST 2007
Author: reid
Date: Mon Dec 10 23:27:47 2007
New Revision: 44846
URL: http://llvm.org/viewvc/llvm-project?rev=44846&view=rev
Log:
Allow some additional values for levels that are non-numeric.
Modified:
support/trunk/autoconf/m4/want_level.m4
Modified: support/trunk/autoconf/m4/want_level.m4
URL: http://llvm.org/viewvc/llvm-project/support/trunk/autoconf/m4/want_level.m4?rev=44846&r1=44845&r2=44846&view=diff
==============================================================================
--- support/trunk/autoconf/m4/want_level.m4 (original)
+++ support/trunk/autoconf/m4/want_level.m4 Mon Dec 10 23:27:47 2007
@@ -9,6 +9,12 @@
m4_define([allcapsname],translit($1,a-z-,A-Z_))
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--enable-$1],[$2 ($3)]),,enableval="$3")
+ case "$enableval" in
+ yes) enableval="1" ;;
+ no) enableval="0" ;;
+ [0-9]*) ;;
+ *) enableval="0" ;;
+ esac
digits=`echo "$enableval" | sed 's/[^0-9]//'`
if test -z "$digits" ; then
AC_MSG_ERROR([Expected numeric value for --enable-$1.])
More information about the llvm-commits
mailing list