diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-21 00:28:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-21 00:28:06 +0000 |
commit | 3cc0a8ce89d9399258a9a200ee43d3e57f752dca (patch) | |
tree | 2dd1da5859656e4b44720b4cca7f1bf0fc057d7d /Build/source/utils/asymptote/configure.ac | |
parent | 46504f1ee80f021adf00388fef2f7ed8e4ab238d (diff) |
patch from bowman + autoreconf
git-svn-id: svn://tug.org/texlive/trunk@13286 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/configure.ac')
-rw-r--r-- | Build/source/utils/asymptote/configure.ac | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/configure.ac b/Build/source/utils/asymptote/configure.ac index 0e84c226bb4..8d69537dddc 100644 --- a/Build/source/utils/asymptote/configure.ac +++ b/Build/source/utils/asymptote/configure.ac @@ -48,7 +48,8 @@ AC_SUBST(latexdir) docdir=$Datadir/doc/asymptote AC_ARG_WITH(docdir, - [ --with-docdir=PATH alternate documentation installation directory], + [AS_HELP_STRING(--with-docdir=PATH, +alternate documentation installation directory)], [if test "x$withval" != "x" ; then docdir=$withval fi @@ -58,7 +59,8 @@ AC_SUBST(docdir) sysdir=$Datadir/asymptote AC_ARG_ENABLE(tetex-build, -[ --enable-tetex-build automatically determine settings.sysdir from kpsewhich], +[AS_HELP_STRING(--enable-tetex-build, +automatically determine sysdir from kpsewhich)], [ if test "x$enableval" = "xyes" ; then sysdir="" fi @@ -100,7 +102,8 @@ ac_cv_use_gc=$GCVERSION, [GC_SYSTEM="$GCVERSION.tar.gz not found: using system Boehm garbage collector" ac_cv_use_gc="system"]) AC_ARG_ENABLE(gc, - [ --enable-gc[[=system]] enable system Boehm garbage collector] + [AS_HELP_STRING(--enable-gc[[[=system]]], +enable system Boehm garbage collector)] [ [[=VERSION]] enable local VERSION of Boehm garbage collector] [ [[=PREFIX]] use Boehm garbage collector installed in PREFIX], [ @@ -153,7 +156,7 @@ else fi AC_ARG_ENABLE(gc-debug, -[ --enable-gc-debug enable (slow) garbage collector debugging], +[AS_HELP_STRING(--enable-gc-debug,enable (slow) garbage collector debugging)], [ if test "x$ac_cv_use_gc" != "xno" ; then if test "x$enableval" = "xyes" ; then OPTIONS=$OPTIONS"-DGC_DEBUG " @@ -164,7 +167,7 @@ AC_ARG_ENABLE(gc-debug, ]) AC_ARG_ENABLE(gc-full-debug, -[ --enable-gc-full-debug enable (very slow) garbage collector backtrace], +[AS_HELP_STRING(--enable-gc-full-debug,enable (very slow) garbage collector backtrace)], [ if test "x$ac_cv_use_gc" != "xno" ; then if test "x$enableval" = "xyes" ; then OPTIONS=$OPTIONS"-DGC_DEBUG -DGC_BACKTRACE " @@ -212,12 +215,23 @@ AC_COMPILE_IFELSE(AC_LANG_PROGRAM([#include "xstream.h"]), [Define if you have a working <rpc/rpc.h> header file])], AC_MSG_WARN([*** Broken rpc headers; XDR support disabled ***])) -AC_CHECK_HEADER(gsl/gsl_sf.h, - AC_CHECK_LIB([gsl], gsl_sf_Si, [AC_DEFINE(HAVE_LIBGSL, 1, +AC_ARG_ENABLE(gsl, +[AS_HELP_STRING(--enable-gsl[[[=yes]]],enable GNU Scientific Library)], +) + +if test "x$enable_gsl" != "xno"; then + AC_CHECK_HEADER(gsl/gsl_sf.h, + AC_CHECK_LIB([gsl], gsl_sf_debye_6, [AC_DEFINE(HAVE_LIBGSL, 1, [Define to 1 if you have the 'gsl' library (-lgsl). ]) LIBS=$LIBS"-lgsl -lgslcblas "], AC_MSG_NOTICE([*** Could not find libgsl: will compile without optional special functions. ***]),[-lgslcblas]), AC_MSG_NOTICE([*** Header file gsl_sf.h not found: will compile without optional special functions. ***])) +fi + +AC_ARG_ENABLE(gl, +[AS_HELP_STRING(--enable-gl[[[=yes]]],enable OpenGL Library)], +) +if test "x$enable_gl" != "xno"; then case "$OSTYPE" in cygwin) AC_CHECK_HEADER(GL/glut.h, [AC_DEFINE(HAVE_LIBGLUT, 1, @@ -251,7 +265,7 @@ void f(void) { AC_CHECK_LIB([GLU], [gluNewNurbsRenderer],, AC_MSG_NOTICE([*** Could not find libGLU: will compile without OpenGL support ***])) esac - +fi # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_PID_T |