1 |
AC_INIT() |
AC_INIT() |
2 |
AC_CONFIG_HEADER(h/gclincl.h) |
AC_CONFIG_HEADER(h/gclincl.h) |
3 |
|
|
4 |
VERSION=2.5.0 |
VERSION=2.5.4 |
5 |
AC_SUBST(VERSION) |
AC_SUBST(VERSION) |
6 |
|
|
7 |
# some parts of this configure script are taken from the tcl configure.in |
# some parts of this configure script are taken from the tcl configure.in |
47 |
AC_ARG_ENABLE(japi,[ --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system], |
AC_ARG_ENABLE(japi,[ --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system], |
48 |
[try_japi=$enableval],[try_japi="no"]) |
[try_japi=$enableval],[try_japi="no"]) |
49 |
|
|
50 |
|
AC_ARG_ENABLE(xdr,[ --enable-xdr=yes will compile in support for XDR], |
51 |
|
[try_xdr=$enableval],[try_xdr="no"]) |
52 |
|
|
53 |
# |
# |
54 |
# Host information |
# Host information |
55 |
# |
# |
206 |
i*mingw*) |
i*mingw*) |
207 |
if test "$use_common_binary" = "yes"; then |
if test "$use_common_binary" = "yes"; then |
208 |
host=i386-pc-mingw32 |
host=i386-pc-mingw32 |
209 |
PROCESSOR_FLAGS="-march=i386 " |
PROCESSOR_FLAGS="-mcpu=i386 -march=i386 " |
210 |
echo "The host is canonicalised to $host" |
echo "The host is canonicalised to $host" |
211 |
fi |
fi |
212 |
use=mingw;; |
use=mingw;; |
832 |
|
|
833 |
AC_CHECK_LIB(m,sin,LIBS="${LIBS} -lm",true) |
AC_CHECK_LIB(m,sin,LIBS="${LIBS} -lm",true) |
834 |
AC_CHECK_LIB(mingwex,main,LIBS="${LIBS} -lmingwex",true) |
AC_CHECK_LIB(mingwex,main,LIBS="${LIBS} -lmingwex",true) |
835 |
# AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lwsock32",true) |
# AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lws2_32",true) |
836 |
EXTRA_LOBJS= |
EXTRA_LOBJS= |
837 |
if test "$try_japi" = "yes" ; then |
if test "$try_japi" = "yes" ; then |
838 |
AC_CHECK_HEADERS(japi.h,[AC_DEFINE(HAVE_JAPI_H) |
AC_CHECK_HEADERS(japi.h,[AC_DEFINE(HAVE_JAPI_H) |
839 |
EXTRA_LOBJS="${EXTRA_LOBJS} japi.o" |
EXTRA_LOBJS="${EXTRA_LOBJS} japi.o" |
840 |
LIBS="${LIBS} -ljapi -lwsock32"] ) |
LIBS="${LIBS} -ljapi -lws2_32"] ) |
841 |
|
fi |
842 |
|
if test "$use" = "mingw" ; then |
843 |
|
if test "$try_xdr" = "yes" ; then |
844 |
|
AC_CHECK_HEADERS(rpc/rpc.h,[AC_DEFINE(HAVE_XDR) |
845 |
|
LIBS="${LIBS} -loncrpc"] ) |
846 |
|
fi |
847 |
|
else |
848 |
|
if test "$try_xdr" = "yes" ; then |
849 |
|
AC_CHECK_HEADERS(rpc/rpc.h,[AC_DEFINE(HAVE_XDR) |
850 |
|
LIBS="${LIBS} -lrpc"] ) |
851 |
|
fi |
852 |
fi |
fi |
853 |
|
|
854 |
# Should really find a way to check for prototypes, but this |
# Should really find a way to check for prototypes, but this |
1201 |
EOF |
EOF |
1202 |
|
|
1203 |
AC_MSG_CHECKING([emacs info/dir]) |
AC_MSG_CHECKING([emacs info/dir]) |
1204 |
if [[ "$EMACS" != "" ]] && [[ "$INFO_DIR" = "unknown" ]] ; then |
if test "$use" = "mingw" ; then |
1205 |
|
INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/ |
1206 |
|
else |
1207 |
|
if [[ "$EMACS" != "" ]] && [[ "$INFO_DIR" = "unknown" ]] ; then |
1208 |
INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
1209 |
|
fi |
1210 |
fi |
fi |
1211 |
if test -f "${INFO_DIR}dir" ; then true;else |
if test -f "${INFO_DIR}dir" ; then true;else |
1212 |
if test -f /usr/info/dir ; then |
if test -f /usr/info/dir ; then |
1434 |
if test -f h/$use.defs ; then |
if test -f h/$use.defs ; then |
1435 |
|
|
1436 |
AC_SUBST(use) |
AC_SUBST(use) |
1437 |
AC_OUTPUT(makedefc windows/gcl.iss bin/gcl.bat) |
AC_OUTPUT(makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp ) |
1438 |
echo makedefc |
echo makedefc |
1439 |
cat makedefc |
cat makedefc |
1440 |
|
|