https://github.com/jrincayc/ucblogo-code
Revision 6f3ff957f9a17c23c9a6b987efd1bb093f814296 authored by chou86_e on 23 August 2008, 18:46:24 UTC, committed by chou86_e on 23 August 2008, 18:46:24 UTC
git-svn-id: https://svn.code.sf.net/p/ucblogo/code@183 fc4ef4ee-df3e-0410-84de-fb01f5d6c4f7
1 parent c38d89e
Tip revision: 6f3ff957f9a17c23c9a6b987efd1bb093f814296 authored by chou86_e on 23 August 2008, 18:46:24 UTC
Save/restore possible user print_string{ptr,len} around Logo's uses
Save/restore possible user print_string{ptr,len} around Logo's uses
Tip revision: 6f3ff95
configure.in
dnl Process this file with autoconf to produce a configure script.
AC_INIT(coms.c)
AC_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_PROG_CC
dnl Checks for libraries.
AC_PATH_XTRA
AC_CHECK_LIB(m, atan)
AC_CHECK_LIB(BSD, signal)
AC_CHECK_LIB(bsd, signal)
tcap=no
AC_CHECK_LIB(termcap, tgetstr,
AC_DEFINE(HAVE_LIBTERMCAP) LIBS="$LIBS -ltermcap" tcap=yes)
if test $tcap = no; then
AC_CHECK_LIB(termlib, tgetstr,
AC_DEFINE(HAVE_LIBTERMLIB) LIBS="$LIBS -ltermlib" tcap=yes)
fi
if test $tcap = no; then
AC_CHECK_LIB(curses, tgetstr,
AC_DEFINE(HAVE_LIBCURSES) LIBS="$LIBS -lcurses" tcap=yes)
fi
if test $tcap = no; then
AC_CHECK_LIB(ncurses, tgetstr,
AC_DEFINE(HAVE_LIBCURSES) LIBS="$LIBS -lncurses" tcap=yes)
fi
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(sgtty.h termio.h unistd.h string.h termcap.h termlib.h curses.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
dnl Checks for library functions.
AC_CHECK_FUNCS(usleep srandom sigvec sigsetmask matherr drem irint memcpy)
AC_PROG_GCC_TRADITIONAL
dnl AC_TYPE_SIGNAL
if test "$no_x" != yes; then
LIBS="$LIBS -lX11"
fi
AC_OUTPUT(makefile)
Computing file changes ...