Avoid unnecessary compilation units, through conditional dependencies.
[gnulib.git] / modules / getdomainname
index 5a9d23f..c7f77b0 100644 (file)
@@ -8,8 +8,8 @@ m4/getdomainname.m4
 Depends-on:
 unistd
 extensions
-netdb
-sys_socket
+netdb           [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
+sys_socket      [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
 
 configure.ac:
 gl_FUNC_GETDOMAINNAME