-[ "$hdw_status" = "1" ] && confopt="$confopt --disable-perl-regexp"
-[ "$hdw_status" = "2" ] && confopt=${confopt//--bindir* /--bindir=$root/bin }
+[ "$stage" = "1" ] && confopt="$confopt --disable-perl-regexp"
+[ "$stage" = "2" ] && confopt=${confopt//--bindir* /--bindir=$root/bin }