Merged revisions 279502 via svnmerge from
[asterisk/asterisk.git] / autoconf / ast_ext_lib.m4
index 80b28bf..28a5521 100644 (file)
@@ -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}"