1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[misc] more pre 1.1.0 improvements

This commit is contained in:
Pete Batard 2012-02-07 23:16:15 +00:00
parent 5d58b83ed8
commit c1a8135d30
5 changed files with 94 additions and 85 deletions

View file

@ -1,4 +1,4 @@
AC_INIT([rufus], [1.0.8], [https://github.com/pbatard/rufus/issues], [rufus], [http://rufus.akeo.ie])
AC_INIT([rufus], [1.1.0], [https://github.com/pbatard/rufus/issues], [rufus], [http://rufus.akeo.ie])
AM_INIT_AUTOMAKE([-Wno-portability foreign no-dist no-dependencies])
AC_CONFIG_SRCDIR([src/rufus.c])
AC_CONFIG_MACRO_DIR([m4])
@ -16,25 +16,6 @@ AC_CHECK_TOOL(WINDRES, windres, windres)
AC_C_INLINE
AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions])
## We don't actually use config.h for the time being
#AM_CONFIG_HEADER([config.h])
## The following creates config.guess and a bunch of polluting stuff
## => avoid it for now
#AC_CANONICAL_HOST
#AC_MSG_CHECKING([development environment])
#case $host in
#*-mingw*)
# AC_MSG_RESULT([MinGW])
# AM_CFLAGS="-Wshadow"
# ;;
#*)
# AC_MSG_ERROR([unsupported development environment])
#esac
AC_MSG_RESULT([enabling Large File Support (for ISO images)])
AM_CFLAGS="-D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED -D_OFF_T_ -D_off_t=off64_t -Doff_t=off64_t"
# Clang needs an explicit WIN32_WINNT defined else it produces warnings
# in msapi_utf8.h - including winver.h only doesn't work
AM_CFLAGS="${AM_CFLAGS} -DWINVER=0x501 -D_WIN32_IE=0x501 -D_WIN32_WINNT=0x501"
@ -52,7 +33,7 @@ fi
AC_ARG_WITH([syslinux],
[AS_HELP_STRING([--with-syslinux],
[embed SysLinux support (default=yes)])],
[embed Syslinux support (default=yes)])],
[],
[with_freedos=yes])
if test "x$with_syslinux" != "xno" ; then
@ -60,18 +41,22 @@ if test "x$with_syslinux" != "xno" ; then
EXESUFFIX="f"
fi
# Debug symbols
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [keep debug symbols for gdb (default=yes)]),
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[keep debug symbols for gdb (default=yes)])],
[debug_enabled=$enableval],
[debug_enabled='yes'])
if test "x$debug_enabled" = "xyes" ; then
if test "x$debug_enabled" != "xno" ; then
CFLAGS="-g -O2"
else
CFLAGS="-O2"
LDFLAGS="-s"
fi
AC_MSG_RESULT([enabling Large File Support (ISO support)])
AM_CFLAGS="$AM_CFLAGS -D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED -D_OFF_T_ -D_off_t=off64_t -Doff_t=off64_t"
# check for -Wno-pointer-sign compiler support (GCC >= 4)
saved_CFLAGS="${CFLAGS}"
CFLAGS="$CFLAGS -Wno-pointer-sign"
@ -96,3 +81,7 @@ AC_CONFIG_FILES([src/libcdio/iso9660/Makefile])
AC_CONFIG_FILES([src/libcdio/udf/Makefile])
AC_CONFIG_FILES([src/libcdio/driver/Makefile])
AC_OUTPUT
AC_MSG_NOTICE([
FreeDOS Support : $(test "x$with_freedos" != "xno" && echo enabled || echo disabled)
Syslinux Support : $(test "x$with_syslinux" != "xno" && echo enabled || echo disabled)])