2012-06-21 19:20:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
# ac_fn_c_try_cpp LINENO
|
|
|
|
# ----------------------
|
|
|
|
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
|
|
|
ac_fn_c_try_cpp ()
|
|
|
|
{
|
|
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
|
if { { ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
|
case "(($ac_try" in
|
|
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
*) ac_try_echo=$ac_try;;
|
|
|
|
esac
|
|
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
|
|
|
ac_status=$?
|
|
|
|
if test -s conftest.err; then
|
|
|
|
grep -v '^ *+' conftest.err >conftest.er1
|
|
|
|
cat conftest.er1 >&5
|
|
|
|
mv -f conftest.er1 conftest.err
|
|
|
|
fi
|
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
test $ac_status = 0; } > conftest.i && {
|
|
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
|
test ! -s conftest.err
|
|
|
|
}; then :
|
|
|
|
ac_retval=0
|
|
|
|
else
|
|
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
ac_retval=1
|
|
|
|
fi
|
|
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
as_fn_set_status $ac_retval
|
|
|
|
|
|
|
|
} # ac_fn_c_try_cpp
|
|
|
|
|
|
|
|
# ac_fn_c_check_header_preproc LINENO HEADER VAR
|
|
|
|
# ----------------------------------------------
|
|
|
|
# Tests whether HEADER is present, setting the cache variable VAR accordingly.
|
|
|
|
ac_fn_c_check_header_preproc ()
|
|
|
|
{
|
|
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
|
|
$as_echo_n "checking for $2... " >&6; }
|
|
|
|
if eval \${$3+:} false; then :
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
else
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
/* end confdefs.h. */
|
|
|
|
#include <$2>
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
|
|
eval "$3=yes"
|
|
|
|
else
|
|
|
|
eval "$3=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
fi
|
|
|
|
eval ac_res=\$$3
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
|
|
$as_echo "$ac_res" >&6; }
|
|
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
|
|
|
|
} # ac_fn_c_check_header_preproc
|
2013-10-30 03:20:52 +00:00
|
|
|
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
2002-10-18 01:49:07 +00:00
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
|
|
# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
|
|
|
|
set dummy ${ac_tool_prefix}mig; ac_word=$2
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${ac_cv_prog_MIG+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2002-10-18 01:49:07 +00:00
|
|
|
else
|
|
|
|
if test -n "$MIG"; then
|
|
|
|
ac_cv_prog_MIG="$MIG" # Let the user override the test.
|
|
|
|
else
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
|
for as_dir in $PATH
|
|
|
|
do
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$as_dir" && as_dir=.
|
2012-06-21 19:20:33 +00:00
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2014-09-29 14:45:59 +00:00
|
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2002-10-18 01:49:07 +00:00
|
|
|
ac_cv_prog_MIG="${ac_tool_prefix}mig"
|
2012-06-21 19:20:33 +00:00
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2002-10-18 01:49:07 +00:00
|
|
|
break 2
|
|
|
|
fi
|
|
|
|
done
|
2012-06-21 19:20:33 +00:00
|
|
|
done
|
2009-09-15 21:14:42 +00:00
|
|
|
IFS=$as_save_IFS
|
2002-10-18 01:49:07 +00:00
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
MIG=$ac_cv_prog_MIG
|
|
|
|
if test -n "$MIG"; then
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$MIG" >&6; }
|
2002-10-18 01:49:07 +00:00
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "no" >&6; }
|
2002-10-18 01:49:07 +00:00
|
|
|
fi
|
|
|
|
|
2009-09-15 21:14:42 +00:00
|
|
|
|
2002-10-18 01:49:07 +00:00
|
|
|
fi
|
|
|
|
if test -z "$ac_cv_prog_MIG"; then
|
|
|
|
ac_ct_MIG=$MIG
|
|
|
|
# Extract the first word of "mig", so it can be a program name with args.
|
|
|
|
set dummy mig; ac_word=$2
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${ac_cv_prog_ac_ct_MIG+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2002-10-18 01:49:07 +00:00
|
|
|
else
|
|
|
|
if test -n "$ac_ct_MIG"; then
|
|
|
|
ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
|
|
|
|
else
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
|
for as_dir in $PATH
|
|
|
|
do
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$as_dir" && as_dir=.
|
2012-06-21 19:20:33 +00:00
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2014-09-29 14:45:59 +00:00
|
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2002-10-18 01:49:07 +00:00
|
|
|
ac_cv_prog_ac_ct_MIG="mig"
|
2012-06-21 19:20:33 +00:00
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2002-10-18 01:49:07 +00:00
|
|
|
break 2
|
|
|
|
fi
|
|
|
|
done
|
2012-06-21 19:20:33 +00:00
|
|
|
done
|
2009-09-15 21:14:42 +00:00
|
|
|
IFS=$as_save_IFS
|
2002-10-18 01:49:07 +00:00
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
|
|
|
|
if test -n "$ac_ct_MIG"; then
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$ac_ct_MIG" >&6; }
|
2002-10-18 01:49:07 +00:00
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "no" >&6; }
|
2002-10-18 01:49:07 +00:00
|
|
|
fi
|
|
|
|
|
2009-09-15 21:14:42 +00:00
|
|
|
if test "x$ac_ct_MIG" = x; then
|
|
|
|
MIG="MISSING"
|
|
|
|
else
|
|
|
|
case $cross_compiling:$ac_tool_warned in
|
|
|
|
yes:)
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
|
|
ac_tool_warned=yes ;;
|
|
|
|
esac
|
|
|
|
MIG=$ac_ct_MIG
|
|
|
|
fi
|
2002-10-18 01:49:07 +00:00
|
|
|
else
|
|
|
|
MIG="$ac_cv_prog_MIG"
|
|
|
|
fi
|
|
|
|
|
2002-08-15 07:02:19 +00:00
|
|
|
if test "x$MIG" = xMISSING; then
|
2012-06-21 19:20:33 +00:00
|
|
|
as_fn_error $? "cannot find required build tool mig" "$LINENO" 5
|
2002-08-15 07:02:19 +00:00
|
|
|
fi
|
2013-03-20 22:37:06 +00:00
|
|
|
config_vars="$config_vars
|
|
|
|
MIG = $MIG"
|
2002-08-15 07:02:19 +00:00
|
|
|
|
2015-08-26 21:48:33 +00:00
|
|
|
if test -n "$sysheaders"; then
|
|
|
|
OLD_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
|
|
|
fi
|
|
|
|
|
2002-02-17 07:57:32 +00:00
|
|
|
### Sanity checks for Mach header installation
|
2002-10-18 01:49:07 +00:00
|
|
|
|
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.h" "ac_cv_header_mach_mach_types_h"
|
|
|
|
if test "x$ac_cv_header_mach_mach_types_h" = xyes; then :
|
2003-06-27 06:21:51 +00:00
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
else
|
|
|
|
as_fn_error $? "cannot find Mach headers" "$LINENO" 5
|
2002-02-17 07:57:32 +00:00
|
|
|
fi
|
2009-09-15 21:14:42 +00:00
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
|
|
|
|
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 :
|
|
|
|
|
2002-02-17 07:57:32 +00:00
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
as_fn_error $? "cannot find Mach .defs files" "$LINENO" 5
|
2002-02-17 07:57:32 +00:00
|
|
|
fi
|
|
|
|
|
2002-10-18 01:49:07 +00:00
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for task_t in mach/mach_types.h" >&5
|
|
|
|
$as_echo_n "checking for task_t in mach/mach_types.h... " >&6; }
|
|
|
|
if ${libc_cv_mach_task_t+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2002-02-17 07:57:32 +00:00
|
|
|
else
|
2012-10-09 22:41:30 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-06-27 06:21:51 +00:00
|
|
|
/* end confdefs.h. */
|
2002-02-07 03:52:18 +00:00
|
|
|
#include <mach/mach_types.h>
|
2002-10-18 01:49:07 +00:00
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
2002-02-07 03:52:18 +00:00
|
|
|
extern task_t foo;
|
2002-10-18 01:49:07 +00:00
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2012-06-21 19:20:33 +00:00
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
2002-02-07 03:52:18 +00:00
|
|
|
libc_cv_mach_task_t=task_t
|
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
libc_cv_mach_task_t=task_port_t
|
2002-02-07 03:52:18 +00:00
|
|
|
fi
|
2009-09-15 21:14:42 +00:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2002-02-07 03:52:18 +00:00
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_t" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_mach_task_t" >&6; }
|
2002-02-07 03:52:18 +00:00
|
|
|
if test $libc_cv_mach_task_t != task_t; then
|
|
|
|
DEFINES="$DEFINES -Dtask_t=task_port_t"
|
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_t in mach/mach_types.h" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for thread_t in mach/mach_types.h... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${libc_cv_mach_thread_t+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2002-02-07 03:52:18 +00:00
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-06-27 06:21:51 +00:00
|
|
|
/* end confdefs.h. */
|
2002-02-07 03:52:18 +00:00
|
|
|
#include <mach/mach_types.h>
|
2002-10-18 01:49:07 +00:00
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
2002-02-07 03:52:18 +00:00
|
|
|
extern thread_t foo;
|
2002-10-18 01:49:07 +00:00
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2012-06-21 19:20:33 +00:00
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
2002-02-07 03:52:18 +00:00
|
|
|
libc_cv_mach_thread_t=thread_t
|
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
libc_cv_mach_thread_t=thread_port_t
|
2002-02-07 03:52:18 +00:00
|
|
|
fi
|
2009-09-15 21:14:42 +00:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2002-02-07 03:52:18 +00:00
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_thread_t" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_mach_thread_t" >&6; }
|
2002-02-07 03:52:18 +00:00
|
|
|
if test $libc_cv_mach_thread_t != thread_t; then
|
|
|
|
DEFINES="$DEFINES -Dthread_t=thread_port_t"
|
|
|
|
fi
|
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for creation_time in task_basic_info" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for creation_time in task_basic_info... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${libc_cv_mach_task_creation_time+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2002-02-07 03:52:18 +00:00
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-06-27 06:21:51 +00:00
|
|
|
/* end confdefs.h. */
|
2002-02-07 03:52:18 +00:00
|
|
|
#include <mach/task_info.h>
|
2002-10-18 01:49:07 +00:00
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
2002-02-07 03:52:18 +00:00
|
|
|
|
|
|
|
extern struct task_basic_info *i;
|
|
|
|
long s = i->creation_time.seconds;
|
|
|
|
|
2002-10-18 01:49:07 +00:00
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2012-06-21 19:20:33 +00:00
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
2002-02-07 03:52:18 +00:00
|
|
|
libc_cv_mach_task_creation_time=yes
|
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
libc_cv_mach_task_creation_time=no
|
2002-02-07 03:52:18 +00:00
|
|
|
fi
|
2009-09-15 21:14:42 +00:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2002-02-07 03:52:18 +00:00
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_creation_time" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_mach_task_creation_time" >&6; }
|
2002-02-07 03:52:18 +00:00
|
|
|
if test $libc_cv_mach_task_creation_time = no; then
|
2012-06-21 19:20:33 +00:00
|
|
|
as_fn_error $? "you need Mach headers supporting task_info.creation_time" "$LINENO" 5
|
2002-02-07 03:52:18 +00:00
|
|
|
fi
|
2002-02-17 07:57:32 +00:00
|
|
|
|
|
|
|
mach_interface_list=
|
|
|
|
for ifc in mach mach4 \
|
2002-02-19 00:22:30 +00:00
|
|
|
clock clock_priv host_priv host_security ledger lock_set \
|
2015-10-08 00:14:43 +00:00
|
|
|
processor processor_set task task_notify thread_act vm_map \
|
2002-02-17 07:57:32 +00:00
|
|
|
memory_object memory_object_default default_pager \
|
2002-04-02 04:43:06 +00:00
|
|
|
i386/mach_i386 \
|
2002-02-17 07:57:32 +00:00
|
|
|
; do
|
2009-09-15 21:14:42 +00:00
|
|
|
as_ac_Header=`$as_echo "ac_cv_header_mach/${ifc}.defs" | $as_tr_sh`
|
2012-06-21 19:20:33 +00:00
|
|
|
ac_fn_c_check_header_preproc "$LINENO" "mach/${ifc}.defs" "$as_ac_Header"
|
|
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
2002-02-17 07:57:32 +00:00
|
|
|
mach_interface_list="$mach_interface_list $ifc"
|
|
|
|
fi
|
|
|
|
|
2002-10-18 01:49:07 +00:00
|
|
|
|
2002-02-17 07:57:32 +00:00
|
|
|
done
|
|
|
|
if test "x$mach_interface_list" = x; then
|
2012-06-21 19:20:33 +00:00
|
|
|
as_fn_error $? "what manner of Mach is this?" "$LINENO" 5
|
2002-02-17 07:57:32 +00:00
|
|
|
fi
|
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${ac_cv_path_GREP+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2003-02-26 00:01:15 +00:00
|
|
|
else
|
2009-09-15 21:14:42 +00:00
|
|
|
if test -z "$GREP"; then
|
|
|
|
ac_path_GREP_found=false
|
|
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
|
do
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$as_dir" && as_dir=.
|
2012-06-21 19:20:33 +00:00
|
|
|
for ac_prog in grep ggrep; do
|
2009-09-15 21:14:42 +00:00
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
2014-09-29 14:45:59 +00:00
|
|
|
as_fn_executable_p "$ac_path_GREP" || continue
|
2009-09-15 21:14:42 +00:00
|
|
|
# Check for GNU ac_path_GREP and select it if it is found.
|
|
|
|
# Check for GNU $ac_path_GREP
|
|
|
|
case `"$ac_path_GREP" --version 2>&1` in
|
|
|
|
*GNU*)
|
|
|
|
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
|
|
*)
|
|
|
|
ac_count=0
|
|
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
|
mv "conftest.tmp" "conftest.in"
|
|
|
|
cp "conftest.in" "conftest.nl"
|
|
|
|
$as_echo 'GREP' >> "conftest.nl"
|
|
|
|
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
2012-06-21 19:20:33 +00:00
|
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
2009-09-15 21:14:42 +00:00
|
|
|
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
|
|
# Best one so far, save it but keep looking for a better one
|
|
|
|
ac_cv_path_GREP="$ac_path_GREP"
|
|
|
|
ac_path_GREP_max=$ac_count
|
2003-02-26 00:01:15 +00:00
|
|
|
fi
|
2009-09-15 21:14:42 +00:00
|
|
|
# 10*(2^10) chars as input seems more than enough
|
|
|
|
test $ac_count -gt 10 && break
|
|
|
|
done
|
|
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
$ac_path_GREP_found && break 3
|
|
|
|
done
|
|
|
|
done
|
2012-06-21 19:20:33 +00:00
|
|
|
done
|
2009-09-15 21:14:42 +00:00
|
|
|
IFS=$as_save_IFS
|
|
|
|
if test -z "$ac_cv_path_GREP"; then
|
2012-06-21 19:20:33 +00:00
|
|
|
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
2009-09-15 21:14:42 +00:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
ac_cv_path_GREP=$GREP
|
|
|
|
fi
|
|
|
|
|
2003-02-26 00:01:15 +00:00
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$ac_cv_path_GREP" >&6; }
|
|
|
|
GREP="$ac_cv_path_GREP"
|
2003-02-26 00:01:15 +00:00
|
|
|
|
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for egrep... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${ac_cv_path_EGREP+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
else
|
|
|
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
|
|
then ac_cv_path_EGREP="$GREP -E"
|
|
|
|
else
|
|
|
|
if test -z "$EGREP"; then
|
|
|
|
ac_path_EGREP_found=false
|
|
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
|
do
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$as_dir" && as_dir=.
|
2012-06-21 19:20:33 +00:00
|
|
|
for ac_prog in egrep; do
|
2009-09-15 21:14:42 +00:00
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
|
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
2014-09-29 14:45:59 +00:00
|
|
|
as_fn_executable_p "$ac_path_EGREP" || continue
|
2009-09-15 21:14:42 +00:00
|
|
|
# Check for GNU ac_path_EGREP and select it if it is found.
|
|
|
|
# Check for GNU $ac_path_EGREP
|
|
|
|
case `"$ac_path_EGREP" --version 2>&1` in
|
|
|
|
*GNU*)
|
|
|
|
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
|
|
*)
|
|
|
|
ac_count=0
|
|
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
|
mv "conftest.tmp" "conftest.in"
|
|
|
|
cp "conftest.in" "conftest.nl"
|
|
|
|
$as_echo 'EGREP' >> "conftest.nl"
|
|
|
|
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
2012-06-21 19:20:33 +00:00
|
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
2009-09-15 21:14:42 +00:00
|
|
|
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
|
|
# Best one so far, save it but keep looking for a better one
|
|
|
|
ac_cv_path_EGREP="$ac_path_EGREP"
|
|
|
|
ac_path_EGREP_max=$ac_count
|
|
|
|
fi
|
|
|
|
# 10*(2^10) chars as input seems more than enough
|
|
|
|
test $ac_count -gt 10 && break
|
|
|
|
done
|
|
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
$ac_path_EGREP_found && break 3
|
|
|
|
done
|
|
|
|
done
|
2012-06-21 19:20:33 +00:00
|
|
|
done
|
2009-09-15 21:14:42 +00:00
|
|
|
IFS=$as_save_IFS
|
|
|
|
if test -z "$ac_cv_path_EGREP"; then
|
2012-06-21 19:20:33 +00:00
|
|
|
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
2009-09-15 21:14:42 +00:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
ac_cv_path_EGREP=$EGREP
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$ac_cv_path_EGREP" >&6; }
|
|
|
|
EGREP="$ac_cv_path_EGREP"
|
|
|
|
|
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host_page_size in mach_host.defs" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for host_page_size in mach_host.defs... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${libc_cv_mach_host_page_size+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2002-02-17 07:57:32 +00:00
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-06-27 06:21:51 +00:00
|
|
|
/* end confdefs.h. */
|
2002-02-17 07:57:32 +00:00
|
|
|
#include <mach/mach_host.defs>
|
2002-10-18 01:49:07 +00:00
|
|
|
|
|
|
|
_ACEOF
|
2002-02-17 07:57:32 +00:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2012-06-21 19:20:33 +00:00
|
|
|
$EGREP "host_page_size" >/dev/null 2>&1; then :
|
2002-02-17 07:57:32 +00:00
|
|
|
libc_cv_mach_host_page_size=yes
|
|
|
|
else
|
|
|
|
libc_cv_mach_host_page_size=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_host_page_size" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_mach_host_page_size" >&6; }
|
2002-02-17 07:57:32 +00:00
|
|
|
if test $libc_cv_mach_host_page_size = yes; then
|
2012-06-21 19:20:33 +00:00
|
|
|
$as_echo "#define HAVE_HOST_PAGE_SIZE 1" >>confdefs.h
|
2003-06-27 06:21:51 +00:00
|
|
|
|
2002-02-18 20:57:51 +00:00
|
|
|
fi
|
2009-09-15 21:14:42 +00:00
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
ac_fn_c_check_header_preproc "$LINENO" "mach/machine/ndr_def.h" "ac_cv_header_mach_machine_ndr_def_h"
|
|
|
|
if test "x$ac_cv_header_mach_machine_ndr_def_h" = xyes; then :
|
2002-02-18 20:57:51 +00:00
|
|
|
DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'"
|
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
ac_fn_c_check_header_preproc "$LINENO" "machine/ndr_def.h" "ac_cv_header_machine_ndr_def_h"
|
|
|
|
if test "x$ac_cv_header_machine_ndr_def_h" = xyes; then :
|
2002-02-18 20:57:51 +00:00
|
|
|
DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'"
|
|
|
|
fi
|
|
|
|
|
2002-10-18 01:49:07 +00:00
|
|
|
|
2002-02-18 20:57:51 +00:00
|
|
|
fi
|
|
|
|
|
2002-04-02 04:43:06 +00:00
|
|
|
|
2002-10-18 01:49:07 +00:00
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_io_perm_modify in mach_i386.defs" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for i386_io_perm_modify in mach_i386.defs... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${libc_cv_mach_i386_ioports+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2002-04-02 04:43:06 +00:00
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-06-27 06:21:51 +00:00
|
|
|
/* end confdefs.h. */
|
2002-04-02 04:43:06 +00:00
|
|
|
#include <mach/i386/mach_i386.defs>
|
2002-10-18 01:49:07 +00:00
|
|
|
|
|
|
|
_ACEOF
|
2002-04-02 04:43:06 +00:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2012-06-21 19:20:33 +00:00
|
|
|
$EGREP "i386_io_perm_modify" >/dev/null 2>&1; then :
|
2002-04-02 04:43:06 +00:00
|
|
|
libc_cv_mach_i386_ioports=yes
|
|
|
|
else
|
|
|
|
libc_cv_mach_i386_ioports=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_ioports" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_mach_i386_ioports" >&6; }
|
2002-04-02 04:43:06 +00:00
|
|
|
if test $libc_cv_mach_i386_ioports = yes; then
|
2012-06-21 19:20:33 +00:00
|
|
|
$as_echo "#define HAVE_I386_IO_PERM_MODIFY 1" >>confdefs.h
|
2002-04-02 04:43:06 +00:00
|
|
|
|
|
|
|
fi
|
2002-10-11 07:22:18 +00:00
|
|
|
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_gdt in mach_i386.defs" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for i386_set_gdt in mach_i386.defs... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${libc_cv_mach_i386_gdt+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2002-10-11 07:22:18 +00:00
|
|
|
else
|
2012-06-21 19:20:33 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-06-27 06:21:51 +00:00
|
|
|
/* end confdefs.h. */
|
2002-10-11 07:22:18 +00:00
|
|
|
#include <mach/i386/mach_i386.defs>
|
2002-10-18 01:49:07 +00:00
|
|
|
|
|
|
|
_ACEOF
|
2002-10-11 07:22:18 +00:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2012-06-21 19:20:33 +00:00
|
|
|
$EGREP "i386_set_gdt" >/dev/null 2>&1; then :
|
2002-10-11 07:22:18 +00:00
|
|
|
libc_cv_mach_i386_gdt=yes
|
|
|
|
else
|
|
|
|
libc_cv_mach_i386_gdt=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_gdt" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_mach_i386_gdt" >&6; }
|
2002-10-11 07:22:18 +00:00
|
|
|
if test $libc_cv_mach_i386_gdt = yes; then
|
2012-06-21 19:20:33 +00:00
|
|
|
$as_echo "#define HAVE_I386_SET_GDT 1" >>confdefs.h
|
2002-10-11 07:22:18 +00:00
|
|
|
|
|
|
|
fi
|
2004-08-14 20:17:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# See if mig groks `retcode'.
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MIG supports the retcode keyword" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking whether $MIG supports the retcode keyword... " >&6; }
|
2012-06-21 19:20:33 +00:00
|
|
|
if ${hurd_cv_mig_retcode+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2004-08-14 20:17:43 +00:00
|
|
|
else
|
|
|
|
cat > conftest.defs <<\EOF
|
|
|
|
#include <mach/std_types.defs>
|
|
|
|
#include <mach/mach_types.defs>
|
|
|
|
subsystem foobar 1000;
|
|
|
|
type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
|
|
|
|
ctype: mach_port_t;
|
|
|
|
simpleroutine foobar_reply (
|
|
|
|
reply_port: reply_port_t;
|
|
|
|
err: kern_return_t, RetCode);
|
|
|
|
EOF
|
|
|
|
if { ac_try='CC="${CC}" ${MIG-false} -n conftest.defs 1>&5'
|
2012-06-21 19:20:33 +00:00
|
|
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
2004-08-14 20:17:43 +00:00
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
ac_status=$?
|
2012-06-21 19:20:33 +00:00
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
test $ac_status = 0; }; }; then
|
2004-08-14 20:17:43 +00:00
|
|
|
hurd_cv_mig_retcode=yes
|
|
|
|
else
|
|
|
|
hurd_cv_mig_retcode=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2012-06-21 19:20:33 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hurd_cv_mig_retcode" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$hurd_cv_mig_retcode" >&6; }
|
2004-08-14 20:17:43 +00:00
|
|
|
if test $hurd_cv_mig_retcode = yes; then
|
2012-06-21 19:20:33 +00:00
|
|
|
$as_echo "#define HAVE_MIG_RETCODE 1" >>confdefs.h
|
2004-08-14 20:17:43 +00:00
|
|
|
|
|
|
|
fi
|
2015-08-26 21:48:33 +00:00
|
|
|
|
|
|
|
if test -n "$sysheaders"; then
|
|
|
|
CPPFLAGS=$OLD_CPPFLAGS
|
|
|
|
fi
|