Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -49180,6 +49180,16 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu



# Make the --enable-static setting visible in config header
if test "x$enable_static" = "xyes"
then :


printf "%s\n" "#define HAVE_STATIC_LIBS 1" >>confdefs.h


fi

#-----------------------------------------------------
# See if the user requested --enable-all-static
#-----------------------------------------------------
Expand Down Expand Up @@ -49211,6 +49221,15 @@ fi



if test "x$enableallstatic" = "xyes"
then :


printf "%s\n" "#define USE_ALL_STATIC_LIBS 1" >>confdefs.h


fi

fi


Expand Down
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ LIBMESH_TEST_CXX17_FALLTHROUGH_ATTRIBUTE
#-----------------------------------------------------
LT_INIT([disable-static])

# Make the --enable-static setting visible in config header
AS_IF([test "x$enable_static" = "xyes"], [
AC_DEFINE([HAVE_STATIC_LIBS], [1], [Define to 1 if static libraries are enabled.])
])

#-----------------------------------------------------
# See if the user requested --enable-all-static
#-----------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions include/libmesh_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,9 @@
/* define if the compiler has the sstream header */
#undef HAVE_SSTREAM

/* Define to 1 if static libraries are enabled. */
#undef HAVE_STATIC_LIBS

/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H

Expand Down Expand Up @@ -802,6 +805,9 @@
/* size of unique_id */
#undef UNIQUE_ID_BYTES

/* Define to 1 if -all-static libraries are enabled. */
#undef USE_ALL_STATIC_LIBS

/* Flag indicating if the library should be built using complex numbers */
#undef USE_COMPLEX_NUMBERS

Expand Down
5 changes: 5 additions & 0 deletions m4/all_static.m4
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ AC_DEFUN([AX_ALL_STATIC],

dnl Substitute into Makefiles where relevant.
AC_SUBST(libmesh_LDFLAGS)

dnl Make the setting visible in config header
AS_IF([test "x$enableallstatic" = "xyes"], [
AC_DEFINE([USE_ALL_STATIC_LIBS], [1], [Define to 1 if -all-static libraries are enabled.])
])
])
])