82 lines
2.0 KiB
Plaintext
82 lines
2.0 KiB
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
AC_INIT(pvvmud.html)
|
|
AM_INIT_AUTOMAKE(pvvmud, 0.0a)
|
|
|
|
AC_PROG_CC
|
|
AC_PROG_CXX
|
|
AC_PROG_RANLIB
|
|
AM_PROG_LEX
|
|
AC_PROG_YACC
|
|
dnl extra X-libraries. Will always share -L and -I with libX11
|
|
AC_PATH_XTRA
|
|
|
|
dnl AC_CHECK_LIB(MesaGL, main)
|
|
|
|
dnl This is only hooks for treating GL-libraries seperate of X-libraries
|
|
dnl actual detecting stuff comes later.
|
|
GL_CFLAGS=
|
|
GL_LIBS=
|
|
AC_SUBST(GL_CFLAGS)
|
|
AC_SUBST(GL_LIBS)
|
|
|
|
dnl same for tiff
|
|
TIFF_CFLAGS=
|
|
TIFF_LIBS=
|
|
AC_SUBST(TIFF_CFLAGS)
|
|
AC_SUBST(TIFF_LIBS)
|
|
|
|
dnl Test if cpp compiler enables exception code by default. If exception code
|
|
dnl fails asume that compiler need -fhandle-exceptinos flag.
|
|
AC_CACHE_CHECK([if compiler need -fhandle-exception],
|
|
pvvmud_cv_c_handle_exception_needed_by_compiler,
|
|
AC_LANG_SAVE
|
|
AC_LANG_CPLUSPLUS
|
|
AC_TRY_COMPILE([],[try{}catch(...){}],
|
|
pvvmud_cv_c_handle_exception_needed_by_compiler="no",
|
|
pvvmud_cv_c_handle_exception_needed_by_compiler="yes")
|
|
AC_LANG_RESTORE)
|
|
|
|
if test "$pvvmud_cv_c_handle_exception_needed_by_compiler" = "yes"; then
|
|
CXXFLAGS="$CXXFLAGS -fhandle-exceptions"
|
|
fi
|
|
|
|
|
|
dnl IRIX sometimes has SYSVR3/4 network DSOs, but we do not need or want
|
|
dnl to use them!
|
|
if test "`uname`" != "IRIX" -a "`uname`" != "IRIX64"; then
|
|
AC_CHECK_LIB(nsl, gethostbyaddr, NETLIBS="$NETLIBS -lnsl")
|
|
AC_CHECK_LIB(socket, socket, NETLIBS="$NETLIBS -lsocket")
|
|
fi
|
|
AC_SUBST(NETLIBS)
|
|
|
|
AC_CHECK_HEADERS(GL/gl.h GL/glu.h)
|
|
|
|
AC_OUTPUT([ Makefile
|
|
common/Makefile
|
|
common/lib/Makefile
|
|
common/lib/geometry/Makefile
|
|
common/lib/gos/Makefile
|
|
common/lib/srvcli/Makefile
|
|
common/lib/texture/Makefile
|
|
common/lib/utils/Makefile
|
|
common/lib/world/Makefile
|
|
common/lib/crypto/Makefile
|
|
server/Makefile
|
|
server/driver/Makefile
|
|
server/lib/Makefile
|
|
gos/Makefile
|
|
worldsrv/Makefile
|
|
util/Makefile
|
|
util/asc2bog/Makefile
|
|
util/bogscale/Makefile
|
|
util/convert2tex/Makefile
|
|
util/converttex/Makefile
|
|
util/geo2bog/Makefile
|
|
util/getgos/Makefile
|
|
client/Makefile
|
|
client/coreclient/Makefile
|
|
client/renderer/Makefile
|
|
client/gui/Makefile
|
|
mudworld/Makefile
|
|
mudworld/libgos/Makefile])
|