home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #4 / amigaacscoverdisc1998-041998.iso / utilities / shareware / dev / ucb_logoppc / source / configure.in < prev    next >
Encoding:
Text File  |  1997-02-18  |  1.0 KB  |  46 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(coms.c)
  3.  
  4. AC_CONFIG_HEADER(config.h)
  5.  
  6. dnl Checks for programs.
  7. AC_PROG_CC
  8.  
  9. dnl Checks for libraries.
  10.  
  11. AC_PATH_XTRA
  12. AC_CHECK_LIB(m, atan)
  13. AC_CHECK_LIB(BSD, signal)
  14. AC_CHECK_LIB(bsd, signal)
  15.  
  16. tcap=no
  17. AC_CHECK_LIB(termcap, tgetstr,
  18.          AC_DEFINE(HAVE_LIBTERMCAP) LIBS="$LIBS -ltermcap" tcap=yes)
  19. if test $tcap = no; then
  20.    AC_CHECK_LIB(termlib, tgetstr,
  21.         AC_DEFINE(HAVE_LIBTERMLIB) LIBS="$LIBS -ltermlib" tcap=yes)
  22. fi
  23. if test $tcap = no; then
  24.    AC_CHECK_LIB(curses, tgetstr,
  25.         AC_DEFINE(HAVE_LIBCURSES) LIBS="$LIBS -lcurses" tcap=yes)
  26. fi
  27.  
  28. dnl Checks for header files.
  29. AC_HEADER_STDC
  30. AC_CHECK_HEADERS(sgtty.h termio.h unistd.h string.h termcap.h termlib.h curses.h)
  31.  
  32. dnl Checks for typedefs, structures, and compiler characteristics.
  33. AC_TYPE_SIZE_T
  34. AC_TYPE_SIGNAL
  35.  
  36. dnl Checks for library functions.
  37. AC_CHECK_FUNCS(usleep srandom sigvec sigsetmask matherr drem irint memcpy)
  38. AC_PROG_GCC_TRADITIONAL
  39. dnl AC_TYPE_SIGNAL
  40.  
  41. if test "$no_x" != yes; then
  42.    LIBS="$LIBS -lX11"
  43. fi
  44.  
  45. AC_OUTPUT(makefile)
  46.