3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 --- apt-0.6.18/configure.in~autofoo
7 +++ apt-0.6.18/configure.in
9 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
11 dnl -- SET THIS TO THE RELEASE VERSION --
12 -AC_DEFINE_UNQUOTED(VERSION,"0.6.25")
13 +AC_DEFINE_UNQUOTED(VERSION,"0.6.25", [package version])
15 -AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
16 +AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE", [package name])
19 dnl Check the archs, we want the target type.
23 dnl Checks for pthread -- disabled due to glibc bugs jgg
24 -dnl AC_CHECK_LIB(pthread, pthread_create,[AC_DEFINE(HAVE_PTHREAD) PTHREADLIB="-lpthread"])
25 +dnl AC_CHECK_LIB(pthread, pthread_create,[AC_DEFINE(HAVE_PTHREAD, 1, [define if we have pthreads]) PTHREADLIB="-lpthread"])
27 dnl if test "$PTHREADLIB" != "-lpthread"; then
28 dnl AC_MSG_ERROR(failed: I need posix threads, pthread)
30 AC_MSG_ERROR(failed: use --host=)
32 AC_MSG_RESULT($archset)
33 -AC_DEFINE_UNQUOTED(COMMON_CPU,"$archset")
34 +AC_DEFINE_UNQUOTED(COMMON_CPU,"$archset",[define to the system architecture])
36 dnl Get a common name for the host OS - this is primarily only for HURD and is
37 dnl non fatal if it fails
38 AC_MSG_CHECKING(system OS)
39 osset="`awk \" ! /^#|^\\\$/ {if (match(\\\"$target_vendor-$target_os\\\",\\\$1)) {print \\\$2; exit}}\" $srcdir/buildlib/ostable`"
41 -AC_DEFINE_UNQUOTED(COMMON_OS,"$osset")
42 +AC_DEFINE_UNQUOTED(COMMON_OS,"$osset",[define to the system OS])
44 dnl We use C99 types if at all possible
45 AC_CACHE_CHECK([for C99 integer types],c9x_ints,[
48 dnl Arg, linux and bsd put their statfs function in different places
49 if test x"$HAVE_STATVFS" != x"yes"; then
50 - AC_EGREP_HEADER(statfs,sys/vfs.h,[AC_DEFINE(HAVE_VFS_H)],[
51 - AC_EGREP_HEADER(statfs,sys/mount.h,[AC_DEFINE(HAVE_MOUNT_H)],[AC_MSG_ERROR(failed: Need statvfs)])
52 + AC_EGREP_HEADER(statfs,sys/vfs.h,[AC_DEFINE(HAVE_VFS_H, 1, [define if statfs is in sys/vfs.h])],[
53 + AC_EGREP_HEADER(statfs,sys/mount.h,[AC_DEFINE(HAVE_MOUNT_H, 1, [define if statfs is in sys/mount.h])],[AC_MSG_ERROR(failed: Need statvfs)])
57 dnl We should use the real timegm function if we have it.
58 -AC_CHECK_FUNC(timegm,AC_DEFINE(HAVE_TIMEGM))
59 +AC_CHECK_FUNC(timegm,AC_DEFINE(HAVE_TIMEGM, 1, [define if we have timegm]))
62 dnl Check the sizes etc. of the architecture
65 AC_MSG_CHECKING(for missing socklen_t)
66 AC_EGREP_HEADER(socklen_t, sys/socket.h,[AC_MSG_RESULT(no)],[
67 - AC_DEFINE(NEED_SOCKLEN_T_DEFINE)
68 + AC_DEFINE(NEED_SOCKLEN_T_DEFINE, 1, [define if we need to define socklen_t])
69 NEED_SOCKLEN_T_DEFINE=yes
70 AC_MSG_RESULT(missing.)])
71 AC_SUBST(NEED_SOCKLEN_T_DEFINE)
73 ALL_LINGUAS="da de en_GB es fr hu it nl no_NO pl pt_BR ru sv zh_TW"
74 AM_GNU_GETTEXT(external)
75 if test x"$USE_NLS" = "xyes"; then
77 + AC_DEFINE(USE_NLS, 1, [define if we have native language support])
80 AC_PATH_PROG(BASH, bash)