AC_INIT(cpmfs.c)
AC_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
-VERSION=2.1
-UPDATED='April 21, 2002'
+VERSION=2.7
+UPDATED='November 26, 2007'
DEVICE="posix"
then
case $host in
*-linux-*)
- PIPE="-pipe "
- ;;
- esac
- case $host in
- *-netbsd*)
- PIPE="-pipe "
;;
esac
fi
if test "$GCC" = yes
then
- CFLAGS="${CFLAGS} ${PIPE}-Wmissing-prototypes -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wnested-externs -pedantic -fno-common"
- LDFLAGS='-g'
+ 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"
+ LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
+else
+ CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
+ LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
fi
AC_ARG_WITH(defformat,[ --with-defformat Specify default format (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],
- [DMALLOC="$withval"], [DMALLOC=""])
+ [CPPFLAGS="$CPPFLAGS -I$with_dmalloc/include"
+ LDFLAGS="$LDFLAGS -L$with_dmalloc/lib"
+ LIBS="$LIBS -ldmalloc"
+ AC_DEFINE(USE_DMALLOC)])
AC_CYGWIN
AC_MINGW32
AC_CHECK_HEADERS(windows.h winioctl.h, ,[echo "Windows headers not found - aborting"; exit 1] )
fi
-dnl Check for dmalloc
-if test x"$DMALLOC" != x""; then
- CPPFLAGS = "-I$DMALLOC/include $CPPFLAGS"
- CFLAGS = "-I$DMALLOC/include $CFLAGS"
- LDFLAGS = "-L$DMALLOC/lib $LDFLAGS"
- AC_CHECK_LIB(dmalloc, malloc)
- AC_CHECK_HEADERS(dmalloc.h)
-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_STRUCT_TM
AC_EXEEXT
AC_OBJEXT
+AC_SYS_LARGEFILE
dnl add EXE extension to fsed.cpm
if test x"$FSED_CPM" != x""; then