syslog: Improve fortify with clang
[glibc.git] / sysdeps / mach / hurd / configure
blobcd5af1cd2034931e7ea57735e5401fffb5d2c753
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
7   OLD_CPPFLAGS=$CPPFLAGS
8   CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
9 fi
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}
16 then :
17   printf %s "(cached) " >&6
18 else $as_nop
19   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20 /* end confdefs.h.  */
21 #include <hurd/version.h>
22 int
23 main (void)
26 #define NEED_VERSION 20020609
27 #if HURD_INTERFACE_VERSION < NEED_VERSION
28 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
29 #endif
30   ;
31   return 0;
33 _ACEOF
34 if ac_fn_c_try_cpp "$LINENO"
35 then :
36   libc_cv_hurd_version=ok
37 else $as_nop
38   libc_cv_hurd_version=bad
40 rm -f conftest.err conftest.i conftest.$ac_ext
42 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5
43 printf "%s\n" "$libc_cv_hurd_version" >&6; }
44 if test "x$libc_cv_hurd_version" != xok; then
45   as_fn_error $? "Hurd headers not installed or too old" "$LINENO" 5
51 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
52 printf %s "checking for grep that handles long lines and -e... " >&6; }
53 if test ${ac_cv_path_GREP+y}
54 then :
55   printf %s "(cached) " >&6
56 else $as_nop
57   if test -z "$GREP"; then
58   ac_path_GREP_found=false
59   # Loop through the user's path and test for each of PROGNAME-LIST
60   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
63   IFS=$as_save_IFS
64   case $as_dir in #(((
65     '') as_dir=./ ;;
66     */) ;;
67     *) as_dir=$as_dir/ ;;
68   esac
69     for ac_prog in grep ggrep
70    do
71     for ac_exec_ext in '' $ac_executable_extensions; do
72       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
73       as_fn_executable_p "$ac_path_GREP" || continue
74 # Check for GNU ac_path_GREP and select it if it is found.
75   # Check for GNU $ac_path_GREP
76 case `"$ac_path_GREP" --version 2>&1` in
77 *GNU*)
78   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
80   ac_count=0
81   printf %s 0123456789 >"conftest.in"
82   while :
83   do
84     cat "conftest.in" "conftest.in" >"conftest.tmp"
85     mv "conftest.tmp" "conftest.in"
86     cp "conftest.in" "conftest.nl"
87     printf "%s\n" 'GREP' >> "conftest.nl"
88     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
89     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
90     as_fn_arith $ac_count + 1 && ac_count=$as_val
91     if test $ac_count -gt ${ac_path_GREP_max-0}; then
92       # Best one so far, save it but keep looking for a better one
93       ac_cv_path_GREP="$ac_path_GREP"
94       ac_path_GREP_max=$ac_count
95     fi
96     # 10*(2^10) chars as input seems more than enough
97     test $ac_count -gt 10 && break
98   done
99   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
100 esac
102       $ac_path_GREP_found && break 3
103     done
104   done
105   done
106 IFS=$as_save_IFS
107   if test -z "$ac_cv_path_GREP"; then
108     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
109   fi
110 else
111   ac_cv_path_GREP=$GREP
115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
116 printf "%s\n" "$ac_cv_path_GREP" >&6; }
117  GREP="$ac_cv_path_GREP"
120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
121 printf %s "checking for egrep... " >&6; }
122 if test ${ac_cv_path_EGREP+y}
123 then :
124   printf %s "(cached) " >&6
125 else $as_nop
126   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
127    then ac_cv_path_EGREP="$GREP -E"
128    else
129      if test -z "$EGREP"; then
130   ac_path_EGREP_found=false
131   # Loop through the user's path and test for each of PROGNAME-LIST
132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
135   IFS=$as_save_IFS
136   case $as_dir in #(((
137     '') as_dir=./ ;;
138     */) ;;
139     *) as_dir=$as_dir/ ;;
140   esac
141     for ac_prog in egrep
142    do
143     for ac_exec_ext in '' $ac_executable_extensions; do
144       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
145       as_fn_executable_p "$ac_path_EGREP" || continue
146 # Check for GNU ac_path_EGREP and select it if it is found.
147   # Check for GNU $ac_path_EGREP
148 case `"$ac_path_EGREP" --version 2>&1` in
149 *GNU*)
150   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
152   ac_count=0
153   printf %s 0123456789 >"conftest.in"
154   while :
155   do
156     cat "conftest.in" "conftest.in" >"conftest.tmp"
157     mv "conftest.tmp" "conftest.in"
158     cp "conftest.in" "conftest.nl"
159     printf "%s\n" 'EGREP' >> "conftest.nl"
160     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
161     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
162     as_fn_arith $ac_count + 1 && ac_count=$as_val
163     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
164       # Best one so far, save it but keep looking for a better one
165       ac_cv_path_EGREP="$ac_path_EGREP"
166       ac_path_EGREP_max=$ac_count
167     fi
168     # 10*(2^10) chars as input seems more than enough
169     test $ac_count -gt 10 && break
170   done
171   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
172 esac
174       $ac_path_EGREP_found && break 3
175     done
176   done
177   done
178 IFS=$as_save_IFS
179   if test -z "$ac_cv_path_EGREP"; then
180     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
181   fi
182 else
183   ac_cv_path_EGREP=$EGREP
186    fi
188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
189 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
190  EGREP="$ac_cv_path_EGREP"
193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc_getchildren_rusage in process.defs" >&5
194 printf %s "checking for proc_getchildren_rusage in process.defs... " >&6; }
195 if test ${libc_cv_hurd_rpc_proc_getchildren_rusage+y}
196 then :
197   printf %s "(cached) " >&6
198 else $as_nop
199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
200 /* end confdefs.h.  */
201 #include <hurd/process.defs>
203 _ACEOF
204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
205   $EGREP "proc_getchildren_rusage" >/dev/null 2>&1
206 then :
207   libc_cv_hurd_rpc_proc_getchildren_rusage=yes
208 else $as_nop
209   libc_cv_hurd_rpc_proc_getchildren_rusage=no
211 rm -rf conftest*
214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_rpc_proc_getchildren_rusage" >&5
215 printf "%s\n" "$libc_cv_hurd_rpc_proc_getchildren_rusage" >&6; }
216 if test $libc_cv_hurd_rpc_proc_getchildren_rusage = yes; then
217   printf "%s\n" "#define HAVE_HURD_PROC_GETCHILDREN_RUSAGE 1" >>confdefs.h
222 if test -n "$sysheaders"; then
223   CPPFLAGS=$OLD_CPPFLAGS
226 # Hurd has libpthread as a separate library.
227 pthread_in_libc=no