version 1.1, 2000/10/13 06:05:11 |
version 1.4, 2016/09/22 17:00:14 |
|
|
dnl $OpenXM$ |
dnl $OpenXM: OpenXM/src/oxc/configure.in,v 1.3 2004/12/06 14:25:47 ohara Exp $ |
dnl If you change this file, do not forget to run autoconf and rm .configure_done |
dnl If you change this file, do not forget to run autoconf and rm .configure_done |
|
|
AC_INIT(oxc.c) |
AC_INIT(oxc,1.0) |
|
AC_CONFIG_SRCDIR([oxc.c]) |
|
AC_PREREQ(2.69) |
|
|
AC_PROG_CC |
AC_PROG_CC |
AC_PATH_XTRA |
AC_PROG_INSTALL |
|
|
AC_CHECK_FUNC(socket) |
AC_ARG_ENABLE([shared], |
if test "$ac_cv_func_socket" = no ; then |
[ --enable-shared enable linking with shared libraries. [[yes]]], |
AC_CHECK_LIB(socket,socket) |
[],[enable_shared=yes]) |
|
|
|
if test "${enable_shared:=yes}" != no ; then |
|
true |
fi |
fi |
AC_CHECK_FUNC(gethostbyname) |
|
if test "$ac_cv_func_gethostbyname" = no ; then |
OXLIBS='-lox -lmpfr -lgmp -lgc' |
AC_CHECK_LIB(nsl,gethostbyname) |
if test "${enable_shared}" = no ; then |
|
OXLIBS='${libdir}/libox.a ${libdir}/libmpfr.a ${libdir}/libgmp.a ${libdir}/libgc.a' |
fi |
fi |
|
AC_SUBST([OXLIBS]) |
|
|
AC_OUTPUT(Makefile) |
dnl AC_CHECK_FUNC(socket) |
|
dnl if test "$ac_cv_func_socket" = no ; then |
|
dnl AC_CHECK_LIB(socket,socket) |
|
dnl fi |
|
dnl AC_CHECK_FUNC(gethostbyname) |
|
dnl if test "$ac_cv_func_gethostbyname" = no ; then |
|
dnl AC_CHECK_LIB(nsl,gethostbyname) |
|
dnl fi |
|
dnl AC_CHECK_FUNC(dlopen) |
|
dnl if test "$ac_cv_func_dlopen" = no ; then |
|
dnl AC_CHECK_LIB(dl,dlopen) |
|
dnl fi |
|
|
|
AC_CONFIG_FILES([Makefile]) |
|
AC_OUTPUT |