dnl Process this file with autoconf to produce a configure script. dnl This config.in requires autoconf 2.0 or greater. dnl dnl $Id: configure.in,v 1.9 2000/01/08 17:01:21 ejb Exp $ dnl $Source: /home/ejb/source/magiccube4d/CVSroot/src/configure.in,v $ dnl $Author: ejb $ dnl AC_INIT(MagicCube.h) AC_REVISION($Revision: 1.9 $)dnl AC_SUBST(WFLAGS) AC_SUBST(DFLAGS) AC_SUBST(XLIBS) AC_SUBST(XINCS) AC_SUBST(LIBS) AC_SUBST(OS) AC_SUBST(DOTVERSION) AC_SUBST(VERSION) AC_PROG_CXX AC_ARG_ENABLE(debugging, [ --enable-debugging support debugging in binaries], [DFLAGS="-g"], [DFLAGS="-O"]) if test "$GXX" = "yes" ; then WFLAGS="$WFLAGS -pedantic -Wall -W -Wunused -Werror" fi AC_PATH_X if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then XLIBS=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` fi if test "${x_includes}" != NONE && test -n "${x_includes}"; then XINCS=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` fi OS=`uname -s | tr A-Z a-z` DOTVERSION=`grep VERSION MagicCube.h | awk -F\" '{print $2}'` VERSION=`echo $DOTVERSION | sed -e 's/\./_/g'` OTHERLIBS="" AC_CHECK_LIB(ICE, IceAcceptConnection,,,${XLIBS} -lm -lXaw -lXmu -lXt -lXext -lX11) AC_CHECK_LIB(SM, SmcOpenConnection,,,${XLIBS} -lm -lXaw -lXmu -lXt -lXext -lX11) AC_OUTPUT(Makefile magiccube4d.spec)