X-Git-Url: https://git.gag.com/?p=debian%2Fcpmtools;a=blobdiff_plain;f=configure.in;fp=configure.in;h=444aab92997b8914ff02fa17f41d587d754b9b4e;hp=be9a55c8c3bf5a9d748f2e599e2ce725d34d238c;hb=0244ff6db7cb417c6210118e14ebc8a11924b7f6;hpb=be51a0b47ec4edacc689851a88ec6172737cb61c diff --git a/configure.in b/configure.in index be9a55c..444aab9 100644 --- a/configure.in +++ b/configure.in @@ -1,18 +1,23 @@ AC_INIT(cpmfs.c) -AC_CONFIG_HEADER(config.h) +AC_CONFIG_HEADERS([config.h]) AC_CANONICAL_HOST -VERSION=2.20 -UPDATED='October 25, 2014' +VERSION=2.23 +UPDATED='November 2, 2022' DEVICE="posix" +TERM="curses" if test "$prefix" = NONE then case $host in *-linux-*) ;; + *-cygwin-*) + CYGWIN=yes + ;; *-pc-mingw32) CFLAGS_LIBDSK=-DNOTWINDLL + MINGW32=yes ;; esac fi @@ -23,42 +28,21 @@ AC_PROG_CPP if test "$GCC" = yes then - 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" + CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wextra -Wshadow -Wno-unused-parameter -Wunused -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}" LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}" fi -AC_CYGWIN -AC_MINGW32 -dnl Choose between posix and win32 drivers... -DEVICE="posix" - DISKDEFS='${datarootdir}/diskdefs' -if test "$CYGWIN" = "yes" -then - DEVICE="win32" -# DISKDEFS='%USERPROFILE%/diskdefs' -fi -if test "$MINGW32" = "yes" -then - DEVICE="win32" -# DISKDEFS='%USERPROFILE%\\diskdefs' -fi - AC_ARG_WITH(diskdefs,[ --with-diskdefs Specify diskdefs location], [DISKDEFS="$withval"], [DISKDEFS="$DISKDEFS"]) AC_ARG_WITH(defformat,[ --with-defformat Specify default format (ibm-3740)], [DEFFORMAT="$withval"], [DEFFORMAT="ibm-3740"]) AC_ARG_WITH(libdsk, [ --with-libdsk Specify path to libdsk library], [LIBDSK="$withval"], [LIBDSK=""]) -AC_ARG_WITH(dmalloc, [ --with-dmalloc Specify path to dmalloc library], - [CPPFLAGS="$CPPFLAGS -I$with_dmalloc/include" - LDFLAGS="$LDFLAGS -L$with_dmalloc/lib" - LIBS="$LIBS -ldmalloc" - AC_DEFINE(USE_DMALLOC)]) dnl Check for curses. If not found, don't build fsed.cpm dnl Try both curses and ncurses @@ -81,19 +65,8 @@ if test "$LIBDSK" != ""; then AC_CHECK_HEADERS(libdsk.h, ,[echo "No libdsk.h - aborting"; exit 1]) fi -dnl If using win32, check it's available. -if test x"$DEVICE" = x"win32"; then - 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. -AC_HEADER_STDC -AC_CHECK_HEADERS(fcntl.h sys/types.h sys/stat.h limits.h unistd.h) +AC_CHECK_HEADERS(fcntl.h sys/types.h sys/stat.h limits.h unistd.h sys/utime.h utime.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -101,6 +74,7 @@ AC_TYPE_MODE_T AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T +AC_TYPE_SSIZE_T AC_STRUCT_TM AC_EXEEXT AC_OBJEXT @@ -125,4 +99,5 @@ AC_SUBST(DISKDEFS) AC_SUBST(DEFFORMAT) AC_SUBST(FSED_CPM) AC_SUBST(UPDATED) -AC_OUTPUT(Makefile cpm.5 cpmchattr.1 cpmchmod.1 cpmcp.1 cpmls.1 cpmrm.1 fsck.cpm.1 fsed.cpm.1 mkfs.cpm.1 ) +AC_CONFIG_FILES(Makefile cpm.5 cpmchattr.1 cpmchmod.1 cpmcp.1 cpmls.1 cpmrm.1 fsck.cpm.1 fsed.cpm.1 mkfs.cpm.1 diskdefs.5) +AC_OUTPUT