]> sigrok.org Git - sigrok-util.git/commitdiff
new-driver: Set drivers to $HW_ENABLED_DEFAULT initially.
authorUwe Hermann <redacted>
Wed, 4 Sep 2013 07:48:50 +0000 (09:48 +0200)
committerUwe Hermann <redacted>
Wed, 4 Sep 2013 10:04:32 +0000 (12:04 +0200)
Otherwise --disable-all-drivers doesn't work properly.

source/new-driver

index a93a441e67dc3d253b0d8b288ab89102bf3ebe2e..6e6977bad8a596774b9a4ce7d7f4dedff41745c4 100755 (executable)
@@ -31,7 +31,7 @@ TMPL_AUTOCONF_AC_ARG_ENABLE = """\
 AC_ARG_ENABLE(${short}, AC_HELP_STRING([--enable-${short}],
        [enable ${name} support [default=yes]]),
        [HW_${upper}="$enableval"],
-       [HW_${upper}=yes])
+       [HW_${upper}=$HW_ENABLED_DEFAULT])
 AM_CONDITIONAL(HW_${upper}, test x$HW_${upper} = xyes)
 if test "x$HW_${upper}" = "xyes"; then
        AC_DEFINE(HAVE_HW_${upper}, 1, [${name} support])