home *** CD-ROM | disk | FTP | other *** search
- dnl This file is an input file used by the GNU "autoconf" program to
- dnl generate the file "configure", which is run during STk installation
- dnl to configure the system for the local environment.
-
- AC_INIT(stk.h)
- /bin/rm -f config.cache
- CC=${CC-gcc}
-
- AC_HAVE_HEADERS(unistd.h limits.h)
- AC_HAVE_FUNCS(sigaction select)
- AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl"])
- LIBS="$LIBS -lm"
-
- #--------------------------------------------------------------------
- # Some system needs extra libraries which are already tested for
- # stk (such as libsocket.a or libnsl.a)
- # I'm unable to test this since I know no machine which need it.
- # Please tell me if I'm wrong
- #--------------------------------------------------------------------
- SNOW_LIBS=""
- AC_CHECK_LIB(socket, socket, [SNOW_LIBS="$SNOW_LIBS -lsocket"])
- AC_CHECK_LIB(nsl, t_accept, [SNOW_LIBS="$SNOW_LIBS -lnsl"])
- AC_SUBST(SNOW_LIBS, SNOW_LIBS)
-
- #--------------------------------------------------------------------
- # Check for various typedefs and provide substitutes if
- # they don't exist. Useful for Sony WS(Sony NEWS, NEWSOS 4.2R)
- # Thanks to Nobuyuki Hikichi <hikichi@sran340.sra.co.jp>
- #--------------------------------------------------------------------
- AC_PID_T
-
- AC_OUTPUT(Makefile)
-
- if test ! -f ../Snow/Makefile
- then
- ln -s ../Src/Makefile ../Snow/Makefile
- fi
-