]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5337] Changed glib static lib test to trigger on enable-static-link
authorThomas Markwalder <tmark@isc.org>
Thu, 27 Jul 2017 13:46:21 +0000 (09:46 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 27 Jul 2017 13:46:21 +0000 (09:46 -0400)
    configure.ac - changed the glib static test to trigger on
    enable-static-link, rather than enable-static.  The latter is on by
    default, and testing based on this would fall over on lots of systems
    requiring folks to specify --disable-static or install the glib static
    libs.

configure.ac

index 6b4c21cf89962268f1089c2984e8ce524e02dcc3..a72c341a7fc469b4af05f136c3dda4a08d716456 100644 (file)
@@ -441,7 +441,7 @@ if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
 fi
 
 # Look for glib static libs if they're trying to do static builds
-if test $enable_static != "no"; then
+if test $enable_static_link != "no"; then
    CXX_SAVED=$CXX
    CXX="$CXX -static"
 
@@ -449,7 +449,7 @@ if test $enable_static != "no"; then
      [AC_LANG_PROGRAM([#include <math.h>],[(void)sqrt(-1.0);])],
      [AC_MSG_RESULT([checking for static glib libraries... yes])],
      [AC_MSG_RESULT([checking for static glib libraries... no])
-      AC_MSG_ERROR([Building with --enable-static does not work. You appear to be missing glib static libraries. Check config.log for details.])])
+      AC_MSG_ERROR([Building with --enable-static-link does not work. You appear to be missing glib static libraries. Check config.log for details.])])
 
    CXX=$CXX_SAVED
 fi