iphreeqc/configure.ac
Scott R Charlton 961ceeb1a5 still working on autotools integration
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4261 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-04-16 06:24:43 +00:00

35 lines
909 B
Plaintext

# Prelude.
AC_INIT([IPhreeqc], [1.0], [charlton@usgs.gov])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
# Checks for programs.
AC_PROG_CXX
# Check if the fortran interface should be included
AC_MSG_CHECKING([if Fortran interface included])
AC_ARG_ENABLE([fortran],
[AC_HELP_STRING([--enable-fortran],
[include the Fortran interface @<:@default=yes@:>@])],
[IPQ_FORTRAN=$enableval],
[IPQ_FORTRAN=yes])
if test "X$IPQ_FORTRAN" = "Xyes"; then
echo "yes"
AC_PROG_F77
AC_F77_LIBRARY_LDFLAGS
else
echo "no"
fi
AM_CONDITIONAL([BUILD_FORTRAN], [test "X$IPQ_FORTRAN" = "Xyes"])
# Disable shared library building by default (use --enable-shared to enable)
AC_DISABLE_SHARED
AC_PROG_LIBTOOL
# Output files.
AC_CONFIG_FILES([Makefile src/Makefile test/Makefile testcpp/Makefile])
AC_OUTPUT