mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[mingw] rules to generate configure.ac
This commit is contained in:
parent
4c88053237
commit
4edb492c19
8 changed files with 53 additions and 99 deletions
31
configure.ac
31
configure.ac
|
@ -1,8 +1,7 @@
|
|||
AC_INIT([rufus], [1.0.1], [https://github.com/pbatard/rufus/issues], [rufus], [https://github.com/pbatard/rufus])
|
||||
AM_INIT_AUTOMAKE([-Wno-portability foreign])
|
||||
AM_INIT_AUTOMAKE([-Wno-portability foreign no-dist no-dependencies])
|
||||
AC_CONFIG_SRCDIR([rufus.c])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AM_CONFIG_HEADER([config.h])
|
||||
# Enable silent build rules by default (Automake v1.11 or later).
|
||||
# Disable by either passing --disable-silent-rules to configure or passing V=1 to make
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
|
||||
|
@ -14,19 +13,23 @@ AC_PATH_PROG(RM, rm, rm)
|
|||
AC_CHECK_TOOL(STRIP, strip, strip)
|
||||
AC_CHECK_TOOL(WINDRES, windres, windres)
|
||||
AC_C_INLINE
|
||||
AM_PROG_CC_C_O
|
||||
AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions])
|
||||
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
|
||||
## 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
|
||||
|
||||
AM_CFLAGS="${AM_CFLAGS} -DWINVER=0x501 -D_WIN32_IE=0x501"
|
||||
AM_LDFLAGS="${AM_LDFLAGS} -Wl,-no-undefined"
|
||||
|
@ -57,7 +60,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
|||
[nopointersign_cflags="-Wno-pointer-sign"], [nopointersign_cflags=""])
|
||||
CFLAGS="${saved_CFLAGS}"
|
||||
|
||||
AM_CFLAGS="$AM_CFLAGS -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags"
|
||||
AM_CFLAGS="$AM_CFLAGS -std=gnu99 -Wshadow -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags"
|
||||
|
||||
AC_SUBST([VISIBILITY_CFLAGS])
|
||||
AC_SUBST([AM_CFLAGS])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue