AC_ARG_WITH(extra-options,
AS_HELP_STRING([--with-extra-options],
[Specify addtional options to compile LLVM with]),,
- extraopts=default)
-case "$extraopts" in
+ withval=default)
+case "$withval" in
default) EXTRA_OPTIONS= ;;
- *) EXTRA_OPTIONS=$extraopts ;;
+ *) EXTRA_OPTIONS=$withval ;;
esac
AC_SUBST(EXTRA_OPTIONS,$EXTRA_OPTIONS)
withval="$with_extra_options"
else
- extraopts=default
+ withval=default
fi;
-case "$extraopts" in
+case "$withval" in
default) EXTRA_OPTIONS= ;;
- *) EXTRA_OPTIONS=$extraopts ;;
+ *) EXTRA_OPTIONS=$withval ;;
esac
EXTRA_OPTIONS=$EXTRA_OPTIONS