1685 lines
45 KiB
Plaintext
1685 lines
45 KiB
Plaintext
|
|
#################################################################
|
|
# This is the source for the `configure' script, to be compiled #
|
|
# by autoconf (use make-configure in this directory). #
|
|
#################################################################
|
|
|
|
# Remember:
|
|
# CFLAGS - C compilation only
|
|
# CXXFLAGS - C++ compilation only
|
|
# CPPFLAGS - C and C++ pre-processing and compilation for configure-time testing ONLY
|
|
# COMPFLAGS - C and C++ compilation, but not configure-time tests
|
|
# PREFLAGS - C and C++ preprocessing, but not configure-time tests
|
|
# OPTIONS - C and C++ flags, not needed for configure-time tests
|
|
# MZOPTIONS - Racket-only flags
|
|
# MROPTIONS - GRacket-only flags
|
|
# CGCOPTIONS - Boehm-GC-only flags
|
|
# GC2OPTIONS - GC2-only flags
|
|
#
|
|
# Note: we use CPPFLAGS for configure-time testing only because
|
|
# it needs to include C++ flags that we don't want for Racket.
|
|
# hence PREFLAGS, which is initialized to the original CPPFLAGS.
|
|
|
|
AC_INIT([Racket])
|
|
AC_CONFIG_SRCDIR(racket/src/bignum.c)
|
|
AC_CONFIG_HEADERS([racket/mzconfig.h])
|
|
|
|
AC_ARG_ENABLE(gracket, [ --enable-gracket compile GRacket as well as Racket (enabled by default)], , enable_gracket=yes )
|
|
|
|
AC_ARG_ENABLE(docs, [ --enable-docs build docs on install (enabled by default)], , enable_docs=yes)
|
|
|
|
AC_ARG_ENABLE(gl, [ --enable-gl use OpenGL when available (enabled by default)])
|
|
AC_ARG_ENABLE(xrender, [ --enable-xrender use Xrender when available (enabled by default)])
|
|
AC_ARG_ENABLE(xft, [ --enable-xft use Xft when available (enabled by default)])
|
|
AC_ARG_ENABLE(cairo, [ --enable-cairo use Cairo when available (enabled by default)])
|
|
AC_ARG_ENABLE(libpng, [ --enable-libpng use libpng instead of building (enabled by default)])
|
|
AC_ARG_ENABLE(libjpeg, [ --enable-libjpeg use libjpeg instead of building (enabled by default)])
|
|
|
|
AC_ARG_ENABLE(shared, [ --enable-shared create shared libraries])
|
|
AC_ARG_ENABLE(dynlib, [ --enable-dynlib same as --enable-shared])
|
|
AC_ARG_ENABLE(lt, [ --enable-lt=<prog> use <prog> instead of bundled libtool], LIBTOOLPROG="$enableval", enable_lt=no)
|
|
|
|
AC_ARG_ENABLE(origtree,[ --enable-origtree install with original directory structure])
|
|
|
|
AC_ARG_ENABLE(jit, [ --enable-jit compile JIT support (enabled by default)], , enable_jit=yes)
|
|
|
|
AC_ARG_ENABLE(foreign, [ --enable-foreign compile foreign support (enabled by default)], , enable_foreign=yes)
|
|
|
|
AC_ARG_ENABLE(places, [ --enable-places compile places support])
|
|
AC_ARG_ENABLE(futures, [ --enable-futures compile futures support (usually enabled by default)])
|
|
|
|
AC_ARG_ENABLE(cgcdefault, [ --enable-cgcdefault use CGC (Boehm or Senora) as default build])
|
|
AC_ARG_ENABLE(sgc, [ --enable-sgc use Senora GC instead of the Boehm GC])
|
|
AC_ARG_ENABLE(sgcdebug,[ --enable-sgcdebug use Senora GC for debugging])
|
|
AC_ARG_ENABLE(account, [ --enable-account 3m: use memory-accounting GC (enabled by default)], , enable_account=yes)
|
|
AC_ARG_ENABLE(compact, [ --enable-compact 3m: use compact GC (no accounting)])
|
|
AC_ARG_ENABLE(backtrace, [ --enable-backtrace 3m: support GC backtrace dumps])
|
|
|
|
AC_ARG_ENABLE(float, [ --enable-float include support for single-precision floats])
|
|
AC_ARG_ENABLE(floatinstead, [ --enable-floatinstead compile to use single-precision by default])
|
|
|
|
AC_ARG_ENABLE(pthread, [ --enable-pthread link with pthreads (sometimes needed for GL)])
|
|
AC_ARG_ENABLE(stackup, [ --enable-stackup assume "up" if stack direction cannot be determined])
|
|
AC_ARG_ENABLE(bigendian, [ --enable-bigendian assume "big" if endianness cannot be determined])
|
|
|
|
AC_ARG_ENABLE(oskit, [ --enable-oskit compile OSKit-based Racket kernel])
|
|
AC_ARG_ENABLE(smalloskit, [ --enable-smalloskit compile small OSKit-based Racket kernel])
|
|
|
|
AC_ARG_ENABLE(wbuild, [ --enable-wbuild compile and use wbuild for .w sources])
|
|
AC_ARG_ENABLE(perl, [ --enable-perl use perl to regenerate certain sources])
|
|
|
|
AC_ARG_ENABLE(gprof, [ --enable-gprof compile for profiling with gprof (gcc only)])
|
|
AC_ARG_ENABLE(gcov, [ --enable-gcov compile to gather gcov statistics (gcc3 only)])
|
|
|
|
AC_ARG_ENABLE(noopt, [ --enable-noopt drop -O C flags])
|
|
|
|
AC_ARG_ENABLE(enable_sdk, [ --enable-sdk=<path> use Mac OS X 10.4 SDK directory])
|
|
|
|
AC_ARG_ENABLE(xonx, [ --enable-xonx compile X11 (not Quartz) GRacket for Mac OS X])
|
|
AC_ARG_ENABLE(libfw, [ --enable-libfw install Mac OS X frameworks to /Library/Frameworks])
|
|
AC_ARG_ENABLE(libfw, [ --enable-userfw install Mac OS X frameworks to ~/Library/Frameworks])
|
|
AC_ARG_ENABLE(macprefix, [ --enable-macprefix allow --prefix with a Mac OS X install])
|
|
AC_ARG_ENABLE(mac64, [ --enable-mac64 do not force 32-bit build])
|
|
|
|
AC_ARG_ENABLE(gc2_places_testing, [ --enable-gcplacestest compile GC places testing support])
|
|
|
|
###### Get OS Type #######
|
|
|
|
if test -x "/bin/uname" ; then
|
|
UNAME=/bin/uname
|
|
elif test -x "/usr/bin/uname" ; then
|
|
UNAME=/usr/bin/uname
|
|
elif test -x "/usr/local/bin/uname" ; then
|
|
UNAME=/usr/local/bin/uname
|
|
else
|
|
echo configure: cannot find uname
|
|
exit 1
|
|
fi
|
|
|
|
OS=`$UNAME -s`
|
|
|
|
###### Some flags imply other flags #######
|
|
|
|
if test "${enable_smalloskit}" = "yes" ; then
|
|
enable_oskit=yes
|
|
fi
|
|
|
|
if test "${enable_oskit}" = "yes" ; then
|
|
enable_gracket=no
|
|
fi
|
|
|
|
if test "${enable_dynlib}" = "no" ; then
|
|
enable_shared=no
|
|
fi
|
|
if test "${enable_dynlib}" = "yes" ; then
|
|
enable_shared=yes
|
|
fi
|
|
if test "${enable_shared}" != "yes" ; then
|
|
enable_lt=no
|
|
fi
|
|
if test "${enable_lt}" = "yes" ; then
|
|
echo "ERROR: no program given for libtool!"
|
|
echo " Supply a program for --enable-lt, something like this:"
|
|
echo " --enable-lt=/usr/bin/libtool"
|
|
exit 1
|
|
fi
|
|
|
|
if test "${enable_shared}" = "yes" ; then
|
|
if test "$OS" = "Darwin" ; then
|
|
if test "${enable_xonx}" != "yes" ; then
|
|
echo "ERROR: don't use --enable-shared or --enable-dynlib under Mac OS X,"
|
|
echo " unless you also use --enable-xonx"
|
|
exit 1
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
enable_quartz=no
|
|
if test "${enable_xonx}" = "yes" ; then
|
|
enable_quartz=no
|
|
else
|
|
if test "$OS" = "Darwin" ; then
|
|
enable_quartz=yes
|
|
enable_origtree=yes
|
|
if test "${prefix}" != "NONE" ; then
|
|
if test "${enable_macprefix}" != "yes" ; then
|
|
echo "ERROR: --prefix not allowed for a Mac OS X build, unless either"
|
|
echo " --enable-xonx is supplied (to create a Unix-style"
|
|
echo " build), or "
|
|
echo " --enable-macprefix is supplied (to allow a Mac-style"
|
|
echo " installation, even though --prefix is normally used"
|
|
echo " for Unix-style installations)"
|
|
exit 1
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_gc2_places_testing}" = "yes" ; then
|
|
enable_shared=yes
|
|
enable_places=yes
|
|
fi
|
|
|
|
|
|
# Hack for the implementor:
|
|
if test "${enable_perl}" = "" ; then
|
|
if test "$USER" = "mflatt" ; then
|
|
enable_perl=yes
|
|
fi
|
|
if test "$USER" = "matthewf" ; then
|
|
enable_perl=yes
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_iconv}" = "" ; then
|
|
enable_iconv=yes
|
|
fi
|
|
|
|
############## Install targets ################
|
|
|
|
unixstyle=no
|
|
if test "${prefix}" != "NONE" ; then
|
|
if test "${enable_origtree}" != "yes" ; then
|
|
unixstyle=yes
|
|
fi
|
|
fi
|
|
if test "${exec_prefix}" != "NONE" ; then
|
|
unixstyle=yes
|
|
fi
|
|
if test "${bindir}" != '${exec_prefix}/bin' ; then
|
|
unixstyle=yes
|
|
fi
|
|
if test "${datadir}" != '${prefix}/share' ; then
|
|
# Newer autoconf uses datarootdir:
|
|
if test "${datadir}" = '${datarootdir}' ; then
|
|
if test "${datarootdir}" != '${prefix}/share' ; then
|
|
unixstyle=yes
|
|
fi
|
|
else
|
|
unixstyle=yes
|
|
fi
|
|
fi
|
|
if test "${libdir}" != '${exec_prefix}/lib' ; then
|
|
unixstyle=yes
|
|
fi
|
|
if test "${includedir}" != '${prefix}/include' ; then
|
|
unixstyle=yes
|
|
fi
|
|
if test "${mandir}" != '${prefix}/man' ; then
|
|
if test "${mandir}" = '${datarootdir}/man' ; then
|
|
if test "${datarootdir}" != '${prefix}/share' ; then
|
|
unixstyle=yes
|
|
fi
|
|
else
|
|
unixstyle=yes
|
|
fi
|
|
fi
|
|
|
|
MAKE_COPYTREE=no
|
|
if test "${unixstyle}" = "no" ; then
|
|
if test "${prefix}" = "NONE" ; then
|
|
inplacebuild=yes
|
|
prefix=`cd "${srcdir}/.." && pwd`
|
|
else
|
|
MAKE_COPYTREE=copytree
|
|
fi
|
|
bindir='${prefix}/bin'
|
|
libpltdir='${prefix}/lib'
|
|
collectsdir='${prefix}/collects'
|
|
includepltdir='${prefix}/include'
|
|
docdir='${prefix}/doc'
|
|
mandir='${prefix}/man'
|
|
COLLECTS_PATH="../collects"
|
|
INSTALL_ORIG_TREE=yes
|
|
else
|
|
if test "${prefix}" = "NONE" ; then
|
|
# Set prefix explicitly so we can use it during configure
|
|
prefix="${ac_default_prefix}"
|
|
fi
|
|
libpltdir="${libdir}/racket"
|
|
collectsdir="${libdir}/racket/collects"
|
|
includepltdir="${includedir}/racket"
|
|
docdir="${datadir}/racket/doc"
|
|
MAKE_COPYTREE=copytree
|
|
COLLECTS_PATH='${collectsdir}'
|
|
INSTALL_ORIG_TREE=no
|
|
fi
|
|
|
|
###### Make sure GRacket is really there ######
|
|
|
|
if test "${enable_gracket}" = "yes" ; then
|
|
if test ! -d $srcdir/gracket ; then
|
|
enable_gracket=no
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_gracket}" = "no" ; then
|
|
enable_wbuild=no
|
|
enable_xrender=no
|
|
enable_cairo=no
|
|
enable_libpng=no
|
|
enable_libjpeg=no
|
|
enable_gl=no
|
|
enable_pthread=no
|
|
fi
|
|
|
|
###### Tell user what flags we have #######
|
|
|
|
show_explicitly_disabled()
|
|
{
|
|
if test "$1" = "no" ; then
|
|
echo "=== $2 disabled"
|
|
fi
|
|
}
|
|
|
|
show_explicitly_enabled()
|
|
{
|
|
if test "$1" = "yes" ; then
|
|
echo "=== $2 enabled"
|
|
fi
|
|
}
|
|
|
|
show_explicitly_enabled "${enable_cgcdefault}" "CGC as default"
|
|
|
|
show_explicitly_disabled "${enable_docs}" "Documentation build"
|
|
|
|
show_explicitly_enabled "${enable_xonx}" "X-on-X"
|
|
show_explicitly_enabled "${enable_shared}" "Shared libraries"
|
|
|
|
show_explicitly_disabled "${enable_gracket}" GRacket
|
|
if test "${enable_gracket}" != "no" ; then
|
|
show_explicitly_disabled "${enable_gl}" OpenGL
|
|
show_explicitly_disabled "${enable_xrender}" Xrender
|
|
show_explicitly_disabled "${enable_xft}" Xft
|
|
show_explicitly_disabled "${enable_cairo}" Cairo
|
|
show_explicitly_disabled "${enable_libpng}" "Use-existing-libpng"
|
|
show_explicitly_disabled "${enable_libjpeg}" "Use-existing-libjpeg"
|
|
fi
|
|
|
|
if test "$LIBTOOLPROG" != "" ; then
|
|
echo "=== Libtool program: $LIBTOOLPROG"
|
|
fi
|
|
show_explicitly_enabled "${enable_orig}" "Original install tree"
|
|
|
|
show_explicitly_disabled "${enable_jit}" JIT
|
|
|
|
show_explicitly_disabled "${enable_foreign}" Foreign
|
|
|
|
show_explicitly_enabled "${enable_places}" Places
|
|
show_explicitly_enabled "${enable_gc2_places_testing}" "GC2 Places Testing"
|
|
show_explicitly_enabled "${enable_futures}" Futures
|
|
show_explicitly_disabled "${enable_futures}" Futures
|
|
|
|
show_explicitly_enabled "${enable_sgc}" SGC
|
|
show_explicitly_enabled "${enable_sgcdebug}" "SGC debug mode"
|
|
show_explicitly_enabled "${enable_compact}" "Compact 3m GC"
|
|
show_explicitly_enabled "${enable_backtrace}" "3m GC backtraces"
|
|
|
|
show_explicitly_enabled "${enable_float}" "Single-precision floats"
|
|
show_explicitly_enabled "${enable_floatinstead}" "Single-precision default floats"
|
|
|
|
show_explicitly_enabled "${enable_pthread}" "pthreads"
|
|
show_explicitly_enabled "${enable_oskit}" "OSKit"
|
|
show_explicitly_enabled "${enable_smalloskit}" "OSKit small mode"
|
|
|
|
show_explicitly_enabled "${enable_wbuild}" "wbuild"
|
|
show_explicitly_enabled "${enable_perl}" "Perl"
|
|
|
|
show_explicitly_enabled "${enable_gprof}" "gprof"
|
|
show_explicitly_enabled "${enable_gcov}" "gcov"
|
|
|
|
show_explicitly_enabled "${enable_noopt}" "No-optimization"
|
|
|
|
show_explicitly_enabled "${enable_mac64}" "64-bit Mac OS X"
|
|
|
|
show_explicitly_enabled "${enable_libfw}" "Frameworks-to-system"
|
|
show_explicitly_enabled "${enable_userfw}" "Frameworks-to-user"
|
|
|
|
###### Some defaults #######
|
|
|
|
OPTIONS=
|
|
|
|
# GC Directory
|
|
GCDIR=gc
|
|
|
|
MZBINTARGET=normal-bin
|
|
MZINSTALLTARGET=unix-install
|
|
|
|
MZOPTIONS=
|
|
CGCOPTIONS=
|
|
GC2OPTIONS=
|
|
DYN_CFLAGS=
|
|
|
|
LIBS=
|
|
|
|
WXVARIANT="wx_xt"
|
|
|
|
MROPTIONS=
|
|
INCLUDEDEP="#"
|
|
WX_MMD_FLAG=
|
|
|
|
JPEG_A='$(JPEG_A)'
|
|
JPEG_INC='$(JPEG_INC)'
|
|
|
|
ZLIB_A='$(ZLIB_A)'
|
|
ZLIB_INC='$(ZLIB_INC)'
|
|
|
|
PNG_A='$(PNG_A)'
|
|
|
|
PREFLAGS="$CPPFLAGS"
|
|
MZRT_CGC_FLAGS=""
|
|
LIBATOM="LIBATOM_NONE"
|
|
|
|
ar_libtool_no_undefined=""
|
|
LIBRACKET_DEP=""
|
|
|
|
XFT_EXTRA_FLAGS=
|
|
XFT_EXTRA_LIBS=
|
|
|
|
EXE_SUFFIX=
|
|
|
|
MMM=3m
|
|
MMM_INSTALLED=
|
|
MMM_CAP_INSTALLED=
|
|
CGC=cgc
|
|
CGC_INSTALLED=cgc
|
|
CGC_CAP_INSTALLED=CGC
|
|
MAIN_VARIANT=3m
|
|
|
|
INSTALL_SETUP_FLAGS=
|
|
|
|
STRIP_DEBUG=":"
|
|
|
|
###### OSKit stuff #######
|
|
|
|
if test "${enable_oskit}" = "yes" ; then
|
|
OSKHOME=${OSKHOME:-/usr/local/oskit}
|
|
|
|
if test ! -d ${OSKHOME}/bin ; then
|
|
AC_MSG_ERROR(cannot find OSKit support; try defining OSKHOME)
|
|
fi
|
|
|
|
CC=`(ls ${OSKHOME}/bin/*-oskit-gcc | head -1) 2> /dev/null`
|
|
if test ! -x "${CC}" ; then
|
|
AC_MSG_ERROR(can't find *-oskit-gcc compiler script in ${OSKHOME}/bin)
|
|
fi
|
|
|
|
PREFLAGS="-nostdinc -I${OSKHOME}/include/oskit -I${OSKHOME}/include/oskit/freebsd "
|
|
PREFLAGS="$PREFLAGS -I${OSKHOME}/include/oskit/c -I${OSKHOME}/include -I/usr/include"
|
|
|
|
GCDIR=sgc
|
|
OPTIONS="-DOSKIT -DUSE_SENORA_GC -DSGC_AUTO_ROOTS=0"
|
|
|
|
if test "${enable_smalloskit}" = "yes" ; then
|
|
EXTRA_OSK_LIBS=
|
|
else
|
|
EXTRA_OSK_LIBS="-loskit_linux_dev -loskit_linux_fs -loskit_diskpart -loskit_freebsd_net"
|
|
OPTIONS="$OPTIONS -DOSK_FILESYSTEMS_AND_ETHERNET"
|
|
fi
|
|
|
|
MZBINTARGET=oskit
|
|
else
|
|
enable_oskit=no
|
|
fi
|
|
|
|
###### float stuff #######
|
|
|
|
if test "${enable_floatinstead}" = "yes" ; then
|
|
enable_float=yes
|
|
OPTIONS="${OPTIONS} -DUSE_SINGLE_FLOATS_AS_DEFAULT"
|
|
fi
|
|
|
|
if test "${enable_float}" = "yes" ; then
|
|
OPTIONS="${OPTIONS} -DUSE_SINGLE_FLOATS"
|
|
fi
|
|
|
|
###### Autoconfigure #######
|
|
|
|
COMPFLAGS=""
|
|
|
|
ORIG_CC="${CC}"
|
|
ORIG_CPP="${CPP}"
|
|
ORIG_CXX="${CXX}"
|
|
ORIG_CXXCPP="${CXXCPP}"
|
|
SUB_CONFIGURE_EXTRAS=""
|
|
|
|
if test "${enable_oskit}" = "no" ; then
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
AC_PROG_CXX
|
|
AC_PROG_CXXCPP
|
|
if test "$AS" = '' ; then
|
|
AS=as
|
|
as_was_set=no
|
|
else
|
|
as_was_set=yes
|
|
fi
|
|
fi
|
|
AC_PROG_RANLIB
|
|
if test "$AR" = '' ; then
|
|
AR=ar
|
|
fi
|
|
if test "$ARFLAGS" = '' ; then
|
|
ARFLAGS=ruv
|
|
fi
|
|
|
|
# If using gcc, we want all warnings:
|
|
if test "$CC" = "gcc" ; then
|
|
COMPFLAGS="$COMPFLAGS -Wall"
|
|
|
|
# Use -MMD when we have gcc and gnumake:
|
|
is_gmake=`make -v no-such-target-we-hope 2>&1 | grep "GNU Make"`
|
|
if test "$is_gmake" = "" ; then
|
|
WX_MMD_FLAG=""
|
|
else
|
|
WX_MMD_FLAG="-MMD"
|
|
INCLUDEDEP="-include"
|
|
fi
|
|
|
|
# Compile mzdyn.o with -fPIC
|
|
DYN_CFLAGS="-fPIC"
|
|
fi
|
|
|
|
if test "${enable_perl}" = "yes" ; then
|
|
AC_PATH_PROG(PERL,perl)
|
|
else
|
|
PERL=""
|
|
fi
|
|
|
|
if test "$REZ" = '' ; then
|
|
REZ=/Developer/Tools/Rez
|
|
fi
|
|
|
|
if test "${enable_gracket}" = "yes" ; then
|
|
if test "${enable_quartz}" = "yes" ; then
|
|
:
|
|
else
|
|
AC_PATH_XTRA
|
|
fi
|
|
|
|
MAKE_GRACKET=gracket
|
|
else
|
|
MAKE_GRACKET=no
|
|
fi
|
|
|
|
AC_CHECK_LIB(m, cos)
|
|
AC_CHECK_LIB(dl, dlopen)
|
|
|
|
PROFFLAGS=""
|
|
|
|
if test "${enable_gprof}" = "yes" ; then
|
|
MZOPTIONS="$MZOPTIONS -DDONT_ITIMER"
|
|
PROFFLAGS="$PROFFLAGS -pg"
|
|
LIBS="$LIBS -pg"
|
|
fi
|
|
|
|
if test "${enable_gcov}" = "yes" ; then
|
|
PROFFLAGS="$PROFFLAGS -fprofile-arcs -ftest-coverage"
|
|
fi
|
|
|
|
if test "${enable_wbuild}" = "yes" ; then
|
|
MAKE_WBUILD=wb
|
|
WBUILD="x/wbuild/src/wbuild"
|
|
WBUILD="$WBUILD --no-init-file --no-lines -i \$(srcdir)/XWidgets"
|
|
WBUILD="$WBUILD -c \$(srcdir)/XWidgets -d \$(srcdir)/XWidgets"
|
|
WBUILD="$WBUILD -p . \$(srcdir)/x/wbuild/wbuild.cfg"
|
|
else
|
|
MAKE_WBUILD=
|
|
WBUILD="sh \$(PLTSRCDIR)/wxxt/src/XWidgets/dummy.wbuild"
|
|
fi
|
|
|
|
ORIG_CC_FOR_BUILD="${CC_FOR_BUILD}"
|
|
if test "$CC_FOR_BUILD" = "" ; then
|
|
CC_FOR_BUILD="$CC"
|
|
fi
|
|
|
|
############## platform tests ################
|
|
|
|
# for flags we don't want to use in config tests:
|
|
EXTRALIBS=
|
|
|
|
# for gmp assembly:
|
|
EXTRA_GMP_OBJ=
|
|
|
|
# For Racket targets:
|
|
OSX=".osx"
|
|
NOT_OSX=""
|
|
CGC_X86_64=""
|
|
|
|
case $OS in
|
|
SunOS)
|
|
case `$UNAME -r` in
|
|
5.*)
|
|
STATICLINK="-Wl,-Bstatic" # after -ldl
|
|
LIBS="$LIBS -lsocket -lnsl -lintl"
|
|
need_gcc_static_libgcc="yes"
|
|
check_gcc_dash_e="yes"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
;;
|
|
AIX)
|
|
enable_cgcdefault="yes"
|
|
EXTRALIBS="-Wl,-brtl,-bE:\$(srcdir)/../racket/include/racket.exp"
|
|
;;
|
|
FreeBSD)
|
|
LIBS="$LIBS -rdynamic"
|
|
DYN_CFLAGS="-fPIC"
|
|
GC_THREADS_FLAG="-DGC_FREEBSD_THREADS"
|
|
enable_pthread=yes
|
|
;;
|
|
OpenBSD)
|
|
LIBS="$LIBS -rdynamic -Wl,--export-dynamic"
|
|
;;
|
|
NetBSD)
|
|
LIBS="$LIBS -rdynamic"
|
|
;;
|
|
IRIX)
|
|
enable_cgcdefault="yes"
|
|
STATICLINK="/usr/lib/libC.a /usr/lib/libmalloc.a"
|
|
if test "$X_PRE_LIBS" = " -lSM -lICE" ; then
|
|
# For some reason, works best to drop these
|
|
X_PRE_LIBS=""
|
|
fi
|
|
;;
|
|
Linux)
|
|
LIBS="$LIBS -ldl -lm -rdynamic"
|
|
DYN_CFLAGS="-fPIC"
|
|
GC_THREADS_FLAG="-DGC_LINUX_THREADS"
|
|
STRIP_DEBUG="strip -S"
|
|
# PPC: X11 librares are not found
|
|
case `$UNAME -m` in
|
|
#Required for CentOS 4.6
|
|
x86_64)
|
|
enable_futures_by_default=yes
|
|
CGC_X86_64="1"
|
|
if test -d /usr/X11R6/lib64 ; then
|
|
X_LIBS="$X_LIBS -L/usr/X11R6/lib64"
|
|
fi
|
|
;;
|
|
ppc)
|
|
if test -d /usr/X11R6/lib ; then
|
|
X_LIBS="$X_LIBS -L/usr/X11R6/lib"
|
|
fi
|
|
;;
|
|
alpha)
|
|
EXTRA_GMP_OBJ="gmp_alpha_gcc.o"
|
|
;;
|
|
i386|i486|i586|i686)
|
|
enable_futures_by_default=yes
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
;;
|
|
OSF1)
|
|
enable_cgcdefault="yes"
|
|
if test "$CC" = "cc" ; then
|
|
COMPFLAGS="$COMPFLAGS -ieee_with_inexact -assume noaligned_objects"
|
|
elif test "$CC" = "gcc" ; then
|
|
EXTRA_GMP_OBJ="gmp_alpha_gcc.o"
|
|
fi
|
|
;;
|
|
HP-UX)
|
|
enable_cgcdefault="yes"
|
|
if test "$CC" = "gcc"; then
|
|
COMPFLAGS="$COMPFLAGS -fPIC"
|
|
else
|
|
CFLAGS="$CFLAGS -Wp,-H,64000"
|
|
PREFLAGS="$PREFLAGS -D_HPUX_SOURCE"
|
|
COMPFLAGS="$COMPFLAGS -Aa +Z"
|
|
CGCOPTIONS="$CGCOPTIONS +ESdbgasm"
|
|
MZOPTIONS="$MZOPTIONS +e"
|
|
fi
|
|
LIBS="$LIBS -Wl,-E"
|
|
# For Xaw and Xmu:
|
|
X_CFLAGS="-I/usr/contrib/X11R6/include/ $X_CFLAGS"
|
|
X_LIBS="-L/usr/contrib/X11R6/lib/ $X_LIBS"
|
|
;;
|
|
CYGWIN*)
|
|
enable_cgcdefault="yes"
|
|
MZINSTALLTARGET=unix-cygwin-install
|
|
if test "${enable_shared}" = "yes" ; then
|
|
ar_libtool_no_undefined=" -no-undefined"
|
|
LIBRACKET_DEP="libmzgc.la -liconv"
|
|
LIBGRACKET_DEP="../racket/libmzgc.la ../racket/libgracket.la"
|
|
fi
|
|
EXE_SUFFIX=".exe"
|
|
;;
|
|
BeOS)
|
|
enable_cgcdefault="yes"
|
|
if test "${enable_sgcdebug}" = "yes" ; then
|
|
dummyvar=""
|
|
else
|
|
enable_sgc=yes
|
|
fi
|
|
;;
|
|
Darwin)
|
|
|
|
if test "${enable_sdk}" != "" ; then
|
|
PREFLAGS="$PREFLAGS -isysroot ${enable_sdk} -mmacosx-version-min=10.4 -DEXTRA_EXCEPTION_STUBS"
|
|
LDFLAGS="$LDFLAGS -isysroot ${enable_sdk} -mmacosx-version-min=10.4"
|
|
if test "${CC}" = "gcc" ; then
|
|
CC=gcc-4.0
|
|
fi
|
|
if test "${CXX}" = "g++" ; then
|
|
CXX=g++-4.0
|
|
fi
|
|
if test "${CPP}" = "gcc -E" ; then
|
|
CPP="gcc-4.0 -E"
|
|
fi
|
|
if test "${CXXCPP}" = "g++ -E" ; then
|
|
CXXCPP="g++-4.0 -E"
|
|
fi
|
|
if test "${LD}" = "gcc" ; then
|
|
LD=gcc-4.0
|
|
fi
|
|
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CFLAGS="'"'"${CFLAGS} ${PREFLAGS}"'"'
|
|
fi
|
|
|
|
case `$UNAME -m` in
|
|
i386)
|
|
enable_futures_by_default=yes
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
PREFLAGS="$PREFLAGS -DOS_X -D_DARWIN_UNLIMITED_SELECT"
|
|
|
|
STRIP_DEBUG="/usr/bin/strip -S"
|
|
|
|
# zlib comes with the OS
|
|
ZLIB_A=""
|
|
ZLIB_INC=""
|
|
|
|
GC_THREADS_FLAG="-DGC_DARWIN_THREADS"
|
|
|
|
[ gcc_vers_three=`${CC} -v 2>&1 | grep "version [3-9][.]"` ]
|
|
if test "$gcc_vers_three" = "" ; then
|
|
# gcc 2.95.2
|
|
if test "${enable_quartz}" = "yes" ; then
|
|
MROPTIONS="$MROPTIONS -cpp-precomp"
|
|
fi
|
|
else
|
|
# gcc 3.x
|
|
CXXFLAGS="$CXXFLAGS -fno-rtti"
|
|
if test "${enable_quartz}" = "yes" ; then
|
|
[ gcc_vers_three_one=`${CC} -v 2>&1 | grep "version 3[.]1"` ]
|
|
if test "$gcc_vers_three_one" = "" ; then
|
|
# gcc 3.3 and up
|
|
GCC_VERSION_THREE_THREE="yes"
|
|
else
|
|
# gcc 3.1
|
|
WXPRECOMP='$(WXPRECOMPDIR)/precomp.o'
|
|
USE_WXPRECOMP='--load-pch $(WXPRECOMPDIR)'
|
|
fi
|
|
else
|
|
MROPTIONS="$MROPTIONS -no-cpp-precomp"
|
|
fi
|
|
fi
|
|
|
|
# Force 32-bit build, for now
|
|
if test "${enable_mac64}" != "yes" ; then
|
|
if test `${UNAME} -m` = "i386" ; then
|
|
if test "${ORIG_CC}" = "" ; then
|
|
CC="${CC} -m32"
|
|
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CC="'"'"${CC}"'"'
|
|
fi
|
|
if test "${ORIG_CPP}" = "" ; then
|
|
CPP="${CPP} -m32"
|
|
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CPP="'"'"${CPP}"'"'
|
|
fi
|
|
if test "${ORIG_CXX}" = "" ; then
|
|
CXX="${CXX} -m32"
|
|
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CXX="'"'"${CXX}"'"'
|
|
fi
|
|
if test "${ORIG_CXXCPP}" = "" ; then
|
|
CXXCPP="${CXXCPP} -m32"
|
|
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CPPCXX="'"'"${CPPCXX}"'"'
|
|
fi
|
|
if test "${ORIG_CC_FOR_BUILD}" = "" ; then
|
|
CC_FOR_BUILD="${CC_FOR_BUILD} -m32"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_quartz}" = "yes" ; then
|
|
WXVARIANT="wx_mac"
|
|
MROPTIONS="$MROPTIONS -fpascal-strings"
|
|
INCLUDEDEP="-include"
|
|
OPTIONS="$OPTIONS -fno-common"
|
|
OSX=""
|
|
NOT_OSX=".other"
|
|
MZINSTALLTARGET=osx-install
|
|
DYN_CFLAGS=""
|
|
enable_xrender=no
|
|
enable_cairo=no
|
|
enable_gl=no
|
|
enable_pthread=no
|
|
if test "${enable_libfw}" = "yes" ; then
|
|
FRAMEWORK_INSTALL_DIR=/Library/Frameworks
|
|
FRAMEWORK_REL_INSTALL=no
|
|
FRAMEWORK_PREFIX=''
|
|
elif test "${enable_userfw}" = "yes" ; then
|
|
FRAMEWORK_INSTALL_DIR=~/Library/Frameworks
|
|
FRAMEWORK_REL_INSTALL=no
|
|
FRAMEWORK_PREFIX=''
|
|
else
|
|
FRAMEWORK_INSTALL_DIR='${libdir}'
|
|
FRAMEWORK_REL_INSTALL=yes
|
|
FRAMEWORK_PREFIX='$(FRAMEWORK_REL_PREFIX)'
|
|
fi
|
|
else
|
|
PREFLAGS="$PREFLAGS -DXONX "
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lz"
|
|
X_LIBS="$X_LIBS -L/usr/X11R6/lib"
|
|
|
|
# need help finding fontconfig and freetype headers:
|
|
XFT_EXTRA_FLAGS="-I/usr/X11R6/include -I/usr/X11R6/include/freetype2"
|
|
XFT_EXTRA_LIBS="-lfontconfig"
|
|
fi
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
MACH=`$UNAME -p`
|
|
case "$MACH" in
|
|
alpha | sparc | powerpc)
|
|
if test "$CC" = "gcc" ; then
|
|
if test "$as_was_set" = "no" ; then
|
|
AS="gcc -c -x assembler-with-cpp"
|
|
fi
|
|
fi
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
############## GC variant ################
|
|
|
|
if test "${enable_cgcdefault}" ; then
|
|
MMM_INSTALLED=3m
|
|
MMM_CAP_INSTALLED=3m
|
|
CGC_INSTALLED=
|
|
CGC_CAP_INSTALLED=
|
|
MAIN_VARIANT=cgc
|
|
fi
|
|
|
|
############## SGC ################
|
|
|
|
if test "${enable_sgc}" = "yes" ; then
|
|
GCDIR=sgc
|
|
OPTIONS="$OPTIONS -DUSE_SENORA_GC"
|
|
fi
|
|
|
|
if test "${enable_sgcdebug}" = "yes" ; then
|
|
GCDIR=sgc
|
|
OPTIONS="$OPTIONS -DSGC_STD_DEBUGGING=1"
|
|
fi
|
|
|
|
############## C flags ################
|
|
|
|
AC_LANG_C
|
|
|
|
[ msg="for inline keyword" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
static inline int foo() { return 0; }
|
|
int main() {
|
|
return foo();
|
|
},
|
|
inline=yes, inline=no, inline=no)
|
|
if test "$inline" = "no" ; then
|
|
MZOPTIONS="$MZOPTIONS -DNO_INLINE_KEYWORD"
|
|
fi
|
|
AC_MSG_RESULT($inline)
|
|
|
|
[ msg="for noinline attribute" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
static int foo() __attribute__ ((noinline));
|
|
static int foo() { return 0; }
|
|
int main() {
|
|
return foo();
|
|
}, noinline=yes, noinline=no, noinline=no)
|
|
if test "$noinline" = "yes" ; then
|
|
AC_DEFINE(MZ_USE_NOINLINE,1,[Have noinline attribute])
|
|
fi
|
|
AC_MSG_RESULT($inline)
|
|
|
|
[ msg="for GNU preprocessor" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
int main () {
|
|
#ifdef __GNUC__
|
|
return 0;
|
|
#else
|
|
return 1;
|
|
#endif
|
|
}, using_gnu_cpp=yes, using_gnu_cpp=no, using_gnu_cpp=no)
|
|
if test "$using_gnu_cpp" = "yes" ; then
|
|
XFORMFLAGS="$XFORMFLAGS --keep-lines"
|
|
fi
|
|
AC_MSG_RESULT($using_gnu_cpp)
|
|
|
|
AC_MSG_CHECKING([for nl_langinfo (CODESET)])
|
|
AC_TRY_LINK([#include <langinfo.h>],
|
|
[char *codeset = nl_langinfo (CODESET);],
|
|
AC_DEFINE(HAVE_CODESET,1,[Have nl_langinfo (CODESET)])
|
|
have_codeset=yes,
|
|
have_codeset=no)
|
|
AC_MSG_RESULT($have_codeset)
|
|
|
|
AC_MSG_CHECKING([for getaddrinfo])
|
|
AC_TRY_LINK([#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netdb.h>],
|
|
[getaddrinfo(NULL, NULL, NULL, NULL);],
|
|
AC_DEFINE(HAVE_GETADDRINFO,1,[Have getaddrinfo])
|
|
have_getaddrinfo=yes,
|
|
have_getaddrinfo=no)
|
|
AC_MSG_RESULT($have_getaddrinfo)
|
|
|
|
iconv_lib_flag=""
|
|
if test "${enable_iconv}" = "yes" ; then
|
|
AC_CHECK_HEADER(iconv.h, enable_iconv=yes, enable_iconv=no)
|
|
if test "${enable_iconv}" = "yes" ; then
|
|
# Does it all work, now?
|
|
AC_TRY_RUN(
|
|
[ #include <iconv.h>]
|
|
[ #include <langinfo.h>]
|
|
int main() {
|
|
[ iconv_open("UTF-8", "UTF-8");]
|
|
return 0;
|
|
}, enable_iconv=yes, enable_iconv=no, enable_iconv=yes)
|
|
if test "${enable_iconv}" = "no" ; then
|
|
# Try adding -liconv ?
|
|
# We did not use AC_CHECK_LIB because iconv is sometimes macro-renamed
|
|
ORIG_LIBS="$LIBS"
|
|
LIBS="$LIBS -liconv"
|
|
AC_TRY_RUN(
|
|
[ #include <iconv.h>]
|
|
[ #include <langinfo.h>]
|
|
int main() {
|
|
[ iconv_open("UTF-8", "UTF-8");]
|
|
return 0;
|
|
}, enable_iconv=yes, enable_iconv=no, enable_iconv=yes)
|
|
if test "${enable_iconv}" = "no" ; then
|
|
LIBS="$ORIG_LIBS"
|
|
else
|
|
iconv_lib_flag=" -liconv"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
[ msg="iconv is usable" ]
|
|
AC_MSG_CHECKING($msg)
|
|
iconv_usage_result="$enable_iconv$iconv_lib_flag"
|
|
AC_MSG_RESULT($iconv_usage_result)
|
|
if test "${enable_iconv}" = "no" ; then
|
|
MZOPTIONS="$MZOPTIONS -DMZ_NO_ICONV"
|
|
fi
|
|
|
|
[ msg="for mbsrtowcs" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
[ #include <wchar.h> ]
|
|
int main() {
|
|
mbstate_t state;
|
|
[ char *src = "X";]
|
|
[ mbsrtowcs(0, &src, 0, &state);]
|
|
return 0;
|
|
}, mbsrtowcs=yes, mbsrtowcs=no, mbsrtowcs=no)
|
|
if test "$mbsrtowcs" = "no" ; then
|
|
MZOPTIONS="$MZOPTIONS -DNO_MBTOWC_FUNCTIONS"
|
|
fi
|
|
AC_MSG_RESULT($mbsrtowcs)
|
|
|
|
if test "${enable_backtrace}" = "yes" ; then
|
|
GC2OPTIONS="$GC2OPTIONS -DMZ_GC_BACKTRACE"
|
|
fi
|
|
|
|
if test "${enable_compact}" = "yes" ; then
|
|
GC2OPTIONS="$GC2OPTIONS -DUSE_COMPACT_3M_GC"
|
|
enable_account=no
|
|
enable_memtrace=no
|
|
fi
|
|
|
|
if test "${enable_account}" = "yes" ; then
|
|
GC2OPTIONS="$GC2OPTIONS -DNEWGC_BTC_ACCOUNT"
|
|
fi
|
|
|
|
if test "${enable_memtrace}" = "yes" ; then
|
|
GC2OPTIONS="$GC2OPTIONS -DNEWGC_MEMORY_TRACE"
|
|
fi
|
|
|
|
LFS_CFLAGS=`getconf LFS_CFLAGS 2> /dev/null`
|
|
if test "${LFS_CFLAGS}" != "" ; then
|
|
echo "Large-file support: ${LFS_CFLAGS}"
|
|
MZOPTIONS="${MZOPTIONS} ${LFS_CFLAGS}"
|
|
fi
|
|
|
|
###### Get data sizes, stack direction, and endianness #######
|
|
|
|
AC_CHECK_SIZEOF(char)
|
|
AC_CHECK_SIZEOF(short)
|
|
AC_CHECK_SIZEOF(int)
|
|
AC_CHECK_SIZEOF(long)
|
|
AC_CHECK_SIZEOF(long long)
|
|
|
|
[ msg="for stack direction" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
int grows_down_p(int n, void *cmp) {
|
|
if (!cmp)
|
|
return grows_down_p(10, &cmp);
|
|
else if (!n)
|
|
return ((unsigned long)&cmp < (unsigned long)cmp);
|
|
else
|
|
return grows_down_p(n - 1, cmp);
|
|
}
|
|
int main() {
|
|
return grows_down_p(0, 0);
|
|
}, stack_direction=up, stack_direction=down, stack_direction=unknown)
|
|
AC_MSG_RESULT($stack_direction)
|
|
|
|
if test "${stack_direction}" = "unknown" ; then
|
|
if test "${enable_stackup}" = "yes" ; then
|
|
stack_direction=up
|
|
else
|
|
echo configure: warning: cannot determine stack direction, assuming down
|
|
fi
|
|
fi
|
|
|
|
if test "${stack_direction}" = "up" ; then
|
|
AC_DEFINE(STACK_DIRECTION,1,[Stack direction up])
|
|
fi
|
|
if test "${stack_direction}" = "down" ; then
|
|
AC_DEFINE(STACK_DIRECTION,-1,[Stack direction down])
|
|
fi
|
|
|
|
AC_C_BIGENDIAN(endianness=big, endianness=little, endianness=unknown)
|
|
if test "${endianness}" = "unknown" ; then
|
|
if test "${enable_bigendian}" = "yes" ; then
|
|
endianness=big
|
|
else
|
|
echo configure: warning: cannot determine endianness, assuming little
|
|
fi
|
|
fi
|
|
|
|
if test "${endianness}" = "big" ; then
|
|
AC_DEFINE(SCHEME_BIG_ENDIAN,1,[Big endian])
|
|
fi
|
|
|
|
############### GC2_PLACES_TESTING ###################
|
|
|
|
if test "${enable_gc2_places_testing}" = "yes" ; then
|
|
AC_DEFINE(GC2_PLACES_TESTING,1,[GC2 Places Testing])
|
|
fi
|
|
|
|
############### places ###################
|
|
|
|
if test "${enable_places}" = "yes" ; then
|
|
AC_DEFINE(MZ_USE_PLACES,1,[Places enabled])
|
|
enable_mzrt=yes
|
|
fi
|
|
|
|
############### futures ###################
|
|
|
|
if test "${enable_futures_by_default}" = "yes" ; then
|
|
if test "${enable_futures}" = "" ; then
|
|
enable_futures=yes
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_futures}" = "yes" ; then
|
|
AC_DEFINE(MZ_USE_FUTURES,1,[Futures enabled])
|
|
enable_mzrt=yes
|
|
fi
|
|
|
|
############### OS threads ###################
|
|
|
|
if test "${enable_mzrt}" = "yes" ; then
|
|
MZRT_CGC_FLAGS="$GC_THREADS_FLAG -DTHREAD_LOCAL_ALLOC"
|
|
LIBATOM="LIBATOM_USE"
|
|
enable_pthread=yes
|
|
fi
|
|
|
|
############### pthread ###################
|
|
|
|
if test "${enable_pthread}" = "yes" ; then
|
|
# FIXME: the following two flags are GCC-specific:
|
|
PREFLAGS="$PREFLAGS -pthread"
|
|
LDFLAGS="$LDFLAGS -pthread"
|
|
AC_DEFINE(USE_PTHREAD_INSTEAD_OF_ITIMER, 1, [Pthread timer enabled])
|
|
|
|
[ msg="whether pthread_rwlock is available" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
[ #include <pthread.h>]
|
|
pthread_rwlock_t l;
|
|
int main() {
|
|
return pthread_rwlock_init(&l, NULL);
|
|
}, rwlockavail=yes, rwlockavail=no, rwlockavail=no)
|
|
AC_MSG_RESULT($rwlockavail)
|
|
if test "$rwlockavail" = "yes" ; then
|
|
AC_DEFINE(HAVE_PTHREAD_RWLOCK,1,[Have pthread_rwlock])
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_pthread}" = "" ; then
|
|
enable_pthread=no
|
|
fi
|
|
|
|
############## Solaris grunge ################
|
|
|
|
if test "$check_gcc_dash_e" = "yes" ; then
|
|
|
|
orig_ldflags="$LDFLAGS"
|
|
LDFLAGS="$LDFLAGS -Wl,-E"
|
|
|
|
# Can use -Wl,-E for linking because we're using GNU linker?
|
|
[ msg="whether linker accepts -Wl,-E" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
int main() {
|
|
return 0;
|
|
}, linker_dash_e=yes, linker_dash_e=no, linker_dash_e=no)
|
|
if test "$linker_dash_e" = "no" ; then
|
|
LDFLAGS="${orig_ldflags}"
|
|
fi
|
|
AC_MSG_RESULT($linker_dash_e)
|
|
|
|
fi
|
|
|
|
############## C++ grunge ################
|
|
|
|
if test "${enable_gracket}" = "yes" ; then
|
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
AC_MSG_CHECKING(whether C++ compiler works)
|
|
AC_TRY_RUN(int main() { return 0; }, cplusplusworks=yes, cplusplusworks=no, cplusplusworks=yes)
|
|
AC_MSG_RESULT($cplusplusworks)
|
|
if test "$cplusplusworks" = "no" ; then
|
|
MROPTIONS="$MROPTIONS -DOPERATOR_NEW_ARRAY"
|
|
echo "***************************************************"
|
|
echo configure: C++ compiler/linker ${CXX} does not work
|
|
echo "***************************************************"
|
|
echo configure aborted
|
|
exit 1
|
|
fi
|
|
|
|
[ msg="whether new and new[] are different" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
[ #include <stddef.h> ]
|
|
inline void *operator new(size_t size) { return (void *)0x1; }
|
|
[ inline void *operator new[](size_t size) { return (void *)0x2; } ]
|
|
class C { int x; };
|
|
int main() {
|
|
[ return (new C) == (new C[10]); ]
|
|
}, different=yes, different=no, different=yes)
|
|
if test "$different" = "yes" ; then
|
|
MROPTIONS="$MROPTIONS -DOPERATOR_NEW_ARRAY"
|
|
fi
|
|
AC_MSG_RESULT($different)
|
|
|
|
if test "$enable_quartz" = "no" ; then
|
|
|
|
# If we're using gcc and including X11/Intrinsic doesn't work
|
|
# then try adding -fpermissive
|
|
if test "$CC" = "gcc" ; then
|
|
AC_MSG_CHECKING(whether need to use -fpermissive)
|
|
AC_TRY_COMPILE([#]include "X11/Intrinsic.h", , addperm=no, addperm=yes)
|
|
if test "$addperm" = "yes" ; then
|
|
CXXFLAGS="$CXXFLAGS -fpermissive"
|
|
fi
|
|
AC_MSG_RESULT($addperm)
|
|
fi
|
|
|
|
# X11 headers present?
|
|
xmissing=""
|
|
AC_CHECK_HEADER(X11/Xlib.h, :, xmissing="$xmissing X11/Xlib.h")
|
|
AC_CHECK_HEADER(X11/Intrinsic.h, :, xmissing="$xmissing X11/XIntrinsic.h")
|
|
AC_CHECK_LIB(X11, XFlush, :, xmissing="$xmissing libX11", $X_LIBS)
|
|
AC_CHECK_LIB(Xext, XSyncQueryExtension, :, xmissing="$xmissing libXext", $X_LIBS -lX11)
|
|
AC_CHECK_LIB(Xt, XtDestroyWidget, :, xmissing="$xmissing libXt", $X_LIBS -lX11 -lXext)
|
|
AC_CHECK_LIB(Xmu, XmuInternAtom, :, xmissing="$xmissing libXmu", $X_LIBS -lXt -lX11 -lXext)
|
|
AC_CHECK_LIB(Xaw, vendorShellClassRec, :, xmissing="$xmissing libXaw", $X_LIBS -lXmu -lXt -lX11 -lXext)
|
|
if test "$xmissing" = "" ; then
|
|
:
|
|
else
|
|
echo "******************************************************"
|
|
echo "configure: cannot find X11 development files that are"
|
|
echo " needed to compile GRacket:"
|
|
echo "$xmissing"
|
|
echo "******************************************************"
|
|
echo configure aborted
|
|
exit 1
|
|
fi
|
|
|
|
# Can we make auto-repeat detectable?
|
|
[ msg="whether X11/XKBlib.h is available" ]
|
|
AC_MSG_CHECKING($msg)
|
|
AC_TRY_RUN(
|
|
[ #include <X11/Intrinsic.h>]
|
|
[ #include <X11/XKBlib.h>]
|
|
int main() {
|
|
return 0;
|
|
}, xkbavail=yes, xkbavail=no, xkbavail=no)
|
|
if test "$xkbavail" = "no" ; then
|
|
MROPTIONS="$MROPTIONS -DNO_XKB_LIB_PRESENT"
|
|
fi
|
|
AC_MSG_RESULT($xkbavail)
|
|
|
|
fi # non-quartz
|
|
|
|
fi
|
|
|
|
############## drop optimization flags ################
|
|
|
|
if test "${enable_noopt}" = "yes" ; then
|
|
AWKPRG='BEGIN { FS = "(^| )-O(0|1|2|3|4|5|6|7|8|9|())( |$)" } /.*/ { for (i = 1; i < NF; i++) printf "%s ", $i; print $NF }'
|
|
CFLAGS=`echo "$CFLAGS" | awk "$AWKPRG"`
|
|
CXXFLAGS=`echo "$CXXFLAGS" | awk "$AWKPRG"`
|
|
fi
|
|
|
|
################### JIT ####################
|
|
|
|
if test "${enable_jit}" = "no" ; then
|
|
PREFLAGS="${PREFLAGS} -DMZ_DONT_USE_JIT"
|
|
fi
|
|
|
|
################ X OpenGL ##################
|
|
|
|
if test "${enable_gl}" = "" ; then
|
|
enable_gl=yes
|
|
fi
|
|
|
|
if test "${enable_gl}" = "yes" ; then
|
|
# Check for header
|
|
AC_CHECK_HEADER(GL/glx.h, GLX_HEADER=yes, GLX_HEADER=no)
|
|
if test "${GLX_HEADER}" = "no" ; then
|
|
echo "could not find GL/glx.h header; disabling GL support"
|
|
enable_gl=no
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_gl}" = "yes" ; then
|
|
AC_CHECK_LIB(GL, glXChooseVisual, GLX_LINK=yes, GLX_LINK=no, $X_LIBS -lX11 -lXext)
|
|
if test "${GL_LINK}" = "no" ; then
|
|
AC_CHECK_LIB(GL, glXChooseVisual, GLX_LINK=pthread, GLX_LINK=no, $X_LIBS -lX11 -lXext -pthread)
|
|
fi
|
|
if test "${GLX_LINK}" = "no" ; then
|
|
echo "could not link to the GLX library; disabling GL support"
|
|
enable_gl=no
|
|
fi
|
|
if test "${GLX_LINK}" = "pthread" ; then
|
|
if test "${enable_pthread}" = "no" ; then
|
|
echo "could not link to GLX without pthreads; use --enable-pthread to enable GL"
|
|
enable_gl=no
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_gl}" = "yes" ; then
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lGL"
|
|
MROPTIONS="$MROPTIONS -DUSE_GL"
|
|
fi
|
|
|
|
################ Xrender ##################
|
|
|
|
if test "${enable_xrender}" = "" ; then
|
|
enable_xrender=yes
|
|
fi
|
|
|
|
if test "${enable_xrender}" = "yes" ; then
|
|
AC_CHECK_HEADER(X11/extensions/Xrender.h, enable_xrender=yes, enable_xrender=no)
|
|
if test "${enable_xrender}" = "yes" ; then
|
|
AC_CHECK_LIB(Xrender, XRenderQueryExtension, enable_xrender="yes", enable_xrender="no", $X_LIBS -lX11 -lXext -lXrender)
|
|
if test "${enable_xrender}" = "yes" ; then
|
|
MROPTIONS="$MROPTIONS -DWX_USE_XRENDER"
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
|
|
else
|
|
echo "no Xrender libs; Xrender support disabled"
|
|
fi
|
|
else
|
|
echo "no Xrender headers; Xrender support disabled"
|
|
fi
|
|
fi
|
|
|
|
################ Xft ##################
|
|
|
|
if test "${enable_xft}" = "" ; then
|
|
if test "${enable_xrender}" = "yes" ; then
|
|
enable_xft=yes
|
|
else
|
|
enable_xft=no
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_xft}" = "yes" ; then
|
|
xft_config_prog="pkg-config xft"
|
|
xft_config_ok=`$xft_config_prog --cflags 2> /dev/null`
|
|
if test "$?" != 0 ; then
|
|
xft_config_prog="xft-config"
|
|
xft_config_ok=`$xft_config_prog --cflags 2> /dev/null`
|
|
fi
|
|
if test "$?" != 0 ; then
|
|
save_cpp_flags="$CPPFLAGS"
|
|
CPPFLAGS="$CPPFLAGS $XFT_EXTRA_FLAGS $X_CFLAGS"
|
|
AC_CHECK_HEADER(X11/Xft/Xft.h, enable_xft=yes, enable_xft=no)
|
|
if test "${enable_xft}" = "yes" ; then
|
|
AC_CHECK_LIB(Xft, XftTextExtents8, enable_xft="yes", enable_xft="no", $X_LIBS -lX11 -lXext -Xrender -lXft)
|
|
if test "${enable_xft}" = "yes" ; then
|
|
MROPTIONS="$MROPTIONS $XFT_EXTRA_FLAGS -DWX_USE_XFT"
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS $XFT_EXTRA_LIBS -lXft"
|
|
else
|
|
echo "no Xft libs; Xft support disabled"
|
|
fi
|
|
else
|
|
echo "no Xft headers; Xft support disabled"
|
|
fi
|
|
CPPFLAGS="$save_cpp_flags"
|
|
else
|
|
echo "Using $xft_config_prog..."
|
|
xft_cflags=`$xft_config_prog --cflags`
|
|
xft_libs=`$xft_config_prog --libs`
|
|
echo "Xft flags: $xft_cflags"
|
|
echo "Xft libs: $xft_libs"
|
|
MROPTIONS="$MROPTIONS -DWX_USE_XFT"
|
|
X_CFLAGS="$X_CFLAGS $xft_cflags"
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS $xft_libs"
|
|
fi
|
|
fi
|
|
|
|
################ Cairo ##################
|
|
|
|
if test "${enable_cairo}" = "" ; then
|
|
enable_cairo=yes
|
|
fi
|
|
|
|
if test "${enable_cairo}" = "yes" ; then
|
|
cairo_config_ok=`pkg-config --cflags cairo 2> /dev/null`
|
|
if test "$?" != 0 ; then
|
|
echo "no information from pkg-config; Cairo support disabled"
|
|
else
|
|
echo "Using pkg-config for Cairo..."
|
|
cairo_cflags=`pkg-config --cflags cairo`
|
|
cairo_libs=`pkg-config --libs cairo`
|
|
echo "Cairo flags: $cairo_cflags"
|
|
echo "Cairo libs: $cairo_libs"
|
|
AC_CHECK_LIB(cairo, cairo_create, enable_cairo="yes", enable_xrender="no", $X_LIBS $X_EXTRA_LIBS $cairo_libs)
|
|
if test "${enable_cairo}" = "yes" ; then
|
|
MROPTIONS="$MROPTIONS -DWX_USE_CAIRO"
|
|
X_CFLAGS="$X_CFLAGS $cairo_cflags"
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS $cairo_libs"
|
|
|
|
CPPFLAGS="$CPPFLAGS $cairo_cflags"
|
|
AC_CHECK_HEADER(cairo-xlib.h, havecairoxlib=yes, havecairoxlib=no)
|
|
if test "${havecairoxlib}" = "no" ; then
|
|
MROPTIONS="$MROPTIONS -DWX_CAIRO_NO_XLIBH"
|
|
fi
|
|
else
|
|
echo "no Cairo libs; Cairo support disabled"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
################ libpng ##################
|
|
|
|
if test "${enable_libpng}" = "" ; then
|
|
enable_libpng=yes
|
|
fi
|
|
|
|
if test "${enable_libpng}" = "yes" ; then
|
|
AC_CHECK_HEADER(png.h, enable_libpng=yes, enable_libpng=no)
|
|
if test "${enable_libpng}" = "yes" ; then
|
|
AC_CHECK_LIB(png, png_read_info, enable_libpng="yes", enable_libpng="no", -lpng -lz)
|
|
if test "${enable_libpng}" = "yes" ; then
|
|
PNG_A=""
|
|
PNG_INC=""
|
|
ZLIB_A=""
|
|
ZLIB_INC=""
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lpng -lz"
|
|
MROPTIONS="$MROPTIONS -DWX_USE_LIBPNG"
|
|
else
|
|
echo "no libpng installed; building static version"
|
|
fi
|
|
else
|
|
echo "no libpng headers installed; building from PLT copy"
|
|
fi
|
|
fi
|
|
|
|
################ libjpeg ##################
|
|
|
|
if test "${enable_libjpeg}" = "" ; then
|
|
enable_libjpeg=yes
|
|
fi
|
|
|
|
if test "${enable_libjpeg}" = "yes" ; then
|
|
AC_CHECK_HEADER(jpeglib.h, enable_libjpeg=yes, enable_libjpeg=no)
|
|
if test "${enable_libjpeg}" = "yes" ; then
|
|
AC_CHECK_LIB(jpeg, jpeg_start_decompress, enable_libjpeg="yes", enable_libjpeg="no", -ljpeg)
|
|
if test "${enable_libjpeg}" = "yes" ; then
|
|
JPEG_A=""
|
|
JPEG_INC=""
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -ljpeg"
|
|
MROPTIONS="$MROPTIONS -DWX_USE_LIBJPEG"
|
|
else
|
|
echo "no libjpeg installed; building static version"
|
|
fi
|
|
else
|
|
echo "no libjpeg headers installed; building from PLT copy"
|
|
fi
|
|
fi
|
|
|
|
|
|
############## docs ################
|
|
|
|
if test "${enable_docs}" = "no" ; then
|
|
INSTALL_SETUP_FLAGS="${INSTALL_SETUP_FLAGS} -D"
|
|
fi
|
|
|
|
############## libtool ################
|
|
|
|
if test "${enable_shared}" = "yes" ; then
|
|
echo "Configuring libtool"
|
|
|
|
if test ! -d "lt" ; then
|
|
mkdir "lt"
|
|
fi
|
|
abssrcdir=`(cd ${srcdir}; pwd)`
|
|
|
|
# Try to convert libdir to an absolute path:
|
|
# (Is this necessary anymore?)
|
|
if test -d "${libdir}" ; then
|
|
abslibdir=`(cd ${libdir}; pwd)`
|
|
else
|
|
abslibdir="${libdir}"
|
|
fi
|
|
|
|
|
|
if test "${LIBTOOLPROG}" = "" ; then
|
|
(cd lt; sh ${abssrcdir}/lt/configure --enable-shared --disable-static)
|
|
LIBTOOLPROG=`pwd`/lt/libtool
|
|
fi
|
|
|
|
if test "${need_gcc_static_libgcc}" = "yes" ; then
|
|
need_gcc_static_libgcc=""
|
|
if test "$CC" = "gcc" ; then
|
|
gcc_vers_three=`${CC} -v 2>&1 | grep "version 3[.]"`
|
|
if test "$gcc_vers_three" = "" ; then
|
|
need_gcc_static_libgcc=""
|
|
else
|
|
need_gcc_static_libgcc=" -XCClinker -static-libgcc"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test "$INCLUDEDEP" = "-include" ; then
|
|
plt_lib_version="\$(FWVERSION)"
|
|
else
|
|
plt_lib_version=`grep " MZSCHEME_VERSION " ${srcdir}/racket/src/schvers.h | cut -d '"' -f 2`
|
|
fi
|
|
|
|
AR="${LIBTOOLPROG} --mode=link --tag=CC $CC${need_gcc_static_libgcc}${ar_libtool_no_undefined} -release ${plt_lib_version} -rpath ${abslibdir} \$(ARLIBFLAGS) -o"
|
|
STATIC_AR="${LIBTOOLPROG} --mode=link --tag=CC $CC -o"
|
|
ARFLAGS=""
|
|
RANLIB=":"
|
|
MZLINKER="${LIBTOOLPROG} --mode=link --tag=CC $CC${need_gcc_static_libgcc} -rpath ${abslibdir}"
|
|
GRACKETLINKER="${LIBTOOLPROG} --mode=link --tag=CXX $CXX${need_gcc_static_libgcc} -rpath ${abslibdir}"
|
|
PLAIN_CC="$CC"
|
|
CC="${LIBTOOLPROG} --mode=compile --tag=CC $CC"
|
|
CXX="${LIBTOOLPROG} --mode=compile --tag=CXX $CXX"
|
|
AS="${LIBTOOLPROG} --mode=compile $AS"
|
|
LIBSFX=la
|
|
WXLIBS=WXLIBSDYN
|
|
ICP="${LIBTOOLPROG} --mode=install cp"
|
|
MRLIBINSTALL="install-lib"
|
|
LIBFINISH="${LIBTOOLPROG} --mode=finish"
|
|
LTO="lo"
|
|
LTA="la"
|
|
FOREIGN_CONVENIENCE="_convenience"
|
|
FOREIGN_OBJSLIB="\$(FOREIGN_LIB)"
|
|
MZOPTIONS="$MZOPTIONS -DMZ_USES_SHARED_LIB"
|
|
else
|
|
LIBSFX=a
|
|
GRACKETLINKER='$(CXX)'
|
|
WXLIBS=WXLIBSNORM
|
|
ICP=cp
|
|
MRLIBINSTALL="install-no-lib"
|
|
LIBFINISH=echo
|
|
LTO="o"
|
|
LTA="a"
|
|
MZLINKER='$(CC)'
|
|
STATIC_AR="$AR"
|
|
PLAIN_CC='$(CC)'
|
|
FOREIGN_CONVENIENCE=""
|
|
FOREIGN_OBJSLIB="\$(FOREIGN_OBJS)"
|
|
fi
|
|
|
|
############## final output ################
|
|
|
|
LIBS="$LIBS $EXTRALIBS"
|
|
|
|
AC_SUBST(CC)
|
|
AC_SUBST(CFLAGS)
|
|
AC_SUBST(CXX)
|
|
AC_SUBST(CXXFLAGS)
|
|
AC_SUBST(PREFLAGS)
|
|
AC_SUBST(COMPFLAGS)
|
|
AC_SUBST(PROFFLAGS)
|
|
AC_SUBST(LDFLAGS)
|
|
AC_SUBST(CPP)
|
|
AC_SUBST(CXXCPP)
|
|
AC_SUBST(SED)
|
|
AC_SUBST(PERL)
|
|
AC_SUBST(AS)
|
|
AC_SUBST(RANLIB)
|
|
AC_SUBST(AR)
|
|
AC_SUBST(STATIC_AR)
|
|
AC_SUBST(ARFLAGS)
|
|
AC_SUBST(STRIP_DEBUG)
|
|
AC_SUBST(WBUILD)
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
AC_SUBST(REZ)
|
|
AC_SUBST(MZLINKER)
|
|
AC_SUBST(PLAIN_CC)
|
|
AC_SUBST(DYN_CFLAGS)
|
|
|
|
AC_SUBST(x_includes)
|
|
AC_SUBST(x_libraries)
|
|
AC_SUBST(X_CFLAGS)
|
|
AC_SUBST(X_LIBS)
|
|
AC_SUBST(X_PRE_LIBS)
|
|
AC_SUBST(X_EXTRA_LIBS)
|
|
|
|
AC_SUBST(OPTIONS)
|
|
AC_SUBST(MZOPTIONS)
|
|
AC_SUBST(CGCOPTIONS)
|
|
AC_SUBST(GC2OPTIONS)
|
|
AC_SUBST(MROPTIONS)
|
|
AC_SUBST(GCDIR)
|
|
AC_SUBST(XFORMFLAGS)
|
|
AC_SUBST(MZBINTARGET)
|
|
AC_SUBST(MZINSTALLTARGET)
|
|
AC_SUBST(EXTRA_GMP_OBJ)
|
|
AC_SUBST(OSX)
|
|
AC_SUBST(NOT_OSX)
|
|
AC_SUBST(FRAMEWORK_INSTALL_DIR)
|
|
AC_SUBST(FRAMEWORK_REL_INSTALL)
|
|
AC_SUBST(FRAMEWORK_PREFIX)
|
|
AC_SUBST(INSTALL_ORIG_TREE)
|
|
AC_SUBST(EXE_SUFFIX)
|
|
AC_SUBST(MZRT_CGC_FLAGS)
|
|
AC_SUBST(LIBATOM)
|
|
|
|
AC_SUBST(GRACKETLINKER)
|
|
AC_SUBST(LIBSFX)
|
|
AC_SUBST(WXLIBS)
|
|
AC_SUBST(WXVARIANT)
|
|
AC_SUBST(ICP)
|
|
AC_SUBST(MRLIBINSTALL)
|
|
AC_SUBST(LIBFINISH)
|
|
|
|
AC_SUBST(MAKE_GRACKET)
|
|
AC_SUBST(MAKE_WBUILD)
|
|
AC_SUBST(MAKE_COPYTREE)
|
|
AC_SUBST(MAKE_FINISH)
|
|
|
|
AC_SUBST(WXPRECOMP)
|
|
AC_SUBST(USE_WXPRECOMP)
|
|
AC_SUBST(INCLUDEDEP)
|
|
AC_SUBST(WX_MMD_FLAG)
|
|
|
|
AC_SUBST(JPEG_A)
|
|
AC_SUBST(JPEG_INC)
|
|
AC_SUBST(ZLIB_A)
|
|
AC_SUBST(ZLIB_INC)
|
|
AC_SUBST(PNG_A)
|
|
|
|
AC_SUBST(OSKHOME)
|
|
AC_SUBST(EXTRA_OSK_LIBS)
|
|
|
|
AC_SUBST(FOREIGN_IF_USED)
|
|
AC_SUBST(FOREIGN_OBJSLIB)
|
|
AC_SUBST(FOREIGN_CONVENIENCE)
|
|
AC_SUBST(FOREIGNTARGET)
|
|
|
|
AC_SUBST(LIBRACKET_DEP)
|
|
AC_SUBST(LIBGRACKET_DEP)
|
|
|
|
AC_SUBST(LTO)
|
|
AC_SUBST(LTA)
|
|
|
|
AC_SUBST(collectsdir)
|
|
AC_SUBST(libpltdir)
|
|
AC_SUBST(includepltdir)
|
|
AC_SUBST(docdir)
|
|
AC_SUBST(COLLECTS_PATH)
|
|
|
|
AC_SUBST(MMM)
|
|
AC_SUBST(MMM_INSTALLED)
|
|
AC_SUBST(MMM_CAP_INSTALLED)
|
|
AC_SUBST(CGC)
|
|
AC_SUBST(CGC_INSTALLED)
|
|
AC_SUBST(CGC_CAP_INSTALLED)
|
|
AC_SUBST(MAIN_VARIANT)
|
|
|
|
AC_SUBST(INSTALL_SETUP_FLAGS)
|
|
|
|
mk_needed_dir()
|
|
{
|
|
if test ! -d "$1" ; then
|
|
mkdir "$1"
|
|
fi
|
|
}
|
|
|
|
makefiles="Makefile
|
|
racket/Makefile
|
|
racket/src/Makefile racket/dynsrc/Makefile
|
|
racket/gc/Makefile racket/sgc/Makefile
|
|
racket/gc2/Makefile"
|
|
|
|
# Make sure the --enable-shared default is propagated:
|
|
if test "${enable_shared}" = "yes" ; then
|
|
ac_configure_args="$ac_configure_args --enable-shared"
|
|
fi
|
|
|
|
if test "${LIBATOM}" = "LIBATOM_USE" ; then
|
|
AC_CONFIG_AUX_DIR( racket/gc/libatomic_ops )
|
|
AC_CONFIG_SUBDIRS( racket/gc/libatomic_ops )
|
|
fi
|
|
|
|
FOREIGNTARGET=
|
|
FOREIGN_IF_USED="FOREIGN_NOT_USED"
|
|
if test -d "${srcdir}/foreign" && test "${enable_foreign}" = "yes" ; then
|
|
AC_CONFIG_SUBDIRS( foreign/libffi )
|
|
FOREIGNTARGET="foreign-stuff"
|
|
FOREIGN_IF_USED="FOREIGN_USED"
|
|
else
|
|
FOREIGNTARGET="foreign-stub"
|
|
MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN"
|
|
fi
|
|
makefiles="$makefiles foreign/Makefile"
|
|
ac_configure_args="$ac_configure_args$SUB_CONFIGURE_EXTRAS"
|
|
|
|
if test "${enable_gracket}" = "yes" ; then
|
|
if test "${enable_quartz}" = "yes" ; then
|
|
mk_needed_dir wxmac
|
|
mk_needed_dir wxmac/src
|
|
else
|
|
mk_needed_dir wxxt
|
|
mk_needed_dir wxxt/utils
|
|
mk_needed_dir wxxt/utils/image
|
|
mk_needed_dir wxxt/contrib
|
|
mk_needed_dir wxxt/contrib/xpm
|
|
fi
|
|
|
|
makefiles="$makefiles
|
|
gracket/Makefile
|
|
gracket/wxs/Makefile
|
|
gracket/gc2/Makefile"
|
|
|
|
if test "${enable_libpng}" != "yes" ; then
|
|
makefiles="$makefiles
|
|
wxcommon/libpng/Makefile wxcommon/zlib/Makefile"
|
|
fi
|
|
|
|
if test "${enable_quartz}" = "yes" ; then
|
|
makefiles="$makefiles
|
|
wxmac/src/Makefile"
|
|
else
|
|
makefiles="$makefiles
|
|
wxxt/src/Makefile wxxt/src/x/Makefile
|
|
wxxt/utils/image/src/Makefile
|
|
wxxt/contrib/xpm/lib/Makefile"
|
|
fi
|
|
|
|
if test "${enable_libjpeg}" = "no" ; then
|
|
AC_CONFIG_AUX_DIR( wxcommon/jpeg )
|
|
AC_CONFIG_SUBDIRS( wxcommon/jpeg )
|
|
fi
|
|
fi
|
|
|
|
if test "${enable_wbuild}" = "yes" ; then
|
|
AC_CONFIG_AUX_DIR( wxxt/src/x/wbuild )
|
|
AC_CONFIG_SUBDIRS( wxxt/src/x/wbuild )
|
|
fi
|
|
|
|
AC_OUTPUT($makefiles)
|
|
|
|
if test "${inplacebuild}" = "yes" ; then
|
|
echo ">>> Installation is in-place:"
|
|
echo " ${srcdir}/.."
|
|
echo " Configure with --prefix if you wanted to install somewhere else."
|
|
if test "${enable_quartz}" != "yes" ; then
|
|
echo " The --prefix option also makes the installed files better conform"
|
|
echo " to Unix installation conventions. (The configure script will show"
|
|
echo " you specific installation paths when --prefix is used.)"
|
|
fi
|
|
if test "${enable_shared}" != "yes" ; then
|
|
echo " Alternately, you can simply "'`'"mv' the in-place installation after"
|
|
echo " running "'`'"make install'."
|
|
fi
|
|
else
|
|
echo ">>> Installation targets:"
|
|
echo " executables : ${bindir}/..."
|
|
echo " Scheme code : ${collectsdir}/..."
|
|
echo " core docs : ${docdir}/..."
|
|
echo " C libraries : ${libdir}/..."
|
|
echo " C headers : ${includepltdir}/..."
|
|
echo " extra C objs : ${libpltdir}/..."
|
|
echo " man pages : ${mandir}/..."
|
|
echo " where prefix = ${prefix}"
|
|
echo " and datarootdir = ${datarootdir}"
|
|
if test "${unixstyle}" = "yes" ; then
|
|
echo " and exec_prefix = ${exec_prefix}"
|
|
fi
|
|
fi
|