1dnl -------------------------------------------------------------
2dnl GMV file I/O API for reading GMV files, by Frank Ortega
3dnl -------------------------------------------------------------
4AC_DEFUN([CONFIGURE_GMV],
5[
6  AC_ARG_ENABLE(gmv,
7                AS_HELP_STRING([--disable-gmv],
8                               [build without GMV file I/O support]),
9                [AS_CASE("${enableval}",
10                         [yes], [enablegmv=yes],
11                         [no],  [enablegmv=no],
12                         [AC_MSG_ERROR(bad value ${enableval} for --enable-gmv)])],
13                [enablegmv=$enableoptional])
14
15  dnl The GMV API is distributed with libmesh, so we don't have to guess
16  dnl where it might be installed...
17  AS_IF([test "x$enablegmv" = "xyes"],
18        [
19          GMV_INCLUDE="-I\$(top_srcdir)/contrib/gmv"
20          GMV_LIBRARY="\$(EXTERNAL_LIBDIR)/libgmv\$(libext)"
21          AC_DEFINE(HAVE_GMV, 1, [Flag indicating whether the library will be compiled with GMV support])
22          AC_MSG_RESULT(<<< Configuring library with GMV support >>>)
23        ],
24        [
25          GMV_INCLUDE=""
26          GMV_LIBRARY=""
27          enablegmv=no
28        ])
29
30  AC_SUBST(GMV_INCLUDE)
31  AC_SUBST(GMV_LIBRARY)
32])
33