Add an --enable-caps configure option.

If you must have the binary named "IOR" in all caps, use
the --enable-caps configure option.
master
Christopher J. Morrone 2011-11-09 17:38:34 -08:00
parent 2384ebe135
commit 7cbdd75e6c
2 changed files with 13 additions and 0 deletions

View File

@ -90,6 +90,13 @@ AM_COND_IF([USE_NCMPI_AIORI],[
AC_DEFINE([USE_NCMPI_AIORI], [], [Build NCMPI backend AIORI])
])
# Enable building "IOR", in all capitals
AC_ARG_ENABLE([caps],
[AS_HELP_STRING([--enable-caps],
[build "IOR" binary (name is in all-caps) @<:@default=no@:>@])],
[], [enable_caps=no])
AM_CONDITIONAL([USE_CAPS], [test x$enable_caps = xyes])
AC_CONFIG_FILES([Makefile
src/Makefile

View File

@ -1,4 +1,7 @@
bin_PROGRAMS = ior
if USE_CAPS
bin_PROGRAMS += IOR
endif
ior_SOURCES = ior.c utilities.c parse_options.c
ior_SOURCES += ior.h aiori.h iordef.h
@ -18,3 +21,6 @@ if USE_NCMPI_AIORI
ior_SOURCES += aiori-NCMPI.c
ior_LDADD += -lpnetcdf
endif
IOR_SOURCES = $(ior_SOURCES)
IOR_LDADD = $(ior_LDADD)