2004-06-18 19:57:29 +02:00
|
|
|
AC_INIT(dgamelaunch, [1.4.6])
|
|
|
|
AC_PREREQ(2.50)
|
|
|
|
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_STDC_HEADERS
|
|
|
|
AC_PROG_LEX
|
|
|
|
|
|
|
|
LIBS="$LIBS $LEXLIB"
|
|
|
|
|
|
|
|
AC_PROG_YACC
|
|
|
|
|
|
|
|
case "$(uname -s)" in
|
|
|
|
Linux | *BSD)
|
|
|
|
LIBS="$LIBS -lutil -lcrypt"
|
2004-06-18 20:16:22 +02:00
|
|
|
AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.])
|
2004-06-18 19:57:29 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test "$ac_cv_c_compiler_gnu" = yes; then
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wno-unused"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_SEARCH_LIBS(initscr, [ncurses curses termcap])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(enable-virus,
|
|
|
|
[AS_HELP_STRING([--enable-virus], [Use the 'virus' vi clone instead of the friendly ee editor.])],
|
|
|
|
[AC_SUBST(EDITOR, virus.c)], [AC_SUBST(EDITOR, ee.c)])
|
|
|
|
|
|
|
|
AC_ARG_WITH(config-file,
|
2004-06-18 20:04:36 +02:00
|
|
|
[AS_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])],
|
|
|
|
[configfile=$withval], [configfile="/etc/dgamelaunch.conf"])
|
2004-06-18 19:57:29 +02:00
|
|
|
|
2004-06-18 19:58:35 +02:00
|
|
|
AC_DEFINE_UNQUOTED(DEFCONFIG, "$configfile", [Path to the default config file.])
|
2004-06-18 19:57:29 +02:00
|
|
|
|
2004-06-18 20:16:22 +02:00
|
|
|
AC_CHECK_FUNCS([openpty setenv])
|
2004-06-18 19:57:29 +02:00
|
|
|
AC_CONFIG_FILES(Makefile)
|
|
|
|
AC_OUTPUT
|