Skip to content

Commit

Permalink
Use autotools.autoreconf() per review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
System-Arch authored Jan 20, 2023
1 parent bf850fe commit b3d588e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions recipes/mpc/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from conan import ConanFile
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import chdir, copy, get, rmdir, rm, apply_conandata_patches
from conan.tools.files import copy, get, rmdir, rm, apply_conandata_patches
from conan.tools.layout import basic_layout
from conan.tools.gnu import Autotools, AutotoolsToolchain, AutotoolsDeps
from conan.tools.microsoft import is_msvc, unix_path
Expand Down Expand Up @@ -78,11 +78,9 @@ def generate(self):

def build(self):
apply_conandata_patches(self)
with chdir(self, self.source_folder):
if not os.path.exists("configure"):
command = "autoreconf -i"
self.run(command)
autotools = Autotools(self)
if not os.path.exists(os.path.join(self.source_folder, "configure")):
autotools.autoreconf(["-i"])
autotools.configure()
autotools.make()

Expand Down

0 comments on commit b3d588e

Please sign in to comment.