=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/configure.in,v retrieving revision 1.3 retrieving revision 1.7 diff -u -p -r1.3 -r1.7 --- OpenXM/src/ox_toolkit/configure.in 2000/03/08 05:46:14 1.3 +++ OpenXM/src/ox_toolkit/configure.in 2003/11/11 04:24:40 1.7 @@ -1,4 +1,4 @@ -dnl $OpenXM: OpenXM/src/ox_toolkit/configure.in,v 1.2 2000/02/08 20:33:06 ohara Exp $ +dnl $OpenXM: OpenXM/src/ox_toolkit/configure.in,v 1.6 2003/03/30 08:05:22 ohara Exp $ dnl If you change this file, do not forget to run autoconf and rm .configure_done @@ -9,13 +9,22 @@ dnl AC_PROG_LN_S dnl AC_PROG_INSTALL AC_PATH_XTRA -AC_CHECK_FUNC(socket) -if test "$ac_cv_func_socket" = no ; then - AC_CHECK_LIB(socket,socket) +AC_ARG_WITH([gmp], +[ --with-gmp with the GNU MP library [[no]]], +[with_gmp=yes],[with_gmp=no]) + +if test ${with_gmp:=no} != no ; then + AC_DEFINE([WITH_GMP]) + GMPLIB="-lgmp" + USE_GMP='#' fi -AC_CHECK_FUNC(gethostbyname) -if test "$ac_cv_func_gethostbyname" = no ; then - AC_CHECK_LIB(nsl,gethostbyname) -fi +AC_SUBST([GMPLIB]) +AC_SUBST([USE_GMP]) + +dnl for Solaris 2.x +AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)]) +AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)]) +dnl for Redhat 8.0 +AC_CHECK_FUNC(dlopen, , [AC_CHECK_LIB(dl,dlopen)]) -AC_OUTPUT(Makefile) \ No newline at end of file +AC_OUTPUT(Makefile)