Ticket #39018: patch-configure.ac.diff

File patch-configure.ac.diff, 3.0 KB (added by cooljeanius (Eric Gallager), 11 years ago)

patch for configure.ac

  • configure.ac

    old new  
    22
    33m4_pattern_forbid([^_?DPKG_])
    44
    5 AC_PREREQ(2.60)
    6 AC_INIT([dpkg], m4_esyscmd([./get-version]), [debian-dpkg@lists.debian.org])
     5AC_PREREQ([2.60])
     6AC_INIT([dpkg], [m4_esyscmd([./get-version])], [debian-dpkg@lists.debian.org])
    77AC_CONFIG_SRCDIR([lib/dpkg/dpkg.h])
    88AC_CONFIG_MACRO_DIR([m4])
    99AC_CONFIG_AUX_DIR([build-aux])
     
    3535# Checks for programs.
    3636AC_PROG_CC
    3737AC_PROG_CXX
     38AC_PROG_INSTALL
    3839AC_PROG_LEX
    3940DPKG_DIST_CHECK([test "$LEX" = ":"], [lex program required])
    4041AC_PROG_RANLIB
    4142AC_CHECK_PROGS([DOXYGEN], [doxygen])
    4243AC_CHECK_PROG([HAVE_DOT], [dot], [YES], [NO])
     44AX_CHECK_GNU_MAKE
     45AC_PATH_PROG([TAR], [gnutar tar])
     46
    4347DPKG_PROG_PO4A
    4448DPKG_PROG_PERL
    4549DPKG_PROG_POD2MAN
     
    6266
    6367# Checks for header files.
    6468AC_HEADER_STDC
    65 AC_CHECK_HEADERS([stddef.h error.h locale.h libintl.h kvm.h \
    66                   sys/syscall.h linux/fiemap.h])
     69AC_CHECK_HEADERS([error.h fcntl.h libintl.h limits.h \
     70                 linux/fiemap.h locale.h kvm.h \
     71                 stddef.h stdio.h sys/file.h sys/ioctl.h \
     72                 sys/time.h sys/syscall.h sys/vfs.h utime.h])
    6773
    6874# Checks for typedefs, structures, and compiler characteristics.
     75AC_HEADER_STDBOOL
    6976AC_C_BIGENDIAN
    7077AC_C_CONST
    7178AC_C_INLINE
    7279AC_C_VOLATILE
    7380DPKG_C_C99
     81AC_TYPE_INT16_T
     82AC_TYPE_INT32_T
     83AC_TYPE_INT8_T
    7484AC_TYPE_MODE_T
     85AC_FUNC_OBSTACK
     86AC_TYPE_OFF_T
    7587AC_TYPE_PID_T
    7688AC_TYPE_SIZE_T
     89AC_TYPE_SSIZE_T
     90AC_CHECK_MEMBERS([struct stat.st_rdev])
     91AC_CHECK_DECLS([sys_siglist])
     92AC_TYPE_UINT16_T
     93AC_TYPE_UINT32_T
     94AC_TYPE_UINT64_T
     95AC_TYPE_UINT8_T
     96AC_TYPE_UID_T
    7797DPKG_TYPES_U_INT_T
    7898DPKG_TYPE_PTRDIFF_T
    7999AC_CHECK_SIZEOF([unsigned int])
     
    91111DPKG_CHECK_COMPAT_FUNCS([getopt getopt_long obstack_free \
    92112                         strnlen strndup strerror strsignal asprintf \
    93113                         scandir alphasort unsetenv])
     114AC_FUNC_CHOWN
     115AC_FUNC_ERROR_AT_LINE
     116AC_FUNC_FORK
     117AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
     118AC_FUNC_MALLOC
     119AC_FUNC_MMAP
     120AC_FUNC_REALLOC
     121AC_FUNC_STRNLEN
    94122AC_CHECK_DECLS([strnlen], [[#include <string.h>]])
    95123AC_CHECK_FUNCS([memcpy lchown],
    96124               [], [AC_ERROR([missing required function])])
    97 AC_CHECK_FUNCS([strtoimax isascii setsid getdtablesize \
    98                 getprogname getexecname lutimes posix_fadvise])
     125AC_CHECK_FUNCS([dup2 ftruncate getdtablesize getexecname \
     126                getprogname gettimeofday isascii lutimes memchr memmove memset mkdir \
     127                mkfifo munmap posix_fadvise putenv regcomp rmdir select setenv setlocale \
     128                setsid strcasecmp strchr strcspn strdup strncasecmp \
     129                strpbrk strrchr strspn strstr strtoimax strtol])
    99130
    100131DPKG_MMAP
    101132
    102133# Checks for the build machinery.
    103 AC_DEFINE(LIBDPKG_VOLATILE_API, 1, [Acknowledge the volatility of the API.])
     134AC_DEFINE([LIBDPKG_VOLATILE_API], [1], [Acknowledge the volatility of the API.])
    104135DPKG_COMPILER_WARNINGS
    105136DPKG_COMPILER_OPTIMISATIONS
    106137DPKG_LINKER_OPTIMISATIONS