autoconf: now it works with autoconf 2.59 (RHEL5)
authorIgor Mammedov <niallain@gmail.com>
Fri, 19 Feb 2010 16:34:20 +0000 (08:34 -0800)
committerJeff Layton <jlayton@redhat.com>
Fri, 19 Feb 2010 16:34:20 +0000 (08:34 -0800)
suggest to install libtalloc-devel if talloc.h is missing

configure.ac

index ac1316d7bc3bd9fce255ffcfa29d4341950fd067..cbbef7cd560f88b3e644dab74e6d8b2814543811 100644 (file)
@@ -1,7 +1,6 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 
-AC_PREREQ([2.63])
 AC_INIT([cifs-utils], [4.0], [jlayton@samba.org])
 AC_CONFIG_SRCDIR([replace.h])
 AC_CONFIG_HEADERS([config.h])
@@ -15,8 +14,8 @@ AC_PROG_CC
 # Checks for libraries.
 
 # Checks for header files.
-AC_USE_SYSTEM_EXTENSIONS
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h krb5.h talloc.h], , [AC_MSG_ERROR([necessary header(s) not found])])
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h krb5.h], , [AC_MSG_ERROR([necessary header(s) not found])])
+AC_CHECK_HEADERS([talloc.h], , [AC_MSG_ERROR([necessary header not found, install libtalloc-devel])])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDBOOL
@@ -24,10 +23,7 @@ AC_TYPE_UID_T
 AC_TYPE_OFF_T
 AC_TYPE_PID_T
 AC_TYPE_SIZE_T
-AC_TYPE_SSIZE_T
-AC_TYPE_UINT32_T
-AC_TYPE_UINT8_T
-AC_CHECK_TYPES([ptrdiff_t])
+AC_CHECK_TYPES([ptrdiff_t, ssize_t, uint32_t, uint8_t])
 
 # Checks for library functions.
 AC_FUNC_GETMNTENT