]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/generic/configure
Update.
[thirdparty/glibc.git] / sysdeps / generic / configure
1
2 if test -z "$inhibit_glue"; then
3 # For signame.c, used in make_siglist.
4 for ac_func in psignal
5 do
6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7 echo "configure:8: checking for $ac_func" >&5
8 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9 echo $ac_n "(cached) $ac_c" 1>&6
10 else
11 cat > conftest.$ac_ext <<EOF
12 #line 13 "configure"
13 #include "confdefs.h"
14 /* System header to define __stub macros and hopefully few prototypes,
15 which can conflict with char $ac_func(); below. */
16 #include <assert.h>
17 /* Override any gcc2 internal prototype to avoid an error. */
18 /* We use char because int might match the return type of a gcc2
19 builtin and then its argument prototype would still apply. */
20 char $ac_func();
21
22 int main() {
23
24 /* The GNU C library defines this for functions which it implements
25 to always fail with ENOSYS. Some functions are actually named
26 something starting with __ and the normal name is an alias. */
27 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28 choke me
29 #else
30 $ac_func();
31 #endif
32
33 ; return 0; }
34 EOF
35 if { (eval echo configure:36: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
36 rm -rf conftest*
37 eval "ac_cv_func_$ac_func=yes"
38 else
39 echo "configure: failed program was:" >&5
40 cat conftest.$ac_ext >&5
41 rm -rf conftest*
42 eval "ac_cv_func_$ac_func=no"
43 fi
44 rm -f conftest*
45 fi
46
47 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
48 echo "$ac_t""yes" 1>&6
49 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50 cat >> confdefs.h <<EOF
51 #define $ac_tr_func 1
52 EOF
53
54 else
55 echo "$ac_t""no" 1>&6
56 fi
57 done
58
59 fi