Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 25662)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 25663)
@@ -209,11 +209,10 @@
 	SYSTEM_FMEMOPEN="no"
 	if test "${IS_MAC}" == "yes"; then
-		AC_MSG_CHECKING([if system libc has fmemopen])
 		if [[ $(system_profiler SPSoftwareDataType | $(which grep) "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -ge 13 ]]; then
 			SYSTEM_FMEMOPEN="yes"
+			AC_DEFINE([_SYSTEM_FMEMOPEN_], [1], [does system libc have fmemopen])
 		fi
 	fi
 	AM_CONDITIONAL([SYSTEM_HAS_FMEMOPEN], [test "${SYSTEM_FMEMOPEN}" == "yes"])
-	AC_MSG_RESULT([${SYSTEM_FMEMOPEN}])
 
 	IS_WINDOWS=no
Index: /issm/trunk-jpl/src/c/main/issm_dakota.cpp
===================================================================
--- /issm/trunk-jpl/src/c/main/issm_dakota.cpp	(revision 25662)
+++ /issm/trunk-jpl/src/c/main/issm_dakota.cpp	(revision 25663)
@@ -41,5 +41,7 @@
 
 	/*Create directory structure for model outputs:*/
+	#ifdef (_SYSTEM_FMEMOPEN_)
 	statistics=DakotaDirStructure(argc,argv);
+	#endif
 
 	/* Parse input and construct Dakota LibraryEnvironment, performing input data checks*/
@@ -88,5 +90,7 @@
 
 	/* Run statistics if requested:*/
+	#ifdef (_SYSTEM_FMEMOPEN_)
 	if(statistics)DakotaStatistics(argc,argv);
+	#endif
 
 	/*free allocations:*/
@@ -98,5 +102,5 @@
 	return 0; 
 	#else 
-	Cout <<  "ISSM Dakota  executable was compiled without support of Dakota! Will just return now!" << "\n";
+	Cout <<  "ISSM Dakota executable was compiled without support of Dakota! Will just return now!" << "\n";
 	return 1;
 	#endif
