From ee4d5e89d8f47ddf8f876abc0f3fb66e010bfc7f Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 23 Nov 2016 18:06:56 +0100 Subject: [PATCH] remove unnecessary files (mostly unsupported build systems) --- Makefile.am | 11 - Makefile.cvs | 8 - configure.ac | 289 -- doc/Makefile.am | 1 - install-sh | 520 --- libsrc/Makefile.am | 5 - libsrc/csg/Makefile.am | 34 - libsrc/general/Makefile.am | 11 - libsrc/geom2d/Makefile.am | 21 - libsrc/gprim/Makefile.am | 7 - libsrc/include/Makefile.am | 9 - libsrc/interface/Makefile.am | 18 - libsrc/linalg/Makefile.am | 9 - libsrc/meshing/Makefile.am | 38 - libsrc/occ/Makefile.am | 33 - libsrc/stlgeom/Makefile.am | 25 - libsrc/visualization/Makefile.am | 25 - m4/ax_boost_base.m4 | 272 -- m4/ax_boost_python.m4 | 99 - m4/ax_cxx_compile_stdcxx_11.m4 | 133 - m4/ax_python_devel.m4 | 324 -- m4/ltsugar.m4 | 123 - m4/tcl.m4 | 4057 ----------------- ng/Makefile.am | 85 - nglib/Makefile.am | 52 - py_tutorials/Makefile.am | 4 - python/Makefile.am | 4 - tutorials/Makefile.am | 11 - windows/Makefile.am | 3 - .../LGPL_Licenses/LGPL_English.txt | 502 -- .../LGPL_Licenses/LGPL_French.txt | 1160 ----- .../LGPL_Licenses/LGPL_German.txt | 628 --- .../LGPL_Licenses/Makefile.am | 5 - windows/Netgen_Installer/Makefile.am | 6 - .../Netgen_Installer/Netgen_Installer_All.bat | 73 - .../Netgen_Installer_Win32.bat | 65 - .../Netgen_Installer/Netgen_Installer_x64.bat | 65 - windows/Netgen_Installer/README!.TXT | 91 - windows/Netgen_Installer/netgen_installer.dat | 32 - windows/Netgen_Installer/netgen_installer.nsi | 1050 ----- windows/geom2d.vcproj | 375 -- windows/netgen.sln | 110 - windows/netgen.vcproj | 2076 --------- windows/netgen.vcxproj | 254 -- windows/netgenlib.vcxproj | 866 ---- windows/netgenpy.vcxproj | 295 -- windows/nglib.sln | 32 - windows/nglib.vcproj | 1620 ------- windows/nglib.vcxproj | 639 --- windows/postBuild_netgen.bat | 164 - windows/postBuild_nglib.bat | 149 - 51 files changed, 16488 deletions(-) delete mode 100644 Makefile.am delete mode 100644 Makefile.cvs delete mode 100644 configure.ac delete mode 100644 doc/Makefile.am delete mode 100755 install-sh delete mode 100644 libsrc/Makefile.am delete mode 100644 libsrc/csg/Makefile.am delete mode 100644 libsrc/general/Makefile.am delete mode 100644 libsrc/geom2d/Makefile.am delete mode 100644 libsrc/gprim/Makefile.am delete mode 100644 libsrc/include/Makefile.am delete mode 100644 libsrc/interface/Makefile.am delete mode 100644 libsrc/linalg/Makefile.am delete mode 100644 libsrc/meshing/Makefile.am delete mode 100644 libsrc/occ/Makefile.am delete mode 100644 libsrc/stlgeom/Makefile.am delete mode 100644 libsrc/visualization/Makefile.am delete mode 100644 m4/ax_boost_base.m4 delete mode 100644 m4/ax_boost_python.m4 delete mode 100644 m4/ax_cxx_compile_stdcxx_11.m4 delete mode 100644 m4/ax_python_devel.m4 delete mode 100644 m4/ltsugar.m4 delete mode 100644 m4/tcl.m4 delete mode 100644 ng/Makefile.am delete mode 100644 nglib/Makefile.am delete mode 100644 py_tutorials/Makefile.am delete mode 100644 python/Makefile.am delete mode 100644 tutorials/Makefile.am delete mode 100644 windows/Makefile.am delete mode 100644 windows/Netgen_Installer/LGPL_Licenses/LGPL_English.txt delete mode 100644 windows/Netgen_Installer/LGPL_Licenses/LGPL_French.txt delete mode 100644 windows/Netgen_Installer/LGPL_Licenses/LGPL_German.txt delete mode 100644 windows/Netgen_Installer/LGPL_Licenses/Makefile.am delete mode 100644 windows/Netgen_Installer/Makefile.am delete mode 100644 windows/Netgen_Installer/Netgen_Installer_All.bat delete mode 100644 windows/Netgen_Installer/Netgen_Installer_Win32.bat delete mode 100644 windows/Netgen_Installer/Netgen_Installer_x64.bat delete mode 100644 windows/Netgen_Installer/README!.TXT delete mode 100644 windows/Netgen_Installer/netgen_installer.dat delete mode 100644 windows/Netgen_Installer/netgen_installer.nsi delete mode 100644 windows/geom2d.vcproj delete mode 100644 windows/netgen.sln delete mode 100644 windows/netgen.vcproj delete mode 100644 windows/netgen.vcxproj delete mode 100644 windows/netgenlib.vcxproj delete mode 100644 windows/netgenpy.vcxproj delete mode 100644 windows/nglib.sln delete mode 100644 windows/nglib.vcproj delete mode 100644 windows/nglib.vcxproj delete mode 100644 windows/postBuild_netgen.bat delete mode 100644 windows/postBuild_nglib.bat diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 918f8735..00000000 --- a/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -ACLOCAL_AMFLAGS = -I m4 - -METASOURCES = AUTO - -SUBDIRS = libsrc ng tutorials python py_tutorials doc windows nglib -# nglib -# TESTS = ng/netgen -batchmode - - - - diff --git a/Makefile.cvs b/Makefile.cvs deleted file mode 100644 index d1607023..00000000 --- a/Makefile.cvs +++ /dev/null @@ -1,8 +0,0 @@ -default: all - -all: - aclocal - autoheader - automake - autoconf - diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 197cdabe..00000000 --- a/configure.ac +++ /dev/null @@ -1,289 +0,0 @@ -AC_INIT([netgen],[6.1-dev],[],[]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) - -AC_CONFIG_MACRO_DIR([m4]) - -AC_PREFIX_DEFAULT(["/opt/netgen"]) - - - - - -# AC_HEADER_STDC -AC_CONFIG_HEADERS(config.h) -AC_DISABLE_STATIC - -AC_LANG([C++]) -AC_PROG_CXX -AX_CXX_COMPILE_STDCXX_11 - -AC_OPENMP -CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS" -# LDFLAGS="$LDFLAGS $OPENMP_CXXFLAGS" - -AM_PROG_AR -AC_PROG_LIBTOOL -LT_INIT - -# OpenCASCADE configuration - -occon=false -AC_ARG_ENABLE([occ], - [AC_HELP_STRING([--enable-occ],[compile with OpenCascade geometry kernel])], - [occon=true]) - -AC_ARG_WITH([occ], - [AC_HELP_STRING([--with-occ=dir],[use OpenCascade installed in directory dir])], - [occdir=$withval] - [occon=true], - [occdir=/opt/OpenCASCADE] - ) - - - -if test a$occon = atrue ; then - - AC_SUBST([OCCFLAGS], ["-DOCCGEOMETRY -I$occdir/inc -I/usr/include/oce -I/usr/include/opencascade"]) - AC_SUBST([OCCLIBS], ["-L$occdir/lib -lTKernel -lTKGeomBase -lTKMath -lTKG2d -lTKG3d -lTKXSBase -lTKOffset -lTKFillet -lTKShHealing -lTKMesh -lTKMeshVS -lTKTopAlgo -lTKGeomAlgo -lTKBool -lTKPrim -lTKBO -lTKIGES -lTKBRep -lTKSTEPBase -lTKSTEP -lTKSTL -lTKSTEPAttr -lTKSTEP209 -lTKXDESTEP -lTKXDEIGES -lTKXCAF -lTKLCAF -lFWOSPlugin"]) - -# -lTKDCAF - - if test a$build_cpu = ax86_64 ; then - AC_SUBST([OCCFLAGS],["$OCCFLAGS -D_OCC64"]) - fi - - - AC_CHECK_HEADER([iostream],[OCCFLAGS="$OCCFLAGS -DHAVE_IOSTREAM"]) - AC_CHECK_HEADER([iostream.h],[OCC_FLAGS="$OCCFLAGS -DHAVE_IOSTREAM_H"]) - AC_CHECK_HEADER([limits],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS"]) - AC_CHECK_HEADER([limits.h],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS_H"]) - AC_CHECK_HEADER([iomanip],[OCCFLAGS="$OCCFLAGS -DHAVE_IOMANIP"]) - AC_CHECK_HEADER([iomanip.h],[OCCFLAGS="$OCCFLAGS -DHAVE_IOMANIP_H"]) - - - echo "OCCFLAGS = $OCCFLAGS" - echo "OCCLIBS = $OCCLIBS" -fi - - - - - - - -AC_ARG_WITH([togl], - [AC_HELP_STRING([--with-togl=dir],[directory containing libTogl1.7])], - [togldir=$withval] - [togllibfl="-L$withval$"] - ) -# [togllibfl="-L$(TK_BIN_DIR)/Togl1.7"] -# [togllibfl="-L/usr/local/lib/Togl1.7"] - - -nglibon=true -AC_ARG_ENABLE([nglib], - [AC_HELP_STRING([--enable-nglib],[generate shared library nglib])], - [if test "$enableval" = yes; then nglibon=true; else nglibon=false; fi]) - -ngguion=true -AC_ARG_ENABLE([gui], - [AC_HELP_STRING([--disable-gui],[don't build netgen with GUI])], - [if test "$enableval" = yes; then ngguion=true; else ngguion=false; fi]) - -metisdir=/usr/local -AC_ARG_WITH([metis], - [AC_HELP_STRING([--with-metis=dir],[path to metis 5.x])], - [metisdir=$withval], - [metisdir=/usr/local] - ) - -AC_ARG_ENABLE([parallel], - [AC_HELP_STRING([--enable-parallel],[enable mpi parallelization])], - [AC_SUBST([MPI_INCLUDES], "-I$metisdir/include -DMETIS")] - [CXXFLAGS="$CXXFLAGS -DPARALLEL"] - [AC_SUBST([MPI_LIBS], "-L$metisdir/lib -lmetis")] - ) -# -DVTRACE -# -lvt-hyb - -# [AC_SUBST([MPI_INCLUDES], "-I/opt/mpich/include -I/usr/include/mpich2 -I/usr/include/metis -DPARALLEL -I/usr/share/metis/Lib -DMETIS -DVTRACE -I/usr/local/include/vampirtrace") -# AC_SUBST([MPI_LIBS], "-lmetis -L/opt/mpich/ch-p4/lib -lmpich") - -# -lvt -lvt-mpi -lvt-mpi-unify") -# [AC_SUBST([MPI_INCLUDES], "-I/opt/mpich/include -DPARALLEL -I/usr/include/metis -DMETIS") -# AC_SUBST([MPI_LIBS], " -L/opt/mpich/ch-p4/lib64 -lmpich -lmetis") -# [AC_SUBST([MPI_INCLUDES], "-DPARALLEL -DNO_PARALLEL_THREADS -I/opt/mpich/include") -# AC_SUBST([MPI_LIBS], "") -# -lmetis -# [AC_SUBST([MPI_INCLUDES], "-I/opt/mpich/include -DPARALLEL -I/home/joachim/download/metis-4.0/Lib -DMETIS") -# AC_SUBST([MPI_LIBS], "-L/home/joachim/download/metis-4.0 -lmetis -L/opt/mpich/ch-p4/lib64 -lmpich") - - -jpeglibon=false -AC_ARG_ENABLE([jpeglib], - [AS_HELP_STRING([--enable-jpeglib],[enable snapshots using library libjpeg])], - [AC_SUBST([JPEGLIB_INCLUDES], "-DJPEGLIB") - AC_CHECK_LIB(jpeg, jpeg_start_compress, - AC_SUBST([JPEGLIB_LIBS], "-ljpeg") , - AC_MSG_ERROR([no usable library libjpeg found])) - [if test "$enableval" = yes; then jpeglibon=true; else jpeglibon=false; fi] - ] - ) - -ffmpegon=false -AC_ARG_ENABLE([ffmpeg], - [AS_HELP_STRING([--enable-ffmpeg],[enable video recording with FFmpeg, uses libavcodec])], - [AC_SUBST([FFMPEG_INCLUDES], "-DFFMPEG -D__STDC_CONSTANT_MACROS") - AC_SUBST([FFMPEG_LIBS], "-lavutil -lavformat -lavcodec -lavutil -lswscale -lz -lbz2") - [if test "$enableval" = yes; then ffmpegon=true; else ffmpegon=false; fi] - ] - ) - - -mklon=false -AC_ARG_ENABLE([mkl], - [AS_HELP_STRING([--enable-mkl],[link Intel's mkl library, necessary for ngsolve and mkl 11.x])], - [if test "$enableval" = yes; then mklon=true; else mklon=false; fi] - ) - -AM_PATH_PYTHON([3.2]) -AX_PYTHON_DEVEL([>= '3.2']) -AX_BOOST_BASE([1.54]) -AX_BOOST_PYTHON - -echo "pythondir = $pythondir" -# AC_SUBST([pythondir], \${prefix}/python/netgen) -AC_SUBST([pythondir], $pythondir/netgen) -# echo "pythondir changed to = $pythondir" - - -pythonon=false -AC_ARG_ENABLE([python], - [AS_HELP_STRING([--enable-python],[link boost python, necessary for ngsolve])], - [if test "$enableval" = yes; then pythonon=true; else pythonon=false; fi] - [CXXFLAGS+=" $PYTHON_CPPFLAGS -DNG_PYTHON"] - [LDFLAGS+=" $PYTHON_LDFLAGS -l$BOOST_PYTHON_LIB"] - ) - - - -# only for GUI version - -if test a$ngguion = atrue ; then -# Tcl/Tk configuration: -TEA_INIT([3.9]) -TEA_PATH_TCLCONFIG -TEA_LOAD_TCLCONFIG -TEA_PATH_TKCONFIG -TEA_LOAD_TKCONFIG -TEA_PUBLIC_TCL_HEADERS -TEA_PUBLIC_TK_HEADERS - -AC_SUBST([TOGLLIBDIR], ["$togllibfl"]) -# AC_CHECK_HEADER([togl.h]) -AC_CHECK_HEADER([GL/gl.h]) - - - -#-------------------------------------------------------------------- -# __CHANGE__ -# Choose OpenGL platform (borrowed from Togl1.7) -#-------------------------------------------------------------------- - -case "${TEA_WINDOWINGSYSTEM}" in - aqua) - AC_SUBST(TOGL_WINDOWINGSYSTEM,TOGL_AGL) - TEA_ADD_LIBS([-framework AGL -framework OpenGL -framework ApplicationServices]) - # libGLU is implicit in OpenGL framework - LIBGLU= - ;; - x11) - AC_SUBST(TOGL_WINDOWINGSYSTEM,TOGL_X11) - TEA_ADD_LIBS([-lGL -lXmu -lX11]) - LIBGLU=-lGLU - ;; - win32) - AC_SUBST(TOGL_WINDOWINGSYSTEM,TOGL_WGL) - TEA_ADD_LIBS([opengl32.lib user32.lib gdi32.lib]) - if test "$GCC" = "yes" ; then - LIBGLU=-lglu32 - else - LIBGLU=glu32.lib - fi - ;; - *) - AC_MSG_ERROR([Unsupported windowing system: ${TEA_WINDOWINGSYSTEM}]) - ;; -esac -AC_SUBST(LIBGLU) - -fi - - - -AM_CONDITIONAL([NGLIB], [test x$nglibon = xtrue]) -AM_CONDITIONAL([NGGUI], [test x$ngguion = xtrue]) -AM_CONDITIONAL([NGMKL], [test x$mklon = xtrue]) -AM_CONDITIONAL([NGPYTHON], [test x$pythonon = xtrue]) - -# AC_CHECK_HEADER(pthread.h) - -# AC_CHECK_FUNCS([pow]) -# AC_CHECK_FUNCS([floor]) -# AC_CHECK_FUNCS([matherr]) -# AC_CHECK_HEADERS([limits.h]) - -# AC_CHECK_LIB(pthread, pthread_create) -AC_CHECK_LIB(dl, dlsym) - - -# LDFLAGS+=" -L/usr/lib/Togl1.7" -# AC_SEARCH_LIBS(Togl_Init,[Togl Togl1.7], -# MYTOGL_LIB=$LIBS -# LIBS="", -# , -# [-lGL -lXmu -ltk8.5 -ltcl8.5]) -# echo "libs = $LIBS" -# echo "TOGL_LIB = $MYTOGL_LIB" - -# AC_CONFIG_SUBDIRS([ng/Togl-1.7]) - -AC_CONFIG_FILES(Makefile libsrc/Makefile libsrc/csg/Makefile -libsrc/general/Makefile libsrc/geom2d/Makefile libsrc/gprim/Makefile -libsrc/include/Makefile libsrc/interface/Makefile -libsrc/linalg/Makefile libsrc/meshing/Makefile libsrc/occ/Makefile -libsrc/stlgeom/Makefile libsrc/visualization/Makefile ng/Makefile -nglib/Makefile tutorials/Makefile python/Makefile -py_tutorials/Makefile doc/Makefile windows/Makefile ) - -AC_OUTPUT - - - - - - - - -AC_MSG_RESULT([ ------------------------------------------------------------------------- - $PACKAGE $VERSION: Automatic configuration OK. - - Enabled functionality: - - OCC: ............... $occon - JPEGlib: ........... $jpeglibon - FFMPEG: ............ $ffmpegon - NGLIB: ............. $nglibon - GUI: ............... $ngguion - - - Building: - - Type 'make' to compile $PACKAGE. - - Type 'make install' to install $PACKAGE. - - Example programs will be built but not installed. ------------------------------------------------------------------------- -]) diff --git a/doc/Makefile.am b/doc/Makefile.am deleted file mode 100644 index 969d9515..00000000 --- a/doc/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -dist_doc_DATA = ng4.pdf diff --git a/install-sh b/install-sh deleted file mode 100755 index 6781b987..00000000 --- a/install-sh +++ /dev/null @@ -1,520 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2009-04-28.21; # UTC - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. - -nl=' -' -IFS=" "" $nl" - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit=${DOITPROG-} -if test -z "$doit"; then - doit_exec=exec -else - doit_exec=$doit -fi - -# Put in absolute file names if you don't have them in your path; -# or use environment vars. - -chgrpprog=${CHGRPPROG-chgrp} -chmodprog=${CHMODPROG-chmod} -chownprog=${CHOWNPROG-chown} -cmpprog=${CMPPROG-cmp} -cpprog=${CPPROG-cp} -mkdirprog=${MKDIRPROG-mkdir} -mvprog=${MVPROG-mv} -rmprog=${RMPROG-rm} -stripprog=${STRIPPROG-strip} - -posix_glob='?' -initialize_posix_glob=' - test "$posix_glob" != "?" || { - if (set -f) 2>/dev/null; then - posix_glob= - else - posix_glob=: - fi - } -' - -posix_mkdir= - -# Desired mode of installed file. -mode=0755 - -chgrpcmd= -chmodcmd=$chmodprog -chowncmd= -mvcmd=$mvprog -rmcmd="$rmprog -f" -stripcmd= - -src= -dst= -dir_arg= -dst_arg= - -copy_on_change=false -no_target_directory= - -usage="\ -Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE - or: $0 [OPTION]... SRCFILES... DIRECTORY - or: $0 [OPTION]... -t DIRECTORY SRCFILES... - or: $0 [OPTION]... -d DIRECTORIES... - -In the 1st form, copy SRCFILE to DSTFILE. -In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. -In the 4th, create DIRECTORIES. - -Options: - --help display this help and exit. - --version display version info and exit. - - -c (ignored) - -C install only if different (preserve the last data modification time) - -d create directories instead of installing files. - -g GROUP $chgrpprog installed files to GROUP. - -m MODE $chmodprog installed files to MODE. - -o USER $chownprog installed files to USER. - -s $stripprog installed files. - -t DIRECTORY install into DIRECTORY. - -T report an error if DSTFILE is a directory. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG - RMPROG STRIPPROG -" - -while test $# -ne 0; do - case $1 in - -c) ;; - - -C) copy_on_change=true;; - - -d) dir_arg=true;; - - -g) chgrpcmd="$chgrpprog $2" - shift;; - - --help) echo "$usage"; exit $?;; - - -m) mode=$2 - case $mode in - *' '* | *' '* | *' -'* | *'*'* | *'?'* | *'['*) - echo "$0: invalid mode: $mode" >&2 - exit 1;; - esac - shift;; - - -o) chowncmd="$chownprog $2" - shift;; - - -s) stripcmd=$stripprog;; - - -t) dst_arg=$2 - shift;; - - -T) no_target_directory=true;; - - --version) echo "$0 $scriptversion"; exit $?;; - - --) shift - break;; - - -*) echo "$0: invalid option: $1" >&2 - exit 1;; - - *) break;; - esac - shift -done - -if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then - # When -d is used, all remaining arguments are directories to create. - # When -t is used, the destination is already specified. - # Otherwise, the last argument is the destination. Remove it from $@. - for arg - do - if test -n "$dst_arg"; then - # $@ is not empty: it contains at least $arg. - set fnord "$@" "$dst_arg" - shift # fnord - fi - shift # arg - dst_arg=$arg - done -fi - -if test $# -eq 0; then - if test -z "$dir_arg"; then - echo "$0: no input file specified." >&2 - exit 1 - fi - # It's OK to call `install-sh -d' without argument. - # This can happen when creating conditional directories. - exit 0 -fi - -if test -z "$dir_arg"; then - trap '(exit $?); exit' 1 2 13 15 - - # Set umask so as not to create temps with too-generous modes. - # However, 'strip' requires both read and write access to temps. - case $mode in - # Optimize common cases. - *644) cp_umask=133;; - *755) cp_umask=22;; - - *[0-7]) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw='% 200' - fi - cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; - *) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw=,u+rw - fi - cp_umask=$mode$u_plus_rw;; - esac -fi - -for src -do - # Protect names starting with `-'. - case $src in - -*) src=./$src;; - esac - - if test -n "$dir_arg"; then - dst=$src - dstdir=$dst - test -d "$dstdir" - dstdir_status=$? - else - - # Waiting for this to be detected by the "$cpprog $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst_arg"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - - dst=$dst_arg - # Protect names starting with `-'. - case $dst in - -*) dst=./$dst;; - esac - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - if test -n "$no_target_directory"; then - echo "$0: $dst_arg: Is a directory" >&2 - exit 1 - fi - dstdir=$dst - dst=$dstdir/`basename "$src"` - dstdir_status=0 - else - # Prefer dirname, but fall back on a substitute if dirname fails. - dstdir=` - (dirname "$dst") 2>/dev/null || - expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$dst" : 'X\(//\)[^/]' \| \ - X"$dst" : 'X\(//\)$' \| \ - X"$dst" : 'X\(/\)' \| . 2>/dev/null || - echo X"$dst" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q' - ` - - test -d "$dstdir" - dstdir_status=$? - fi - fi - - obsolete_mkdir_used=false - - if test $dstdir_status != 0; then - case $posix_mkdir in - '') - # Create intermediate dirs using mode 755 as modified by the umask. - # This is like FreeBSD 'install' as of 1997-10-28. - umask=`umask` - case $stripcmd.$umask in - # Optimize common cases. - *[2367][2367]) mkdir_umask=$umask;; - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; - - *[0-7]) - mkdir_umask=`expr $umask + 22 \ - - $umask % 100 % 40 + $umask % 20 \ - - $umask % 10 % 4 + $umask % 2 - `;; - *) mkdir_umask=$umask,go-w;; - esac - - # With -d, create the new directory with the user-specified mode. - # Otherwise, rely on $mkdir_umask. - if test -n "$dir_arg"; then - mkdir_mode=-m$mode - else - mkdir_mode= - fi - - posix_mkdir=false - case $umask in - *[123567][0-7][0-7]) - # POSIX mkdir -p sets u+wx bits regardless of umask, which - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. - ;; - *) - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 - - if (umask $mkdir_umask && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 - then - if test -z "$dir_arg" || { - # Check for POSIX incompatibilities with -m. - # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or - # other-writeable bit of parent directory when it shouldn't. - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. - ls_ld_tmpdir=`ls -ld "$tmpdir"` - case $ls_ld_tmpdir in - d????-?r-*) different_mode=700;; - d????-?--*) different_mode=755;; - *) false;; - esac && - $mkdirprog -m$different_mode -p -- "$tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$tmpdir"` - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" - } - } - then posix_mkdir=: - fi - rmdir "$tmpdir/d" "$tmpdir" - else - # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null - fi - trap '' 0;; - esac;; - esac - - if - $posix_mkdir && ( - umask $mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" - ) - then : - else - - # The umask is ridiculous, or mkdir does not conform to POSIX, - # or it failed possibly due to a race condition. Create the - # directory the slow way, step by step, checking for races as we go. - - case $dstdir in - /*) prefix='/';; - -*) prefix='./';; - *) prefix='';; - esac - - eval "$initialize_posix_glob" - - oIFS=$IFS - IFS=/ - $posix_glob set -f - set fnord $dstdir - shift - $posix_glob set +f - IFS=$oIFS - - prefixes= - - for d - do - test -z "$d" && continue - - prefix=$prefix$d - if test -d "$prefix"; then - prefixes= - else - if $posix_mkdir; then - (umask=$mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break - # Don't fail if two instances are running concurrently. - test -d "$prefix" || exit 1 - else - case $prefix in - *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; - *) qprefix=$prefix;; - esac - prefixes="$prefixes '$qprefix'" - fi - fi - prefix=$prefix/ - done - - if test -n "$prefixes"; then - # Don't fail if two instances are running concurrently. - (umask $mkdir_umask && - eval "\$doit_exec \$mkdirprog $prefixes") || - test -d "$dstdir" || exit 1 - obsolete_mkdir_used=true - fi - fi - fi - - if test -n "$dir_arg"; then - { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && - { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || - test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 - else - - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 - - # Copy the file name to the temp name. - (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $cpprog $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && - { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && - { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && - - # If -C, don't bother to copy if it wouldn't change the file. - if $copy_on_change && - old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && - new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && - - eval "$initialize_posix_glob" && - $posix_glob set -f && - set X $old && old=:$2:$4:$5:$6 && - set X $new && new=:$2:$4:$5:$6 && - $posix_glob set +f && - - test "$old" = "$new" && - $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 - then - rm -f "$dsttmp" - else - # Rename the file to the real destination. - $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || - - # The rename failed, perhaps because mv can't rename something else - # to itself, or perhaps because mv is so ancient that it does not - # support -f. - { - # Now remove or move aside any old file at destination location. - # We try this two ways since rm can't unlink itself on some - # systems and the destination file might be busy for other - # reasons. In this case, the final cleanup might fail but the new - # file should still install successfully. - { - test ! -f "$dst" || - $doit $rmcmd -f "$dst" 2>/dev/null || - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } - } || - { echo "$0: cannot unlink or rename $dst" >&2 - (exit 1); exit 1 - } - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dst" - } - fi || exit 1 - - trap '' 0 - fi -done - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/libsrc/Makefile.am b/libsrc/Makefile.am deleted file mode 100644 index eaf37c45..00000000 --- a/libsrc/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -AM_CPPFLAGS = - -METASOURCES = AUTO - -SUBDIRS = general gprim linalg include meshing visualization csg geom2d occ stlgeom interface diff --git a/libsrc/csg/Makefile.am b/libsrc/csg/Makefile.am deleted file mode 100644 index 70d6508d..00000000 --- a/libsrc/csg/Makefile.am +++ /dev/null @@ -1,34 +0,0 @@ -noinst_HEADERS = algprim.hpp csgparser.hpp extrusion.hpp manifold.hpp \ -singularref.hpp surface.hpp brick.hpp curve2d.hpp gencyl.hpp \ -meshsurf.hpp solid.hpp triapprox.hpp csgeom.hpp edgeflw.hpp geoml.hpp \ -polyhedra.hpp specpoin.hpp csg.hpp explicitcurve2d.hpp identify.hpp \ -revolution.hpp spline3d.hpp vscsg.hpp - - -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(TCL_INCLUDES) -METASOURCES = AUTO - -lib_LTLIBRARIES = libcsg.la - - -libcsg_la_SOURCES = algprim.cpp brick.cpp \ -bspline2d.cpp csgeom.cpp csgparser.cpp curve2d.cpp edgeflw.cpp \ -explicitcurve2d.cpp extrusion.cpp gencyl.cpp genmesh.cpp identify.cpp \ -manifold.cpp meshsurf.cpp polyhedra.cpp revolution.cpp singularref.cpp \ -solid.cpp specpoin.cpp spline3d.cpp surface.cpp triapprox.cpp zrefine.cpp \ -python_csg.cpp - -libcsg_la_LIBADD = $(top_builddir)/libsrc/meshing/libmesh.la - - - -if NGGUI -lib_LTLIBRARIES += libcsgvis.la - -libcsgvis_la_SOURCES = csgpkg.cpp -libcsgvis_la_LIBADD = libcsg.la $(top_builddir)/libsrc/visualization/libvisual.la -libcsg_la_SOURCES += vscsg.cpp -libcsg_la_LIBADD += $(top_builddir)/libsrc/visualization/libvisual.la -endif - - diff --git a/libsrc/general/Makefile.am b/libsrc/general/Makefile.am deleted file mode 100644 index 5f6ac07a..00000000 --- a/libsrc/general/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -noinst_HEADERS = array.hpp myadt.hpp optmem.hpp sort.hpp table.hpp autodiff.hpp flags.hpp mystring.hpp spbita2d.hpp template.hpp autoptr.hpp hashtabl.hpp netgenout.hpp profiler.hpp stack.hpp bitarray.hpp seti.hpp symbolta.hpp dynamicmem.hpp parthreads.hpp mpi_interface.hpp gzstream.h archive_base.hpp ngpython.hpp - -include_HEADERS = ngexception.hpp - -AM_CPPFLAGS = $(MPI_INCLUDES) -I$(top_srcdir)/libsrc/include -METASOURCES = AUTO -noinst_LTLIBRARIES = libgen.la -libgen_la_SOURCES = array.cpp bitarray.cpp dynamicmem.cpp flags.cpp \ - hashtabl.cpp mystring.cpp ngexception.cpp optmem.cpp parthreads.cpp \ - profiler.cpp seti.cpp sort.cpp spbita2d.cpp symbolta.cpp table.cpp \ - mpi_interface.cpp gzstream.cpp diff --git a/libsrc/geom2d/Makefile.am b/libsrc/geom2d/Makefile.am deleted file mode 100644 index 757f9c1e..00000000 --- a/libsrc/geom2d/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -noinst_HEADERS = geom2dmesh.hpp geometry2d.hpp vsgeom2d.hpp - -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(TCL_INCLUDES) - -METASOURCES = AUTO - -lib_LTLIBRARIES = libgeom2d.la - -if NGGUI -lib_LTLIBRARIES += libgeom2dvis.la -endif - - - -libgeom2d_la_SOURCES = genmesh2d.cpp geom2dmesh.cpp geometry2d.cpp python_geom2d.cpp -libgeom2d_la_LIBADD = $(top_builddir)/libsrc/meshing/libmesh.la - -libgeom2dvis_la_SOURCES = geom2dpkg.cpp vsgeom2d.cpp -libgeom2dvis_la_LIBADD = libgeom2d.la - - diff --git a/libsrc/gprim/Makefile.am b/libsrc/gprim/Makefile.am deleted file mode 100644 index 7d60c42d..00000000 --- a/libsrc/gprim/Makefile.am +++ /dev/null @@ -1,7 +0,0 @@ -noinst_HEADERS = adtree.hpp geom3d.hpp geomobjects2.hpp geomops2.hpp geomtest3d.hpp transform3d.hpp geom2d.hpp geomfuncs.hpp geomobjects.hpp geomops.hpp gprim.hpp spline.hpp splinegeometry.hpp - -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include -METASOURCES = AUTO -noinst_LTLIBRARIES = libgprim.la -libgprim_la_SOURCES = adtree.cpp geom2d.cpp geom3d.cpp geomfuncs.cpp \ - geomtest3d.cpp transform3d.cpp spline.cpp splinegeometry.cpp diff --git a/libsrc/include/Makefile.am b/libsrc/include/Makefile.am deleted file mode 100644 index 7b1c9379..00000000 --- a/libsrc/include/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -noinst_HEADERS = acisgeom.hpp gprim.hpp meshing.hpp occgeom.hpp \ -visual.hpp csg.hpp incvis.hpp myadt.hpp opti.hpp geometry2d.hpp \ -linalg.hpp mydefs.hpp parallel.hpp stlgeom.hpp mystdlib.h \ -nginterface_v2_impl.hpp inctcl.hpp incopengl.hpp - -include_HEADERS = nginterface.h nginterface_v2.hpp - -AM_CPPFLAGS = -METASOURCES = AUTO diff --git a/libsrc/interface/Makefile.am b/libsrc/interface/Makefile.am deleted file mode 100644 index 0670e262..00000000 --- a/libsrc/interface/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -noinst_HEADERS = writeuser.hpp - -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include -I$(top_srcdir)/libsrc/interface $(MPI_INCLUDES) $(TCL_INCLUDES) -DOPENGL -METASOURCES = AUTO -lib_LTLIBRARIES = libinterface.la -libinterface_la_SOURCES = nginterface.cpp nginterface_v2.cpp \ - read_fnf_mesh.cpp readtetmesh.cpp readuser.cpp writeabaqus.cpp writediffpack.cpp \ - writedolfin.cpp writeelmer.cpp writefeap.cpp writefluent.cpp writegmsh.cpp writejcm.cpp \ - writepermas.cpp writetecplot.cpp writetet.cpp writetochnog.cpp writeuser.cpp \ - wuchemnitz.cpp writegmsh2.cpp writeOpenFOAM15x.cpp - - -libinterface_la_LIBADD = $(top_builddir)/libsrc/meshing/libmesh.la \ - $(top_builddir)/libsrc/visualization/libvisual.la \ - $(top_builddir)/libsrc/csg/libcsg.la \ - $(top_builddir)/libsrc/geom2d/libgeom2d.la - -# libinterface_la_LDFLAGS = -rdynamic diff --git a/libsrc/linalg/Makefile.am b/libsrc/linalg/Makefile.am deleted file mode 100644 index c6f7c4d8..00000000 --- a/libsrc/linalg/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -noinst_HEADERS = densemat.hpp linalg.hpp polynomial.hpp vector.hpp opti.hpp -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include -METASOURCES = AUTO -noinst_LTLIBRARIES = libla.la -libla_la_SOURCES = densemat.cpp polynomial.cpp bfgs.cpp linopt.cpp linsearch.cpp - -# vector.cpp - -# libla_la_LDFLAGS = -rdynamic diff --git a/libsrc/meshing/Makefile.am b/libsrc/meshing/Makefile.am deleted file mode 100644 index 8e0705fc..00000000 --- a/libsrc/meshing/Makefile.am +++ /dev/null @@ -1,38 +0,0 @@ -AM_CPPFLAGS = $(MPI_INCLUDES) -I$(top_srcdir)/libsrc/include - - -noinst_HEADERS = adfront2.hpp hpref_quad.hpp meshfunc.hpp ruler3.hpp \ -adfront3.hpp findip.hpp findip2.hpp hpref_segm.hpp meshing2.hpp \ -specials.hpp bisect.hpp geomsearch.hpp hpref_tet.hpp meshing3.hpp \ -topology.hpp boundarylayer.hpp global.hpp hpref_trig.hpp meshing.hpp \ -validate.hpp classifyhpel.hpp hpref_hex.hpp improve2.hpp meshtool.hpp \ -clusters.hpp hprefinement.hpp improve3.hpp meshtype.hpp \ - hpref_prism.hpp localh.hpp msghandler.hpp curvedelems.hpp \ - hpref_pyramid.hpp meshclass.hpp ruler2.hpp bcfunctions.hpp \ - basegeom.hpp - - - -METASOURCES = AUTO - -lib_LTLIBRARIES = libmesh.la - -libmesh_la_SOURCES = adfront2.cpp adfront3.cpp bisect.cpp boundarylayer.cpp \ - clusters.cpp curvedelems.cpp delaunay.cpp delaunay2d.cpp \ - geomsearch.cpp global.cpp hprefinement.cpp improve2.cpp \ - improve2gen.cpp improve3.cpp localh.cpp meshclass.cpp \ - meshfunc.cpp meshfunc2d.cpp meshing2.cpp meshing3.cpp \ - meshtool.cpp meshtype.cpp msghandler.cpp netrule2.cpp \ - netrule3.cpp parser2.cpp parser3.cpp prism2rls.cpp \ - pyramid2rls.cpp pyramidrls.cpp quadrls.cpp refine.cpp \ - ruler2.cpp ruler3.cpp secondorder.cpp smoothing2.5.cpp \ - smoothing2.cpp smoothing3.cpp specials.cpp tetrarls.cpp \ - topology.cpp triarls.cpp validate.cpp bcfunctions.cpp \ - parallelmesh.cpp paralleltop.cpp paralleltop.hpp basegeom.cpp \ - python_mesh.cpp - -libmesh_la_LIBADD = $(top_builddir)/libsrc/linalg/libla.la \ - $(top_builddir)/libsrc/gprim/libgprim.la \ - $(top_builddir)/libsrc/general/libgen.la \ - -lz $(MPI_LIBS) - diff --git a/libsrc/occ/Makefile.am b/libsrc/occ/Makefile.am deleted file mode 100644 index 6569192d..00000000 --- a/libsrc/occ/Makefile.am +++ /dev/null @@ -1,33 +0,0 @@ -noinst_HEADERS = occgeom.hpp occmeshsurf.hpp \ -Partition_Inter2d.hxx Partition_Loop2d.hxx Partition_Loop.hxx \ -Partition_Inter3d.hxx Partition_Loop3d.hxx Partition_Spliter.hxx \ -Partition_Inter2d.ixx Partition_Loop2d.ixx Partition_Loop.ixx \ -Partition_Inter3d.ixx Partition_Loop3d.ixx Partition_Spliter.ixx \ -Partition_Inter2d.jxx Partition_Loop2d.jxx Partition_Loop.jxx \ -Partition_Inter3d.jxx Partition_Loop3d.jxx Partition_Spliter.jxx \ -utilities.h vsocc.hpp - - -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(OCCFLAGS) $(TCL_INCLUDES) - -# $(OCC_INC_FLAG) - -METASOURCES = AUTO - -lib_LTLIBRARIES = libocc.la - -if NGGUI -lib_LTLIBRARIES += liboccvis.la -endif - - -libocc_la_SOURCES = Partition_Inter2d.cxx Partition_Inter3d.cxx \ - Partition_Loop.cxx Partition_Loop2d.cxx Partition_Loop3d.cxx Partition_Spliter.cxx \ - occconstruction.cpp occgenmesh.cpp occgeom.cpp occmeshsurf.cpp - -libocc_la_LIBADD = $(OCCLIBS) - -liboccvis_la_SOURCES = occpkg.cpp vsocc.cpp -liboccvis_la_LIBADD = libocc.la - - diff --git a/libsrc/stlgeom/Makefile.am b/libsrc/stlgeom/Makefile.am deleted file mode 100644 index eb34f52a..00000000 --- a/libsrc/stlgeom/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -noinst_HEADERS = meshstlsurface.hpp stlgeom.hpp stlline.hpp \ -stltool.hpp stltopology.hpp vsstl.hpp - -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(TCL_INCLUDES) -METASOURCES = AUTO - -lib_LTLIBRARIES = libstl.la - - -libstl_la_SOURCES = meshstlsurface.cpp stlgeom.cpp stlgeomchart.cpp \ - stlgeommesh.cpp stlline.cpp stltool.cpp stltopology.cpp - - -libstl_la_LIBADD = $(top_builddir)/libsrc/meshing/libmesh.la - - - - -if NGGUI -lib_LTLIBRARIES += libstlvis.la -libstlvis_la_SOURCES = stlpkg.cpp -libstlvis_la_LIBADD = libstl.la $(top_builddir)/libsrc/visualization/libvisual.la -libstl_la_SOURCES += vsstl.cpp -libstl_la_LIBADD += $(top_builddir)/libsrc/visualization/libvisual.la -endif diff --git a/libsrc/visualization/Makefile.am b/libsrc/visualization/Makefile.am deleted file mode 100644 index 052be80d..00000000 --- a/libsrc/visualization/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -noinst_HEADERS = meshdoc.hpp mvdraw.hpp vispar.hpp \ -visual.hpp vssolution.hpp - -include_HEADERS = soldata.hpp - -AM_CPPFLAGS = $(MPI_INCLUDES) -I$(top_srcdir)/libsrc/include -DOPENGL -D$(TOGL_WINDOWINGSYSTEM) $(OCCFLAGS) $(TCL_INCLUDES) -METASOURCES = AUTO - -lib_LTLIBRARIES = libvisual.la - - -libvisual_la_SOURCES = - -if NGGUI -libvisual_la_LIBADD = $(LIBGLU) $(TCL_LIB_SPEC) -libvisual_la_SOURCES += meshdoc.cpp mvdraw.cpp \ - vsfieldlines.cpp vsmesh.cpp vssolution.cpp importsolution.cpp visualpkg.cpp -else -libvisual_la_SOURCES += visual_dummy.cpp -endif - - - - - diff --git a/m4/ax_boost_base.m4 b/m4/ax_boost_base.m4 deleted file mode 100644 index 8e6ee9a9..00000000 --- a/m4/ax_boost_base.m4 +++ /dev/null @@ -1,272 +0,0 @@ -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_boost_base.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# -# DESCRIPTION -# -# Test for the Boost C++ libraries of a particular version (or newer) -# -# If no path to the installed boost library is given the macro searchs -# under /usr, /usr/local, /opt and /opt/local and evaluates the -# $BOOST_ROOT environment variable. Further documentation is available at -# . -# -# This macro calls: -# -# AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS) -# -# And sets: -# -# HAVE_BOOST -# -# LICENSE -# -# Copyright (c) 2008 Thomas Porschberg -# Copyright (c) 2009 Peter Adolphs -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 23 - -AC_DEFUN([AX_BOOST_BASE], -[ -AC_ARG_WITH([boost], - [AS_HELP_STRING([--with-boost@<:@=ARG@:>@], - [use Boost library from a standard location (ARG=yes), - from the specified location (ARG=), - or disable it (ARG=no) - @<:@ARG=yes@:>@ ])], - [ - if test "$withval" = "no"; then - want_boost="no" - elif test "$withval" = "yes"; then - want_boost="yes" - ac_boost_path="" - else - want_boost="yes" - ac_boost_path="$withval" - fi - ], - [want_boost="yes"]) - - -AC_ARG_WITH([boost-libdir], - AS_HELP_STRING([--with-boost-libdir=LIB_DIR], - [Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]), - [ - if test -d "$withval" - then - ac_boost_lib_path="$withval" - else - AC_MSG_ERROR(--with-boost-libdir expected directory name) - fi - ], - [ac_boost_lib_path=""] -) - -if test "x$want_boost" = "xyes"; then - boost_lib_version_req=ifelse([$1], ,1.20.0,$1) - boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'` - boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'` - boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'` - boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` - if test "x$boost_lib_version_req_sub_minor" = "x" ; then - boost_lib_version_req_sub_minor="0" - fi - WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` - AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req) - succeeded=no - - dnl On 64-bit systems check for system libraries in both lib64 and lib. - dnl The former is specified by FHS, but e.g. Debian does not adhere to - dnl this (as it rises problems for generic multi-arch support). - dnl The last entry in the list is chosen by default when no libraries - dnl are found, e.g. when only header-only libraries are installed! - libsubdirs="lib" - ax_arch=`uname -m` - case $ax_arch in - x86_64|ppc64|s390x|sparc64|aarch64) - libsubdirs="lib64 lib lib64" - ;; - esac - - dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give - dnl them priority over the other paths since, if libs are found there, they - dnl are almost assuredly the ones desired. - AC_REQUIRE([AC_CANONICAL_HOST]) - libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs" - - case ${host_cpu} in - i?86) - libsubdirs="lib/i386-${host_os} $libsubdirs" - ;; - esac - - dnl first we check the system location for boost libraries - dnl this location ist chosen if boost libraries are installed with the --layout=system option - dnl or if you install boost with RPM - if test "$ac_boost_path" != ""; then - BOOST_CPPFLAGS="-I$ac_boost_path/include" - for ac_boost_path_tmp in $libsubdirs; do - if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then - BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp" - break - fi - done - elif test "$cross_compiling" != yes; then - for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do - if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then - for libsubdir in $libsubdirs ; do - if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi - done - BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir" - BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" - break; - fi - done - fi - - dnl overwrite ld flags if we have required special directory with - dnl --with-boost-libdir parameter - if test "$ac_boost_lib_path" != ""; then - BOOST_LDFLAGS="-L$ac_boost_lib_path" - fi - - CPPFLAGS_SAVED="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" - export CPPFLAGS - - LDFLAGS_SAVED="$LDFLAGS" - LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" - export LDFLAGS - - AC_REQUIRE([AC_PROG_CXX]) - AC_LANG_PUSH(C++) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - @%:@include - ]], [[ - #if BOOST_VERSION >= $WANT_BOOST_VERSION - // Everything is okay - #else - # error Boost version is too old - #endif - ]])],[ - AC_MSG_RESULT(yes) - succeeded=yes - found_system=yes - ],[ - ]) - AC_LANG_POP([C++]) - - - - dnl if we found no boost with system layout we search for boost libraries - dnl built and installed without the --layout=system option or for a staged(not installed) version - if test "x$succeeded" != "xyes"; then - _version=0 - if test "$ac_boost_path" != ""; then - if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then - for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do - _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` - V_CHECK=`expr $_version_tmp \> $_version` - if test "$V_CHECK" = "1" ; then - _version=$_version_tmp - fi - VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` - BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" - done - fi - else - if test "$cross_compiling" != yes; then - for ac_boost_path in /usr /usr/local /opt /opt/local ; do - if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then - for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do - _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` - V_CHECK=`expr $_version_tmp \> $_version` - if test "$V_CHECK" = "1" ; then - _version=$_version_tmp - best_path=$ac_boost_path - fi - done - fi - done - - VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` - BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" - if test "$ac_boost_lib_path" = ""; then - for libsubdir in $libsubdirs ; do - if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi - done - BOOST_LDFLAGS="-L$best_path/$libsubdir" - fi - fi - - if test "x$BOOST_ROOT" != "x"; then - for libsubdir in $libsubdirs ; do - if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi - done - if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then - version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` - stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` - stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'` - V_CHECK=`expr $stage_version_shorten \>\= $_version` - if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then - AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT) - BOOST_CPPFLAGS="-I$BOOST_ROOT" - BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" - fi - fi - fi - fi - - CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" - export CPPFLAGS - LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" - export LDFLAGS - - AC_LANG_PUSH(C++) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - @%:@include - ]], [[ - #if BOOST_VERSION >= $WANT_BOOST_VERSION - // Everything is okay - #else - # error Boost version is too old - #endif - ]])],[ - AC_MSG_RESULT(yes) - succeeded=yes - found_system=yes - ],[ - ]) - AC_LANG_POP([C++]) - fi - - if test "$succeeded" != "yes" ; then - if test "$_version" = "0" ; then - AC_MSG_NOTICE([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in . See http://randspringer.de/boost for more documentation.]]) - else - AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).]) - fi - # execute ACTION-IF-NOT-FOUND (if present): - ifelse([$3], , :, [$3]) - else - AC_SUBST(BOOST_CPPFLAGS) - AC_SUBST(BOOST_LDFLAGS) - AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available]) - # execute ACTION-IF-FOUND (if present): - ifelse([$2], , :, [$2]) - fi - - CPPFLAGS="$CPPFLAGS_SAVED" - LDFLAGS="$LDFLAGS_SAVED" -fi - -]) diff --git a/m4/ax_boost_python.m4 b/m4/ax_boost_python.m4 deleted file mode 100644 index 5da5395f..00000000 --- a/m4/ax_boost_python.m4 +++ /dev/null @@ -1,99 +0,0 @@ -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_boost_python.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_BOOST_PYTHON -# -# DESCRIPTION -# -# This macro checks to see if the Boost.Python library is installed. It -# also attempts to guess the correct library name using several attempts. -# It tries to build the library name using a user supplied name or suffix -# and then just the raw library. -# -# If the library is found, HAVE_BOOST_PYTHON is defined and -# BOOST_PYTHON_LIB is set to the name of the library. -# -# This macro calls AC_SUBST(BOOST_PYTHON_LIB). -# -# In order to ensure that the Python headers and the Boost libraries are -# specified on the include path, this macro requires AX_PYTHON_DEVEL and -# AX_BOOST_BASE to be called. -# -# LICENSE -# -# Copyright (c) 2008 Michael Tindal -# Copyright (c) 2013 Daniel Mullner -# -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 2 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 18 - -AC_DEFUN([AX_BOOST_PYTHON], -[AC_REQUIRE([AX_PYTHON_DEVEL])dnl -AC_CACHE_CHECK(whether the Boost::Python library is available, -ac_cv_boost_python, -[AC_LANG_SAVE - AC_LANG_CPLUSPLUS - CPPFLAGS_SAVE="$CPPFLAGS" - if test x$PYTHON_CPPFLAGS != x; then - CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS" - fi - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include //JS - using namespace boost::python; - /* - // JS: add some python 3 code to force linking to bp-3x - class Hugo { }; //JS - void func() { //JS - class_("Hugo", boost::python::no_init); } //JS - */ - BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }]], - [[return 0;]])], - ac_cv_boost_python=yes, ac_cv_boost_python=no) - AC_LANG_RESTORE - CPPFLAGS="$CPPFLAGS_SAVE" -]) -if test "$ac_cv_boost_python" = "yes"; then - AC_DEFINE(HAVE_BOOST_PYTHON,,[define if the Boost::Python library is available]) - ax_python_lib=boost_python - AC_ARG_WITH([boost-python],AS_HELP_STRING([--with-boost-python],[specify yes/no or the boost python library or suffix to use]), - [if test "x$with_boost_python" != "xno"; then - ax_python_lib=$with_boost_python - ax_boost_python_lib=boost_python-$with_boost_python - fi]) - BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` -# JS: added -py3 three times for force bp-py3x - for ax_lib in `ls -r $BOOSTLIBDIR/libboost_python-py3*.so* $BOOSTLIBDIR/libboost_python-py3*.dylib* $BOOSTLIBDIR/libboost_python-py3*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_python.*\)\.so.*$;\1;' -e 's;^lib\(boost_python.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_python.*\)\.a.*$;\1;' ` $ax_python_lib $ax_boost_python_lib boost_python; do - AC_CHECK_LIB($ax_lib, exit, [BOOST_PYTHON_LIB=$ax_lib break], , [$PYTHON_LDFLAGS]) - done - AC_SUBST(BOOST_PYTHON_LIB) -fi -])dnl diff --git a/m4/ax_cxx_compile_stdcxx_11.m4 b/m4/ax_cxx_compile_stdcxx_11.m4 deleted file mode 100644 index af37acdb..00000000 --- a/m4/ax_cxx_compile_stdcxx_11.m4 +++ /dev/null @@ -1,133 +0,0 @@ -# ============================================================================ -# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html -# ============================================================================ -# -# SYNOPSIS -# -# AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional]) -# -# DESCRIPTION -# -# Check for baseline language coverage in the compiler for the C++11 -# standard; if necessary, add switches to CXXFLAGS to enable support. -# -# The first argument, if specified, indicates whether you insist on an -# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. -# -std=c++11). If neither is specified, you get whatever works, with -# preference for an extended mode. -# -# The second argument, if specified 'mandatory' or if left unspecified, -# indicates that baseline C++11 support is required and that the macro -# should error out if no mode with that support is found. If specified -# 'optional', then configuration proceeds regardless, after defining -# HAVE_CXX11 if and only if a supporting mode is found. -# -# LICENSE -# -# Copyright (c) 2008 Benjamin Kosnik -# Copyright (c) 2012 Zack Weinberg -# Copyright (c) 2013 Roy Stogner -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 3 - -m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [ - template - struct check - { - static_assert(sizeof(int) <= sizeof(T), "not big enough"); - }; - - typedef check> right_angle_brackets; - - int a; - decltype(a) b; - - typedef check check_type; - check_type c; - check_type&& cr = static_cast(c); - - auto d = a; -]) - -AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl - m4_if([$1], [], [], - [$1], [ext], [], - [$1], [noext], [], - [m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl - m4_if([$2], [], [ax_cxx_compile_cxx11_required=true], - [$2], [mandatory], [ax_cxx_compile_cxx11_required=true], - [$2], [optional], [ax_cxx_compile_cxx11_required=false], - [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])dnl - AC_LANG_PUSH([C++])dnl - ac_success=no - AC_CACHE_CHECK(whether $CXX supports C++11 features by default, - ax_cv_cxx_compile_cxx11, - [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], - [ax_cv_cxx_compile_cxx11=yes], - [ax_cv_cxx_compile_cxx11=no])]) - if test x$ax_cv_cxx_compile_cxx11 = xyes; then - ac_success=yes - fi - - m4_if([$1], [noext], [], [dnl - if test x$ac_success = xno; then - for switch in -std=gnu++11 -std=gnu++0x; do - cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) - AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, - $cachevar, - [ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS $switch" - AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], - [eval $cachevar=yes], - [eval $cachevar=no]) - CXXFLAGS="$ac_save_CXXFLAGS"]) - if eval test x\$$cachevar = xyes; then - CXXFLAGS="$CXXFLAGS $switch" - ac_success=yes - break - fi - done - fi]) - - m4_if([$1], [ext], [], [dnl - if test x$ac_success = xno; then - for switch in -std=c++11 -std=c++0x; do - cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) - AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, - $cachevar, - [ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS $switch" - AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], - [eval $cachevar=yes], - [eval $cachevar=no]) - CXXFLAGS="$ac_save_CXXFLAGS"]) - if eval test x\$$cachevar = xyes; then - CXXFLAGS="$CXXFLAGS $switch" - ac_success=yes - break - fi - done - fi]) - AC_LANG_POP([C++]) - if test x$ax_cxx_compile_cxx11_required = xtrue; then - if test x$ac_success = xno; then - AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.]) - fi - else - if test x$ac_success = xno; then - HAVE_CXX11=0 - AC_MSG_NOTICE([No compiler with C++11 support was found]) - else - HAVE_CXX11=1 - AC_DEFINE(HAVE_CXX11,1, - [define if the compiler supports basic C++11 syntax]) - fi - - AC_SUBST(HAVE_CXX11) - fi -]) diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 deleted file mode 100644 index 59a2ff09..00000000 --- a/m4/ax_python_devel.m4 +++ /dev/null @@ -1,324 +0,0 @@ -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_python_devel.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_PYTHON_DEVEL([version]) -# -# DESCRIPTION -# -# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it -# in your configure.ac. -# -# This macro checks for Python and tries to get the include path to -# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS) -# output variables. It also exports $(PYTHON_EXTRA_LIBS) and -# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code. -# -# You can search for some particular version of Python by passing a -# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please -# note that you *have* to pass also an operator along with the version to -# match, and pay special attention to the single quotes surrounding the -# version number. Don't use "PYTHON_VERSION" for this: that environment -# variable is declared as precious and thus reserved for the end-user. -# -# This macro should work for all versions of Python >= 2.1.0. As an end -# user, you can disable the check for the python version by setting the -# PYTHON_NOVERSIONCHECK environment variable to something else than the -# empty string. -# -# If you need to use this macro for an older Python version, please -# contact the authors. We're always open for feedback. -# -# LICENSE -# -# Copyright (c) 2009 Sebastian Huber -# Copyright (c) 2009 Alan W. Irwin -# Copyright (c) 2009 Rafael Laboissiere -# Copyright (c) 2009 Andrew Collier -# Copyright (c) 2009 Matteo Settenvini -# Copyright (c) 2009 Horst Knorr -# Copyright (c) 2013 Daniel Mullner -# -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation, either version 3 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 17 - -AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL]) -AC_DEFUN([AX_PYTHON_DEVEL],[ - # - # Allow the use of a (user set) custom python version - # - AC_ARG_VAR([PYTHON_VERSION],[The installed Python - version to use, for example '2.3'. This string - will be appended to the Python interpreter - canonical name.]) - - AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]]) - if test -z "$PYTHON"; then - AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path]) - PYTHON_VERSION="" - fi - - # - # Check for a version of Python >= 2.1.0 - # - AC_MSG_CHECKING([for a version of Python >= '2.1.0']) - ac_supports_python_ver=`$PYTHON -c "import sys; \ - ver = sys.version.split ()[[0]]; \ - print (ver >= '2.1.0')"` - if test "$ac_supports_python_ver" != "True"; then - if test -z "$PYTHON_NOVERSIONCHECK"; then - AC_MSG_RESULT([no]) - AC_MSG_FAILURE([ -This version of the AC@&t@_PYTHON_DEVEL macro -doesn't work properly with versions of Python before -2.1.0. You may need to re-run configure, setting the -variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, -PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. -Moreover, to disable this check, set PYTHON_NOVERSIONCHECK -to something else than an empty string. -]) - else - AC_MSG_RESULT([skip at user request]) - fi - else - AC_MSG_RESULT([yes]) - fi - - # - # if the macro parameter ``version'' is set, honour it - # - if test -n "$1"; then - AC_MSG_CHECKING([for a version of Python $1]) - ac_supports_python_ver=`$PYTHON -c "import sys; \ - ver = sys.version.split ()[[0]]; \ - print (ver $1)"` - if test "$ac_supports_python_ver" = "True"; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - AC_MSG_ERROR([this package requires Python $1. -If you have it installed, but it isn't the default Python -interpreter in your system path, please pass the PYTHON_VERSION -variable to configure. See ``configure --help'' for reference. -]) - PYTHON_VERSION="" - fi - fi - - # - # Check if you have distutils, else fail - # - AC_MSG_CHECKING([for the distutils Python package]) - ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` - if test -z "$ac_distutils_result"; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - AC_MSG_ERROR([cannot import Python module "distutils". -Please check your Python installation. The error was: -$ac_distutils_result]) - PYTHON_VERSION="" - fi - - # - # Check for Python include path - # - AC_MSG_CHECKING([for Python include path]) - if test -z "$PYTHON_CPPFLAGS"; then - python_path=`$PYTHON -c "import distutils.sysconfig; \ - print (distutils.sysconfig.get_python_inc ());"` - plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ - print (distutils.sysconfig.get_python_inc (plat_specific=1));"` - if test -n "${python_path}"; then - if test "${plat_python_path}" != "${python_path}"; then - python_path="-I$python_path -I$plat_python_path" - else - python_path="-I$python_path" - fi - fi - PYTHON_CPPFLAGS=$python_path - fi - AC_MSG_RESULT([$PYTHON_CPPFLAGS]) - AC_SUBST([PYTHON_CPPFLAGS]) - - # - # Check for Python library path - # - AC_MSG_CHECKING([for Python library path]) - if test -z "$PYTHON_LDFLAGS"; then - # (makes two attempts to ensure we've got a version number - # from the interpreter) - ac_python_version=`cat<]], - [[Py_Initialize();]]) - ],[pythonexists=yes],[pythonexists=no]) - AC_LANG_POP([C]) - # turn back to default flags - CPPFLAGS="$ac_save_CPPFLAGS" - LIBS="$ac_save_LIBS" - - AC_MSG_RESULT([$pythonexists]) - - if test ! "x$pythonexists" = "xyes"; then - AC_MSG_FAILURE([ - Could not link test program to Python. Maybe the main Python library has been - installed in some non-standard library path. If so, pass it to configure, - via the LDFLAGS environment variable. - Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" - ============================================================================ - ERROR! - You probably have to install the development version of the Python package - for your distribution. The exact name of this package varies among them. - ============================================================================ - ]) - PYTHON_VERSION="" - fi - - # - # all done! - # -]) diff --git a/m4/ltsugar.m4 b/m4/ltsugar.m4 deleted file mode 100644 index 9000a057..00000000 --- a/m4/ltsugar.m4 +++ /dev/null @@ -1,123 +0,0 @@ -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- -# -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 6 ltsugar.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) - - -# lt_join(SEP, ARG1, [ARG2...]) -# ----------------------------- -# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their -# associated separator. -# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier -# versions in m4sugar had bugs. -m4_define([lt_join], -[m4_if([$#], [1], [], - [$#], [2], [[$2]], - [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) -m4_define([_lt_join], -[m4_if([$#$2], [2], [], - [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) - - -# lt_car(LIST) -# lt_cdr(LIST) -# ------------ -# Manipulate m4 lists. -# These macros are necessary as long as will still need to support -# Autoconf-2.59 which quotes differently. -m4_define([lt_car], [[$1]]) -m4_define([lt_cdr], -[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], - [$#], 1, [], - [m4_dquote(m4_shift($@))])]) -m4_define([lt_unquote], $1) - - -# lt_append(MACRO-NAME, STRING, [SEPARATOR]) -# ------------------------------------------ -# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. -# Note that neither SEPARATOR nor STRING are expanded; they are appended -# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). -# No SEPARATOR is output if MACRO-NAME was previously undefined (different -# than defined and empty). -# -# This macro is needed until we can rely on Autoconf 2.62, since earlier -# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. -m4_define([lt_append], -[m4_define([$1], - m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) - - - -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) -# ---------------------------------------------------------- -# Produce a SEP delimited list of all paired combinations of elements of -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list -# has the form PREFIXmINFIXSUFFIXn. -# Needed until we can rely on m4_combine added in Autoconf 2.62. -m4_define([lt_combine], -[m4_if(m4_eval([$# > 3]), [1], - [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl -[[m4_foreach([_Lt_prefix], [$2], - [m4_foreach([_Lt_suffix], - ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, - [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) - - -# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) -# ----------------------------------------------------------------------- -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. -m4_define([lt_if_append_uniq], -[m4_ifdef([$1], - [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], - [lt_append([$1], [$2], [$3])$4], - [$5])], - [lt_append([$1], [$2], [$3])$4])]) - - -# lt_dict_add(DICT, KEY, VALUE) -# ----------------------------- -m4_define([lt_dict_add], -[m4_define([$1($2)], [$3])]) - - -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) -# -------------------------------------------- -m4_define([lt_dict_add_subkey], -[m4_define([$1($2:$3)], [$4])]) - - -# lt_dict_fetch(DICT, KEY, [SUBKEY]) -# ---------------------------------- -m4_define([lt_dict_fetch], -[m4_ifval([$3], - m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), - m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) - - -# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) -# ----------------------------------------------------------------- -m4_define([lt_if_dict_fetch], -[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], - [$5], - [$6])]) - - -# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) -# -------------------------------------------------------------- -m4_define([lt_dict_filter], -[m4_if([$5], [], [], - [lt_join(m4_quote(m4_default([$4], [[, ]])), - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), - [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl -]) diff --git a/m4/tcl.m4 b/m4/tcl.m4 deleted file mode 100644 index acb5a5db..00000000 --- a/m4/tcl.m4 +++ /dev/null @@ -1,4057 +0,0 @@ -# tcl.m4 -- -# -# This file provides a set of autoconf macros to help TEA-enable -# a Tcl extension. -# -# Copyright (c) 1999-2000 Ajuba Solutions. -# Copyright (c) 2002-2005 ActiveState Corporation. -# -# See the file "license.terms" for information on usage and redistribution -# of this file, and for a DISCLAIMER OF ALL WARRANTIES. -# -# RCS: @(#) $Id: tcl.m4,v 1.157 2010/12/15 05:35:07 stwo Exp $ - -AC_PREREQ(2.57) - -dnl TEA extensions pass us the version of TEA they think they -dnl are compatible with (must be set in TEA_INIT below) -dnl TEA_VERSION="3.9" - -# Possible values for key variables defined: -# -# TEA_WINDOWINGSYSTEM - win32 aqua x11 (mirrors 'tk windowingsystem') -# TEA_PLATFORM - windows unix -# - -#------------------------------------------------------------------------ -# TEA_PATH_TCLCONFIG -- -# -# Locate the tclConfig.sh file and perform a sanity check on -# the Tcl compile flags -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --with-tcl=... -# -# Defines the following vars: -# TCL_BIN_DIR Full path to the directory containing -# the tclConfig.sh file -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PATH_TCLCONFIG], [ - dnl TEA specific: Make sure we are initialized - AC_REQUIRE([TEA_INIT]) - # - # Ok, lets find the tcl configuration - # First, look for one uninstalled. - # the alternative search directory is invoked by --with-tcl - # - - if test x"${no_tcl}" = x ; then - # we reset no_tcl in case something fails here - no_tcl=true - AC_ARG_WITH(tcl, - AC_HELP_STRING([--with-tcl], - [directory containing tcl configuration (tclConfig.sh)]), - with_tclconfig="${withval}") - AC_MSG_CHECKING([for Tcl configuration]) - AC_CACHE_VAL(ac_cv_c_tclconfig,[ - - # First check to see if --with-tcl was specified. - if test x"${with_tclconfig}" != x ; then - case "${with_tclconfig}" in - */tclConfig.sh ) - if test -f "${with_tclconfig}"; then - AC_MSG_WARN([--with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself]) - with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" - fi ;; - esac - if test -f "${with_tclconfig}/tclConfig.sh" ; then - ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" - else - AC_MSG_ERROR([${with_tclconfig} directory doesn't contain tclConfig.sh]) - fi - fi - - # then check for a private Tcl installation - if test x"${ac_cv_c_tclconfig}" = x ; then - for i in \ - ../tcl \ - `ls -dr ../tcl[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \ - `ls -dr ../tcl[[8-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../tcl[[8-9]].[[0-9]]* 2>/dev/null` \ - ../../tcl \ - `ls -dr ../../tcl[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \ - `ls -dr ../../tcl[[8-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../../tcl[[8-9]].[[0-9]]* 2>/dev/null` \ - ../../../tcl \ - `ls -dr ../../../tcl[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \ - `ls -dr ../../../tcl[[8-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../../../tcl[[8-9]].[[0-9]]* 2>/dev/null` ; do - if test "${TEA_PLATFORM}" = "windows" \ - -a -f "$i/win/tclConfig.sh" ; then - ac_cv_c_tclconfig="`(cd $i/win; pwd)`" - break - fi - if test -f "$i/unix/tclConfig.sh" ; then - ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" - break - fi - done - fi - - # on Darwin, check in Framework installation locations - if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then - for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ - `ls -d /Library/Frameworks 2>/dev/null` \ - `ls -d /Network/Library/Frameworks 2>/dev/null` \ - `ls -d /System/Library/Frameworks 2>/dev/null` \ - ; do - if test -f "$i/Tcl.framework/tclConfig.sh" ; then - ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" - break - fi - done - fi - - # TEA specific: on Windows, check in common installation locations - if test "${TEA_PLATFORM}" = "windows" \ - -a x"${ac_cv_c_tclconfig}" = x ; then - for i in `ls -d C:/Tcl/lib 2>/dev/null` \ - `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ - ; do - if test -f "$i/tclConfig.sh" ; then - ac_cv_c_tclconfig="`(cd $i; pwd)`" - break - fi - done - fi - - # check in a few common install locations - if test x"${ac_cv_c_tclconfig}" = x ; then - for i in `ls -d ${libdir} 2>/dev/null` \ - `ls -d ${exec_prefix}/lib 2>/dev/null` \ - `ls -d ${prefix}/lib 2>/dev/null` \ - `ls -d /usr/local/lib 2>/dev/null` \ - `ls -d /usr/contrib/lib 2>/dev/null` \ - `ls -d /usr/lib 2>/dev/null` \ - `ls -d /usr/lib/tcl8.5 2>/dev/null` \ - `ls -d /usr/lib64 2>/dev/null` \ - ; do - if test -f "$i/tclConfig.sh" ; then - ac_cv_c_tclconfig="`(cd $i; pwd)`" - break - fi - done - fi - - # check in a few other private locations - if test x"${ac_cv_c_tclconfig}" = x ; then - for i in \ - ${srcdir}/../tcl \ - `ls -dr ${srcdir}/../tcl[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \ - `ls -dr ${srcdir}/../tcl[[8-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ${srcdir}/../tcl[[8-9]].[[0-9]]* 2>/dev/null` ; do - if test "${TEA_PLATFORM}" = "windows" \ - -a -f "$i/win/tclConfig.sh" ; then - ac_cv_c_tclconfig="`(cd $i/win; pwd)`" - break - fi - if test -f "$i/unix/tclConfig.sh" ; then - ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" - break - fi - done - fi - ]) - - if test x"${ac_cv_c_tclconfig}" = x ; then - TCL_BIN_DIR="# no Tcl configs found" - AC_MSG_ERROR([Can't find Tcl configuration definitions]) - else - no_tcl= - TCL_BIN_DIR="${ac_cv_c_tclconfig}" - AC_MSG_RESULT([found ${TCL_BIN_DIR}/tclConfig.sh]) - fi - fi -]) - -#------------------------------------------------------------------------ -# TEA_PATH_TKCONFIG -- -# -# Locate the tkConfig.sh file -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --with-tk=... -# -# Defines the following vars: -# TK_BIN_DIR Full path to the directory containing -# the tkConfig.sh file -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PATH_TKCONFIG], [ - # - # Ok, lets find the tk configuration - # First, look for one uninstalled. - # the alternative search directory is invoked by --with-tk - # - - if test x"${no_tk}" = x ; then - # we reset no_tk in case something fails here - no_tk=true - AC_ARG_WITH(tk, - AC_HELP_STRING([--with-tk], - [directory containing tk configuration (tkConfig.sh)]), - with_tkconfig="${withval}") - AC_MSG_CHECKING([for Tk configuration]) - AC_CACHE_VAL(ac_cv_c_tkconfig,[ - - # First check to see if --with-tkconfig was specified. - if test x"${with_tkconfig}" != x ; then - case "${with_tkconfig}" in - */tkConfig.sh ) - if test -f "${with_tkconfig}"; then - AC_MSG_WARN([--with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself]) - with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" - fi ;; - esac - if test -f "${with_tkconfig}/tkConfig.sh" ; then - ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" - else - AC_MSG_ERROR([${with_tkconfig} directory doesn't contain tkConfig.sh]) - fi - fi - - # then check for a private Tk library - if test x"${ac_cv_c_tkconfig}" = x ; then - for i in \ - ../tk \ - `ls -dr ../tk[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \ - `ls -dr ../tk[[8-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../tk[[8-9]].[[0-9]]* 2>/dev/null` \ - ../../tk \ - `ls -dr ../../tk[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \ - `ls -dr ../../tk[[8-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../../tk[[8-9]].[[0-9]]* 2>/dev/null` \ - ../../../tk \ - `ls -dr ../../../tk[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \ - `ls -dr ../../../tk[[8-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../../../tk[[8-9]].[[0-9]]* 2>/dev/null` ; do - if test "${TEA_PLATFORM}" = "windows" \ - -a -f "$i/win/tkConfig.sh" ; then - ac_cv_c_tkconfig="`(cd $i/win; pwd)`" - break - fi - if test -f "$i/unix/tkConfig.sh" ; then - ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" - break - fi - done - fi - - # on Darwin, check in Framework installation locations - if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then - for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ - `ls -d /Library/Frameworks 2>/dev/null` \ - `ls -d /Network/Library/Frameworks 2>/dev/null` \ - `ls -d /System/Library/Frameworks 2>/dev/null` \ - ; do - if test -f "$i/Tk.framework/tkConfig.sh" ; then - ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" - break - fi - done - fi - - # check in a few common install locations - if test x"${ac_cv_c_tkconfig}" = x ; then - for i in `ls -d ${libdir} 2>/dev/null` \ - `ls -d ${exec_prefix}/lib 2>/dev/null` \ - `ls -d ${prefix}/lib 2>/dev/null` \ - `ls -d /usr/local/lib 2>/dev/null` \ - `ls -d /usr/contrib/lib 2>/dev/null` \ - `ls -d /usr/lib 2>/dev/null` \ - `ls -d /usr/lib/tk8.5 2>/dev/null` \ - `ls -d /usr/lib64 2>/dev/null` \ - ; do - if test -f "$i/tkConfig.sh" ; then - ac_cv_c_tkconfig="`(cd $i; pwd)`" - break - fi - done - fi - - # TEA specific: on Windows, check in common installation locations - if test "${TEA_PLATFORM}" = "windows" \ - -a x"${ac_cv_c_tkconfig}" = x ; then - for i in `ls -d C:/Tcl/lib 2>/dev/null` \ - `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ - ; do - if test -f "$i/tkConfig.sh" ; then - ac_cv_c_tkconfig="`(cd $i; pwd)`" - break - fi - done - fi - - # check in a few other private locations - if test x"${ac_cv_c_tkconfig}" = x ; then - for i in \ - ${srcdir}/../tk \ - `ls -dr ${srcdir}/../tk[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \ - `ls -dr ${srcdir}/../tk[[8-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ${srcdir}/../tk[[8-9]].[[0-9]]* 2>/dev/null` ; do - if test "${TEA_PLATFORM}" = "windows" \ - -a -f "$i/win/tkConfig.sh" ; then - ac_cv_c_tkconfig="`(cd $i/win; pwd)`" - break - fi - if test -f "$i/unix/tkConfig.sh" ; then - ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" - break - fi - done - fi - ]) - - if test x"${ac_cv_c_tkconfig}" = x ; then - TK_BIN_DIR="# no Tk configs found" - AC_MSG_ERROR([Can't find Tk configuration definitions]) - else - no_tk= - TK_BIN_DIR="${ac_cv_c_tkconfig}" - AC_MSG_RESULT([found ${TK_BIN_DIR}/tkConfig.sh]) - fi - fi -]) - -#------------------------------------------------------------------------ -# TEA_LOAD_TCLCONFIG -- -# -# Load the tclConfig.sh file -# -# Arguments: -# -# Requires the following vars to be set: -# TCL_BIN_DIR -# -# Results: -# -# Subst the following vars: -# TCL_BIN_DIR -# TCL_SRC_DIR -# TCL_LIB_FILE -# -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_LOAD_TCLCONFIG], [ - AC_MSG_CHECKING([for existence of ${TCL_BIN_DIR}/tclConfig.sh]) - - if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then - AC_MSG_RESULT([loading]) - . "${TCL_BIN_DIR}/tclConfig.sh" - else - AC_MSG_RESULT([could not find ${TCL_BIN_DIR}/tclConfig.sh]) - fi - - # eval is required to do the TCL_DBGX substitution - eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" - eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" - - # If the TCL_BIN_DIR is the build directory (not the install directory), - # then set the common variable name to the value of the build variables. - # For example, the variable TCL_LIB_SPEC will be set to the value - # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC - # instead of TCL_BUILD_LIB_SPEC since it will work with both an - # installed and uninstalled version of Tcl. - if test -f "${TCL_BIN_DIR}/Makefile" ; then - TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" - TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" - TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" - elif test "`uname -s`" = "Darwin"; then - # If Tcl was built as a framework, attempt to use the libraries - # from the framework at the given location so that linking works - # against Tcl.framework installed in an arbitrary location. - case ${TCL_DEFS} in - *TCL_FRAMEWORK*) - if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then - for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ - "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do - if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then - TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" - break - fi - done - fi - if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then - TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" - TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" - fi - ;; - esac - fi - - # eval is required to do the TCL_DBGX substitution - eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" - eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" - eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" - eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" - - AC_SUBST(TCL_VERSION) - AC_SUBST(TCL_PATCH_LEVEL) - AC_SUBST(TCL_BIN_DIR) - AC_SUBST(TCL_SRC_DIR) - - AC_SUBST(TCL_LIB_FILE) - AC_SUBST(TCL_LIB_FLAG) - AC_SUBST(TCL_LIB_SPEC) - - AC_SUBST(TCL_STUB_LIB_FILE) - AC_SUBST(TCL_STUB_LIB_FLAG) - AC_SUBST(TCL_STUB_LIB_SPEC) - - case "`uname -s`" in - *CYGWIN_*) - AC_MSG_CHECKING([for cygwin variant]) - case ${TCL_EXTRA_CFLAGS} in - *-mwin32*|*-mno-cygwin*) - TEA_PLATFORM="windows" - CFLAGS="$CFLAGS -mwin32" - AC_MSG_RESULT([win32]) - ;; - *) - TEA_PLATFORM="unix" - AC_MSG_RESULT([unix]) - ;; - esac - EXEEXT=".exe" - ;; - *) - ;; - esac - - # The BUILD_$pkg is to define the correct extern storage class - # handling when making this package - AC_DEFINE_UNQUOTED(BUILD_${PACKAGE_NAME}, [], - [Building extension source?]) - # Do this here as we have fully defined TEA_PLATFORM now - if test "${TEA_PLATFORM}" = "windows" ; then - CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" - fi - - # TEA specific: - AC_SUBST(CLEANFILES) - AC_SUBST(TCL_LIBS) - AC_SUBST(TCL_DEFS) - AC_SUBST(TCL_EXTRA_CFLAGS) - AC_SUBST(TCL_LD_FLAGS) - AC_SUBST(TCL_SHLIB_LD_LIBS) -]) - -#------------------------------------------------------------------------ -# TEA_LOAD_TKCONFIG -- -# -# Load the tkConfig.sh file -# -# Arguments: -# -# Requires the following vars to be set: -# TK_BIN_DIR -# -# Results: -# -# Sets the following vars that should be in tkConfig.sh: -# TK_BIN_DIR -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_LOAD_TKCONFIG], [ - AC_MSG_CHECKING([for existence of ${TK_BIN_DIR}/tkConfig.sh]) - - if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then - AC_MSG_RESULT([loading]) - . "${TK_BIN_DIR}/tkConfig.sh" - else - AC_MSG_RESULT([could not find ${TK_BIN_DIR}/tkConfig.sh]) - fi - - # eval is required to do the TK_DBGX substitution - eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" - eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" - - # If the TK_BIN_DIR is the build directory (not the install directory), - # then set the common variable name to the value of the build variables. - # For example, the variable TK_LIB_SPEC will be set to the value - # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC - # instead of TK_BUILD_LIB_SPEC since it will work with both an - # installed and uninstalled version of Tcl. - if test -f "${TK_BIN_DIR}/Makefile" ; then - TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" - TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" - TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" - elif test "`uname -s`" = "Darwin"; then - # If Tk was built as a framework, attempt to use the libraries - # from the framework at the given location so that linking works - # against Tk.framework installed in an arbitrary location. - case ${TK_DEFS} in - *TK_FRAMEWORK*) - if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then - for i in "`cd "${TK_BIN_DIR}"; pwd`" \ - "`cd "${TK_BIN_DIR}"/../..; pwd`"; do - if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then - TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" - break - fi - done - fi - if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then - TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" - TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" - fi - ;; - esac - fi - - # eval is required to do the TK_DBGX substitution - eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" - eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" - eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" - eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" - - # TEA specific: Ensure windowingsystem is defined - if test "${TEA_PLATFORM}" = "unix" ; then - case ${TK_DEFS} in - *MAC_OSX_TK*) - AC_DEFINE(MAC_OSX_TK, 1, [Are we building against Mac OS X TkAqua?]) - TEA_WINDOWINGSYSTEM="aqua" - ;; - *) - TEA_WINDOWINGSYSTEM="x11" - ;; - esac - elif test "${TEA_PLATFORM}" = "windows" ; then - TEA_WINDOWINGSYSTEM="win32" - fi - - AC_SUBST(TK_VERSION) - AC_SUBST(TK_BIN_DIR) - AC_SUBST(TK_SRC_DIR) - - AC_SUBST(TK_LIB_FILE) - AC_SUBST(TK_LIB_FLAG) - AC_SUBST(TK_LIB_SPEC) - - AC_SUBST(TK_STUB_LIB_FILE) - AC_SUBST(TK_STUB_LIB_FLAG) - AC_SUBST(TK_STUB_LIB_SPEC) - - # TEA specific: - AC_SUBST(TK_LIBS) - AC_SUBST(TK_XINCLUDES) -]) - -#------------------------------------------------------------------------ -# TEA_PROG_TCLSH -# Determine the fully qualified path name of the tclsh executable -# in the Tcl build directory or the tclsh installed in a bin -# directory. This macro will correctly determine the name -# of the tclsh executable even if tclsh has not yet been -# built in the build directory. The tclsh found is always -# associated with a tclConfig.sh file. This tclsh should be used -# only for running extension test cases. It should never be -# or generation of files (like pkgIndex.tcl) at build time. -# -# Arguments -# none -# -# Results -# Subst's the following values: -# TCLSH_PROG -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PROG_TCLSH], [ - AC_MSG_CHECKING([for tclsh]) - if test -f "${TCL_BIN_DIR}/Makefile" ; then - # tclConfig.sh is in Tcl build directory - if test "${TEA_PLATFORM}" = "windows"; then - TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" - else - TCLSH_PROG="${TCL_BIN_DIR}/tclsh" - fi - else - # tclConfig.sh is in install location - if test "${TEA_PLATFORM}" = "windows"; then - TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" - else - TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" - fi - list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ - `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ - `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" - for i in $list ; do - if test -f "$i/${TCLSH_PROG}" ; then - REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" - break - fi - done - TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" - fi - AC_MSG_RESULT([${TCLSH_PROG}]) - AC_SUBST(TCLSH_PROG) -]) - -#------------------------------------------------------------------------ -# TEA_PROG_WISH -# Determine the fully qualified path name of the wish executable -# in the Tk build directory or the wish installed in a bin -# directory. This macro will correctly determine the name -# of the wish executable even if wish has not yet been -# built in the build directory. The wish found is always -# associated with a tkConfig.sh file. This wish should be used -# only for running extension test cases. It should never be -# or generation of files (like pkgIndex.tcl) at build time. -# -# Arguments -# none -# -# Results -# Subst's the following values: -# WISH_PROG -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PROG_WISH], [ - AC_MSG_CHECKING([for wish]) - if test -f "${TK_BIN_DIR}/Makefile" ; then - # tkConfig.sh is in Tk build directory - if test "${TEA_PLATFORM}" = "windows"; then - WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" - else - WISH_PROG="${TK_BIN_DIR}/wish" - fi - else - # tkConfig.sh is in install location - if test "${TEA_PLATFORM}" = "windows"; then - WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" - else - WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" - fi - list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ - `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ - `ls -d ${TK_PREFIX}/bin 2>/dev/null`" - for i in $list ; do - if test -f "$i/${WISH_PROG}" ; then - REAL_TK_BIN_DIR="`cd "$i"; pwd`/" - break - fi - done - WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" - fi - AC_MSG_RESULT([${WISH_PROG}]) - AC_SUBST(WISH_PROG) -]) - -#------------------------------------------------------------------------ -# TEA_ENABLE_SHARED -- -# -# Allows the building of shared libraries -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --enable-shared=yes|no -# -# Defines the following vars: -# STATIC_BUILD Used for building import/export libraries -# on Windows. -# -# Sets the following vars: -# SHARED_BUILD Value of 1 or 0 -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_ENABLE_SHARED], [ - AC_MSG_CHECKING([how to build libraries]) - AC_ARG_ENABLE(shared, - AC_HELP_STRING([--enable-shared], - [build and link with shared libraries (default: on)]), - [tcl_ok=$enableval], [tcl_ok=yes]) - - if test "${enable_shared+set}" = set; then - enableval="$enable_shared" - tcl_ok=$enableval - else - tcl_ok=yes - fi - - if test "$tcl_ok" = "yes" ; then - AC_MSG_RESULT([shared]) - SHARED_BUILD=1 - else - AC_MSG_RESULT([static]) - SHARED_BUILD=0 - AC_DEFINE(STATIC_BUILD, 1, [Is this a static build?]) - fi - AC_SUBST(SHARED_BUILD) -]) - -#------------------------------------------------------------------------ -# TEA_ENABLE_THREADS -- -# -# Specify if thread support should be enabled. If "yes" is specified -# as an arg (optional), threads are enabled by default, "no" means -# threads are disabled. "yes" is the default. -# -# TCL_THREADS is checked so that if you are compiling an extension -# against a threaded core, your extension must be compiled threaded -# as well. -# -# Note that it is legal to have a thread enabled extension run in a -# threaded or non-threaded Tcl core, but a non-threaded extension may -# only run in a non-threaded Tcl core. -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --enable-threads -# -# Sets the following vars: -# THREADS_LIBS Thread library(s) -# -# Defines the following vars: -# TCL_THREADS -# _REENTRANT -# _THREAD_SAFE -# -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_ENABLE_THREADS], [ - AC_ARG_ENABLE(threads, - AC_HELP_STRING([--enable-threads], - [build with threads]), - [tcl_ok=$enableval], [tcl_ok=yes]) - - if test "${enable_threads+set}" = set; then - enableval="$enable_threads" - tcl_ok=$enableval - else - tcl_ok=yes - fi - - if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then - TCL_THREADS=1 - - if test "${TEA_PLATFORM}" != "windows" ; then - # We are always OK on Windows, so check what this platform wants: - - # USE_THREAD_ALLOC tells us to try the special thread-based - # allocator that significantly reduces lock contention - AC_DEFINE(USE_THREAD_ALLOC, 1, - [Do we want to use the threaded memory allocator?]) - AC_DEFINE(_REENTRANT, 1, [Do we want the reentrant OS API?]) - if test "`uname -s`" = "SunOS" ; then - AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, - [Do we really want to follow the standard? Yes we do!]) - fi - AC_DEFINE(_THREAD_SAFE, 1, [Do we want the thread-safe OS API?]) - AC_CHECK_LIB(pthread,pthread_mutex_init,tcl_ok=yes,tcl_ok=no) - if test "$tcl_ok" = "no"; then - # Check a little harder for __pthread_mutex_init in the same - # library, as some systems hide it there until pthread.h is - # defined. We could alternatively do an AC_TRY_COMPILE with - # pthread.h, but that will work with libpthread really doesn't - # exist, like AIX 4.2. [Bug: 4359] - AC_CHECK_LIB(pthread, __pthread_mutex_init, - tcl_ok=yes, tcl_ok=no) - fi - - if test "$tcl_ok" = "yes"; then - # The space is needed - THREADS_LIBS=" -lpthread" - else - AC_CHECK_LIB(pthreads, pthread_mutex_init, - tcl_ok=yes, tcl_ok=no) - if test "$tcl_ok" = "yes"; then - # The space is needed - THREADS_LIBS=" -lpthreads" - else - AC_CHECK_LIB(c, pthread_mutex_init, - tcl_ok=yes, tcl_ok=no) - if test "$tcl_ok" = "no"; then - AC_CHECK_LIB(c_r, pthread_mutex_init, - tcl_ok=yes, tcl_ok=no) - if test "$tcl_ok" = "yes"; then - # The space is needed - THREADS_LIBS=" -pthread" - else - TCL_THREADS=0 - AC_MSG_WARN([Do not know how to find pthread lib on your system - thread support disabled]) - fi - fi - fi - fi - fi - else - TCL_THREADS=0 - fi - # Do checking message here to not mess up interleaved configure output - AC_MSG_CHECKING([for building with threads]) - if test "${TCL_THREADS}" = 1; then - AC_DEFINE(TCL_THREADS, 1, [Are we building with threads enabled?]) - AC_MSG_RESULT([yes (default)]) - else - AC_MSG_RESULT([no]) - fi - # TCL_THREADS sanity checking. See if our request for building with - # threads is the same as the way Tcl was built. If not, warn the user. - case ${TCL_DEFS} in - *THREADS=1*) - if test "${TCL_THREADS}" = "0"; then - AC_MSG_WARN([ - Building ${PACKAGE_NAME} without threads enabled, but building against Tcl - that IS thread-enabled. It is recommended to use --enable-threads.]) - fi - ;; - *) - if test "${TCL_THREADS}" = "1"; then - AC_MSG_WARN([ - --enable-threads requested, but building against a Tcl that is NOT - thread-enabled. This is an OK configuration that will also run in - a thread-enabled core.]) - fi - ;; - esac - AC_SUBST(TCL_THREADS) -]) - -#------------------------------------------------------------------------ -# TEA_ENABLE_SYMBOLS -- -# -# Specify if debugging symbols should be used. -# Memory (TCL_MEM_DEBUG) debugging can also be enabled. -# -# Arguments: -# none -# -# TEA varies from core Tcl in that C|LDFLAGS_DEFAULT receives -# the value of C|LDFLAGS_OPTIMIZE|DEBUG already substituted. -# Requires the following vars to be set in the Makefile: -# CFLAGS_DEFAULT -# LDFLAGS_DEFAULT -# -# Results: -# -# Adds the following arguments to configure: -# --enable-symbols -# -# Defines the following vars: -# CFLAGS_DEFAULT Sets to $(CFLAGS_DEBUG) if true -# Sets to $(CFLAGS_OPTIMIZE) if false -# LDFLAGS_DEFAULT Sets to $(LDFLAGS_DEBUG) if true -# Sets to $(LDFLAGS_OPTIMIZE) if false -# DBGX Formerly used as debug library extension; -# always blank now. -# -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_ENABLE_SYMBOLS], [ - dnl TEA specific: Make sure we are initialized - AC_REQUIRE([TEA_CONFIG_CFLAGS]) - AC_MSG_CHECKING([for build with symbols]) - AC_ARG_ENABLE(symbols, - AC_HELP_STRING([--enable-symbols], - [build with debugging symbols (default: off)]), - [tcl_ok=$enableval], [tcl_ok=no]) - DBGX="" - if test "$tcl_ok" = "no"; then - CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" - LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" - AC_MSG_RESULT([no]) - else - CFLAGS_DEFAULT="${CFLAGS_DEBUG}" - LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" - if test "$tcl_ok" = "yes"; then - AC_MSG_RESULT([yes (standard debugging)]) - fi - fi - # TEA specific: - if test "${TEA_PLATFORM}" != "windows" ; then - LDFLAGS_DEFAULT="${LDFLAGS}" - fi - AC_SUBST(CFLAGS_DEFAULT) - AC_SUBST(LDFLAGS_DEFAULT) - AC_SUBST(TCL_DBGX) - - if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then - AC_DEFINE(TCL_MEM_DEBUG, 1, [Is memory debugging enabled?]) - fi - - if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then - if test "$tcl_ok" = "all"; then - AC_MSG_RESULT([enabled symbols mem debugging]) - else - AC_MSG_RESULT([enabled $tcl_ok debugging]) - fi - fi -]) - -#------------------------------------------------------------------------ -# TEA_ENABLE_LANGINFO -- -# -# Allows use of modern nl_langinfo check for better l10n. -# This is only relevant for Unix. -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --enable-langinfo=yes|no (default is yes) -# -# Defines the following vars: -# HAVE_LANGINFO Triggers use of nl_langinfo if defined. -# -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_ENABLE_LANGINFO], [ - AC_ARG_ENABLE(langinfo, - AC_HELP_STRING([--enable-langinfo], - [use nl_langinfo if possible to determine encoding at startup, otherwise use old heuristic (default: on)]), - [langinfo_ok=$enableval], [langinfo_ok=yes]) - - HAVE_LANGINFO=0 - if test "$langinfo_ok" = "yes"; then - AC_CHECK_HEADER(langinfo.h,[langinfo_ok=yes],[langinfo_ok=no]) - fi - AC_MSG_CHECKING([whether to use nl_langinfo]) - if test "$langinfo_ok" = "yes"; then - AC_CACHE_VAL(tcl_cv_langinfo_h, [ - AC_TRY_COMPILE([#include ], [nl_langinfo(CODESET);], - [tcl_cv_langinfo_h=yes],[tcl_cv_langinfo_h=no])]) - AC_MSG_RESULT([$tcl_cv_langinfo_h]) - if test $tcl_cv_langinfo_h = yes; then - AC_DEFINE(HAVE_LANGINFO, 1, [Do we have nl_langinfo()?]) - fi - else - AC_MSG_RESULT([$langinfo_ok]) - fi -]) - -#-------------------------------------------------------------------- -# TEA_CONFIG_SYSTEM -# -# Determine what the system is (some things cannot be easily checked -# on a feature-driven basis, alas). This can usually be done via the -# "uname" command. -# -# Arguments: -# none -# -# Results: -# Defines the following var: -# -# system - System/platform/version identification code. -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_CONFIG_SYSTEM], [ - AC_CACHE_CHECK([system version], tcl_cv_sys_version, [ - # TEA specific: - if test "${TEA_PLATFORM}" = "windows" ; then - tcl_cv_sys_version=windows - else - tcl_cv_sys_version=`uname -s`-`uname -r` - if test "$?" -ne 0 ; then - AC_MSG_WARN([can't find uname command]) - tcl_cv_sys_version=unknown - else - if test "`uname -s`" = "AIX" ; then - tcl_cv_sys_version=AIX-`uname -v`.`uname -r` - fi - fi - fi - ]) - system=$tcl_cv_sys_version -]) - -#-------------------------------------------------------------------- -# TEA_CONFIG_CFLAGS -# -# Try to determine the proper flags to pass to the compiler -# for building shared libraries and other such nonsense. -# -# Arguments: -# none -# -# Results: -# -# Defines and substitutes the following vars: -# -# DL_OBJS, DL_LIBS - removed for TEA, only needed by core. -# LDFLAGS - Flags to pass to the compiler when linking object -# files into an executable application binary such -# as tclsh. -# LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib", -# that tell the run-time dynamic linker where to look -# for shared libraries such as libtcl.so. Depends on -# the variable LIB_RUNTIME_DIR in the Makefile. Could -# be the same as CC_SEARCH_FLAGS if ${CC} is used to link. -# CC_SEARCH_FLAGS-Flags to pass to ${CC}, such as "-Wl,-rpath,/usr/local/tcl/lib", -# that tell the run-time dynamic linker where to look -# for shared libraries such as libtcl.so. Depends on -# the variable LIB_RUNTIME_DIR in the Makefile. -# SHLIB_CFLAGS - Flags to pass to cc when compiling the components -# of a shared library (may request position-independent -# code, among other things). -# SHLIB_LD - Base command to use for combining object files -# into a shared library. -# SHLIB_LD_LIBS - Dependent libraries for the linker to scan when -# creating shared libraries. This symbol typically -# goes at the end of the "ld" commands that build -# shared libraries. The value of the symbol defaults to -# "${LIBS}" if all of the dependent libraries should -# be specified when creating a shared library. If -# dependent libraries should not be specified (as on -# SunOS 4.x, where they cause the link to fail, or in -# general if Tcl and Tk aren't themselves shared -# libraries), then this symbol has an empty string -# as its value. -# SHLIB_SUFFIX - Suffix to use for the names of dynamically loadable -# extensions. An empty string means we don't know how -# to use shared libraries on this platform. -# LIB_SUFFIX - Specifies everything that comes after the "libfoo" -# in a static or shared library name, using the $VERSION variable -# to put the version in the right place. This is used -# by platforms that need non-standard library names. -# Examples: ${VERSION}.so.1.1 on NetBSD, since it needs -# to have a version after the .so, and ${VERSION}.a -# on AIX, since a shared library needs to have -# a .a extension whereas shared objects for loadable -# extensions have a .so extension. Defaults to -# ${VERSION}${SHLIB_SUFFIX}. -# CFLAGS_DEBUG - -# Flags used when running the compiler in debug mode -# CFLAGS_OPTIMIZE - -# Flags used when running the compiler in optimize mode -# CFLAGS - Additional CFLAGS added as necessary (usually 64-bit) -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_CONFIG_CFLAGS], [ - dnl TEA specific: Make sure we are initialized - AC_REQUIRE([TEA_INIT]) - - # Step 0.a: Enable 64 bit support? - - AC_MSG_CHECKING([if 64bit support is requested]) - AC_ARG_ENABLE(64bit, - AC_HELP_STRING([--enable-64bit], - [enable 64bit support (default: off)]), - [do64bit=$enableval], [do64bit=no]) - AC_MSG_RESULT([$do64bit]) - - # Step 0.b: Enable Solaris 64 bit VIS support? - - AC_MSG_CHECKING([if 64bit Sparc VIS support is requested]) - AC_ARG_ENABLE(64bit-vis, - AC_HELP_STRING([--enable-64bit-vis], - [enable 64bit Sparc VIS support (default: off)]), - [do64bitVIS=$enableval], [do64bitVIS=no]) - AC_MSG_RESULT([$do64bitVIS]) - # Force 64bit on with VIS - AS_IF([test "$do64bitVIS" = "yes"], [do64bit=yes]) - - # Step 0.c: Check if visibility support is available. Do this here so - # that platform specific alternatives can be used below if this fails. - - AC_CACHE_CHECK([if compiler supports visibility "hidden"], - tcl_cv_cc_visibility_hidden, [ - hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" - AC_TRY_LINK([ - extern __attribute__((__visibility__("hidden"))) void f(void); - void f(void) {}], [f();], tcl_cv_cc_visibility_hidden=yes, - tcl_cv_cc_visibility_hidden=no) - CFLAGS=$hold_cflags]) - AS_IF([test $tcl_cv_cc_visibility_hidden = yes], [ - AC_DEFINE(MODULE_SCOPE, - [extern __attribute__((__visibility__("hidden")))], - [Compiler support for module scope symbols]) - ]) - - # Step 0.d: Disable -rpath support? - - AC_MSG_CHECKING([if rpath support is requested]) - AC_ARG_ENABLE(rpath, - AC_HELP_STRING([--disable-rpath], - [disable rpath support (default: on)]), - [doRpath=$enableval], [doRpath=yes]) - AC_MSG_RESULT([$doRpath]) - - # TEA specific: Cross-compiling options for Windows/CE builds? - - AS_IF([test "${TEA_PLATFORM}" = windows], [ - AC_MSG_CHECKING([if Windows/CE build is requested]) - AC_ARG_ENABLE(wince, - AC_HELP_STRING([--enable-wince], - [enable Win/CE support (where applicable)]), - [doWince=$enableval], [doWince=no]) - AC_MSG_RESULT([$doWince]) - ]) - - # Set the variable "system" to hold the name and version number - # for the system. - - TEA_CONFIG_SYSTEM - - # Require ranlib early so we can override it in special cases below. - - AC_REQUIRE([AC_PROG_RANLIB]) - - # Set configuration options based on system name and version. - # This is similar to Tcl's unix/tcl.m4 except that we've added a - # "windows" case and removed some core-only vars. - - do64bit_ok=no - # default to '{$LIBS}' and set to "" on per-platform necessary basis - SHLIB_LD_LIBS='${LIBS}' - # When ld needs options to work in 64-bit mode, put them in - # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] - # is disabled by the user. [Bug 1016796] - LDFLAGS_ARCH="" - UNSHARED_LIB_SUFFIX="" - # TEA specific: use PACKAGE_VERSION instead of VERSION - TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' - ECHO_VERSION='`echo ${PACKAGE_VERSION}`' - TCL_LIB_VERSIONS_OK=ok - CFLAGS_DEBUG=-g - CFLAGS_OPTIMIZE=-O - AS_IF([test "$GCC" = yes], [ - # TEA specific: - CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall" - ], [CFLAGS_WARNING=""]) - AC_CHECK_TOOL(AR, ar) - STLIB_LD='${AR} cr' - LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" - AS_IF([test "x$SHLIB_VERSION" = x],[SHLIB_VERSION="1.0"]) - case $system in - # TEA specific: - windows) - # This is a 2-stage check to make sure we have the 64-bit SDK - # We have to know where the SDK is installed. - # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs - # MACHINE is IX86 for LINK, but this is used by the manifest, - # which requires x86|amd64|ia64. - MACHINE="X86" - if test "$do64bit" != "no" ; then - if test "x${MSSDK}x" = "xx" ; then - MSSDK="C:/Progra~1/Microsoft Platform SDK" - fi - MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` - PATH64="" - case "$do64bit" in - amd64|x64|yes) - MACHINE="AMD64" ; # default to AMD64 64-bit build - PATH64="${MSSDK}/Bin/Win64/x86/AMD64" - ;; - ia64) - MACHINE="IA64" - PATH64="${MSSDK}/Bin/Win64" - ;; - esac - if test "$GCC" != "yes" -a ! -d "${PATH64}" ; then - AC_MSG_WARN([Could not find 64-bit $MACHINE SDK to enable 64bit mode]) - AC_MSG_WARN([Ensure latest Platform SDK is installed]) - do64bit="no" - else - AC_MSG_RESULT([ Using 64-bit $MACHINE mode]) - do64bit_ok="yes" - fi - fi - - if test "$doWince" != "no" ; then - if test "$do64bit" != "no" ; then - AC_MSG_ERROR([Windows/CE and 64-bit builds incompatible]) - fi - if test "$GCC" = "yes" ; then - AC_MSG_ERROR([Windows/CE and GCC builds incompatible]) - fi - TEA_PATH_CELIB - # Set defaults for common evc4/PPC2003 setup - # Currently Tcl requires 300+, possibly 420+ for sockets - CEVERSION=420; # could be 211 300 301 400 420 ... - TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... - ARCH=ARM; # could be ARM MIPS X86EM ... - PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" - if test "$doWince" != "yes"; then - # If !yes then the user specified something - # Reset ARCH to allow user to skip specifying it - ARCH= - eval `echo $doWince | awk -F, '{ \ - if (length([$]1)) { printf "CEVERSION=\"%s\"\n", [$]1; \ - if ([$]1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ - if (length([$]2)) { printf "TARGETCPU=\"%s\"\n", toupper([$]2) }; \ - if (length([$]3)) { printf "ARCH=\"%s\"\n", toupper([$]3) }; \ - if (length([$]4)) { printf "PLATFORM=\"%s\"\n", [$]4 }; \ - }'` - if test "x${ARCH}" = "x" ; then - ARCH=$TARGETCPU; - fi - fi - OSVERSION=WCE$CEVERSION; - if test "x${WCEROOT}" = "x" ; then - WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" - if test ! -d "${WCEROOT}" ; then - WCEROOT="C:/Program Files/Microsoft eMbedded Tools" - fi - fi - if test "x${SDKROOT}" = "x" ; then - SDKROOT="C:/Program Files/Windows CE Tools" - if test ! -d "${SDKROOT}" ; then - SDKROOT="C:/Windows CE Tools" - fi - fi - WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` - SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` - if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ - -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then - AC_MSG_ERROR([could not find PocketPC SDK or target compiler to enable WinCE mode [$CEVERSION,$TARGETCPU,$ARCH,$PLATFORM]]) - doWince="no" - else - # We could PATH_NOSPACE these, but that's not important, - # as long as we quote them when used. - CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" - if test -d "${CEINCLUDE}/${TARGETCPU}" ; then - CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" - fi - CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" - fi - fi - - if test "$GCC" != "yes" ; then - if test "${SHARED_BUILD}" = "0" ; then - runtime=-MT - else - runtime=-MD - fi - - if test "$do64bit" != "no" ; then - # All this magic is necessary for the Win64 SDK RC1 - hobbs - CC="\"${PATH64}/cl.exe\"" - CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" - RC="\"${MSSDK}/bin/rc.exe\"" - lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" - LINKBIN="\"${PATH64}/link.exe\"" - CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" - CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" - # Avoid 'unresolved external symbol __security_cookie' - # errors, c.f. http://support.microsoft.com/?id=894573 - TEA_ADD_LIBS([bufferoverflowU.lib]) - elif test "$doWince" != "no" ; then - CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" - if test "${TARGETCPU}" = "X86"; then - CC="\"${CEBINROOT}/cl.exe\"" - else - CC="\"${CEBINROOT}/cl${ARCH}.exe\"" - fi - CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" - RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" - arch=`echo ${ARCH} | awk '{print tolower([$]0)}'` - defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" - if test "${SHARED_BUILD}" = "1" ; then - # Static CE builds require static celib as well - defs="${defs} _DLL" - fi - for i in $defs ; do - AC_DEFINE_UNQUOTED($i, 1, [WinCE def ]$i) - done - AC_DEFINE_UNQUOTED(_WIN32_WCE, $CEVERSION, [_WIN32_WCE version]) - AC_DEFINE_UNQUOTED(UNDER_CE, $CEVERSION, [UNDER_CE version]) - CFLAGS_DEBUG="-nologo -Zi -Od" - CFLAGS_OPTIMIZE="-nologo -Ox" - lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` - lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" - LINKBIN="\"${CEBINROOT}/link.exe\"" - AC_SUBST(CELIB_DIR) - else - RC="rc" - lflags="-nologo" - LINKBIN="link" - CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" - CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" - fi - fi - - if test "$GCC" = "yes"; then - # mingw gcc mode - AC_CHECK_TOOL(RC, windres) - CFLAGS_DEBUG="-g" - CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" - SHLIB_LD="$CC -shared" - UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' - LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" - LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" - else - SHLIB_LD="${LINKBIN} -dll ${lflags}" - # link -lib only works when -lib is the first arg - STLIB_LD="${LINKBIN} -lib ${lflags}" - UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' - PATHTYPE=-w - # For information on what debugtype is most useful, see: - # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp - # and also - # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx - # This essentially turns it all on. - LDFLAGS_DEBUG="-debug -debugtype:cv" - LDFLAGS_OPTIMIZE="-release" - if test "$doWince" != "no" ; then - LDFLAGS_CONSOLE="-link ${lflags}" - LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} - else - LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" - LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" - fi - fi - - SHLIB_SUFFIX=".dll" - SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' - - TCL_LIB_VERSIONS_OK=nodots - ;; - AIX-*) - AS_IF([test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"], [ - # AIX requires the _r compiler when gcc isn't being used - case "${CC}" in - *_r|*_r\ *) - # ok ... - ;; - *) - # Make sure only first arg gets _r - CC=`echo "$CC" | sed -e 's/^\([[^ ]]*\)/\1_r/'` - ;; - esac - AC_MSG_RESULT([Using $CC for compiling with threads]) - ]) - LIBS="$LIBS -lc" - SHLIB_CFLAGS="" - SHLIB_SUFFIX=".so" - - LD_LIBRARY_PATH_VAR="LIBPATH" - - # Check to enable 64-bit flags for compiler/linker - AS_IF([test "$do64bit" = yes], [ - AS_IF([test "$GCC" = yes], [ - AC_MSG_WARN([64bit mode not supported with GCC on $system]) - ], [ - do64bit_ok=yes - CFLAGS="$CFLAGS -q64" - LDFLAGS_ARCH="-q64" - RANLIB="${RANLIB} -X64" - AR="${AR} -X64" - SHLIB_LD_FLAGS="-b64" - ]) - ]) - - AS_IF([test "`uname -m`" = ia64], [ - # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC - SHLIB_LD="/usr/ccs/bin/ld -G -z text" - AS_IF([test "$GCC" = yes], [ - CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' - ], [ - CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' - ]) - LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' - ], [ - AS_IF([test "$GCC" = yes], [ - SHLIB_LD='${CC} -shared -Wl,-bexpall' - ], [ - SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" - LDFLAGS="$LDFLAGS -brtl" - ]) - SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" - CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - ]) - ;; - BeOS*) - SHLIB_CFLAGS="-fPIC" - SHLIB_LD='${CC} -nostart' - SHLIB_SUFFIX=".so" - - #----------------------------------------------------------- - # Check for inet_ntoa in -lbind, for BeOS (which also needs - # -lsocket, even if the network functions are in -lnet which - # is always linked to, for compatibility. - #----------------------------------------------------------- - AC_CHECK_LIB(bind, inet_ntoa, [LIBS="$LIBS -lbind -lsocket"]) - ;; - BSD/OS-4.*) - SHLIB_CFLAGS="-export-dynamic -fPIC" - SHLIB_LD='${CC} -shared' - SHLIB_SUFFIX=".so" - LDFLAGS="$LDFLAGS -export-dynamic" - CC_SEARCH_FLAGS="" - LD_SEARCH_FLAGS="" - ;; - CYGWIN_*) - SHLIB_CFLAGS="" - SHLIB_LD='${CC} -shared' - SHLIB_SUFFIX=".dll" - EXE_SUFFIX=".exe" - CC_SEARCH_FLAGS="" - LD_SEARCH_FLAGS="" - ;; - Haiku*) - LDFLAGS="$LDFLAGS -Wl,--export-dynamic" - SHLIB_CFLAGS="-fPIC" - SHLIB_SUFFIX=".so" - SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' - AC_CHECK_LIB(network, inet_ntoa, [LIBS="$LIBS -lnetwork"]) - ;; - HP-UX-*.11.*) - # Use updated header definitions where possible - AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?]) - # TEA specific: Needed by Tcl, but not most extensions - #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) - #LIBS="$LIBS -lxnet" # Use the XOPEN network library - - AS_IF([test "`uname -m`" = ia64], [ - SHLIB_SUFFIX=".so" - # Use newer C++ library for C++ extensions - #if test "$GCC" != "yes" ; then - # CPPFLAGS="-AA" - #fi - ], [ - SHLIB_SUFFIX=".sl" - ]) - AC_CHECK_LIB(dld, shl_load, tcl_ok=yes, tcl_ok=no) - AS_IF([test "$tcl_ok" = yes], [ - LDFLAGS="$LDFLAGS -Wl,-E" - CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' - LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' - LD_LIBRARY_PATH_VAR="SHLIB_PATH" - ]) - AS_IF([test "$GCC" = yes], [ - SHLIB_LD='${CC} -shared' - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - ], [ - CFLAGS="$CFLAGS -z" - # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc - #CFLAGS="$CFLAGS +DAportable" - SHLIB_CFLAGS="+z" - SHLIB_LD="ld -b" - ]) - - # Check to enable 64-bit flags for compiler/linker - AS_IF([test "$do64bit" = "yes"], [ - AS_IF([test "$GCC" = yes], [ - case `${CC} -dumpmachine` in - hppa64*) - # 64-bit gcc in use. Fix flags for GNU ld. - do64bit_ok=yes - SHLIB_LD='${CC} -shared' - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}']) - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - ;; - *) - AC_MSG_WARN([64bit mode not supported with GCC on $system]) - ;; - esac - ], [ - do64bit_ok=yes - CFLAGS="$CFLAGS +DD64" - LDFLAGS_ARCH="+DD64" - ]) - ]) ;; - IRIX-6.*) - SHLIB_CFLAGS="" - SHLIB_LD="ld -n32 -shared -rdata_shared" - SHLIB_SUFFIX=".so" - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}']) - AS_IF([test "$GCC" = yes], [ - CFLAGS="$CFLAGS -mabi=n32" - LDFLAGS="$LDFLAGS -mabi=n32" - ], [ - case $system in - IRIX-6.3) - # Use to build 6.2 compatible binaries on 6.3. - CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" - ;; - *) - CFLAGS="$CFLAGS -n32" - ;; - esac - LDFLAGS="$LDFLAGS -n32" - ]) - ;; - IRIX64-6.*) - SHLIB_CFLAGS="" - SHLIB_LD="ld -n32 -shared -rdata_shared" - SHLIB_SUFFIX=".so" - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}']) - - # Check to enable 64-bit flags for compiler/linker - - AS_IF([test "$do64bit" = yes], [ - AS_IF([test "$GCC" = yes], [ - AC_MSG_WARN([64bit mode not supported by gcc]) - ], [ - do64bit_ok=yes - SHLIB_LD="ld -64 -shared -rdata_shared" - CFLAGS="$CFLAGS -64" - LDFLAGS_ARCH="-64" - ]) - ]) - ;; - Linux*) - SHLIB_CFLAGS="-fPIC" - SHLIB_SUFFIX=".so" - - # TEA specific: - CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" - - # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS - SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' - LDFLAGS="$LDFLAGS -Wl,--export-dynamic" - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}']) - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"]) - AS_IF([test $do64bit = yes], [ - AC_CACHE_CHECK([if compiler accepts -m64 flag], tcl_cv_cc_m64, [ - hold_cflags=$CFLAGS - CFLAGS="$CFLAGS -m64" - AC_TRY_LINK(,, tcl_cv_cc_m64=yes, tcl_cv_cc_m64=no) - CFLAGS=$hold_cflags]) - AS_IF([test $tcl_cv_cc_m64 = yes], [ - CFLAGS="$CFLAGS -m64" - do64bit_ok=yes - ]) - ]) - - # The combo of gcc + glibc has a bug related to inlining of - # functions like strtod(). The -fno-builtin flag should address - # this problem but it does not work. The -fno-inline flag is kind - # of overkill but it works. Disable inlining only when one of the - # files in compat/*.c is being linked in. - - AS_IF([test x"${USE_COMPAT}" != x],[CFLAGS="$CFLAGS -fno-inline"]) - - ;; - GNU*) - SHLIB_CFLAGS="-fPIC" - SHLIB_SUFFIX=".so" - - SHLIB_LD='${CC} -shared' - LDFLAGS="$LDFLAGS -Wl,--export-dynamic" - CC_SEARCH_FLAGS="" - LD_SEARCH_FLAGS="" - AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"]) - ;; - Lynx*) - SHLIB_CFLAGS="-fPIC" - SHLIB_SUFFIX=".so" - CFLAGS_OPTIMIZE=-02 - SHLIB_LD='${CC} -shared' - LD_FLAGS="-Wl,--export-dynamic" - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}']) - ;; - OpenBSD-*) - arch=`arch -s` - case "$arch" in - m88k|vax) - SHLIB_SUFFIX="" - SHARED_LIB_SUFFIX="" - ;; - *) - SHLIB_CFLAGS="-fPIC" - SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' - SHLIB_SUFFIX=".so" - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}']) - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' - ;; - esac - case "$arch" in - m88k|vax) - CFLAGS_OPTIMIZE="-O1" - ;; - *) - CFLAGS_OPTIMIZE="-O2" - ;; - esac - AC_CACHE_CHECK([for ELF], tcl_cv_ld_elf, [ - AC_EGREP_CPP(yes, [ -#ifdef __ELF__ - yes -#endif - ], tcl_cv_ld_elf=yes, tcl_cv_ld_elf=no)]) - AS_IF([test $tcl_cv_ld_elf = yes], [ - LDFLAGS=-Wl,-export-dynamic - ], [LDFLAGS=""]) - AS_IF([test "${TCL_THREADS}" = "1"], [ - # On OpenBSD: Compile with -pthread - # Don't link with -lpthread - LIBS=`echo $LIBS | sed s/-lpthread//` - CFLAGS="$CFLAGS -pthread" - ]) - # OpenBSD doesn't do version numbers with dots. - UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' - TCL_LIB_VERSIONS_OK=nodots - ;; - NetBSD-*|FreeBSD-[[3-4]].*) - # FreeBSD 3.* and greater have ELF. - # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs - SHLIB_CFLAGS="-fPIC" - SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' - SHLIB_SUFFIX=".so" - LDFLAGS="$LDFLAGS -export-dynamic" - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}']) - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - AS_IF([test "${TCL_THREADS}" = "1"], [ - # The -pthread needs to go in the CFLAGS, not LIBS - LIBS=`echo $LIBS | sed s/-pthread//` - CFLAGS="$CFLAGS -pthread" - LDFLAGS="$LDFLAGS -pthread" - ]) - case $system in - FreeBSD-3.*) - # FreeBSD-3 doesn't handle version numbers with dots. - UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' - SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' - TCL_LIB_VERSIONS_OK=nodots - ;; - esac - ;; - FreeBSD-*) - # This configuration from FreeBSD Ports. - SHLIB_CFLAGS="-fPIC" - SHLIB_LD="${CC} -shared" - TCL_SHLIB_LD_EXTRAS="-soname \$[@]" - SHLIB_SUFFIX=".so" - LDFLAGS="" - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}']) - AS_IF([test "${TCL_THREADS}" = "1"], [ - # The -pthread needs to go in the LDFLAGS, not LIBS - LIBS=`echo $LIBS | sed s/-pthread//` - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - LDFLAGS="$LDFLAGS $PTHREAD_LIBS"]) - # Version numbers are dot-stripped by system policy. - TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` - UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' - SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' - TCL_LIB_VERSIONS_OK=nodots - ;; - Darwin-*) - CFLAGS_OPTIMIZE="-Os" - SHLIB_CFLAGS="-fno-common" - # To avoid discrepancies between what headers configure sees during - # preprocessing tests and compiling tests, move any -isysroot and - # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: - CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ - awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ - if ([$]i~/^(isysroot|mmacosx-version-min)/) print "-"[$]i}'`" - CFLAGS="`echo " ${CFLAGS}" | \ - awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ - if (!([$]i~/^(isysroot|mmacosx-version-min)/)) print "-"[$]i}'`" - AS_IF([test $do64bit = yes], [ - case `arch` in - ppc) - AC_CACHE_CHECK([if compiler accepts -arch ppc64 flag], - tcl_cv_cc_arch_ppc64, [ - hold_cflags=$CFLAGS - CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" - AC_TRY_LINK(,, tcl_cv_cc_arch_ppc64=yes, - tcl_cv_cc_arch_ppc64=no) - CFLAGS=$hold_cflags]) - AS_IF([test $tcl_cv_cc_arch_ppc64 = yes], [ - CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" - do64bit_ok=yes - ]);; - i386) - AC_CACHE_CHECK([if compiler accepts -arch x86_64 flag], - tcl_cv_cc_arch_x86_64, [ - hold_cflags=$CFLAGS - CFLAGS="$CFLAGS -arch x86_64" - AC_TRY_LINK(,, tcl_cv_cc_arch_x86_64=yes, - tcl_cv_cc_arch_x86_64=no) - CFLAGS=$hold_cflags]) - AS_IF([test $tcl_cv_cc_arch_x86_64 = yes], [ - CFLAGS="$CFLAGS -arch x86_64" - do64bit_ok=yes - ]);; - *) - AC_MSG_WARN([Don't know how enable 64-bit on architecture `arch`]);; - esac - ], [ - # Check for combined 32-bit and 64-bit fat build - AS_IF([echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ - && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '], [ - fat_32_64=yes]) - ]) - # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS - SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' - AC_CACHE_CHECK([if ld accepts -single_module flag], tcl_cv_ld_single_module, [ - hold_ldflags=$LDFLAGS - LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" - AC_TRY_LINK(, [int i;], tcl_cv_ld_single_module=yes, tcl_cv_ld_single_module=no) - LDFLAGS=$hold_ldflags]) - AS_IF([test $tcl_cv_ld_single_module = yes], [ - SHLIB_LD="${SHLIB_LD} -Wl,-single_module" - ]) - # TEA specific: link shlib with current and compatiblity version flags - vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([[0-9]]\{1,5\}\)\(\(\.[[0-9]]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` - SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" - SHLIB_SUFFIX=".dylib" - # Don't use -prebind when building for Mac OS X 10.4 or later only: - AS_IF([test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int([$]2)}'`" -lt 4 -a \ - "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int([$]2)}'`" -lt 4], [ - LDFLAGS="$LDFLAGS -prebind"]) - LDFLAGS="$LDFLAGS -headerpad_max_install_names" - AC_CACHE_CHECK([if ld accepts -search_paths_first flag], - tcl_cv_ld_search_paths_first, [ - hold_ldflags=$LDFLAGS - LDFLAGS="$LDFLAGS -Wl,-search_paths_first" - AC_TRY_LINK(, [int i;], tcl_cv_ld_search_paths_first=yes, - tcl_cv_ld_search_paths_first=no) - LDFLAGS=$hold_ldflags]) - AS_IF([test $tcl_cv_ld_search_paths_first = yes], [ - LDFLAGS="$LDFLAGS -Wl,-search_paths_first" - ]) - AS_IF([test "$tcl_cv_cc_visibility_hidden" != yes], [ - AC_DEFINE(MODULE_SCOPE, [__private_extern__], - [Compiler support for module scope symbols]) - tcl_cv_cc_visibility_hidden=yes - ]) - CC_SEARCH_FLAGS="" - LD_SEARCH_FLAGS="" - LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" - # TEA specific: for combined 32 & 64 bit fat builds of Tk - # extensions, verify that 64-bit build is possible. - AS_IF([test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"], [ - AS_IF([test "${TEA_WINDOWINGSYSTEM}" = x11], [ - AC_CACHE_CHECK([for 64-bit X11], tcl_cv_lib_x11_64, [ - for v in CFLAGS CPPFLAGS LDFLAGS; do - eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' - done - CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" - LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" - AC_TRY_LINK([#include ], [XrmInitialize();], - tcl_cv_lib_x11_64=yes, tcl_cv_lib_x11_64=no) - for v in CFLAGS CPPFLAGS LDFLAGS; do - eval $v'="$hold_'$v'"' - done]) - ]) - AS_IF([test "${TEA_WINDOWINGSYSTEM}" = aqua], [ - AC_CACHE_CHECK([for 64-bit Tk], tcl_cv_lib_tk_64, [ - for v in CFLAGS CPPFLAGS LDFLAGS; do - eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' - done - CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}" - LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" - AC_TRY_LINK([#include ], [Tk_InitStubs(NULL, "", 0);], - tcl_cv_lib_tk_64=yes, tcl_cv_lib_tk_64=no) - for v in CFLAGS CPPFLAGS LDFLAGS; do - eval $v'="$hold_'$v'"' - done]) - ]) - # remove 64-bit arch flags from CFLAGS et al. if configuration - # does not support 64-bit. - AS_IF([test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no], [ - AC_MSG_NOTICE([Removing 64-bit architectures from compiler & linker flags]) - for v in CFLAGS CPPFLAGS LDFLAGS; do - eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' - done]) - ]) - ;; - OS/390-*) - CFLAGS_OPTIMIZE="" # Optimizer is buggy - AC_DEFINE(_OE_SOCKETS, 1, # needed in sys/socket.h - [Should OS/390 do the right thing with sockets?]) - ;; - OSF1-V*) - # Digital OSF/1 - SHLIB_CFLAGS="" - AS_IF([test "$SHARED_BUILD" = 1], [ - SHLIB_LD='ld -shared -expect_unresolved "*"' - ], [ - SHLIB_LD='ld -non_shared -expect_unresolved "*"' - ]) - SHLIB_SUFFIX=".so" - AS_IF([test $doRpath = yes], [ - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}']) - AS_IF([test "$GCC" = yes], [CFLAGS="$CFLAGS -mieee"], [ - CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"]) - # see pthread_intro(3) for pthread support on osf1, k.furukawa - AS_IF([test "${TCL_THREADS}" = 1], [ - CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" - CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" - LIBS=`echo $LIBS | sed s/-lpthreads//` - AS_IF([test "$GCC" = yes], [ - LIBS="$LIBS -lpthread -lmach -lexc" - ], [ - CFLAGS="$CFLAGS -pthread" - LDFLAGS="$LDFLAGS -pthread" - ]) - ]) - ;; - QNX-6*) - # QNX RTP - # This may work for all QNX, but it was only reported for v6. - SHLIB_CFLAGS="-fPIC" - SHLIB_LD="ld -Bshareable -x" - SHLIB_LD_LIBS="" - SHLIB_SUFFIX=".so" - CC_SEARCH_FLAGS="" - LD_SEARCH_FLAGS="" - ;; - SCO_SV-3.2*) - AS_IF([test "$GCC" = yes], [ - SHLIB_CFLAGS="-fPIC -melf" - LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" - ], [ - SHLIB_CFLAGS="-Kpic -belf" - LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" - ]) - SHLIB_LD="ld -G" - SHLIB_LD_LIBS="" - SHLIB_SUFFIX=".so" - CC_SEARCH_FLAGS="" - LD_SEARCH_FLAGS="" - ;; - SunOS-5.[[0-6]]) - # Careful to not let 5.10+ fall into this case - - # Note: If _REENTRANT isn't defined, then Solaris - # won't define thread-safe library routines. - - AC_DEFINE(_REENTRANT, 1, [Do we want the reentrant OS API?]) - AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, - [Do we really want to follow the standard? Yes we do!]) - - SHLIB_CFLAGS="-KPIC" - SHLIB_SUFFIX=".so" - AS_IF([test "$GCC" = yes], [ - SHLIB_LD='${CC} -shared' - CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - ], [ - SHLIB_LD="/usr/ccs/bin/ld -G -z text" - CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - ]) - ;; - SunOS-5*) - # Note: If _REENTRANT isn't defined, then Solaris - # won't define thread-safe library routines. - - AC_DEFINE(_REENTRANT, 1, [Do we want the reentrant OS API?]) - AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, - [Do we really want to follow the standard? Yes we do!]) - - SHLIB_CFLAGS="-KPIC" - - # Check to enable 64-bit flags for compiler/linker - AS_IF([test "$do64bit" = yes], [ - arch=`isainfo` - AS_IF([test "$arch" = "sparcv9 sparc"], [ - AS_IF([test "$GCC" = yes], [ - AS_IF([test "`${CC} -dumpversion | awk -F. '{print [$]1}'`" -lt 3], [ - AC_MSG_WARN([64bit mode not supported with GCC < 3.2 on $system]) - ], [ - do64bit_ok=yes - CFLAGS="$CFLAGS -m64 -mcpu=v9" - LDFLAGS="$LDFLAGS -m64 -mcpu=v9" - SHLIB_CFLAGS="-fPIC" - ]) - ], [ - do64bit_ok=yes - AS_IF([test "$do64bitVIS" = yes], [ - CFLAGS="$CFLAGS -xarch=v9a" - LDFLAGS_ARCH="-xarch=v9a" - ], [ - CFLAGS="$CFLAGS -xarch=v9" - LDFLAGS_ARCH="-xarch=v9" - ]) - # Solaris 64 uses this as well - #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" - ]) - ], [AS_IF([test "$arch" = "amd64 i386"], [ - AS_IF([test "$GCC" = yes], [ - case $system in - SunOS-5.1[[1-9]]*|SunOS-5.[[2-9]][[0-9]]*) - do64bit_ok=yes - CFLAGS="$CFLAGS -m64" - LDFLAGS="$LDFLAGS -m64";; - *) - AC_MSG_WARN([64bit mode not supported with GCC on $system]);; - esac - ], [ - do64bit_ok=yes - case $system in - SunOS-5.1[[1-9]]*|SunOS-5.[[2-9]][[0-9]]*) - CFLAGS="$CFLAGS -m64" - LDFLAGS="$LDFLAGS -m64";; - *) - CFLAGS="$CFLAGS -xarch=amd64" - LDFLAGS="$LDFLAGS -xarch=amd64";; - esac - ]) - ], [AC_MSG_WARN([64bit mode not supported for $arch])])]) - ]) - - SHLIB_SUFFIX=".so" - AS_IF([test "$GCC" = yes], [ - SHLIB_LD='${CC} -shared' - CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - AS_IF([test "$do64bit_ok" = yes], [ - AS_IF([test "$arch" = "sparcv9 sparc"], [ - # We need to specify -static-libgcc or we need to - # add the path to the sparv9 libgcc. - # JH: static-libgcc is necessary for core Tcl, but may - # not be necessary for extensions. - SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" - # for finding sparcv9 libgcc, get the regular libgcc - # path, remove so name and append 'sparcv9' - #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." - #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" - ], [AS_IF([test "$arch" = "amd64 i386"], [ - # JH: static-libgcc is necessary for core Tcl, but may - # not be necessary for extensions. - SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" - ])]) - ]) - ], [ - case $system in - SunOS-5.[[1-9]][[0-9]]*) - # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS - SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; - *) - SHLIB_LD='/usr/ccs/bin/ld -G -z text';; - esac - CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' - ]) - ;; - esac - - AS_IF([test "$do64bit" = yes -a "$do64bit_ok" = no], [ - AC_MSG_WARN([64bit support being disabled -- don't know magic for this platform]) - ]) - -dnl # Add any CPPFLAGS set in the environment to our CFLAGS, but delay doing so -dnl # until the end of configure, as configure's compile and link tests use -dnl # both CPPFLAGS and CFLAGS (unlike our compile and link) but configure's -dnl # preprocessing tests use only CPPFLAGS. - AC_CONFIG_COMMANDS_PRE([CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""]) - - # Add in the arch flags late to ensure it wasn't removed. - # Not necessary in TEA, but this is aligned with core - LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" - - # If we're running gcc, then change the C flags for compiling shared - # libraries to the right flags for gcc, instead of those for the - # standard manufacturer compiler. - - AS_IF([test "$GCC" = yes], [ - case $system in - AIX-*) ;; - BSD/OS*) ;; - CYGWIN_*) ;; - IRIX*) ;; - NetBSD-*|FreeBSD-*|OpenBSD-*) ;; - Darwin-*) ;; - SCO_SV-3.2*) ;; - windows) ;; - *) SHLIB_CFLAGS="-fPIC" ;; - esac]) - - AS_IF([test "$tcl_cv_cc_visibility_hidden" != yes], [ - AC_DEFINE(MODULE_SCOPE, [extern], - [No Compiler support for module scope symbols]) - AC_DEFINE(NO_VIZ, [], [No visibility hidden passed to zlib?]) - ]) - - AS_IF([test "$SHARED_LIB_SUFFIX" = ""], [ - # TEA specific: use PACKAGE_VERSION instead of VERSION - SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}']) - AS_IF([test "$UNSHARED_LIB_SUFFIX" = ""], [ - # TEA specific: use PACKAGE_VERSION instead of VERSION - UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a']) - - AC_SUBST(CFLAGS_DEBUG) - AC_SUBST(CFLAGS_OPTIMIZE) - AC_SUBST(CFLAGS_WARNING) - - AC_SUBST(STLIB_LD) - AC_SUBST(SHLIB_LD) - - AC_SUBST(SHLIB_LD_LIBS) - AC_SUBST(SHLIB_CFLAGS) - - AC_SUBST(LD_LIBRARY_PATH_VAR) - - # These must be called after we do the basic CFLAGS checks and - # verify any possible 64-bit or similar switches are necessary - TEA_TCL_EARLY_FLAGS - TEA_TCL_64BIT_FLAGS -]) - -#-------------------------------------------------------------------- -# TEA_SERIAL_PORT -# -# Determine which interface to use to talk to the serial port. -# Note that #include lines must begin in leftmost column for -# some compilers to recognize them as preprocessor directives, -# and some build environments have stdin not pointing at a -# pseudo-terminal (usually /dev/null instead.) -# -# Arguments: -# none -# -# Results: -# -# Defines only one of the following vars: -# HAVE_SYS_MODEM_H -# USE_TERMIOS -# USE_TERMIO -# USE_SGTTY -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_SERIAL_PORT], [ - AC_CHECK_HEADERS(sys/modem.h) - AC_CACHE_CHECK([termios vs. termio vs. sgtty], tcl_cv_api_serial, [ - AC_TRY_RUN([ -#include - -int main() { - struct termios t; - if (tcgetattr(0, &t) == 0) { - cfsetospeed(&t, 0); - t.c_cflag |= PARENB | PARODD | CSIZE | CSTOPB; - return 0; - } - return 1; -}], tcl_cv_api_serial=termios, tcl_cv_api_serial=no, tcl_cv_api_serial=no) - if test $tcl_cv_api_serial = no ; then - AC_TRY_RUN([ -#include - -int main() { - struct termio t; - if (ioctl(0, TCGETA, &t) == 0) { - t.c_cflag |= CBAUD | PARENB | PARODD | CSIZE | CSTOPB; - return 0; - } - return 1; -}], tcl_cv_api_serial=termio, tcl_cv_api_serial=no, tcl_cv_api_serial=no) - fi - if test $tcl_cv_api_serial = no ; then - AC_TRY_RUN([ -#include - -int main() { - struct sgttyb t; - if (ioctl(0, TIOCGETP, &t) == 0) { - t.sg_ospeed = 0; - t.sg_flags |= ODDP | EVENP | RAW; - return 0; - } - return 1; -}], tcl_cv_api_serial=sgtty, tcl_cv_api_serial=no, tcl_cv_api_serial=no) - fi - if test $tcl_cv_api_serial = no ; then - AC_TRY_RUN([ -#include -#include - -int main() { - struct termios t; - if (tcgetattr(0, &t) == 0 - || errno == ENOTTY || errno == ENXIO || errno == EINVAL) { - cfsetospeed(&t, 0); - t.c_cflag |= PARENB | PARODD | CSIZE | CSTOPB; - return 0; - } - return 1; -}], tcl_cv_api_serial=termios, tcl_cv_api_serial=no, tcl_cv_api_serial=no) - fi - if test $tcl_cv_api_serial = no; then - AC_TRY_RUN([ -#include -#include - -int main() { - struct termio t; - if (ioctl(0, TCGETA, &t) == 0 - || errno == ENOTTY || errno == ENXIO || errno == EINVAL) { - t.c_cflag |= CBAUD | PARENB | PARODD | CSIZE | CSTOPB; - return 0; - } - return 1; - }], tcl_cv_api_serial=termio, tcl_cv_api_serial=no, tcl_cv_api_serial=no) - fi - if test $tcl_cv_api_serial = no; then - AC_TRY_RUN([ -#include -#include - -int main() { - struct sgttyb t; - if (ioctl(0, TIOCGETP, &t) == 0 - || errno == ENOTTY || errno == ENXIO || errno == EINVAL) { - t.sg_ospeed = 0; - t.sg_flags |= ODDP | EVENP | RAW; - return 0; - } - return 1; -}], tcl_cv_api_serial=sgtty, tcl_cv_api_serial=none, tcl_cv_api_serial=none) - fi]) - case $tcl_cv_api_serial in - termios) AC_DEFINE(USE_TERMIOS, 1, [Use the termios API for serial lines]);; - termio) AC_DEFINE(USE_TERMIO, 1, [Use the termio API for serial lines]);; - sgtty) AC_DEFINE(USE_SGTTY, 1, [Use the sgtty API for serial lines]);; - esac -]) - -#-------------------------------------------------------------------- -# TEA_MISSING_POSIX_HEADERS -# -# Supply substitutes for missing POSIX header files. Special -# notes: -# - stdlib.h doesn't define strtol, strtoul, or -# strtod in some versions of SunOS -# - some versions of string.h don't declare procedures such -# as strstr -# -# Arguments: -# none -# -# Results: -# -# Defines some of the following vars: -# NO_DIRENT_H -# NO_ERRNO_H -# NO_VALUES_H -# HAVE_LIMITS_H or NO_LIMITS_H -# NO_STDLIB_H -# NO_STRING_H -# NO_SYS_WAIT_H -# NO_DLFCN_H -# HAVE_SYS_PARAM_H -# -# HAVE_STRING_H ? -# -# tkUnixPort.h checks for HAVE_LIMITS_H, so do both HAVE and -# CHECK on limits.h -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_MISSING_POSIX_HEADERS], [ - AC_CACHE_CHECK([dirent.h], tcl_cv_dirent_h, [ - AC_TRY_LINK([#include -#include ], [ -#ifndef _POSIX_SOURCE -# ifdef __Lynx__ - /* - * Generate compilation error to make the test fail: Lynx headers - * are only valid if really in the POSIX environment. - */ - - missing_procedure(); -# endif -#endif -DIR *d; -struct dirent *entryPtr; -char *p; -d = opendir("foobar"); -entryPtr = readdir(d); -p = entryPtr->d_name; -closedir(d); -], tcl_cv_dirent_h=yes, tcl_cv_dirent_h=no)]) - - if test $tcl_cv_dirent_h = no; then - AC_DEFINE(NO_DIRENT_H, 1, [Do we have ?]) - fi - - # TEA specific: - AC_CHECK_HEADER(errno.h, , [AC_DEFINE(NO_ERRNO_H, 1, [Do we have ?])]) - AC_CHECK_HEADER(float.h, , [AC_DEFINE(NO_FLOAT_H, 1, [Do we have ?])]) - AC_CHECK_HEADER(values.h, , [AC_DEFINE(NO_VALUES_H, 1, [Do we have ?])]) - AC_CHECK_HEADER(limits.h, - [AC_DEFINE(HAVE_LIMITS_H, 1, [Do we have ?])], - [AC_DEFINE(NO_LIMITS_H, 1, [Do we have ?])]) - AC_CHECK_HEADER(stdlib.h, tcl_ok=1, tcl_ok=0) - AC_EGREP_HEADER(strtol, stdlib.h, , tcl_ok=0) - AC_EGREP_HEADER(strtoul, stdlib.h, , tcl_ok=0) - AC_EGREP_HEADER(strtod, stdlib.h, , tcl_ok=0) - if test $tcl_ok = 0; then - AC_DEFINE(NO_STDLIB_H, 1, [Do we have ?]) - fi - AC_CHECK_HEADER(string.h, tcl_ok=1, tcl_ok=0) - AC_EGREP_HEADER(strstr, string.h, , tcl_ok=0) - AC_EGREP_HEADER(strerror, string.h, , tcl_ok=0) - - # See also memmove check below for a place where NO_STRING_H can be - # set and why. - - if test $tcl_ok = 0; then - AC_DEFINE(NO_STRING_H, 1, [Do we have ?]) - fi - - AC_CHECK_HEADER(sys/wait.h, , [AC_DEFINE(NO_SYS_WAIT_H, 1, [Do we have ?])]) - AC_CHECK_HEADER(dlfcn.h, , [AC_DEFINE(NO_DLFCN_H, 1, [Do we have ?])]) - - # OS/390 lacks sys/param.h (and doesn't need it, by chance). - AC_HAVE_HEADERS(sys/param.h) -]) - -#-------------------------------------------------------------------- -# TEA_PATH_X -# -# Locate the X11 header files and the X11 library archive. Try -# the ac_path_x macro first, but if it doesn't find the X stuff -# (e.g. because there's no xmkmf program) then check through -# a list of possible directories. Under some conditions the -# autoconf macro will return an include directory that contains -# no include files, so double-check its result just to be safe. -# -# This should be called after TEA_CONFIG_CFLAGS as setting the -# LIBS line can confuse some configure macro magic. -# -# Arguments: -# none -# -# Results: -# -# Sets the following vars: -# XINCLUDES -# XLIBSW -# PKG_LIBS (appends to) -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_PATH_X], [ - if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then - TEA_PATH_UNIX_X - fi -]) - -AC_DEFUN([TEA_PATH_UNIX_X], [ - AC_PATH_X - not_really_there="" - if test "$no_x" = ""; then - if test "$x_includes" = ""; then - AC_TRY_CPP([#include ], , not_really_there="yes") - else - if test ! -r $x_includes/X11/Intrinsic.h; then - not_really_there="yes" - fi - fi - fi - if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then - AC_MSG_CHECKING([for X11 header files]) - found_xincludes="no" - AC_TRY_CPP([#include ], found_xincludes="yes", found_xincludes="no") - if test "$found_xincludes" = "no"; then - dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include" - for i in $dirs ; do - if test -r $i/X11/Intrinsic.h; then - AC_MSG_RESULT([$i]) - XINCLUDES=" -I$i" - found_xincludes="yes" - break - fi - done - fi - else - if test "$x_includes" != ""; then - XINCLUDES="-I$x_includes" - found_xincludes="yes" - fi - fi - if test "$found_xincludes" = "no"; then - AC_MSG_RESULT([couldn't find any!]) - fi - - if test "$no_x" = yes; then - AC_MSG_CHECKING([for X11 libraries]) - XLIBSW=nope - dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" - for i in $dirs ; do - if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then - AC_MSG_RESULT([$i]) - XLIBSW="-L$i -lX11" - x_libraries="$i" - break - fi - done - else - if test "$x_libraries" = ""; then - XLIBSW=-lX11 - else - XLIBSW="-L$x_libraries -lX11" - fi - fi - if test "$XLIBSW" = nope ; then - AC_CHECK_LIB(Xwindow, XCreateWindow, XLIBSW=-lXwindow) - fi - if test "$XLIBSW" = nope ; then - AC_MSG_RESULT([could not find any! Using -lX11.]) - XLIBSW=-lX11 - fi - # TEA specific: - if test x"${XLIBSW}" != x ; then - PKG_LIBS="${PKG_LIBS} ${XLIBSW}" - fi -]) - -#-------------------------------------------------------------------- -# TEA_BLOCKING_STYLE -# -# The statements below check for systems where POSIX-style -# non-blocking I/O (O_NONBLOCK) doesn't work or is unimplemented. -# On these systems (mostly older ones), use the old BSD-style -# FIONBIO approach instead. -# -# Arguments: -# none -# -# Results: -# -# Defines some of the following vars: -# HAVE_SYS_IOCTL_H -# HAVE_SYS_FILIO_H -# USE_FIONBIO -# O_NONBLOCK -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_BLOCKING_STYLE], [ - AC_CHECK_HEADERS(sys/ioctl.h) - AC_CHECK_HEADERS(sys/filio.h) - TEA_CONFIG_SYSTEM - AC_MSG_CHECKING([FIONBIO vs. O_NONBLOCK for nonblocking I/O]) - case $system in - OSF*) - AC_DEFINE(USE_FIONBIO, 1, [Should we use FIONBIO?]) - AC_MSG_RESULT([FIONBIO]) - ;; - *) - AC_MSG_RESULT([O_NONBLOCK]) - ;; - esac -]) - -#-------------------------------------------------------------------- -# TEA_TIME_HANDLER -# -# Checks how the system deals with time.h, what time structures -# are used on the system, and what fields the structures have. -# -# Arguments: -# none -# -# Results: -# -# Defines some of the following vars: -# USE_DELTA_FOR_TZ -# HAVE_TM_GMTOFF -# HAVE_TM_TZADJ -# HAVE_TIMEZONE_VAR -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_TIME_HANDLER], [ - AC_CHECK_HEADERS(sys/time.h) - AC_HEADER_TIME - AC_STRUCT_TIMEZONE - - AC_CHECK_FUNCS(gmtime_r localtime_r) - - AC_CACHE_CHECK([tm_tzadj in struct tm], tcl_cv_member_tm_tzadj, [ - AC_TRY_COMPILE([#include ], [struct tm tm; tm.tm_tzadj;], - tcl_cv_member_tm_tzadj=yes, tcl_cv_member_tm_tzadj=no)]) - if test $tcl_cv_member_tm_tzadj = yes ; then - AC_DEFINE(HAVE_TM_TZADJ, 1, [Should we use the tm_tzadj field of struct tm?]) - fi - - AC_CACHE_CHECK([tm_gmtoff in struct tm], tcl_cv_member_tm_gmtoff, [ - AC_TRY_COMPILE([#include ], [struct tm tm; tm.tm_gmtoff;], - tcl_cv_member_tm_gmtoff=yes, tcl_cv_member_tm_gmtoff=no)]) - if test $tcl_cv_member_tm_gmtoff = yes ; then - AC_DEFINE(HAVE_TM_GMTOFF, 1, [Should we use the tm_gmtoff field of struct tm?]) - fi - - # - # Its important to include time.h in this check, as some systems - # (like convex) have timezone functions, etc. - # - AC_CACHE_CHECK([long timezone variable], tcl_cv_timezone_long, [ - AC_TRY_COMPILE([#include ], - [extern long timezone; - timezone += 1; - exit (0);], - tcl_cv_timezone_long=yes, tcl_cv_timezone_long=no)]) - if test $tcl_cv_timezone_long = yes ; then - AC_DEFINE(HAVE_TIMEZONE_VAR, 1, [Should we use the global timezone variable?]) - else - # - # On some systems (eg IRIX 6.2), timezone is a time_t and not a long. - # - AC_CACHE_CHECK([time_t timezone variable], tcl_cv_timezone_time, [ - AC_TRY_COMPILE([#include ], - [extern time_t timezone; - timezone += 1; - exit (0);], - tcl_cv_timezone_time=yes, tcl_cv_timezone_time=no)]) - if test $tcl_cv_timezone_time = yes ; then - AC_DEFINE(HAVE_TIMEZONE_VAR, 1, [Should we use the global timezone variable?]) - fi - fi -]) - -#-------------------------------------------------------------------- -# TEA_BUGGY_STRTOD -# -# Under Solaris 2.4, strtod returns the wrong value for the -# terminating character under some conditions. Check for this -# and if the problem exists use a substitute procedure -# "fixstrtod" (provided by Tcl) that corrects the error. -# Also, on Compaq's Tru64 Unix 5.0, -# strtod(" ") returns 0.0 instead of a failure to convert. -# -# Arguments: -# none -# -# Results: -# -# Might defines some of the following vars: -# strtod (=fixstrtod) -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_BUGGY_STRTOD], [ - AC_CHECK_FUNC(strtod, tcl_strtod=1, tcl_strtod=0) - if test "$tcl_strtod" = 1; then - AC_CACHE_CHECK([for Solaris2.4/Tru64 strtod bugs], tcl_cv_strtod_buggy,[ - AC_TRY_RUN([ - extern double strtod(); - int main() { - char *infString="Inf", *nanString="NaN", *spaceString=" "; - char *term; - double value; - value = strtod(infString, &term); - if ((term != infString) && (term[-1] == 0)) { - exit(1); - } - value = strtod(nanString, &term); - if ((term != nanString) && (term[-1] == 0)) { - exit(1); - } - value = strtod(spaceString, &term); - if (term == (spaceString+1)) { - exit(1); - } - exit(0); - }], tcl_cv_strtod_buggy=ok, tcl_cv_strtod_buggy=buggy, - tcl_cv_strtod_buggy=buggy)]) - if test "$tcl_cv_strtod_buggy" = buggy; then - AC_LIBOBJ([fixstrtod]) - USE_COMPAT=1 - AC_DEFINE(strtod, fixstrtod, [Do we want to use the strtod() in compat?]) - fi - fi -]) - -#-------------------------------------------------------------------- -# TEA_TCL_LINK_LIBS -# -# Search for the libraries needed to link the Tcl shell. -# Things like the math library (-lm) and socket stuff (-lsocket vs. -# -lnsl) are dealt with here. -# -# Arguments: -# Requires the following vars to be set in the Makefile: -# DL_LIBS (not in TEA, only needed in core) -# LIBS -# MATH_LIBS -# -# Results: -# -# Subst's the following var: -# TCL_LIBS -# MATH_LIBS -# -# Might append to the following vars: -# LIBS -# -# Might define the following vars: -# HAVE_NET_ERRNO_H -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_TCL_LINK_LIBS], [ - #-------------------------------------------------------------------- - # On a few very rare systems, all of the libm.a stuff is - # already in libc.a. Set compiler flags accordingly. - # Also, Linux requires the "ieee" library for math to work - # right (and it must appear before "-lm"). - #-------------------------------------------------------------------- - - AC_CHECK_FUNC(sin, MATH_LIBS="", MATH_LIBS="-lm") - AC_CHECK_LIB(ieee, main, [MATH_LIBS="-lieee $MATH_LIBS"]) - - #-------------------------------------------------------------------- - # Interactive UNIX requires -linet instead of -lsocket, plus it - # needs net/errno.h to define the socket-related error codes. - #-------------------------------------------------------------------- - - AC_CHECK_LIB(inet, main, [LIBS="$LIBS -linet"]) - AC_CHECK_HEADER(net/errno.h, [ - AC_DEFINE(HAVE_NET_ERRNO_H, 1, [Do we have ?])]) - - #-------------------------------------------------------------------- - # Check for the existence of the -lsocket and -lnsl libraries. - # The order here is important, so that they end up in the right - # order in the command line generated by make. Here are some - # special considerations: - # 1. Use "connect" and "accept" to check for -lsocket, and - # "gethostbyname" to check for -lnsl. - # 2. Use each function name only once: can't redo a check because - # autoconf caches the results of the last check and won't redo it. - # 3. Use -lnsl and -lsocket only if they supply procedures that - # aren't already present in the normal libraries. This is because - # IRIX 5.2 has libraries, but they aren't needed and they're - # bogus: they goof up name resolution if used. - # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. - # To get around this problem, check for both libraries together - # if -lsocket doesn't work by itself. - #-------------------------------------------------------------------- - - tcl_checkBoth=0 - AC_CHECK_FUNC(connect, tcl_checkSocket=0, tcl_checkSocket=1) - if test "$tcl_checkSocket" = 1; then - AC_CHECK_FUNC(setsockopt, , [AC_CHECK_LIB(socket, setsockopt, - LIBS="$LIBS -lsocket", tcl_checkBoth=1)]) - fi - if test "$tcl_checkBoth" = 1; then - tk_oldLibs=$LIBS - LIBS="$LIBS -lsocket -lnsl" - AC_CHECK_FUNC(accept, tcl_checkNsl=0, [LIBS=$tk_oldLibs]) - fi - AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl, gethostbyname, - [LIBS="$LIBS -lnsl"])]) - - # TEA specific: Don't perform the eval of the libraries here because - # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS - - TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' - AC_SUBST(TCL_LIBS) - AC_SUBST(MATH_LIBS) -]) - -#-------------------------------------------------------------------- -# TEA_TCL_EARLY_FLAGS -# -# Check for what flags are needed to be passed so the correct OS -# features are available. -# -# Arguments: -# None -# -# Results: -# -# Might define the following vars: -# _ISOC99_SOURCE -# _LARGEFILE64_SOURCE -# _LARGEFILE_SOURCE64 -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_TCL_EARLY_FLAG],[ - AC_CACHE_VAL([tcl_cv_flag_]translit($1,[A-Z],[a-z]), - AC_TRY_COMPILE([$2], $3, [tcl_cv_flag_]translit($1,[A-Z],[a-z])=no, - AC_TRY_COMPILE([[#define ]$1[ 1 -]$2], $3, - [tcl_cv_flag_]translit($1,[A-Z],[a-z])=yes, - [tcl_cv_flag_]translit($1,[A-Z],[a-z])=no))) - if test ["x${tcl_cv_flag_]translit($1,[A-Z],[a-z])[}" = "xyes"] ; then - AC_DEFINE($1, 1, [Add the ]$1[ flag when building]) - tcl_flags="$tcl_flags $1" - fi -]) - -AC_DEFUN([TEA_TCL_EARLY_FLAGS],[ - AC_MSG_CHECKING([for required early compiler flags]) - tcl_flags="" - TEA_TCL_EARLY_FLAG(_ISOC99_SOURCE,[#include ], - [char *p = (char *)strtoll; char *q = (char *)strtoull;]) - TEA_TCL_EARLY_FLAG(_LARGEFILE64_SOURCE,[#include ], - [struct stat64 buf; int i = stat64("/", &buf);]) - TEA_TCL_EARLY_FLAG(_LARGEFILE_SOURCE64,[#include ], - [char *p = (char *)open64;]) - if test "x${tcl_flags}" = "x" ; then - AC_MSG_RESULT([none]) - else - AC_MSG_RESULT([${tcl_flags}]) - fi -]) - -#-------------------------------------------------------------------- -# TEA_TCL_64BIT_FLAGS -# -# Check for what is defined in the way of 64-bit features. -# -# Arguments: -# None -# -# Results: -# -# Might define the following vars: -# TCL_WIDE_INT_IS_LONG -# TCL_WIDE_INT_TYPE -# HAVE_STRUCT_DIRENT64 -# HAVE_STRUCT_STAT64 -# HAVE_TYPE_OFF64_T -# -#-------------------------------------------------------------------- - -AC_DEFUN([TEA_TCL_64BIT_FLAGS], [ - AC_MSG_CHECKING([for 64-bit integer type]) - AC_CACHE_VAL(tcl_cv_type_64bit,[ - tcl_cv_type_64bit=none - # See if the compiler knows natively about __int64 - AC_TRY_COMPILE(,[__int64 value = (__int64) 0;], - tcl_type_64bit=__int64, tcl_type_64bit="long long") - # See if we should use long anyway Note that we substitute in the - # type that is our current guess for a 64-bit type inside this check - # program, so it should be modified only carefully... - AC_TRY_COMPILE(,[switch (0) { - case 1: case (sizeof(]${tcl_type_64bit}[)==sizeof(long)): ; - }],tcl_cv_type_64bit=${tcl_type_64bit})]) - if test "${tcl_cv_type_64bit}" = none ; then - AC_DEFINE(TCL_WIDE_INT_IS_LONG, 1, [Are wide integers to be implemented with C 'long's?]) - AC_MSG_RESULT([using long]) - elif test "${tcl_cv_type_64bit}" = "__int64" \ - -a "${TEA_PLATFORM}" = "windows" ; then - # TEA specific: We actually want to use the default tcl.h checks in - # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* - AC_MSG_RESULT([using Tcl header defaults]) - else - AC_DEFINE_UNQUOTED(TCL_WIDE_INT_TYPE,${tcl_cv_type_64bit}, - [What type should be used to define wide integers?]) - AC_MSG_RESULT([${tcl_cv_type_64bit}]) - - # Now check for auxiliary declarations - AC_CACHE_CHECK([for struct dirent64], tcl_cv_struct_dirent64,[ - AC_TRY_COMPILE([#include -#include ],[struct dirent64 p;], - tcl_cv_struct_dirent64=yes,tcl_cv_struct_dirent64=no)]) - if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then - AC_DEFINE(HAVE_STRUCT_DIRENT64, 1, [Is 'struct dirent64' in ?]) - fi - - AC_CACHE_CHECK([for struct stat64], tcl_cv_struct_stat64,[ - AC_TRY_COMPILE([#include ],[struct stat64 p; -], - tcl_cv_struct_stat64=yes,tcl_cv_struct_stat64=no)]) - if test "x${tcl_cv_struct_stat64}" = "xyes" ; then - AC_DEFINE(HAVE_STRUCT_STAT64, 1, [Is 'struct stat64' in ?]) - fi - - AC_CHECK_FUNCS(open64 lseek64) - AC_MSG_CHECKING([for off64_t]) - AC_CACHE_VAL(tcl_cv_type_off64_t,[ - AC_TRY_COMPILE([#include ],[off64_t offset; -], - tcl_cv_type_off64_t=yes,tcl_cv_type_off64_t=no)]) - dnl Define HAVE_TYPE_OFF64_T only when the off64_t type and the - dnl functions lseek64 and open64 are defined. - if test "x${tcl_cv_type_off64_t}" = "xyes" && \ - test "x${ac_cv_func_lseek64}" = "xyes" && \ - test "x${ac_cv_func_open64}" = "xyes" ; then - AC_DEFINE(HAVE_TYPE_OFF64_T, 1, [Is off64_t in ?]) - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - fi - fi -]) - -## -## Here ends the standard Tcl configuration bits and starts the -## TEA specific functions -## - -#------------------------------------------------------------------------ -# TEA_INIT -- -# -# Init various Tcl Extension Architecture (TEA) variables. -# This should be the first called TEA_* macro. -# -# Arguments: -# none -# -# Results: -# -# Defines and substs the following vars: -# CYGPATH -# EXEEXT -# Defines only: -# TEA_VERSION -# TEA_INITED -# TEA_PLATFORM (windows or unix) -# -# "cygpath" is used on windows to generate native path names for include -# files. These variables should only be used with the compiler and linker -# since they generate native path names. -# -# EXEEXT -# Select the executable extension based on the host type. This -# is a lightweight replacement for AC_EXEEXT that doesn't require -# a compiler. -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_INIT], [ - # TEA extensions pass this us the version of TEA they think they - # are compatible with. - TEA_VERSION="3.9" - - AC_MSG_CHECKING([for correct TEA configuration]) - if test x"${PACKAGE_NAME}" = x ; then - AC_MSG_ERROR([ -The PACKAGE_NAME variable must be defined by your TEA configure.in]) - fi - if test x"$1" = x ; then - AC_MSG_ERROR([ -TEA version not specified.]) - elif test "$1" != "${TEA_VERSION}" ; then - AC_MSG_RESULT([warning: requested TEA version "$1", have "${TEA_VERSION}"]) - else - AC_MSG_RESULT([ok (TEA ${TEA_VERSION})]) - fi - case "`uname -s`" in - *win32*|*WIN32*|*MINGW32_*) - AC_CHECK_PROG(CYGPATH, cygpath, cygpath -w, echo) - EXEEXT=".exe" - TEA_PLATFORM="windows" - ;; - *CYGWIN_*) - CYGPATH=echo - EXEEXT=".exe" - # TEA_PLATFORM is determined later in LOAD_TCLCONFIG - ;; - *) - CYGPATH=echo - # Maybe we are cross-compiling.... - case ${host_alias} in - *mingw32*) - EXEEXT=".exe" - TEA_PLATFORM="windows" - ;; - *) - EXEEXT="" - TEA_PLATFORM="unix" - ;; - esac - ;; - esac - - # Check if exec_prefix is set. If not use fall back to prefix. - # Note when adjusted, so that TEA_PREFIX can correct for this. - # This is needed for recursive configures, since autoconf propagates - # $prefix, but not $exec_prefix (doh!). - if test x$exec_prefix = xNONE ; then - exec_prefix_default=yes - exec_prefix=$prefix - fi - - AC_MSG_NOTICE([configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}]) - - AC_SUBST(EXEEXT) - AC_SUBST(CYGPATH) - - # This package name must be replaced statically for AC_SUBST to work - AC_SUBST(PKG_LIB_FILE) - # Substitute STUB_LIB_FILE in case package creates a stub library too. - AC_SUBST(PKG_STUB_LIB_FILE) - - # We AC_SUBST these here to ensure they are subst'ed, - # in case the user doesn't call TEA_ADD_... - AC_SUBST(PKG_STUB_SOURCES) - AC_SUBST(PKG_STUB_OBJECTS) - AC_SUBST(PKG_TCL_SOURCES) - AC_SUBST(PKG_HEADERS) - AC_SUBST(PKG_INCLUDES) - AC_SUBST(PKG_LIBS) - AC_SUBST(PKG_CFLAGS) -]) - -#------------------------------------------------------------------------ -# TEA_ADD_SOURCES -- -# -# Specify one or more source files. Users should check for -# the right platform before adding to their list. -# It is not important to specify the directory, as long as it is -# in the generic, win or unix subdirectory of $(srcdir). -# -# Arguments: -# one or more file names -# -# Results: -# -# Defines and substs the following vars: -# PKG_SOURCES -# PKG_OBJECTS -#------------------------------------------------------------------------ -AC_DEFUN([TEA_ADD_SOURCES], [ - vars="$@" - for i in $vars; do - case $i in - [\$]*) - # allow $-var names - PKG_SOURCES="$PKG_SOURCES $i" - PKG_OBJECTS="$PKG_OBJECTS $i" - ;; - *) - # check for existence - allows for generic/win/unix VPATH - # To add more dirs here (like 'src'), you have to update VPATH - # in Makefile.in as well - if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ - -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ - -a ! -f "${srcdir}/macosx/$i" \ - ; then - AC_MSG_ERROR([could not find source file '$i']) - fi - PKG_SOURCES="$PKG_SOURCES $i" - # this assumes it is in a VPATH dir - i=`basename $i` - # handle user calling this before or after TEA_SETUP_COMPILER - if test x"${OBJEXT}" != x ; then - j="`echo $i | sed -e 's/\.[[^.]]*$//'`.${OBJEXT}" - else - j="`echo $i | sed -e 's/\.[[^.]]*$//'`.\${OBJEXT}" - fi - PKG_OBJECTS="$PKG_OBJECTS $j" - ;; - esac - done - AC_SUBST(PKG_SOURCES) - AC_SUBST(PKG_OBJECTS) -]) - -#------------------------------------------------------------------------ -# TEA_ADD_STUB_SOURCES -- -# -# Specify one or more source files. Users should check for -# the right platform before adding to their list. -# It is not important to specify the directory, as long as it is -# in the generic, win or unix subdirectory of $(srcdir). -# -# Arguments: -# one or more file names -# -# Results: -# -# Defines and substs the following vars: -# PKG_STUB_SOURCES -# PKG_STUB_OBJECTS -#------------------------------------------------------------------------ -AC_DEFUN([TEA_ADD_STUB_SOURCES], [ - vars="$@" - for i in $vars; do - # check for existence - allows for generic/win/unix VPATH - if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ - -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ - -a ! -f "${srcdir}/macosx/$i" \ - ; then - AC_MSG_ERROR([could not find stub source file '$i']) - fi - PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" - # this assumes it is in a VPATH dir - i=`basename $i` - # handle user calling this before or after TEA_SETUP_COMPILER - if test x"${OBJEXT}" != x ; then - j="`echo $i | sed -e 's/\.[[^.]]*$//'`.${OBJEXT}" - else - j="`echo $i | sed -e 's/\.[[^.]]*$//'`.\${OBJEXT}" - fi - PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" - done - AC_SUBST(PKG_STUB_SOURCES) - AC_SUBST(PKG_STUB_OBJECTS) -]) - -#------------------------------------------------------------------------ -# TEA_ADD_TCL_SOURCES -- -# -# Specify one or more Tcl source files. These should be platform -# independent runtime files. -# -# Arguments: -# one or more file names -# -# Results: -# -# Defines and substs the following vars: -# PKG_TCL_SOURCES -#------------------------------------------------------------------------ -AC_DEFUN([TEA_ADD_TCL_SOURCES], [ - vars="$@" - for i in $vars; do - # check for existence, be strict because it is installed - if test ! -f "${srcdir}/$i" ; then - AC_MSG_ERROR([could not find tcl source file '${srcdir}/$i']) - fi - PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" - done - AC_SUBST(PKG_TCL_SOURCES) -]) - -#------------------------------------------------------------------------ -# TEA_ADD_HEADERS -- -# -# Specify one or more source headers. Users should check for -# the right platform before adding to their list. -# -# Arguments: -# one or more file names -# -# Results: -# -# Defines and substs the following vars: -# PKG_HEADERS -#------------------------------------------------------------------------ -AC_DEFUN([TEA_ADD_HEADERS], [ - vars="$@" - for i in $vars; do - # check for existence, be strict because it is installed - if test ! -f "${srcdir}/$i" ; then - AC_MSG_ERROR([could not find header file '${srcdir}/$i']) - fi - PKG_HEADERS="$PKG_HEADERS $i" - done - AC_SUBST(PKG_HEADERS) -]) - -#------------------------------------------------------------------------ -# TEA_ADD_INCLUDES -- -# -# Specify one or more include dirs. Users should check for -# the right platform before adding to their list. -# -# Arguments: -# one or more file names -# -# Results: -# -# Defines and substs the following vars: -# PKG_INCLUDES -#------------------------------------------------------------------------ -AC_DEFUN([TEA_ADD_INCLUDES], [ - vars="$@" - for i in $vars; do - PKG_INCLUDES="$PKG_INCLUDES $i" - done - AC_SUBST(PKG_INCLUDES) -]) - -#------------------------------------------------------------------------ -# TEA_ADD_LIBS -- -# -# Specify one or more libraries. Users should check for -# the right platform before adding to their list. For Windows, -# libraries provided in "foo.lib" format will be converted to -# "-lfoo" when using GCC (mingw). -# -# Arguments: -# one or more file names -# -# Results: -# -# Defines and substs the following vars: -# PKG_LIBS -#------------------------------------------------------------------------ -AC_DEFUN([TEA_ADD_LIBS], [ - vars="$@" - for i in $vars; do - if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then - # Convert foo.lib to -lfoo for GCC. No-op if not *.lib - i=`echo "$i" | sed -e 's/^\([[^-]].*\)\.lib[$]/-l\1/i'` - fi - PKG_LIBS="$PKG_LIBS $i" - done - AC_SUBST(PKG_LIBS) -]) - -#------------------------------------------------------------------------ -# TEA_ADD_CFLAGS -- -# -# Specify one or more CFLAGS. Users should check for -# the right platform before adding to their list. -# -# Arguments: -# one or more file names -# -# Results: -# -# Defines and substs the following vars: -# PKG_CFLAGS -#------------------------------------------------------------------------ -AC_DEFUN([TEA_ADD_CFLAGS], [ - PKG_CFLAGS="$PKG_CFLAGS $@" - AC_SUBST(PKG_CFLAGS) -]) - -#------------------------------------------------------------------------ -# TEA_ADD_CLEANFILES -- -# -# Specify one or more CLEANFILES. -# -# Arguments: -# one or more file names to clean target -# -# Results: -# -# Appends to CLEANFILES, already defined for subst in LOAD_TCLCONFIG -#------------------------------------------------------------------------ -AC_DEFUN([TEA_ADD_CLEANFILES], [ - CLEANFILES="$CLEANFILES $@" -]) - -#------------------------------------------------------------------------ -# TEA_PREFIX -- -# -# Handle the --prefix=... option by defaulting to what Tcl gave -# -# Arguments: -# none -# -# Results: -# -# If --prefix or --exec-prefix was not specified, $prefix and -# $exec_prefix will be set to the values given to Tcl when it was -# configured. -#------------------------------------------------------------------------ -AC_DEFUN([TEA_PREFIX], [ - if test "${prefix}" = "NONE"; then - prefix_default=yes - if test x"${TCL_PREFIX}" != x; then - AC_MSG_NOTICE([--prefix defaulting to TCL_PREFIX ${TCL_PREFIX}]) - prefix=${TCL_PREFIX} - else - AC_MSG_NOTICE([--prefix defaulting to /usr/local]) - prefix=/usr/local - fi - fi - if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ - -o x"${exec_prefix_default}" = x"yes" ; then - if test x"${TCL_EXEC_PREFIX}" != x; then - AC_MSG_NOTICE([--exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}]) - exec_prefix=${TCL_EXEC_PREFIX} - else - AC_MSG_NOTICE([--exec-prefix defaulting to ${prefix}]) - exec_prefix=$prefix - fi - fi -]) - -#------------------------------------------------------------------------ -# TEA_SETUP_COMPILER_CC -- -# -# Do compiler checks the way we want. This is just a replacement -# for AC_PROG_CC in TEA configure.in files to make them cleaner. -# -# Arguments: -# none -# -# Results: -# -# Sets up CC var and other standard bits we need to make executables. -#------------------------------------------------------------------------ -AC_DEFUN([TEA_SETUP_COMPILER_CC], [ - # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) - # in this macro, they need to go into TEA_SETUP_COMPILER instead. - - # If the user did not set CFLAGS, set it now to keep - # the AC_PROG_CC macro from adding "-g -O2". - if test "${CFLAGS+set}" != "set" ; then - CFLAGS="" - fi - - AC_PROG_CC - AC_PROG_CPP - - #-------------------------------------------------------------------- - # Checks to see if the make program sets the $MAKE variable. - #-------------------------------------------------------------------- - - AC_PROG_MAKE_SET - - #-------------------------------------------------------------------- - # Find ranlib - #-------------------------------------------------------------------- - - AC_CHECK_TOOL(RANLIB, ranlib) - - #-------------------------------------------------------------------- - # Determines the correct binary file extension (.o, .obj, .exe etc.) - #-------------------------------------------------------------------- - - AC_OBJEXT - AC_EXEEXT -]) - -#------------------------------------------------------------------------ -# TEA_SETUP_COMPILER -- -# -# Do compiler checks that use the compiler. This must go after -# TEA_SETUP_COMPILER_CC, which does the actual compiler check. -# -# Arguments: -# none -# -# Results: -# -# Sets up CC var and other standard bits we need to make executables. -#------------------------------------------------------------------------ -AC_DEFUN([TEA_SETUP_COMPILER], [ - # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. - AC_REQUIRE([TEA_SETUP_COMPILER_CC]) - - #------------------------------------------------------------------------ - # If we're using GCC, see if the compiler understands -pipe. If so, use it. - # It makes compiling go faster. (This is only a performance feature.) - #------------------------------------------------------------------------ - - if test -z "$no_pipe" -a -n "$GCC"; then - AC_CACHE_CHECK([if the compiler understands -pipe], - tcl_cv_cc_pipe, [ - hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" - AC_TRY_COMPILE(,, tcl_cv_cc_pipe=yes, tcl_cv_cc_pipe=no) - CFLAGS=$hold_cflags]) - if test $tcl_cv_cc_pipe = yes; then - CFLAGS="$CFLAGS -pipe" - fi - fi - - #-------------------------------------------------------------------- - # Common compiler flag setup - #-------------------------------------------------------------------- - - AC_C_BIGENDIAN - if test "${TEA_PLATFORM}" = "unix" ; then - TEA_TCL_LINK_LIBS - TEA_MISSING_POSIX_HEADERS - # Let the user call this, because if it triggers, they will - # need a compat/strtod.c that is correct. Users can also - # use Tcl_GetDouble(FromObj) instead. - #TEA_BUGGY_STRTOD - fi -]) - -#------------------------------------------------------------------------ -# TEA_MAKE_LIB -- -# -# Generate a line that can be used to build a shared/unshared library -# in a platform independent manner. -# -# Arguments: -# none -# -# Requires: -# -# Results: -# -# Defines the following vars: -# CFLAGS - Done late here to note disturb other AC macros -# MAKE_LIB - Command to execute to build the Tcl library; -# differs depending on whether or not Tcl is being -# compiled as a shared library. -# MAKE_SHARED_LIB Makefile rule for building a shared library -# MAKE_STATIC_LIB Makefile rule for building a static library -# MAKE_STUB_LIB Makefile rule for building a stub library -# VC_MANIFEST_EMBED_DLL Makefile rule for embedded VC manifest in DLL -# VC_MANIFEST_EMBED_EXE Makefile rule for embedded VC manifest in EXE -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_MAKE_LIB], [ - if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then - MAKE_STATIC_LIB="\${STLIB_LD} -out:\[$]@ \$(PKG_OBJECTS)" - MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\[$]@ \$(PKG_OBJECTS)" - AC_EGREP_CPP([manifest needed], [ -#if defined(_MSC_VER) && _MSC_VER >= 1400 -print("manifest needed") -#endif - ], [ - # Could do a CHECK_PROG for mt, but should always be with MSVC8+ - VC_MANIFEST_EMBED_DLL="if test -f \[$]@.manifest ; then mt.exe -nologo -manifest \[$]@.manifest -outputresource:\[$]@\;2 ; fi" - VC_MANIFEST_EMBED_EXE="if test -f \[$]@.manifest ; then mt.exe -nologo -manifest \[$]@.manifest -outputresource:\[$]@\;1 ; fi" - MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" - TEA_ADD_CLEANFILES([*.manifest]) - ]) - MAKE_STUB_LIB="\${STLIB_LD} -out:\[$]@ \$(PKG_STUB_OBJECTS)" - else - MAKE_STATIC_LIB="\${STLIB_LD} \[$]@ \$(PKG_OBJECTS)" - MAKE_SHARED_LIB="\${SHLIB_LD} -o \[$]@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" - MAKE_STUB_LIB="\${STLIB_LD} \[$]@ \$(PKG_STUB_OBJECTS)" - fi - - if test "${SHARED_BUILD}" = "1" ; then - MAKE_LIB="${MAKE_SHARED_LIB} " - else - MAKE_LIB="${MAKE_STATIC_LIB} " - fi - - #-------------------------------------------------------------------- - # Shared libraries and static libraries have different names. - # Use the double eval to make sure any variables in the suffix is - # substituted. (@@@ Might not be necessary anymore) - #-------------------------------------------------------------------- - - if test "${TEA_PLATFORM}" = "windows" ; then - if test "${SHARED_BUILD}" = "1" ; then - # We force the unresolved linking of symbols that are really in - # the private libraries of Tcl and Tk. - SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" - if test x"${TK_BIN_DIR}" != x ; then - SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" - fi - eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" - else - eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" - fi - # Some packages build their own stubs libraries - eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" - if test "$GCC" = "yes"; then - PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} - fi - # These aren't needed on Windows (either MSVC or gcc) - RANLIB=: - RANLIB_STUB=: - else - RANLIB_STUB="${RANLIB}" - if test "${SHARED_BUILD}" = "1" ; then - SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" - if test x"${TK_BIN_DIR}" != x ; then - SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" - fi - eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" - RANLIB=: - else - eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" - fi - # Some packages build their own stubs libraries - eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" - fi - - # These are escaped so that only CFLAGS is picked up at configure time. - # The other values will be substituted at make time. - CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" - if test "${SHARED_BUILD}" = "1" ; then - CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" - fi - - AC_SUBST(MAKE_LIB) - AC_SUBST(MAKE_SHARED_LIB) - AC_SUBST(MAKE_STATIC_LIB) - AC_SUBST(MAKE_STUB_LIB) - AC_SUBST(RANLIB_STUB) - AC_SUBST(VC_MANIFEST_EMBED_DLL) - AC_SUBST(VC_MANIFEST_EMBED_EXE) -]) - -#------------------------------------------------------------------------ -# TEA_LIB_SPEC -- -# -# Compute the name of an existing object library located in libdir -# from the given base name and produce the appropriate linker flags. -# -# Arguments: -# basename The base name of the library without version -# numbers, extensions, or "lib" prefixes. -# extra_dir Extra directory in which to search for the -# library. This location is used first, then -# $prefix/$exec-prefix, then some defaults. -# -# Requires: -# TEA_INIT and TEA_PREFIX must be called first. -# -# Results: -# -# Defines the following vars: -# ${basename}_LIB_NAME The computed library name. -# ${basename}_LIB_SPEC The computed linker flags. -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_LIB_SPEC], [ - AC_MSG_CHECKING([for $1 library]) - - # Look in exec-prefix for the library (defined by TEA_PREFIX). - - tea_lib_name_dir="${exec_prefix}/lib" - - # Or in a user-specified location. - - if test x"$2" != x ; then - tea_extra_lib_dir=$2 - else - tea_extra_lib_dir=NONE - fi - - for i in \ - `ls -dr ${tea_extra_lib_dir}/$1[[0-9]]*.lib 2>/dev/null ` \ - `ls -dr ${tea_extra_lib_dir}/lib$1[[0-9]]* 2>/dev/null ` \ - `ls -dr ${tea_lib_name_dir}/$1[[0-9]]*.lib 2>/dev/null ` \ - `ls -dr ${tea_lib_name_dir}/lib$1[[0-9]]* 2>/dev/null ` \ - `ls -dr /usr/lib/$1[[0-9]]*.lib 2>/dev/null ` \ - `ls -dr /usr/lib/lib$1[[0-9]]* 2>/dev/null ` \ - `ls -dr /usr/lib64/$1[[0-9]]*.lib 2>/dev/null ` \ - `ls -dr /usr/lib64/lib$1[[0-9]]* 2>/dev/null ` \ - `ls -dr /usr/local/lib/$1[[0-9]]*.lib 2>/dev/null ` \ - `ls -dr /usr/local/lib/lib$1[[0-9]]* 2>/dev/null ` ; do - if test -f "$i" ; then - tea_lib_name_dir=`dirname $i` - $1_LIB_NAME=`basename $i` - $1_LIB_PATH_NAME=$i - break - fi - done - - if test "${TEA_PLATFORM}" = "windows"; then - $1_LIB_SPEC=\"`${CYGPATH} ${$1_LIB_PATH_NAME} 2>/dev/null`\" - else - # Strip off the leading "lib" and trailing ".a" or ".so" - - tea_lib_name_lib=`echo ${$1_LIB_NAME}|sed -e 's/^lib//' -e 's/\.[[^.]]*$//' -e 's/\.so.*//'` - $1_LIB_SPEC="-L${tea_lib_name_dir} -l${tea_lib_name_lib}" - fi - - if test "x${$1_LIB_NAME}" = x ; then - AC_MSG_ERROR([not found]) - else - AC_MSG_RESULT([${$1_LIB_SPEC}]) - fi -]) - -#------------------------------------------------------------------------ -# TEA_PRIVATE_TCL_HEADERS -- -# -# Locate the private Tcl include files -# -# Arguments: -# -# Requires: -# TCL_SRC_DIR Assumes that TEA_LOAD_TCLCONFIG has -# already been called. -# -# Results: -# -# Substs the following vars: -# TCL_TOP_DIR_NATIVE -# TCL_INCLUDES -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PRIVATE_TCL_HEADERS], [ - # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} - AC_REQUIRE([TEA_PUBLIC_TCL_HEADERS]) - AC_MSG_CHECKING([for Tcl private include files]) - - TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` - TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" - - # Check to see if tclPort.h isn't already with the public headers - # Don't look for tclInt.h because that resides with tcl.h in the core - # sources, but the Port headers are in a different directory - if test "${TEA_PLATFORM}" = "windows" -a \ - -f "${ac_cv_c_tclh}/tclWinPort.h"; then - result="private headers found with public headers" - elif test "${TEA_PLATFORM}" = "unix" -a \ - -f "${ac_cv_c_tclh}/tclUnixPort.h"; then - result="private headers found with public headers" - else - TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" - if test "${TEA_PLATFORM}" = "windows"; then - TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" - else - TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" - fi - # Overwrite the previous TCL_INCLUDES as this should capture both - # public and private headers in the same set. - # We want to ensure these are substituted so as not to require - # any *_NATIVE vars be defined in the Makefile - TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" - if test "`uname -s`" = "Darwin"; then - # If Tcl was built as a framework, attempt to use - # the framework's Headers and PrivateHeaders directories - case ${TCL_DEFS} in - *TCL_FRAMEWORK*) - if test -d "${TCL_BIN_DIR}/Headers" -a \ - -d "${TCL_BIN_DIR}/PrivateHeaders"; then - TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" - else - TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" - fi - ;; - esac - result="Using ${TCL_INCLUDES}" - else - if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then - AC_MSG_ERROR([Cannot find private header tclInt.h in ${TCL_SRC_DIR}]) - fi - result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" - fi - fi - - AC_SUBST(TCL_TOP_DIR_NATIVE) - - AC_SUBST(TCL_INCLUDES) - AC_MSG_RESULT([${result}]) -]) - -#------------------------------------------------------------------------ -# TEA_PUBLIC_TCL_HEADERS -- -# -# Locate the installed public Tcl header files -# -# Arguments: -# None. -# -# Requires: -# CYGPATH must be set -# -# Results: -# -# Adds a --with-tclinclude switch to configure. -# Result is cached. -# -# Substs the following vars: -# TCL_INCLUDES -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PUBLIC_TCL_HEADERS], [ - AC_MSG_CHECKING([for Tcl public headers]) - - AC_ARG_WITH(tclinclude, [ --with-tclinclude directory containing the public Tcl header files], with_tclinclude=${withval}) - - AC_CACHE_VAL(ac_cv_c_tclh, [ - # Use the value from --with-tclinclude, if it was given - - if test x"${with_tclinclude}" != x ; then - if test -f "${with_tclinclude}/tcl.h" ; then - ac_cv_c_tclh=${with_tclinclude} - else - AC_MSG_ERROR([${with_tclinclude} directory does not contain tcl.h]) - fi - else - list="" - if test "`uname -s`" = "Darwin"; then - # If Tcl was built as a framework, attempt to use - # the framework's Headers directory - case ${TCL_DEFS} in - *TCL_FRAMEWORK*) - list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" - ;; - esac - fi - - # Look in the source dir only if Tcl is not installed, - # and in that situation, look there before installed locations. - if test -f "${TCL_BIN_DIR}/Makefile" ; then - list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" - fi - - # Check order: pkg --prefix location, Tcl's --prefix location, - # relative to directory of tclConfig.sh. - - eval "temp_includedir=${includedir}" - list="$list \ - `ls -d ${temp_includedir} 2>/dev/null` \ - `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ - `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" - if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then - list="$list /usr/local/include /usr/include" - if test x"${TCL_INCLUDE_SPEC}" != x ; then - d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` - list="$list `ls -d ${d} 2>/dev/null`" - fi - fi - for i in $list ; do - if test -f "$i/tcl.h" ; then - ac_cv_c_tclh=$i - break - fi - done - fi - ]) - - # Print a message based on how we determined the include path - - if test x"${ac_cv_c_tclh}" = x ; then - AC_MSG_ERROR([tcl.h not found. Please specify its location with --with-tclinclude]) - else - AC_MSG_RESULT([${ac_cv_c_tclh}]) - fi - - # Convert to a native path and substitute into the output files. - - INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` - - TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" - - AC_SUBST(TCL_INCLUDES) -]) - -#------------------------------------------------------------------------ -# TEA_PRIVATE_TK_HEADERS -- -# -# Locate the private Tk include files -# -# Arguments: -# -# Requires: -# TK_SRC_DIR Assumes that TEA_LOAD_TKCONFIG has -# already been called. -# -# Results: -# -# Substs the following vars: -# TK_INCLUDES -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PRIVATE_TK_HEADERS], [ - # Allow for --with-tkinclude to take effect and define ${ac_cv_c_tkh} - AC_REQUIRE([TEA_PUBLIC_TK_HEADERS]) - AC_MSG_CHECKING([for Tk private include files]) - - TK_SRC_DIR_NATIVE=`${CYGPATH} ${TK_SRC_DIR}` - TK_TOP_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}\" - - # Check to see if tkPort.h isn't already with the public headers - # Don't look for tkInt.h because that resides with tk.h in the core - # sources, but the Port headers are in a different directory - if test "${TEA_PLATFORM}" = "windows" -a \ - -f "${ac_cv_c_tkh}/tkWinPort.h"; then - result="private headers found with public headers" - elif test "${TEA_PLATFORM}" = "unix" -a \ - -f "${ac_cv_c_tkh}/tkUnixPort.h"; then - result="private headers found with public headers" - else - TK_GENERIC_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/generic\" - TK_XLIB_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/xlib\" - if test "${TEA_PLATFORM}" = "windows"; then - TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/win\" - else - TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/unix\" - fi - # Overwrite the previous TK_INCLUDES as this should capture both - # public and private headers in the same set. - # We want to ensure these are substituted so as not to require - # any *_NATIVE vars be defined in the Makefile - TK_INCLUDES="-I${TK_GENERIC_DIR_NATIVE} -I${TK_PLATFORM_DIR_NATIVE}" - # Detect and add ttk subdir - if test -d "${TK_SRC_DIR}/generic/ttk"; then - TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/generic/ttk\"" - fi - if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then - TK_INCLUDES="${TK_INCLUDES} -I\"${TK_XLIB_DIR_NATIVE}\"" - fi - if test "${TEA_WINDOWINGSYSTEM}" = "aqua"; then - TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/macosx\"" - fi - if test "`uname -s`" = "Darwin"; then - # If Tk was built as a framework, attempt to use - # the framework's Headers and PrivateHeaders directories - case ${TK_DEFS} in - *TK_FRAMEWORK*) - if test -d "${TK_BIN_DIR}/Headers" -a \ - -d "${TK_BIN_DIR}/PrivateHeaders"; then - TK_INCLUDES="-I\"${TK_BIN_DIR}/Headers\" -I\"${TK_BIN_DIR}/PrivateHeaders\" ${TK_INCLUDES}" - else - TK_INCLUDES="${TK_INCLUDES} ${TK_INCLUDE_SPEC} `echo "${TK_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" - fi - ;; - esac - result="Using ${TK_INCLUDES}" - else - if test ! -f "${TK_SRC_DIR}/generic/tkInt.h" ; then - AC_MSG_ERROR([Cannot find private header tkInt.h in ${TK_SRC_DIR}]) - fi - result="Using srcdir found in tkConfig.sh: ${TK_SRC_DIR}" - fi - fi - - AC_SUBST(TK_TOP_DIR_NATIVE) - AC_SUBST(TK_XLIB_DIR_NATIVE) - - AC_SUBST(TK_INCLUDES) - AC_MSG_RESULT([${result}]) -]) - -#------------------------------------------------------------------------ -# TEA_PUBLIC_TK_HEADERS -- -# -# Locate the installed public Tk header files -# -# Arguments: -# None. -# -# Requires: -# CYGPATH must be set -# -# Results: -# -# Adds a --with-tkinclude switch to configure. -# Result is cached. -# -# Substs the following vars: -# TK_INCLUDES -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PUBLIC_TK_HEADERS], [ - AC_MSG_CHECKING([for Tk public headers]) - - AC_ARG_WITH(tkinclude, [ --with-tkinclude directory containing the public Tk header files], with_tkinclude=${withval}) - - AC_CACHE_VAL(ac_cv_c_tkh, [ - # Use the value from --with-tkinclude, if it was given - - if test x"${with_tkinclude}" != x ; then - if test -f "${with_tkinclude}/tk.h" ; then - ac_cv_c_tkh=${with_tkinclude} - else - AC_MSG_ERROR([${with_tkinclude} directory does not contain tk.h]) - fi - else - list="" - if test "`uname -s`" = "Darwin"; then - # If Tk was built as a framework, attempt to use - # the framework's Headers directory. - case ${TK_DEFS} in - *TK_FRAMEWORK*) - list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" - ;; - esac - fi - - # Look in the source dir only if Tk is not installed, - # and in that situation, look there before installed locations. - if test -f "${TK_BIN_DIR}/Makefile" ; then - list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" - fi - - # Check order: pkg --prefix location, Tk's --prefix location, - # relative to directory of tkConfig.sh, Tcl's --prefix location, - # relative to directory of tclConfig.sh. - - eval "temp_includedir=${includedir}" - list="$list \ - `ls -d ${temp_includedir} 2>/dev/null` \ - `ls -d ${TK_PREFIX}/include 2>/dev/null` \ - `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ - `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ - `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" - if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then - list="$list /usr/local/include /usr/include" - if test x"${TK_INCLUDE_SPEC}" != x ; then - d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` - list="$list `ls -d ${d} 2>/dev/null`" - fi - fi - for i in $list ; do - if test -f "$i/tk.h" ; then - ac_cv_c_tkh=$i - break - fi - done - fi - ]) - - # Print a message based on how we determined the include path - - if test x"${ac_cv_c_tkh}" = x ; then - AC_MSG_ERROR([tk.h not found. Please specify its location with --with-tkinclude]) - else - AC_MSG_RESULT([${ac_cv_c_tkh}]) - fi - - # Convert to a native path and substitute into the output files. - - INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` - - TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" - - AC_SUBST(TK_INCLUDES) - - if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then - # On Windows and Aqua, we need the X compat headers - AC_MSG_CHECKING([for X11 header files]) - if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then - INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" - TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" - AC_SUBST(TK_XINCLUDES) - fi - AC_MSG_RESULT([${INCLUDE_DIR_NATIVE}]) - fi -]) - -#------------------------------------------------------------------------ -# TEA_PATH_CONFIG -- -# -# Locate the ${1}Config.sh file and perform a sanity check on -# the ${1} compile flags. These are used by packages like -# [incr Tk] that load *Config.sh files from more than Tcl and Tk. -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --with-$1=... -# -# Defines the following vars: -# $1_BIN_DIR Full path to the directory containing -# the $1Config.sh file -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PATH_CONFIG], [ - # - # Ok, lets find the $1 configuration - # First, look for one uninstalled. - # the alternative search directory is invoked by --with-$1 - # - - if test x"${no_$1}" = x ; then - # we reset no_$1 in case something fails here - no_$1=true - AC_ARG_WITH($1, [ --with-$1 directory containing $1 configuration ($1Config.sh)], with_$1config=${withval}) - AC_MSG_CHECKING([for $1 configuration]) - AC_CACHE_VAL(ac_cv_c_$1config,[ - - # First check to see if --with-$1 was specified. - if test x"${with_$1config}" != x ; then - case ${with_$1config} in - */$1Config.sh ) - if test -f ${with_$1config}; then - AC_MSG_WARN([--with-$1 argument should refer to directory containing $1Config.sh, not to $1Config.sh itself]) - with_$1config=`echo ${with_$1config} | sed 's!/$1Config\.sh$!!'` - fi;; - esac - if test -f "${with_$1config}/$1Config.sh" ; then - ac_cv_c_$1config=`(cd ${with_$1config}; pwd)` - else - AC_MSG_ERROR([${with_$1config} directory doesn't contain $1Config.sh]) - fi - fi - - # then check for a private $1 installation - if test x"${ac_cv_c_$1config}" = x ; then - for i in \ - ../$1 \ - `ls -dr ../$1*[[0-9]].[[0-9]]*.[[0-9]]* 2>/dev/null` \ - `ls -dr ../$1*[[0-9]].[[0-9]][[0-9]] 2>/dev/null` \ - `ls -dr ../$1*[[0-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../$1*[[0-9]].[[0-9]]* 2>/dev/null` \ - ../../$1 \ - `ls -dr ../../$1*[[0-9]].[[0-9]]*.[[0-9]]* 2>/dev/null` \ - `ls -dr ../../$1*[[0-9]].[[0-9]][[0-9]] 2>/dev/null` \ - `ls -dr ../../$1*[[0-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../../$1*[[0-9]].[[0-9]]* 2>/dev/null` \ - ../../../$1 \ - `ls -dr ../../../$1*[[0-9]].[[0-9]]*.[[0-9]]* 2>/dev/null` \ - `ls -dr ../../../$1*[[0-9]].[[0-9]][[0-9]] 2>/dev/null` \ - `ls -dr ../../../$1*[[0-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ../../../$1*[[0-9]].[[0-9]]* 2>/dev/null` \ - ${srcdir}/../$1 \ - `ls -dr ${srcdir}/../$1*[[0-9]].[[0-9]]*.[[0-9]]* 2>/dev/null` \ - `ls -dr ${srcdir}/../$1*[[0-9]].[[0-9]][[0-9]] 2>/dev/null` \ - `ls -dr ${srcdir}/../$1*[[0-9]].[[0-9]] 2>/dev/null` \ - `ls -dr ${srcdir}/../$1*[[0-9]].[[0-9]]* 2>/dev/null` \ - ; do - if test -f "$i/$1Config.sh" ; then - ac_cv_c_$1config=`(cd $i; pwd)` - break - fi - if test -f "$i/unix/$1Config.sh" ; then - ac_cv_c_$1config=`(cd $i/unix; pwd)` - break - fi - done - fi - - # check in a few common install locations - if test x"${ac_cv_c_$1config}" = x ; then - for i in `ls -d ${libdir} 2>/dev/null` \ - `ls -d ${exec_prefix}/lib 2>/dev/null` \ - `ls -d ${prefix}/lib 2>/dev/null` \ - `ls -d /usr/local/lib 2>/dev/null` \ - `ls -d /usr/contrib/lib 2>/dev/null` \ - `ls -d /usr/lib 2>/dev/null` \ - `ls -d /usr/lib64 2>/dev/null` \ - ; do - if test -f "$i/$1Config.sh" ; then - ac_cv_c_$1config=`(cd $i; pwd)` - break - fi - done - fi - ]) - - if test x"${ac_cv_c_$1config}" = x ; then - $1_BIN_DIR="# no $1 configs found" - AC_MSG_WARN([Cannot find $1 configuration definitions]) - exit 0 - else - no_$1= - $1_BIN_DIR=${ac_cv_c_$1config} - AC_MSG_RESULT([found $$1_BIN_DIR/$1Config.sh]) - fi - fi -]) - -#------------------------------------------------------------------------ -# TEA_LOAD_CONFIG -- -# -# Load the $1Config.sh file -# -# Arguments: -# -# Requires the following vars to be set: -# $1_BIN_DIR -# -# Results: -# -# Subst the following vars: -# $1_SRC_DIR -# $1_LIB_FILE -# $1_LIB_SPEC -# -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_LOAD_CONFIG], [ - AC_MSG_CHECKING([for existence of ${$1_BIN_DIR}/$1Config.sh]) - - if test -f "${$1_BIN_DIR}/$1Config.sh" ; then - AC_MSG_RESULT([loading]) - . "${$1_BIN_DIR}/$1Config.sh" - else - AC_MSG_RESULT([file not found]) - fi - - # - # If the $1_BIN_DIR is the build directory (not the install directory), - # then set the common variable name to the value of the build variables. - # For example, the variable $1_LIB_SPEC will be set to the value - # of $1_BUILD_LIB_SPEC. An extension should make use of $1_LIB_SPEC - # instead of $1_BUILD_LIB_SPEC since it will work with both an - # installed and uninstalled version of Tcl. - # - - if test -f "${$1_BIN_DIR}/Makefile" ; then - AC_MSG_WARN([Found Makefile - using build library specs for $1]) - $1_LIB_SPEC=${$1_BUILD_LIB_SPEC} - $1_STUB_LIB_SPEC=${$1_BUILD_STUB_LIB_SPEC} - $1_STUB_LIB_PATH=${$1_BUILD_STUB_LIB_PATH} - $1_INCLUDE_SPEC=${$1_BUILD_INCLUDE_SPEC} - $1_LIBRARY_PATH=${$1_LIBRARY_PATH} - fi - - AC_SUBST($1_VERSION) - AC_SUBST($1_BIN_DIR) - AC_SUBST($1_SRC_DIR) - - AC_SUBST($1_LIB_FILE) - AC_SUBST($1_LIB_SPEC) - - AC_SUBST($1_STUB_LIB_FILE) - AC_SUBST($1_STUB_LIB_SPEC) - AC_SUBST($1_STUB_LIB_PATH) - - # Allow the caller to prevent this auto-check by specifying any 2nd arg - AS_IF([test "x$2" = x], [ - # Check both upper and lower-case variants - # If a dev wanted non-stubs libs, this function could take an option - # to not use _STUB in the paths below - AS_IF([test "x${$1_STUB_LIB_SPEC}" = x], - [TEA_LOAD_CONFIG_LIB(translit($1,[a-z],[A-Z])_STUB)], - [TEA_LOAD_CONFIG_LIB($1_STUB)]) - ]) -]) - -#------------------------------------------------------------------------ -# TEA_LOAD_CONFIG_LIB -- -# -# Helper function to load correct library from another extension's -# ${PACKAGE}Config.sh. -# -# Results: -# Adds to LIBS the appropriate extension library -# -#------------------------------------------------------------------------ -AC_DEFUN([TEA_LOAD_CONFIG_LIB], [ - AC_MSG_CHECKING([For $1 library for LIBS]) - # This simplifies the use of stub libraries by automatically adding - # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, - # but this is called before CONFIG_CFLAGS. More importantly, this adds - # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. - if test "x${$1_LIB_SPEC}" != "x" ; then - if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then - TEA_ADD_LIBS([\"`${CYGPATH} ${$1_LIB_PATH}`\"]) - AC_MSG_RESULT([using $1_LIB_PATH ${$1_LIB_PATH}]) - else - TEA_ADD_LIBS([${$1_LIB_SPEC}]) - AC_MSG_RESULT([using $1_LIB_SPEC ${$1_LIB_SPEC}]) - fi - else - AC_MSG_RESULT([file not found]) - fi -]) - -#------------------------------------------------------------------------ -# TEA_EXPORT_CONFIG -- -# -# Define the data to insert into the ${PACKAGE}Config.sh file -# -# Arguments: -# -# Requires the following vars to be set: -# $1 -# -# Results: -# Subst the following vars: -# -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_EXPORT_CONFIG], [ - #-------------------------------------------------------------------- - # These are for $1Config.sh - #-------------------------------------------------------------------- - - # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib) - eval pkglibdir="[$]{libdir}/$1${PACKAGE_VERSION}" - if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then - eval $1_LIB_FLAG="-l$1${PACKAGE_VERSION}${DBGX}" - eval $1_STUB_LIB_FLAG="-l$1stub${PACKAGE_VERSION}${DBGX}" - else - eval $1_LIB_FLAG="-l$1`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" - eval $1_STUB_LIB_FLAG="-l$1stub`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" - fi - $1_BUILD_LIB_SPEC="-L`pwd` ${$1_LIB_FLAG}" - $1_LIB_SPEC="-L${pkglibdir} ${$1_LIB_FLAG}" - $1_BUILD_STUB_LIB_SPEC="-L`pwd` [$]{$1_STUB_LIB_FLAG}" - $1_STUB_LIB_SPEC="-L${pkglibdir} [$]{$1_STUB_LIB_FLAG}" - $1_BUILD_STUB_LIB_PATH="`pwd`/[$]{PKG_STUB_LIB_FILE}" - $1_STUB_LIB_PATH="${pkglibdir}/[$]{PKG_STUB_LIB_FILE}" - - AC_SUBST($1_BUILD_LIB_SPEC) - AC_SUBST($1_LIB_SPEC) - AC_SUBST($1_BUILD_STUB_LIB_SPEC) - AC_SUBST($1_STUB_LIB_SPEC) - AC_SUBST($1_BUILD_STUB_LIB_PATH) - AC_SUBST($1_STUB_LIB_PATH) - - AC_SUBST(MAJOR_VERSION) - AC_SUBST(MINOR_VERSION) - AC_SUBST(PATCHLEVEL) -]) - - -#------------------------------------------------------------------------ -# TEA_PATH_CELIB -- -# -# Locate Keuchel's celib emulation layer for targeting Win/CE -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --with-celib=... -# -# Defines the following vars: -# CELIB_DIR Full path to the directory containing -# the include and platform lib files -#------------------------------------------------------------------------ - -AC_DEFUN([TEA_PATH_CELIB], [ - # First, look for one uninstalled. - # the alternative search directory is invoked by --with-celib - - if test x"${no_celib}" = x ; then - # we reset no_celib in case something fails here - no_celib=true - AC_ARG_WITH(celib,[ --with-celib=DIR use Windows/CE support library from DIR], with_celibconfig=${withval}) - AC_MSG_CHECKING([for Windows/CE celib directory]) - AC_CACHE_VAL(ac_cv_c_celibconfig,[ - # First check to see if --with-celibconfig was specified. - if test x"${with_celibconfig}" != x ; then - if test -d "${with_celibconfig}/inc" ; then - ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` - else - AC_MSG_ERROR([${with_celibconfig} directory doesn't contain inc directory]) - fi - fi - - # then check for a celib library - if test x"${ac_cv_c_celibconfig}" = x ; then - for i in \ - ../celib-palm-3.0 \ - ../celib \ - ../../celib-palm-3.0 \ - ../../celib \ - `ls -dr ../celib-*3.[[0-9]]* 2>/dev/null` \ - ${srcdir}/../celib-palm-3.0 \ - ${srcdir}/../celib \ - `ls -dr ${srcdir}/../celib-*3.[[0-9]]* 2>/dev/null` \ - ; do - if test -d "$i/inc" ; then - ac_cv_c_celibconfig=`(cd $i; pwd)` - break - fi - done - fi - ]) - if test x"${ac_cv_c_celibconfig}" = x ; then - AC_MSG_ERROR([Cannot find celib support library directory]) - else - no_celib= - CELIB_DIR=${ac_cv_c_celibconfig} - CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` - AC_MSG_RESULT([found $CELIB_DIR]) - fi - fi -]) - - -# Local Variables: -# mode: autoconf -# End: diff --git a/ng/Makefile.am b/ng/Makefile.am deleted file mode 100644 index 83fc17e9..00000000 --- a/ng/Makefile.am +++ /dev/null @@ -1,85 +0,0 @@ - -include_HEADERS = - -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include -DOPENGL -D$(TOGL_WINDOWINGSYSTEM) $(TCL_INCLUDES) $(MPI_INCLUDES) $(FFMPEG_INCLUDES) $(JPEGLIB_INCLUDES) - -# SUBDIRS = Togl-1.7 - -if NGGUI -bin_PROGRAMS = netgen -endif - -netgen_SOURCES = demoview.cpp ngappinit.cpp onetcl.cpp parallelfunc.cpp ngpkg.cpp demoview.hpp parallelfunc.hpp togl_1_7.h -# nginterface.cpp nginterface_v2.cpp - - -if NGMKL -AM_CPPFLAGS += -DLINKMKL -MKL_LIBS = -L$(MKLROOT)/lib/intel64 -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lmkl_def -endif -# -lpardiso500-GNU472-X86-64 -lgfortran - -netgen_LDADD = $(top_builddir)/libsrc/visualization/libvisual.la \ - $(top_builddir)/libsrc/csg/libcsgvis.la \ - $(top_builddir)/libsrc/csg/libcsg.la \ - $(top_builddir)/libsrc/stlgeom/libstlvis.la \ - $(top_builddir)/libsrc/stlgeom/libstl.la \ - $(top_builddir)/libsrc/geom2d/libgeom2d.la \ - $(top_builddir)/libsrc/geom2d/libgeom2dvis.la \ - $(top_builddir)/libsrc/interface/libinterface.la \ - $(top_builddir)/libsrc/meshing/libmesh.la \ - -L$(TK_BIN_DIR)/../Togl1.7 -lTogl1.7 $(TOGLLIBDIR) $(LIBGLU) $(TK_LIB_SPEC) $(TCL_LIB_SPEC) $(MPI_LIBS) $(FFMPEG_LIBS) $(JPEGLIB_LIBS) $(PKG_LIBS) $(MKL_LIBS) -# -lTogl1.7 - -# -# $(top_builddir)/libsrc/occ/liboccvis.la -# $(top_builddir)/libsrc/occ/libocc.la -# $(top_builddir)/libsrc/stlgeom/libstlvis.la -# $(top_builddir)/libsrc/stlgeom/libstl.la -# $(top_builddir)/libsrc/geom2d/libgeom2d.la -# $(top_builddir)/libsrc/geom2d/libgeom2dvis.la - - -# add for static linkage of ngsolve: -# /opt/netgen/lib/libngsolve.a /opt/netgen/lib/libngcomp.a /opt/netgen/lib/libngcomp.a /opt/netgen/lib/libngfemng.a /opt/netgen/lib/libngmg.a /opt/netgen/lib/libngla.a /opt/netgen/lib/libngbla.a /opt/netgen/lib/libngstd.a -L/opt/intel/mkl/10.2.1.017/lib/em64t /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_solver_lp64.a -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -# -# - - - -lib_LTLIBRARIES = libngpy.la -libngpy_la_SOURCES = netgenpy.cpp -libngpy_la_LDFLAGS = -avoid-version -module - -libngpy_la_LIBADD = $(top_builddir)/libsrc/visualization/libvisual.la \ - $(top_builddir)/libsrc/csg/libcsg.la \ - $(top_builddir)/libsrc/stlgeom/libstl.la \ - $(top_builddir)/libsrc/geom2d/libgeom2d.la \ - $(top_builddir)/libsrc/interface/libinterface.la \ - $(top_builddir)/libsrc/meshing/libmesh.la - - - -dist_bin_SCRIPTS = dialog.tcl menustat.tcl ngicon.tcl ng.tcl \ -ngvisual.tcl sockets.tcl drawing.tcl nghelp.tcl ngshell.tcl \ -ngtesting.tcl parameters.tcl variables.tcl csgeom.tcl stlgeom.tcl \ -occgeom.tcl acisgeom.tcl netgen.ocf - - -netgen_LDFLAGS = -export-dynamic - -# if NGPYTHON -# AM_CPPFLAGS += -I/usr/include/python3.4 -DNGPYTHON -# netgen_LDFLAGS += -lboost_python-py34 -lpython3.4m -# netgen_LDFLAGS += -lpython3.4m -# netgen_LDFLAGS += -lboost_python-py32 -lpython3.2mu -# endif - - -# netgen_LDFLAGS = -rdynamic -# -static - -# netgen_LDFLAGS += -rdynamic - - - diff --git a/nglib/Makefile.am b/nglib/Makefile.am deleted file mode 100644 index f4ebb9f3..00000000 --- a/nglib/Makefile.am +++ /dev/null @@ -1,52 +0,0 @@ -include_HEADERS = nglib.h - -dist_pkgdata_DATA = cube.surf - -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(MPI_INCLUDES) $(OCCFLAGS) - -lib_LTLIBRARIES = libnglib.la -libnglib_la_SOURCES = nglib.cpp - -libnglib_la_LIBADD = \ - $(top_builddir)/libsrc/interface/libinterface.la \ - $(top_builddir)/libsrc/geom2d/libgeom2d.la \ - $(top_builddir)/libsrc/csg/libcsg.la \ - $(top_builddir)/libsrc/stlgeom/libstl.la \ - $(top_builddir)/libsrc/occ/libocc.la \ - $(top_builddir)/libsrc/meshing/libmesh.la \ - $(OCCLIBS) $(MPI_LIBS) - -libnglib_la_LDFLAGS = -avoid-version -# -rdynamic - - -bin_PROGRAMS = ng_vol ng_stl -# ng_occ - -ng_vol_SOURCES = ng_vol.cpp -ng_vol_LDADD = libnglib.la \ - $(top_builddir)/libsrc/interface/libinterface.la \ - $(top_builddir)/libsrc/geom2d/libgeom2d.la \ - $(top_builddir)/libsrc/csg/libcsg.la \ - $(top_builddir)/libsrc/stlgeom/libstl.la \ - $(top_builddir)/libsrc/occ/libocc.la \ - $(top_builddir)/libsrc/meshing/libmesh.la \ - $(OCCLIBS) $(MPI_LIBS) - - - -ng_stl_SOURCES = ng_stl.cpp -ng_stl_LDADD = libnglib.la \ - $(top_builddir)/libsrc/interface/libinterface.la \ - $(top_builddir)/libsrc/geom2d/libgeom2d.la \ - $(top_builddir)/libsrc/csg/libcsg.la \ - $(top_builddir)/libsrc/stlgeom/libstl.la \ - $(top_builddir)/libsrc/occ/libocc.la \ - $(top_builddir)/libsrc/meshing/libmesh.la \ - $(OCCLIBS) $(MPI_LIBS) - -# ng_occ_SOURCES = ng_occ.cpp -# ng_occ_LDADD = libnglib.la - -dist_bin_SCRIPTS = netgen.py - diff --git a/py_tutorials/Makefile.am b/py_tutorials/Makefile.am deleted file mode 100644 index 99952038..00000000 --- a/py_tutorials/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -METASOURCES = AUTO - -dist_pkgdata_DATA = shaft.geo mesh.py exportNeutral.py - diff --git a/python/Makefile.am b/python/Makefile.am deleted file mode 100644 index 640e7162..00000000 --- a/python/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -python_PYTHON = __init__.py meshing.py csg.py geom2d.py - - - diff --git a/tutorials/Makefile.am b/tutorials/Makefile.am deleted file mode 100644 index 1e8db8e8..00000000 --- a/tutorials/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -AM_CPPFLAGS = -METASOURCES = AUTO -dist_pkgdata_DATA = boxcyl.geo circle_on_cube.geo cone.geo cube.geo \ - cubeandring.geo cubeandspheres.geo cubemcyl.geo cubemsphere.geo cylinder.geo \ - cylsphere.geo ellipsoid.geo ellipticcyl.geo extrusion.geo fichera.geo lshape3d.geo \ - manyholes.geo manyholes2.geo matrix.geo ortho.geo period.geo revolution.geo \ - sculpture.geo shaft.geo shell.geo sphere.geo sphereincube.geo torus.geo trafo.geo \ - twobricks.geo twocubes.geo twocyl.geo boundarycondition.geo \ - hinge.stl part1.stl frame.step screw.step \ - squarehole.in2d squarecircle.in2d square.in2d - diff --git a/windows/Makefile.am b/windows/Makefile.am deleted file mode 100644 index 05a7a796..00000000 --- a/windows/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -dist_noinst_DATA = netgen.sln netgen.vcxproj netgenlib.vcxproj netgenpy.vcxproj resource.h \ -postBuild_netgen.bat nglib.sln nglib.vcxproj \ -postBuild_nglib.bat netgen.ico netgen.rc diff --git a/windows/Netgen_Installer/LGPL_Licenses/LGPL_English.txt b/windows/Netgen_Installer/LGPL_Licenses/LGPL_English.txt deleted file mode 100644 index 27fa5a1a..00000000 --- a/windows/Netgen_Installer/LGPL_Licenses/LGPL_English.txt +++ /dev/null @@ -1,502 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! \ No newline at end of file diff --git a/windows/Netgen_Installer/LGPL_Licenses/LGPL_French.txt b/windows/Netgen_Installer/LGPL_Licenses/LGPL_French.txt deleted file mode 100644 index 3678405f..00000000 --- a/windows/Netgen_Installer/LGPL_Licenses/LGPL_French.txt +++ /dev/null @@ -1,1160 +0,0 @@ - LICENCE GÉNÉRALE PUBLIQUE LIMITÉE GNU - (GNU LESSER GENERAL PUBLIC LICENSE) - Version 2.1, février 1999. - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - Chacun est autorisé à copier et distribuer des copies conformes de ce - document de licence, mais toute modification en est proscrite. - -[Ceci est la première version publiée de la « Licence Générale Publique - Limitée » (LGPL). Elle compte en tant que successeur de la « Licence - Générale Publique de Bibliothèque » GNU version 2, d’où le numéro de - version 2.1.] - -Traduction française par Philippe Verdy , -le 25 août 2005 (dernière correction le 8 janvier 2008). - - La présente version corrige quelques fautes mineures de français ou - imprécisions. - -Avertissement important au sujet de cette traduction française. - - Ceci est une traduction en français de la licence “GNU Lesser General - Public License” (alias LGPL). Cette traduction est fournie ici dans - l’espoir qu’elle facilitera sa compréhension, mais elle ne constitue - pas une traduction officielle ou approuvée d’un point de vue juridique. - - La Free Software Foundation (FSF) ne publie pas cette traduction et - ne l’a pas approuvée en tant que substitut valide au plan légal pour - la licence authentique “GNU Lesser General Public Licence”. Cette - traduction n’a pas encore été passée en revue attentivement par un - juriste et donc le traducteur ne peut garantir avec certitude qu’elle - représente avec exactitude la signification légale des termes de la - licence authentique “GNU Lesser General Public License” publiée en - anglais. - - Cette traduction n’établit légalement aucun des termes de distribution - d’un logiciel utilisant la licence GNU LGPL — seul le texte original - en anglais le fait. Si vous souhaitez être sûr que les activités que - vous projetez seront autorisées par la “GNU Lesser General Public - License”, veuillez vous référer à la seule version anglaise - authentique. - - La Free Software Foundation vous recommande fermement de ne pas - utiliser cette traduction en tant que termes officiels pour vos - propres programmes ; veuillez plutôt utiliser la version anglaise - authentique telle que publiée par la Free Software Foundation. - - Si vous choisissez de publier cette traduction de licence en même - temps qu’une bibliothèque sous licence LGPL, cela ne vous dispense - pas de l’obligation de fournir en même temps une copie de la licence - authentique en Anglais, et de conserver cet avertissement important - en Français et sa traduction en Anglais ci-dessous. - -Important Warning About This French Translation. - - This is a translation of the GNU Lesser General Public License into - French. This translation is distributed in the hope that it will - facilitate understanding, but it is not an official or legally - approved translation. - - The Free Software Foundation is not the publisher of this translation - and has not approved it as a legal substitute for the authentic GNU - Lesser General Public License. The translation has not been reviewed - carefully by lawyers, and therefore the translator cannot be sure that - it exactly represents the legal meaning of the authentic GNU Lesser - General Public License published in English. - - This translation does not legally state the distribution terms for - software that uses the GNU LGPL — only the original English text of - the GNU LGPL does that. If you wish to be sure whether your planned - activities are permitted by the GNU Lesser General Public License, - please refer to the authentic English version. - - The Free Software Foundation strongly urges you not to use this - translation as the official distribution terms for your programs; - instead, please use the authentic English version published by the - Free Software Foundation. - - If you choose to publish this translated licence with a library - covered by the LGPL Licence, this does not remove your obligation to - provide at the same time a copy of the authentic LGPL Licence in - English, and you must keep this important warning in English and its - French translation above. - - Préambule - - Les licences de la plupart des logiciels sont conçues pour vous ôter -toute liberté de les partager et de les modifier. À l’opposé, les Licences -Générales Publiques GNU ont pour but de vous garantir votre liberté de -partager et modifier un logiciel libre — pour être sûr que le logiciel -est bien libre pour tous les utilisateurs. - - Cette licence, la « Licence Générale Publique Limitée » (“Lesser -General Public License”), s’applique à certains paquets logiciels désignés -spécifiquement — typiquement des bibliothèques — de la Free Software -Foundation et d’autres auteurs qui décident de l’utiliser. Vous pouvez -l’utiliser aussi, mais nous vous suggérons de considérer d’abord si la -présente licence ou la « Licence Générale Publique GNU » (“GNU General -Public License”) ordinaire est la meilleure stratégie à utiliser dans -chaque cas particulier, suivant les explications données ci-dessous. - - Quand nous parlons de logiciel libre, nous parlons de la liberté de -l’utiliser, pas de son prix. Nos Licences Générales Publiques sont -conçues pour s’assurer que vous disposerez de la liberté de distribuer -des copies du logiciel libre (et de facturer ce service si vous le -désirez) ; que vous recevrez le code source ou pouvez l’obtenir chaque -fois que vous le souhaitez ; que vous pouvez modifier le logiciel et en -utilisez tout ou partie dans de nouveaux programmes libres ; et que vous -êtes informés que vous pouvez faire tout ceci. - - Pour protéger vos droits, nous devons émettre des restrictions qui -interdisent aux distributeurs de vous refuser ces droits ou de vous -demander d’abandonner ces droits. Ces restrictions se traduisent par -certaines responsabilités pour vous si vous distribuez des copies de la -bibliothèque ou si vous la modifiez. - - Par exemple, si vous distribuez des copies de la bibliothèque, que ce -soit à titre gratuit ou contre un paiement, vous devez donner aux -concessionnaires tous les droits que nous vous avons concédés. Si vous -liez d’autres codes avec la bibliothèque, vous devez fournir des fichiers -objets complets aux concessionnaires, de sorte qu’ils peuvent les lier à -nouveau avec la bibliothèque après l’avoir modifiée et recompilée. Et -vous devez leur montrer ces termes de sorte qu’ils puissent connaître -leurs droits. - - Nous protégeons vos droits par une méthode en deux étapes : (1) nous -libellons la Bibliothèque avec une notice de propriété intellectuelle -(“copyright”) et (2) nous vous offrons cette Licence, qui vous donne le -droit de copier, distribuer ou modifier la bibliothèque. - - Pour protéger chaque distributeur, nous voulons établir de façon très -claire qu’il n’y a aucune garantie pour la Bibliothèque libre. Aussi, si -la Bibliothèque est modifiée par quelqu’un d’autre qui la redistribue -ensuite, ses concessionnaires devraient savoir que ce qu’ils ont n’est -pas la version originale, de sorte que la réputation de l’auteur original -ne sera pas affectée à cause de problèmes introduits par d’autres. - - Enfin, les brevets logiciels constituent une menace constante contre -l’existence même de tout logiciel libre. Nous voulons être sûr qu’une -société ne peut pas effectivement restreindre les utilisateurs d’un -programme libre en obtenant une licence restrictive d’un titulaire de -brevet. Par conséquent, nous insistons pour que toute licence de brevet -obtenue pour une version de la Bibliothèque soit cohérente avec sa -pleine liberté d’utilisation spécifiée dans la présente Licence. - - La plupart des logiciels GNU, y compris certaines bibliothèques, sont -couverts par la « Licence Générale Publique GNU » (“GNU General Public -License”). La présente licence s’applique à certaines bibliothèques -désignées et est assez différente de la « Licence Générale Publique ». -Nous utilisons la présente licence pour certaines bibliothèques afin de -permettre de lier ces bibliothèques, sous certaines conditions, à des -programmes non libres. - - Quand un programme est lié avec une bibliothèque, que ce soit -statiquement ou avec une bibliothèque partagée, la combinaison des deux -constitue, en termes légaux, un « travail combiné », un « dérivé » de la -bibliothèque originale. Il s’ensuit que la « Licence Générale Publique » -ordinaire ne permet une telle liaison que si l’entière combinaison -remplie ses critères et conditions de liberté. La « Licence Générale -Publique Limitée » permet de desserrer les critères permettant de lier -d’autres codes avec la bibliothèque. - - Nous appelons cette licence la Licence Générale Publique « Limitée » -(“Lesser” General Public License) car elle offre en fait une protection -plus limitée de la liberté de l’utilisateur que celle offerte par la -« Licence Générale Publique » ordinaire. Elle offre aux autres -développeurs de logiciels libres un avantage plus limité face aux -programmes concurrents non libres. Ces désavantages sont la raison pour -laquelle nous utilisons la « Licence Générale Publique » ordinaire pour -de nombreuses bibliothèques. Cependant la licence limitée offre des -avantages dans certaines circonstances spéciales. - - Par exemple, en de rares occasions, il peut exister le besoin -particulier d’encourager l’utilisation la plus large possible d’une -certaine bibliothèque, afin qu’elle devienne un standard de facto. Pour -parvenir à cette fin, des programmes non libres doivent pouvoir être -autorisés à utiliser la bibliothèque. Un cas plus fréquent est qu’une -bibliothèque libre effectue les mêmes tâches que des bibliothèques non -libres largement utilisées. Dans ce cas, il n’y a pas grand chose à gagner -à limiter la bibliothèque libre aux seuls logiciels libres, aussi nous -utilisons la Licence Générale Publique Limitée. - - Dans d’autres cas, l’autorisation d’utiliser une bibliothèque -particulière dans des programmes non libres permet à un plus grand nombre -de personnes d’utiliser un corpus très large de logiciels libres. Par -exemple, l’autorisation d’utiliser la bibliothèque C GNU dans des programmes -non libres permet à plus de personnes d’utiliser le système d’exploitation -GNU tout entier, de même que sa variante, le système d’exploitation -GNU/Linux. - - Bien que la « Licence Générale Publique Limitée » semble limiter la -protection de la liberté de l’utilisateur, elle assure que l’utilisateur -d’un programme lié avec la bibliothèque dispose de la liberté et du choix -d’exécuter ce programme en utilisant une version modifiée de la -bibliothèque. - - Les termes et conditions précis concernant la copie, la distribution et -la modification suivent. Prenez une attention tout particulière aux -différences entre un « travail basé sur la Bibliothèque » et un « travail -utilisant la Bibliothèque ». Le premier contient du code dérivé de la -bibliothèque, tandis que le second doit être combiné avec la bibliothèque -afin de pouvoir être exécuté. - - LICENCE GÉNÉRALE PUBLIQUE LIMITÉE GNU - TERMES ET CONDITIONS CONCERNANT LA COPIE, LA DISTRIBUTION - ET LA MODIFICATION - - 0. Cet Accord de Licence s’applique à toute bibliothèque logicielle ou -tout programme contenant une notice placée par le titulaire de la -réservation de droits (“copyright”) ou toute autre partie autorisée -indiquant que ce logiciel peut être distribué suivant les termes de cette -Licence Générale Publique Limitée (appelée ci-dessous « cette Licence »). -Chacun des concessionnaires de cette Licence sera désigné en tant que -« Vous ». - - Une « bibliothèque » signifie une collection de fonctions logicielles -ou de données préparées de façon à être liée facilement à des programmes -applicatifs (utilisant tout ou partie de ces fonctions et données) afin -de former des exécutables. - - La « Bibliothèque », ci-dessous, se réfère à toute bibliothèque -logicielle ou travail qui a été distribué suivant ces termes. Un -« travail basé sur la Bibliothèque » signifie soit la Bibliothèque ou -tout travail dérivé pouvant être soumis aux lois de propriété -intellectuelle : c’est-à-dire un travail contenant la Bibliothèque ou -une portion de celle-ci, soit en copie conforme, soit avec des -modifications ou traduit directement dans une autre langue. (Dans la -suite ci-dessous, les traductions sont incluses sans limitation dans le -terme « modification ».) - - Le « code source » d’un travail signifie la forme préférée du travail -permettant d’y effectuer des modifications. Pour une bibliothèque, le -code source complet signifie tout le code source de tous les modules -qu’elle contient, plus tous les fichiers de définition d’interface -associés, plus les scripts utilisés pour contrôler la compilation et -l’installation de la bibliothèque. - - Les activités autres que la copie, la distribution et la modification -ne sont pas couvertes par cette Licence ; elles sont en dehors de son -étendue. L’action d’exécuter un programme utilisant la Bibliothèque -n’est pas restreinte et les résultats produits par un tel programme ne -sont couverts que si leur contenu constitue un travail basé sur la -Bibliothèque (indépendamment de l’utilisation de la Bibliothèque dans -un outil utilisé pour l’écrire). Que ce soit ou non le cas dépend de ce -que réalise la Bibliothèque, et de ce que fait le programme utilisant la -Bibliothèque. - - 1. Vous pouvez copier et distribuer des copies conformes du code source -complet de la Bibliothèque que vous recevez, sur tout support, pourvu que -vous publiiez scrupuleusement et de façon appropriée sur chaque copie la -notice de réservation de droit (“copyright”) et un « déni de garantie » ; -gardez intactes toutes les notices qui se réfèrent à cette Licence et à -l’absence de toute garantie ; et distribuez une copie de cette Licence en -même temps que la Bibliothèque. - - Vous pouvez demander un paiement pour l’action physique de transfert -d’une copie et vous pouvez à volonté offrir une protection de garantie en -échange d’un paiement. - - 2. Vous pouvez modifier votre ou vos copie(s) de la Bibliothèque ou -toute portion de celle-ci et ainsi créer un travail basé sur la -Bibliothèque et copier ou distribuer de telles modifications suivant les -termes de la Section 1 ci-dessus, pourvu que vous satisfassiez également -à chacune de ces conditions : - - a) Le travail modifié doit être lui-même une bibliothèque logicielle. - - b) Vous devez assurer que les fichiers modifiés comportent des notices - évidentes établissant que vous avez changé les fichiers et la date de - ces changements. - - c) Vous devez assurer que l’ensemble du travail pourra être licencié - sans frais à toute tierce partie suivant les termes de cette Licence. - - d) Si une facilité dans la bibliothèque modifiée se réfère à une fonction - ou une table de données devant être fournie par une application utilisant - la facilité, autre qu’un argument passé quand la facilité est invoquée, - alors vous devez faire un effort en toute bonne foi pour vous assurer - que, dans l’éventualité où une application ne fournirait pas une telle - fonction ou table, la facilité restera opérationnelle et effectuera une - partie quelconque de sa finalité de façon sensée. - - (Par exemple, une fonction dans une bibliothèque pour calculer des - racines carrées a une finalité qui est totalement bien définie - indépendamment de l’application. Par conséquent, la Sous-section 2d - requiert que toute fonction fournie par l’application ou table - utilisée par cette fonction doit être optionnelle : si l’application - n’en fournit pas, la fonction racine carrée doit encore pouvoir - calculer des racines carrées.) - - Ces obligations s’appliquent au travail modifié dans son entier. Si des -sections identifiables de ce travail ne sont pas dérivées dans la -Bibliothèque, et peuvent être raisonnablement considérées comme des -travaux indépendants et séparés par eux-mêmes, alors cette Licence et ses -termes, ne s’appliquent pas à ces sections, dès lors que vous les -distribuez en tant que travaux séparés. Mais quand vous distribuez les -mêmes sections en tant que composants d’un ensemble constituant un -travail basé sur la Bibliothèque, la distribution de l’ensemble doit se -faire suivant les termes de cette Licence, dont les autorisations -accordées à d’autres obtenteurs de licences s’étendent à la totalité de -l’ensemble et donc pour chacun des composants indépendamment de qui les a -écrits. - - Aussi, ce n’est pas l’intention de cette section de clamer des droits ou -de contester vos droits sur des travaux écrits entièrement par vous ; -l’intention est plutôt d’exercer le droit de contrôler la distribution -des travaux dérivés ou collectifs basés sur la Bibliothèque. - - De plus, la simple agrégation avec la Bibliothèque (ou avec un travail -basé sur la Bibliothèque) d’un autre travail non basé sur la Bibliothèque -sur un même volume de stockage ou un support de distribution n’amène pas -cet autre travail dans le champ d’application de cette Licence. - - 3. Vous pouvez choisir d’appliquer les termes de la Licence Générale -Publique GNU ordinaire au lieu de ceux de cette Licence à une copie -donnée de cette Bibliothèque. Pour le faire, vous devez modifier les -notices qui se réfèrent à cette Licence, de sorte qu’ils se réfèrent -plutôt à la Licence Générale Publique GNU version 2, au lieu de cette -Licence. (Si une version officielle plus récente que la version 2 de la -Licence Générale Publique GNU ordinaire a été publiée, alors vous pouvez -spécifier plutôt cette version si vous le souhaitez.) N’effectuez aucun -autre changement à ces notices. - - Dès que ce changement a été fait dans une copie donnée, il est -irréversible pour cette copie et donc la Licence Générale Publique GNU -ordinaire s’appliquera à toutes les copies suivantes et à tous travaux -dérivés effectués à partir de cette copie. - - Cette option est utile quand vous souhaitez copier une partie du code de -la Bibliothèque en un programme qui n’est pas une bibliothèque. - - 4. Vous pouvez copier et distribuer la Bibliothèque (ou une portion ou un -dérivé de celle-ci, suivant les termes de la Section 2 sous forme de code -objet ou exécutable suivant les termes des Sections 1 et 2 ci-dessus, -pourvu que vous l’accompagniez avec le code source correspondant sous -forme lisible par une machine, qui doit être distribué suivant les termes -des Sections 1 et 2 ci-dessus sur un support utilisé habituellement pour -l’échange de logiciels. - - Si la distribution du code objet se fait en offrant l’accès à la copie -depuis un emplacement désigné, alors une offre d’accès équivalente pour -copier le code source depuis le même emplacement satisfait à l’obligation -de distribuer le code source, même si des parties tierces ne sont pas -obligées de copier simultanément le code source en même temps que le code -objet. - - 5. Un programme qui ne contient aucun dérivé d’une quelconque portion de -la Bibliothèque, mais est conçu pour travailler avec la Bibliothèque en -étant compilé ou lié avec cette Bibliothèque, est appelé un « travail -utilisant la Bibliothèque ». Un tel travail, pris isolément, n’est pas un -travail dérivé de la Bibliothèque et tombe par conséquent hors du champ -d’application de cette Licence. - - Cependant, la liaison avec la Bibliothèque d’un « travail utilisant la -Bibliothèque » crée un exécutable qui est un « dérivé de la Bibliothèque » -(car il contient des portions de la Bibliothèque), plutôt qu’un « travail -utilisant la Bibliothèque ». L’exécutable est par conséquent couvert par -cette Licence. La Section 6 établit les termes de distribution de tels -exécutables. - - Quand un « travail utilisant la Bibliothèque » utilise des éléments d’un -fichier d’entête faisant partie de la Bibliothèque, le code objet de ce -travail peut être un travail « dérivé de la Bibliothèque » même si son -code source ne l’est pas. Cette définition prendra son sens tout -particulièrement si le travail peut être lié sans la Bibliothèque ou si -le travail est lui-même une bibliothèque. Les délimitations de ce cas ne -sont pas définies de façon précise par la loi. - - Si un tel fichier objet utilise uniquement des paramètres numériques, des -schémas et accesseurs de structures de données et de petites macros et -petites fonctions en ligne (dix lignes de source ou moins en longueur), -alors l’utilisation du fichier objet est non restreinte, indépendamment -du fait que cela constitue légalement un travail « dérivé » (Les règles -de la Section 6 s’appliqueront tout de même aux exécutables contenant ce -code objet plus des portions de la Bibliothèque). - - Autrement, si le travail est un « dérivé de la Bibliothèque, » vous -pouvez distribuer le code objet pour le travail suivant les termes de la -Section 6. Les règles de la section 6 s’appliquent alors à tout -exécutable contenant ce travail, que ce dernier soit ou ne soit pas lié -directement avec la Bibliothèque elle-même. - - 6. Par exception aux Sections ci-dessus, vous pouvez aussi combiner ou -lier un « travail utilisant la Bibliothèque » avec la Bibliothèque pour -produire un travail contenant des portions de la Bibliothèque et -distribuer ce travail suivant les termes de votre choix, pourvu que ces -termes permettent la modification du travail pour les besoins propres du -client et l’ingénierie inverse permettant le déboguage de telles -modifications. - - Vous devez donner une notice explicite et évidente avec chaque copie du -travail montrant que la Bibliothèque est utilisée dans celui-ci et que la -Bibliothèque et son utilisation sont couvertes par cette Licence. Vous devez -fournir une copie de cette Licence. Si le travail lors de son exécution -affiche des notices de droits et propriétés intellectuelles, vous devez -inclure la notice pour la Bibliothèque parmi celles-ci, ainsi qu’une -référence adressée à l’utilisateur vers une copie de cette Licence. Vous -devez aussi effectuer l’une des tâches suivantes : - - a) Accompagner le travail avec le code source complet correspondant - lisible par une machine pour la Bibliothèque incluant tout changement - quelconque qui ont étés effectués dans le travail (qui doit être - distribué suivant les Sections 1 et 2 ci-dessus) ; et, si le travail est - un exécutable lié avec la Bibliothèque, fournir la totalité du « travail - utilisant la Bibliothèque » lisible par une machine, sous forme de code - objet ou source, de sorte que l’utilisateur puisse modifier la - Bibliothèque et la relier pour produire un exécutable modifié contenant - la Bibliothèque modifiée. - (Il est admis que l’utilisateur qui change le contenu de fichiers - de définition dans la Bibliothèque ne sera pas nécessairement - capable de recompiler l’application pour utiliser les définitions - modifiées.) - - b) Utiliser un mécanisme approprié de bibliothèque partagée pour lier - avec la Bibliothèque. Un mécanisme approprié est celui qui (1) utilise à - l’exécution une copie de la Bibliothèque déjà présente sur le système de - l’ordinateur de l’utilisateur, plutôt que de copier les fonctions de - Bibliothèque dans l’exécutable et (2) fonctionnera correctement avec une - version modifiée de la Bibliothèque, si l’utilisateur en installe une, - tant que la version modifiée est compatible au niveau de l’interface - avec la version avec laquelle le travail a été réalisé. - - c) Accompagner le travail d’une offre écrite, valide pour au moins trois - ans, de donner au même utilisateur les éléments spécifiés dans la - Sous-section 6a, ci-dessus, contre un paiement n’excédant pas le coût - requis pour effectuer cette distribution. - - d) Si la distribution du travail est faite en offrant l’accès à une - copie depuis un emplacement désigné, offrir un accès équivalent depuis - le même emplacement pour copier les éléments spécifiés ci-dessus. - - e) Vérifier que l’utilisateur a déjà reçu une copie de ces éléments ou - que vous en avez déjà envoyé une copie à cet utilisateur. - - Pour un exécutable, la forme requise du « travail utilisant la -Bibliothèque » doit inclure toutes les données et programmes utilitaires -nécessaires permettant de reproduire l’exécutable à partir de ceux-ci. -Cependant, par exception, les matériels à distribuer n’ont pas besoin -d’inclure tout ce qui est normalement distribué (sous forme source ou -binaire) avec les composants majeurs (compilateur, noyau et autres -composants similaires) du système d’exploitation sur lequel l’exécutable -fonctionne, à moins que ce composant lui-même accompagne l’exécutable. - - Il peut arriver que ces conditions nécessaires contredisent les -restrictions de licence d’autres bibliothèques propriétaires qui -n’accompagnent pas normalement le système d’exploitation. Une telle -contradiction signifie que vous ne pouvez pas les utiliser en même temps -que la Bibliothèque dans un exécutable que vous distribuez. - - 7. Vous pouvez placer les facilités de bibliothèque qui sont un travail -basé sur la Bibliothèque côte à côte dans une unique bibliothèque avec -d’autres facilités de bibliothèque non couvertes par cette Licence et -distribuer une telle bibliothèque combinée, pourvu que la distribution -séparée du travail basé sur la Bibliothèque et des autres facilités de -bibliothèque soient autrement permises et pourvu que vous effectuiez -chacune des deux tâches suivantes : - - a) Accompagner la bibliothèque combinée avec une copie du même travail - basé sur la Bibliothèque, non combinée avec d’autres facilités de la - Bibliothèque. Cela doit être distribué suivant les termes des Sections - ci-dessus. - - b) Donner une notice évidente avec la bibliothèque combinée du fait - qu’une partie de celle-ci est un travail basé sur la Bibliothèque et - expliquant où trouver la forme non combinée accompagnante du même - travail. - - 8. Vous ne pouvez pas copier, modifier, accorder des sous-licences, lier -ou distribuer la Bibliothèque autrement que d’une façon décrite -expressément par cette Licence. Autrement, toute tentative de copier, -modifier, accorder des sous-licences, lier ou distribuer la Bibliothèque -est invalide et mettra fin automatiquement à vos droits accordés sous -cette Licence. Toutefois, toute autre tierce partie qui a reçu des copies -ou des droits par vous, suivant les termes de cette Licence, ne verra pas sa -licence résiliée, aussi longtemps que cette partie tierce continuera de -s’y conformer pleinement. - - 9. Vous n’êtes pas obligé d’accepter cette Licence, puisque vous ne l’avez -pas signée. Cependant, rien d’autre ne vous accorde l’autorisation de -modifier ou distribuer la Bibliothèque ou ses travaux dérivés. Ces actions -sont légalement prohibées si vous n’acceptez pas cette Licence. Par -conséquent, en modifiant ou distribuant la Bibliothèque (ou tout travail -basé sur la Bibliothèque), vous indiquez votre acceptation de cette -Licence pour le faire, ainsi que tous ses termes et conditions pour la -copie, la distribution ou la modification de la Bibliothèque ou des -travaux basés sur elle. - - 10. Chaque fois que vous redistribuez la Bibliothèque (ou tout travail -basé sur la Bibliothèque), le destinataire reçoit automatiquement une -licence par l’émetteur d’origine de la licence, permettant de copier, -distribuer, lier ou modifier la Bibliothèque en accord avec les présents -termes et conditions. Vous ne pouvez pas imposer davantage de -restrictions sur l’exercice par le concessionnaire de cette licence des -droits accordés dans la présente licence. Vous êtes dégagé de la -responsabilité de contrôler la conformité d’usage de cette Licence par -des parties tierces. - - 11. Si, par suite d’une décision judiciaire ou d’une allégation -d’infraction à un brevet ou pour toute autre raison (non limitée aux -problèmes de brevets), des conditions vous sont imposées (que ce soit par -une ordonnance de justice, une transaction amiable ou contractuelle ou -toute autre raison) qui contredisent les conditions de cette Licence, -elles ne vous dégagent pas des obligations de cette Licence. Si vous ne -pouvez pas effectuer une distribution de façon à satisfaire simultanément -vos obligations sous cette Licence et toute autre obligation pertinente, -alors vous ne pouvez en aucun cas distribuer la Bibliothèque. Par -exemple, si une licence de brevet ne permettait pas une redistribution de -la Bibliothèque sans paiement de royalties par tous ceux qui en reçoivent -des copies directement ou indirectement à travers vous, alors la seule -façon pour vous de satisfaire à la fois les conditions imposées et cette -Licence sera de vous abstenir complètement de toute distribution de la -Bibliothèque. - - Si toute portion de cette section est jugée invalide ou inapplicable de -plein droit dans une quelconque circonstance particulière, tout le reste -de cette section est supposé s’appliquer et la section dans son ensemble est -supposée toujours être applicable dans toutes les autres circonstances. - - Le but de cette section n’est pas de vous obliger à enfreindre un -quelconque brevet ou d’autres prétentions à des droits de propriété ou de -contester la validité de telles prétentions ; cette section a pour seul -but de protéger l’intégrité du système de distribution des logiciels -libres tel qu’il fonctionne au moyen de pratiques de licences publiques. -De nombreuses personnes ont fait des contributions généreuses à la gamme -très étendue de logiciels distribués via ce système, en comptant sur -l’application rigoureuse et cohérente de ce système ; il appartient -seulement à l’auteur ou au donateur de décider si il ou elle désire -distribuer un logiciel via un autre système et le concessionnaire de -licence ne peut pas imposer ce choix. - - Cette section a pour but d’établir de façon très claire ce que l’on croit -être une conséquence nécessaire du reste de cette Licence. - - 12. Si la distribution ou l’usage de la Bibliothèque est restreinte -dans certains pays, que ce soit par des brevets ou des interfaces soumises -au droit de propriété intellectuelle, le titulaire original de ce droit de -propriété qui place la Bibliothèque sous la couverture de cette Licence -peut ajouter une limitation géographique explicite de distribution -excluant ces pays, afin que la distribution soit permise seulement dans -ou parmi les pays non exclus. Dans un tel cas, cette Licence incorpore la -limitation comme si elle était réputée écrite dans le corps de cette -Licence. - - 13. La Free Software Foundation peut publier des versions révisées ou -nouvelles de la Licence Générale Publique Limitée de temps en temps. De -telles nouvelles versions resteront similaires à l’esprit de la présente -version, mais peut différer dans son détail afin de traiter de nouveaux -problèmes ou préoccupations. - - Chaque version reçoit un numéro de version distinctif. Si la Bibliothèque -spécifie un numéro de version de cette Licence qui s’applique à celle-ci -et à « toute autre version future », vous avez l’option de suivre les -termes et conditions de cette version ou de toute version ultérieure -publiées par la Free Software Foundation. Si la Bibliothèque ne spécifie -pas un numéro de version de licence, vous pouvez choisir n’importe quelle -version publiée par la Free Software Foundation. - - 14. Si vous souhaitez incorporer des parties de la Bibliothèque dans -tout autre programme libre dont les conditions de distribution sont -incompatibles avec ces termes, écrivez à l’auteur ou demandez son -autorisation. Pour les logiciels dont les droits de propriété sont -détenus par la Free Software Foundation, écrivez à la Free Software -Foundation ; nous faisons parfois des exceptions pour celui-ci. Notre -décision sera guidée par les deux finalités de préserver le statut libre -de tous les dérivés de nos logiciels libres et de promouvoir le partage -et la réutilisation des logiciels en général. - - ABSENCE DE GARANTIE - - 15. PUISQUE CETTE BIBLIOTHÈQUE FAIT L’OBJET D’UNE LICENCE QUI VOUS EST -ACCORDÉE SANS FRAIS, IL N’Y A AUCUNE GARANTIE POUR LA BIBLIOTHÈQUE, DANS -LES LIMITES AUTORISÉES PAR LA LOI APPLICABLE. À MOINS QUE CELA NE SOIT -ÉTABLI DIFFÉREMMENT PAR ÉCRIT, LES TITULAIRES DE DROITS DE PROPRIÉTÉ -OU LES AUTRES PARTIES FOURNISSENT LA BIBLIOTHÈQUE « EN L’ÉTAT » SANS -GARANTIE D’AUCUNE SORTE, QU’ELLE SOIT EXPRIMÉE OU IMPLICITE, CECI -INCLUANT, MAIS SANS LIMITATION, LES GARANTIES IMPLICITES DE -MARCHANDABILITÉ ET D’ADÉQUATION À UN OBJECTIF PARTICULIER. VOUS ASSUMEZ -SEUL LE RISQUE TOUT ENTIER CONCERNANT LA QUALITÉ ET LA PERFORMANCE DE LA -BIBLIOTHÈQUE. DANS L’ÉVENTUALITÉ OÙ LA BIBLIOTHÈQUE S’AVÉRERAIT -DÉFECTUEUSE, VOUS ASSUMEREZ VOUS-MÊME LE COÛT DE TOUS LES SERVICES, -RÉPARATIONS OU CORRECTIONS NÉCESSAIRES. - - 16. EN AUCUNE AUTRE CIRCONSTANCE QUE CELLES REQUISES PAR LA LOI -APPLICABLE OU ACCORDÉES PAR ÉCRIT, UN TITULAIRE DE DROIT DE PROPRIÉTÉ, OU -TOUT AUTRE PARTIE QUI PEUT MODIFIER OU REDISTRIBUER LA BIBLIOTHÈQUE COMME -PERMIS CI-DESSUS, NE POURRA ÊTRE TENU POUR RESPONSABLE ENVERS VOUS POUR -LES DOMMAGES, INCLUANT TOUS DOMMAGE GÉNÉRAL, SPÉCIAL, ACCIDENTEL OU -INDUIT SURVENU PAR SUITE DE L’UTILISATION OU DE L’INCAPACITÉ D’UTILISER -LA BIBLIOTHÈQUE (CECI INCLUANT MAIS SANS LIMITATION LA PERTE DE DONNÉES -OU L’INEXACTITUDE DES DONNÉES RETOURNÉES OU LES PERTES SUBIES PAR VOUS OU -DES PARTIES TIERCES OU L’INCAPACITÉ DE LA BIBLIOTHÈQUE À FONCTIONNER AVEC -TOUT AUTRE LOGICIEL), MÊME SI UN TEL TITULAIRE OU TOUTE AUTRE PARTIE A ÉTÉ -AVISÉ DE LA POSSIBILITÉ DE TELS DOMMAGES. - - FIN DES TERMES ET CONDITIONS. - - Comment appliquer ces termes à Vos nouvelles bibliothèques - - Si vous développez une nouvelle bibliothèque et voulez qu’elle soit le -plus possible utilisable par le public, nous recommandons d’en faire un -logiciel libre que chacun peut redistribuer et changer. Vous pouvez le -faire en permettant la redistribution suivant ces termes (ou -éventuellement les termes de la Licence Générale Publique GNU ordinaire). - - Pour appliquer ces termes, attachez les notices suivantes à la -bibliothèque. Il est plus sûr de les attacher au début de chacun des -fichiers sources afin de transporter de façon la plus effective possible -l’exclusion de garantie ; et chaque fichier devrait comporter au moins la -ligne de réservation de droit (“copyright”) et une indication permettant -de savoir où la notice complète peut être trouvée : - - - Copyright (C) — Tous droits réservés. - - Cette bibliothèque est un logiciel libre ; vous pouvez la redistribuer ou - la modifier suivant les termes de la Licence Générale Publique Limitée - GNU telle que publiée par la Free Software Foundation ; soit la - version 2.1 de la License, soit (à votre gré) toute version ultérieure. - - Cette bibliothèque est distribuée dans l’espoir qu’elle sera utile, mais - SANS AUCUNE GARANTIE : sans même la garantie implicite de - COMMERCIALISABILITÉ ou d’ADÉQUATION À UN OBJECTIF PARTICULIER. Consultez - la Licence Générale Publique Limitée pour plus de détails. - - Vous devriez avoir reçu une copie de la Licence Générale Publique Limitée - GNU avec cette bibliothèque ; si ce n’est pas le cas, écrivez à la : - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. - - Ajoutez également les informations permettant de vous contacter par -courrier électronique ou papier : - - Pour toute demande d’information au sujet de la bibliothèque « Frob », - vous pouvez contacter son auteur : - - Li-Jean Kodeur-Untel , - 1 place du Desseim Inconnu, 012345 Lhuile, République de Nulle Part. - Téléphone : +800(555)0X0-0XX0 — Télécopie : +800(555)0X0-0XX1 - Site Internet : http://www.domaine.exemple/frob - - Vous devriez également obtenir de votre employeur (si vous travaillez en -tant que programmeur) ou de votre école un « renoncement aux droits de -propriété » pour la Bibliothèque, si nécessaire. Voici un exemple où il -vous suffit d’en modifier les noms, descriptions ou dates variables : - - Yoyodyne S.A., déclare par la présente renoncer à tous droits et intérêts - de propriété intellectuelle sur la bibliothèque « Frob » (une bibliothèque - destinée à déplier les coudes) écrite par Li-Jean Kodeur-Untel. - - Fait à Lhuile, le 1er avril 1001 : - - Ti Coun, Président de Yoyodyne S.A. - - Voilà tout ce qui est nécessaire ! - ------------------------------------------------------------------------------ - - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! diff --git a/windows/Netgen_Installer/LGPL_Licenses/LGPL_German.txt b/windows/Netgen_Installer/LGPL_Licenses/LGPL_German.txt deleted file mode 100644 index 88b5ebf9..00000000 --- a/windows/Netgen_Installer/LGPL_Licenses/LGPL_German.txt +++ /dev/null @@ -1,628 +0,0 @@ - GNU Lesser General Public License - Deutsche Übersetzung der Version 2.1, Februar 1999 - - Copyright © 1991, 1999 Free Software Foundation, Inc. - 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - Es ist jedermann gestattet, diese Lizenzurkunde zu vervielfältigen und - unveränderte Kopien zu verbreiten. Änderungen sind jedoch nicht erlaubt. - - [Dies ist die erste freigegebene Version der Lesser GPL. Sie ist - als Nachfolgerin der GNU Library Public License zu betrachten und - erhielt daher die Versionsnummer 2.1.] - - Diese Übersetzung ist kein rechtskräftiger - Ersatz für die englischsprachige Originalversion! - - Vorwort - - Die meisten Softwarelizenzen sind daraufhin entworfen worden, Ihnen die -Freiheit zu nehmen, die Software weiterzugeben und zu verändern. Im -Gegensatz dazu sollen Ihnen die GNU General Public Licenses, die -Allgemeinen Öffentlichen GNU-Lizenzen, ebendiese Freiheit des -Weitergebens und Veränderns garantieren und somit sicherstellen, daß -diese Software für alle Benutzer frei ist. - - Diese Lizenz, die Kleine Allgemeine Öffentliche Lizenz (Lesser General -Public License), gilt für einige besonders bezeichnete Software-Pakete – -typischerweise Programmbibliotheken – von der Free Software Foundation -und anderen Autoren, die beschließen, diese Lizenz zu verwenden. Auch -Sie können sie verwenden; wir empfehlen aber, vorher gründlich darüber -nachzudenken, ob diese Lizenz (LGPL) oder aber die gewöhnliche -Allgemeine Öffentliche Lizenz (GPL) die bessere Strategie zur Anwendung -im jeweiligen speziellen Fall ist. Dabei bieten Ihnen die untenstehenden -Erläuterungen eine Grundlage für Ihre Entscheidung. - - Die Bezeichnung „freie“ Software bezieht sich auf Freiheit der Nutzung, -nicht auf den Preis. Unsere Allgemeinen Öffentlichen Lizenzen sollen -sicherstellen, daß Sie die Freiheit haben, Kopien freier Software zu -verbreiten (und etwas für diesen Service zu berechnen, wenn Sie -möchten), daß Sie die Software im Quelltext erhalten oder den Quelltext -auf Wunsch bekommen können, daß Sie die Software ändern oder Teile davon -in neuen freien Programmen verwenden dürfen, und daß Sie darüber -informiert sind, daß Sie dies alles tun dürfen. - - Um Ihre Rechte zu schützen, müssen wir Einschränkungen machen, die es -jedem, der die Software weitergibt, verbieten, Ihnen diese Rechte zu -verweigern oder Sie zum Verzicht auf diese Rechte aufzufordern. Aus -diesen Einschränkungen ergeben sich bestimmte Verantwortlichkeiten für -Sie, wenn Sie Kopien der Bibliothek verbreiten oder sie verändern. - - Beispielsweise müssen Sie den Empfängern alle Rechte gewähren, die wir -Ihnen eingeräumt haben, wenn Sie – kostenlos oder gegen Bezahlung – -Kopien der Bibliothek verbreiten. Sie müssen sicherstellen, daß auch die -Empfänger den Quelltext erhalten bzw. erhalten können. Wenn Sie einen -anderen Code mit der Bibliothek linken, müssen Sie den Empfängern die -vollständigen Objekt-Dateien zukommen lassen, so daß sie selbst diesen -Code mit der Bibliothek neu linken können, auch nachdem sie -Veränderungen an der Bibliothek vorgenommen und sie neu compiliert -haben. Und Sie müssen ihnen diese Bedingungen zeigen, damit sie ihre -Rechte kennen. - - Wir schützen Ihre Rechte in zwei Schritten: (1) Wir stellen die -Bibliothek unter ein Urheberrecht (Copyright), und (2) wir bieten Ihnen -diese Lizenz an, die Ihnen das Recht gibt, die Bibliothek zu -vervielfältigen, zu verbreiten und/oder zu verändern. - - Um jeden, der die Software weitergibt, zu schützen, wollen wir darüber -hinaus vollkommen klarstellen, daß für diese freie Bibliothek keinerlei -Garantie besteht. Auch sollten, falls die Software von jemand anderem -modifiziert und weitergegeben wird, die Empfänger wissen, daß sie nicht -das Original erhalten haben, damit irgendwelche von anderen verursachte -Probleme nicht den Ruf des ursprünglichen Autors schädigen. - - Schließlich und endlich stellen Software-Patente für die Existenz jedes -freien Programms eine ständige Bedrohung dar. Wir möchten sicherstellen, -daß keine Firma den Benutzern eines freien Programms Einschränkungen -auferlegen kann, indem sie von einem Patentinhaber eine die freie -Nutzung einschränkende Lizenz erwirbt. Deshalb bestehen wir darauf, daß -jegliche für eine Version der Bibliothek erworbene Patentlizenz mit der -in dieser Lizenz (also der LGPL) im einzelnen angegebenen -Nutzungsfreiheit voll vereinbar sein muß. - - Die meiste GNU-Software einschließlich einiger Bibliotheken fällt unter -die gewöhnliche Allgemeine Öffentliche GNU-Lizenz (GNU-GPL). Die -vorliegende Lizenz, also die GNU-LGPL, gilt für gewisse näher -bezeichnete Bibliotheken. Sie unterscheidet sich wesentlich von der -gewöhnlichen Allgemeinen Öffentlichen Lizenz (GNU-GPL). Wir benutzen -diese Lizenz für gewisse Bibliotheken, um das Linken (d.h. die -Verknüpfung von Bibliotheken und anderen Programmteilen zu einem -lauffähigen Programm – Anmerkung der Übersetzer) von Programmen, die -nicht frei sind, mit diesen Bibliotheken zu gestatten. - - Wenn ein Programm mit einer Bibliothek gelinkt wurde, sei es nun -statisch oder dynamisch, so ist die Kombination der beiden, rechtlich -gesehen, ein „kombiniertes Werk“, also eine abgeleitete Version der -Orginal-Bibliothek. Die gewöhnliche GPL erlaubt ein solches Linken nur -dann, wenn die ganze Kombination die Kriterien für freie Software -erfüllt. Die LGPL erlaubt dagegen weniger strenge Kriterien für das -Linken von irgendeiner anderen Software mit der Bibliothek. - - Wir nennen diese Lizenz die „Kleine“ Allgemeine Öffentliche Lizenz -(„Lesser“ GPL). weil sie weniger („less“) dazu beiträgt, die Freiheit -des Benutzers zu schützen, als die gewöhnliche Allgemeine Öffentliche -Lizenz (GPL). Sie verschafft auch anderen Entwicklern freier Software -ein „Weniger“ an Vorteil gegenüber konkurrierenden nichtfreien -Programmen. Diese Nachteile sind ein Grund dafür, daß wir die -gewöhnliche GPL für viele Bibliotheken benutzen. Die „kleine“ Lizenz -(LGPL) bietet aber unter bestimmten besonderen Umständen doch Vorteile. - - So kann, wenn auch nur bei seltenen Gelegenheiten, eine besondere -Notwendigkeit bestehen, einen Anreiz zur möglichst weitgehenden -Benutzung einer bestimmten Bibliothek zu schaffen, so daß diese dann ein -De-facto-Standard wird. Um dies zu erreichen, müssen nichtfreie -Programme die Bibliothek benutzen dürfen. Ein häufigerer Fall ist der, -daß eine freie Bibliothek dasselbe leistet wie weithin benutzte -nichtfreie Bibliotheken. In diesem Falle bringt es wenig Nutzen, die -freie Bibliothek allein auf freie Software zu beschränken, und dann -benutzen wir eben die LGPL. - - In anderen Fällen ermöglicht die Erlaubnis zur Benutzung einer -speziellen Bibliothek in nichtfreien Programmen viel mehr Leuten, eine -umfangreiche Sammlung freier Software zu nutzen. So ermöglicht z.B. die -Erlaubnis zur Benutzung der GNU-C-Bibliothek in nichtfreien Programmen -einer viel größeren Zahl von Leuten, das ganze GNU-Betriebssystem ebenso -wie seine Variante, das Betriebssystem GNU/Linux, zu benutzen. - - Obwohl die LGPL die Freiheit des Benutzers weniger schützt, stellt sie -doch sicher, daß der Benutzer eines Programms, das mit der Bibliothek -gelinkt wurde, die Freiheit und die erforderlichen Mittel hat, das -Programm unter Benutzung einer abgeänderten Version der Bibliothek zu -betreiben. - - Die genauen Bedingungen für das Kopieren, Weitergeben und Abändern -finden Sie im nachstehenden Kapitel. Achten Sie genau auf den -Unterschied zwischen „work based on the library“, d.h. „Werk, das auf -der Bibliothek basiert“ und „work that uses the library“ d.h. „Werk, das -die Bibliothek benutzt“. Ersteres enthält Code, der von der Bibliothek -abgeleitet ist, während letzteres lediglich mit der Bibliothek -kombiniert werden muß, um betriebsfähig zu sein. - - - - - Kleine Allgemeine Öffentliche GNU-Lizenz - Bedingungen für die Vervielfältigung, Verbreitung und Bearbeitung - - §0. Diese Lizenz gilt für jedes Programm und jedes andere Werk, in dem -ein entsprechender Vermerk des Copyright-Inhabers oder eines anderen -dazu Befugten darauf hinweist, daß das Werk unter den Bestimmungen -dieser Lesser General Public License (im weiteren auch als „diese -Lizenz“ bezeichnet) verbreitet werden darf. Jeder Lizenznehmer wird -hierin einfach als „Sie“ angesprochen. - - Eine „Bibliothek“ bedeutet eine Zusammenstellung von Software-Funktionen -und/oder Daten, die so vorbereitet ist, daß sie sich bequem mit -Anwendungsprogrammen (welche einige dieser Funktionen und Daten -benutzen) zum Bilden von ausführbaren Programmen linken (d.h. verbinden, -kombinieren) läßt. - - Der Begrif „Bibliothek“ bezieht sich im weiteren immer nur auf solche -Software-Bibliotheken und solche Werke, die unter diesen Bedingungen der -Lesser-GPL-Lizenz verbreitet worden sind. Ein „auf der Bibliothek -basierendes Werk“ bezeichnet die betreffende Bibliothek selbst sowie -jegliche davon abgeleitete Bearbeitung im urheberrechtlichen Sinne, also -ein Werk, welches die Bibliothek oder einen Teil davon, sei es -unverändert oder verändert und/oder direkt in eine andere Sprache -übersetzt, enthält. (Im folgenden wird die Übersetzung ohne -Einschränkung als „Bearbeitung“ eingestuft.) - - Unter dem „Quelltext“ eines Werks ist seine für das Vornehmen von -Veränderungen bevorzugte Form zu verstehen. Für eine Bibliothek bedeutet -„vollständiger Quelltext“ den gesamten Quelltext für alle in ihr -enthaltenen Bestandteile, für jegliche zu ihr gehörenden Dateien zur -Definition von Schnittstellen und schließlich auch für die Skripte, die -zur Steuerung der Compilation und Installation der Bibliothek benutzt -werden. - - Andere Handlungen als Vervielfältigung, Verbreitung und Bearbeitung -werden von dieser Lizenz nicht berührt; sie fallen nicht in ihren -Anwendungsbereich. Das Ausführen eines Programms unter Benutzung der -Bibliothek wird nicht eingeschränkt, und die Ausgaben des Programms -unterliegen dieser Lizenz nur dann, wenn der Inhalt ein auf der -Bibliothek basierendes Werk darstellt (unabhängig davon, daß die -Bibliothek in einem Werkzeug zum Schreiben dieses Programms benutzt -wurde). Ob dies zutrifft, hängt davon ab, was die Bibliothek bewirkt und -was das Programm, das die Bibliothek nutzt, bewirkt. - - §1. Sie dürfen auf beliebigen Medien unveränderte Kopien des -vollständigen Quelltextes des Programms so, wie sie ihn erhalten haben, -anfertigen und verbreiten. Voraussetzung hierfür ist, daß Sie mit jeder -Kopie deutlich erkennbar und in angemessener Form einen entsprechenden -Copyright-Vermerk sowie einen Haftungsausschluß veröffentlichen, alle -Vermerke, die sich auf diese Lizenz und das Fehlen einer Garantie -beziehen, unverändert lassen und zusammen mit der Bibliothek jeweils -eine Kopie dieser Lizenz weitergeben. - - Sie dürfen für den eigentlichen Kopier- und Versandvorgang eine Gebühr -verlangen. Wenn Sie es wünschen, dürfen Sie auch gegen Entgelt eine -Garantie anbieten. - - §2. Sie dürfen Ihre Kopie(n) der Bibliothek oder irgendeines Teils davon -verändern, wodurch ein auf der Bibliothek basierendes Werk entsteht, und -Sie dürfen derartige Bearbeitungen unter den Bestimmungen von Paragraph -1 vervielfältigen und verbreiten, vorausgesetzt, daß zusätzlich alle im -folgenden genannten Bedingungen erfüllt werden: - - 1. Das Bearbeitungsergebnis muß selbst wieder eine Software-Bibliothek - sein. - - 2. Sie müssen die veränderten Dateien mit einem auffälligen - Vermerk versehen, der auf die von Ihnen vorgenommene Modifizierung der - Dateien hinweist und das Datum jeder Änderung angibt. - - 3. Sie müssen dafür sorgen, daß das Werk als Ganzes Dritten unter den - Bedingungen dieser Lizenz ohne Lizenzgebühren zur Verfügung gestellt - wird. - - 4. Wenn sich eine Funktionseinheit der bearbeiteten Bibliothek auf eine - Funktion oder Datentabelle stützt, die von einem die Funktionseinheit - nutzenden Anwendungsprogramm bereitgestellt werden muß, ohne daß sie als - Argument übergeben werden muß, wenn die Funktionseinheit angesprochen - wird, dann müssen Sie sich nach bestem Wissen und Gewissen bemühen, - sicherzustellen, daß die betreffende Funktionseinheit auch dann noch - funktioniert, wenn die Anwendung eine solche Funktion oder Datentabelle - nicht bietet, und daß sie den sinnvoll bleibenden Teil ihres - Bestimmungszwecks noch ausführt. - - (So hat z.B. eine Funktion zum Berechnen von Quadratwurzeln einen von -der Anwendung unabhängigen genau definierten Zweck. Deshalb verlangt §2 -Absatz d, daß jede von der Anwendung bereitgestellte Funktion oder von -dieser Funktion benutzte Tabelle optional sein muß: Auch wenn die -Anwendung sie nicht bereitstellt, muß die Quadratwurzelfunktion trotzdem -noch Quadratwurzeln berechnen). - - Diese Anforderungen gelten für das bearbeitete Werk als Ganzes. Wenn -identifizierbare Teile davon nicht von der Bibliothek stammen und -vernünftigerweise als unabhängige und gesonderte Werke für sich selbst -zu betrachten sind, dann gelten diese Lizenz und ihre Bedingungen nicht -für die betreffenden Teile, wenn Sie diese als gesonderte Werke -weitergeben. Wenn Sie jedoch dieselben Teile als Teil eines Ganzen -weitergeben, das ein auf der Bibliothek basierendes Werk darstellt, dann -muß die Weitergabe dieses Ganzen nach den Bedingungen dieser Lizenz -erfolgen, deren Bedingungen für weitere Lizenznehmer somit auf das -gesamte Ganze ausgedehnt werden – und somit auf jeden einzelnen Teil, -unabhängig vom jeweiligen Autor. - - Somit ist es nicht die Absicht dieses Abschnittes, Rechte für Werke in -Anspruch zu nehmen oder Ihnen Rechte für Werke streitig zu machen, die -komplett von Ihnen geschrieben wurden; vielmehr ist es die Absicht, die -Rechte zur Kontrolle der Verbreitung von Werken, die auf der Bibliothek -basieren oder unter ihrer auszugsweisen Verwendung zusammengestellt -worden sind, auszuüben. - - Ferner bringt auch das einfache Zusammenlegen eines anderen Werkes, das -nicht auf der Bibliothek basiert, mit der Bibliothek oder mit einem auf -der Bibliothek basierenden Werk auf ein- und demselben Speicher- oder -Vertriebsmedium dieses andere Werk nicht in den Anwendungsbereich dieser -Lizenz. - - §3. Sie können sich für die Anwendung der Bedingungen der gewöhnlichen -Allgemeinen Öffentlichen GNU-Lizenz (GNU-GPL) statt dieser Lizenz auf -eine gegebene Kopie der Bibliothek entscheiden. Um dies zu tun, müssen -Sie alle Eintragungen, die sich auf diese Lizenz beziehen, ändern, so -daß sie nun für die gewöhnliche GNU-GPL, Version 2, statt für diese -Lizenz (LGPL) gelten. (Wenn eine neuere Version als Version 2 der -gewöhnlichen GNU-GPL erschienen ist, können Sie diese angeben, wenn Sie -das wünschen.) Nehmen Sie keine anderen Veränderungen in diesen -Eintragungen vor. - - Wenn diese Veränderung in einer gegebenen Kopie einmal vorgenommen ist, -dann ist sie für diese Kopie nicht mehr zurücknehmbar, und somit gilt -dann die gewöhnliche GNU-GPL für alle nachfolgenden Kopien und -abgeleiteten Werke, die von dieser Kopie gemacht worden sind. - - Diese Option ist nützlich, wenn Sie einen Teil des Codes der Bibliothek -in ein Programm kopieren wollen, das keine Bibliothek ist. - - §4. Sie können die Bibliothek (oder einen Teil oder eine Ableitung von -ihr, gemäß Paragraph 2) in Objektcode-Form oder in ausführbarer Form -unter den Bedingungen der obigen Paragraphen 1 und 2 kopieren und -weitergeben, sofern Sie den vollständigen entsprechenden -maschinenlesbaren Quelltext beifügen, der unter den Bedingungen der -obigen Paragraphen 1 und 2 auf einem Medium weitergegeben werden muß, -das üblicherweise zum Austausch von Software benutzt wird. - - Wenn die Weitergabe von Objektcode durch das Angebot eines Zugangs zum -Kopienabruf von einem angegebenen Ort erfolgt, dann erfüllt das Angebot -eines gleichwertigen Zugangs zum Kopieren des Quelltextes von demselben -Ort die Anforderung, auch den Quelltext weiterzugeben, obwohl Dritte -nicht verplichtet sind, den Quelltext zusammen mit dem Objektcode zu -kopieren. - - §5. Ein Programm, das nichts von irgendeinem Teil der Bibliothek -Abgeleitetes enthält, aber darauf ausgelegt ist, mit der Bibliothek -zusammenzuarbeiten, indem es mit ihr compiliert oder gelinkt wird, nennt -man ein „Werk, das die Bibliothek nutzt“. Solch ein Werk, für sich -allein genommen, ist kein von der Bibiliothek abgeleitetes Werk und -fällt daher nicht unter diese Lizenz. - - Wird jedoch ein „Werk, das die Bibliothek nutzt“, mit der Bibliothek -gelinkt, so entsteht ein ausführbares Programm, das ein von der -Bibliothek abgeleitetes Werk (weil es Teile der Bibliothek enthält) und -kein „Werk, das die Bibliothek nutzt“ ist. Das ausführbare Programm -fällt daher unter diese Lizenz. Paragraph 6 gibt die Bedingungen für die -Weitergabe solcher ausführbarer Programme an. - - Wenn ein „Werk, das die Bibliothek nutzt“, Material aus einer -Header-Datei verwendet, die Teil der Bibliothek ist, dann kann der -Objektcode für das Werk ein von der Bibliothek abgeleitetes Werk sein, -selbst wenn der Quelltext dies nicht ist. Ob dies jeweils zutrifft, ist -besonders dann von Bedeutung, wenn das Werk ohne die Bibliothek gelinkt -werden kann oder wenn das Werk selbst eine Bibliothek ist. Die genaue -Grenze, von der an dies zutrifft, ist rechtlich nicht genau definiert. - - Wenn solch eine Objektdatei nur numerische Parameter, -Datenstruktur-Layouts und Zugriffsfunktionen sowie kleine Makros und -kleine Inlinefunktionen (zehn Zeilen lang oder kürzer) benutzt, dann -unterliegt die Benutzung der Objektdatei keinen Beschränkungen, ohne -Rücksicht darauf, ob es rechtlich gesehen ein abgeleitetes Werk ist. -(Ausführbare Programme, welche diesen Objektcode plus Teile der -Bibliothek enthalten, fallen jedoch weiterhin unter die Bestimmungen von -Paragraph 6). - - Ansonsten können Sie, wenn das Werk ein von der Bibliothek abgeleitetes -ist, den Objektcode für das Werk unter den Bedingungen von Paragraph 6 -weitergeben. Alle ausführbaren Programme, welche dieses Werk enthalten, -fallen ebenfalls unter Paragraph 6, gleichgültig, ob sie direkt mit der -Bibliothek selbst gelinkt sind oder nicht. - - §6. Als Ausnahme von den Bestimmungen der vorstehenden fünf Paragraphen -dürfen Sie auch ein „Werk, das die Bibliothek nutzt“, mit der Bibliothek -kombinieren oder linken, um ein Werk zu erzeugen, das Teile der -Bibliothek enthält, und dieses unter Bedingungen ihrer eigenen Wahl -weitergeben, sofern diese Bedingungen Bearbeitungen für den eigenen -Gebrauch des Empfängers und ein Rückbilden (“reverse engineering”) zum -Beheben von Mängeln solcher Bearbeitungen gestatten. - - Sie müssen bei jeder Kopie des Werks deutlich erkennbar angeben, daß die -Bibliothek darin genutzt wird und daß die Bibliothek und ihre Benutzung -durch die Lizenz abgedeckt sind. Sie müssen eine Kopie dieser Lizenz -mitgeben. Wenn das Werk bei seiner Ausführung Copyright-Vermerke -anzeigt, müssen Sie den Copyright-Vermerk für die Bibliothek mit -anzeigen lassen und dem Benutzer einen Hinweis geben, der ihn zu einer -Kopie dieser Lizenz führt. Ferner müssen Sie eines der nachfolgend -genannten fünf Dinge tun: - - 1. Liefern Sie das Werk zusammen mit dem vollständigen zugehörigen - maschinenlesbaren Quelltext der Bibliothek aus, und zwar - einschließlich jeglicher in dem Werk angewandter Änderungen (wobei - dessen Weitergabe gemäß den Bedingungen der Paragraphen 1 und 2 - erfolgen muß); und wenn das Werk ein ausführbares, mit der Bibliothek - gelinktes Progamm ist, dann liefern Sie es zusammen mit dem - vollständigen maschinenlesbaren „Werk, das die Bibliothek nutzt“, - in Form von Objektcode und/oder Quelltext, so daß der Benutzer die - Bibliothek verändern und dann erneut linken kann, um ein verändertes - ausführbares Programm zu erzeugen, das die veränderte Bibliothek - enthält. (Es versteht sich, daß der Benutzer, der die Inhalte von - Definitionsdateien in der verändeten Bibliothek verändert, nicht - notwendigerweise in der Lage sein wird, die Anwendung neu zu - compilieren, um die veränderten Definitionen zu benutzen.) - - 2. Benutzen Sie einen geeigneten „shared-library-Mechanismus“ zum Linken - mit der Bibliothek. Geeignet ist ein solcher Mechanismus, der erstens - während der Laufzeit eine im Computersystem des Benutzers bereits - vorhandene Kopie der Bibliothek benutzt, anstatt Bibliotheksfunktionen - in das ausführbare Programm zu kopieren, und der zweitens auch mit einer - veränderten Version der Bibliothek, wenn der Benutzer eine solche - installiert, richtig funktioniert, solange die veränderte Version - schnittstellenkompatibel mit der Version ist, mit der das Werk erstellt - wurde. - - 3. Liefern Sie das Werk zusammen mit einem mindestens drei Jahre - lang gültigen schriftlichen Angebot, demselben Benutzer die oben in - Paragraph 6, Absatz (a) genannten Materialien zu Kosten, welche die - reinen Weitergabekosten nicht übersteigen, zur Verfügung zu stellen. - - 4. Wenn die Weitergabe des Werks dadurch erfolgt, daß die Möglichkeit - des Abrufens einer Kopie von einem bestimmten Ort angeboten wird, bieten - Sie gleichwertigen Zugang zum Kopieren der oben angegebenen Materialien - von dem gleichen Ort an. 5. Sie vergewissern sich, daß der Benutzer - bereits eine Kopie dieser Materialien erhalten hat oder daß Sie diesem - Benutzer bereits eine Kopie geschickt haben. - - Für ein ausführbares Programm muß die verlangte Form des „Werks, das die -Bibliothek nutzt“ alle Daten und Hilfsprogramme mit einschließen, die -man braucht, um daraus das ausführbare Programm zu reproduzieren. Doch -gilt eine spezielle Ausnahme: Die weiterzugebenden Materialien brauchen -nicht alles das zu enthalten, was normalerweise (in Quelltext-Form oder -in binärer Form) mit den Hauptbestandteilen (Compiler, Kern usw.) des -Betriebssystems, auf denen das ausführbare Programm läuft, weitergegeben -wird, es sei denn, das ausführbare Programm gehört selbst zu diesem -Hauptbestandteil. - - Es kann vorkommen, daß diese Anforderung im Widerspruch zu -Lizenzbeschränkungen anderer, proprietärer Bibliotheken steht, die -normalerweise nicht zum Betriebssystem gehören. Ein solcher Widerspruch -bedeutet, daß Sie nicht gleichzeitig jene proprietären Bibliotheken und -die vorliegende Bibliothek zusammen in einem ausführbaren Programm, das -Sie weitergeben, verwenden dürfen. - - §7. Sie dürfen Bibliotheks-Funktionseinheiten, die ein auf der -Bibliothek basierendes Werk darstellen, zusammen mit anderen, nicht -unter diese Lizenz fallenden Funktionseinheiten in eine einzelne -Bibliothek einbauen und eine solche kombinierte Bibliothek weitergeben, -vorausgesetzt, daß die gesonderte Weitergabe des auf der Bibliothek -basierenden Werks einerseits und der anderen Funktionseinheiten -andererseits ansonsten gestattet ist, und vorausgesetzt, daß Sie -folgende zwei Dinge tun: - - 1. Geben Sie zusammen mit der kombinierten Bibliothek auch eine Kopie - desselben auf der Bibliothek basierenden Werks mit, die nicht mit - irgendwelchen anderen Funktionseinheiten kombiniert ist. Dieses Werk muß - unter den Bedingungen der obigen Paragraphen weitergegeben werden. - - 2. Weisen Sie bei der kombinierten Bibliothek an prominenter Stelle auf - die Tatsache hin, daß ein Teil davon ein auf der Bibliothek basierendes - Werk ist, und erklären Sie, wo man die mitgegebene unkombinierte Form - desselben Werks finden kann. - - §8. Sie dürfen die Bibliothek nicht vervielfältigen, verändern, weiter -lizenzieren oder verbreiten oder mit ihr linken, sofern es nicht durch -diese Lizenz ausdrücklich gestattet ist. Jeder anderweitige Versuch der -Vervielfältigung, Modifizierung, Weiterlizenzierung und Verbreitung -sowie des Linkens mit der Bibliothek ist unzulässig und beendet -automatisch Ihre Rechte unter dieser Lizenz. Doch werden die Lizenzen -Dritter, die von Ihnen Kopien oder Rechte unter dieser Lizenz erhalten -haben, nicht beendet, solange diese Dritten die Lizenz voll anerkennen -und befolgen. - - §9. Sie sind nicht verpflichtet, diese Lizenz anzunehmen, da Sie diese -nicht unterzeichnet haben. Doch gibt Ihnen sonst nichts die Erlaubnis, -die Bibliothek oder von ihr abgeleitete Werke zu verändern oder zu -verbreiten. Diese Handlungen sind gesetzlich verboten, wenn Sie diese -Lizenz nicht annehmen. Indem Sie die Bibliothek (oder ein darauf -basierendes Werk) verändern oder verbreiten, erklären Sie Ihr -Einverständnis mit dieser Lizenz, die Ihnen das erlaubt, mit allen ihren -Bedingungen bezüglich der Vervielfältigung, Verbreitung und Veränderung -der Bibliothek oder eines darauf basierenden Werks. - - §10. Jedesmal, wenn Sie die Bibliothek (oder irgendein auf der -Bibliothek basierendes Werk) weitergeben, erhält der Empfänger -automatisch vom ursprünglichen Lizenzgeber die Lizenz, die Bibliothek -entsprechend den hier festgelegten Bestimmungen zu vervielfältigen, zu -verbreiten und zu verändern und mit ihr zu linken. Sie dürfen keine -weiteren Einschränkungen der Ausübung der hierin zugestandenen Rechte -des Empfängers vornehmen. Sie sind nicht dafür verantwortlich, die -Einhaltung dieser Lizenz durch Dritte durchzusetzen. - - §11. Sollten Ihnen infolge eines Gerichtsurteils, des Vorwurfs einer -Patentverletzung oder aus einem anderen Grunde (nicht auf Patentfragen -begrenzt) Bedingungen (durch Gerichtsbeschluß, Vergleich oder -anderweitig) auferlegt werden, die den Bedingungen dieser Lizenz -widersprechen, so befreien diese Umstände Sie nicht von den Bestimmungen -dieser Lizenz. Wenn es Ihnen nicht möglich ist, die Bibliothek unter -gleichzeitiger Beachtung der Bedingungen in dieser Lizenz und Ihrer -anderweitigen Verpflichtungen zu verbreiten, dann dürfen Sie als Folge -davon die Bibliothek überhaupt nicht verbreiten. Wenn zum Beispiel ein -Patent nicht die gebührenfreie Weiterverbreitung der Bibliothek durch -diejenigen erlaubt, welche die Bibliothek direkt oder indirekt von Ihnen -erhalten haben, dann besteht der einzige Weg, sowohl dem Patentrecht als -auch dieser Lizenz zu genügen, darin, ganz auf die Verbreitung der -Bibliothek zu verzichten. - - Sollte sich ein Teil dieses Paragraphen als ungültig oder unter -bestimmten Umständen nicht durchsetzbar erweisen, so soll dieser -Paragraph seinem Sinne nach angewandt werden; im übrigen soll dieser -Paragraph als Ganzes gelten. - - Zweck dieses Paragraphen ist nicht, Sie dazu zu bringen, irgendwelche -Patente oder andere Eigentumsansprüche zu verletzen oder die Gültigkeit -solcher Ansprüche zu bestreiten; dieser Paragraph hat vielmehr einzig -den Zweck, die Integrität des Verbreitungssystems der freien Software zu -schützen, das durch die Praxis öffentlicher Lizenzen verwirklicht wird. -Viele Leute haben großzügige Beiträge zu dem weitreichenden Angebot der -durch dieses System verbreiteten Software im Vertrauen auf die -konsistente Anwendung dieses Systems geleistet; es obliegt dem Autor -bzw. Geber, zu entscheiden, ob er die Software mittels irgendeines -anderen Systems verbreiten will; ein Lizenznehmer jedoch darf darüber -nicht entscheiden. - - Dieser Paragraph ist dazu gedacht, deutlich klarzustellen, was als -Konsequenz aus den übrigen Bestimmungen dieser Lizenz zu betrachten ist. - - §12. Wenn die Verbreitung und/oder die Benutzung der Bibliothek in -bestimmten Staaten entweder durch Patente oder durch urheberrechtlich -geschützte Schnittstellen eingeschränkt ist, kann der -Urheberrechtsinhaber, der die Bibliothek unter diese Lizenz gestellt -hat, eine explizite geographische Begrenzung der Verbreitung angeben, in -der diese Staaten ausgeschlossen werden, so daß die Verbreitung nur -innerhalb und zwischen den Staaten erlaubt ist, die nicht demgemäß -ausgeschlossen sind. In einem solchen Fall beinhaltet diese Lizenz die -Beschränkung, als wäre sie in diesem Text niedergeschrieben. - - §13. Die Free Software Foundation kann von Zeit zu Zeit überarbeitete -und/oder neue Versionen der Lesser General Public License -veröffentlichen. Solche neuen Versionen werden vom Grundprinzip her der -gegenwärtigen entsprechen, können aber im Detail abweichen, um neuen -Problemen und Anforderungen gerecht zu werden. - - Jede Version dieser Lizenz hat eine eindeutige Versionsnummer. Wenn in -einem Programm angegeben wird, daß es dieser Lizenz in einer bestimmten -Versionsnummer oder „jeder späteren Version“ (“any later version”) -unterliegt, so haben Sie die Wahl, entweder den Bestimmungen der -genannten Version zu folgen oder denen jeder beliebigen späteren -Version, die von der Free Software Foundation veröffentlicht wurde. Wenn -die Bibliothek keine Lizenz-Versionsnummer angibt, können Sie eine -beliebige Version wählen, die jemals von der Free Software Foundation -veröffentlicht wurde. - - §14. Wenn Sie den Wunsch haben, Teile der Bibliothek in anderen freien -Programmen zu verwenden, deren Bedingungen für die Verbreitung anders -sind, schreiben Sie an den Autor der Bibliothek, um ihn um die Erlaubnis -zu bitten. Für Software, die unter dem Copyright der Free Software -Foundation steht, schreiben Sie an die Free Software Foundation; wir -machen zu diesem Zweck gelegentlich Ausnahmen. Unsere Entscheidung wird -von den beiden Zielen geleitet werden, zum einen den freien Status aller -von unserer freien Software abgeleiteten Werke zu erhalten und zum -anderen das gemeinschaftliche Nutzen und Wiederverwenden von Software im -allgemeinen zu fördern. - - - - Keine Gewährleistung - - §15. Da die Bibliothek ohne jegliche Gebühren lizenziert wird, besteht -keinerlei Gewährleistung für die Bibliothek, soweit dies gesetzlich -zulässig ist. Sofern nicht anderweitig schriftlich bestätigt, stellen -die Copyright-Inhaber und/oder Dritte die Bibliothek „so, wie sie ist“ -zur Verfügung, ohne Gewährleistung irgendeiner Art, weder ausdrücklich -noch implizit. Dieser Garantieausschluß gilt auch – ohne darauf -beschränkt zu sein – für Marktreife oder Verwendbarkeit für einen -bestimmten Zweck. Das volle Risiko bezüglich Qualität und -Leistungsfähigkeit der Bibliothek liegt bei Ihnen. Sollte sich die -Bibliothek als fehlerhaft herausstellen, liegen die Kosten für -notwendigen Service, Reparatur oder Korrektur sämtlich bei Ihnen. - - §16. In keinem Fall, außer wenn dies durch geltendes Recht gefordert -wird oder schriftlich zugesichert wurde, ist irgendein Copyright-Inhaber -oder irgendein Dritter, der die Bibliothek wie oben erlaubt modifiziert -oder verbreitet hat, Ihnen gegenüber für irgendwelche Schäden haftbar. -Dies gilt auch für jegliche allgemeine oder spezielle Schäden, für -Schäden durch Nebenwirkungen oder Folgeschäden, die sich aus der -Benutzung oder der Unbenutzbarkeit der Bibliothek ergeben (das gilt -insbesondere – ohne darauf beschränkt zu sein – für Datenverluste, das -Hineinbringen von Ungenauigkeiten in irgendwelche Daten, für Verluste, -die Sie oder Dritte erlitten haben, oder für ein Unvermögen der -Bibliothek, mit irgendeiner anderen Software zusammenzuarbeiten), und -zwar auch dann, wenn ein Copyright-Inhaber oder ein Dritter über die -Möglichkeit solcher Schäden informiert worden ist. - - - - - Ende der Bedingungen - Wie Sie diese Bedingungen auf Ihre eigenen, neuen Bibliotheken - anwenden können - - Wenn Sie eine neue Bibliothek entwickeln und wünschen, daß sie von -größtmöglichem Nutzen für die Allgemeinheit ist, dann empfehlen wir -Ihnen, sie zu einer freien Software zu machen, die jedermann -weiterverteilen und verändern kann. Dies können sie tun, indem Sie eine -Weiterverteilung unter den Bedingungen dieser Lizenz, also der Lesser -GPL erlauben (oder – als Alternative – unter den Bedingungen der -gewöhnlichen Allgemeinen Öffentlichen GNU-Lizenz, der GPL). - - Zur Anwendung dieser Bedingungen fügen Sie zu der Bibliothek die unten -angegebenen Vermerke hinzu. Es ist am sichersten, sie an den Start jeder -Quelldatei anzufügen, um so am wirksamsten den Garantieausschluß bekannt -zu machen; zumindest aber sollte jede Datei die Copyright-Zeile und eine -Angabe enthalten, wo die vollständigen Vermerke zu finden sind. - - [eine Zeile mit dem Namen der Bibliothek und einer Kurzbeschreibung -ihres Zwecks] Copyright (C) [Jahr] [Name des Autors] - - This library is free software; you can redistribute it and/or modify it -under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 2.1 of the License, or (at -your option) any later version. - - This library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser -General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License -along with this library; if not, write to the Free Software Foundation, -Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - -Auf Deutsch: - - Diese Bibliothek ist freie Software; Sie dürfen sie unter den -Bedingungen der GNU Lesser General Public License, wie von der Free -Software Foundation veröffentlicht, weiterverteilen und/oder -modifizieren; entweder gemäß Version 2.1 der Lizenz oder (nach Ihrer -Option) jeder späteren Version. - - Diese Bibliothek wird in der Hoffnung weiterverbreitet, daß sie nützlich -sein wird, jedoch OHNE IRGENDEINE GARANTIE, auch ohne die implizierte -Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN -ZWECK. Mehr Details finden Sie in der GNU Lesser General Public License. - - Sie sollten eine Kopie der GNU Lesser General Public License zusammen -mit dieser Bibliothek erhalten haben; falls nicht, schreiben Sie an die -Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110, USA. - - Fügen Sie auch einen kurzen Hinweis hinzu, wie Sie elektronisch und per -Brief erreichbar sind. - - Soweit vorhanden, sollten Sie auch Ihren Arbeitgeber (wenn Sie als -Programmierer arbeiten) oder Ihre Schule einen Copyright-Verzicht für -die Bibliothek unterschreiben lassen. Hier ein Beispiel. Die Namen -müssen Sie natürlich ändern. - - Yoyodyne, Inc., hereby disclaims all copyright interest in the library -‘Frob’ (a library for tweaking knobs) written by James Random Hacker. - - [Unterschrift von Ty Coon], 1. April 1990 Ty Coon, Vizepräsident - -Auf Deutsch: - - Die Yoyodyne GmbH erhebt keinen urheberrechtlichen Anspruch auf die von -James Random Hacker geschriebene Bibliothek "Frob" (eine Bibliothek für -das Justieren von Knöpfen). - - [Unterschrift von Ty Coon], 1. April 1990 Ty Coon, Vizepräsident - -Das ist schon alles! - diff --git a/windows/Netgen_Installer/LGPL_Licenses/Makefile.am b/windows/Netgen_Installer/LGPL_Licenses/Makefile.am deleted file mode 100644 index c50a07b9..00000000 --- a/windows/Netgen_Installer/LGPL_Licenses/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -dist_noinst_DATA = LGPL_English.txt \ -LGPL_French.txt LGPL_German.txt - - - diff --git a/windows/Netgen_Installer/Makefile.am b/windows/Netgen_Installer/Makefile.am deleted file mode 100644 index a67f3799..00000000 --- a/windows/Netgen_Installer/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -dist_noinst_DATA = netgen_installer.nsi netgen_installer.dat \ -Netgen_Installer_All.bat Netgen_Installer_Win32.bat \ -Netgen_Installer_x64.bat README!.TXT - - - diff --git a/windows/Netgen_Installer/Netgen_Installer_All.bat b/windows/Netgen_Installer/Netgen_Installer_All.bat deleted file mode 100644 index 0858b327..00000000 --- a/windows/Netgen_Installer/Netgen_Installer_All.bat +++ /dev/null @@ -1,73 +0,0 @@ -@echo off -REM ************************************************************* -REM Filename: Netgen_Installer_All.bat -REM -REM Automated NSIS Installer Compilation for creating the -REM Graphical Windows Installer for the Netgen Meshing Software -REM -REM NOTE: This Batch file automatically generates Installers -REM for both, the 32-bit and the 64-bit versions of -REM Netgen -REM -REM Author: Philippose Rajan -REM Date: 11 March 2010 -REM ************************************************************* -SetLocal EnableDelayedExpansion - -REM *** Name of the NSI File to be compiled by the NSIS compiler *** -set NSI_FILENAME=netgen_installer.nsi - -REM ******* Read in the specification file "netgen_installer.dat" ******* -REM * This file contains common settings for the 32-bit / 64-bit and -REM * the combined versions of the automated compile batch files -REM * If the file does not exist, of if the required variables are not -REM * found, default values are set -REM ********************************************************************* -set DATA_FILE=netgen_installer.dat - -if exist "%DATA_FILE%" ( - echo. - echo Reading the Common Data File [%DATA_FILE%].... - for /f "eol=# tokens=1,2 delims==" %%A in (netgen_installer.dat) do ( - if %%A==VERSION ( - set VERSION=%%B - echo Found entry VERSION.... VERSION=!VERSION! - ) - if %%A==NETGEN ( - set NETGEN=%%B - echo Found entry NETGEN.... NETGEN=!NETGEN! - ) - if %%A==NGSOLVE ( - set NGSOLVE=%%B - echo Found entry NGSOLVE.... NGSOLVE=!NGSOLVE! - ) - if %%A==OCC ( - set OCC=%%B - echo Found entry OCC.... OCC=!OCC! - ) - ) -) else ( - echo. - echo WARNING: Common Data File [%DATA_FILE%] not found.... Reverting to defaults!! -) - -if not defined VERSION set VERSION=4.9.XX -if not defined NETGEN set NETGEN=D:\netgenWin\05_Netgen_Main -if not defined NGSOLVE set NGSOLVE=D:\netgenWin\07_NGSolve_Main -if not defined OCC set OCC=D:\occ6.3.0 -REM ******************************************************************** - -echo. -echo 'Creating the NSIS Installer for Netgen 32-bit (Win32)....' -set ARCH=Win32 -D:\NSIS\makensis.exe /DNETGEN_ARCH=%ARCH% /DNETGEN_VER=!VERSION! /DNETGEN_ROOT=!NETGEN! /DNGSOLVE_ROOT=!NGSOLVE! /DOCC_ROOT=!OCC! /Onetgen_%ARCH%_NSIS.log %NSI_FILENAME% -echo. -echo 'Done.... Please read the netgen_%ARCH%_NSIS.log file to check for errors....!' - -echo. -echo 'Creating the NSIS Installer for Netgen 64-bit (Win64)....' -set ARCH=x64 -D:\NSIS\makensis.exe /DNETGEN_ARCH=%ARCH% /DNETGEN_VER=!VERSION! /DNETGEN_ROOT=!NETGEN! /DNGSOLVE_ROOT=!NGSOLVE! /DOCC_ROOT=!OCC! /Onetgen_%ARCH%_NSIS.log %NSI_FILENAME% -echo. -echo 'Done.... Please read the netgen_%ARCH%_NSIS.log file to check for errors....!' -echo. diff --git a/windows/Netgen_Installer/Netgen_Installer_Win32.bat b/windows/Netgen_Installer/Netgen_Installer_Win32.bat deleted file mode 100644 index 620cee32..00000000 --- a/windows/Netgen_Installer/Netgen_Installer_Win32.bat +++ /dev/null @@ -1,65 +0,0 @@ -@echo off -REM ************************************************************* -REM Filename: Netgen_Installer_Win32.bat -REM -REM Automated NSIS Installer Compilation for creating the -REM Graphical Windows Installer for the Netgen Meshing Software -REM -REM NOTE: This Batch file automatically generates the Installer -REM the 32-bit version of Netgen -REM -REM Author: Philippose Rajan -REM Date: 11 March 2010 -REM ************************************************************* -SetLocal EnableDelayedExpansion - -REM *** Name of the NSI File to be compiled by the NSIS compiler *** -set NSI_FILENAME=netgen_installer.nsi - -REM ******* Read in the specification file "netgen_installer.dat" ******* -REM * This file contains common settings for the 32-bit / 64-bit and -REM * the combined versions of the automated compile batch files -REM * If the file does not exist, of if the required variables are not -REM * found, default values are set -REM ********************************************************************* -set DATA_FILE=netgen_installer.dat - -if exist "%DATA_FILE%" ( - echo. - echo Reading the Common Data File [%DATA_FILE%].... - for /f "eol=# tokens=1,2 delims==" %%A in (netgen_installer.dat) do ( - if %%A==VERSION ( - set VERSION=%%B - echo Found entry VERSION.... VERSION=!VERSION! - ) - if %%A==NETGEN ( - set NETGEN=%%B - echo Found entry NETGEN.... NETGEN=!NETGEN! - ) - if %%A==NGSOLVE ( - set NGSOLVE=%%B - echo Found entry NGSOLVE.... NGSOLVE=!NGSOLVE! - ) - if %%A==OCC ( - set OCC=%%B - echo Found entry OCC.... OCC=!OCC! - ) - ) -) else ( - echo. - echo WARNING: Common Data File [%DATA_FILE%] not found.... Reverting to defaults!! -) - -if not defined VERSION set VERSION=4.9.XX -if not defined NETGEN set NETGEN=D:\netgenWin\05_Netgen_Main -if not defined NGSOLVE set NGSOLVE=D:\netgenWin\07_NGSolve_Main -if not defined OCC set OCC=D:\occ6.3.0 -REM ******************************************************************** - -echo. -echo Creating the NSIS Installer for Netgen 32-bit (Win32).... -set ARCH=Win32 -D:\NSIS\makensis.exe /DNETGEN_ARCH=%ARCH% /DNETGEN_VER=!VERSION! /DNETGEN_ROOT=!NETGEN! /DNGSOLVE_ROOT=!NGSOLVE! /DOCC_ROOT=!OCC! /Onetgen_%ARCH%_NSIS.log %NSI_FILENAME% -echo. -echo Done.... Please read the netgen_%ARCH%_NSIS.log file to check for errors....! -echo. diff --git a/windows/Netgen_Installer/Netgen_Installer_x64.bat b/windows/Netgen_Installer/Netgen_Installer_x64.bat deleted file mode 100644 index ffbebd5d..00000000 --- a/windows/Netgen_Installer/Netgen_Installer_x64.bat +++ /dev/null @@ -1,65 +0,0 @@ -@echo off -REM ************************************************************* -REM Filename: Netgen_Installer_x64.bat -REM -REM Automated NSIS Installer Compilation for creating the -REM Graphical Windows Installer for the Netgen Meshing Software -REM -REM NOTE: This Batch file automatically generates the Installer -REM the 64-bit version of Netgen -REM -REM Author: Philippose Rajan -REM Date: 11 March 2010 -REM ************************************************************* -SetLocal EnableDelayedExpansion - -REM *** Name of the NSI File to be compiled by the NSIS compiler *** -set NSI_FILENAME=netgen_installer.nsi - -REM ******* Read in the specification file "netgen_installer.dat" ******* -REM * This file contains common settings for the 32-bit / 64-bit and -REM * the combined versions of the automated compile batch files -REM * If the file does not exist, of if the required variables are not -REM * found, default values are set -REM ********************************************************************* -set DATA_FILE=netgen_installer.dat - -if exist "%DATA_FILE%" ( - echo. - echo Reading the Common Data File [%DATA_FILE%].... - for /f "eol=# tokens=1,2 delims==" %%A in (netgen_installer.dat) do ( - if %%A==VERSION ( - set VERSION=%%B - echo Found entry VERSION.... VERSION=!VERSION! - ) - if %%A==NETGEN ( - set NETGEN=%%B - echo Found entry NETGEN.... NETGEN=!NETGEN! - ) - if %%A==NGSOLVE ( - set NGSOLVE=%%B - echo Found entry NGSOLVE.... NGSOLVE=!NGSOLVE! - ) - if %%A==OCC ( - set OCC=%%B - echo Found entry OCC.... OCC=!OCC! - ) - ) -) else ( - echo. - echo WARNING: Common Data File [%DATA_FILE%] not found.... Reverting to defaults!! -) - -if not defined VERSION set VERSION=4.9.XX -if not defined NETGEN set NETGEN=D:\netgenWin\05_Netgen_Main -if not defined NGSOLVE set NGSOLVE=D:\netgenWin\07_NGSolve_Main -if not defined OCC set OCC=D:\occ6.3.0 -REM ******************************************************************** - -echo. -echo Creating the NSIS Installer for Netgen 64-bit (Win64).... -set ARCH=x64 -D:\NSIS\makensis.exe /DNETGEN_ARCH=%ARCH% /DNETGEN_VER=%VERSION% /DNETGEN_ROOT=%NETGEN% /DNGSOLVE_ROOT=%NGSOLVE% /DOCC_ROOT=%OCC% /Onetgen_%ARCH%_NSIS.log %NSI_FILENAME% -echo. -echo Done.... Please read the netgen_%ARCH%_NSIS.log file to check for errors....! -echo. diff --git a/windows/Netgen_Installer/README!.TXT b/windows/Netgen_Installer/README!.TXT deleted file mode 100644 index 0099d051..00000000 --- a/windows/Netgen_Installer/README!.TXT +++ /dev/null @@ -1,91 +0,0 @@ -******************************************************************* -* Netgen Mesher NSIS Installer -* Target Operating Systems: Windows XP / Vista / 7 -* Target Achitectures: 32-bit / 64-bit -* NSIS Version: 2.46 (http://nsis.sourceforge.net/Main_Page) -* -* Author: Philippose Rajan -* Initial Release Date: 21 March 2010 -* -******************************************************************* -* Description: - This folder contains files necessary for generating and deploying -the Windows Installer for the Netgen Mesher created using the -Nullsoft Scriptable Install System (NSIS). - - The NSIS configuration/specification file of the installer -supports automated generation of the NSIS Installer for both, the -32-bit (Win32) as well as the 64-bit x64) variants of the Netgen -Mesher. - - It should be noted however, that the Installer executable created -by the NSIS compiler (for example, Netgen-4.9.12_Win32.exe) is itself, -always a 32-bit executable. - -******************************************************************* -* Folder contents: - ** netgen_installer.nsi - --> NSIS configuration/specification file used by the NSIS - compiler for generating the Installer executables. - - ** netgen_installer.dat - --> Common Data File for the following batch routines. This - file contains user modifiable settings such as the version - number of Netgen to be used, the location of the sources and - binaries, etc...etc. - - ** Netgen_Installer_All.bat - --> Windows Command-line batch file for creating both, the - Installer for the 32-bit as well as the 64-bit variants of - the Netgen Mesher. - - ** Netgen_Installer_Win32.bat - --> Windows Command-line batch file for creating the Installer - for the 32-bit (Win32) variant of the Netgen Mesher. - - ** Netgen_Installer_x64.bat - --> Windows Command-line batch file for creating the Installer - for the 64-bit (x64) variant of the Netgen Mesher. - - ** LGPL_Licenses [Folder] - --> This folder contains the LGPL License text in the various - languages supported by the Installer. - --> Currently supported languages: - * English - * German - * French - -******************************************************************* -* Netgen Version, Architecture and Folder structure Setup: - The following variables need to be set in the automated compile -batch files (Netgen_Installer_.bat) via the Common -Data File (netgen_installer.dat): - * VERSION - The current version of the Netgen Mesher (Ex. 4.9.12) - for which the installers are being generated - - * ARCH - The target architecture for which the installer is - to be generated - - NOTE: This value is set within the BATCH Files, the - user must not make any modifications to this variable - - Valid values: Win32 | x64 - - * NETGEN - Root of the Netgen installation on the computer on - which the NSIS compiler is being run - - This is required to find the source and binary files - of the various variants of the Netgen Mesher during - generation of the Installer - - * NGSOLVE - Root of the NGSolve installation on the computer on - which the NSIS compiler is being run - - This is required to find the source and binary files - of the various variants of the NGSolve add-on during - generation of the Installer - - * OCC - Root of the OpenCascade installation on the computer - on which the NSIS compiler is being run - - This is required to find the OpenCascade DLL files - which also need to be packahed into the Installer for - the Netgen Mesher in order to provide support for - OpenCascade Geometry - -******************************************************************* \ No newline at end of file diff --git a/windows/Netgen_Installer/netgen_installer.dat b/windows/Netgen_Installer/netgen_installer.dat deleted file mode 100644 index d60fc71b..00000000 --- a/windows/Netgen_Installer/netgen_installer.dat +++ /dev/null @@ -1,32 +0,0 @@ -# ------------------------------------------------------------ -# Common Data File for the automated compile batch routines -# used to generate the Netgen Mesher Windows installers -# -# Modify this file as required -# -# Author: Philippose Rajan -# Creation Date: 22 March 2010 -# ------------------------------------------------------------ -# -# History -# ------- -# 4.9.13-RC : 17-18/04/2010 -# 4.9.13 : 21/05/2010 -# -# ------------------------------------------------------------ - - -# Version of Netgen to be packaged by the installer -VERSION=4.9.13 - -# Root location of the Netgen Sources and binaries -# for the various flavours -NETGEN=D:\netgenWin\05_Netgen_Main - -# Root location of the NGSolve Sources and binaries -# for the various flavours -NGSOLVE=D:\netgenWin\07_NGSolve_Main - -# Root location of the OpenCascade DLLs which also -# need to be packged into the installer -OCC=D:\occ6.3.0 diff --git a/windows/Netgen_Installer/netgen_installer.nsi b/windows/Netgen_Installer/netgen_installer.nsi deleted file mode 100644 index e337edaf..00000000 --- a/windows/Netgen_Installer/netgen_installer.nsi +++ /dev/null @@ -1,1050 +0,0 @@ -; ----------------------------------------------- -/* - Nullsoft Installer for Netgen 32-bit and 64-bit - - Filename: netgen_installer.nsi - Author : Philippose Rajan - Date : 11 March 2010 - - Description: This installer automates the process - of installing Netgen / Nglib and the associated - libraries on a Windows system - ** Also gives the option of installing NgSolve - and samples of the Plug-In architecture - ** NOTE: This installer can create both, the 32-bit - and the 64-bit versions of Netgen, depending on the - variable "NETGEN_ARCH" - NETGEN_ARCH - -*/ -; ------------------------------------------------ - - - -; ---------- Set the Compression Alg ---- -SetCompressor /SOLID /FINAL lzma -; --------------------------------------- - - - -; ---------- Include files -------------- -; Include for sending Windows Messages -!include WinMessages.nsh - -; Include the Modern UI subsystem -!include MUI2.nsh - -; Include the Logic Library -!include LogicLib.nsh - -; Miscellaneous string functions -;!include StrContains.nsh -; --------------------------------------- - - - -; ---------- Variable declarations ------ -Var foundTclTkTix -Var foundTogl -Var foundPThds -Var foundOCC -Var foundLapackBlas -Var foundMKLLibs -Var StartMenuFolder -Var NetgenUserDir -; --------------------------------------- - - - -; ---------- House-keeping -------------- -; Define the terms to be used for the various architectures -; supported by Netgen -!define WIN32_ARCH "Win32" -!define X64_ARCH "x64" - - -; ########## MODIFY AS REQUIRED ############### -; Tell NSIS which architecture to use to create -; the installer -; NOTE: Currently this variable is set at the -; Command line when called "makensis.exe" using -; /DNETGEN_ARCH= -;!define NETGEN_ARCH ${WIN32_ARCH} -;!define NETGEN_ARCH ${X64_ARCH} - -; Change the version number of Netgen here -; NOTE: Currently this variable is set at the -; Command line when called "makensis.exe" using -; /DNETGEN_VER= -;!define NETGEN_VER "4.9.12" - - - -; Check if the Architecture and the version of Netgen have been specified -!ifndef NETGEN_ARCH - !error "Error: NETGEN_ARCH not defined....Please define this on the command line.....Aborting!" -!endif -!ifndef NETGEN_VER - !error "Error: NETGEN_VER not defined....Please define this on the command line.....Aborting!" -!endif - - -; Display the currently selected Netgen Architecture -!echo "Current Netgen Architecture: ${NETGEN_ARCH}" - -; Display the current version of Netgen -!echo "Current Netgen Version: ${NETGEN_VER}" -; ############################################# - - - -; Part to be added to the "tcl" folders for 64-bit architecture -!if ${NETGEN_ARCH} == ${WIN32_ARCH} - !define TCL_ARCH_EXT "" -!else if ${NETGEN_ARCH} == ${X64_ARCH} - !define TCL_ARCH_EXT "-64" -!else - !error "Error: Netgen Architecture not specified.....Aborting!" -!endif - -; Part to be added to the "pthread" DLL for 32-bit or 64-bit architecture -!if ${NETGEN_ARCH} == ${WIN32_ARCH} - !define PTHDS_ARCH_DIR "-w32" - !define PTHDS_ARCH_EXT "" -!else if ${NETGEN_ARCH} == ${X64_ARCH} - !define PTHDS_ARCH_DIR "-w64" - !define PTHDS_ARCH_EXT "_64" -!else - !error "Error: Netgen Architecture not specified.....Aborting!" -!endif - -; Part to be added to the "Intel Math Kernel Libraries" DLL for 32-bit or 64-bit architecture -!if ${NETGEN_ARCH} == ${WIN32_ARCH} - !define MKL_ARCH_DIR "-w32" -!else if ${NETGEN_ARCH} == ${X64_ARCH} - !define MKL_ARCH_DIR "-w64" -!else - !error "Error: Netgen Architecture not specified.....Aborting!" -!endif - -; Location of the OCC libraries for different architectures -!if ${NETGEN_ARCH} == ${WIN32_ARCH} - !define OCC_ARCH "win32" -!else if ${NETGEN_ARCH} == ${X64_ARCH} - !define OCC_ARCH "win64" -!else - !error "Error: Netgen Architecture not specified.....Aborting!" -!endif - - - -; ########## MODIFY AS REQUIRED ############### -; Set up paths for access to various files -; Note #1: Change this according to the setup on -; the machine where the installer is being compiled -; Note #2: These paths can be set from the command -; line when calling "makensis.exe" by using: -; /DNETGEN_ROOT= -; /DNGSOLVE_ROOT= -; /DOCC_ROOT= -!ifndef NETGEN_ROOT - !define NETGEN_ROOT "D:\netgenWin\05_Netgen_Main" -!endif -!ifndef NGSOLVE_ROOT - !define NGSOLVE_ROOT "D:\netgenWin\07_NGSolve_Main" -!endif -!ifndef OCC_ROOT - !define OCC_ROOT "D:\occ6.3.0" -!endif - -; Display the currently selected Root Paths -!echo "Netgen Root: ${NETGEN_ROOT}" -!echo "NGSolve Root: ${NGSOLVE_ROOT}" -!echo "OpenCascade Root: ${OCC_ROOT}" - - - -; Setup the directory structures that NSIS uses to access -; the various flavours of Netgen, Nglib and NgSolve -; Namely: -; ** With and Without OpenCascade Support -; ** 32-bit or 64-bit versions -!define NETGEN_SRC "${NETGEN_ROOT}\netgen" -!define NETGEN_BASIC "${NETGEN_ROOT}\netgen-instNoOCC_${NETGEN_ARCH}" -!define NETGEN_OCC "${NETGEN_ROOT}\netgen-instOCC_${NETGEN_ARCH}" - -!define EXTLIBS_TCLTKTIX "${NETGEN_ROOT}\ext_libs\tcl${TCL_ARCH_EXT}" -!define EXTLIBS_TOGL "${NETGEN_ROOT}\ext_libs\tcl${TCL_ARCH_EXT}" - -!define EXTLIBS_PTHDS "${NETGEN_ROOT}\ext_libs\pthread${PTHDS_ARCH_DIR}" - -!define NGLIB_SRC "${NETGEN_ROOT}\netgen\nglib" -!define NGLIB_BIN_BASIC "${NETGEN_ROOT}\nglib-instNoOCC_${NETGEN_ARCH}" -!define NGLIB_BIN_OCC "${NETGEN_ROOT}\nglib-instOCC_${NETGEN_ARCH}" - -!define DEMOAPP_SRC "${NETGEN_ROOT}\demoapp" -!define DEMOAPP_BIN "${NETGEN_ROOT}\netgen-demoapp_${NETGEN_ARCH}" - -!define NGSOLVE_SRC "${NGSOLVE_ROOT}\ngsolve" -!define NGSOLVE_BIN "${NGSOLVE_ROOT}\ngsolve-inst_${NETGEN_ARCH}" -!define NGSOLVE_LAPACKLIBS "${NGSOLVE_ROOT}\ext_libs\lapack-blas" -!define NGSOLVE_MKLLIBS "${NGSOLVE_ROOT}\ext_libs\mkl${MKL_ARCH_DIR}" - -!define EXTLIBS_OCC "${OCC_ROOT}\ros\${OCC_ARCH}\bin" - -; Folder which contains the LGPL License in various languages -!define LGPL_LICENSE_SRC ".\LGPL_Licenses" - -; Location of the installer binary created by the NSIS compiler -!define OUTPUT_DIR ".\Binaries" -; ############################################# - - - - - -; ########## USUALLY NOTHING NEEDS TO BE CHANGED BEYOND THIS POINT ########### - -; Name of environment variable required by -; Netgen for finding the required scripts -!define NETGENDIR "NETGENDIR" -!define NETGEN_USER_DIR "NETGEN_USER_DIR" - -; Paths within the Windows Registry which are -; required for environment variables -!define HKLM_ENV 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"' -!define HKCU_ENV 'HKCU "Environment"' -!define SHELLFOLDERS "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" - -; Name to be used within the installer to refer to -; the program -Name "Netgen Mesher (${NETGEN_ARCH})" - -; Set the location of the output directory where the installer will be generated -!system 'md "${OUTPUT_DIR}"' - -; Name of the generated installer -OutFile "${OUTPUT_DIR}\Netgen-${NETGEN_VER}_${NETGEN_ARCH}.exe" - -; Set the style -XPStyle on - -; Default installation folder -InstallDir "$PROGRAMFILES\Netgen-${NETGEN_VER}_${NETGEN_ARCH}" - -; Try to get the current installed folder (if any) -InstallDirRegKey HKCU "Software\Netgen\${NETGEN_VER}_${NETGEN_ARCH}" "Install_Dir" - -; Request application privileges for Windows Vista -RequestExecutionLevel user -; --------------------------------------- - - - -; ---------- Interface settings --------- -; Currently uses the Modern UI v2 User Interface - -; Define the bitmap to use for the welcome and finish pages -!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp" -!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp" - -; Display a header bitmap image on top right of each page -!define MUI_HEADERIMAGE -!define MUI_HEADERIMAGE_RIGHT -!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\orange-r.bmp" -!define MUI_HEADERIMAGE_UNBITMAP "${NSISDIR}\Contrib\Graphics\Header\orange-r.bmp" - -!define MUI_ABORTWARNING - -; Select the Icon to use for the generated installer -!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install-nsis.ico" -!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall-nsis.ico" -; --------------------------------------- - - - -; ---------- Pages to display ----------- -!insertmacro MUI_PAGE_WELCOME -!insertmacro MUI_PAGE_LICENSE "$(license)" -!insertmacro MUI_PAGE_COMPONENTS - -; Select the Installation Directory -!define MUI_DIRECTORYPAGE_VARIABLE $INSTDIR -!define MUI_DIRECTORYPAGE_TEXT_DESTINATION $(STR_InstallFolder) -!insertmacro MUI_PAGE_DIRECTORY - -; Select the Netgen user Directory -!define MUI_PAGE_HEADER_TEXT $(STR_UserPageHeaderText) -!define MUI_PAGE_HEADER_SUBTEXT $(STR_UserPageHeaderSubText) -!define MUI_DIRECTORYPAGE_TEXT_TOP $(STR_UserPageText) -!define MUI_DIRECTORYPAGE_TEXT_DESTINATION $(STR_UserFolder) -!define MUI_DIRECTORYPAGE_VARIABLE $NetgenUserDir -!insertmacro MUI_PAGE_DIRECTORY - -; Set up the Start Menu Page -!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" -!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Netgen\${NETGEN_VER}_${NETGEN_ARCH}" -!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start_Menu_Folder" -!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Netgen" -!insertmacro MUI_PAGE_STARTMENU NetgenStartMenu $StartMenuFolder - -!insertmacro MUI_PAGE_INSTFILES - -!define MUI_FINISHPAGE_RUN "$INSTDIR\bin\netgen.exe" -!define MUI_FINISHPAGE_RUN_TEXT $(STR_Finish_RunText) -!insertmacro MUI_PAGE_FINISH - -!insertmacro MUI_UNPAGE_WELCOME -!insertmacro MUI_UNPAGE_CONFIRM -!insertmacro MUI_UNPAGE_INSTFILES -!insertmacro MUI_UNPAGE_FINISH -; --------------------------------------- - - - -; ---------- Languages to use ----------- -!insertmacro MUI_LANGUAGE "English" -!insertmacro MUI_LANGUAGE "German" -!insertmacro MUI_LANGUAGE "French" -; --------------------------------------- - - - -; ---------- Reserve Files -------------- -!insertmacro MUI_RESERVEFILE_LANGDLL -; --------------------------------------- - - -; ---------- License files -------------- -LicenseLangString license ${LANG_ENGLISH} ${LGPL_LICENSE_SRC}\LGPL_English.txt -LicenseLangString license ${LANG_GERMAN} ${LGPL_LICENSE_SRC}\LGPL_German.txt -LicenseLangString license ${LANG_FRENCH} ${LGPL_LICENSE_SRC}\LGPL_French.txt -LicenseData $(license) -; --------------------------------------- - - - -; ---------- File Copy Macros ----------- -; Macro to copy basic Netgen files into the -; install location -; These files are common to the versions of -; netgen with and without OCC support -!macro copyNetgenBasics reqDir - ; Set the output path to the install - ; folder path - SetOutPath $INSTDIR - - ; Create the directory structure - ; used for the installation - CreateDirectory "$INSTDIR\bin" - CreateDirectory "$INSTDIR\include" - CreateDirectory "$INSTDIR\lib" - CreateDirectory "$INSTDIR\doc" - - ; Create the user specific directory where netgen - ; stores configuration information - CreateDirectory "$NetgenUserDir" - - ; Copy the files into the right - ; folders - SetOutPath "$INSTDIR\bin" - File ${reqDir}\bin\*.tcl - File ${reqDir}\bin\*.exe - File ${reqDir}\bin\*.ocf - - SetOutPath "$INSTDIR\include" - File ${reqDir}\include\*.h - File ${reqDir}\include\*.hpp - - SetOutPath "$INSTDIR\lib" - File ${reqDir}\lib\*.lib - - SetOutPath "$INSTDIR\doc" - File ${NETGEN_SRC}\doc\*.pdf - - SetOutPath "$INSTDIR\tutorials" - File ${NETGEN_SRC}\tutorials\*.* -!macroend -; --------------------------------------- - - - -; Macro to copy the common auxiliary -; libraries -; The main libraries handled here are the -; Tcl, Tk, Tix, Togl and pthread-w32 libraries -!macro copyAuxLibBasics - ; Install the required Auxiliary Libraries - ; (If not already available and accessible) - ${If} $foundTclTkTix != "1" - SetOutPath "$INSTDIR\bin" - File ${EXTLIBS_TCLTKTIX}\bin\tcl85.dll - File ${EXTLIBS_TCLTKTIX}\bin\tclpip85.dll - File ${EXTLIBS_TCLTKTIX}\bin\tk85.dll - File ${EXTLIBS_TCLTKTIX}\bin\tix84.dll - - ; Copy the basic Tcl headers and lib files to help - ; with compilation of NgSolve - SetOutPath "$INSTDIR\include" - File ${EXTLIBS_TCLTKTIX}\include\tcl.h - File ${EXTLIBS_TCLTKTIX}\include\tclDecls.h - File ${EXTLIBS_TCLTKTIX}\include\tclPlatDecls.h - - SetOutPath "$INSTDIR\lib" - File ${EXTLIBS_TCLTKTIX}\lib\tcl85.lib - File /r /x *.lib /x demos /x tzdata ${EXTLIBS_TCLTKTIX}\lib\*.* - ${EndIf} - - ${If} $foundTogl != "1" - SetOutPath "$INSTDIR\bin" - File ${EXTLIBS_TOGL}\bin\Togl17.dll - ${EndIf} - - ${If} $foundPThds != "1" - SetOutPath "$INSTDIR\bin" - File ${EXTLIBS_PTHDS}\lib\pthreadVC2${PTHDS_ARCH_EXT}.dll - ${EndIf} -!macroend -; --------------------------------------- - - - -; Macro to write the install folder and the -; NETGENDIR environment variable into the registry, -; and write the uninstaller.exe file -!macro registerInstall - ; Set the NETGENDIR environment variable to the current - ; installation bin folder - WriteRegExpandStr ${HKCU_ENV} "${NETGENDIR}" "$INSTDIR\bin" - - ; Set the NETGEN_USER_DIR environment variable to the user - ; selected folder - WriteRegExpandStr ${HKCU_ENV} "${NETGEN_USER_DIR}" $NetgenUserDir - - ; Broadcast the changes in the environment variables to the rest of the system - SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 - - ; Write the installation path into the registry - WriteRegStr HKCU "Software\Netgen\${NETGEN_VER}_${NETGEN_ARCH}" "Install_Dir" "$INSTDIR" - WriteRegStr HKCU "Software\Netgen\${NETGEN_VER}_${NETGEN_ARCH}" "User_Dir" "$NetgenUserDir" - - ; Write the un-installer - WriteUninstaller "$INSTDIR\uninstall.exe" - - SetOutPath "$INSTDIR\tutorials" - - ; Write the Start Menu items - !insertmacro MUI_STARTMENU_WRITE_BEGIN NetgenStartMenu - CreateDirectory "$SMPROGRAMS\$StartMenuFolder" - CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Netgen ${NETGEN_VER}.lnk" "$INSTDIR\bin\netgen.exe" - CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Netgen User Manual.lnk" "$INSTDIR\doc\ng4.pdf" - CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\uninstall.exe" - !insertmacro MUI_STARTMENU_WRITE_END -!macroend -; --------------------------------------- -; --------------------------------------- - - - -; ---------- Main Section --------------- -SectionGroup /e "Netgen Executable" - - Section "Netgen Basic" secNetgen - - LogSet on - - ; Copy the basic Netgen files into the - ; install location - !insertmacro copyNetgenBasics ${NETGEN_BASIC} - - ; Check if required libraries are present - ; if not, mark them to be installed too - Call checkTclTkTix - Call checkTogl - Call checkPThds - - ; Copy the basic auxiliary libraries - ; (if required) to the install location - !insertmacro copyAuxLibBasics - - ; register the install by adding registry - ; keys, and write the uninstaller - !insertmacro registerInstall - SectionEnd - - Section /o "Netgen with OCC" secNetgenOCC - - LogSet on - - ; Copy the basic Netgen files into the - ; install location - !insertmacro copyNetgenBasics ${NETGEN_OCC} - - ; Check if required libraries are present - ; if not, mark them to be installed too - Call checkTclTkTix - Call checkTogl - Call checkPThds - Call checkOCC - - ; Copy the basic auxiliary libraries - ; (if required) to the install location - !insertmacro copyAuxLibBasics - - StrCmp $foundOCC "1" OCCInstalled 0 - SetOutPath "$INSTDIR\bin" - File ${EXTLIBS_OCC}\*.dll - OCCInstalled: - - ; register the install by adding registry - ; keys, and write the uninstaller - !insertmacro registerInstall - SectionEnd - -SectionGroupEnd - - - -SectionGroup "Netgen API DLL (Nglib)" - Section /o "Nglib" secNglib - - ; Copy the nglib Basic DLL to the bin folder - ; in the install location - SetOutPath "$INSTDIR\bin" - File ${NGLIB_BIN_BASIC}\bin\nglib.dll - - ; Copy the nglib LIB file to the lib folder - ; in the install location - SetOutPath "$INSTDIR\lib" - File ${NGLIB_BIN_BASIC}\lib\nglib.lib - - ; Copy the nglib include header file to the - ; include folder in the install location - SetOutPath "$INSTDIR\include" - File ${NGLIB_SRC}\nglib.h - SectionEnd - - Section /o "Nglib with OCC" secNglibOCC - - ; Copy the nglib DLL version with OCC support to the bin folder - ; in the install location - SetOutPath "$INSTDIR\bin" - File ${NGLIB_BIN_OCC}\bin\nglib.dll - - ; Copy the nglib LIB file to the lib folder - ; in the install location - SetOutPath "$INSTDIR\lib" - File ${NGLIB_BIN_OCC}\lib\nglib.lib - - ; Copy the nglib include header file to the - ; include folder in the install location - SetOutPath "$INSTDIR\include" - File ${NGLIB_SRC}\nglib.h - SectionEnd - - Section /o "Nglib examples" secNglibEx - - SectionEnd - -SectionGroupEnd - - - -SectionGroup "Add-On Applications" - - Section /o "NgSolve" secNgSolve - - ; Check if required libraries are present - ; if not, mark them to be installed too - Call checkLapackBlas - Call checkMKLLibs - - ; Copy the DLL and Tcl files to the - ; Netgen bin folder - SetOutPath "$INSTDIR\bin" - File ${NGSOLVE_BIN}\bin\*.dll - File ${NGSOLVE_BIN}\bin\*.tcl - - ${If} ${NETGEN_ARCH} != ${X64_ARCH} - ${If} $foundLapackBlas != "1" - SetOutPath "$INSTDIR\bin" - File ${NGSOLVE_LAPACKLIBS}\bin\*.dll - ${EndIf} - ${EndIf} - - ${If} $foundMKLLibs != "1" - SetOutPath "$INSTDIR\bin" - File ${NGSOLVE_MKLLIBS}\bin\*.dll - ${EndIf} - - ; Copy the NGSolve LIB file to the - ; Netgen lib folder - SetOutPath "$INSTDIR\lib" - File ${NGSOLVE_BIN}\lib\*.lib - - ; Copy the NGSolve header file structure - ; to the Netgen include folder - SetOutPath "$INSTDIR\include\include" - File ${NGSOLVE_SRC}\include\*.hpp - - SetOutPath "$INSTDIR\include\solve" - File ${NGSOLVE_SRC}\solve\*.hpp - - SetOutPath "$INSTDIR\include\parallel" - File ${NGSOLVE_SRC}\parallel\*.hpp - - SetOutPath "$INSTDIR\include\ngstd" - File ${NGSOLVE_SRC}\ngstd\*.hpp - - SetOutPath "$INSTDIR\include\multigrid" - File ${NGSOLVE_SRC}\multigrid\*.hpp - - SetOutPath "$INSTDIR\include\linalg" - File ${NGSOLVE_SRC}\linalg\*.hpp - - SetOutPath "$INSTDIR\include\fem" - File ${NGSOLVE_SRC}\fem\*.hpp - - SetOutPath "$INSTDIR\include\comp" - File ${NGSOLVE_SRC}\comp\*.hpp - - SetOutPath "$INSTDIR\include\basiclinalg" - File ${NGSOLVE_SRC}\basiclinalg\*.hpp - - - ; Copy the NgSolve pde tutorials to the - ; installation folder - SetOutPath "$INSTDIR\pde_tutorials" - File ${NGSOLVE_SRC}\pde_tutorial\*.* - SectionEnd - - - Section /o "demoapp" secDemoApp - - ; Copy the demoapp DLL and Tcl files - ; to the Netgen bin folder - SetOutPath "$INSTDIR\bin" - File ${DEMOAPP_BIN}\bin\*.dll - File ${DEMOAPP_BIN}\bin\*.tcl - - ; Copy the source files to the plugins folder - ; under a subdirectory named "demoapp" - SetOutPath "$INSTDIR\plugins\demoapp" - File ${DEMOAPP_SRC}\*.cpp - File ${DEMOAPP_SRC}\*.h - File ${DEMOAPP_SRC}\*.tcl - File ${DEMOAPP_SRC}\README - - SetOutPath "$INSTDIR\plugins\demoapp\windows" - File ${DEMOAPP_SRC}\windows\*.sln - File ${DEMOAPP_SRC}\windows\*.vcproj - File ${DEMOAPP_SRC}\windows\*.bat - SectionEnd - -SectionGroupEnd -; --------------------------------------- - - - -; ---------- Un-Installer Section ------- -Section Uninstall - - ; The first step is to always delete the - ; uninstaller - Delete "$INSTDIR\uninstall.exe" - - ; Remove the folders one by one... - ; Could be done in one shot, but prefer - ; to be a little clearer here - RMDir /r /REBOOTOK "$INSTDIR\bin" - RMDir /r /REBOOTOK "$INSTDIR\lib" - RMDir /r /REBOOTOK "$INSTDIR\include" - RMDir /r /REBOOTOK "$INSTDIR\doc" - RMDir /r /REBOOTOK "$INSTDIR\plugins" - RMDir /r /REBOOTOK "$INSTDIR\tutorials" - - ; Finally remove the install folder - RMDir /r /REBOOTOK $INSTDIR - - ; Remove the NETGENDIR registry key - DeleteRegValue ${HKCU_ENV} "${NETGENDIR}" - DeleteRegValue ${HKCU_ENV} "${NETGEN_USER_DIR}" - - !insertmacro MUI_STARTMENU_GETFOLDER NetgenStartMenu $StartMenuFolder - RMDir /r /REBOOTOK "$SMPROGRAMS\$StartMenuFolder" - - ; Remove the Netgen entry from the SOFTWARE registry - DeleteRegKey HKCU "SOFTWARE\Netgen\${NETGEN_VER}_${NETGEN_ARCH}" - DeleteRegKey /ifempty HKCU "SOFTWARE\Netgen" - - ; Broadcast the changes in the environment variables to the rest of the system - SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 -SectionEnd - - -; ---------- Section Descriptions ------- - -LangString DESC_secNetgen ${LANG_ENGLISH} "Basic version of the Netgen Mesher" -LangString DESC_secNetgen ${LANG_GERMAN} "Basis Version des Netgen Vernetzungstools" -LangString DESC_secNetgen ${LANG_FRENCH} "Version de base de l'outil de maillage Netgen" - -LangString DESC_secNetgenOCC ${LANG_ENGLISH} "Netgen Mesher version with OpenCascade geometry support (STEP/IGES/BREP files)" -LangString DESC_secNetgenOCC ${LANG_GERMAN} "Der Netgen Vernetzungstool mit eingebauter Unterstützung für OpenCascade Geometrie (STEP/IGES/BREP Dateien)" -LangString DESC_secNetgenOCC ${LANG_FRENCH} "Netgen outil de maillage avec le soutien de la géométrie OpenCascade (STEP/IGES/BREP fichiers)" - -LangString DESC_secNglib ${LANG_ENGLISH} "Library (DLL) version of the Netgen Mesher containing the API for use in Third-party Software" -LangString DESC_secNglib ${LANG_GERMAN} "Bibliotheksversion (DLL) des Netgen Vernetzungstools für Anwendung von innerhalb externen Software" -LangString DESC_secNglib ${LANG_FRENCH} "Bibliothèque (DLL) version de l'outil de maillage Netgen contenant l'API pour une utilisation dans Logiciels tiers" - -LangString DESC_secNglibOCC ${LANG_ENGLISH} "Library (DLL) version of the Netgen Mesher with OpenCascade geometry support containing the API for use in Third-party Software" -LangString DESC_secNglibOCC ${LANG_GERMAN} "Bibliotheksversion (DLL) des Netgen Vernetzungstools mit eingebauter Unterstützung für OpenCascade Geometrie für Anwendung von innerhalb externen Software" -LangString DESC_secNglibOCC ${LANG_FRENCH} "Bibliothèque (DLL) version de l'outil de maillage Netgen contenant l'API pour une utilisation dans Logiciels tiers avec le soutien de la géométrie OpenCascade" - - -!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN - !insertmacro MUI_DESCRIPTION_TEXT ${secNetgen} $(DESC_secNetgen) - - !insertmacro MUI_DESCRIPTION_TEXT ${secNetgenOCC} $(DESC_secNetgenOCC) - - !insertmacro MUI_DESCRIPTION_TEXT ${secNglib} $(DESC_secNglib) - - !insertmacro MUI_DESCRIPTION_TEXT ${secNglibOCC} $(DESC_secNglibOCC) - - !insertmacro MUI_DESCRIPTION_TEXT ${secNgSolve} "Pre-compiled (DLL) version of the NgSolve module - The Netgen Solver Module" - - !insertmacro MUI_DESCRIPTION_TEXT ${secDemoApp} "Sample of a plugin application for customising and extending Netgen - Source files and pre-compiled DLL" - - !insertmacro MUI_DESCRIPTION_TEXT ${secNglibEx} "Sample applications for demonstrating the NgLib API DLL" -!insertmacro MUI_FUNCTION_DESCRIPTION_END - - -; ---------- Miscellaneous Description Strings ------- - -LangString STR_InstallFolder ${LANG_ENGLISH} "Installation Directory" -LangString STR_InstallFolder ${LANG_GERMAN} "Installationsordner" -LangString STR_InstallFolder ${LANG_FRENCH} "Dossier d'installation" - -LangString STR_UserFolder ${LANG_ENGLISH} "Directory for User specific settings" -LangString STR_UserFolder ${LANG_GERMAN} "Ordner für Benutzerspezifische Einstellungen" -LangString STR_UserFolder ${LANG_FRENCH} "Dossier pour les paramètres spécifiques de l'utilisateur" - -LangString STR_UserPageText ${LANG_ENGLISH} "Netgen uses the directory specified here in order to save user-specific configuration information. Make sure that you have write access for the selected folder." -LangString STR_UserPageText ${LANG_GERMAN} "Netgen verwendet das hier angegebene Verzeichnis um anwenderspezifische Konfigurationsdatein zu speichern. Vergewissern Sie sich dass Sie Schreibrechte in diesem Verzeichnis haben" -LangString STR_UserPageText ${LANG_FRENCH} "Netgen utilise le dossier spécifié ici afin de sauver l'utilisateur des informations de configuration spécifiques. Assurez-vous que vous avez accès en écriture pour le dossier sélectionné." - -LangString STR_UserPageHeaderText ${LANG_ENGLISH} "Select Location for User Specific Settings" -LangString STR_UserPageHeaderText ${LANG_GERMAN} "Zielverzeichnis für Benutzerspezifische Einstellungen" -LangString STR_UserPageHeaderText ${LANG_FRENCH} "Sélectionnez le dossier contenant les paramètres spécifiques à l'utilisateur" - -LangString STR_UserPageHeaderSubText ${LANG_ENGLISH} "Select the folder which Netgen Mesher can use to save user specific data" -LangString STR_UserPageHeaderSubText ${LANG_GERMAN} "Wählen Sie das Verzeichnis aus, in das Netgen Mesher die Benutzerspezifische Daten speichern soll" -LangString STR_UserPageHeaderSubText ${LANG_FRENCH} "Sélectionnez le dossier dans lequel l'outil de maillage Netgen pouvez utiliser pour enregistrer des données utilisateur spécifiques" - -LangString STR_Finish_RunText ${LANG_ENGLISH} "Run Netgen-${NETGEN_VER} now" -LangString STR_Finish_RunText ${LANG_GERMAN} "Netgen-${NETGEN_VER} jetzt starten" -LangString STR_Finish_RunText ${LANG_FRENCH} "Exécutez le Netgen-${NETGEN_VER} maintenant" -; --------------------------------------- - - - -; ----------- Language selection -------- -Function .onInit - ; Display the language select window - !insertmacro MUI_LANGDLL_DISPLAY - - ; The base Netgen package (without OCC) is selected by default - StrCpy $1 ${secNetgen} - !insertmacro SetSectionFlag ${secNglibOCC} ${SF_RO} - !insertmacro ClearSectionFlag ${secNglib} ${SF_RO} - - ; Extract the user application data folder - ReadRegStr $3 HKCU "${SHELLFOLDERS}" AppData - StrCmp $3 "" 0 +3 - StrCpy $NetgenUserDir "$INSTDIR" - Goto End - StrCpy $NetgenUserDir "$3\Netgen-${NETGEN_VER}" -End: -FunctionEnd - -; The init function for the uninstaller -Function un.oninit - ; Display the language select window - !insertmacro MUI_LANGDLL_DISPLAY -FunctionEnd -; --------------------------------------- - - - -; ---------- Package Selection ---------- -Function .onSelChange - !insertmacro StartRadioButtons $1 - !insertmacro RadioButton ${secNetgen} - !insertmacro RadioButton ${secNetgenOCC} - !insertmacro EndRadioButtons - - - ; Select the right version of Nglib based on the current - ; Netgen package version selection - !insertmacro SectionFlagIsSet ${secNetgen} ${SF_SELECTED} "NglibBasicSel" "" - !insertmacro SectionFlagIsSet ${secNetgenOCC} ${SF_SELECTED} "NglibOCCSel" "" - Goto NglibSelEnd - NglibBasicSel: - !insertmacro UnselectSection ${secNglibOCC} - !insertmacro SetSectionFlag ${secNglibOCC} ${SF_RO} - !insertmacro ClearSectionFlag ${secNglib} ${SF_RO} - Goto NglibSelEnd - NglibOCCSel: - !insertmacro UnselectSection ${secNglib} - !insertmacro SetSectionFlag ${secNglib} ${SF_RO} - !insertmacro ClearSectionFlag ${secNglibOCC} ${SF_RO} - NglibSelEnd: - -FunctionEnd -; --------------------------------------- - - - -; ------------- StrContains ------------- -; StrContains -; This function does a case sensitive searches for an occurrence of a substring in a string. -; It returns the substring if it is found. -; Otherwise it returns null(""). -; Written by kenglish_hi -; Adapted from StrReplace written by dandaman32 - - -Var STR_HAYSTACK -Var STR_NEEDLE -Var STR_CONTAINS_VAR_1 -Var STR_CONTAINS_VAR_2 -Var STR_CONTAINS_VAR_3 -Var STR_CONTAINS_VAR_4 -Var STR_RETURN_VAR - -Function StrContains - Exch $STR_NEEDLE - Exch 1 - Exch $STR_HAYSTACK - ; Uncomment to debug - ;MessageBox MB_OK 'STR_NEEDLE = $STR_NEEDLE STR_HAYSTACK = $STR_HAYSTACK ' - StrCpy $STR_RETURN_VAR "" - StrCpy $STR_CONTAINS_VAR_1 -1 - StrLen $STR_CONTAINS_VAR_2 $STR_NEEDLE - StrLen $STR_CONTAINS_VAR_4 $STR_HAYSTACK - loop: - IntOp $STR_CONTAINS_VAR_1 $STR_CONTAINS_VAR_1 + 1 - StrCpy $STR_CONTAINS_VAR_3 $STR_HAYSTACK $STR_CONTAINS_VAR_2 $STR_CONTAINS_VAR_1 - StrCmp $STR_CONTAINS_VAR_3 $STR_NEEDLE found - StrCmp $STR_CONTAINS_VAR_1 $STR_CONTAINS_VAR_4 done - Goto loop - found: - StrCpy $STR_RETURN_VAR $STR_NEEDLE - Goto done - done: - Pop $STR_NEEDLE ;Prevent "invalid opcode" errors and keep the - Exch $STR_RETURN_VAR -FunctionEnd - -!macro _StrContainsConstructor OUT NEEDLE HAYSTACK - Push "${HAYSTACK}" - Push "${NEEDLE}" - Call StrContains - Pop "${OUT}" -!macroend - -!define StrContains '!insertmacro "_StrContainsConstructor"' -; --------------------------------------- - - - - -; ---------- Check for TCL/Tk DLLs ------ -Function checkTclTkTix - ClearErrors - ; Check if the Tix, Tk and Tcl DLLs are available in the PATH - ; Note: Modify version numbers if required - SearchPath $2 tix84.dll - SearchPath $2 tk85.dll - SearchPath $2 tcl85.dll - IfErrors TclTkTixErrors - Push $2 - Call GetPathOnly - Pop "$R0" - ; Check if the required auxiliary Tcl files are present - ; in the location expected by Tcl/Tk/Tix - IfFileExists $R0\..\lib\tcl8.5\init.tcl 0 TclTkTixErrors - IfFileExists $R0\..\lib\tk8.5\*.tcl 0 TclTkTixErrors - IfFileExists $R0\..\lib\tix8.4.* 0 TclTkTixErrors - ${StrContains} $2 "${TCL_ARCH_EXT}" $R0 - ${If} $2 == "" - ${AndIf} ${NETGEN_ARCH} == ${X64_ARCH} - Goto TclTkTixErrors - ${EndIf} - ${If} $2 != "" - ${AndIf} ${NETGEN_ARCH} == ${WIN32_ARCH} - Goto TclTkTixErrors - ${EndIf} - StrCpy $foundTclTkTix "1" - LogText "Tcl/Tk and Tix Packages already installed on system....skipping local installation" - ClearErrors - Return -TclTkTixErrors: - StrCpy $foundTclTkTix "0" - LogText "Tcl/Tk and Tix Packages not found on system....installing locally" - ClearErrors -FunctionEnd -; --------------------------------------- - - - -; ---------- Check for Togl DLLs -------- -Function checkTogl - ClearErrors - SearchPath $2 Togl17.dll - IfErrors ToglErrors - Push $2 - Call GetPathOnly - Pop "$R0" - ${StrContains} $2 "${TCL_ARCH_EXT}" $R0 - ${If} $2 == "" - ${AndIf} ${NETGEN_ARCH} == ${X64_ARCH} - Goto ToglErrors - ${EndIf} - ${If} $2 != "" - ${AndIf} ${NETGEN_ARCH} == ${WIN32_ARCH} - Goto ToglErrors - ${EndIf} - StrCpy $foundTogl "1" - LogText "Togl-1.7 already installed on system....skipping local installation" - ClearErrors - Return -ToglErrors: - StrCpy $foundTogl "0" - LogText "Togl-1.7 not found on system....installing locally" - ClearErrors -FunctionEnd -; --------------------------------------- - - - -; ---------- Check for pthreads DLLs ---- -Function checkPThds - ClearErrors - ${If} ${NETGEN_ARCH} == ${X64_ARCH} - SearchPath $2 pthreadVC2_64.dll - ${Else} - SearchPath $2 pthreadVC2.dll - ${EndIf} - IfErrors PThdsErrors - StrCpy $foundPThds "1" - LogText "pthread${PTHDS_ARCH_DIR} already installed on system....skipping local installation" - ClearErrors - Return -PThdsErrors: - StrCpy $foundPThds "0" - LogText "pthread${PTHDS_ARCH_DIR} not found on system....installing locally" - ClearErrors -FunctionEnd -; --------------------------------------- - - - -; ---------- Check for OCC DLLs --------- -; Note: Not all required OCC DLLs will be -; checked for... only a few representative -; ones. -Function checkOCC - ClearErrors - SearchPath $2 TKernel.dll - SearchPath $2 TKLCAF.dll - SearchPath $2 TKSTEP.dll - SearchPath $2 TKIGES.dll - SearchPath $2 TKBRep.dll - IfErrors OCCErrors - Push $2 - Call GetPathOnly - Pop "$R0" - ${StrContains} $2 ${OCC_ARCH} $R0 - ${If} $2 == "" - Goto OCCErrors - ${EndIf} - StrCpy $foundOCC "1" - LogText "OpenCascade Libraries already installed on system....skipping local installation" - ClearErrors - Return -OCCErrors: - StrCpy $foundOCC "0" - LogText "OpenCascade Libraries not found on system....installing locally" - ClearErrors -FunctionEnd -; --------------------------------------- - - - -; ---------- Check for Lapack/BLAS DLLs - -; Checks if the Lapack/BLAS DLLs are available -; via the PATH environment variable -Function checkLapackBlas - ClearErrors - SearchPath $2 lapack_win32.dll - SearchPath $2 blas_win32.dll - IfErrors LapackBlasErrors - StrCpy $foundLapackBlas "1" - LogText "Lapack / BLAS Libraries already installed on system....skipping local installation" - ClearErrors - Return -LapackBlasErrors: - StrCpy $foundLapackBlas "0" - LogText "Lapack / BLAS Libraries not found on system....installing locally" - ClearErrors -FunctionEnd -; --------------------------------------- - - - -; ---------- Check for Intel Match Kernel Libraries (MKL) DLLs - -; Checks if the MKL DLLs are available -; via the PATH environment variable -Function checkMKLLibs - ClearErrors - SearchPath $2 libiomp5md.dll - SearchPath $2 mkl_core.dll - SearchPath $2 mkl_def.dll - SearchPath $2 mkl_intel_thread.dll - SearchPath $2 msvcr71.dll - IfErrors MKLErrors - StrCpy $foundMKLLibs "1" - LogText "Math Kernel Libraries (MKL) already installed on system....skipping local installation" - ClearErrors - Return -MKLErrors: - StrCpy $foundMKLLibs "0" - LogText "Math Kernel Libraries (MKL) not found on system....installing locally" - ClearErrors -FunctionEnd -; --------------------------------------- - - - -; ---------- Func1 - Get Path Only ------ -Function GetPathOnly - Exch $R0 - Push $R1 - Push $R2 - StrLen $R1 $R0 - IntOp $R1 $R1 + 1 - loop: - IntOp $R1 $R1 - 1 - StrCpy $R2 $R0 1 $R1 - IntCmp $R1 1 exit2 - StrCmp $R2 "\" exit1 ; Look for the first backslash from the end of string - Goto loop - exit1: - StrCpy $R0 $R0 $R1 - exit2: - Pop $R2 - Pop $R1 - Exch $R0 -FunctionEnd -; --------------------------------------- - diff --git a/windows/geom2d.vcproj b/windows/geom2d.vcproj deleted file mode 100644 index 709a910c..00000000 --- a/windows/geom2d.vcproj +++ /dev/null @@ -1,375 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/windows/netgen.sln b/windows/netgen.sln deleted file mode 100644 index f2b45a8c..00000000 --- a/windows/netgen.sln +++ /dev/null @@ -1,110 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.30501.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "netgenlib", "netgenlib.vcxproj", "{87468946-A594-4101-81A4-A131F35261EF}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "netgen", "netgen.vcxproj", "{E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}" - ProjectSection(ProjectDependencies) = postProject - {87468946-A594-4101-81A4-A131F35261EF} = {87468946-A594-4101-81A4-A131F35261EF} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "netgenpy", "netgenpy.vcxproj", "{980DA51E-5212-4444-8A5F-5E998D9A2B89}" - ProjectSection(ProjectDependencies) = postProject - {87468946-A594-4101-81A4-A131F35261EF} = {87468946-A594-4101-81A4-A131F35261EF} - EndProjectSection -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug(OCC)|Mixed Platforms = Debug(OCC)|Mixed Platforms - Debug(OCC)|Win32 = Debug(OCC)|Win32 - Debug(OCC)|x64 = Debug(OCC)|x64 - Debug|Mixed Platforms = Debug|Mixed Platforms - Debug|Win32 = Debug|Win32 - Debug|x64 = Debug|x64 - Release(OCC)|Mixed Platforms = Release(OCC)|Mixed Platforms - Release(OCC)|Win32 = Release(OCC)|Win32 - Release(OCC)|x64 = Release(OCC)|x64 - Release|Mixed Platforms = Release|Mixed Platforms - Release|Win32 = Release|Win32 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {87468946-A594-4101-81A4-A131F35261EF}.Debug(OCC)|Mixed Platforms.ActiveCfg = Debug(OCC)|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Debug(OCC)|Mixed Platforms.Build.0 = Debug(OCC)|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Debug(OCC)|Win32.ActiveCfg = Debug(OCC)|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Debug(OCC)|Win32.Build.0 = Debug(OCC)|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Debug(OCC)|x64.ActiveCfg = Debug(OCC)|x64 - {87468946-A594-4101-81A4-A131F35261EF}.Debug(OCC)|x64.Build.0 = Debug(OCC)|x64 - {87468946-A594-4101-81A4-A131F35261EF}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Debug|Mixed Platforms.Build.0 = Debug|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Debug|Win32.ActiveCfg = Debug|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Debug|Win32.Build.0 = Debug|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Debug|x64.ActiveCfg = Debug|x64 - {87468946-A594-4101-81A4-A131F35261EF}.Debug|x64.Build.0 = Debug|x64 - {87468946-A594-4101-81A4-A131F35261EF}.Release(OCC)|Mixed Platforms.ActiveCfg = Release(OCC)|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Release(OCC)|Mixed Platforms.Build.0 = Release(OCC)|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Release(OCC)|Win32.ActiveCfg = Release(OCC)|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Release(OCC)|Win32.Build.0 = Release(OCC)|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Release(OCC)|x64.ActiveCfg = Release(OCC)|x64 - {87468946-A594-4101-81A4-A131F35261EF}.Release(OCC)|x64.Build.0 = Release(OCC)|x64 - {87468946-A594-4101-81A4-A131F35261EF}.Release|Mixed Platforms.ActiveCfg = Release|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Release|Mixed Platforms.Build.0 = Release|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Release|Win32.ActiveCfg = Release|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Release|Win32.Build.0 = Release|Win32 - {87468946-A594-4101-81A4-A131F35261EF}.Release|x64.ActiveCfg = Release|x64 - {87468946-A594-4101-81A4-A131F35261EF}.Release|x64.Build.0 = Release|x64 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug(OCC)|Mixed Platforms.ActiveCfg = Debug|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug(OCC)|Mixed Platforms.Build.0 = Debug|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug(OCC)|Win32.ActiveCfg = Debug|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug(OCC)|Win32.Build.0 = Debug|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug(OCC)|x64.ActiveCfg = Debug|x64 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug(OCC)|x64.Build.0 = Debug|x64 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug|Mixed Platforms.Build.0 = Debug|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug|Win32.ActiveCfg = Debug|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug|Win32.Build.0 = Debug|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug|x64.ActiveCfg = Debug|x64 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Debug|x64.Build.0 = Debug|x64 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release(OCC)|Mixed Platforms.ActiveCfg = Release|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release(OCC)|Mixed Platforms.Build.0 = Release|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release(OCC)|Win32.ActiveCfg = Release|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release(OCC)|Win32.Build.0 = Release|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release(OCC)|x64.ActiveCfg = Release(OCC)|x64 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release(OCC)|x64.Build.0 = Release(OCC)|x64 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release|Mixed Platforms.ActiveCfg = Release|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release|Mixed Platforms.Build.0 = Release|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release|Win32.ActiveCfg = Release|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release|Win32.Build.0 = Release|Win32 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release|x64.ActiveCfg = Release|x64 - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1}.Release|x64.Build.0 = Release|x64 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug(OCC)|Mixed Platforms.ActiveCfg = Debug|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug(OCC)|Mixed Platforms.Build.0 = Debug|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug(OCC)|Win32.ActiveCfg = Debug|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug(OCC)|Win32.Build.0 = Debug|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug(OCC)|x64.ActiveCfg = Debug|x64 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug(OCC)|x64.Build.0 = Debug|x64 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug|Mixed Platforms.Build.0 = Debug|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug|Win32.ActiveCfg = Debug|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug|Win32.Build.0 = Debug|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug|x64.ActiveCfg = Debug|x64 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Debug|x64.Build.0 = Debug|x64 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release(OCC)|Mixed Platforms.ActiveCfg = Release(OCC)|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release(OCC)|Mixed Platforms.Build.0 = Release(OCC)|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release(OCC)|Win32.ActiveCfg = Release(OCC)|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release(OCC)|Win32.Build.0 = Release(OCC)|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release(OCC)|x64.ActiveCfg = Release(OCC)|x64 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release(OCC)|x64.Build.0 = Release(OCC)|x64 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release|Mixed Platforms.ActiveCfg = Release|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release|Mixed Platforms.Build.0 = Release|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release|Win32.ActiveCfg = Release|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release|Win32.Build.0 = Release|Win32 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release|x64.ActiveCfg = Release|x64 - {980DA51E-5212-4444-8A5F-5E998D9A2B89}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/windows/netgen.vcproj b/windows/netgen.vcproj deleted file mode 100644 index f65b4f8e..00000000 --- a/windows/netgen.vcproj +++ /dev/null @@ -1,2076 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/windows/netgen.vcxproj b/windows/netgen.vcxproj deleted file mode 100644 index 300685e9..00000000 --- a/windows/netgen.vcxproj +++ /dev/null @@ -1,254 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release(OCC) - Win32 - - - Release(OCC) - x64 - - - Release - Win32 - - - Release - x64 - - - - - - - - - - {E4B8EAAB-0585-4580-AEA3-D62ADEEF81B1} - Win32Proj - netgen - - - - Application - true - v120 - Unicode - - - Application - true - v120 - Unicode - - - Application - false - v120 - true - Unicode - - - Application - false - v120 - true - Unicode - - - Application - false - v120 - true - Unicode - - - Application - false - v120 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - $(Configuration)\$(ProjectName) - - - false - $(Configuration)\$(ProjectName) - - - false - $(Platform)\$(Configuration)\$(ProjectName) - - - false - $(Platform)\$(Configuration)\$(ProjectName) - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(ProjectDir)\..\libsrc\include;%(AdditionalIncludeDirectories) - - - Console - true - - - copy "$(OutDir)netgen.exe" "$(NETGENDIR)\netgen.exe" - - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(ProjectDir)\..\libsrc\include;%(AdditionalIncludeDirectories) - - - Console - true - netgenlib.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - - - copy "$(OutDir)netgen.exe" "$(NETGENDIR)\netgen.exe" - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(ProjectDir)\..\libsrc\include;%(AdditionalIncludeDirectories) - - - Console - true - true - true - nginterface.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - $(NETGENDIR)\..\lib%(AdditionalLibraryDirectories) - - - copy "$(OutDir)netgen.exe" "$(NETGENDIR)\netgen.exe" - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(ProjectDir)\..\libsrc\include;%(AdditionalIncludeDirectories) - - - Console - true - true - true - $(NETGENDIR)\..\lib%(AdditionalLibraryDirectories) - - - copy "$(OutDir)netgen.exe" "$(NETGENDIR)\netgen.exe" - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(ProjectDir)\..\libsrc\include;%(AdditionalIncludeDirectories) - - - Console - true - true - true - nginterface.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - $(NETGENDIR)\..\lib%(AdditionalLibraryDirectories) - - - copy "$(OutDir)netgen.exe" "$(NETGENDIR)\netgen.exe" - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(ProjectDir)\..\libsrc\include;%(AdditionalIncludeDirectories) - - - Console - true - true - true - nginterface.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - $(NETGENDIR)\..\lib%(AdditionalLibraryDirectories) - - - copy "$(OutDir)netgen.exe" "$(NETGENDIR)\netgen.exe" - - - - - - \ No newline at end of file diff --git a/windows/netgenlib.vcxproj b/windows/netgenlib.vcxproj deleted file mode 100644 index a45759fe..00000000 --- a/windows/netgenlib.vcxproj +++ /dev/null @@ -1,866 +0,0 @@ - - - - - Debug(OCC) - Win32 - - - Debug(OCC) - x64 - - - Debug - Win32 - - - Debug - x64 - - - Release(OCC) - Win32 - - - Release(OCC) - x64 - - - Release - Win32 - - - Release - x64 - - - - {87468946-A594-4101-81A4-A131F35261EF} - netgen - Win32Proj - - - - DynamicLibrary - CTP_Nov2013 - - - DynamicLibrary - CTP_Nov2013 - - - DynamicLibrary - CTP_Nov2013 - - - DynamicLibrary - CTP_Nov2013 - - - DynamicLibrary - CTP_Nov2013 - - - DynamicLibrary - CTP_Nov2013 - - - DynamicLibrary - CTP_Nov2013 - - - DynamicLibrary - CTP_Nov2013 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>11.0.60610.1 - - - Debug\ - Debug\ - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b*.exp%3b*.lib%3b$(TargetPath) - - true - - - $(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b*.exp%3b*.lib%3b$(TargetPath) - - true - - - Release\ - Release\$(ProjectName) - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b*.exp%3b*.lib%3b$(TargetPath) - - true - - - $(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\$(ProjectName) - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b*.exp%3b*.lib%3b$(TargetPath) - - true - - - $(Configuration)\ - $(Configuration)\$(ProjectName) - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b*.exp%3b*.lib%3b$(TargetPath) - - true - - - $(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\$(ProjectName) - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b*.exp%3b*.lib%3b$(TargetPath) - - true - - - $(Configuration)\ - $(Configuration)\ - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b*.exp%3b*.lib%3b$(TargetPath) - - true - - - $(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b*.exp%3b*.lib%3b$(TargetPath) - - true - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - Disabled - false - false - $(SolutionDir)..;$(SolutionDir)..\ng;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\libsrc\interface;$(BOOSTROOT);$(PYTHONROOT)\include;$(SolutionDir)..\..\ext_libs\tcl\include;$(SolutionDir)..\..\ext_libs\pthread-w32\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;DEBUG;MSVC_EXPRESS;OPENGL;_WIN32_WINNT=0x0502;NGINTERFACE_EXPORTS;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - Level3 - EditAndContinue - true - 4250 - - - false - - - pthreadVC2.lib;tcl85.lib;tk85.lib;tix84.lib;Togl17.lib;glu32.lib;opengl32.lib;%(AdditionalDependencies) - NotSet - - $(SolutionDir)..\..\ext_libs\tcl\lib;$(SolutionDir)..\..\ext_libs\pthread-w32\lib;%(AdditionalLibraryDirectories) - true - true - Console - - $(OutDir)nginterface.lib - MachineX86 - true - - - Running POSTBUILD Script.... - "$(ProjectDir)\postBuild_netgen.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" "nginterface" - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - X64 - - - Disabled - false - false - $(SolutionDir)..;$(SolutionDir)..\ng;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\libsrc\interface;$(BOOSTROOT);$(PYTHONROOT)\include;$(SolutionDir)..\..\ext_libs\tcl-64\include;$(SolutionDir)..\..\ext_libs\pthread-w64\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;DEBUG;MSVC_EXPRESS;OPENGL;_WIN32_WINNT=0x0502;NGINTERFACE_EXPORTS;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - Level3 - ProgramDatabase - true - 4250 - - - false - - - pthreadVC2_64.lib;tcl85.lib;tk85.lib;tix84.lib;Togl17.lib;glu32.lib;opengl32.lib;%(AdditionalDependencies) - NotSet - - $(SolutionDir)..\..\ext_libs\tcl-64\lib;$(SolutionDir)..\..\ext_libs\pthread-w64\lib;%(AdditionalLibraryDirectories) - true - true - Console - - $(OutDir)nginterface.lib - MachineX64 - true - - - Running POSTBUILD Script.... - "$(ProjectDir)\postBuild_netgen.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" "nginterface" - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - Full - AnySuitable - true - Speed - true - $(SolutionDir)..;$(SolutionDir)..\ng;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\libsrc\interface;$(SolutionDir)..\..\ext_libs\tcl\include;$(SolutionDir)..\..\ext_libs\pthreads-Win32\include;$(SolutionDir)..\..\ext_libs\zlib\include;$(SolutionDir)..\..\ext_libs\FFMPEG\include;$(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include\ - WIN32;NDEBUG;_CONSOLE;MSVC_EXPRESS;OPENGL;_WIN32_WINNT=0x0502;NGINTERFACE_EXPORTS;FFMPEG;NG_PYTHON;%(PreprocessorDefinitions) - true - MultiThreadedDLL - StreamingSIMDExtensions - - Level2 - ProgramDatabase - 4250 - true - - - false - - - pthreadVC2.lib;tcl85.lib;tk85.lib;tix84.lib;zdll.lib;Togl17.lib;glu32.lib;opengl32.lib;avcodec.lib;avdevice.lib;avfilter.lib;avformat.lib;avutil.lib;postproc.lib;swresample.lib;swscale.lib;%(AdditionalDependencies) - NotSet - - $(SolutionDir)..\..\ext_libs\tcl\lib\x86;$(SolutionDir)..\..\ext_libs\pthreads-Win32\lib\x86;$(SolutionDir)..\..\ext_libs\zlib\x86\lib;$(SolutionDir)..\..\ext_libs\FFMPEG\lib\win32;$(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\Win32;$(SolutionDir)..\..\ext_libs\Python34\lib\Win32;%(AdditionalLibraryDirectories) - true - false - Console - true - true - UseLinkTimeCodeGeneration - $(OutDir)nginterface.lib - MachineX86 - true - false - - - Running POSTBUILD Script.... - "$(ProjectDir)\postBuild_netgen.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" "nginterface" - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - X64 - - - Full - AnySuitable - true - Speed - true - $(SolutionDir)..;$(SolutionDir)..\ng;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\libsrc\interface;$(SolutionDir)..\..\ext_libs\tcl\include;$(SolutionDir)..\..\ext_libs\pthreads-Win32\include;$(SolutionDir)..\..\ext_libs\FFMPEG\include;$(SolutionDir)..\..\ext_libs\zlib\include;$(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include\ - WIN32;NDEBUG;_CONSOLE;MSVC_EXPRESS;OPENGL;_WIN32_WINNT=0x0502;NGINTERFACE_EXPORTS;FFMPEG;NG_PYTHON;%(PreprocessorDefinitions) - true - MultiThreadedDLL - StreamingSIMDExtensions2 - - Level2 - ProgramDatabase - 4250 - true - - - false - - - pthreadVC2.lib;zlib1.lib;tcl85.lib;tk85.lib;Togl17.lib;glu32.lib;opengl32.lib;avcodec.lib;avdevice.lib;avfilter.lib;avformat.lib;avutil.lib;postproc.lib;swresample.lib;swscale.lib;%(AdditionalDependencies) - NotSet - $(OutDir)$(ProjectName).dll - - $(SolutionDir)..\..\ext_libs\tcl\lib\x64;$(SolutionDir)..\..\ext_libs\pthreads-Win32\lib\x64;$(SolutionDir)..\..\ext_libs\zlib\x64\lib;$(SolutionDir)..\..\ext_libs\FFMPEG\lib\x64;$(SolutionDir)..\..\ext_libs\Python34\lib\x64;$(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\x64;%(AdditionalLibraryDirectories) - true - false - Console - false - true - UseLinkTimeCodeGeneration - $(OutDir)nginterface.lib - MachineX64 - true - 4000000 - - - Running POSTBUILD Script.... - "$(ProjectDir)\postBuild_netgen.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" "nginterface" - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - Full - AnySuitable - true - Speed - true - $(SolutionDir)..;$(SolutionDir)..\ng;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\libsrc\interface;$(SolutionDir)..\..\ext_libs\tcl\include;$(SolutionDir)..\..\ext_libs\pthreads-Win32\include;$(SolutionDir)..\..\ext_libs\zlib\include;$(SolutionDir)..\..\ext_libs\FFMPEG\include;$(CASROOT)\inc;$(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include;%(AdditionalIncludeDirectories) - WIN32;WNT;NDEBUG;_CONSOLE;MSVC_EXPRESS;Standard_EXPORT=;OCCGEOMETRY;OPENGL;_WIN32_WINNT=0x0502;NGINTERFACE_EXPORTS;FFMPEG;NG_PYTHON;%(PreprocessorDefinitions) - true - MultiThreadedDLL - StreamingSIMDExtensions - - Level2 - ProgramDatabase - true - 4250 - - - false - - - pthreadVC2.lib;tcl85.lib;tk85.lib;tix84.lib;zdll.lib;Togl17.lib;glu32.lib;opengl32.lib;avcodec.lib;avdevice.lib;avfilter.lib;avformat.lib;avutil.lib;postproc.lib;swresample.lib;swscale.lib;TKernel.lib;TKGeomBase.lib;TKMath.lib;TKG2d.lib;TKG3d.lib;TKXSBase.lib;TKOffset.lib;TKFillet.lib;TKShHealing.lib;TKMesh.lib;TKMeshVS.lib;TKTopAlgo.lib;TKGeomAlgo.lib;TKBool.lib;TKPrim.lib;TKBO.lib;TKIGES.lib;TKBRep.lib;TKSTEPBase.lib;TKSTEP.lib;TKSTL.lib;TKSTEPAttr.lib;TKSTEP209.lib;TKXDESTEP.lib;TKXDEIGES.lib;TKXCAF.lib;TKDCAF.lib;TKLCAF.lib;%(AdditionalDependencies) - NotSet - - $(SolutionDir)..\..\ext_libs\tcl\lib\x86;$(SolutionDir)..\..\ext_libs\pthreads-Win32\lib\x86;$(SolutionDir)..\..\ext_libs\zlib\x86\lib;$(SolutionDir)..\..\ext_libs\FFMPEG\lib\win32;$(CASROOT)\win32\vc8\lib;$(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\Win32;$(SolutionDir)..\..\ext_libs\Python34\lib\Win32;%(AdditionalLibraryDirectories) - true - false - Console - true - true - UseLinkTimeCodeGeneration - $(OutDir)nginterface.lib - MachineX86 - true - false - - - Running POSTBUILD Script.... - "$(ProjectDir)\postBuild_netgen.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" "nginterface" - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - X64 - - - Full - AnySuitable - true - Speed - true - $(SolutionDir)..;$(SolutionDir)..\ng;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\libsrc\interface;$(SolutionDir)..\..\ext_libs\tcl\include;$(SolutionDir)..\..\ext_libs\pthreads-win32\include;$(SolutionDir)..\..\ext_libs\zlib\include;$(SolutionDir)..\..\ext_libs\FFMPEG\include;$(CASROOT)\inc;$(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include\;%(AdditionalIncludeDirectories) - WIN32;WNT;NDEBUG;_CONSOLE;MSVC_EXPRESS;_OCC64;Standard_EXPORT=;OCCGEOMETRY;OPENGL;_WIN32_WINNT=0x0502;NGINTERFACE_EXPORTS;FFMPEG;NG_PYTHON;%(PreprocessorDefinitions) - true - MultiThreadedDLL - StreamingSIMDExtensions - - Level2 - ProgramDatabase - true - 4250 - - - false - - - pthreadVC2.lib;tcl85.lib;tk85.lib;zlib1.lib;tix84.lib;Togl17.lib;glu32.lib;opengl32.lib;avcodec.lib;avdevice.lib;avfilter.lib;avformat.lib;avutil.lib;postproc.lib;swresample.lib;swscale.lib;TKernel.lib;TKGeomBase.lib;TKMath.lib;TKG2d.lib;TKG3d.lib;TKXSBase.lib;TKOffset.lib;TKFillet.lib;TKShHealing.lib;TKMesh.lib;TKMeshVS.lib;TKTopAlgo.lib;TKGeomAlgo.lib;TKBool.lib;TKPrim.lib;TKBO.lib;TKIGES.lib;TKBRep.lib;TKSTEPBase.lib;TKSTEP.lib;TKSTL.lib;TKSTEPAttr.lib;TKSTEP209.lib;TKXDESTEP.lib;TKXDEIGES.lib;TKXCAF.lib;TKLCAF.lib;%(AdditionalDependencies) - NotSet - - $(SolutionDir)..\..\ext_libs\tcl\lib\x64;$(SolutionDir)..\..\ext_libs\pthreads-Win32\lib\x64;$(SolutionDir)..\..\ext_libs\FFMPEG\lib\x64;$(SolutionDir)..\..\ext_libs\zlib\x64\lib;$(CASROOT)\win64\vc9\lib;$(SolutionDir)..\..\ext_libs\Python34\lib\x64;$(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\x64;%(AdditionalLibraryDirectories) - true - false - Console - true - true - UseLinkTimeCodeGeneration - $(OutDir)nginterface.lib - MachineX64 - true - false - 4000000 - - - Running POSTBUILD Script.... - "$(ProjectDir)\postBuild_netgen.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" "nginterface" - - - if NOT defined PYTHONROOT (echo You need to set up environement variable PYTHONROOT) -if NOT defined BOOSTROOT (echo You need to set up environement variable BOOSTROOT) - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - Disabled - false - false - $(SolutionDir)..;$(SolutionDir)..\ng;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\libsrc\interface;$(BOOSTROOT);$(PYTHONROOT)\include;$(SolutionDir)..\..\ext_libs\tcl\include;$(SolutionDir)..\..\ext_libs\pthread-w32\include;$(CASROOT)\inc;%(AdditionalIncludeDirectories) - WIN32;WNT;_DEBUG;_CONSOLE;DEBUG;MSVC_EXPRESS;Standard_EXPORT=;OCCGEOMETRY;OPENGL;_WIN32_WINNT=0x0502;NGINTERFACE_EXPORTS;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - Level3 - EditAndContinue - true - 4250 - - - false - - - pthreadVC2.lib;tcl85.lib;tk85.lib;tix84.lib;Togl17.lib;glu32.lib;opengl32.lib;TKernel.lib;TKGeomBase.lib;TKMath.lib;TKG2d.lib;TKG3d.lib;TKXSBase.lib;TKOffset.lib;TKFillet.lib;TKShHealing.lib;TKMesh.lib;TKMeshVS.lib;TKTopAlgo.lib;TKGeomAlgo.lib;TKBool.lib;TKPrim.lib;TKBO.lib;TKIGES.lib;TKBRep.lib;TKSTEPBase.lib;TKSTEP.lib;TKSTL.lib;TKSTEPAttr.lib;TKSTEP209.lib;TKXDESTEP.lib;TKXDEIGES.lib;TKXCAF.lib;TKDCAF.lib;TKLCAF.lib;%(AdditionalDependencies) - NotSet - - $(SolutionDir)..\..\ext_libs\tcl\lib;$(SolutionDir)..\..\ext_libs\pthread-w32\lib;$(CASROOT)\win32\lib;%(AdditionalLibraryDirectories) - true - true - Console - - $(OutDir)nginterface.lib - MachineX86 - true - - - Running POSTBUILD Script.... - "$(ProjectDir)\postBuild_netgen.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" "nginterface" - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - X64 - - - Disabled - false - false - $(SolutionDir)..;$(SolutionDir)..\ng;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\libsrc\interface;$(BOOSTROOT);$(PYTHONROOT)\include;$(SolutionDir)..\..\ext_libs\tcl-64\include;$(SolutionDir)..\..\ext_libs\pthread-w64\include;$(CASROOT)\inc;%(AdditionalIncludeDirectories) - WIN32;WNT;_DEBUG;_CONSOLE;DEBUG;MSVC_EXPRESS;_OCC64;Standard_EXPORT=;OCCGEOMETRY;OPENGL;_WIN32_WINNT=0x0502;NGINTERFACE_EXPORTS;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - Level3 - ProgramDatabase - true - 4250 - - - false - - - pthreadVC2_64.lib;tcl85.lib;tk85.lib;tix84.lib;Togl17.lib;glu32.lib;opengl32.lib;TKernel.lib;TKGeomBase.lib;TKMath.lib;TKG2d.lib;TKG3d.lib;TKXSBase.lib;TKOffset.lib;TKFillet.lib;TKShHealing.lib;TKMesh.lib;TKMeshVS.lib;TKTopAlgo.lib;TKGeomAlgo.lib;TKBool.lib;TKPrim.lib;TKBO.lib;TKIGES.lib;TKBRep.lib;TKSTEPBase.lib;TKSTEP.lib;TKSTL.lib;TKSTEPAttr.lib;TKSTEP209.lib;TKXDESTEP.lib;TKXDEIGES.lib;TKXCAF.lib;TKLCAF.lib;%(AdditionalDependencies) - NotSet - - $(SolutionDir)..\..\ext_libs\tcl-64\lib;$(SolutionDir)..\..\ext_libs\pthread-w64\lib;$(CASROOT)\win64\lib;%(AdditionalLibraryDirectories) - true - true - Console - - $(OutDir)nginterface.lib - MachineX64 - true - - - Running POSTBUILD Script.... - "$(ProjectDir)\postBuild_netgen.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" "nginterface" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/windows/netgenpy.vcxproj b/windows/netgenpy.vcxproj deleted file mode 100644 index 88d2a237..00000000 --- a/windows/netgenpy.vcxproj +++ /dev/null @@ -1,295 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release(OCC) - Win32 - - - Release(OCC) - x64 - - - Release - Win32 - - - Release - x64 - - - - - - - {980DA51E-5212-4444-8A5F-5E998D9A2B89} - Win32Proj - nglib - netgenpy - - - - DynamicLibrary - true - v120 - Unicode - - - DynamicLibrary - true - v120 - Unicode - - - DynamicLibrary - false - v120 - true - Unicode - - - DynamicLibrary - false - v120 - true - Unicode - - - DynamicLibrary - false - v120 - true - Unicode - - - DynamicLibrary - false - v120 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - $(Configuration)\$(ProjectName) - - - false - $(Configuration)\$(ProjectName) - - - false - $(Platform)\$(Configuration)\$(ProjectName) - - - false - $(Platform)\$(Configuration)\$(ProjectName) - - - - - - Level3 - Disabled - WIN32;_DEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\inlcude - - - Windows - true - - - copy "$(OutDir)netgenpy.dll" "$(NETGENDIR)\nglib.pyd" -mkdir $(NETGENDIR)\netgen -copy "$(SolutionDir)..\python\__init__.py" "$(NETGENDIR)\netgen\__init__.py" -copy "$(SolutionDir)..\python\csg.py" "$(NETGENDIR)\netgen\csg.py" -copy "$(SolutionDir)..\python\meshing.py" "$(NETGENDIR)\netgen\meshing.py" -mkdir "$(NETGENDIR)\..\py_tutorials\" -mkdir "$(NETGENDIR)\..\py_tutorials\netgen" -copy "$(SolutionDir)..\py_tutorials\*.*" "$(NETGENDIR)\..\py_tutorials\netgen\*.*" - - - - - - - Level3 - Disabled - WIN32;_DEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include\;%(AdditionalIncludeDirectories) - - - Windows - true - $(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\x64;$(SolutionDir)..\..\ext_libs\Python34\lib\Win32;$(NETGENDIR)\..\lib\;%(AdditionalLibraryDirectories) - - - copy "$(OutDir)netgenpy.dll" "$(NETGENDIR)\nglib.pyd" -mkdir $(NETGENDIR)\netgen -copy "$(SolutionDir)..\python\__init__.py" "$(NETGENDIR)\netgen\__init__.py" -copy "$(SolutionDir)..\python\csg.py" "$(NETGENDIR)\netgen\csg.py" -copy "$(SolutionDir)..\python\meshing.py" "$(NETGENDIR)\netgen\meshing.py" -mkdir "$(NETGENDIR)\..\py_tutorials\" -mkdir "$(NETGENDIR)\..\py_tutorials\netgen" -copy "$(SolutionDir)..\py_tutorials\*.*" "$(NETGENDIR)\..\py_tutorials\netgen\*.*" - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include - - - Windows - true - true - true - $(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\Win32;$(SolutionDir)..\..\ext_libs\Python34\lib\Win32;$(NETGENDIR)\..\lib\;%(AdditionalLibraryDirectories) - nginterface.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - - - copy "$(OutDir)netgenpy.dll" "$(NETGENDIR)\nglib.pyd" -mkdir $(NETGENDIR)\netgen -copy "$(SolutionDir)..\python\__init__.py" "$(NETGENDIR)\netgen\__init__.py" -copy "$(SolutionDir)..\python\csg.py" "$(NETGENDIR)\netgen\csg.py" -copy "$(SolutionDir)..\python\meshing.py" "$(NETGENDIR)\netgen\meshing.py" -mkdir "$(NETGENDIR)\..\py_tutorials\" -mkdir "$(NETGENDIR)\..\py_tutorials\netgen" -copy "$(SolutionDir)..\py_tutorials\*.*" "$(NETGENDIR)\..\py_tutorials\netgen\*.*" - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include - - - Windows - true - true - true - nginterface.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - $(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\Win32;$(SolutionDir)..\..\ext_libs\Python34\lib\Win32;$(NETGENDIR)\..\lib\;%(AdditionalLibraryDirectories) - - - copy "$(OutDir)netgenpy.dll" "$(NETGENDIR)\nglib.pyd" -mkdir $(NETGENDIR)\netgen -copy "$(SolutionDir)..\python\__init__.py" "$(NETGENDIR)\netgen\__init__.py" -copy "$(SolutionDir)..\python\csg.py" "$(NETGENDIR)\netgen\csg.py" -copy "$(SolutionDir)..\python\meshing.py" "$(NETGENDIR)\netgen\meshing.py" -mkdir "$(NETGENDIR)\..\py_tutorials\" -mkdir "$(NETGENDIR)\..\py_tutorials\netgen" -copy "$(SolutionDir)..\py_tutorials\*.*" "$(NETGENDIR)\..\py_tutorials\netgen\*.*" - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include\;%(AdditionalIncludeDirectories) - - - Windows - true - true - true - $(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\x64;$(SolutionDir)..\..\ext_libs\Python34\lib\x64;$(NETGENDIR)\..\lib\;%(AdditionalLibraryDirectories) - nginterface.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - - - copy "$(OutDir)netgenpy.dll" "$(NETGENDIR)\nglib.pyd" -mkdir $(NETGENDIR)\netgen -copy "$(SolutionDir)..\python\__init__.py" "$(NETGENDIR)\netgen\__init__.py" -copy "$(SolutionDir)..\python\csg.py" "$(NETGENDIR)\netgen\csg.py" -copy "$(SolutionDir)..\python\meshing.py" "$(NETGENDIR)\netgen\meshing.py" -mkdir "$(NETGENDIR)\..\py_tutorials\" -mkdir "$(NETGENDIR)\..\py_tutorials\netgen" -copy "$(SolutionDir)..\py_tutorials\*.*" "$(NETGENDIR)\..\py_tutorials\netgen\*.*" - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)..\..\ext_libs\boost_1_56_0\;$(SolutionDir)..\..\ext_libs\Python34\include\;%(AdditionalIncludeDirectories) - - - Windows - true - true - true - $(SolutionDir)..\..\ext_libs\boost_1_56_0\lib\x64;$(SolutionDir)..\..\ext_libs\Python34\lib\x64;$(NETGENDIR)\..\lib\;%(AdditionalLibraryDirectories) - nginterface.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - - - copy "$(OutDir)netgenpy.dll" "$(NETGENDIR)\nglib.pyd" -mkdir $(NETGENDIR)\netgen -copy "$(SolutionDir)..\python\__init__.py" "$(NETGENDIR)\netgen\__init__.py" -copy "$(SolutionDir)..\python\csg.py" "$(NETGENDIR)\netgen\csg.py" -copy "$(SolutionDir)..\python\meshing.py" "$(NETGENDIR)\netgen\meshing.py" -mkdir "$(NETGENDIR)\..\py_tutorials\" -mkdir "$(NETGENDIR)\..\py_tutorials\netgen" -copy "$(SolutionDir)..\py_tutorials\*.*" "$(NETGENDIR)\..\py_tutorials\netgen\*.*" - - - - - - \ No newline at end of file diff --git a/windows/nglib.sln b/windows/nglib.sln deleted file mode 100644 index 8cd31b82..00000000 --- a/windows/nglib.sln +++ /dev/null @@ -1,32 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 13.00 -# Visual Studio 2013 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nglib", "nglib.vcxproj", "{2E260C8C-595C-442A-A962-51AC06EF8143}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Debug|x64 = Debug|x64 - Release(OCC)|Win32 = Release(OCC)|Win32 - Release(OCC)|x64 = Release(OCC)|x64 - Release|Win32 = Release|Win32 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.ActiveCfg = Debug|Win32 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.Build.0 = Debug|Win32 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|x64.ActiveCfg = Debug|x64 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|x64.Build.0 = Debug|x64 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Release(OCC)|Win32.ActiveCfg = Release(OCC)|Win32 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Release(OCC)|Win32.Build.0 = Release(OCC)|Win32 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Release(OCC)|x64.ActiveCfg = Release(OCC)|x64 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Release(OCC)|x64.Build.0 = Release(OCC)|x64 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.ActiveCfg = Release|Win32 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.Build.0 = Release|Win32 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Release|x64.ActiveCfg = Release|x64 - {2E260C8C-595C-442A-A962-51AC06EF8143}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/windows/nglib.vcproj b/windows/nglib.vcproj deleted file mode 100644 index 17a21536..00000000 --- a/windows/nglib.vcproj +++ /dev/null @@ -1,1620 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/windows/nglib.vcxproj b/windows/nglib.vcxproj deleted file mode 100644 index ec8f8e85..00000000 --- a/windows/nglib.vcxproj +++ /dev/null @@ -1,639 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release(OCC) - Win32 - - - Release(OCC) - x64 - - - Release - Win32 - - - Release - x64 - - - - {2E260C8C-595C-442A-A962-51AC06EF8143} - nglib - Win32Proj - - - - DynamicLibrary - CTP_Nov2013 - Unicode - true - - - DynamicLibrary - CTP_Nov2013 - Unicode - true - - - DynamicLibrary - CTP_Nov2013 - Unicode - - - DynamicLibrary - CTP_Nov2013 - Unicode - true - - - DynamicLibrary - CTP_Nov2013 - Unicode - true - - - DynamicLibrary - CTP_Nov2013 - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>11.0.61030.0 - - - $(SolutionDir)$(ProjectName)\$(Configuration)\ - $(ProjectName)\$(Configuration)\ - true - - - $(SolutionDir)$(ProjectName)\$(Platform)\$(Configuration)\ - $(ProjectName)\$(Platform)\$(Configuration)\ - true - - - $(SolutionDir)$(ProjectName)\$(Configuration)\ - $(ProjectName)\$(Configuration)\$(ProjectName) - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath) - - - $(SolutionDir)$(ProjectName)\$(Platform)\$(Configuration)\ - $(ProjectName)\$(Platform)\$(Configuration)\ - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath) - - - $(SolutionDir)$(ProjectName)\$(Configuration)\ - $(ProjectName)\$(Configuration)\$(ProjectName) - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath) - - - $(SolutionDir)$(ProjectName)\$(Platform)\$(Configuration)\ - $(ProjectName)\$(Platform)\$(Configuration)\ - *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath) - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - Disabled - $(SolutionDir)..\..\ext_libs\pthread-w32\include;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\nglib;$(SolutionDir)..\;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;MSVC_EXPRESS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - Level3 - EditAndContinue - true - - - pthreadVC2.lib;%(AdditionalDependencies) - $(SolutionDir)..\..\ext_libs\pthread-w32\lib;%(AdditionalLibraryDirectories) - $(OutDir)$(TargetFileName).intermediate.manifest - true - Windows - MachineX86 - - - $(OutDir)$(TargetFileName).embed.manifest - - - $(OutDir)$(TargetFileName).embed.manifest.res - - - "$(ProjectDir)\postBuild_nglib.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" - - - - - $(SolutionDir)\BuildLog_$(ProjectName)_$(Platform).htm - - - X64 - - - Disabled - $(SolutionDir)..\..\ext_libs\pthread-w64\include;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\nglib;$(SolutionDir)..\;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;MSVC_EXPRESS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - Level3 - ProgramDatabase - true - - - pthreadVC2_64.lib;%(AdditionalDependencies) - $(SolutionDir)..\..\ext_libs\pthread-w64\lib;%(AdditionalLibraryDirectories) - $(OutDir)$(TargetFileName).intermediate.manifest - true - Windows - MachineX64 - - - $(OutDir)$(TargetFileName).embed.manifest - - - $(OutDir)$(TargetFileName).embed.manifest.res - - - "$(ProjectDir)\postBuild_nglib.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - Full - AnySuitable - true - Speed - $(SolutionDir)..\..\ext_libs\zlib\include;$(SolutionDir)..\..\ext_libs\pthreads-Win32\include;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\nglib;$(SolutionDir)..\;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;MSVC_EXPRESS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions) - MultiThreadedDLL - true - StreamingSIMDExtensions - - $(IntDir) - $(IntDir)vc90.pdb - $(IntDir) - Level2 - ProgramDatabase - 4250 - true - - - pthreadVC2.lib;zdll.lib;opengl32.lib;glu32.lib;%(AdditionalDependencies) - $(SolutionDir)..\..\ext_libs\pthreads-Win32\lib\x86;$(SolutionDir)..\..\ext_libs\zlib\x86\lib;%(AdditionalLibraryDirectories) - $(OutDir)$(TargetFileName).intermediate.manifest - - - $(OutDir)$(TargetFileName).embed.manifest - - - $(OutDir)$(TargetFileName).embed.manifest.res - - - "$(ProjectDir)\postBuild_nglib.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" - - - - - $(SolutionDir)\BuildLog_$(ProjectName)_$(Platform).htm - - - X64 - - - Full - AnySuitable - true - Speed - $(SolutionDir)..\..\ext_libs\zlib\include;$(SolutionDir)..\..\ext_libs\pthreads-Win32\include;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\nglib;$(SolutionDir)..\;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;MSVC_EXPRESS;_WIN32_WINNT=0x0502;NOTCL;%(PreprocessorDefinitions) - MultiThreadedDLL - true - StreamingSIMDExtensions - - $(IntDir) - $(IntDir)vc90.pdb - $(IntDir) - Level2 - ProgramDatabase - 4250 - true - - - pthreadVC2.lib;zlib1.lib;opengl32.lib;glu32.lib;%(AdditionalDependencies) - $(SolutionDir)..\..\ext_libs\pthreads-Win32\lib\x64;$(SolutionDir)..\..\ext_libs\zlib\x64\\lib;%(AdditionalLibraryDirectories) - $(OutDir)$(TargetFileName).intermediate.manifest - MachineX64 - - - $(OutDir)$(TargetFileName).embed.manifest - - - $(OutDir)$(TargetFileName).embed.manifest.res - - - "$(ProjectDir)\postBuild_nglib.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" - - - - - $(SolutionDir)\BuildLog_$(ProjectName).htm - - - Full - AnySuitable - true - Speed - $(CASROOT)\inc;$(SolutionDir)..\..\ext_libs\pthreads-Win32\include;$(SolutionDir)..\..\ext_libs\zlib\include;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\nglib;$(SolutionDir)..\;%(AdditionalIncludeDirectories) - WNT;WIN32;NDEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;MSVC_EXPRESS;Standard_EXPORT=;OCCGEOMETRY;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions) - MultiThreadedDLL - true - StreamingSIMDExtensions - - $(IntDir) - $(IntDir)vc90.pdb - $(IntDir) - Level2 - ProgramDatabase - true - 4250 - - - pthreadVC2.lib;zdll.lib;opengl32.lib;glu32.lib;TKernel.lib;TKGeomBase.lib;TKMath.lib;TKG2d.lib;TKG3d.lib;TKXSBase.lib;TKOffset.lib;TKFillet.lib;TKShHealing.lib;TKMesh.lib;TKMeshVS.lib;TKTopAlgo.lib;TKGeomAlgo.lib;TKBool.lib;TKPrim.lib;TKBO.lib;TKIGES.lib;TKBRep.lib;TKSTEPBase.lib;TKSTEP.lib;TKSTL.lib;TKSTEPAttr.lib;TKSTEP209.lib;TKXDESTEP.lib;TKXDEIGES.lib;TKXCAF.lib;TKDCAF.lib;TKLCAF.lib;%(AdditionalDependencies) - $(CASROOT)\win32\vc8\lib;$(SolutionDir)..\..\ext_libs\pthreads-Win32\lib\x86;$(SolutionDir)..\..\ext_libs\zlib\x86\lib;%(AdditionalLibraryDirectories) - $(OutDir)$(TargetFileName).intermediate.manifest - - - $(OutDir)$(TargetFileName).embed.manifest - - - $(OutDir)$(TargetFileName).embed.manifest.res - - - "$(ProjectDir)\postBuild_nglib.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" - - - - - $(SolutionDir)\BuildLog_$(ProjectName)_$(Platform).htm - - - X64 - - - Full - AnySuitable - true - Speed - $(CASROOT)\inc;$(SolutionDir)..\..\ext_libs\pthreads-Win32\include;$(SolutionDir)..\libsrc\include;$(SolutionDir)..\nglib;$(SolutionDir)..\;$(SolutionDir)..\..\ext_libs\zlib\include;%(AdditionalIncludeDirectories) - WNT;WIN32;NDEBUG;_WINDOWS;_USRDLL;NGLIB_EXPORTS;MSVC_EXPRESS;Standard_EXPORT=;OCCGEOMETRY;_OCC64;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions) - MultiThreadedDLL - true - StreamingSIMDExtensions - - $(IntDir) - $(IntDir)vc90.pdb - $(IntDir) - Level2 - ProgramDatabase - true - 4250 - - - pthreadVC2.lib;zlib1.lib;opengl32.lib;glu32.lib;TKernel.lib;TKGeomBase.lib;TKMath.lib;TKG2d.lib;TKG3d.lib;TKXSBase.lib;TKOffset.lib;TKFillet.lib;TKShHealing.lib;TKMesh.lib;TKMeshVS.lib;TKTopAlgo.lib;TKGeomAlgo.lib;TKBool.lib;TKPrim.lib;TKBO.lib;TKIGES.lib;TKBRep.lib;TKSTEPBase.lib;TKSTEP.lib;TKSTL.lib;TKSTEPAttr.lib;TKSTEP209.lib;TKXDESTEP.lib;TKXDEIGES.lib;TKXCAF.lib;TKLCAF.lib;%(AdditionalDependencies) - $(CASROOT)\win64\vc9\lib;$(SolutionDir)..\..\ext_libs\pthreads-Win32\lib\x64;$(SolutionDir)..\..\ext_libs\zlib\x64\\lib;%(AdditionalLibraryDirectories) - $(OutDir)$(TargetFileName).intermediate.manifest - MachineX64 - - - $(OutDir)$(TargetFileName).embed.manifest - - - $(OutDir)$(TargetFileName).embed.manifest.res - - - "$(ProjectDir)\postBuild_nglib.bat" "$(ProjectName)" "$(TargetFileName)" "$(Configuration)" "$(Platform)" "$(ProjectDir)" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/windows/postBuild_netgen.bat b/windows/postBuild_netgen.bat deleted file mode 100644 index 2efd175a..00000000 --- a/windows/postBuild_netgen.bat +++ /dev/null @@ -1,164 +0,0 @@ -REM ********************************************************************************* -REM *** Netgen Windows Post-Build Script -REM *** Author: Philippose Rajan -REM *** Date: 31/01/2009 -REM *** -REM *** Used to perform an "Install" of the generated executable -REM *** along with the required *.tcl files -REM *** -REM *** Call from Visual C++ using: -REM *** postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir) -REM ********************************************************************************* -if [%1]==[] goto InputParamsFailed -set PROJ_NAME=%~1 -set PROJ_EXEC=%~2 -set BUILD_TYPE=%~3 -set BUILD_ARCH=%~4 -set PROJ_DIR=%~5 -set LIB_NAME=%~6 - -REM *** Change these Folders if required *** -REM Check if the environment variable NETGENDIR exists, -REM and use it as the installation folder -set W_WO_OCC=%BUILD_TYPE:~-4,3% -if defined NETGENDIR ( - echo Environment variable NETGENDIR found: %NETGENDIR% - set INSTALL_FOLDER=%NETGENDIR%\.. -) else ( - echo Environment variable NETGENDIR not found.... using default location!!! - if /i "%W_WO_OCC%" == "OCC" ( - set INSTALL_FOLDER=%PROJ_DIR%..\..\%PROJ_NAME%-instOCC_%BUILD_ARCH% - ) else ( - set INSTALL_FOLDER=%PROJ_DIR%..\..\%PROJ_NAME%-instNoOCC_%BUILD_ARCH% - ) -) - -set NETGEN_TCLSRC=%PROJ_DIR%..\ng -set NETGEN_LIBINC=%PROJ_DIR%..\libsrc\include -set NETGEN_NGSINC=%PROJ_DIR%..\libsrc - -REM *** Start the Installation procedure *** -echo POSTBUILD Script for %PROJ_NAME% ........ - -REM *** Embed the Windows Manifest into the Executable File *** -REM echo Embedding Manifest into the executable: %PROJ_EXEC% .... -REM mt.exe -manifest "%BUILD_TYPE%\%PROJ_EXEC%.intermediate.manifest" "-outputresource:%BUILD_TYPE%\%PROJ_EXEC%;#1" -REM if errorlevel 1 goto ManifestFailed -REM echo Embedding Manifest into the executable: Completed OK!! - -REM *** Copy the core TCL files into the Install Folder *** -echo Installing core TCL files into %INSTALL_FOLDER%\bin .... -xcopy "%NETGEN_TCLSRC%\*.tcl" "%INSTALL_FOLDER%\bin\" /i /d /y -xcopy "%NETGEN_TCLSRC%\*.ocf" "%INSTALL_FOLDER%\bin\" /i /d /y -if errorlevel 1 goto CoreTCLFailed -echo Installing core TCL Files: Completed OK!! - -REM *** Copy any more auxiliary TCL files into the Install Folder *** -REM if errorlevel 1 goto AuxTCLFailed -REM echo Installing auxiliary TCL Files: Completed OK!! - -REM *** Copy the primary Netgen executable file into the Install Folder *** -echo Installing %PROJ_EXEC% into %INSTALL_FOLDER%\bin .... -if /i "%BUILD_ARCH%" == "win32" ( - xcopy "%PROJ_DIR%%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%\bin\" /i /d /y - if errorlevel 1 goto ExecInstallFailed -) -if /i "%BUILD_ARCH%" == "x64" ( - xcopy "%PROJ_DIR%%BUILD_ARCH%\%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%\bin\" /i /d /y - if errorlevel 1 goto ExecInstallFailed -) -echo Installing %PROJ_EXEC%: Completed OK!! - -REM *** Copy the primary Netgen library and include files into the Install Folder *** -echo Installing %LIB_NAME%.lib into %INSTALL_FOLDER%\lib .... -if /i "%BUILD_ARCH%" == "win32" ( - xcopy "%PROJ_DIR%%BUILD_TYPE%\%LIB_NAME%.lib" "%INSTALL_FOLDER%\lib\" /i /d /y - if errorlevel 1 goto LibInstallFailed -) -if /i "%BUILD_ARCH%" == "x64" ( - xcopy "%PROJ_DIR%%BUILD_ARCH%\%BUILD_TYPE%\%LIB_NAME%.lib" "%INSTALL_FOLDER%\lib\" /i /d /y - if errorlevel 1 goto LibInstallFailed -) -echo Installing %LIB_NAME%.lib: Completed OK!! - -echo Installing %LIB_NAME%.h into %INSTALL_FOLDER%\include .... -xcopy "%NETGEN_LIBINC%\%LIB_NAME%.h" "%INSTALL_FOLDER%\include\" /i /d /y -if errorlevel 1 goto LibInstallFailed -echo Installing %LIB_NAME%.h: Completed OK!! - -echo Installing NgSolve dependent header files into %INSTALL_FOLDER%\include .... -xcopy "%NETGEN_NGSINC%\include\nginterface_v2.hpp" "%INSTALL_FOLDER%\include\" /i /d /y -xcopy "%NETGEN_NGSINC%\general\dynamicmem.hpp" "%INSTALL_FOLDER%\include\" /i /d /y -xcopy "%NETGEN_NGSINC%\general\ngexception.hpp" "%INSTALL_FOLDER%\include\" /i /d /y -xcopy "%NETGEN_NGSINC%\visualization\soldata.hpp" "%INSTALL_FOLDER%\include\" /i /d /y - -echo Installing external dependencies -if /i "%BUILD_ARCH%" == "x64" ( - xcopy "%PROJ_DIR%..\..\ext_libs\pthreads-Win32\dll\x64\pthreadVC2.dll" "%INSTALL_FOLDER%\bin" /i /d /y - xcopy "%PROJ_DIR%..\..\ext_libs\zlib\x64\lib\zlib1.dll" "%INSTALL_FOLDER%\bin" /i /d /y - xcopy "%PROJ_DIR%..\..\ext_libs\tcl\bin\x64\*.dll" "%INSTALL_FOLDER%\bin" /i /d /y - xcopy "%PROJ_DIR%..\..\ext_libs\tcl\lib\x64\tcl8.5" "%INSTALL_FOLDER%\lib\tcl8.5" /i /d /y /e /q - xcopy "%PROJ_DIR%..\..\ext_libs\tcl\lib\x64\tix8.4.3" "%INSTALL_FOLDER%\lib\tix8.4.3" /i /d /y /e /q - xcopy "%PROJ_DIR%..\..\ext_libs\tcl\lib\x64\tk8.5" "%INSTALL_FOLDER%\lib\tk8.5" /i /d /y /e /q - copy "%PROJ_DIR%..\..\ext_libs\boost_1_56_0\lib\x64\boost_python-vc120-mt-1_56.dll" "%INSTALL_FOLDER%\bin\boost_python-vc120-mt-1_56.dll" - REM if errorlevel 1 goto externalInstallFailed -) - -if /i "%BUILD_ARCH%" == "win32" ( - xcopy "%PROJ_DIR%..\..\ext_libs\pthreads-Win32\dll\x86\pthreadVC2.dll" "%INSTALL_FOLDER%\bin" /i /d /y - xcopy "%PROJ_DIR%..\..\ext_libs\zlib\x86\lib\zlib1.dll" "%INSTALL_FOLDER%\bin" /i /d /y - xcopy "%PROJ_DIR%..\..\ext_libs\tcl\bin\x86\*.dll" "%INSTALL_FOLDER%\bin" /i /d /y - xcopy "%PROJ_DIR%..\..\ext_libs\tcl\lib\x86\tcl8.5" "%INSTALL_FOLDER%\lib\tcl8.5" /i /d /y /e /q - xcopy "%PROJ_DIR%..\..\ext_libs\tcl\lib\x86\tix8.4.3" "%INSTALL_FOLDER%\lib\tix8.4.3" /i /d /y /e /q - xcopy "%PROJ_DIR%..\..\ext_libs\tcl\lib\x86\tk8.5" "%INSTALL_FOLDER%\lib\tk8.5" /i /d /y /e /q - copy "%PROJ_DIR%..\..\ext_libs\boost_1_56_0\lib\Win32\boost_python-vc120-mt-1_56.dll" "%INSTALL_FOLDER%\bin\boost_python-vc120-mt-1_56.dll" - REM if errorlevel 1 goto externalInstallFailed -) - -REM *** Finally copy the FFMPEG dlls to the bin folder *** -if /i "%BUILD_ARCH%"=="x64" ( - echo Copying FFMPEG dlls - C:\Windows\System32\xcopy "%PROJ_DIR%..\..\ext_libs\FFMPEG\dll\x64\*.dll" "%INSTALL_FOLDER%\bin" /i /d /y -) -if /i "%BUILD_ARCH%"=="win32" ( - echo Copying FFMPEG dlls - C:\Windows\System32\xcopy "%PROJ_DIR%..\..\ext_libs\FFMPEG\dll\Win32\*.dll" "%INSTALL_FOLDER%\bin" /i /d /y -) - -echo Copying tutorials -xcopy "%PROJ_DIR%..\tutorials" "%INSTALL_FOLDER%\tutorials\" /i /d /y /e - - - -REM *** Done with the installation routine *** - -REM *** Clean up the build directory by deleting the OBJ files *** -REM echo Deleting the %PROJ_NAME% build folder %PROJ_DIR%%PROJ_NAME% .... -REM rmdir %PROJ_DIR%%BUILD_TYPE% /s /q - -REM *** If there have been no errors so far, we are done *** -goto BuildEventOK - -REM *** Error Messages for each stage of the post build process *** -:InputParamsFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Invalid number of input parameters!!! -exit 1 -:ManifestFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Manifest not successfully embedded!!! -exit 1 -:CoreTCLFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Error copying core TCL Files into install folder!!! -exit 1 -:ExecInstallFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Error copying the %PROJ_NAME% executable into install folder!!! -exit 1 -:LibInstallFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Error copying %LIB_NAME%.lib or %LIB_NAME%.h into install folder!!! -exit 1 -:externalInstallFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Error copying external dependencies to install folder!!! -exit 1 - -:BuildEventOK -echo POSTBUILD Script for %PROJ_NAME% completed OK.....!! - diff --git a/windows/postBuild_nglib.bat b/windows/postBuild_nglib.bat deleted file mode 100644 index 9e4a5a26..00000000 --- a/windows/postBuild_nglib.bat +++ /dev/null @@ -1,149 +0,0 @@ -REM ********************************************************************************* -REM *** Netgen Library (nglib) Windows Post-Build Script -REM *** Author: Philippose Rajan -REM *** Date: 15/02/2009 -REM *** -REM *** Used to perform an "Install" of the generated Dynamic Link Library (DLL) -REM *** and the corresponding LIB file. -REM *** -REM *** Call from Visual C++ using: -REM *** postBuild_nglib.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir) -REM ********************************************************************************* -if [%1]==[] goto InputParamsFailed -set PROJ_NAME=%~1 -set PROJ_EXEC=%~2 -set BUILD_TYPE=%~3 -set BUILD_ARCH=%~4 -set PROJ_DIR=%~5 - -REM *** Change these Folders if required *** -REM Check if the environment variable NETGENDIR exists, -REM and use it as the installation folder -set W_WO_OCC=%BUILD_TYPE:~-4,3% -if defined NETGENDIR ( - echo Environment variable NETGENDIR found: %NETGENDIR% - set INSTALL_FOLDER=%NETGENDIR%\.. -) else ( - echo Environment variable NETGENDIR not found.... using default location!!! - if /i "%W_WO_OCC%" == "OCC" ( - set INSTALL_FOLDER=%PROJ_DIR%..\..\%PROJ_NAME%-instOCC_%BUILD_ARCH% - ) else ( - set INSTALL_FOLDER=%PROJ_DIR%..\..\%PROJ_NAME%-instNoOCC_%BUILD_ARCH% - ) -) - -if defined PYTHONROOT ( - set PY_PACKAGE_FOLDER=%PYTHONROOT%\lib\site-packages\netgen - echo "%PYTHONROOT%\lib\site-packages\netgen" - echo %PY_PACKAGE_FOLDER% - if not exist "%PYTHONROOT%\lib\site-packages\netgen" ( - mkdir "%PYTHONROOT%\lib\site-packages\netgen" - echo "%PY_PACKAGE_FOLDER%" created - ) -) else ( - echo Environment variable PYTHONTOOT not found -) - - -set NGLIB_LIBINC=%PROJ_DIR%..\nglib - -set NGLIB_PYTHON_SOURCE=%PROJ_DIR%..\python - - -echo POSTBUILD Script for %PROJ_NAME% ........ - -REM *** Embed the Windows Manifest into the Executable File *** -REM echo Embedding Manifest into the DLL: %PROJ_EXEC% .... -REM mt.exe -manifest "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%.intermediate.manifest" "-outputresource:%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%;#2" -REM if errorlevel 1 goto ManifestFailed -REM echo Embedding Manifest into the DLL: Completed OK!! - -REM *** Copy the DLL and LIB Files into the install folder *** -echo Installing required files into %INSTALL_FOLDER% .... -if /i "%BUILD_ARCH%" == "win32" ( - xcopy "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%\bin\" /i /d /y - REM copy "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%\bin\%PROJ_NAME%.pyd" - if errorlevel 1 goto DLLInstallFailed -) -if /i "%BUILD_ARCH%" == "x64" ( - xcopy "%PROJ_DIR%%PROJ_NAME%\%BUILD_ARCH%\%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%\bin\" /i /d /y - REM copy "%PROJ_DIR%%PROJ_NAME%\%BUILD_ARCH%\%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%\bin\%PROJ_NAME%.pyd" - if errorlevel 1 goto DLLInstallFailed -) -echo Installing %PROJ_EXEC%: Completed OK!! - -if /i "%BUILD_ARCH%" == "win32" ( - xcopy "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_NAME%.lib" "%INSTALL_FOLDER%\lib\" /i /d /y - if errorlevel 1 goto LibInstallFailed -) -if /i "%BUILD_ARCH%" == "x64" ( - xcopy "%PROJ_DIR%%PROJ_NAME%\%BUILD_ARCH%\%BUILD_TYPE%\%PROJ_NAME%.lib" "%INSTALL_FOLDER%\lib\" /i /d /y - if errorlevel 1 goto LibInstallFailed -) - -if /i "%BUILD_ARCH%" == "x64" ( - xcopy "%PROJ_DIR%..\..\ext_libs\pthreads-Win32\dll\x64\pthreadVC2.dll" "%INSTALL_FOLDER%\bin" /i /d /y - xcopy "%PROJ_DIR%..\..\ext_libs\zlib\x64\lib\zlib1.dll" "%INSTALL_FOLDER%\bin" /i /d /y - copy "%PROJ_DIR%..\..\ext_libs\boost_1_56_0\lib\x64\boost_python-vc120-mt-1_56.dll" "%INSTALL_FOLDER%\bin\boost_python-vc120-mt-1_56.dll" - if errorlevel 1 goto ExternalInstallFailed -) -if /i "%BUILD_ARCH%" == "win32" ( - xcopy "%PROJ_DIR%..\..\ext_libs\pthreads-Win32\dll\x86\pthreadVC2.dll" "%INSTALL_FOLDER%\bin" /i /d /y - xcopy "%PROJ_DIR%..\..\ext_libs\zlib\x86\lib\zlib1.dll" "%INSTALL_FOLDER%\bin" /i /d /y - copy "%PROJ_DIR%..\..\ext_libs\boost_1_56_0\lib\Win32\boost_python-vc120-mt-1_56.dll" "%INSTALL_FOLDER%\bin\boost_python-vc120-mt-1_56.dll" - if errorlevel 1 goto ExternalInstallFailed -) - -echo Installing %PROJ_NAME%.lib: Completed OK!! - -REM *** Copy the include file nglib.h into the install folder *** -echo Installing %PROJ_NAME%.h into %INSTALL_FOLDER%\include .... -xcopy "%NGLIB_LIBINC%\%PROJ_NAME%.h" "%INSTALL_FOLDER%\include\" /i /d /y -echo "%NGLIB_LIBINC%\..\libsrc\include\nginterface.hpp" -xcopy "%NGLIB_LIBINC%\..\libsrc\include\nginterface.h" "%INSTALL_FOLDER%\include\" /i /d /y -xcopy "%NGLIB_LIBINC%\..\libsrc\include\nginterface_v2.hpp" "%INSTALL_FOLDER%\include\" /i /d /y -xcopy "%NGLIB_LIBINC%\..\libsrc\visualization\soldata.hpp" "%INSTALL_FOLDER%\include\" /i /d /y -if errorlevel 1 goto LibInstallFailed -echo Installing %PROJ_NAME%.h: Completed OK!! - - -REM if defined PYTHONROOT ( - REM *** Copy the python package into python\lib folder *** - REM echo Installing Python package - REM xcopy "%NGLIB_PYTHON_SOURCE%\__init__.py" "%PY_PACKAGE_FOLDER%\" /i /d /y - REM copy "%NGLIB_PYTHON_SOURCE%\__init__.py" "%PY_PACKAGE_FOLDER%\" - REM copy "%NGLIB_PYTHON_SOURCE%\csg.py" "%PY_PACKAGE_FOLDER%\" - REM copy "%NGLIB_PYTHON_SOURCE%\meshing.py" "%PY_PACKAGE_FOLDER%\" - REM if errorlevel 1 goto PythonPackageInstallFailed - REM echo Installing Python package: Completed OK!! -REM ) - -REM *** Clean up the build directory by deleting the OBJ files *** -REM echo Deleting the %PROJ_NAME% build folder %PROJ_DIR%%PROJ_NAME% .... -REM rmdir %PROJ_DIR%%PROJ_NAME% /s /q - -REM *** If there have been no errors so far, we are done *** -goto BuildEventOK - -REM *** Error Messages for each stage of the post build process *** -:InputParamsFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Invalid number of input parameters!!! -exit 1 -:ManifestFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Manifest not successfully embedded!!! -exit 1 -:DLLInstallFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Error copying the %PROJ_NAME% DLL into install folder!!! -exit 1 -:LibInstallFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Error copying %PROJ_NAME%.lib or %PROJ_NAME%.h into install folder!!! -exit 1 -:PythonPackageInstallFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Error copying Python files into Python library folder!!! -exit 1 -:ExternalInstallFailed -echo POSTBUILD Script for %PROJ_NAME% FAILED..... Error copying pthreadVC2.dll into install folder!!! -exit 1 - -:BuildEventOK -echo POSTBUILD Script for %PROJ_NAME% completed OK.....!!