summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-10-09 17:24:37 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-10-09 17:24:37 -0700
commitcde68728860179dc84e615ccb378ce992513fd62 (patch)
tree04a7b770a8bc18741ca2b343655213fefaf022d2 /configure.ac
parent89987cadb1cd3ba9575895d95f21637b3c33d9e3 (diff)
Use bash on Solaris to run symlink-mesa.sh
symlink-mesa.sh won't run with Solaris Bourne Shell (/bin/sh) so explicitly run it with /usr/bin/bash instead
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 43480c70d..7222106ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -582,7 +582,12 @@ if test "x$GLX" = xyes && ! test "x$MESA_SOURCE" = x; then
AC_DEFINE(GLXEXT, 1, [Build GLX extension])
GLX_LIBS='$(top_builddir)/GL/glx/libglx.la $(top_builddir)/GL/mesa/libGLcore.la'
test -d GL || mkdir GL
- $srcdir/GL/symlink-mesa.sh $MESA_SOURCE GL/
+ case $host_os in
+ solaris*)
+ SYMLINK_MESA="/usr/bin/bash $srcdir/GL/symlink-mesa.sh" ;;
+ *) SYMLINK_MESA=$srcdir/GL/symlink-mesa.sh ;;
+ esac
+ $SYMLINK_MESA $MESA_SOURCE GL/
if test $? -ne 0; then
AC_MSG_ERROR([Failed to link Mesa source tree. Please specify a proper path to Mesa sources, or disable GLX.])
fi