summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoconf/ast_ext_lib.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/autoconf/ast_ext_lib.m4 b/autoconf/ast_ext_lib.m4
index 80b28bf67..28a5521f8 100644
--- a/autoconf/ast_ext_lib.m4
+++ b/autoconf/ast_ext_lib.m4
@@ -46,7 +46,7 @@ AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=PATH], [use $3 in PATH]),
unset $2
;;
*)
- if test "x${$2}" = "x"; then
+ if test "x${withval}" = "x"; then
m4_ifval($4, [$2="$4"], [:])
else
$2="${withval}"