gdal: changing behavior of configure for +xml2 with 3.0+ (#30405)

* gdal: changing behavior of configure for +xml2 with 3.0+

* Update var/spack/repos/builtin/packages/gdal/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
snehring 2022-04-29 15:11:46 -05:00 committed by GitHub
parent 7f1411d131
commit 7e54bddc0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -414,8 +414,11 @@ def configure_args(self):
args.append('--with-curl=no')
if '+xml2' in spec:
args.append('--with-xml2={0}'.format(
join_path(spec['libxml2'].prefix.bin, 'xml2-config')))
if spec.satisfies('@:2'):
args.append('--with-xml2={0}'.format(
join_path(spec['libxml2'].prefix.bin, 'xml2-config')))
else:
args.append('--with-xml2=yes')
else:
args.append('--with-xml2=no')