- replace the questionable magic to conditionally install headers in
[apt.git] / configure.in
index 4ddcfd7..fa67e5e 100644 (file)
@@ -171,7 +171,6 @@ AC_CACHE_CHECK([for C99 integer types],c9x_ints,[
     AC_TRY_COMPILE([#include <inttypes.h>],
                    [uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;],
                   c9x_ints=yes,c9x_ints=no)])
-AM_CONDITIONAL(NEED_INTTYPES_H, test "$c9x_ints" = "no")
 
 AC_C_BIGENDIAN
 
@@ -185,7 +184,6 @@ AC_CHECK_SIZEOF(long)
 
 dnl Single Unix Spec statvfs
 AC_CHECK_FUNC(statvfs,[have_statvfs=yes])
-AM_CONDITIONAL(NEED_STATVFS_H, test "$have_statvfs" != "yes")
 
 dnl Arg, linux and bsd put their statfs function in different places
 AH_TEMPLATE(HAVE_VFS_H, [Define to 1 if sys/vfs.h is available])
@@ -210,7 +208,6 @@ AC_EGREP_HEADER(socklen_t, sys/socket.h,[AC_MSG_RESULT(no)],[
        NEED_SOCKLEN_T_DEFINE=yes
         AC_MSG_RESULT(missing.)])
 AC_SUBST(NEED_SOCKLEN_T_DEFINE)
-AM_CONDITIONAL(NEED_NETDB_H, test "$NEED_SOCKLEN_T_DEFINE" = "yes")
 
 dnl HP-UX needs -d_XOPEN_SOURCE_EXTENDED for h_errno
 AC_MSG_CHECKING(for h_errno)
@@ -251,7 +248,6 @@ dnl ah_GCC3DEP
 
 AC_CONFIG_FILES([
          Makefile
-         buildlib/Makefile
          lua/Makefile
          apt-pkg/Makefile
          methods/Makefile
@@ -260,4 +256,18 @@ AC_CONFIG_FILES([
          doc/Makefile
          po/Makefile.in
          ])
+AC_CONFIG_LINKS([include/apti18n.h:buildlib/gettext.h])
+
+AS_IF([test "$c9x_ints" = "no"],[
+AC_CONFIG_LINKS([include/inttypes.h:buildlib/inttypes.h])
+])
+
+AS_IF([test "$have_statvfs" != "yes"],[
+AC_CONFIG_LINKS([include/statvfs.h:buildlib/statvfs.h])
+])
+
+AS_IF([test "$NEED_SOCKLEN_T_DEFINE" = "yes"],[
+AC_CONFIG_LINKS([include/netdb.h:buildlib/netdb.h])
+])
+
 AC_OUTPUT