]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
More libraries needed for static builds
authorMichael R Sweet <msweet@msweet.org>
Sat, 19 Oct 2024 19:31:18 +0000 (15:31 -0400)
committerMichael R Sweet <msweet@msweet.org>
Sat, 19 Oct 2024 19:31:18 +0000 (15:31 -0400)
config-scripts/cups-common.m4
config-scripts/cups-network.m4
configure

index b42220906b2a6e204485de23072fd733484b8f81..572382987afb265aaa5d965293d5c1be2eb73f10 100644 (file)
@@ -361,6 +361,7 @@ AS_CASE([$host_os_name], [darwin*], [
     LIBS="-framework SystemConfiguration $LIBS"
     AC_CHECK_FUNCS([SCDynamicStoreCopyComputerName], [
        AC_DEFINE([HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME], [1], [Have SCDynamicStoreCopyComputerName function?])
+       PKGCONFIG_LIBS_STATIC="-framework SystemConfiguration $PKGCONFIG_LIBS_STATIC"
     ],[
        LIBS="$SAVELIBS"
     ])
index 593a63d4728a52183649a5c5d1b9bb709ff72b08..6d5e41ea070cd8cea51a2004d709e3df86dfacaa 100644 (file)
@@ -19,6 +19,8 @@ AC_CHECK_HEADER([resolv.h], [
     #include <netinet/in_systm.h>
     #include <netinet/ip.h>
 ])
+SAVELIBS="$LIBS"
+LIBS=""
 AC_SEARCH_LIBS([socket], [socket])
 AC_SEARCH_LIBS([gethostbyaddr], [nsl])
 AC_SEARCH_LIBS([getifaddrs], [nsl], [
@@ -38,6 +40,8 @@ AC_SEARCH_LIBS([__res_init], [resolv bind], [
        ])
     ])
 ])
+PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBS"
+LIBS="$SAVELIBS $LIBS"
 
 AC_CHECK_MEMBER([struct sockaddr.sa_len],,, [#include <sys/socket.h>])
 AC_CHECK_HEADER([sys/sockio.h], [
index b26b1b31539068295799db935a649e27f7d087e3..3317fcadde94f59a8ead562168045afbbe6d9c21 100755 (executable)
--- a/configure
+++ b/configure
@@ -6794,6 +6794,7 @@ then :
 
 printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
 
+       PKGCONFIG_LIBS_STATIC="-framework SystemConfiguration $PKGCONFIG_LIBS_STATIC"
 
 else $as_nop
 
@@ -8278,6 +8279,8 @@ printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
 
 fi
 
+SAVELIBS="$LIBS"
+LIBS=""
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
 printf %s "checking for library containing socket... " >&6; }
 if test ${ac_cv_search_socket+y}
@@ -8717,6 +8720,8 @@ fi
 
 fi
 
+PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBS"
+LIBS="$SAVELIBS $LIBS"
 
 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
 "