1 dnl Process this file with autoconf to create configure.
6 dnl Make version number available to autoconf and configure
7 m4_define(mesa_major, 7)
8 m4_define(mesa_minor, 1)
9 m4_define(mesa_tiny, 0)
10 m4_define(mesa_version, [mesa_major().mesa_minor().mesa_tiny()])
12 AC_INIT(Mesa, mesa_version(), mesa3d@sourceforge.net)
13 AC_CONFIG_AUX_DIR(bin)
16 dnl Substitute the version number into shell variables
17 MESA_MAJOR=mesa_major()
18 MESA_MINOR=mesa_minor()
28 AC_PATH_PROG(MAKE, make)
29 AC_PATH_PROG(MKDEP, makedepend)
30 AC_PATH_PROG(SED, sed)
32 dnl Make sure the pkg-config macros are defined
33 m4_ifdef([PKG_PROG_PKG_CONFIG],,[
34 AC_MSG_ERROR([The pkg-config autoconf macros are not defined.
35 Did you run 'make configure'?])]
39 dnl LIB_DIR - library basename
40 LIB_DIR=`echo $libdir | $SED 's%.*/%%'`
43 dnl Cache LDFLAGS so we can add EXTRA_LIB_PATH and restore it later
44 _SAVE_LDFLAGS="$LDFLAGS"
45 AC_ARG_VAR(EXTRA_LIB_PATH,[Extra -L paths for the linker])
46 AC_SUBST(EXTRA_LIB_PATH)
48 dnl Cache CPPFLAGS so we can add *_INCLUDES and restore it later
49 _SAVE_CPPFLAGS="$CPPFLAGS"
50 AC_ARG_VAR(X11_INCLUDES,[Extra -I paths for X11 headers])
51 AC_SUBST(X11_INCLUDES)
56 if test "x$GCC" = xyes; then
57 DEFINES="-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE"
61 DEFINES="$DEFINES -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN"
65 dnl Add flags for gcc and g++
66 if test "x$GCC" = xyes; then
67 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math"
69 if test "x$GXX" = xyes; then
70 CXXFLAGS="$CXXFLAGS -Wall"
73 dnl These should be unnecessary, but let the user set them if they want
74 AC_ARG_VAR(OPT_FLAGS, [Additional optimization flags for the compiler.
75 Default is to use CFLAGS.])
76 AC_ARG_VAR(ARCH_FLAGS, [Additional architecture specific flags for the
77 compiler. Default is to use CFLAGS.])
82 dnl shared/static libraries, mimic libtool options
85 [AS_HELP_STRING([--enable-static],
86 [build static libraries @<:@default=disabled@:>@])],
87 enable_static="$enableval",
90 case "x$enable_static" in
92 x ) enable_static=no ;;
94 AC_MSG_ERROR([Static library option '$enable_static' is not a valid])
98 [AS_HELP_STRING([--disable-shared],
99 [build shared libraries @<:@default=enabled@:>@])],
100 enable_shared="$enableval",
103 case "x$enable_shared" in
105 x ) enable_shared=yes ;;
107 AC_MSG_ERROR([Shared library option '$enable_shared' is not a valid])
111 dnl Can't have static and shared libraries, default to static if user
112 dnl explicitly requested. If both disabled, set to static since shared
113 dnl was explicitly requirested.
114 case "x$enable_static$enable_shared" in
116 AC_MSG_WARN([Can't build static and shared libraries, disabling shared])
120 AC_MSG_WARN([Can't disable both static and shared libraries, enabling static])
128 AC_ARG_VAR(MKLIB_OPTIONS,[Options for the Mesa library script, mklib])
129 if test "$enable_static" = yes; then
130 MKLIB_OPTIONS="$MKLIB_OPTIONS -static"
132 AC_SUBST(MKLIB_OPTIONS)
135 dnl other compiler options
138 [AS_HELP_STRING([--enable-debug],
139 [use debug compiler flags and macros @<:@default=disabled@:>@])],
140 enable_debug="$enableval",
143 if test "x$enable_debug" = xyes; then
144 DEFINES="$DEFINES -DDEBUG"
145 if test "x$GCC" = xyes; then
148 if test "x$GXX" = xyes; then
149 CXXFLAGS="$CXXFLAGS -g"
156 if test "$enable_static" = yes; then
157 GL_LIB_NAME='lib$(GL_LIB).a'
158 GLU_LIB_NAME='lib$(GLU_LIB).a'
159 GLUT_LIB_NAME='lib$(GLUT_LIB).a'
160 GLW_LIB_NAME='lib$(GLW_LIB).a'
161 OSMESA_LIB_NAME='lib$(OSMESA_LIB).a'
163 GL_LIB_NAME='lib$(GL_LIB).so'
164 GLU_LIB_NAME='lib$(GLU_LIB).so'
165 GLUT_LIB_NAME='lib$(GLUT_LIB).so'
166 GLW_LIB_NAME='lib$(GLW_LIB).so'
167 OSMESA_LIB_NAME='lib$(OSMESA_LIB).so'
169 AC_SUBST(GL_LIB_NAME)
170 AC_SUBST(GLU_LIB_NAME)
171 AC_SUBST(GLUT_LIB_NAME)
172 AC_SUBST(GLW_LIB_NAME)
173 AC_SUBST(OSMESA_LIB_NAME)
176 dnl Driver configuration. Options are x11 (Xlib), dri and osmesa right now.
177 dnl More later: directfb, fbdev, ...
180 [AS_HELP_STRING([--with-driver=DRIVER],
181 [driver for Mesa: x11,dri,osmesa @<:@default=x11@:>@])],
182 mesa_driver="$withval",
184 dnl Check for valid option
185 case "x$mesa_driver" in
189 AC_MSG_ERROR([Driver '$mesa_driver' is not a valid option])
194 dnl Driver specific build directories
199 case "$mesa_driver" in
204 SRC_DIRS="glx/x11 $SRC_DIRS"
214 AC_SUBST(DRIVER_DIRS)
215 AC_SUBST(WINDOW_SYSTEM)
218 dnl User supplied program configuration
220 if test -d "$srcdir/progs/demos"; then
226 [AS_HELP_STRING([--with-demos@<:@=DIRS...@:>@],
227 [optional comma delimited demo directories to build
228 @<:@default=yes if source available@:>@])],
229 with_demos="$withval",
230 with_demos="$default_demos")
231 if test "x$with_demos" = x; then
235 dnl If $with_demos is yes, directories will be added as libs available
237 case "$with_demos" in
240 # verify the requested demos directories exist
241 demos=`IFS=,; echo $with_demos`
242 for demo in $demos; do
243 test -d "$srcdir/progs/$demo" || \
244 AC_MSG_ERROR([Program directory '$demo' doesn't exist])
246 PROGRAM_DIRS="$demos"
251 dnl Find out if X is available. The variables have_x or no_x will be
252 dnl set and used later in the driver setups
254 if test -n "$PKG_CONFIG"; then
255 AC_MSG_CHECKING([pkg-config files for X11 are available])
256 if $PKG_CONFIG --exists x11; then
268 dnl Use the autoconf macro if no pkg-config files
269 if test "$x11_pkgconfig" = no; then
273 dnl We need X for xlib and dri, so bomb now if it's not found
274 case "$mesa_driver" in
276 if test "$no_x" = yes; then
277 AC_MSG_ERROR([X11 development libraries needed for $mesa_driver driver])
283 dnl libGL configuration per driver
285 case "$mesa_driver" in
287 if test "$x11_pkgconfig" = yes; then
288 PKG_CHECK_MODULES(X11GL, x11 xext)
289 X11_INCLUDES="$X11_INCLUDES $X11GL_CFLAGS"
290 GL_LIB_DEPS="$X11GL_LIBS"
292 # should check these...
293 X11_INCLUDES="$X11_INCLUDES $X_CFLAGS"
294 GL_LIB_DEPS="$X_LIBS -lX11 -lXext"
296 GL_LIB_DEPS="$GL_LIB_DEPS -lm -lpthread"
298 # if static, move the external libraries to the programs
299 # and empty the libraries for libGL
300 if test "$enable_static" = yes; then
301 APP_LIB_DEPS="$APP_LIB_DEPS $GL_LIB_DEPS"
306 # DRI must be shared, I think
307 if test "$enable_static" = yes; then
308 AC_MSG_ERROR([Can't use static libraries for DRI drivers])
312 PKG_CHECK_MODULES(LIBDRM, libdrm)
314 # find the DRI deps for libGL
315 if test "$x11_pkgconfig" = yes; then
316 PKG_CHECK_MODULES(DRIGL, x11 xext xxf86vm xdamage xfixes)
317 X11_INCLUDES="$X11_INCLUDES $DRIGL_CFLAGS"
318 GL_LIB_DEPS="$DRIGL_LIBS"
320 # should check these...
321 X11_INCLUDES="$X11_INCLUDES $X_CFLAGS"
322 GL_LIB_DEPS="$X_LIBS -lX11 -lXext -lXxf86vm -lXdamage -lXfixes"
325 # need DRM libs, -lpthread, etc.
326 GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm -lpthread -ldl"
329 # No libGL for osmesa
333 AC_SUBST(GL_LIB_DEPS)
338 if test "$mesa_driver" = x11; then
339 DEFINES="$DEFINES -DUSE_XSHM"
345 AC_ARG_ENABLE(glx-tls,
346 [AS_HELP_STRING([--enable-glx-tls],
347 [enable TLS support in GLX @<:@default=disabled@:>@])],
348 GLX_USE_TLS="$enableval",
350 dnl Directory for DRI drivers
351 AC_ARG_WITH(dri-driverdir,
352 [AS_HELP_STRING([--with-dri-driverdir=DIR],
353 [directory for the DRI drivers @<:@/usr/X11R6/lib/modules/dri@:>@])],
354 DRI_DRIVER_INSTALL_DIR="$withval",
355 DRI_DRIVER_INSTALL_DIR='/usr/X11R6/lib/modules/dri')
356 AC_SUBST(DRI_DRIVER_INSTALL_DIR)
357 dnl Direct rendering or just indirect rendering
358 AC_ARG_ENABLE(driglx-direct,
359 [AS_HELP_STRING([--disable-driglx-direct],
360 [enable direct rendering in GLX for DRI @<:@default=enabled@:>@])],
361 driglx_direct="$enableval",
364 dnl Which drivers to build - default is chosen by platform
365 AC_ARG_WITH(dri-drivers,
366 [AS_HELP_STRING([--with-dri-drivers@<:@=DIRS...@:>@],
367 [comma delimited DRI drivers to build @<:@default=auto by platform@:>@])],
368 with_dri_drivers="$withval",
369 with_dri_drivers=yes)
370 if test "x$with_dri_drivers" = x; then
374 dnl If $with_dri_drivers is yes, directories will be added through
377 case "$with_dri_drivers" in
380 # verify the requested driver directories exist
381 dri_drivers=`IFS=,; echo $with_dri_drivers`
382 for driver in $dri_drivers; do
383 test -d "$srcdir/src/mesa/drivers/dri/$driver" || \
384 AC_MSG_ERROR([DRI driver directory '$driver' doesn't exist])
386 DRI_DIRS="$dri_drivers"
390 dnl Just default to no EGL for now
394 dnl Set DRI_DIRS, DEFINES and LIB_DEPS
395 if test "$mesa_driver" = dri; then
397 if test "x$GLX_USE_TLS" = xyes; then
398 DEFINES="$DEFINES -DGLX_USE_TLS -DPTHREADS"
401 if test "x$USING_EGL" = x1; then
406 if test "x$DRI_DIRS" = x; then
407 DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
408 savage sis tdfx trident unichrome ffb"
411 # Platform specific settings and drivers to build
414 DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
415 DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS"
416 if test "x$driglx_direct" = xyes; then
417 DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
422 # ffb, gamma, and sis are missing because they have not be
423 # converted to use the new interface. i810 are missing
424 # because there is no x86-64 system where they could *ever*
426 if test "x$DRI_DIRS" = x; then
427 DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 radeon \
428 savage tdfx unichrome"
432 # Build only the drivers for cards that exist on PowerPC.
433 # At some point MGA will be added, but not yet.
434 if test "x$DRI_DIRS" = x; then
435 DRI_DIRS="mach64 r128 r200 r300 radeon tdfx"
441 DEFINES="$DEFINES -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1"
442 DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS"
443 DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
444 if test "x$driglx_direct" = xyes; then
445 DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
447 if test "x$GXX" = xyes; then
448 CXXFLAGS="$CXXFLAGS -ansi -pedantic"
451 # ffb and gamma are missing because they have not been converted
452 # to use the new interface.
453 if test "x$DRI_DIRS" = x; then
454 DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \
455 unichrome savage sis"
459 DRI_DIRS=`echo "$DRI_DIRS" | $SED 's/ */ /g'`
464 AC_ARG_WITH(expat, AS_HELP_STRING([--with-expat=DIR],
465 [expat install directory]),[
466 EXPAT_INCLUDES="-I$withval/include"
467 CPPFLAGS="$CPPFLAGS $EXPAT_INCLUDES"
468 LDFLAGS="$LDFLAGS -L$withval/$LIB_DIR"
469 EXPAT_LIB="-L$withval/$LIB_DIR -lexpat"
471 AC_CHECK_HEADER(expat.h,,AC_MSG_ERROR([Expat required for DRI.]))
472 AC_CHECK_LIB(expat, XML_ParserCreate,,
473 AC_MSG_ERROR([Expat required for DRI.]))
475 # put all the necessary libs together
476 DRI_LIB_DEPS="$LIBDRM_LIBS $EXPAT_LIB -lm -lpthread -ldl"
479 AC_SUBST(EXPAT_INCLUDES)
480 AC_SUBST(DRI_LIB_DEPS)
483 dnl OSMesa configuration
485 if test "$mesa_driver" = x11; then
486 default_x11_osmesa=yes
488 default_x11_osmesa=no
490 AC_ARG_ENABLE(x11-osmesa,
491 [AS_HELP_STRING([--disable-x11-osmesa],
492 [enable OSMesa on X11 libGL @<:@default=enabled for x11 driver@:>@])],
493 x11_osmesa="$enableval",
494 x11_osmesa="$default_x11_osmesa")
495 if test "x$x11_osmesa" = xyes; then
496 if test "$mesa_driver" = x11; then
497 DRIVER_DIRS="$DRIVER_DIRS osmesa"
499 AC_MSG_ERROR([Can only enable OSMesa on libGL for X11])
503 dnl Configure the channel bits for OSMesa (libOSMesa, libOSMesa16, ...)
504 AC_ARG_WITH(osmesa-bits,
505 [AS_HELP_STRING([--with-osmesa-bits=BITS],
506 [OSMesa channel bits and library name: 8, 16, 32 @<:@default=8@:>@])],
507 osmesa_bits="$withval",
509 if test "$mesa_driver" != osmesa && test "x$osmesa_bits" != x8; then
510 AC_MSG_WARN([Ignoring OSMesa channel bits for non-OSMesa driver])
513 case "x$osmesa_bits" in
518 OSMESA_LIB="OSMesa$osmesa_bits"
519 DEFINES="$DEFINES -DCHAN_BITS=$osmesa_bits -DDEFAULT_SOFTWARE_DEPTH_BITS=31"
522 AC_MSG_ERROR([OSMesa bits '$osmesa_bits' is not a valid option])
527 case "$mesa_driver" in
529 # only link librararies with osmesa if shared
530 if test "$enable_static" = no; then
531 OSMESA_LIB_DEPS="-lm -lpthread"
538 # Link OSMesa to libGL otherwise
540 # only link librararies with osmesa if shared
541 if test "$enable_static" = no; then
542 OSMESA_MESA_DEPS='-l$(GL_LIB)'
548 AC_SUBST(OSMESA_LIB_DEPS)
549 AC_SUBST(OSMESA_MESA_DEPS)
552 dnl GLU configuration
555 [AS_HELP_STRING([--disable-glu],
556 [enable OpenGL Utility library @<:@default=enabled@:>@])],
557 enable_glu="$enableval",
559 if test "x$enable_glu" = xyes; then
560 SRC_DIRS="$SRC_DIRS glu"
562 case "$mesa_driver" in
564 # If GLU is available and we have libOSMesa (not 16 or 32),
565 # we can build the osdemos
566 if test "$with_demos" = yes && test "$osmesa_bits" = 8; then
567 PROGRAM_DIRS="$PROGRAM_DIRS osdemos"
570 # Link libGLU to libOSMesa instead of libGL
572 if test "$enable_static" = no; then
573 GLU_MESA_DEPS='-l$(OSMESA_LIB)'
579 # If GLU is available, we can build the xdemos
580 if test "$with_demos" = yes; then
581 PROGRAM_DIRS="$PROGRAM_DIRS xdemos"
584 # If static, empty GLU_LIB_DEPS and add libs for programs to link
585 if test "$enable_static" = no; then
587 GLU_MESA_DEPS='-l$(GL_LIB)'
591 APP_LIB_DEPS="$APP_LIB_DEPS -lstdc++"
596 AC_SUBST(GLU_LIB_DEPS)
597 AC_SUBST(GLU_MESA_DEPS)
600 dnl GLw configuration
603 [AS_HELP_STRING([--disable-glw],
604 [enable Xt/Motif widget library @<:@default=enabled@:>@])],
605 enable_glw="$enableval",
607 dnl Don't build GLw on osmesa
608 if test "x$enable_glw" = xyes && test "$mesa_driver" = osmesa; then
609 AC_MSG_WARN([Disabling GLw since the driver is OSMesa])
612 if test "x$enable_glw" = xyes; then
613 SRC_DIRS="$SRC_DIRS glw"
614 if test "$x11_pkgconfig" = yes; then
615 PKG_CHECK_MODULES(GLW, x11 xt)
616 GLW_LIB_DEPS="$GLW_LIBS"
618 # should check these...
619 GLW_LIB_DEPS="$X_LIBS -lX11 -lXt"
622 # If static, empty GLW_LIB_DEPS and add libs for programs to link
623 if test "$enable_static" = no; then
624 GLW_MESA_DEPS='-l$(GL_LIB)'
626 APP_LIB_DEPS="$APP_LIB_DEPS $GLW_LIB_DEPS"
631 AC_SUBST(GLW_LIB_DEPS)
632 AC_SUBST(GLW_MESA_DEPS)
635 dnl GLUT configuration
637 if test -f "$srcdir/include/GL/glut.h"; then
643 [AS_HELP_STRING([--disable-glut],
644 [enable GLUT library @<:@default=enabled if source available@:>@])],
645 enable_glut="$enableval",
646 enable_glut="$default_glut")
648 dnl Can't build glut if GLU not available
649 if test "x$enable_glu$enable_glut" = xnoyes; then
650 AC_MSG_WARN([Disabling glut since GLU is disabled])
653 dnl Don't build glut on osmesa
654 if test "x$enable_glut" = xyes && test "$mesa_driver" = osmesa; then
655 AC_MSG_WARN([Disabling glut since the driver is OSMesa])
659 if test "x$enable_glut" = xyes; then
660 SRC_DIRS="$SRC_DIRS glut/glx"
662 if test "x$GCC" = xyes; then
663 GLUT_CFLAGS="-fexceptions"
665 if test "$x11_pkgconfig" = yes; then
666 PKG_CHECK_MODULES(GLUT, x11 xmu xi)
667 GLUT_LIB_DEPS="$GLUT_LIBS"
669 # should check these...
670 GLUT_LIB_DEPS="$X_LIBS -lX11 -lXmu -lXi"
672 GLUT_LIB_DEPS="$GLUT_LIB_DEPS -lm"
674 # If glut is available, we can build most programs
675 if test "$with_demos" = yes; then
676 PROGRAM_DIRS="$PROGRAM_DIRS demos redbook samples glsl"
679 # If static, empty GLUT_LIB_DEPS and add libs for programs to link
680 if test "$enable_static" = no; then
681 GLUT_MESA_DEPS='-l$(GLU_LIB) -l$(GL_LIB)'
683 APP_LIB_DEPS="$APP_LIB_DEPS $GLUT_LIB_DEPS"
688 AC_SUBST(GLUT_LIB_DEPS)
689 AC_SUBST(GLUT_MESA_DEPS)
690 AC_SUBST(GLUT_CFLAGS)
693 dnl Program library dependencies
694 dnl Only libm is added here if necessary as the libraries should
695 dnl be pulled in by the linker
697 if test "x$APP_LIB_DEPS" = x; then
700 AC_SUBST(APP_LIB_DEPS)
701 AC_SUBST(PROGRAM_DIRS)
703 dnl Arch/platform-specific settings
710 AC_SUBST(ASM_SOURCES)
717 ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
718 ASM_SOURCES='$(X86_SOURCES)'
722 ASM_FLAGS="-DUSE_X86_64_ASM"
723 ASM_SOURCES='$(X86-64_SOURCES)'
724 ASM_API='$(X86-64_API)'
727 ASM_FLAGS="-DUSE_PPC_ASM -DUSE_VMX_ASM"
728 ASM_SOURCES='$(PPC_SOURCES)'
737 ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
738 ASM_SOURCES='$(X86_SOURCES)'
742 ASM_FLAGS="-DUSE_X86_64_ASM"
743 ASM_SOURCES='$(X86-64_SOURCES)'
744 ASM_API='$(X86-64_API)'
750 dnl Restore LDFLAGS and CPPFLAGS
751 LDFLAGS="$_SAVE_LDFLAGS"
752 CPPFLAGS="$_SAVE_CPPFLAGS"
754 dnl Substitute the config
755 AC_OUTPUT([configs/autoconf])
757 dnl Replace the configs/current symlink
758 if test -f configs/current || test -L configs/current; then
759 rm -f configs/current
761 ln -s autoconf configs/current
764 dnl Output some configuration info for the user
767 echo " prefix: $prefix"
768 echo " exec_prefix: $exec_prefix"
769 echo " libdir: $libdir"
773 echo " Driver: $mesa_driver"
774 case "$mesa_driver" in
776 if echo "$DRIVER_DIRS" | grep 'osmesa' >/dev/null 2>&1; then
777 echo " OSMesa: lib$OSMESA_LIB"
783 # cleanup the drivers var
784 dri_dirs=`echo $DRI_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'`
785 echo " DRI drivers: $dri_dirs"
786 echo " DRI driver dir: $DRI_DRIVER_INSTALL_DIR"
792 echo " Shared libs: $enable_shared"
793 echo " Static libs: $enable_static"
794 echo " GLU: $enable_glu"
795 echo " GLw: $enable_glw"
796 echo " glut: $enable_glut"
799 # cleanup the programs var for display
800 program_dirs=`echo $PROGRAM_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'`
801 if test "x$program_dirs" = x; then
804 echo " Demos: $program_dirs"
808 # cleanup the CFLAGS/CXXFLAGS/DEFINES vars
809 cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
810 $SED 's/^ *//;s/ */ /;s/ *$//'`
811 cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
812 $SED 's/^ *//;s/ */ /;s/ *$//'`
813 defines=`echo $DEFINES $ASM_FLAGS | $SED 's/^ *//;s/ */ /;s/ *$//'`
815 echo " CFLAGS: $cflags"
816 echo " CXXFLAGS: $cxxflags"
817 echo " Macros: $defines"
820 echo " Run 'make' to build Mesa"