dnl # -*-shell-script-*- dnl # autoconf2.13 script dnl # «» dnl # AC_INIT(src/ivycpy.i) PACKAGE=ivycpy VERSION=2.0 MV_COLOR_ON(BLACK, WHITE) dnl # AC_PROG_INSTALL dnl # for python specific settings MV_PROG_PYTHON if test ! -f "$PYTHON_COMPILER"; then dnl # if PYTHON_COMPILER file does not exist a local one is used PYTHON_COMPILER="compileall.py" fi MV_MSG(["PYTHON_COMPILER file is "$PYTHON_COMPILER] , $CYAN) CPPFLAGS="$CPPFLAGS -I$PYTHON_INCLUDEDIR/python$PYTHON_VERSION" dnl # for tcl specific settings MV_SET_TCL_CONFIG MV_MSG(["TCL_INCLUDES is "$TCL_INCLUDES] , [$MAGENTA]) CPPFLAGS="$CPPFLAGS $TCL_INCLUDES" dnl # testing some tools are working properly : swig AC_CHECK_PROGS(SWIG, swig) dnl # testing some tools are working properly : ln AC_PROG_LN_S if test -z "$SWIG"; then MV_ERROR( SWIG (Simplified Wrapper and Interface Generator) not found) fi dnl # checking swig version dnl # swig -version 2>&1 | grep Version | awk '{print $3}' SWIGVERSION=`swig -version 2>&1 | grep Version | awk '{print $3}'` MV_MSG(["SWIGVERSION is "$SWIGVERSION] , [$MAGENTA]) dnl # checking doxygen availability and version AC_CHECK_PROGS(DOXYGEN, doxygen) if test -z "$DOXYGEN"; then MV_ERROR(No Doxygen program found) fi DOXYGEN_VERSION=`$DOXYGEN --version` MV_MSG(You are using Doxygen version $DOXYGEN_VERSION, $CYAN) if test "$DOXYGEN_VERSION" '<' "1.4.7"; then MV_ERROR(Doxygen version prior to 1.4.7 does not support python) fi DOCDIR=\${exec_prefix}/doc/html # # Checks for programs. # AC_PROG_CXX AC_PROG_CC # Checks for libraries. # FIXME: Replace `main' with a function in `-lc': AC_CHECK_LIB([c], [main]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST # specific checks AC_TYPE_SIGNAL # Checks for library functions. # AC_MSG_CHECKING("checking for realloc ...") # AC_CHECK_FUNC(realloc,AC_MSG_RESULT(" present"),\ # AC_MSG_ERROR("unreachable")) AC_CHECK_FUNC(realloc,,AC_MSG_ERROR("realloc unreachable")) # # MV_MSG(["CPPFLAGS is "$CPPFLAGS] , [$MAGENTA]) # python header AC_CHECK_HEADERS([Python.h ], , AC_MSG_ERROR("Python.h unreachable")) # tcl header AC_CHECK_HEADERS([tcl.h],,AC_MSG_ERROR("tcl.h unreachable")) # ivy header OS_SET_IVY_C AC_MSG_CHECKING("TCL_THREADS") AC_EGREP_CPP(yes, [ #define WITH_THREAD #include #ifdef TCL_THREADS yes #endif ], tclthreads=yes, tclthreads=no) if test "$tclthreads" = "yes" ; then AC_MSG_RESULT("ok") else AC_MSG_RESULT("no") fi # dnl # exporting (Makefile some variables) AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(DOXYGEN) AC_SUBST(DOCDIR) AC_OUTPUT(GNUmakefile) MV_COLOR_OFF dnl # [END OF FILE]