mirror of git://gcc.gnu.org/git/gcc.git
parent
2203cb90fb
commit
dbe1e4a5a6
|
@ -14547,7 +14547,9 @@ $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
|
||||||
if test "${libgo_cv_c_ustat_h+set}" = set; then :
|
if test "${libgo_cv_c_ustat_h+set}" = set; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
else
|
else
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
CFLAGS_hold=$CFLAGS
|
||||||
|
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -14563,6 +14565,7 @@ else
|
||||||
libgo_cv_c_ustat_h=no
|
libgo_cv_c_ustat_h=no
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
CFLAGS=$CFLAGS_hold
|
||||||
fi
|
fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
|
||||||
$as_echo "$libgo_cv_c_ustat_h" >&6; }
|
$as_echo "$libgo_cv_c_ustat_h" >&6; }
|
||||||
|
|
|
@ -463,6 +463,8 @@ AC_CHECK_HEADERS([linux/filter.h linux/netlink.h linux/rtnetlink.h], [], [],
|
||||||
|
|
||||||
AC_CACHE_CHECK([whether <ustat.h> can be used],
|
AC_CACHE_CHECK([whether <ustat.h> can be used],
|
||||||
[libgo_cv_c_ustat_h],
|
[libgo_cv_c_ustat_h],
|
||||||
|
[CFLAGS_hold=$CFLAGS
|
||||||
|
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
|
||||||
AC_COMPILE_IFELSE(
|
AC_COMPILE_IFELSE(
|
||||||
[AC_LANG_SOURCE([
|
[AC_LANG_SOURCE([
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -470,7 +472,8 @@ AC_COMPILE_IFELSE(
|
||||||
#include <linux/filter.h>
|
#include <linux/filter.h>
|
||||||
#endif
|
#endif
|
||||||
#include <ustat.h>
|
#include <ustat.h>
|
||||||
])], [libgo_cv_c_ustat_h=yes], [libgo_cv_c_ustat_h=no]))
|
])], [libgo_cv_c_ustat_h=yes], [libgo_cv_c_ustat_h=no])
|
||||||
|
CFLAGS=$CFLAGS_hold])
|
||||||
if test $libgo_cv_c_ustat_h = yes; then
|
if test $libgo_cv_c_ustat_h = yes; then
|
||||||
AC_DEFINE(HAVE_USTAT_H, 1,
|
AC_DEFINE(HAVE_USTAT_H, 1,
|
||||||
[Define to 1 if you have the <ustat.h> header file and it works.])
|
[Define to 1 if you have the <ustat.h> header file and it works.])
|
||||||
|
|
Loading…
Reference in New Issue