1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ(2.59) 5AC_INIT(genext2fs.c) 6 7builtin(include, [m4/ac_func_snprintf.m4])dnl 8builtin(include, [m4/ac_func_scanf_can_malloc.m4])dnl 9 10AM_INIT_AUTOMAKE(genext2fs,1.4.1) 11AC_CONFIG_HEADER([config.h]) 12 13AC_GNU_SOURCE 14 15# Checks for programs. 16AC_PROG_CC 17AC_PROG_INSTALL 18 19# Checks for header files. 20AC_HEADER_DIRENT 21AC_HEADER_STDC 22AC_HEADER_MAJOR 23AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h memory.h stddef.h stdint.h stdlib.h string.h strings.h unistd.h]) 24AC_CHECK_HEADERS([libgen.h getopt.h]) 25 26# Checks for typedefs, structures, and compiler characteristics. 27AC_C_CONST 28AC_TYPE_UID_T 29AC_C_INLINE 30AC_CHECK_TYPE(size_t, unsigned) 31AC_CHECK_TYPE(ssize_t, signed) 32AC_CHECK_MEMBERS([struct stat.st_rdev]) 33 34# Checks for library functions. 35AC_CHECK_FUNCS([getopt_long getline strtof]) 36AC_FUNC_SNPRINTF 37AC_FUNC_SCANF_CAN_MALLOC 38 39AC_OUTPUT([Makefile],[ 40chmod a+x $ac_top_srcdir/test-mount.sh $ac_top_srcdir/test.sh 41]) 42