
This adds the initial support for using autoconf configuration. Support is available for shared Xlib driver builds. Later this will be extended to dri and osmesa-only builds and possibly targetting non-X backends. Support for static library builds will also be added. The configure script fills in the autoconf config. This is then used by running `make autoconf' after ./configure. Testing has been done on Linux/GNU. The configure script tries to faithfully reproduce the current configs/linux* and configs/freebsd*. Other platforms can be handled later by adding similar statements and feature tests. Pkg-config is used to search for packages when possible. This makes the build much more flexible and robust to the user's configuration. This requires that the pkg-config autoconf macros pkg.m4 are included in aclocal.m4. This requires autoconf and aclocal from autoconf and automake, respectively.
88 lines
2.0 KiB
Plaintext
88 lines
2.0 KiB
Plaintext
# Autoconf configuration
|
|
|
|
# Pull in the defaults
|
|
include $(TOP)/configs/default
|
|
|
|
# This is generated by configure
|
|
CONFIG_NAME = autoconf
|
|
|
|
# Version info
|
|
MESA_MAJOR = @MESA_MAJOR@
|
|
MESA_MINOR = @MESA_MINOR@
|
|
MESA_TINY = @MESA_TINY@
|
|
|
|
# Compiler and flags
|
|
CC = @CC@
|
|
CXX = @CXX@
|
|
OPT_FLAGS = @OPT_FLAGS@
|
|
ARCH_FLAGS = @ARCH_FLAGS@
|
|
ASM_FLAGS = @ASM_FLAGS@
|
|
PIC_FLAGS = @PIC_FLAGS@
|
|
DEFINES = @DEFINES@
|
|
CFLAGS = @CPPFLAGS@ @CFLAGS@ \
|
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
|
CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ \
|
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|
LDFLAGS = @LDFLAGS@
|
|
EXTRA_LIB_PATH = @EXTRA_LIB_PATH@
|
|
|
|
# Assembler
|
|
ASM_SOURCES = @ASM_SOURCES@
|
|
ASM_API = @ASM_API@
|
|
|
|
# Misc tools and flags
|
|
MAKE = @MAKE@
|
|
MKLIB_OPTIONS =
|
|
MKDEP = @MKDEP@
|
|
MKDEP_OPTIONS = -fdepend
|
|
INSTALL = $(TOP)/bin/minstall
|
|
|
|
# Python and flags (generally only needed by the developers)
|
|
PYTHON2 = python
|
|
PYTHON_FLAGS = -t -O -O
|
|
|
|
# Library names (base name)
|
|
GL_LIB = GL
|
|
GLU_LIB = GLU
|
|
GLUT_LIB = glut
|
|
GLW_LIB = GLw
|
|
OSMESA_LIB = OSMesa
|
|
|
|
# Library names (actual file names)
|
|
GL_LIB_NAME = @GL_LIB_NAME@
|
|
GLU_LIB_NAME = @GLU_LIB_NAME@
|
|
GLUT_LIB_NAME = @GLUT_LIB_NAME@
|
|
GLW_LIB_NAME = @GLW_LIB_NAME@
|
|
OSMESA_LIB_NAME = @OSMESA_LIB_NAME@
|
|
|
|
# Directories to build
|
|
LIB_DIR = @LIB_DIR@
|
|
SRC_DIRS = @SRC_DIRS@
|
|
GLU_DIRS = @GLU_DIRS@
|
|
DRIVER_DIRS = @DRIVER_DIRS@
|
|
# Which subdirs under $(TOP)/progs/ to enter:
|
|
PROGRAM_DIRS = @PROGRAM_DIRS@
|
|
|
|
# Dependencies
|
|
X11_INCLUDES = @X11_INCLUDES@
|
|
|
|
# Library/program dependencies
|
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@
|
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \
|
|
$(EXTRA_LIB_PATH) @OSMESA_LIB_DEPS@
|
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \
|
|
$(EXTRA_LIB_PATH) @GLU_LIB_DEPS@
|
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLUT_MESA_DEPS@ \
|
|
$(EXTRA_LIB_PATH) @GLUT_LIB_DEPS@
|
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLW_MESA_DEPS@ \
|
|
$(EXTRA_LIB_PATH) @GLW_LIB_DEPS@
|
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) @APP_LIB_DEPS@
|
|
|
|
# Autoconf directories
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
libdir = @libdir@
|
|
|
|
# Installation directories (for make install)
|
|
INSTALL_DIR = $(prefix)
|