[Libsysio-commit] cplant: libsysio configure.in
Brought to you by:
lward
From: Ruth K. <rk...@us...> - 2003-05-01 22:46:14
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv26814 Modified Files: Tag: cplant configure.in Log Message: Remove dependency on cplant include file Also, with CFLAGS=-Werror set some of the configure checks were failing erroneously. Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.2.2 retrieving revision 1.5.2.3 diff -u -w -b -B -p -r1.5.2.2 -r1.5.2.3 --- configure.in 29 Apr 2003 19:08:39 -0000 1.5.2.2 +++ configure.in 1 May 2003 22:46:09 -0000 1.5.2.3 @@ -67,27 +67,17 @@ AC_ARG_WITH(stdfd-dev, AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) AC_ARG_WITH(cplant_yod, - [ --with-cplant-yod=[portals-include-path] build cplant yod I/O driver], + [ --with-cplant-yod build cplant yod I/O driver], [ case "${withval}" in - yes) - AC_MSG_ERROR(missing include dir argument for --with-cplant-yod);; - no);; - *) - if test -d ${withval}; then - PORTALS_INCLUDE="-I${withval} -I${withval}/sys" - YOD_DRIVER_INCLUDE="-I../../drivers/yod" - if test x${with_stdfd_dev} != xyes; then + yes) if test x${with_stdfd_dev} != xyes; then with_stdfd_dev=yes AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) - fi - else - AC_MSG_ERROR(include dir ${withval} not found for --with-cplant-yod) fi;; + no) ;; + *) AC_MSG_ERROR(bad value ${withval} for --with-cplant-yod);; esac], [with_cplant_yod=no]) -AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod != xno) -AC_SUBST(PORTALS_INCLUDE) -AC_SUBST(YOD_DRIVER_INCLUDE) +AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod = xyes) # We keep the original values in `$config_*' and never modify them, so we # can write them unchanged into config.make. Everything else uses @@ -170,7 +160,8 @@ AC_MSG_RESULT($alpha_linux_env) AC_MSG_CHECKING(for 64 bit stat and truncate syscalls) AC_TRY_COMPILE([ #include <sys/stat.h> -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [char path[] = "/"; int fd = 0; struct stat buf; @@ -190,7 +181,8 @@ fi # AC_MSG_CHECKING(for fdatasync system call) AC_TRY_COMPILE([ -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [int fd = 0; syscall(SYS_fdatasync, fd);], syscall_fdatasync_exists=yes, @@ -204,7 +196,8 @@ fi # AC_MSG_CHECKING(for utime system call) AC_TRY_COMPILE([ -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [syscall(SYS_utime);], syscall_utime_exists=yes, syscall_utime_exists=no) @@ -212,7 +205,7 @@ AC_MSG_RESULT($syscall_utime_exists) if test x$syscall_utime_exists = xno; then AC_DEFINE(USE_NATIVE_UTIME) fi -# Check for SYS_utime +# Check for __st_ino # AC_MSG_CHECKING(for __st_ino) AC_TRY_COMPILE([ |