[BACK]Return to configure.ac CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_pari

Diff for /OpenXM/src/ox_pari/configure.ac between version 1.1 and 1.3

version 1.1, 2016/09/22 10:20:30 version 1.3, 2016/09/26 13:05:17
Line 1 
Line 1 
 dnl $OpenXM$  dnl $OpenXM: OpenXM/src/ox_pari/configure.ac,v 1.2 2016/09/22 17:12:51 ohara Exp $
   
 AC_INIT(ox_pari,1.15)  AC_INIT(ox_pari,1.15)
 AC_CONFIG_SRCDIR([ox_pari.c])  AC_CONFIG_SRCDIR([ox_pari.c])
Line 9  AM_MAINTAINER_MODE
Line 9  AM_MAINTAINER_MODE
   
 AC_PROG_CC  AC_PROG_CC
 AC_PROG_INSTALL  AC_PROG_INSTALL
 AC_PATH_XTRA  AC_PROG_LN_S
   
 if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then  
     if test "${ac_cv_prog_cc_g}" = yes; then  
         CFLAGS="-g -O"  
     else  
         CFLAGS="-O"  
     fi  
 elif test `basename ./"${CC}"` = "icc" ; then  
     CFLAGS="-g -O"  
 fi  
   
 AC_ARG_ENABLE([shared],  AC_ARG_ENABLE([shared],
 [  --enable-shared         enable linking with shared libraries.  [[yes]]],  [  --enable-shared         enable linking with shared libraries.  [[yes]]],
 [],[enable_shared=yes])  [],[enable_shared=yes])
Line 29  if test "${enable_shared:=yes}" != no ; then
Line 19  if test "${enable_shared:=yes}" != no ; then
    true     true
 fi  fi
   
 LIBS='-lox -lmpfr -lgmp -lgc -lpari'  OXLIBS='-lox -lmpfr -lgmp -lgc -lpari'
 if test "${enable_shared}" = no ; then  if test "${enable_shared}" = no ; then
     LIBS='${libdir}/libox.a ${libdir}/libmpfr.a ${libdir}/libgmp.a ${libdir}/libgc.a ${libdir}/libpari.a'      OXLIBS='${libdir}/libox.a ${libdir}/libmpfr.a ${libdir}/libgmp.a ${libdir}/libgc.a ${libdir}/libpari.a'
 fi  fi
 AC_SUBST([LIBS])  AC_SUBST([OXLIBS])
   
 AC_DEFINE([_POSIX_C_SOURCE])  AC_DEFINE([_POSIX_C_SOURCE])
   
 AC_CHECK_FUNCS(sigaction)  AC_CHECK_FUNCS(sigaction)
 dnl for Solaris 2.x  dnl dnl for Solaris 2.x
 AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])  dnl AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
 AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])  dnl AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
   
 AC_CHECK_SIZEOF(long)  
 AC_CONFIG_FILES([Makefile])  AC_CONFIG_FILES([Makefile])
 AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>