netgen/configure.ac

90 lines
2.2 KiB
Plaintext
Raw Normal View History

2009-01-16 01:41:14 +05:00
AC_INIT([netgen],[4.9.3],[],[])
2009-01-13 23:32:10 +05:00
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
2009-01-16 01:41:14 +05:00
AC_CONFIG_MACRO_DIR([m4])
TEA_INIT([3.6])
TEA_PATH_TCLCONFIG
TEA_LOAD_TCLCONFIG
2009-01-16 04:03:40 +05:00
TEA_PATH_TKCONFIG
2009-01-16 01:41:14 +05:00
TEA_LOAD_TKCONFIG
2009-01-16 04:03:40 +05:00
# TEA_PATH_TOGLCONFIG
# TEA_LOAD_TOGLCONFIG
# TEA_PREFIX
# TEA_SETUP_COMPILER
2009-01-16 01:41:14 +05:00
2009-01-14 02:14:02 +05:00
2009-01-13 23:32:10 +05:00
AC_ARG_ENABLE([occ],
2009-01-15 22:37:07 +05:00
[ --enable-occ compile with OpenCascade geometry kernel],
2009-01-14 22:27:44 +05:00
[occon=true
2009-01-15 22:37:07 +05:00
occfl="-DOCCGEOMETRY"
occlfl="-lTKIGES -lTKBRep -lTKSTEP -lTKSTL" ],
2009-01-13 23:32:10 +05:00
[occon=false] )
2009-01-15 22:37:07 +05:00
AC_ARG_WITH([occ],
[ --with-occ=dir use OpenCascade installed in directory dir],
[occdir=$withval]
[occincfl="-I$withval/inc"]
[occlibfl="-L$withval/lib"],
)
AC_ARG_WITH([togl],
[ --with-togl=dir directory containing libTogl1.7],
[togldir=$withval]
[togllibfl="-L$withval$"],
[togllibfl="-L/usr/local/lib/Togl1.7"]
)
2009-01-13 04:40:13 +05:00
2009-01-14 21:43:39 +05:00
# AC_HEADER_STDC
2009-01-14 02:14:02 +05:00
AC_CONFIG_HEADERS(config.h)
2009-01-13 04:40:13 +05:00
2009-01-16 01:41:14 +05:00
AC_LANG([C++])
2009-01-13 04:40:13 +05:00
AC_PROG_CXX
2009-01-16 01:41:14 +05:00
LT_INIT
2009-01-13 04:40:13 +05:00
2009-01-14 21:29:22 +05:00
2009-01-15 22:37:07 +05:00
AM_CONDITIONAL([OCC], [test x$occon = xtrue])
# AC_SUBST([OCCFLAGS], [$occfl])
AC_SUBST([OCCFLAGS], ["$occfl $occincfl"])
AC_SUBST([OCCLIBS], ["$occlfl $occlibfl"])
AC_SUBST([TOGLLIBDIR], ["$togllibfl"])
2009-01-14 02:14:02 +05:00
2009-01-14 22:27:44 +05:00
AC_CHECK_HEADER(pthread.h)
AC_CHECK_HEADER([togl.h])
2009-01-14 02:14:02 +05:00
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"])
2009-01-14 22:31:36 +05:00
AC_CHECK_LIB(pthread, pthread_create)
2009-01-16 04:03:40 +05:00
# AC_SEARCH_LIBS(Tcl_Init, [tcl8.5 tcl8.4])
# AC_SEARCH_LIBS(Tk_Init, [tk8.5 tk8.4])
2009-01-14 22:27:44 +05:00
# AC_SEARCH_LIBS(Togl_Init, Toglstub2.0 )
2009-01-16 01:41:14 +05:00
# TEA_TCL_LINK_LIBS
# AC_DEFINE(USE_TCL_STUBS)
# AC_DEFINE(USE_TK_STUBS)
AC_CHECK_FUNCS([pow])
AC_CHECK_FUNCS([floor])
AC_CHECK_HEADERS([limits.h])
2009-01-13 23:32:10 +05:00
2009-01-14 02:14:02 +05:00
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/opti/Makefile \
libsrc/parallel/Makefile libsrc/stlgeom/Makefile libsrc/visualization/Makefile ng/Makefile \
tutorials/Makefile)
2009-01-13 23:32:10 +05:00
2009-01-14 02:14:02 +05:00
AC_OUTPUT