home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / glibc-1.06 / sysdeps / unix / common / configure < prev    next >
Encoding:
Text File  |  1993-05-05  |  1.1 KB  |  61 lines

  1.  
  2.  
  3. # Find out what this system calls `sys_siglist'.
  4. for func in sys_siglist _sys_siglist
  5. do
  6. trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  7. echo checking for ${func}
  8. cat > conftest.c <<EOF
  9. #include <stdio.h>
  10. int main() { exit(0); } 
  11. int t() { 
  12. #ifdef __stub_${func}
  13. choke me
  14. #else
  15. /* Override any gcc2 internal prototype to avoid an error.  */
  16. extern char ${func}(); ${func}();
  17. #endif
  18.  }
  19. EOF
  20. if eval $compile; then
  21.   {
  22. test -n "$verbose" && \
  23. echo '    defining' ${trfunc}
  24. DEFS="$DEFS -D${trfunc}=1"
  25. }
  26.  
  27. fi
  28. rm -f conftest*
  29. done
  30.  
  31.  
  32. # Find out the name of the table the system's <ctype.h> uses for character
  33. # classification.  This is used by sysdeps/unix/common/glue-ctype.c.
  34. for func in _ctype_ __ctype_ __ctype _ctype__
  35. do
  36. trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  37. echo checking for ${func}
  38. cat > conftest.c <<EOF
  39. #include <stdio.h>
  40. int main() { exit(0); } 
  41. int t() { 
  42. #ifdef __stub_${func}
  43. choke me
  44. #else
  45. /* Override any gcc2 internal prototype to avoid an error.  */
  46. extern char ${func}(); ${func}();
  47. #endif
  48.  }
  49. EOF
  50. if eval $compile; then
  51.   {
  52. test -n "$verbose" && \
  53. echo '    defining' ${trfunc}
  54. DEFS="$DEFS -D${trfunc}=1"
  55. }
  56.  
  57. fi
  58. rm -f conftest*
  59. done
  60.  
  61.