mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
mach: Drop remnants of old_CFLAGS
This commit is contained in:
parent
7685630b98
commit
0fb10e49ad
4
sysdeps/mach/configure
vendored
4
sysdeps/mach/configure
vendored
@ -144,7 +144,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
CFLAGS=$old_CFLAGS
|
|
||||||
ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.defs" "ac_cv_header_mach_mach_types_defs"
|
ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.defs" "ac_cv_header_mach_mach_types_defs"
|
||||||
if test "x$ac_cv_header_mach_mach_types_defs" = xyes; then :
|
if test "x$ac_cv_header_mach_mach_types_defs" = xyes; then :
|
||||||
|
|
||||||
@ -218,8 +217,6 @@ $as_echo_n "checking for creation_time in task_basic_info... " >&6; }
|
|||||||
if ${libc_cv_mach_task_creation_time+:} false; then :
|
if ${libc_cv_mach_task_creation_time+:} false; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
else
|
else
|
||||||
old_CFLAGS=$CFLAGS
|
|
||||||
CFLAGS="$CFLAGS -ffreestanding"
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <mach/task_info.h>
|
#include <mach/task_info.h>
|
||||||
@ -246,7 +243,6 @@ $as_echo "$libc_cv_mach_task_creation_time" >&6; }
|
|||||||
if test $libc_cv_mach_task_creation_time = no; then
|
if test $libc_cv_mach_task_creation_time = no; then
|
||||||
as_fn_error $? "you need Mach headers supporting task_info.creation_time" "$LINENO" 5
|
as_fn_error $? "you need Mach headers supporting task_info.creation_time" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
CFLAGS=$old_CFLAGS
|
|
||||||
|
|
||||||
mach_interface_list=
|
mach_interface_list=
|
||||||
for ifc in mach mach4 gnumach \
|
for ifc in mach mach4 gnumach \
|
||||||
|
@ -15,7 +15,6 @@ fi
|
|||||||
CPPFLAGS="$CPPFLAGS -ffreestanding"
|
CPPFLAGS="$CPPFLAGS -ffreestanding"
|
||||||
AC_CHECK_HEADER(mach/mach_types.h,,
|
AC_CHECK_HEADER(mach/mach_types.h,,
|
||||||
[AC_MSG_ERROR([cannot find Mach headers])], -)
|
[AC_MSG_ERROR([cannot find Mach headers])], -)
|
||||||
CFLAGS=$old_CFLAGS
|
|
||||||
AC_CHECK_HEADER(mach/mach_types.defs,, [dnl
|
AC_CHECK_HEADER(mach/mach_types.defs,, [dnl
|
||||||
AC_MSG_ERROR([cannot find Mach .defs files])], -)
|
AC_MSG_ERROR([cannot find Mach .defs files])], -)
|
||||||
|
|
||||||
@ -44,8 +43,6 @@ dnl The creation_time field is a GNU Mach addition the other variants lack.
|
|||||||
dnl
|
dnl
|
||||||
AC_CACHE_CHECK(for creation_time in task_basic_info,
|
AC_CACHE_CHECK(for creation_time in task_basic_info,
|
||||||
libc_cv_mach_task_creation_time, [dnl
|
libc_cv_mach_task_creation_time, [dnl
|
||||||
old_CFLAGS=$CFLAGS
|
|
||||||
CFLAGS="$CFLAGS -ffreestanding"
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <mach/task_info.h>]], [[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <mach/task_info.h>]], [[
|
||||||
extern struct task_basic_info *i;
|
extern struct task_basic_info *i;
|
||||||
long s = i->creation_time.seconds;
|
long s = i->creation_time.seconds;
|
||||||
@ -53,7 +50,6 @@ long s = i->creation_time.seconds;
|
|||||||
if test $libc_cv_mach_task_creation_time = no; then
|
if test $libc_cv_mach_task_creation_time = no; then
|
||||||
AC_MSG_ERROR([you need Mach headers supporting task_info.creation_time])
|
AC_MSG_ERROR([you need Mach headers supporting task_info.creation_time])
|
||||||
fi
|
fi
|
||||||
CFLAGS=$old_CFLAGS
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl The Darwin variant no longer has <mach/mach.defs>
|
dnl The Darwin variant no longer has <mach/mach.defs>
|
||||||
|
Loading…
Reference in New Issue
Block a user