Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 1 | dnl Process this file with autoconf to create configure. |
| 2 | |
| 3 | AC_PREREQ(2.59) |
| 4 | |
| 5 | dnl Versioning |
| 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()]) |
| 11 | |
| 12 | AC_INIT(Mesa, mesa_version(), mesa3d@sourceforge.net) |
| 13 | AC_CONFIG_AUX_DIR(bin) |
| 14 | AC_CANONICAL_HOST |
| 15 | |
| 16 | dnl Substitute the version number into shell variables |
| 17 | MESA_MAJOR=mesa_major() |
| 18 | MESA_MINOR=mesa_minor() |
| 19 | MESA_TINY=mesa_tiny() |
| 20 | AC_SUBST(MESA_MAJOR) |
| 21 | AC_SUBST(MESA_MINOR) |
| 22 | AC_SUBST(MESA_TINY) |
| 23 | |
| 24 | dnl Check for progs |
| 25 | AC_PROG_CPP |
| 26 | AC_PROG_CC |
| 27 | AC_PROG_CXX |
| 28 | AC_PATH_PROG(MAKE, make) |
| 29 | AC_PATH_PROG(MKDEP, makedepend) |
| 30 | AC_PATH_PROG(SED, sed) |
Dan Nicholson | 41b0070 | 2007-12-12 08:48:30 -0800 | [diff] [blame^] | 31 | |
| 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'?])] |
| 36 | ) |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 37 | PKG_PROG_PKG_CONFIG() |
| 38 | |
| 39 | dnl LIB_DIR - library basename |
| 40 | LIB_DIR=`echo $libdir | $SED 's%.*/%%'` |
| 41 | AC_SUBST(LIB_DIR) |
| 42 | |
| 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) |
| 47 | |
| 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) |
| 52 | |
| 53 | dnl Compiler macros |
| 54 | DEFINES="" |
| 55 | AC_SUBST(DEFINES) |
| 56 | if test "x$GCC" = xyes; then |
| 57 | DEFINES="-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE" |
| 58 | fi |
| 59 | case "$host_os" in |
| 60 | linux*) |
| 61 | DEFINES="$DEFINES -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN" |
| 62 | ;; |
| 63 | esac |
| 64 | |
| 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" |
| 68 | fi |
| 69 | if test "x$GXX" = xyes; then |
| 70 | CXXFLAGS="$CXXFLAGS -Wall" |
| 71 | fi |
| 72 | |
| 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.]) |
| 78 | AC_SUBST(OPT_FLAGS) |
| 79 | AC_SUBST(ARCH_FLAGS) |
| 80 | |
| 81 | dnl |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 82 | dnl shared/static libraries, mimic libtool options |
| 83 | dnl |
| 84 | AC_ARG_ENABLE(static, |
| 85 | [AS_HELP_STRING([--enable-static], |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 86 | [build static libraries @<:@default=disabled@:>@])], |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 87 | enable_static="$enableval", |
| 88 | enable_static=no |
| 89 | ) |
| 90 | case "x$enable_static" in |
| 91 | xyes|xno ) ;; |
| 92 | x ) enable_static=no ;; |
| 93 | * ) |
| 94 | AC_MSG_ERROR([Static library option '$enable_static' is not a valid]) |
| 95 | ;; |
| 96 | esac |
| 97 | AC_ARG_ENABLE(shared, |
| 98 | [AS_HELP_STRING([--disable-shared], |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 99 | [build shared libraries @<:@default=enabled@:>@])], |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 100 | enable_shared="$enableval", |
| 101 | enable_shared=yes |
| 102 | ) |
| 103 | case "x$enable_shared" in |
| 104 | xyes|xno ) ;; |
| 105 | x ) enable_shared=yes ;; |
| 106 | * ) |
| 107 | AC_MSG_ERROR([Shared library option '$enable_shared' is not a valid]) |
| 108 | ;; |
| 109 | esac |
| 110 | |
| 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 |
| 115 | xyesyes ) |
| 116 | AC_MSG_WARN([Can't build static and shared libraries, disabling shared]) |
| 117 | enable_shared=no |
| 118 | ;; |
| 119 | xnono ) |
| 120 | AC_MSG_WARN([Can't disable both static and shared libraries, enabling static]) |
| 121 | enable_static=yes |
| 122 | ;; |
| 123 | esac |
| 124 | |
| 125 | dnl |
| 126 | dnl mklib options |
| 127 | dnl |
| 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" |
| 131 | fi |
| 132 | AC_SUBST(MKLIB_OPTIONS) |
| 133 | |
| 134 | |
| 135 | dnl |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 136 | dnl library names |
| 137 | dnl |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 138 | if test "$enable_static" = yes; then |
| 139 | GL_LIB_NAME='lib$(GL_LIB).a' |
| 140 | GLU_LIB_NAME='lib$(GLU_LIB).a' |
| 141 | GLUT_LIB_NAME='lib$(GLUT_LIB).a' |
| 142 | GLW_LIB_NAME='lib$(GLW_LIB).a' |
| 143 | OSMESA_LIB_NAME='lib$(OSMESA_LIB).a' |
| 144 | else |
| 145 | GL_LIB_NAME='lib$(GL_LIB).so' |
| 146 | GLU_LIB_NAME='lib$(GLU_LIB).so' |
| 147 | GLUT_LIB_NAME='lib$(GLUT_LIB).so' |
| 148 | GLW_LIB_NAME='lib$(GLW_LIB).so' |
| 149 | OSMESA_LIB_NAME='lib$(OSMESA_LIB).so' |
| 150 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 151 | AC_SUBST(GL_LIB_NAME) |
| 152 | AC_SUBST(GLU_LIB_NAME) |
| 153 | AC_SUBST(GLUT_LIB_NAME) |
| 154 | AC_SUBST(GLW_LIB_NAME) |
| 155 | AC_SUBST(OSMESA_LIB_NAME) |
| 156 | |
| 157 | dnl |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 158 | dnl Driver configuration. Options are x11 (Xlib), dri and osmesa right now. |
| 159 | dnl More later: directfb, fbdev, ... |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 160 | dnl |
| 161 | AC_ARG_WITH(driver, |
| 162 | [AS_HELP_STRING([--with-driver=DRIVER], |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 163 | [driver for Mesa: x11,dri,osmesa @<:@default=x11@:>@])], |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 164 | mesa_driver="$withval", |
| 165 | mesa_driver="x11") |
| 166 | dnl Check for valid option |
| 167 | case "x$mesa_driver" in |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 168 | xx11|xdri|xosmesa) |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 169 | ;; |
| 170 | *) |
| 171 | AC_MSG_ERROR([Driver '$mesa_driver' is not a valid option]) |
| 172 | ;; |
| 173 | esac |
| 174 | |
| 175 | dnl |
| 176 | dnl Driver specific build directories |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 177 | dnl |
| 178 | SRC_DIRS="mesa" |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 179 | GLU_DIRS="sgi" |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 180 | WINDOW_SYSTEM="" |
| 181 | case "$mesa_driver" in |
| 182 | x11) |
| 183 | DRIVER_DIRS="x11" |
| 184 | ;; |
| 185 | dri) |
| 186 | SRC_DIRS="glx/x11 $SRC_DIRS" |
| 187 | DRIVER_DIRS="dri" |
| 188 | WINDOW_SYSTEM="dri" |
| 189 | ;; |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 190 | osmesa) |
| 191 | DRIVER_DIRS="osmesa" |
| 192 | ;; |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 193 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 194 | AC_SUBST(SRC_DIRS) |
| 195 | AC_SUBST(GLU_DIRS) |
| 196 | AC_SUBST(DRIVER_DIRS) |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 197 | AC_SUBST(WINDOW_SYSTEM) |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 198 | |
| 199 | dnl |
Dan Nicholson | 8e4d147 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 200 | dnl User supplied program configuration |
| 201 | dnl |
| 202 | if test -d "$srcdir/progs/demos"; then |
| 203 | default_demos=yes |
| 204 | else |
| 205 | default_demos=no |
| 206 | fi |
| 207 | AC_ARG_WITH(demos, |
| 208 | [AS_HELP_STRING([--with-demos@<:@=DIRS...@:>@], |
| 209 | [optional comma delimited demo directories to build |
| 210 | @<:@default=yes if source available@:>@])], |
| 211 | with_demos="$withval", |
| 212 | with_demos="$default_demos") |
| 213 | if test "x$with_demos" = x; then |
| 214 | with_demos=no |
| 215 | fi |
| 216 | |
| 217 | dnl If $with_demos is yes, directories will be added as libs available |
| 218 | PROGRAM_DIRS="" |
| 219 | case "$with_demos" in |
| 220 | no|yes) ;; |
| 221 | *) |
| 222 | # verify the requested demos directories exist |
| 223 | demos=`IFS=,; echo $with_demos` |
| 224 | for demo in $demos; do |
| 225 | test -d "$srcdir/progs/$demo" || \ |
| 226 | AC_MSG_ERROR([Program directory '$demo' doesn't exist]) |
| 227 | done |
| 228 | PROGRAM_DIRS="$demos" |
| 229 | ;; |
| 230 | esac |
| 231 | |
| 232 | dnl |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 233 | dnl Find out if X is available. The variables have_x or no_x will be |
| 234 | dnl set and used later in the driver setups |
| 235 | dnl |
| 236 | if test -n "$PKG_CONFIG"; then |
| 237 | AC_MSG_CHECKING([pkg-config files for X11 are available]) |
| 238 | if $PKG_CONFIG --exists x11; then |
| 239 | x11_pkgconfig=yes |
| 240 | have_x=yes |
| 241 | AC_MSG_RESULT(yes) |
| 242 | else |
| 243 | x11_pkgconfig=no |
| 244 | no_x=yes |
| 245 | AC_MSG_RESULT(no) |
| 246 | fi |
| 247 | else |
| 248 | x11_pkgconfig=no |
| 249 | fi |
| 250 | dnl Use the autoconf macro if no pkg-config files |
| 251 | if test "$x11_pkgconfig" = no; then |
| 252 | AC_PATH_XTRA |
| 253 | fi |
| 254 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 255 | dnl We need X for xlib and dri, so bomb now if it's not found |
| 256 | case "$mesa_driver" in |
| 257 | x11|dri) |
| 258 | if test "$no_x" = yes; then |
| 259 | AC_MSG_ERROR([X11 development libraries needed for $mesa_driver driver]) |
| 260 | fi |
| 261 | ;; |
| 262 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 263 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 264 | dnl |
| 265 | dnl libGL configuration per driver |
| 266 | dnl |
| 267 | case "$mesa_driver" in |
| 268 | x11) |
| 269 | if test "$x11_pkgconfig" = yes; then |
| 270 | PKG_CHECK_MODULES(X11GL, x11 xext) |
| 271 | X11_INCLUDES="$X11_INCLUDES $X11GL_CFLAGS" |
| 272 | GL_LIB_DEPS="$X11GL_LIBS" |
| 273 | else |
| 274 | # should check these... |
| 275 | X11_INCLUDES="$X11_INCLUDES $X_CFLAGS" |
| 276 | GL_LIB_DEPS="$X_LIBS -lX11 -lXext" |
| 277 | fi |
| 278 | GL_LIB_DEPS="$GL_LIB_DEPS -lm -lpthread" |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 279 | |
| 280 | # if static, move the external libraries to the programs |
| 281 | # and empty the libraries for libGL |
| 282 | if test "$enable_static" = yes; then |
| 283 | APP_LIB_DEPS="$APP_LIB_DEPS $GL_LIB_DEPS" |
| 284 | GL_LIB_DEPS="" |
| 285 | fi |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 286 | ;; |
| 287 | dri) |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 288 | # DRI must be shared, I think |
| 289 | if test "$enable_static" = yes; then |
| 290 | AC_MSG_ERROR([Can't use static libraries for DRI drivers]) |
| 291 | fi |
| 292 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 293 | # Check for libdrm |
| 294 | PKG_CHECK_MODULES(LIBDRM, libdrm) |
| 295 | |
| 296 | # find the DRI deps for libGL |
| 297 | if test "$x11_pkgconfig" = yes; then |
| 298 | PKG_CHECK_MODULES(DRIGL, x11 xext xxf86vm xdamage xfixes) |
| 299 | X11_INCLUDES="$X11_INCLUDES $DRIGL_CFLAGS" |
| 300 | GL_LIB_DEPS="$DRIGL_LIBS" |
| 301 | else |
| 302 | # should check these... |
| 303 | X11_INCLUDES="$X11_INCLUDES $X_CFLAGS" |
| 304 | GL_LIB_DEPS="$X_LIBS -lX11 -lXext -lXxf86vm -lXdamage -lXfixes" |
| 305 | fi |
| 306 | |
| 307 | # need DRM libs, -lpthread, etc. |
| 308 | GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm -lpthread -ldl" |
| 309 | ;; |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 310 | osmesa) |
| 311 | # No libGL for osmesa |
| 312 | GL_LIB_DEPS="" |
| 313 | ;; |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 314 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 315 | AC_SUBST(GL_LIB_DEPS) |
| 316 | |
| 317 | dnl |
| 318 | dnl More X11 setup |
| 319 | dnl |
| 320 | if test "$mesa_driver" = x11; then |
| 321 | DEFINES="$DEFINES -DUSE_XSHM" |
| 322 | fi |
| 323 | |
| 324 | dnl |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 325 | dnl More DRI setup |
| 326 | dnl |
| 327 | AC_ARG_ENABLE(glx-tls, |
| 328 | [AS_HELP_STRING([--enable-glx-tls], |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 329 | [enable TLS support in GLX @<:@default=disabled@:>@])], |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 330 | GLX_USE_TLS="$enableval", |
| 331 | GLX_USE_TLS=no) |
| 332 | dnl Directory for DRI drivers |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 333 | AC_ARG_WITH(dri-driverdir, |
| 334 | [AS_HELP_STRING([--with-dri-driverdir=DIR], |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 335 | [directory for the DRI drivers @<:@/usr/X11R6/lib/modules/dri@:>@])], |
| 336 | DRI_DRIVER_INSTALL_DIR="$withval", |
| 337 | DRI_DRIVER_INSTALL_DIR='/usr/X11R6/lib/modules/dri') |
| 338 | AC_SUBST(DRI_DRIVER_INSTALL_DIR) |
| 339 | dnl Direct rendering or just indirect rendering |
| 340 | AC_ARG_ENABLE(driglx-direct, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 341 | [AS_HELP_STRING([--disable-driglx-direct], |
| 342 | [enable direct rendering in GLX for DRI @<:@default=enabled@:>@])], |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 343 | driglx_direct="$enableval", |
| 344 | driglx_direct="yes") |
| 345 | |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 346 | dnl Which drivers to build - default is chosen by platform |
| 347 | AC_ARG_WITH(dri-drivers, |
| 348 | [AS_HELP_STRING([--with-dri-drivers@<:@=DIRS...@:>@], |
| 349 | [comma delimited DRI drivers to build @<:@default=auto by platform@:>@])], |
| 350 | with_dri_drivers="$withval", |
| 351 | with_dri_drivers=yes) |
| 352 | if test "x$with_dri_drivers" = x; then |
| 353 | with_dri_drivers=no |
| 354 | fi |
| 355 | |
| 356 | dnl If $with_dri_drivers is yes, directories will be added through |
| 357 | dnl platform checks |
| 358 | DRI_DIRS="" |
| 359 | case "$with_dri_drivers" in |
| 360 | no|yes) ;; |
| 361 | *) |
| 362 | # verify the requested driver directories exist |
| 363 | dri_drivers=`IFS=,; echo $with_dri_drivers` |
| 364 | for driver in $dri_drivers; do |
| 365 | test -d "$srcdir/src/mesa/drivers/dri/$driver" || \ |
| 366 | AC_MSG_ERROR([DRI driver directory '$driver' doesn't exist]) |
| 367 | done |
| 368 | DRI_DIRS="$dri_drivers" |
| 369 | ;; |
| 370 | esac |
| 371 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 372 | dnl Just default to no EGL for now |
| 373 | USING_EGL=0 |
| 374 | AC_SUBST(USING_EGL) |
| 375 | |
| 376 | dnl Set DRI_DIRS, DEFINES and LIB_DEPS |
| 377 | if test "$mesa_driver" = dri; then |
| 378 | # Use TLS in GLX? |
| 379 | if test "x$GLX_USE_TLS" = xyes; then |
| 380 | DEFINES="$DEFINES -DGLX_USE_TLS -DPTHREADS" |
| 381 | fi |
| 382 | |
| 383 | if test "x$USING_EGL" = x1; then |
| 384 | PROGRAM_DIRS="egl" |
| 385 | fi |
| 386 | |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 387 | # default drivers |
| 388 | if test "x$DRI_DIRS" = x; then |
| 389 | DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \ |
| 390 | savage sis tdfx trident unichrome ffb" |
| 391 | fi |
| 392 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 393 | # Platform specific settings and drivers to build |
| 394 | case "$host_os" in |
| 395 | linux*) |
| 396 | DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER" |
| 397 | DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS" |
| 398 | if test "x$driglx_direct" = xyes; then |
| 399 | DEFINES="$DEFINES -DGLX_DIRECT_RENDERING" |
| 400 | fi |
| 401 | |
| 402 | case "$host_cpu" in |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 403 | x86_64) |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 404 | # ffb, gamma, and sis are missing because they have not be |
| 405 | # converted to use the new interface. i810 are missing |
| 406 | # because there is no x86-64 system where they could *ever* |
| 407 | # be used. |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 408 | if test "x$DRI_DIRS" = x; then |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 409 | DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 radeon \ |
| 410 | savage tdfx unichrome" |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 411 | fi |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 412 | ;; |
| 413 | powerpc*) |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 414 | # Build only the drivers for cards that exist on PowerPC. |
| 415 | # At some point MGA will be added, but not yet. |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 416 | if test "x$DRI_DIRS" = x; then |
| 417 | DRI_DIRS="mach64 r128 r200 r300 radeon tdfx" |
| 418 | fi |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 419 | ;; |
| 420 | esac |
| 421 | ;; |
| 422 | freebsd*) |
| 423 | DEFINES="$DEFINES -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1" |
| 424 | DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS" |
| 425 | DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING" |
| 426 | if test "x$driglx_direct" = xyes; then |
| 427 | DEFINES="$DEFINES -DGLX_DIRECT_RENDERING" |
| 428 | fi |
| 429 | if test "x$GXX" = xyes; then |
| 430 | CXXFLAGS="$CXXFLAGS -ansi -pedantic" |
| 431 | fi |
| 432 | |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 433 | # ffb and gamma are missing because they have not been converted |
| 434 | # to use the new interface. |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 435 | if test "x$DRI_DIRS" = x; then |
| 436 | DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \ |
| 437 | unichrome savage sis" |
| 438 | fi |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 439 | ;; |
| 440 | esac |
| 441 | DRI_DIRS=`echo "$DRI_DIRS" | $SED 's/ */ /g'` |
| 442 | |
| 443 | # Check for expat |
| 444 | EXPAT_INCLUDES="" |
| 445 | EXPAT_LIB=-lexpat |
| 446 | AC_ARG_WITH(expat, AS_HELP_STRING([--with-expat=DIR], |
| 447 | [expat install directory]),[ |
| 448 | EXPAT_INCLUDES="-I$withval/include" |
| 449 | CPPFLAGS="$CPPFLAGS $EXPAT_INCLUDES" |
| 450 | LDFLAGS="$LDFLAGS -L$withval/$LIB_DIR" |
| 451 | EXPAT_LIB="-L$withval/$LIB_DIR -lexpat" |
| 452 | ]) |
| 453 | AC_CHECK_HEADER(expat.h,,AC_MSG_ERROR([Expat required for DRI.])) |
| 454 | AC_CHECK_LIB(expat, XML_ParserCreate,, |
| 455 | AC_MSG_ERROR([Expat required for DRI.])) |
| 456 | |
| 457 | # put all the necessary libs together |
| 458 | DRI_LIB_DEPS="$LIBDRM_LIBS $EXPAT_LIB -lm -lpthread -ldl" |
| 459 | fi |
| 460 | AC_SUBST(DRI_DIRS) |
| 461 | AC_SUBST(EXPAT_INCLUDES) |
| 462 | AC_SUBST(DRI_LIB_DEPS) |
| 463 | |
| 464 | dnl |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 465 | dnl OSMesa configuration |
| 466 | dnl |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 467 | if test "$mesa_driver" = x11; then |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 468 | default_x11_osmesa=yes |
| 469 | else |
| 470 | default_x11_osmesa=no |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 471 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 472 | AC_ARG_ENABLE(x11-osmesa, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 473 | [AS_HELP_STRING([--disable-x11-osmesa], |
| 474 | [enable OSMesa on X11 libGL @<:@default=enabled for x11 driver@:>@])], |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 475 | x11_osmesa="$enableval", |
| 476 | x11_osmesa="$default_x11_osmesa") |
| 477 | if test "x$x11_osmesa" = xyes; then |
| 478 | if test "$mesa_driver" = x11; then |
| 479 | DRIVER_DIRS="$DRIVER_DIRS osmesa" |
| 480 | else |
| 481 | AC_MSG_ERROR([Can only enable OSMesa on libGL for X11]) |
| 482 | fi |
| 483 | fi |
| 484 | |
Dan Nicholson | 6689f9e | 2007-12-05 21:04:15 -0800 | [diff] [blame] | 485 | dnl Configure the channel bits for OSMesa (libOSMesa, libOSMesa16, ...) |
| 486 | AC_ARG_WITH(osmesa-bits, |
| 487 | [AS_HELP_STRING([--with-osmesa-bits=BITS], |
| 488 | [OSMesa channel bits and library name: 8, 16, 32 @<:@default=8@:>@])], |
| 489 | osmesa_bits="$withval", |
| 490 | osmesa_bits=8) |
| 491 | if test "$mesa_driver" != osmesa && test "x$osmesa_bits" != x8; then |
| 492 | AC_MSG_WARN([Ignoring OSMesa channel bits for non-OSMesa driver]) |
| 493 | osmesa_bits=8 |
| 494 | fi |
| 495 | case "x$osmesa_bits" in |
| 496 | x8) |
| 497 | OSMESA_LIB=OSMesa |
| 498 | ;; |
| 499 | x16|x32) |
| 500 | OSMESA_LIB="OSMesa$osmesa_bits" |
| 501 | DEFINES="$DEFINES -DCHAN_BITS=$osmesa_bits -DDEFAULT_SOFTWARE_DEPTH_BITS=31" |
| 502 | ;; |
| 503 | *) |
| 504 | AC_MSG_ERROR([OSMesa bits '$osmesa_bits' is not a valid option]) |
| 505 | ;; |
| 506 | esac |
| 507 | AC_SUBST(OSMESA_LIB) |
| 508 | |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 509 | case "$mesa_driver" in |
| 510 | osmesa) |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 511 | # only link librararies with osmesa if shared |
| 512 | if test "$enable_static" = no; then |
| 513 | OSMESA_LIB_DEPS="-lm -lpthread" |
| 514 | else |
| 515 | OSMESA_LIB_DEPS="" |
| 516 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 517 | OSMESA_MESA_DEPS="" |
| 518 | ;; |
| 519 | *) |
| 520 | # Link OSMesa to libGL otherwise |
| 521 | OSMESA_LIB_DEPS="" |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 522 | # only link librararies with osmesa if shared |
| 523 | if test "$enable_static" = no; then |
| 524 | OSMESA_MESA_DEPS='-l$(GL_LIB)' |
| 525 | else |
| 526 | OSMESA_MESA_DEPS="" |
| 527 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 528 | ;; |
| 529 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 530 | AC_SUBST(OSMESA_LIB_DEPS) |
| 531 | AC_SUBST(OSMESA_MESA_DEPS) |
| 532 | |
| 533 | dnl |
| 534 | dnl GLU configuration |
| 535 | dnl |
| 536 | AC_ARG_ENABLE(glu, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 537 | [AS_HELP_STRING([--disable-glu], |
| 538 | [enable OpenGL Utility library @<:@default=enabled@:>@])], |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 539 | enable_glu="$enableval", |
| 540 | enable_glu=yes) |
| 541 | if test "x$enable_glu" = xyes; then |
| 542 | SRC_DIRS="$SRC_DIRS glu" |
| 543 | |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 544 | case "$mesa_driver" in |
| 545 | osmesa) |
Dan Nicholson | 6689f9e | 2007-12-05 21:04:15 -0800 | [diff] [blame] | 546 | # If GLU is available and we have libOSMesa (not 16 or 32), |
| 547 | # we can build the osdemos |
Dan Nicholson | 8e4d147 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 548 | if test "$with_demos" = yes && test "$osmesa_bits" = 8; then |
Dan Nicholson | 6689f9e | 2007-12-05 21:04:15 -0800 | [diff] [blame] | 549 | PROGRAM_DIRS="$PROGRAM_DIRS osdemos" |
| 550 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 551 | |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 552 | # Link libGLU to libOSMesa instead of libGL |
| 553 | GLU_LIB_DEPS="" |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 554 | if test "$enable_static" = no; then |
| 555 | GLU_MESA_DEPS='-l$(OSMESA_LIB)' |
| 556 | else |
| 557 | GLU_MESA_DEPS="" |
| 558 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 559 | ;; |
| 560 | *) |
| 561 | # If GLU is available, we can build the xdemos |
Dan Nicholson | 8e4d147 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 562 | if test "$with_demos" = yes; then |
| 563 | PROGRAM_DIRS="$PROGRAM_DIRS xdemos" |
| 564 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 565 | |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 566 | # If static, empty GLU_LIB_DEPS and add libs for programs to link |
| 567 | if test "$enable_static" = no; then |
| 568 | GLU_LIB_DEPS="-lm" |
| 569 | GLU_MESA_DEPS='-l$(GL_LIB)' |
| 570 | else |
| 571 | GLU_LIB_DEPS="" |
| 572 | GLU_MESA_DEPS="" |
| 573 | APP_LIB_DEPS="$APP_LIB_DEPS -lstdc++" |
| 574 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 575 | ;; |
| 576 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 577 | fi |
| 578 | AC_SUBST(GLU_LIB_DEPS) |
| 579 | AC_SUBST(GLU_MESA_DEPS) |
| 580 | |
| 581 | dnl |
| 582 | dnl GLw configuration |
| 583 | dnl |
| 584 | AC_ARG_ENABLE(glw, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 585 | [AS_HELP_STRING([--disable-glw], |
| 586 | [enable Xt/Motif widget library @<:@default=enabled@:>@])], |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 587 | enable_glw="$enableval", |
| 588 | enable_glw=yes) |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 589 | dnl Don't build GLw on osmesa |
| 590 | if test "x$enable_glw" = xyes && test "$mesa_driver" = osmesa; then |
| 591 | AC_MSG_WARN([Disabling GLw since the driver is OSMesa]) |
| 592 | enable_glw=no |
| 593 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 594 | if test "x$enable_glw" = xyes; then |
| 595 | SRC_DIRS="$SRC_DIRS glw" |
| 596 | if test "$x11_pkgconfig" = yes; then |
| 597 | PKG_CHECK_MODULES(GLW, x11 xt) |
| 598 | GLW_LIB_DEPS="$GLW_LIBS" |
| 599 | else |
| 600 | # should check these... |
| 601 | GLW_LIB_DEPS="$X_LIBS -lX11 -lXt" |
| 602 | fi |
| 603 | |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 604 | # If static, empty GLW_LIB_DEPS and add libs for programs to link |
| 605 | if test "$enable_static" = no; then |
| 606 | GLW_MESA_DEPS='-l$(GL_LIB)' |
| 607 | else |
| 608 | APP_LIB_DEPS="$APP_LIB_DEPS $GLW_LIB_DEPS" |
| 609 | GLW_LIB_DEPS="" |
| 610 | GLW_MESA_DEPS="" |
| 611 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 612 | fi |
| 613 | AC_SUBST(GLW_LIB_DEPS) |
| 614 | AC_SUBST(GLW_MESA_DEPS) |
| 615 | |
| 616 | dnl |
| 617 | dnl GLUT configuration |
| 618 | dnl |
| 619 | if test -f "$srcdir/include/GL/glut.h"; then |
| 620 | default_glut=yes |
| 621 | else |
| 622 | default_glut=no |
| 623 | fi |
| 624 | AC_ARG_ENABLE(glut, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 625 | [AS_HELP_STRING([--disable-glut], |
| 626 | [enable GLUT library @<:@default=enabled if source available@:>@])], |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 627 | enable_glut="$enableval", |
| 628 | enable_glut="$default_glut") |
| 629 | |
| 630 | dnl Can't build glut if GLU not available |
| 631 | if test "x$enable_glu$enable_glut" = xnoyes; then |
| 632 | AC_MSG_WARN([Disabling glut since GLU is disabled]) |
| 633 | enable_glut=no |
| 634 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 635 | dnl Don't build glut on osmesa |
| 636 | if test "x$enable_glut" = xyes && test "$mesa_driver" = osmesa; then |
| 637 | AC_MSG_WARN([Disabling glut since the driver is OSMesa]) |
| 638 | enable_glut=no |
| 639 | fi |
| 640 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 641 | if test "x$enable_glut" = xyes; then |
| 642 | SRC_DIRS="$SRC_DIRS glut/glx" |
| 643 | GLUT_CFLAGS="" |
| 644 | if test "x$GCC" = xyes; then |
| 645 | GLUT_CFLAGS="-fexceptions" |
| 646 | fi |
| 647 | if test "$x11_pkgconfig" = yes; then |
Dan Nicholson | 70d0c83 | 2007-12-07 11:12:20 -0800 | [diff] [blame] | 648 | PKG_CHECK_MODULES(GLUT, x11 xmu xi) |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 649 | GLUT_LIB_DEPS="$GLUT_LIBS" |
| 650 | else |
| 651 | # should check these... |
Dan Nicholson | 70d0c83 | 2007-12-07 11:12:20 -0800 | [diff] [blame] | 652 | GLUT_LIB_DEPS="$X_LIBS -lX11 -lXmu -lXi" |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 653 | fi |
| 654 | GLUT_LIB_DEPS="$GLUT_LIB_DEPS -lm" |
| 655 | |
| 656 | # If glut is available, we can build most programs |
Dan Nicholson | 8e4d147 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 657 | if test "$with_demos" = yes; then |
| 658 | PROGRAM_DIRS="$PROGRAM_DIRS demos redbook samples glsl" |
| 659 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 660 | |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 661 | # If static, empty GLUT_LIB_DEPS and add libs for programs to link |
| 662 | if test "$enable_static" = no; then |
| 663 | GLUT_MESA_DEPS='-l$(GLU_LIB) -l$(GL_LIB)' |
| 664 | else |
| 665 | APP_LIB_DEPS="$APP_LIB_DEPS $GLUT_LIB_DEPS" |
| 666 | GLUT_LIB_DEPS="" |
| 667 | GLUT_MESA_DEPS="" |
| 668 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 669 | fi |
| 670 | AC_SUBST(GLUT_LIB_DEPS) |
| 671 | AC_SUBST(GLUT_MESA_DEPS) |
| 672 | AC_SUBST(GLUT_CFLAGS) |
| 673 | |
| 674 | dnl |
| 675 | dnl Program library dependencies |
| 676 | dnl Only libm is added here if necessary as the libraries should |
| 677 | dnl be pulled in by the linker |
| 678 | dnl |
| 679 | if test "x$APP_LIB_DEPS" = x; then |
| 680 | APP_LIB_DEPS="-lm" |
| 681 | fi |
| 682 | AC_SUBST(APP_LIB_DEPS) |
| 683 | AC_SUBST(PROGRAM_DIRS) |
| 684 | |
| 685 | dnl Arch/platform-specific settings |
| 686 | PIC_FLAGS="" |
| 687 | ASM_FLAGS="" |
| 688 | ASM_SOURCES="" |
| 689 | ASM_API="" |
| 690 | AC_SUBST(PIC_FLAGS) |
| 691 | AC_SUBST(ASM_FLAGS) |
| 692 | AC_SUBST(ASM_SOURCES) |
| 693 | AC_SUBST(ASM_API) |
| 694 | case "$host_os" in |
| 695 | linux*) |
| 696 | PIC_FLAGS="-fPIC" |
| 697 | case "$host_cpu" in |
| 698 | i*86) |
| 699 | ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM" |
| 700 | ASM_SOURCES='$(X86_SOURCES)' |
| 701 | ASM_API='$(X86_API)' |
| 702 | ;; |
| 703 | x86_64) |
| 704 | ASM_FLAGS="-DUSE_X86_64_ASM" |
| 705 | ASM_SOURCES='$(X86-64_SOURCES)' |
| 706 | ASM_API='$(X86-64_API)' |
| 707 | ;; |
| 708 | powerpc) |
| 709 | ASM_FLAGS="-DUSE_PPC_ASM -DUSE_VMX_ASM" |
| 710 | ASM_SOURCES='$(PPC_SOURCES)' |
| 711 | ;; |
| 712 | esac |
| 713 | ;; |
| 714 | freebsd*) |
| 715 | PIC_FLAGS="-fPIC" |
| 716 | case "$host_os" in |
| 717 | i*86) |
| 718 | PIC_FLAGS="" |
| 719 | ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM" |
| 720 | ASM_SOURCES='$(X86_SOURCES)' |
| 721 | ASM_API='$(X86_API)' |
| 722 | ;; |
| 723 | x86_64) |
| 724 | ASM_FLAGS="-DUSE_X86_64_ASM" |
| 725 | ASM_SOURCES='$(X86-64_SOURCES)' |
| 726 | ASM_API='$(X86-64_API)' |
| 727 | ;; |
| 728 | esac |
| 729 | ;; |
| 730 | esac |
| 731 | |
| 732 | dnl Restore LDFLAGS and CPPFLAGS |
| 733 | LDFLAGS="$_SAVE_LDFLAGS" |
| 734 | CPPFLAGS="$_SAVE_CPPFLAGS" |
| 735 | |
| 736 | dnl Substitute the config |
| 737 | AC_OUTPUT([configs/autoconf]) |
| 738 | |
Dan Nicholson | aab38cf | 2007-12-11 08:21:51 -0800 | [diff] [blame] | 739 | dnl Replace the configs/current symlink |
| 740 | if test -f configs/current || test -L configs/current; then |
| 741 | rm -f configs/current |
| 742 | fi |
| 743 | ln -s autoconf configs/current |
| 744 | |
Dan Nicholson | 9cad8e3 | 2007-11-30 08:49:57 -0800 | [diff] [blame] | 745 | dnl |
| 746 | dnl Output some configuration info for the user |
| 747 | dnl |
| 748 | echo "" |
| 749 | echo " prefix: $prefix" |
| 750 | echo " exec_prefix: $exec_prefix" |
| 751 | echo " libdir: $libdir" |
| 752 | |
| 753 | dnl Driver info |
| 754 | echo "" |
| 755 | echo " Driver: $mesa_driver" |
| 756 | case "$mesa_driver" in |
| 757 | x11|osmesa) |
| 758 | if echo "$DRIVER_DIRS" | grep 'osmesa' >/dev/null 2>&1; then |
| 759 | echo " OSMesa: lib$OSMESA_LIB" |
| 760 | else |
| 761 | echo " OSMesa: no" |
| 762 | fi |
| 763 | ;; |
| 764 | dri) |
| 765 | # cleanup the drivers var |
| 766 | dri_dirs=`echo $DRI_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'` |
| 767 | echo " DRI drivers: $dri_dirs" |
| 768 | echo " DRI driver dir: $DRI_DRIVER_INSTALL_DIR" |
| 769 | ;; |
| 770 | esac |
| 771 | |
| 772 | dnl Libraries |
| 773 | echo "" |
| 774 | echo " Shared libs: $enable_shared" |
| 775 | echo " Static libs: $enable_static" |
| 776 | echo " GLU: $enable_glu" |
| 777 | echo " GLw: $enable_glw" |
| 778 | echo " glut: $enable_glut" |
| 779 | |
| 780 | dnl Programs |
| 781 | # cleanup the programs var for display |
| 782 | program_dirs=`echo $PROGRAM_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'` |
| 783 | if test "x$program_dirs" = x; then |
| 784 | echo " Demos: no" |
| 785 | else |
| 786 | echo " Demos: $program_dirs" |
| 787 | fi |
| 788 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 789 | echo "" |
Dan Nicholson | aab38cf | 2007-12-11 08:21:51 -0800 | [diff] [blame] | 790 | echo " Run 'make' to build Mesa" |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 791 | echo "" |