Instead of repeating this, use an array for the arguments and conditionally push "--with-cairo" onto the array:

```rb
args = %W[--disable-dependency-tracking --prefix=#{prefix}]
args << "--with-cairo" if build.with? 'tests'

system "./configure", *args
```