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 |
# |
# |
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 |
1430 |
if test -f h/$use.defs ; then |
if test -f h/$use.defs ; then |
1431 |
|
|
1432 |
AC_SUBST(use) |
AC_SUBST(use) |
1433 |
AC_OUTPUT(makedefc windows/gcl.iss) |
AC_OUTPUT(makedefc windows/gcl.iss windows/gcl.ansi.iss) |
1434 |
echo makedefc |
echo makedefc |
1435 |
cat makedefc |
cat makedefc |
1436 |
|
|