1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
3 printf "%s\n" "#define NO_RTLD_HIDDEN 1" >>confdefs.h
6 if test -n "$sysheaders"; then
8 CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
13 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Hurd header version" >&5
14 printf %s "checking Hurd header version... " >&6; }
15 if test ${libc_cv_hurd_version+y}
17 printf %s "(cached) " >&6
19 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21 #include <hurd/version.h>
26 #define NEED_VERSION 20020609
27 #if HURD_INTERFACE_VERSION < NEED_VERSION
28 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
34 if ac_fn_c_try_cpp "$LINENO"
36 libc_cv_hurd_version=ok
38 e) libc_cv_hurd_version=bad ;;
41 rm -f conftest.err conftest.i conftest.$ac_ext ;;
44 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5
45 printf "%s\n" "$libc_cv_hurd_version" >&6; }
46 if test "x$libc_cv_hurd_version" != xok; then
47 as_fn_error $? "Hurd headers not installed or too old" "$LINENO" 5
52 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
53 printf %s "checking for egrep -e... " >&6; }
54 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
56 printf %s "(cached) " >&6
58 e) if test -z "$EGREP_TRADITIONAL"; then
59 ac_path_EGREP_TRADITIONAL_found=false
60 # Loop through the user's path and test for each of PROGNAME-LIST
61 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
70 for ac_prog in grep ggrep
72 for ac_exec_ext in '' $ac_executable_extensions; do
73 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
74 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
75 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
76 # Check for GNU $ac_path_EGREP_TRADITIONAL
77 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
79 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
83 printf %s 0123456789 >"conftest.in"
86 cat "conftest.in" "conftest.in" >"conftest.tmp"
87 mv "conftest.tmp" "conftest.in"
88 cp "conftest.in" "conftest.nl"
89 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
90 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
91 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
92 as_fn_arith $ac_count + 1 && ac_count=$as_val
93 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
94 # Best one so far, save it but keep looking for a better one
95 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
96 ac_path_EGREP_TRADITIONAL_max=$ac_count
98 # 10*(2^10) chars as input seems more than enough
99 test $ac_count -gt 10 && break
101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
104 $ac_path_EGREP_TRADITIONAL_found && break 3
109 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
113 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
116 if test "$ac_cv_path_EGREP_TRADITIONAL"
118 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
120 e) if test -z "$EGREP_TRADITIONAL"; then
121 ac_path_EGREP_TRADITIONAL_found=false
122 # Loop through the user's path and test for each of PROGNAME-LIST
123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
130 *) as_dir=$as_dir/ ;;
134 for ac_exec_ext in '' $ac_executable_extensions; do
135 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
136 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
137 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
138 # Check for GNU $ac_path_EGREP_TRADITIONAL
139 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
141 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
145 printf %s 0123456789 >"conftest.in"
148 cat "conftest.in" "conftest.in" >"conftest.tmp"
149 mv "conftest.tmp" "conftest.in"
150 cp "conftest.in" "conftest.nl"
151 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
152 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
154 as_fn_arith $ac_count + 1 && ac_count=$as_val
155 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
156 # Best one so far, save it but keep looking for a better one
157 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
158 ac_path_EGREP_TRADITIONAL_max=$ac_count
160 # 10*(2^10) chars as input seems more than enough
161 test $ac_count -gt 10 && break
163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
166 $ac_path_EGREP_TRADITIONAL_found && break 3
171 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
172 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
175 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
183 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
184 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc_getchildren_rusage in process.defs" >&5
187 printf %s "checking for proc_getchildren_rusage in process.defs... " >&6; }
188 if test ${libc_cv_hurd_rpc_proc_getchildren_rusage+y}
190 printf %s "(cached) " >&6
192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
193 /* end confdefs.h. */
194 #include <hurd/process.defs>
197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
198 $EGREP_TRADITIONAL "proc_getchildren_rusage" >/dev/null 2>&1
200 libc_cv_hurd_rpc_proc_getchildren_rusage=yes
202 e) libc_cv_hurd_rpc_proc_getchildren_rusage=no ;;
209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_rpc_proc_getchildren_rusage" >&5
210 printf "%s\n" "$libc_cv_hurd_rpc_proc_getchildren_rusage" >&6; }
211 if test $libc_cv_hurd_rpc_proc_getchildren_rusage = yes; then
212 printf "%s\n" "#define HAVE_HURD_PROC_GETCHILDREN_RUSAGE 1" >>confdefs.h
217 if test -n "$sysheaders"; then
218 CPPFLAGS=$OLD_CPPFLAGS
221 # Hurd has libpthread as a separate library.