[BACK]Return to configure.ac CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2018

Annotation of OpenXM_contrib2/asir2018/configure.ac, Revision 1.4

1.4     ! ohara       1: dnl $OpenXM: OpenXM_contrib2/asir2018/configure.ac,v 1.3 2020/01/08 17:10:53 ohara Exp $
1.1       noro        2:
1.3       ohara       3: AC_INIT(asir,1.16)
1.1       noro        4: AC_CONFIG_SRCDIR([LICENSE])
                      5: AC_PREREQ(2.69)
                      6: AC_CANONICAL_TARGET
                      7: AM_INIT_AUTOMAKE
                      8: AM_MAINTAINER_MODE
1.3       ohara       9: LT_INIT
1.1       noro       10:
                     11: AC_PROG_CC
                     12: AC_PROG_INSTALL
                     13: AC_PROG_LN_S
                     14: AC_PROG_RANLIB
                     15: AC_PROG_YACC
1.3       ohara      16: AC_PROG_MKDIR_P
1.1       noro       17:
                     18: AC_PATH_XTRA
                     19:
1.4     ! ohara      20: AC_ARG_ENABLE([static_asir],
        !            21: [  --enable-static-asir    force to link statically with libasir. [[yes]]],
        !            22: [enable_static_asir=${enableval}],[enable_static_asir=yes])
        !            23: AM_CONDITIONAL([ASIR_STATIC],[test "${enable_static_asir}" = yes])
1.1       noro       24:
                     25: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                     26:     if test "${ac_cv_prog_cc_g}" = yes; then
                     27:         CFLAGS="-g -O"
                     28:     else
                     29:         CFLAGS="-O"
                     30:     fi
                     31: elif test `basename ./"${CC}"` = "icc" ; then
                     32:     CFLAGS="-g -O"
                     33: fi
                     34:
                     35: AC_ARG_WITH([asir-gc],
                     36: [  --with-asir-gc          modify Boehm's GC [[yes]]],
                     37: [with_asir_gc=${withval}],[with_asir_gc=yes])
                     38: if test ${with_asir_gc:=yes} != no; then
1.3       ohara      39:    GCLIB='-L${prefix}/lib -lasir-gc'
1.1       noro       40: else
                     41:    GCLIB='-L${prefix}/lib -lgc'
                     42:    AC_DEFINE([NO_ASIR_GC])
                     43: fi
1.3       ohara      44: GCINC='-I${prefix}/include'
1.1       noro       45: AC_DEFINE([GC7])
                     46: AC_SUBST([GCLIB])
                     47: AC_SUBST([GCINC])
                     48:
                     49: AC_CHECK_TYPES([unsigned long long])
                     50: AC_CHECK_SIZEOF(long)
                     51: if test "${ac_cv_sizeof_long}" = 8; then
                     52:     AC_DEFINE([LONG_IS_64BIT])
                     53: else
                     54:     AC_DEFINE([LONG_IS_32BIT])
                     55: fi
                     56: if test "${no_x}" != yes ; then
                     57:     if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
                     58:            XPMLIB="-lXpm"
                     59:     fi
                     60:     AC_ARG_ENABLE([plot],
                     61:     [  --enable-plot           enable plot feature. [[no]]],
                     62:     [enable_plot=yes],[enable_plot=no])
                     63: fi
                     64: AC_SUBST([XPMLIB])
                     65:
1.3       ohara      66: dnl sufx is suffix for libasir
                     67: sufx=""
1.1       noro       68: if test ${enable_plot:=no} != no ; then
1.3       ohara      69:     sufx=${sufx}_X
1.1       noro       70:     AC_DEFINE([DO_PLOT])
                     71: fi
                     72: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
                     73:
1.2       kondoh     74: GMPLIB="-L${libdir} -lmpfi -lmpc -lmpfr -lgmp"
1.1       noro       75: AC_ARG_ENABLE([static_gmp],
                     76: [  --enable-static-gmp     force to link statically with gmp. [[no]]],
                     77: [enable_static_gmp=yes],[enable_static_gmp=no])
                     78: if test ${enable_static_gmp:=no} != no ; then
1.2       kondoh     79:     GMPLIB='${libdir}/libmpfi.a ${libdir}/libmpc.a ${libdir}/libmpfr.a ${libdir}/libgmp.a'
1.1       noro       80: fi
                     81: AC_SUBST([GMPLIB])
                     82:
                     83: AC_ARG_ENABLE([interval],
                     84: [  --enable-interval       enable interval feature. [[no]]],
                     85: [enable_interval=${enableval}],[enable_interval=no])
                     86:
                     87: if test ${enable_interval:=no} != no ; then
1.3       ohara      88:     sufx=${sufx}_itv
1.1       noro       89:     AC_DEFINE([INTERVAL])
                     90:     if test "${enable_interval}" = debug ; then
                     91:        AC_DEFINE([ITVDEBUG])
                     92:     fi
                     93: fi
                     94:
                     95: dnl AC_ARG_ENABLE([fep],
                     96: dnl [  --enable-fep            enable fep for human interfaces. [[no]]],
                     97: dnl [enable_fep=yes],[enable_fep=no])
                     98:
                     99: if test "${enable_fep:=no}" != no ; then
                    100:     AC_DEFINE([FEP])
                    101:     FEPLIB="-lreadline -ltermcap"
                    102: fi
                    103: AC_SUBST([FEPLIB])
                    104:
                    105: AC_ARG_ENABLE([fft-float],
                    106: [  --enable-fft-float      enable FFT-FLOAT feature. [[no]]],
                    107: [enable_fft_float=yes],[enable_fft_float=no])
                    108:
                    109: if test "${enable_fft_float:=no}" != no ; then
                    110:     AC_DEFINE([USE_FLOAT])
                    111: fi
                    112:
                    113: AC_ARG_WITH([mpi],
                    114: [  --with-mpi              use the MPI library. [[no]]],
                    115: [with_mpi=${withval}],[with_mpi=no])
                    116:
                    117: if test "${with_mpi:=no}" != no ; then
                    118:     AC_DEFINE([MPI])
                    119: fi
                    120:
                    121: dnl AC_ARG_WITH([lapack],
                    122: dnl [  --with-lapack           use the LAPACK library. [[no]]],
                    123: dnl [with_lapack=${withval}],[with_lapack=no])
                    124:
                    125: if test "${with_lapack:=no}" != no ; then
                    126:     LAPACKLIB="-llapack -lblas -lg2c"
                    127:     AC_DEFINE([LAPACK])
                    128: fi
                    129: AC_SUBST([LAPACKLIB])
                    130:
1.3       ohara     131: AC_SUBST([sufx])
1.1       noro      132:
                    133: case "${host}" in
                    134: [i[3-6]86-*-linux*]|x86-*-linux*)
                    135:     AC_DEFINE([_BSD_SOURCE])
                    136:     ;;
1.3       ohara     137: arm*-*-linux*)
                    138:     if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                    139:         CFLAGS="${CFLAGS} -fsigned-char"
                    140:     fi
1.1       noro      141:     ;;
1.3       ohara     142: [*-*-interix*])
1.1       noro      143:     AC_DEFINE([_ALL_SOURCE])
                    144:     ;;
                    145: sparc-sun-solaris2.*)
                    146:     case "`uname -m`" in
1.3       ohara     147:     sun4u*)     if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
1.1       noro      148:                     CFLAGS="${CFLAGS} -m64"
                    149:                 fi
                    150:                 AC_SUBST([USE_GC_SPARC64])
                    151:                 ;;
                    152:     esac
                    153:     AC_DEFINE([SYSV])
                    154:     ;;
                    155: *-apple-darwin*)
                    156:     AC_DEFINE([__DARWIN__])
                    157:     if test -d /usr/X11/include -a x"${X_CFLAGS}" = x ; then
                    158:         X_CFLAGS=-I/usr/X11/include
                    159:     fi
                    160:     ;;
                    161: *-*-mingw*)
                    162:        WSLIB="-lws2_32"
                    163:     ;;
                    164: esac
                    165: AC_SUBST([WSLIB])
                    166:
                    167: AC_CHECK_FUNCS(sigaction)
                    168: dnl for Solaris 2.x
                    169: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
                    170: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
                    171:
1.3       ohara     172: AC_CONFIG_FILES([Makefile])
1.1       noro      173: AC_OUTPUT

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