home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnuch40.zip / gnuchess-4.0.pl79 / src / configure.in < prev    next >
Text File  |  1998-09-28  |  1KB  |  47 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2.  
  3. AC_INIT(ataks.c)
  4.  
  5. dnl Checks for programs.
  6. if test -z "$CFLAGS" ; then
  7.   CFLAGS_DEFAULTED=yes
  8. fi
  9. AC_PROG_CC
  10. if test "$CFLAGS_DEFAULTED" = yes; then
  11.   if test "$GCC" = yes; then
  12.     CFLAGS="-O2"
  13.   else
  14.     dnl Probably every compiler has a -O flag, but not all have -O2, -O3, etc
  15.     CFLAGS="-O"
  16.   fi
  17. fi
  18. AC_PROG_INSTALL
  19.  
  20. dnl Checks for libraries.
  21. AC_CHECK_LIB(m, sqrt)
  22. AC_CHECK_LIB(termcap, tgetent)
  23. AC_CHECK_LIB(curses, printw)
  24.  
  25. dnl Checks for header files.
  26. AC_HEADER_STDC
  27. AC_CHECK_HEADERS(fcntl.h time.h sys/file.h sys/ioctl.h sys/time.h unistd.h)
  28.  
  29. dnl Checks for typedefs, structures, and compiler characteristics.
  30. AC_C_CONST
  31. AC_C_INLINE
  32. AC_TYPE_SIZE_T
  33. AC_HEADER_TIME
  34. AC_CHECK_SIZEOF(long)
  35.  
  36. dnl Checks for library functions.
  37. AC_PROG_GCC_TRADITIONAL
  38. dnl AC_FUNC_SETVBUF_REVERSED
  39. AC_TYPE_SIGNAL
  40. AC_CHECK_FUNCS(gettimeofday strstr strtol strtoul memset)
  41. AC_CHECK_FUNCS(setvbuf)
  42. if test "HAVE_SETVBUF" = no ; then
  43.   AC_CHECK_FUNCS(setlinebuf)
  44. fi
  45.  
  46. AC_OUTPUT(Makefile)
  47.