2.9
[glibc/nacl-glibc.git] / sysdeps / mach / configure
blobbf4f98d4d526f3c38622c8a95982f31531fb5a09
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
3 if test -n "$ac_tool_prefix"; then
4   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
5 set dummy ${ac_tool_prefix}mig; ac_word=$2
6 echo "$as_me:$LINENO: checking for $ac_word" >&5
7 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8 if test "${ac_cv_prog_MIG+set}" = set; then
9   echo $ECHO_N "(cached) $ECHO_C" >&6
10 else
11   if test -n "$MIG"; then
12   ac_cv_prog_MIG="$MIG" # Let the user override the test.
13 else
14 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15 for as_dir in $PATH
17   IFS=$as_save_IFS
18   test -z "$as_dir" && as_dir=.
19   for ac_exec_ext in '' $ac_executable_extensions; do
20   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21     ac_cv_prog_MIG="${ac_tool_prefix}mig"
22     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23     break 2
24   fi
25 done
26 done
30 MIG=$ac_cv_prog_MIG
31 if test -n "$MIG"; then
32   echo "$as_me:$LINENO: result: $MIG" >&5
33 echo "${ECHO_T}$MIG" >&6
34 else
35   echo "$as_me:$LINENO: result: no" >&5
36 echo "${ECHO_T}no" >&6
40 if test -z "$ac_cv_prog_MIG"; then
41   ac_ct_MIG=$MIG
42   # Extract the first word of "mig", so it can be a program name with args.
43 set dummy mig; ac_word=$2
44 echo "$as_me:$LINENO: checking for $ac_word" >&5
45 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
47   echo $ECHO_N "(cached) $ECHO_C" >&6
48 else
49   if test -n "$ac_ct_MIG"; then
50   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
51 else
52 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53 for as_dir in $PATH
55   IFS=$as_save_IFS
56   test -z "$as_dir" && as_dir=.
57   for ac_exec_ext in '' $ac_executable_extensions; do
58   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59     ac_cv_prog_ac_ct_MIG="mig"
60     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
61     break 2
62   fi
63 done
64 done
66   test -z "$ac_cv_prog_ac_ct_MIG" && ac_cv_prog_ac_ct_MIG="MISSING"
69 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
70 if test -n "$ac_ct_MIG"; then
71   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
72 echo "${ECHO_T}$ac_ct_MIG" >&6
73 else
74   echo "$as_me:$LINENO: result: no" >&5
75 echo "${ECHO_T}no" >&6
78   MIG=$ac_ct_MIG
79 else
80   MIG="$ac_cv_prog_MIG"
83 if test "x$MIG" = xMISSING; then
84   { { echo "$as_me:$LINENO: error: cannot find required build tool mig" >&5
85 echo "$as_me: error: cannot find required build tool mig" >&2;}
86    { (exit 1); exit 1; }; }
89 ### Sanity checks for Mach header installation
92 echo "$as_me:$LINENO: checking for mach/mach_types.h" >&5
93 echo $ECHO_N "checking for mach/mach_types.h... $ECHO_C" >&6
94 if test "${ac_cv_header_mach_mach_types_h+set}" = set; then
95   echo $ECHO_N "(cached) $ECHO_C" >&6
96 else
97   cat >conftest.$ac_ext <<_ACEOF
98 /* confdefs.h.  */
99 _ACEOF
100 cat confdefs.h >>conftest.$ac_ext
101 cat >>conftest.$ac_ext <<_ACEOF
102 /* end confdefs.h.  */
103 #include <mach/mach_types.h>
104 _ACEOF
105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
107   ac_status=$?
108   grep -v '^ *+' conftest.er1 >conftest.err
109   rm -f conftest.er1
110   cat conftest.err >&5
111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
112   (exit $ac_status); } >/dev/null; then
113   if test -s conftest.err; then
114     ac_cpp_err=$ac_c_preproc_warn_flag
115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
116   else
117     ac_cpp_err=
118   fi
119 else
120   ac_cpp_err=yes
122 if test -z "$ac_cpp_err"; then
123   ac_cv_header_mach_mach_types_h=yes
124 else
125   echo "$as_me: failed program was:" >&5
126 sed 's/^/| /' conftest.$ac_ext >&5
128   ac_cv_header_mach_mach_types_h=no
130 rm -f conftest.err conftest.$ac_ext
132 echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_types_h" >&5
133 echo "${ECHO_T}$ac_cv_header_mach_mach_types_h" >&6
134 if test $ac_cv_header_mach_mach_types_h = yes; then
135   :
136 else
137   { { echo "$as_me:$LINENO: error: cannot find Mach headers" >&5
138 echo "$as_me: error: cannot find Mach headers" >&2;}
139    { (exit 1); exit 1; }; }
143 echo "$as_me:$LINENO: checking for mach/mach_types.defs" >&5
144 echo $ECHO_N "checking for mach/mach_types.defs... $ECHO_C" >&6
145 if test "${ac_cv_header_mach_mach_types_defs+set}" = set; then
146   echo $ECHO_N "(cached) $ECHO_C" >&6
147 else
148   cat >conftest.$ac_ext <<_ACEOF
149 /* confdefs.h.  */
150 _ACEOF
151 cat confdefs.h >>conftest.$ac_ext
152 cat >>conftest.$ac_ext <<_ACEOF
153 /* end confdefs.h.  */
154 #include <mach/mach_types.defs>
155 _ACEOF
156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
158   ac_status=$?
159   grep -v '^ *+' conftest.er1 >conftest.err
160   rm -f conftest.er1
161   cat conftest.err >&5
162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
163   (exit $ac_status); } >/dev/null; then
164   if test -s conftest.err; then
165     ac_cpp_err=$ac_c_preproc_warn_flag
166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
167   else
168     ac_cpp_err=
169   fi
170 else
171   ac_cpp_err=yes
173 if test -z "$ac_cpp_err"; then
174   ac_cv_header_mach_mach_types_defs=yes
175 else
176   echo "$as_me: failed program was:" >&5
177 sed 's/^/| /' conftest.$ac_ext >&5
179   ac_cv_header_mach_mach_types_defs=no
181 rm -f conftest.err conftest.$ac_ext
183 echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_types_defs" >&5
184 echo "${ECHO_T}$ac_cv_header_mach_mach_types_defs" >&6
185 if test $ac_cv_header_mach_mach_types_defs = yes; then
186   :
187 else
188   { { echo "$as_me:$LINENO: error: cannot find Mach .defs files" >&5
189 echo "$as_me: error: cannot find Mach .defs files" >&2;}
190    { (exit 1); exit 1; }; }
197 echo "$as_me:$LINENO: checking for task_t in mach/mach_types.h" >&5
198 echo $ECHO_N "checking for task_t in mach/mach_types.h... $ECHO_C" >&6
199 if test "${libc_cv_mach_task_t+set}" = set; then
200   echo $ECHO_N "(cached) $ECHO_C" >&6
201 else
202   cat >conftest.$ac_ext <<_ACEOF
203 /* confdefs.h.  */
204 _ACEOF
205 cat confdefs.h >>conftest.$ac_ext
206 cat >>conftest.$ac_ext <<_ACEOF
207 /* end confdefs.h.  */
208 #include <mach/mach_types.h>
210 main ()
212 extern task_t foo;
213   ;
214   return 0;
216 _ACEOF
217 rm -f conftest.$ac_objext
218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
219   (eval $ac_compile) 2>conftest.er1
220   ac_status=$?
221   grep -v '^ *+' conftest.er1 >conftest.err
222   rm -f conftest.er1
223   cat conftest.err >&5
224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
225   (exit $ac_status); } &&
226          { ac_try='test -z "$ac_c_werror_flag"
227                          || test ! -s conftest.err'
228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
229   (eval $ac_try) 2>&5
230   ac_status=$?
231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
232   (exit $ac_status); }; } &&
233          { ac_try='test -s conftest.$ac_objext'
234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
235   (eval $ac_try) 2>&5
236   ac_status=$?
237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
238   (exit $ac_status); }; }; then
239   libc_cv_mach_task_t=task_t
240 else
241   echo "$as_me: failed program was:" >&5
242 sed 's/^/| /' conftest.$ac_ext >&5
244 libc_cv_mach_task_t=task_port_t
246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
248 echo "$as_me:$LINENO: result: $libc_cv_mach_task_t" >&5
249 echo "${ECHO_T}$libc_cv_mach_task_t" >&6
250 if test $libc_cv_mach_task_t != task_t; then
251   DEFINES="$DEFINES -Dtask_t=task_port_t"
253 echo "$as_me:$LINENO: checking for thread_t in mach/mach_types.h" >&5
254 echo $ECHO_N "checking for thread_t in mach/mach_types.h... $ECHO_C" >&6
255 if test "${libc_cv_mach_thread_t+set}" = set; then
256   echo $ECHO_N "(cached) $ECHO_C" >&6
257 else
258   cat >conftest.$ac_ext <<_ACEOF
259 /* confdefs.h.  */
260 _ACEOF
261 cat confdefs.h >>conftest.$ac_ext
262 cat >>conftest.$ac_ext <<_ACEOF
263 /* end confdefs.h.  */
264 #include <mach/mach_types.h>
266 main ()
268 extern thread_t foo;
269   ;
270   return 0;
272 _ACEOF
273 rm -f conftest.$ac_objext
274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
275   (eval $ac_compile) 2>conftest.er1
276   ac_status=$?
277   grep -v '^ *+' conftest.er1 >conftest.err
278   rm -f conftest.er1
279   cat conftest.err >&5
280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
281   (exit $ac_status); } &&
282          { ac_try='test -z "$ac_c_werror_flag"
283                          || test ! -s conftest.err'
284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
285   (eval $ac_try) 2>&5
286   ac_status=$?
287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
288   (exit $ac_status); }; } &&
289          { ac_try='test -s conftest.$ac_objext'
290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
291   (eval $ac_try) 2>&5
292   ac_status=$?
293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
294   (exit $ac_status); }; }; then
295   libc_cv_mach_thread_t=thread_t
296 else
297   echo "$as_me: failed program was:" >&5
298 sed 's/^/| /' conftest.$ac_ext >&5
300 libc_cv_mach_thread_t=thread_port_t
302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
304 echo "$as_me:$LINENO: result: $libc_cv_mach_thread_t" >&5
305 echo "${ECHO_T}$libc_cv_mach_thread_t" >&6
306 if test $libc_cv_mach_thread_t != thread_t; then
307   DEFINES="$DEFINES -Dthread_t=thread_port_t"
310 echo "$as_me:$LINENO: checking for creation_time in task_basic_info" >&5
311 echo $ECHO_N "checking for creation_time in task_basic_info... $ECHO_C" >&6
312 if test "${libc_cv_mach_task_creation_time+set}" = set; then
313   echo $ECHO_N "(cached) $ECHO_C" >&6
314 else
315   cat >conftest.$ac_ext <<_ACEOF
316 /* confdefs.h.  */
317 _ACEOF
318 cat confdefs.h >>conftest.$ac_ext
319 cat >>conftest.$ac_ext <<_ACEOF
320 /* end confdefs.h.  */
321 #include <mach/task_info.h>
323 main ()
326 extern struct task_basic_info *i;
327 long s = i->creation_time.seconds;
329   ;
330   return 0;
332 _ACEOF
333 rm -f conftest.$ac_objext
334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
335   (eval $ac_compile) 2>conftest.er1
336   ac_status=$?
337   grep -v '^ *+' conftest.er1 >conftest.err
338   rm -f conftest.er1
339   cat conftest.err >&5
340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
341   (exit $ac_status); } &&
342          { ac_try='test -z "$ac_c_werror_flag"
343                          || test ! -s conftest.err'
344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
345   (eval $ac_try) 2>&5
346   ac_status=$?
347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
348   (exit $ac_status); }; } &&
349          { ac_try='test -s conftest.$ac_objext'
350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
351   (eval $ac_try) 2>&5
352   ac_status=$?
353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
354   (exit $ac_status); }; }; then
355   libc_cv_mach_task_creation_time=yes
356 else
357   echo "$as_me: failed program was:" >&5
358 sed 's/^/| /' conftest.$ac_ext >&5
360 libc_cv_mach_task_creation_time=no
362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
364 echo "$as_me:$LINENO: result: $libc_cv_mach_task_creation_time" >&5
365 echo "${ECHO_T}$libc_cv_mach_task_creation_time" >&6
366 if test $libc_cv_mach_task_creation_time = no; then
367   { { echo "$as_me:$LINENO: error: you need Mach headers supporting task_info.creation_time" >&5
368 echo "$as_me: error: you need Mach headers supporting task_info.creation_time" >&2;}
369    { (exit 1); exit 1; }; }
372 mach_interface_list=
373 for ifc in mach mach4 \
374            clock clock_priv host_priv host_security ledger lock_set \
375            processor processor_set task thread_act vm_map \
376            memory_object memory_object_default default_pager \
377            i386/mach_i386 \
378            ; do
379   as_ac_Header=`echo "ac_cv_header_mach/${ifc}.defs" | $as_tr_sh`
380 echo "$as_me:$LINENO: checking for mach/${ifc}.defs" >&5
381 echo $ECHO_N "checking for mach/${ifc}.defs... $ECHO_C" >&6
382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
383   echo $ECHO_N "(cached) $ECHO_C" >&6
384 else
385   cat >conftest.$ac_ext <<_ACEOF
386 /* confdefs.h.  */
387 _ACEOF
388 cat confdefs.h >>conftest.$ac_ext
389 cat >>conftest.$ac_ext <<_ACEOF
390 /* end confdefs.h.  */
391 #include <mach/${ifc}.defs>
392 _ACEOF
393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
395   ac_status=$?
396   grep -v '^ *+' conftest.er1 >conftest.err
397   rm -f conftest.er1
398   cat conftest.err >&5
399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
400   (exit $ac_status); } >/dev/null; then
401   if test -s conftest.err; then
402     ac_cpp_err=$ac_c_preproc_warn_flag
403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
404   else
405     ac_cpp_err=
406   fi
407 else
408   ac_cpp_err=yes
410 if test -z "$ac_cpp_err"; then
411   eval "$as_ac_Header=yes"
412 else
413   echo "$as_me: failed program was:" >&5
414 sed 's/^/| /' conftest.$ac_ext >&5
416   eval "$as_ac_Header=no"
418 rm -f conftest.err conftest.$ac_ext
420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
423     mach_interface_list="$mach_interface_list $ifc"
427 done
428 if test "x$mach_interface_list" = x; then
429   { { echo "$as_me:$LINENO: error: what manner of Mach is this?" >&5
430 echo "$as_me: error: what manner of Mach is this?" >&2;}
431    { (exit 1); exit 1; }; }
434 echo "$as_me:$LINENO: checking for egrep" >&5
435 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
436 if test "${ac_cv_prog_egrep+set}" = set; then
437   echo $ECHO_N "(cached) $ECHO_C" >&6
438 else
439   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
440     then ac_cv_prog_egrep='grep -E'
441     else ac_cv_prog_egrep='egrep'
442     fi
444 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
445 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
446  EGREP=$ac_cv_prog_egrep
449 echo "$as_me:$LINENO: checking for host_page_size in mach_host.defs" >&5
450 echo $ECHO_N "checking for host_page_size in mach_host.defs... $ECHO_C" >&6
451 if test "${libc_cv_mach_host_page_size+set}" = set; then
452   echo $ECHO_N "(cached) $ECHO_C" >&6
453 else
454   cat >conftest.$ac_ext <<_ACEOF
455 /* confdefs.h.  */
456 _ACEOF
457 cat confdefs.h >>conftest.$ac_ext
458 cat >>conftest.$ac_ext <<_ACEOF
459 /* end confdefs.h.  */
460 #include <mach/mach_host.defs>
462 _ACEOF
463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
464   $EGREP "host_page_size" >/dev/null 2>&1; then
465   libc_cv_mach_host_page_size=yes
466 else
467   libc_cv_mach_host_page_size=no
469 rm -f conftest*
472 echo "$as_me:$LINENO: result: $libc_cv_mach_host_page_size" >&5
473 echo "${ECHO_T}$libc_cv_mach_host_page_size" >&6
474 if test $libc_cv_mach_host_page_size = yes; then
475   cat >>confdefs.h <<\_ACEOF
476 #define HAVE_HOST_PAGE_SIZE 1
477 _ACEOF
481 echo "$as_me:$LINENO: checking for mach/machine/ndr_def.h" >&5
482 echo $ECHO_N "checking for mach/machine/ndr_def.h... $ECHO_C" >&6
483 if test "${ac_cv_header_mach_machine_ndr_def_h+set}" = set; then
484   echo $ECHO_N "(cached) $ECHO_C" >&6
485 else
486   cat >conftest.$ac_ext <<_ACEOF
487 /* confdefs.h.  */
488 _ACEOF
489 cat confdefs.h >>conftest.$ac_ext
490 cat >>conftest.$ac_ext <<_ACEOF
491 /* end confdefs.h.  */
492 #include <mach/machine/ndr_def.h>
493 _ACEOF
494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
496   ac_status=$?
497   grep -v '^ *+' conftest.er1 >conftest.err
498   rm -f conftest.er1
499   cat conftest.err >&5
500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
501   (exit $ac_status); } >/dev/null; then
502   if test -s conftest.err; then
503     ac_cpp_err=$ac_c_preproc_warn_flag
504     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
505   else
506     ac_cpp_err=
507   fi
508 else
509   ac_cpp_err=yes
511 if test -z "$ac_cpp_err"; then
512   ac_cv_header_mach_machine_ndr_def_h=yes
513 else
514   echo "$as_me: failed program was:" >&5
515 sed 's/^/| /' conftest.$ac_ext >&5
517   ac_cv_header_mach_machine_ndr_def_h=no
519 rm -f conftest.err conftest.$ac_ext
521 echo "$as_me:$LINENO: result: $ac_cv_header_mach_machine_ndr_def_h" >&5
522 echo "${ECHO_T}$ac_cv_header_mach_machine_ndr_def_h" >&6
523 if test $ac_cv_header_mach_machine_ndr_def_h = yes; then
524     DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'"
525 else
526   echo "$as_me:$LINENO: checking for machine/ndr_def.h" >&5
527 echo $ECHO_N "checking for machine/ndr_def.h... $ECHO_C" >&6
528 if test "${ac_cv_header_machine_ndr_def_h+set}" = set; then
529   echo $ECHO_N "(cached) $ECHO_C" >&6
530 else
531   cat >conftest.$ac_ext <<_ACEOF
532 /* confdefs.h.  */
533 _ACEOF
534 cat confdefs.h >>conftest.$ac_ext
535 cat >>conftest.$ac_ext <<_ACEOF
536 /* end confdefs.h.  */
537 #include <machine/ndr_def.h>
538 _ACEOF
539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
541   ac_status=$?
542   grep -v '^ *+' conftest.er1 >conftest.err
543   rm -f conftest.er1
544   cat conftest.err >&5
545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
546   (exit $ac_status); } >/dev/null; then
547   if test -s conftest.err; then
548     ac_cpp_err=$ac_c_preproc_warn_flag
549     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
550   else
551     ac_cpp_err=
552   fi
553 else
554   ac_cpp_err=yes
556 if test -z "$ac_cpp_err"; then
557   ac_cv_header_machine_ndr_def_h=yes
558 else
559   echo "$as_me: failed program was:" >&5
560 sed 's/^/| /' conftest.$ac_ext >&5
562   ac_cv_header_machine_ndr_def_h=no
564 rm -f conftest.err conftest.$ac_ext
566 echo "$as_me:$LINENO: result: $ac_cv_header_machine_ndr_def_h" >&5
567 echo "${ECHO_T}$ac_cv_header_machine_ndr_def_h" >&6
568 if test $ac_cv_header_machine_ndr_def_h = yes; then
569     DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'"
577 echo "$as_me:$LINENO: checking for i386_io_perm_modify in mach_i386.defs" >&5
578 echo $ECHO_N "checking for i386_io_perm_modify in mach_i386.defs... $ECHO_C" >&6
579 if test "${libc_cv_mach_i386_ioports+set}" = set; then
580   echo $ECHO_N "(cached) $ECHO_C" >&6
581 else
582   cat >conftest.$ac_ext <<_ACEOF
583 /* confdefs.h.  */
584 _ACEOF
585 cat confdefs.h >>conftest.$ac_ext
586 cat >>conftest.$ac_ext <<_ACEOF
587 /* end confdefs.h.  */
588 #include <mach/i386/mach_i386.defs>
590 _ACEOF
591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
592   $EGREP "i386_io_perm_modify" >/dev/null 2>&1; then
593   libc_cv_mach_i386_ioports=yes
594 else
595   libc_cv_mach_i386_ioports=no
597 rm -f conftest*
600 echo "$as_me:$LINENO: result: $libc_cv_mach_i386_ioports" >&5
601 echo "${ECHO_T}$libc_cv_mach_i386_ioports" >&6
602 if test $libc_cv_mach_i386_ioports = yes; then
603   cat >>confdefs.h <<\_ACEOF
604 #define HAVE_I386_IO_PERM_MODIFY 1
605 _ACEOF
609 echo "$as_me:$LINENO: checking for i386_set_gdt in mach_i386.defs" >&5
610 echo $ECHO_N "checking for i386_set_gdt in mach_i386.defs... $ECHO_C" >&6
611 if test "${libc_cv_mach_i386_gdt+set}" = set; then
612   echo $ECHO_N "(cached) $ECHO_C" >&6
613 else
614   cat >conftest.$ac_ext <<_ACEOF
615 /* confdefs.h.  */
616 _ACEOF
617 cat confdefs.h >>conftest.$ac_ext
618 cat >>conftest.$ac_ext <<_ACEOF
619 /* end confdefs.h.  */
620 #include <mach/i386/mach_i386.defs>
622 _ACEOF
623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
624   $EGREP "i386_set_gdt" >/dev/null 2>&1; then
625   libc_cv_mach_i386_gdt=yes
626 else
627   libc_cv_mach_i386_gdt=no
629 rm -f conftest*
632 echo "$as_me:$LINENO: result: $libc_cv_mach_i386_gdt" >&5
633 echo "${ECHO_T}$libc_cv_mach_i386_gdt" >&6
634 if test $libc_cv_mach_i386_gdt = yes; then
635   cat >>confdefs.h <<\_ACEOF
636 #define HAVE_I386_SET_GDT 1
637 _ACEOF
643 # See if mig groks `retcode'.
644 echo "$as_me:$LINENO: checking whether $MIG supports the retcode keyword" >&5
645 echo $ECHO_N "checking whether $MIG supports the retcode keyword... $ECHO_C" >&6
646 if test "${hurd_cv_mig_retcode+set}" = set; then
647   echo $ECHO_N "(cached) $ECHO_C" >&6
648 else
649   cat > conftest.defs <<\EOF
650 #include <mach/std_types.defs>
651 #include <mach/mach_types.defs>
652 subsystem foobar 1000;
653 type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
654         ctype: mach_port_t;
655 simpleroutine foobar_reply (
656         reply_port: reply_port_t;
657         err: kern_return_t, RetCode);
659 if { ac_try='CC="${CC}" ${MIG-false} -n conftest.defs 1>&5'
660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
661   (eval $ac_try) 2>&5
662   ac_status=$?
663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
664   (exit $ac_status); }; }; then
665   hurd_cv_mig_retcode=yes
666 else
667   hurd_cv_mig_retcode=no
669 rm -f conftest*
671 echo "$as_me:$LINENO: result: $hurd_cv_mig_retcode" >&5
672 echo "${ECHO_T}$hurd_cv_mig_retcode" >&6
673 if test $hurd_cv_mig_retcode = yes; then
674   cat >>confdefs.h <<\_ACEOF
675 #define HAVE_MIG_RETCODE 1
676 _ACEOF