Sat Jun 15 18:13:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / sysdeps / generic / configure
blob7b82ca5b5aa69c1eaf14c0643cb1c71183feefbb
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 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8   echo $ac_n "(cached) $ac_c" 1>&6
9 else
10   cat > conftest.$ac_ext <<EOF
11 #line 12 "configure"
12 #include "confdefs.h"
13 /* System header to define __stub macros and hopefully few prototypes,
14     which can conflict with char $ac_func(); below.  */
15 #include <assert.h>
16 /* Override any gcc2 internal prototype to avoid an error.  */
17 /* We use char because int might match the return type of a gcc2
18     builtin and then its argument prototype would still apply.  */
19 char $ac_func();
21 int main() { return 0; }
22 int t() {
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
33 ; return 0; }
34 EOF
35 if { (eval echo configure:36: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
36   rm -rf conftest*
37   eval "ac_cv_func_$ac_func=yes"
38 else
39   rm -rf conftest*
40   eval "ac_cv_func_$ac_func=no"
42 rm -f conftest*
45 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
46   echo "$ac_t""yes" 1>&6
47     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48   cat >> confdefs.h <<EOF
49 #define $ac_tr_func 1
50 EOF
52 else
53   echo "$ac_t""no" 1>&6
55 done