diff options
author | Karl Berry <karl@freefriends.org> | 2011-06-18 22:32:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-06-18 22:32:52 +0000 |
commit | 98f7836b6d90b603493db0711e2034eb1b9b4a11 (patch) | |
tree | 8d205987af09a3c4681887297504bf9270b43d49 /Build/source/utils/asymptote/configure | |
parent | d5ba3cbe3e11d400bd14a4dead31fb850516595f (diff) |
asy 2.11 sources
git-svn-id: svn://tug.org/texlive/trunk@23044 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/configure')
-rwxr-xr-x | Build/source/utils/asymptote/configure | 185 |
1 files changed, 130 insertions, 55 deletions
diff --git a/Build/source/utils/asymptote/configure b/Build/source/utils/asymptote/configure index 2ea02aa214b..ca99e27347d 100755 --- a/Build/source/utils/asymptote/configure +++ b/Build/source/utils/asymptote/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.66 for Asymptote 2.10. +# Generated by GNU Autoconf 2.66 for Asymptote 2.11. # # Report bugs to <http://sourceforge.net/projects/asymptote>. # @@ -552,8 +552,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Asymptote' PACKAGE_TARNAME='asymptote' -PACKAGE_VERSION='2.10' -PACKAGE_STRING='Asymptote 2.10' +PACKAGE_VERSION='2.11' +PACKAGE_STRING='Asymptote 2.11' PACKAGE_BUGREPORT='http://sourceforge.net/projects/asymptote' PACKAGE_URL='' @@ -684,6 +684,7 @@ enable_readline enable_gsl enable_fftw enable_gl +enable_offscreen ' ac_precious_vars='build_alias host_alias @@ -1241,7 +1242,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Asymptote 2.10 to adapt to many kinds of systems. +\`configure' configures Asymptote 2.11 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1302,7 +1303,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Asymptote 2.10:";; + short | recursive ) echo "Configuration of Asymptote 2.11:";; esac cat <<\_ACEOF @@ -1320,6 +1321,7 @@ Optional Features: --enable-gsl[=yes] enable GNU Scientific Library --enable-fftw[=yes] enable FFTW Library --enable-gl[=yes] enable OpenGL Library + --enable-offscreen[=no] enable offscreen rendering using OSMesa library Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1412,7 +1414,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Asymptote configure 2.10 +Asymptote configure 2.11 generated by GNU Autoconf 2.66 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1952,7 +1954,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by Asymptote $as_me 2.10, which was +It was created by Asymptote $as_me 2.11, which was generated by GNU Autoconf 2.66. Invocation command line was $ $0 $@ @@ -5708,6 +5710,11 @@ $as_echo "$as_me: *** Enabling GC backtrace debugging; remember to make gc-clean fi +if test "$OSTYPE" = "cygwin"; then +INCL=$INCL" -I/usr/include/tirpc" +CPPFLAGS=$CPPFLAGS" $INCL" +fi + ac_fn_cxx_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" if test "x$ac_cv_func_getopt_long_only" = x""yes; then : @@ -6415,33 +6422,34 @@ if test "${enable_gl+set}" = set; then : fi -if test "x$enable_gl" != "xno"; then -case "$OSTYPE" in - cygwin) ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" -if test "x$ac_cv_header_GL_glut_h" = x""yes; then : - -$as_echo "#define HAVE_LIBGLUT 1" >>confdefs.h - - LIBS=$LIBS"-lfreeglut " -else - { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libfreeglut: will compile without OpenGL support ***" >&5 -$as_echo "$as_me: *** Could not find libfreeglut: will compile without OpenGL support ***" >&6;} +# Check whether --enable-offscreen was given. +if test "${enable_offscreen+set}" = set; then : + enableval=$enable_offscreen; fi - ac_fn_cxx_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" +# First check if GL is enabled. If so, then: +# onscreen rendering requires GL, glut, and GLU libraries +# offscreen rendering require OSMesa and GLU libraries + +if test "x$enable_gl" != "xno"; then +case "$OSTYPE" in + cygwin) + if test "x$enable_offscreen" != "xyes"; then + ac_fn_cxx_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" if test "x$ac_cv_header_GL_gl_h" = x""yes; then : $as_echo "#define HAVE_LIBGL 1" >>confdefs.h - LIBS=$LIBS"-lopengl32 " + LIBS=$LIBS"-lopengl32 " else { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libopengl32: will compile without OpenGL support ***" >&5 $as_echo "$as_me: *** Could not find libopengl32: will compile without OpenGL support ***" >&6;} fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluNewNurbsRenderer in -lGLU" >&5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluNewNurbsRenderer in -lGLU" >&5 $as_echo_n "checking for gluNewNurbsRenderer in -lGLU... " >&6; } if test "${ac_cv_lib_GLU_gluNewNurbsRenderer+set}" = set; then : $as_echo_n "(cached) " >&6 @@ -6486,8 +6494,22 @@ else $as_echo "$as_me: *** Could not find libglu32: will compile without OpenGL support ***" >&6;} fi + ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_glut_h" = x""yes; then : + +$as_echo "#define HAVE_LIBGLUT 1" >>confdefs.h + + LIBS=$LIBS"-lfreeglut " +else + { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libfreeglut: will compile without GLUT support ***" >&5 +$as_echo "$as_me: *** Could not find libfreeglut: will compile without GLUT support ***" >&6;} +fi + + ;; - darwin*) ac_fn_cxx_check_header_mongrel "$LINENO" "OpenGL/gl.h" "ac_cv_header_OpenGL_gl_h" "$ac_includes_default" + darwin*) + if test "x$enable_offscreen" != "xyes"; then + ac_fn_cxx_check_header_mongrel "$LINENO" "OpenGL/gl.h" "ac_cv_header_OpenGL_gl_h" "$ac_includes_default" if test "x$ac_cv_header_OpenGL_gl_h" = x""yes; then : $as_echo "#define HAVE_LIBGL 1" >>confdefs.h @@ -6495,6 +6517,7 @@ $as_echo "#define HAVE_LIBGL 1" >>confdefs.h fi + fi ac_fn_cxx_check_header_mongrel "$LINENO" "OpenGL/glu.h" "ac_cv_header_OpenGL_glu_h" "$ac_includes_default" if test "x$ac_cv_header_OpenGL_glu_h" = x""yes; then : @@ -6536,19 +6559,20 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext LIBS=$LIBS"-framework GLUT -framework OpenGL -framework Cocoa" else - { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find glut: will compile without OpenGL support ***" >&5 -$as_echo "$as_me: *** Could not find glut: will compile without OpenGL support ***" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find glut: will compile without GLUT support ***" >&5 +$as_echo "$as_me: *** Could not find glut: will compile without GLUT support ***" >&6;} fi ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glutMainLoop in -lglut" >&5 -$as_echo_n "checking for glutMainLoop in -lglut... " >&6; } -if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then : + *) if test "x$enable_offscreen" != "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glDepthMask in -lGL" >&5 +$as_echo_n "checking for glDepthMask in -lGL... " >&6; } +if test "${ac_cv_lib_GL_glDepthMask+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lglut $LIBS" +LIBS="-lGL $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6558,38 +6582,36 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #ifdef __cplusplus extern "C" #endif -char glutMainLoop (); +char glDepthMask (); int main () { -return glutMainLoop (); +return glDepthMask (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_lib_glut_glutMainLoop=yes + ac_cv_lib_GL_glDepthMask=yes else - ac_cv_lib_glut_glutMainLoop=no + ac_cv_lib_GL_glDepthMask=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glut_glutMainLoop" >&5 -$as_echo "$ac_cv_lib_glut_glutMainLoop" >&6; } -if test "x$ac_cv_lib_glut_glutMainLoop" = x""yes; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glDepthMask" >&5 +$as_echo "$ac_cv_lib_GL_glDepthMask" >&6; } +if test "x$ac_cv_lib_GL_glDepthMask" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGLUT 1 +#define HAVE_LIBGL 1 _ACEOF - LIBS="-lglut $LIBS" + LIBS="-lGL $LIBS" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libglut: will compile without OpenGL support ***" >&5 -$as_echo "$as_me: *** Could not find libglut: will compile without OpenGL support ***" >&6;} fi + fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluNewNurbsRenderer in -lGLU" >&5 $as_echo_n "checking for gluNewNurbsRenderer in -lGLU... " >&6; } if test "${ac_cv_lib_GLU_gluNewNurbsRenderer+set}" = set; then : @@ -6638,13 +6660,13 @@ else $as_echo "$as_me: *** Could not find libGLU: will compile without OpenGL support ***" >&6;} fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glDepthMask in -lGL" >&5 -$as_echo_n "checking for glDepthMask in -lGL... " >&6; } -if test "${ac_cv_lib_GL_glDepthMask+set}" = set; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glutMainLoop in -lglut" >&5 +$as_echo_n "checking for glutMainLoop in -lglut... " >&6; } +if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lGL $LIBS" +LIBS="-lglut $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6654,36 +6676,89 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #ifdef __cplusplus extern "C" #endif -char glDepthMask (); +char glutMainLoop (); int main () { -return glDepthMask (); +return glutMainLoop (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_lib_GL_glDepthMask=yes + ac_cv_lib_glut_glutMainLoop=yes else - ac_cv_lib_GL_glDepthMask=no + ac_cv_lib_glut_glutMainLoop=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glDepthMask" >&5 -$as_echo "$ac_cv_lib_GL_glDepthMask" >&6; } -if test "x$ac_cv_lib_GL_glDepthMask" = x""yes; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glut_glutMainLoop" >&5 +$as_echo "$ac_cv_lib_glut_glutMainLoop" >&6; } +if test "x$ac_cv_lib_glut_glutMainLoop" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGL 1 +#define HAVE_LIBGLUT 1 _ACEOF - LIBS="-lGL $LIBS" + LIBS="-lglut $LIBS" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libglut: will compile without GLUT support ***" >&5 +$as_echo "$as_me: *** Could not find libglut: will compile without GLUT support ***" >&6;} fi esac + if test "x$enable_offscreen" == "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSMesaCreateContext in -lOSMesa" >&5 +$as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; } +if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lOSMesa $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OSMesaCreateContext (); +int +main () +{ +return OSMesaCreateContext (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_OSMesa_OSMesaCreateContext=yes +else + ac_cv_lib_OSMesa_OSMesaCreateContext=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5 +$as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; } +if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBOSMESA 1 +_ACEOF + + LIBS="-lOSMesa $LIBS" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libOSMesa: will compile without offscreen rendering support ***" >&5 +$as_echo "$as_me: *** Could not find libOSMesa: will compile without offscreen rendering support ***" >&6;} +fi + + fi fi # Checks for typedefs, structures, and compiler characteristics. @@ -7807,7 +7882,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Asymptote $as_me 2.10, which was +This file was extended by Asymptote $as_me 2.11, which was generated by GNU Autoconf 2.66. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7869,7 +7944,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -Asymptote config.status 2.10 +Asymptote config.status 2.11 configured by $0, generated by GNU Autoconf 2.66, with options \\"\$ac_cs_config\\" |