X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=configure.in;h=be9a55c8c3bf5a9d748f2e599e2ce725d34d238c;hb=b1e873c5b2f6376bb39ff0fda1464cbbacbae5f7;hp=8a6e47fc8cfa0a0577461468595c8ede47ce94f1;hpb=da79766c5b4c4bae50ddc7bd81b610d3a45c5899;p=debian%2Fcpmtools diff --git a/configure.in b/configure.in index 8a6e47f..be9a55c 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,8 @@ AC_INIT(cpmfs.c) AC_CONFIG_HEADER(config.h) AC_CANONICAL_HOST -VERSION=2.10 -UPDATED='July 6, 2009' +VERSION=2.20 +UPDATED='October 25, 2014' DEVICE="posix" @@ -11,6 +11,9 @@ then case $host in *-linux-*) ;; + *-pc-mingw32) + CFLAGS_LIBDSK=-DNOTWINDLL + ;; esac fi @@ -20,7 +23,7 @@ AC_PROG_CPP if test "$GCC" = yes then - CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common" + CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wextra -Wno-unused-parameter -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common" LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g" else CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}" @@ -62,13 +65,17 @@ dnl Try both curses and ncurses AC_CHECK_LIB(curses, printw, FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS", FSED_CPM=) if test x"$FSED_CPM" = x""; then AC_CHECK_LIB(ncurses, printw, FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS", FSED_CPM=) + if test x"$FSED_CPM" != x""; then + AC_DEFINE(NEED_NCURSES) + AC_CHECK_HEADERS(ncurses/ncurses.h,have_ncurses_ncurses_h=yes) + fi fi dnl If using libdsk, check it's available. if test "$LIBDSK" != ""; then DEVICE="libdsk" CPPFLAGS="$CPPFLAGS -I$LIBDSK/include" - CFLAGS="$CFLAGS -I$LIBDSK/include" + CFLAGS="$CFLAGS -I$LIBDSK/include $CFLAGS_LIBDSK" LDFLAGS="$LDFLAGS -L$LIBDSK/lib" AC_CHECK_LIB(dsk, dsk_open) AC_CHECK_HEADERS(libdsk.h, ,[echo "No libdsk.h - aborting"; exit 1]) @@ -76,7 +83,12 @@ fi dnl If using win32, check it's available. if test x"$DEVICE" = x"win32"; then - AC_CHECK_HEADERS(windows.h winioctl.h, ,[echo "Windows headers not found - aborting"; exit 1] ) + AC_CHECK_HEADERS(windows.h, ,[echo "Device win32, but not found - aborting"; exit 1] ) + AC_CHECK_HEADERS(winioctl.h, ,[echo "Device win32, but not found - aborting"; exit 1], +[#ifdef HAVE_WINDOWS_H +#include +#endif +]) fi dnl Checks for header files.