mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Added checks for statfs() and stat64() functions.
Added removal of 'config.h.in~' in autogen.sh
This commit is contained in:
parent
c85f4b654c
commit
39e795031c
@ -19,6 +19,7 @@ EOF
|
|||||||
|
|
||||||
if aclocal -I m4 && autoheader && autoconf; then
|
if aclocal -I m4 && autoheader && autoconf; then
|
||||||
#dump_config "Jamconfig.in"
|
#dump_config "Jamconfig.in"
|
||||||
|
rm -f "config.h.in~"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Now run ./configure [OPTIONS]"
|
echo "Now run ./configure [OPTIONS]"
|
||||||
|
@ -152,6 +152,9 @@ if test "$have_libxpm" = "yes"; then
|
|||||||
FLTK_LIBS_NOIMAGES="$FLTK_LIBS_NOIMAGES $LIBXPM_LIBS"
|
FLTK_LIBS_NOIMAGES="$FLTK_LIBS_NOIMAGES $LIBXPM_LIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
EDE_CHECK_STATFS
|
||||||
|
EDE_CHECK_STAT64
|
||||||
|
|
||||||
EDE_INIT_JAM
|
EDE_INIT_JAM
|
||||||
|
|
||||||
AC_SUBST(EDE_VERSION)
|
AC_SUBST(EDE_VERSION)
|
||||||
|
33
m4/stat64.m4
Normal file
33
m4/stat64.m4
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Part of edelib.
|
||||||
|
dnl Copyright (c) 2009 EDE Authors.
|
||||||
|
dnl
|
||||||
|
dnl This program is licenced under terms of the
|
||||||
|
dnl GNU General Public Licence version 2 or newer.
|
||||||
|
dnl See COPYING for details.
|
||||||
|
|
||||||
|
AC_DEFUN([EDE_CHECK_STAT64], [
|
||||||
|
AC_MSG_CHECKING([for stat64])
|
||||||
|
|
||||||
|
AC_LANG_SAVE
|
||||||
|
AC_LANG_C
|
||||||
|
AC_TRY_COMPILE([
|
||||||
|
/* C++ already defines this, but C does not and 'struct stat64' will not be seen */
|
||||||
|
#define _LARGEFILE64_SOURCE 1
|
||||||
|
#include <sys/stat.h>
|
||||||
|
],[
|
||||||
|
|
||||||
|
struct stat64 s;
|
||||||
|
stat64("/", &s);
|
||||||
|
],[have_stat64=yes],[have_stat64=no])
|
||||||
|
AC_LANG_RESTORE
|
||||||
|
|
||||||
|
if eval "test $have_stat64 = yes"; then
|
||||||
|
AC_DEFINE(HAVE_STAT64, 1, [Define to 1 if you have stat64])
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
])
|
30
m4/statfs.m4
Normal file
30
m4/statfs.m4
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Part of edelib.
|
||||||
|
dnl Copyright (c) 2009 EDE Authors.
|
||||||
|
dnl
|
||||||
|
dnl This program is licenced under terms of the
|
||||||
|
dnl GNU General Public Licence version 2 or newer.
|
||||||
|
dnl See COPYING for details.
|
||||||
|
|
||||||
|
AC_DEFUN([EDE_CHECK_STATFS], [
|
||||||
|
AC_MSG_CHECKING([for statfs])
|
||||||
|
|
||||||
|
AC_LANG_SAVE
|
||||||
|
AC_LANG_C
|
||||||
|
AC_TRY_COMPILE([
|
||||||
|
#include <sys/vfs.h>
|
||||||
|
],[
|
||||||
|
struct statfs s;
|
||||||
|
statfs("/", &s);
|
||||||
|
],[have_statfs=yes],[have_statfs=no])
|
||||||
|
AC_LANG_RESTORE
|
||||||
|
|
||||||
|
if eval "test $have_statfs = yes"; then
|
||||||
|
AC_DEFINE(HAVE_STATFS, 1, [Define to 1 if you have statfs])
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
])
|
Loading…
Reference in New Issue
Block a user