"Fossies" - the Fresh Open Source Software Archive

Member "fatresize-1.1.0/configure.ac" (5 Apr 2020, 1083 Bytes) of package /linux/privat/fatresize-1.1.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "configure.ac": 1.0.2_vs_1.0.3.

    1 AC_PREREQ(2.50)
    2 AC_INIT(fatresize, 1.1.0, [mouse@ya.ru])
    3 
    4 AM_INIT_AUTOMAKE
    5 AM_CONFIG_HEADER(config.h)
    6 
    7 AM_MAINTAINER_MODE
    8 
    9 dnl set some basic variables
   10 DATE_FMT="%Y%m%d"
   11 if test "x$SOURCE_DATE_EPOCH" = "x"; then
   12     BUILD_DATE=$(date "+$DATE_FMT")
   13 else
   14     BUILD_DATE="$(date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u "+$DATE_FMT")"
   15 fi
   16 AC_DEFINE_UNQUOTED(BUILD_DATE, "$BUILD_DATE", [The date of the build.])
   17 
   18 # Check for programs.
   19 AC_LANG_C
   20 AC_PROG_CC
   21 AC_PROG_INSTALL
   22 
   23 # Check headers.
   24 AC_CHECK_HEADERS([ctype.h errno.h stdio.h getopt.h stdarg.h string.h \
   25 		 stdlib.h unistd.h parted/parted.h])
   26 
   27 # Check for library functions.
   28 AC_CHECK_FUNCS([memset strtoll])
   29 
   30 # Check for LFS
   31 AC_SYS_LARGEFILE
   32 CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}"
   33 
   34 dnl libparted
   35 # hack
   36 LIBS="$LIBS -ldl"
   37 PKG_CHECK_MODULES([PARTED], [libparted >= 2.4])
   38 PKG_CHECK_EXISTS([libparted >= 3.1],
   39 		 [PARTED_LIBS="-lparted-fs-resize $PARTED_LIBS"])
   40 
   41 AC_SUBST(PARTED_LIBS)
   42 
   43 AC_CONFIG_FILES([Makefile])
   44 AC_OUTPUT