2002-04-02 05:47:23 +00:00
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.50)
|
2002-04-05 00:24:29 +00:00
|
|
|
AC_INIT(src/main.c)
|
|
|
|
AC_REVISION($Revision$) dnl
|
2002-04-02 06:23:02 +00:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2002-04-02 05:47:23 +00:00
|
|
|
|
2002-04-05 00:24:29 +00:00
|
|
|
dnl AC_CANONICAL_SYSTEM # what does this do?
|
|
|
|
|
|
|
|
dnl AC_VALIDATE_CACHED_SYSTEM_TUPLE(
|
|
|
|
dnl rm $cache_file
|
|
|
|
dnl echo restart configure
|
|
|
|
dnl exit 1
|
|
|
|
dnl )
|
|
|
|
|
2002-04-05 01:02:17 +00:00
|
|
|
AM_INIT_AUTOMAKE(quake2, 0.1)
|
2002-04-05 00:24:29 +00:00
|
|
|
|
2002-04-02 05:47:23 +00:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2002-04-05 00:24:29 +00:00
|
|
|
AC_SUBST(PROGRAM)
|
|
|
|
AC_SUBST(VERSION)
|
|
|
|
|
|
|
|
|
2002-04-02 05:47:23 +00:00
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
2002-04-03 00:27:05 +00:00
|
|
|
AC_PROG_RANLIB
|
|
|
|
#AC_PROG_LIBTOOL
|
2002-04-02 05:47:23 +00:00
|
|
|
|
|
|
|
# Checks for libraries.
|
2002-04-06 05:56:23 +00:00
|
|
|
#AC_CHECK_LIB(GL, glBegin)
|
2002-04-02 05:47:23 +00:00
|
|
|
# FIXME: Replace `main' with a function in `-lX11':
|
2002-04-03 00:27:05 +00:00
|
|
|
#AC_CHECK_LIB(X11, [main])
|
2002-04-02 05:47:23 +00:00
|
|
|
# FIXME: Replace `main' with a function in `-lXext':
|
2002-04-03 00:27:05 +00:00
|
|
|
#AC_CHECK_LIB([Xext], [main])
|
2002-04-02 05:47:23 +00:00
|
|
|
# FIXME: Replace `main' with a function in `-lXxf86dga':
|
2002-04-03 00:27:05 +00:00
|
|
|
#AC_CHECK_LIB([Xxf86dga], [main])
|
2002-04-02 05:47:23 +00:00
|
|
|
# FIXME: Replace `main' with a function in `-lXxf86vm':
|
2002-04-03 00:27:05 +00:00
|
|
|
#AC_CHECK_LIB([Xxf86vm], [main])
|
2002-04-06 05:56:23 +00:00
|
|
|
#AC_CHECK_LIB(dl, dlopen)
|
|
|
|
#AC_CHECK_LIB(m, sin)
|
2002-04-02 05:47:23 +00:00
|
|
|
# FIXME: Replace `main' with a function in `-lossaudio':
|
|
|
|
#AC_CHECK_LIB([ossaudio], [main])
|
|
|
|
# FIXME: Replace `main' with a function in `-lpthread':
|
2002-04-06 05:56:23 +00:00
|
|
|
#AC_CHECK_LIB([pthread], [main])
|
2002-04-02 05:47:23 +00:00
|
|
|
# FIXME: Replace `main' with a function in `-lvga':
|
|
|
|
#AC_CHECK_LIB([vga], [main])
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_PATH_X
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_CHECK_HEADERS([arpa/inet.h errno.h fcntl.h float.h limits.h mntent.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h termios.h unistd.h])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_STRUCT_TM
|
|
|
|
AC_TYPE_UID_T
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_ERROR_AT_LINE
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_MEMCMP
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_STAT
|
|
|
|
AC_FUNC_VPRINTF
|
|
|
|
AC_CHECK_FUNCS([bzero floor getcwd gethostbyname getmntent getpagesize gettimeofday memmove memset mkdir munmap pow putenv select socket sqrt strcasecmp strchr strdup strerror strrchr strstr])
|
|
|
|
|
2002-04-08 05:09:37 +00:00
|
|
|
AS="$CC"
|
|
|
|
ASFLAGS="\$(DEFS) \$(CFLAGS) \$(CPPFLAGS) \$(DEFAULT_INCLUDES) \$(INCLUDES)"
|
|
|
|
AC_SUBST(AS)
|
|
|
|
AC_SUBST(ASFLAGS)
|
|
|
|
|
2002-04-02 05:47:23 +00:00
|
|
|
AC_CONFIG_FILES([Makefile
|
2002-04-03 00:52:42 +00:00
|
|
|
src/Makefile
|
2002-04-06 06:30:19 +00:00
|
|
|
src/baseq2/Makefile
|
|
|
|
src/ctf/Makefile
|
|
|
|
src/xatrix/Makefile
|
|
|
|
src/rogue/Makefile])
|
2002-04-02 05:47:23 +00:00
|
|
|
AC_OUTPUT
|