Skip to content

Commit

Permalink
Squashed 'src/phast/PhreeqcRM/' changes from 9aacca63..c97215d3
Browse files Browse the repository at this point in the history
c97215d3 Merge pull request #22 from scharlton2/19-phreeqcrm-dist-linux-git-build-fails-due-to-ac_prereq
ae976293 Closes usgs-coupled/phreeqcrm#19 Closes usgs-coupled/phreeqcrm#18 Closes usgs-coupled/phreeqcrm#21

git-subtree-dir: src/phast/PhreeqcRM
git-subtree-split: c97215d33194af26b638e2b24820035120471776
  • Loading branch information
Darth Vader committed Mar 9, 2023
1 parent 63ad0bd commit f2fbfcc
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.71])
AC_PREREQ([2.61])
AC_INIT([PhreeqcRM],[0.1.0-9067],[dlpark@usgs.gov])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
Expand All @@ -18,13 +18,7 @@ AC_DEFINE([SWIG_SHARED_OBJ], , [Must be set for PhreeqcRM])
AC_DEFINE([USE_PHRQ_ALLOC], , [Must be set for PhreeqcRM])
AC_DEFINE([NDEBUG], , [Must be set for PhreeqcRM])


AC_ARG_WITH([curl],
AS_HELP_STRING([--with-curl],
[Build with libcurl which supports processing an image URL @<:@default=check@:>@]),
[], [with_curl=check])

# check for --yaml-cpp
# check for --with-yaml-cpp
AC_ARG_WITH([yaml-cpp],
AS_HELP_STRING([--with-yaml-cpp],
[compile with yaml-cpp support. @<:@default=check@:>@]),
Expand All @@ -44,7 +38,6 @@ AS_IF([test "x$with_yaml_cpp" != xno], [
fi
])


# check for --with-mpi
# If --with-mpi=auto is used, try to find MPI, but use standard C compiler if it is not found.
# If --with-mpi=yes is used, try to find MPI and fail if it isn't found.
Expand Down Expand Up @@ -73,7 +66,9 @@ AC_PROG_CPP

# c++11 is required by Darwin for yaml-cpp
if test "X$with_yaml_cpp" != "Xno"; then
AX_CXX_COMPILE_STDCXX(11, [ext], [mandatory])
if test "X$have_yaml_cpp" != "Xfalse"; then
AX_CXX_COMPILE_STDCXX(11, [ext], [mandatory])
fi
fi

# Check if the fortran test should be included
Expand Down Expand Up @@ -301,7 +296,11 @@ else
fi
echo "Enable MPI = $with_mpi"
if test "X$with_yaml_cpp" != "Xno"; then
echo "Enable YAML-CPP = yes"
if test "X$have_yaml_cpp" != "Xfalse"; then
echo "Enable YAML-CPP = yes"
else
echo "Enable YAML-CPP = no"
fi
else
echo "Enable YAML-CPP = no"
fi
Expand Down

0 comments on commit f2fbfcc

Please # to comment.