Commit
267d9975758b219bfdff513a845d000f68ec0491
by justinkinjun.hewconfigure.ac: internalise CoDiPack/MediPack flags for --enable-ad
* Adds --enable-ad plus --with-{codi,medi}pack-dir options.
* When --enable-ad is chosen:
- Defines ISSM_USE_AD for conditional compilation.
- Injects include paths, library paths and –lcodi/–lmedi into
AM_CPPFLAGS, AM_LDFLAGS and LIBS so every sub-dir picks them up.
- Automatically disables PETSc to avoid an impossible combo.
* Emits AM_CONDITIONAL(USE_AD) for any Makefile.am that still wants it.
* Leaves all Makefile.am files untouched; the Spack recipe no longer
needs setup_build_environment() hacks.
Doing this upstream means:
• Classic builds behave exactly as before.
• AD builds work out-of-the-box for Spack, EasyBuild or manual
./configure invocations.
(commit: 267d997)