[SCM] Packaging for mathgl branch, experimental, updated. debian/2_rc2+svn364-1-7-gc519531

Dimitrios Eftaxiopoulos eftaxi12 at otenet.gr
Sat Mar 17 20:51:23 UTC 2012


The following commit has been merged in the experimental branch:
commit 2ac3db4633214f8a2a78cdc38eacf124cf5323ec
Merge: 7e1c03e94741bb341960b3877b006573f84ab8a6 09716c8c88067f867e7b3821c4a0f8429df39e7d
Author: Dimitrios Eftaxiopoulos <eftaxi12 at otenet.gr>
Date:   Fri Mar 16 17:23:05 2012 +0200

    Merge tag 'upstream/2_rc2+svn367' into experimental
    
    Upstream version 2~rc2+svn367

diff --combined CMakeLists.txt
index 38acc65,b83f692..c9f8cf0
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@@ -2,134 -2,127 +2,127 @@@ cmake_minimum_required(VERSION 2.6
  
  project( MathGL )
  set(CMAKE_VERBOSE_MAKEFILE ON)
 -option(enable-double "Enable double precision in MathGL library")
 +option(enable-double "Enable double precision in MathGL library" ON)
  option(enable-all "Enable all features")
 -option(enable-langall "Enable all language interfaces")
 +option(enable-langall "Enable all language interfaces" ON)
  option(enable-lgpl "Enable only LGPL part of MathGL" OFF)
 -option(enable-ltdl "Enable loading modules support")
 -option(enable-pthread "Enable POSIX threads support")
 -option(enable-gsl "Enable gsl support")
 -option(enable-jpeg "Enable jpeg support")
 +option(enable-ltdl "Enable loading modules support" ON)
 +option(enable-pthread "Enable POSIX threads support" ON)
 +option(enable-gsl "Enable gsl support" ON)
 +option(enable-jpeg "Enable jpeg support" ON)
  option(enable-u3d "Enable u3d support")
  option(enable-pdf "Enable pdf support")
 -option(enable-gif "Enable gif support")
 -option(enable-hdf4 "Enable hdf4 support")
 +option(enable-gif "Enable gif support" ON)
 +option(enable-hdf4 "Enable hdf4 support" ON)
  option(enable-hdf5 "Enable hdf5 1.6 support")
 -option(enable-hdf5_18 "Enable hdf5 1.8 support")
 +option(enable-hdf5_18 "Enable hdf5 1.8 support" ON)
  option(enable-opengl "Enable OpenGL support" ON)
  option(enable-glut "Enable glut support")
 -option(enable-fltk "Enable fltk widget")
 -option(enable-wx "Enable wxWidget widget")
 -option(enable-qt "Enable Qt4 widget")
 -option(enable-python "Enable python interface")
 -option(enable-octave "Enable octave interface")
 +option(enable-fltk "Enable fltk widget" ON)
 +option(enable-wx "Enable wxWidget widget" ON)
 +option(enable-qt "Enable Qt4 widget" ON)
 +option(enable-python "Enable python interface" ON)
 +option(enable-octave "Enable octave interface" ON)
  option(enable-doc "Enable documentation building")
- if(enable-double)
- 	set(use_double 1)
- endif(enable-double)
- if((enable-all OR enable-gsl) AND (NOT enable-lgpl) )
- 	set(use_gsl 1)
- endif((enable-all OR enable-gsl) AND (NOT enable-lgpl) )
- if(enable-all OR enable-ltdl)
- 	set(use_ltdl 1)
- endif(enable-all OR enable-ltdl)
- if(enable-all OR enable-pthread)
- 	set(use_pthread 1)
- endif(enable-all OR enable-pthread)
- if(enable-all OR enable-jpeg)
- 	set(use_jpeg 1)
- endif(enable-all OR enable-jpeg)
- if((enable-all OR enable-u3d OR enable-pdf) AND (NOT enable-lgpl) )
- 	set(use_u3d 1)
- endif((enable-all OR enable-u3d OR enable-pdf) AND (NOT enable-lgpl) )
- if((enable-all OR enable-pdf) AND (NOT enable-lgpl) )
- 	set(use_pdf 1)
- endif((enable-all OR enable-pdf) AND (NOT enable-lgpl) )
- if(enable-all OR enable-gif)
- 	set(use_gif 1)
- endif(enable-all OR enable-gif)
- if(enable-all OR enable-opengl)
- 	set(use_opengl 1)
- endif(enable-all OR enable-opengl)
- if((enable-all OR enable-hdf4) AND (NOT enable-lgpl) )
- 	set(use_hdf4 1)
- endif((enable-all OR enable-hdf4) AND (NOT enable-lgpl) )
- if((enable-all OR enable-hdf5) AND (NOT enable-lgpl) )
- 	set(use_hdf5 1)
- endif((enable-all OR enable-hdf5) AND (NOT enable-lgpl) )
- if(enable-hdf5_18)
- 	set(use_hdf5_18 1)
- endif(enable-hdf5_18)
- if((enable-all OR enable-glut) AND (NOT enable-lgpl) )
- 	set(use_glut 1)
- endif((enable-all OR enable-glut) AND (NOT enable-lgpl) )
- if((enable-all OR enable-fltk) AND (NOT enable-lgpl) )
- 	set(use_fltk 1)
- endif((enable-all OR enable-fltk) AND (NOT enable-lgpl) )
- if((enable-all OR enable-wx) AND (NOT enable-lgpl) )
- 	set(use_wx 0)
- endif((enable-all OR enable-wx) AND (NOT enable-lgpl) )
- if((enable-all OR enable-qt) AND (NOT enable-lgpl) )
- 	set(use_qt 1)
- endif((enable-all OR enable-qt) AND (NOT enable-lgpl) )
- if(enable-all OR enable-doc)
- 	set(use_doc 1)
- endif(enable-all OR enable-doc)
- if((enable-langall OR enable-python) AND (NOT enable-lgpl) )
- 	set(use_python 1)
- endif((enable-langall OR enable-python) AND (NOT enable-lgpl) )
- if((enable-langall OR enable-octave) AND (NOT enable-lgpl) )
- 	set(use_octave 1)
- endif((enable-langall OR enable-octave) AND (NOT enable-lgpl) )
- if(use_glut AND NOT use_opengl)
- 	message(SEND_ERROR "You have to enable OpenGL if you plan to use GLUT.")
- endif(use_glut AND NOT use_opengl)
  
+ include_directories( ${MathGL_SOURCE_DIR}/include ${MathGL_BINARY_DIR}/include)
  
- include_directories( ${MathGL_SOURCE_DIR}/include )
+ if(enable-double)
+ 	set(MGL_USE_DOUBLE 1)
+ else(enable-double)
+ 	set(MGL_USE_DOUBLE 0)
+ endif(enable-double)
  
- include(FindOpenGL)
- if(NOT OPENGL_FOUND)
- 	if(use_opengl)
- 		message(SEND_ERROR "Couldn't find OpenGL libraries.")
- 	endif(use_opengl)
- endif(NOT OPENGL_FOUND)
+ include(FindZLIB)
+ if(NOT ZLIB_FOUND)
+ 	message(SEND_ERROR "Couldn't find ZLIB library.")
+ endif(NOT ZLIB_FOUND)
  
  include(FindPNG)
  if(NOT PNG_FOUND)
  	message(SEND_ERROR "Couldn't find PNG libraries.")
  endif(NOT PNG_FOUND)
  
- find_library(GSL_LIB gsl)
- find_library(GSL_CBLAS_LIB gslcblas)
- find_path(GSL_INCLUDE_DIR gsl/gsl_fft_complex.h)
- if(NOT GSL_LIB OR NOT GSL_CBLAS_LIB OR NOT GSL_INCLUDE_DIR)
- 	if(use_gsl)
+ if((enable-all OR enable-gsl) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_GSL 1)
+ 	find_library(GSL_LIB gsl)
+ 	find_library(GSL_CBLAS_LIB gslcblas)
+ 	find_path(GSL_INCLUDE_DIR gsl/gsl_fft_complex.h)
+ 	if(NOT GSL_LIB OR NOT GSL_CBLAS_LIB OR NOT GSL_INCLUDE_DIR)
  		message(SEND_ERROR "${GSL_LIB}")
  		message(SEND_ERROR "${GSL_CBLAS_LIB}")
  		message(SEND_ERROR "${GSL_INCLUDE_DIR}")
  		message(SEND_ERROR "Couldn't find GSL libraries.")
- 	endif(use_gsl)
- endif(NOT GSL_LIB OR NOT GSL_CBLAS_LIB OR NOT GSL_INCLUDE_DIR)
+ 	endif(NOT GSL_LIB OR NOT GSL_CBLAS_LIB OR NOT GSL_INCLUDE_DIR)
+ else((enable-all OR enable-gsl) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_GSL 0)
+ endif((enable-all OR enable-gsl) AND (NOT enable-lgpl) )
  
- find_library(LTDL_LIB ltdl)
- find_path(LTDL_INCLUDE_DIR ltdl.h)
- if(NOT LTDL_LIB OR NOT LTDL_INCLUDE_DIR)
- 	if(use_ltdl)
+ if(enable-all OR enable-ltdl)
+ 	set(MGL_HAVE_LTDL 1)
+ 	find_library(LTDL_LIB ltdl)
+ 	find_path(LTDL_INCLUDE_DIR ltdl.h)
+ 	if(NOT LTDL_LIB OR NOT LTDL_INCLUDE_DIR)
  		message(SEND_ERROR "${LTDL_LIB}")
  		message(SEND_ERROR "${LTDL_INCLUDE_DIR}")
  		message(SEND_ERROR "Couldn't find LTDL library.")
- 	endif(use_ltdl)
- endif(NOT LTDL_LIB OR NOT LTDL_INCLUDE_DIR)
+ 	endif(NOT LTDL_LIB OR NOT LTDL_INCLUDE_DIR)
+ else(enable-all OR enable-ltdl)
+ 	set(MGL_HAVE_LTDL 0)
+ endif(enable-all OR enable-ltdl)
  
- include(FindThreads)
- if(NOT CMAKE_USE_PTHREADS_INIT)
- 	if(use_pthread)
+ if(enable-all OR enable-pthread)
+ 	set(MGL_HAVE_PTHREAD 1)
+ 	include(FindThreads)
+ 	if(NOT CMAKE_USE_PTHREADS_INIT)
  		message(SEND_ERROR "Couldn't find POSIX threads library.")
- 	endif(use_pthread)
- endif(NOT CMAKE_USE_PTHREADS_INIT)
+ 	endif(NOT CMAKE_USE_PTHREADS_INIT)
+ else(enable-all OR enable-pthread)
+ 	set(MGL_HAVE_PTHREAD 0)
+ endif(enable-all OR enable-pthread)
+ 
+ if((enable-all OR enable-hdf4) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_HDF4 1)
+ 	find_library(HDF4_LIB df)
+ 	find_library(HDF4MF_LIB mfhdf)
+ 	find_path(HDF4_INCLUDE_DIR hdf/mfhdf.h)
+ 	if(NOT HDF4_LIB OR NOT HDF4MF_LIB OR NOT HDF4_INCLUDE_DIR)
+ 		message(SEND_ERROR "${HDF4_LIB}")
+ 		message(SEND_ERROR "${HDF4MF_LIB}")
+ 		message(SEND_ERROR "${HDF4_INCLUDE_DIR}")
+ 		message(SEND_ERROR "Couldn't find HDF4 libraries.")
+ 	endif(NOT HDF4_LIB OR NOT HDF4MF_LIB OR NOT HDF4_INCLUDE_DIR)
+ else((enable-all OR enable-hdf4) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_HDF4 0)
+ endif((enable-all OR enable-hdf4) AND (NOT enable-lgpl) )
+ 
+ if((enable-all OR enable-hdf5 OR enable-hdf5_18) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_HDF5 1)
+ 	if(enable-hdf5_18)
+ 		set(MGL_HAVE_HDF5_18 1)
+ 	else(enable-hdf5_18)
+ 		set(MGL_HAVE_HDF5_18 0)
+ 	endif(enable-hdf5_18)
+ 	include(FindHDF5)
+ 	if(NOT HDF5_FOUND)
+ 		message(SEND_ERROR "Couldn't find HDF5 library.")
+ 	endif(NOT HDF5_FOUND)
+ else((enable-all OR enable-hdf5 OR enable-hdf5_18) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_HDF5 0)
+ endif((enable-all OR enable-hdf5 OR enable-hdf5_18) AND (NOT enable-lgpl) )
  
- if(use_u3d)
+ if(enable-all OR enable-jpeg)
+ 	set(MGL_HAVE_JPEG 1)
+ 	include(FindJPEG)
+ 	if(NOT JPEG_FOUND)
+ 		message(SEND_ERROR "Couldn't find JPEG library.")
+ 	endif(NOT JPEG_FOUND)
+ else(enable-all OR enable-jpeg)
+ 	set(MGL_HAVE_JPEG 0)
+ endif(enable-all OR enable-jpeg)
+ 
+ if((enable-all OR enable-u3d OR enable-pdf) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_U3D 1)
  	find_library(U3D_LIB IDTF)
  	if(NOT U3D_LIB)
  		message(STATUS "Couldn't find U3D libraries.")
@@@ -140,9 -133,12 +133,12 @@@
  	endif(NOT U3D_INCLUDE_DIR)
  	message(STATUS "Found U3D libraries at: ${U3D_LIB}")
  	message(STATUS "Found U3D headers: ${U3D_INCLUDE_DIR}")
- endif(use_u3d)
+ else((enable-all OR enable-u3d OR enable-pdf) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_U3D 0)
+ endif((enable-all OR enable-u3d OR enable-pdf) AND (NOT enable-lgpl) )
  
- if(use_pdf)
+ if((enable-all OR enable-pdf) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_PDF 1)
  	find_library(HPDF_LIB hpdf)
  	if(NOT HPDF_LIB)
  		message(STATUS "Couldn't find libHaru.")
@@@ -153,139 -149,138 +149,138 @@@
  	endif(NOT HPDF_INCLUDE_DIR)
  	message(STATUS "Found libHaru library at: ${HPDF_LIB}")
  	message(STATUS "Found libHaru headers: ${HPDF_INCLUDE_DIR}")
- endif(use_pdf)
- 
- include(FindZLIB)
- if(NOT ZLIB_FOUND)
- 	message(SEND_ERROR "Couldn't find ZLIB library.")
- endif(NOT ZLIB_FOUND)
- 
- include(FindJPEG)
- if(NOT JPEG_FOUND)
- 	if(use_jpeg)
- 		message(SEND_ERROR "Couldn't find JPEG library.")
- 	endif(use_jpeg)
- endif(NOT JPEG_FOUND)
+ else((enable-all OR enable-pdf) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_PDF 0)
+ endif((enable-all OR enable-pdf) AND (NOT enable-lgpl) )
  
- include(FindGIF)
- if(NOT GIF_FOUND)
- 	if(use_gif)
+ if(enable-all OR enable-gif)
+ 	set(MGL_HAVE_GIF 1)
+ 	include(FindGIF)
+ 	if(NOT GIF_FOUND)
  		message(SEND_ERROR "Couldn't find GIF library.")
- 	endif(use_gif)
- endif(NOT GIF_FOUND)
- 
- find_library(HDF4_LIB df)
- find_library(HDF4MF_LIB mfhdf)
- find_path(HDF4_INCLUDE_DIR hdf/mfhdf.h)
- if(NOT HDF4_LIB OR NOT HDF4MF_LIB OR NOT HDF4_INCLUDE_DIR)
- 	if(use_hdf4)
- 		message(SEND_ERROR "${HDF4_LIB}")
- 		message(SEND_ERROR "${HDF4MF_LIB}")
- 		message(SEND_ERROR "${HDF4_INCLUDE_DIR}")
- 		message(SEND_ERROR "Couldn't find HDF4 libraries.")
- 	endif(use_hdf4)
- endif(NOT HDF4_LIB OR NOT HDF4MF_LIB OR NOT HDF4_INCLUDE_DIR)
+ 	endif(NOT GIF_FOUND)
+ else(enable-all OR enable-gif)
+ 	set(MGL_HAVE_GIF 0)
+ endif(enable-all OR enable-gif)
  
- include(FindHDF5)
- if(NOT HDF5_FOUND)
- 	if(use_hdf5 OR use_hdf5_18)
- 		message(SEND_ERROR "Couldn't find HDF5 library.")
- 	endif(use_hdf5 OR use_hdf5_18)
- endif(NOT HDF5_FOUND)
+ if(enable-all OR enable-opengl)
+ 	set(MGL_HAVE_OPENGL 1)
+ 	include(FindOpenGL)
+ 	if(NOT OPENGL_FOUND)
+ 		message(SEND_ERROR "Couldn't find OpenGL libraries.")
+ 	endif(NOT OPENGL_FOUND)
+ else(enable-all OR enable-opengl)
+ 	set(MGL_HAVE_OPENGL 0)
+ endif(enable-all OR enable-opengl)
  
- include(FindGLUT)
- if(NOT GLUT_FOUND)
- 	if(use_glut)
+ if((enable-all OR enable-glut) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_GLUT 1)
+ 	if(NOT MGL_HAVE_OPENGL)
+ 		message(SEND_ERROR "You have to enable OpenGL if you plan to use GLUT.")
+ 	endif(NOT MGL_HAVE_OPENGL)
+ 	include(FindGLUT)
+ 	if(NOT GLUT_FOUND)
  		message(SEND_ERROR "Couldn't find GLUT library.")
- 	endif(use_glut)
- endif(NOT GLUT_FOUND)
+ 	endif(NOT GLUT_FOUND)
+ else((enable-all OR enable-glut) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_GLUT 0)
+ endif((enable-all OR enable-glut) AND (NOT enable-lgpl) )
  
- include(FindFLTK)
- if(NOT FLTK_FOUND)
- 	if(use_fltk)
+ if((enable-all OR enable-fltk) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_FLTK 1)
+ 	include(FindFLTK)
+ 	if(NOT FLTK_FOUND)
  		message(SEND_ERROR "Couldn't find FLTK library.")
- 	endif(use_fltk)
- endif(NOT FLTK_FOUND)
+ 	endif(NOT FLTK_FOUND)
+ else((enable-all OR enable-fltk) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_FLTK 0)
+ endif((enable-all OR enable-fltk) AND (NOT enable-lgpl) )
  
- FIND_PACKAGE(wxWidgets COMPONENTS base core gl)
- if(NOT wxWidgets_FOUND)
- 	if(use_wx)
+ if((enable-all OR enable-wx) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_WX 0)
+ 	FIND_PACKAGE(wxWidgets COMPONENTS base core gl)
+ 	if(NOT wxWidgets_FOUND)
  		message(SEND_ERROR "Couldn't find wxWidgets library.")
- 	endif(use_wx)
- endif(NOT wxWidgets_FOUND)
+ 	endif(NOT wxWidgets_FOUND)
+ else((enable-all OR enable-wx) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_WX 0)
+ endif((enable-all OR enable-wx) AND (NOT enable-lgpl) )
  
- FIND_PACKAGE(Qt4)
- if(NOT QT4_FOUND)
- 	if(use_qt)
+ if((enable-all OR enable-qt) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_QT 1)
+ 	FIND_PACKAGE(Qt4)
+ 	if(NOT QT4_FOUND)
  		message(SEND_ERROR "Couldn't find Qt4 library.")
- 	endif(use_qt)
- endif(NOT QT4_FOUND)
- 
- 
- FIND_PACKAGE(SWIG)
- if(NOT SWIG_FOUND)
- 	if(use_python OR use_octave)
- 		message(SEND_ERROR "Couldn't find swig needed for interfaces compiling.")
- 	endif(use_python OR use_octave)
- endif(NOT SWIG_FOUND)
+ 	endif(NOT QT4_FOUND)
+ else((enable-all OR enable-qt) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_QT 0)
+ endif((enable-all OR enable-qt) AND (NOT enable-lgpl) )
  
+ if((enable-langall OR enable-python) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_PYTHON 1)
  # include(FindPythonInterp)
  # if(NOT PYTHONLIBS_FOUND)
  # 	if(use_python)
  # 		message(SEND_ERROR "Couldn't find python interpreter.")
  # 	endif(use_python)
  # endif(NOT PYTHONINTERP_FOUND)
- FIND_PACKAGE(PythonLibs)
- #include(FindPythonLibs)
- if(NOT PYTHONLIBS_FOUND)
- 	if(use_python)
+ 	FIND_PACKAGE(PythonLibs)
+ 	if(NOT PYTHONLIBS_FOUND)
  		message(SEND_ERROR "Couldn't find python development libraries.")
- 	endif(use_python)
- endif(NOT PYTHONLIBS_FOUND)
+ 	endif(NOT PYTHONLIBS_FOUND)
+ else((enable-langall OR enable-python) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_PYTHON 0)
+ endif((enable-langall OR enable-python) AND (NOT enable-lgpl) )
  
- find_path(OCTAVE_INCLUDE_DIR octave/oct.h)
- if(NOT OCTAVE_INCLUDE_DIR)
- 	if(use_octave)
+ if((enable-langall OR enable-octave) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_OCTAVE 1)
+ 	find_path(OCTAVE_INCLUDE_DIR octave/oct.h)
+ 	if(NOT OCTAVE_INCLUDE_DIR)
  		message(SEND_ERROR "Couldn't find octave/oct.h needed for octave interfaces compiling.")
- 	endif(use_octave)
- endif(NOT OCTAVE_INCLUDE_DIR)
- find_program(oct_prog octave)
- if(NOT oct_prog)
- 	if(use_octave)
+ 	endif(NOT OCTAVE_INCLUDE_DIR)
+ 	find_program(oct_prog octave)
+ 	if(NOT oct_prog)
  		message(SEND_ERROR "Couldn't find octave needed for octave interfaces compiling.")
- 	endif(use_octave)
- endif(NOT oct_prog)
- find_program(oct_mk mkoctfile)
- if(NOT oct_mk)
- 	if(use_octave)
+ 	endif(NOT oct_prog)
+ 	find_program(oct_mk mkoctfile)
+ 	if(NOT oct_mk)
  		message(SEND_ERROR "Couldn't find mkoctfile needed for octave interfaces compiling.")
- 	endif(use_octave)
- endif(NOT oct_mk)
+ 	endif(NOT oct_mk)
+ else((enable-langall OR enable-octave) AND (NOT enable-lgpl) )
+ 	set(MGL_HAVE_OCTAVE 0)
+ endif((enable-langall OR enable-octave) AND (NOT enable-lgpl) )
+ 
+ if(enable-all OR enable-doc)
+ 	set(MGL_HAVE_DOC 1)
+ 	find_program(findmi makeinfo)
+ 	if(NOT findmi)
+ 		message(SEND_ERROR "Couldn't find makeinfo needed for documentation building.")
+ 	endif(NOT findmi)
+ 	find_program(findth texi2html)
+ 	if(NOT findth)
+ 		message(SEND_ERROR "Couldn't find texi2html needed for documentation building.")
+ 	endif(NOT findth)
+ 	find_program(findtp texi2pdf)
+ 	if(NOT findtp)
+ 		message(SEND_ERROR "Couldn't find texi2pdf needed for documentation building.")
+ 	endif(NOT findtp)
+ else(enable-all OR enable-doc)
+ 	set(MGL_HAVE_DOC 0)
+ endif(enable-all OR enable-doc)
+ 
+ if(MGL_HAVE_PYTHON OR MGL_HAVE_OCTAVE)
+ 	FIND_PACKAGE(SWIG)
+ 	if(NOT SWIG_FOUND)
+ 		message(SEND_ERROR "Couldn't find swig needed for interfaces compiling.")
+ 	endif(NOT SWIG_FOUND)
+ endif(MGL_HAVE_PYTHON OR MGL_HAVE_OCTAVE)
+ 
  #execute_process(
  #	COMMAND ${oct_prog} -q --eval \'strcat\(octave_config_info\("canonical_host_type"\), "-", octave_config_info\("api_version"\)\)'|sed -e 's/ans = //'
  #	OUTPUT_VARIABLE OCTAVE_ARCH
  #	)
  #message(SEND_ERROR "${OCTAVE_ARCH}")
  
- find_program(findmi makeinfo)
- if(NOT findmi)
- 	if(use_doc)
- 		message(SEND_ERROR "Couldn't find makeinfo needed for documentation building.")
- 	endif(use_doc)
- endif(NOT findmi)
- find_program(findth texi2html)
- if(NOT findth)
- 	if(use_doc)
- 		message(SEND_ERROR "Couldn't find texi2html needed for documentation building.")
- 	endif(use_doc)
- endif(NOT findth)
- find_program(findtp texi2pdf)
- if(NOT findtp)
- 	if(use_doc)
- 		message(SEND_ERROR "Couldn't find texi2pdf needed for documentation building.")
- 	endif(use_doc)
- endif(NOT findtp)
- 
  if(UNIX)
  	add_definitions(-DNO_COLOR_ARRAY)
  endif(UNIX)

-- 
Packaging for mathgl



More information about the debian-science-commits mailing list