[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000

Annotation of OpenXM_contrib2/asir2000/configure.in, Revision 1.19

1.19    ! noro        1: dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.18 2004/03/25 16:32:45 ohara Exp $
1.1       ohara       2:
                      3: AC_INIT([LICENSE])
                      4: AC_PREREQ(2.53)
1.5       noro        5: AM_INIT_AUTOMAKE(asir, 20030307)
1.11      ohara       6: AM_MAINTAINER_MODE
1.1       ohara       7:
                      8: AC_CANONICAL_SYSTEM
                      9:
                     10: dnl AM_PROG_AS
                     11: AC_PROG_CC
                     12: AC_PROG_INSTALL
                     13: AC_PROG_LN_S
                     14: AC_PROG_RANLIB
                     15: AC_PROG_YACC
                     16:
                     17: AC_PATH_XTRA
                     18:
                     19: AC_DEFINE([HMEXT])
                     20:
                     21: AC_ARG_ENABLE([shared],
                     22: [  --enable-shared         enable linking shared libraries.  [[no]]],
                     23: [enable_shared=yes],[enable_shared=no])
                     24:
                     25: if test "${enable_shared:=no}" != no ; then
                     26:    true
                     27: fi
1.4       noro       28:
1.6       ohara      29: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                     30:     if test "${ac_cv_prog_cc_g}" = yes; then
                     31:         CFLAGS="-g -O"
                     32:     else
                     33:         CFLAGS="-O"
                     34:     fi
1.18      ohara      35: elif test `basename ./"${CC}"` = "icc" ; then
                     36:     CFLAGS="-g -O"
1.6       ohara      37: fi
1.12      ohara      38:
                     39: AC_ARG_ENABLE([gc-zeropage],
                     40: [  --enable-gc-zeropage    enable to avoid the kernel zeropage bug.  [[no]]],
                     41: [enable_gc_zeropage=yes],[enable_gc_zeropage=no])
                     42:
                     43: if test "${enable_gc_zeropage:=no}" != no ; then
                     44:     USE_GC_ZEROPAGE="yes"
                     45: fi
                     46: AC_SUBST([USE_GC_ZEROPAGE])
1.1       ohara      47:
                     48: libasir_postfix=""
                     49: AC_ARG_WITH([pari],
                     50: [  --with-pari             use the PARI library. [[no]]],
                     51: [with_pari=${withval}],[with_pari=no])
                     52:
                     53: if test ${with_pari:=no} != no ; then
                     54:     libasir_postfix=${libasir_postfix}_pari
1.5       noro       55:     if test ${with_pari} = new ; then
                     56:         libpari=pari-2.2
                     57:     else
1.1       ohara      58:         libpari=pari
                     59:     fi
                     60:     PARIINC='-I${prefix}/include/pari'
                     61:     if test "${enable_shared}" != yes ; then
                     62:         PARILIB='${prefix}'"/lib/lib${libpari}.a"
                     63:     else
                     64:         PARILIB='-L${prefix}/lib'" -l${libpari}"
                     65:     fi
                     66:     AC_DEFINE([PARI])
                     67: fi
                     68: AC_SUBST([PARIINC])
                     69: AC_SUBST([PARILIB])
                     70:
1.7       ohara      71: AC_CHECK_TYPES([unsigned long long])
1.5       noro       72: AC_CHECK_SIZEOF(long)
1.15      noro       73: if test "${ac_cv_sizeof_long}" = 8; then
1.5       noro       74:     AC_DEFINE([LONG_IS_64BIT])
                     75: else
                     76:     AC_DEFINE([LONG_IS_32BIT])
                     77: fi
1.1       ohara      78: if test "${no_x}" != yes ; then
1.14      ohara      79:     if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.10      ohara      80:            XPMLIB="-lXpm"
                     81:     fi
1.1       ohara      82:     AC_ARG_ENABLE([plot],
                     83:     [  --enable-plot           enable plot feature. [[no]]],
                     84:     [enable_plot=yes],[enable_plot=no])
                     85: fi
1.10      ohara      86: AC_SUBST([XPMLIB])
1.1       ohara      87:
                     88: if test ${enable_plot:=no} != no ; then
                     89:     libasir_postfix=${libasir_postfix}_X
                     90:     AC_DEFINE([DO_PLOT])
                     91: fi
                     92: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
                     93:
                     94: AC_ARG_ENABLE([interval],
                     95: [  --enable-interval       enable interval feature. [[no]]],
                     96: [enable_interval=${enableval}],[enable_interval=no])
                     97:
                     98: if test ${enable_interval:=no} != no ; then
                     99:     libasir_postfix=${libasir_postfix}_itv
                    100:     AC_DEFINE([INTERVAL])
                    101:     if test "${enable_interval}" = debug ; then
                    102:        AC_DEFINE([ITVDEBUG])
                    103:     fi
                    104: fi
                    105:
                    106: dnl AC_ARG_ENABLE([fep],
                    107: dnl [  --enable-fep            enable fep for human interfaces. [[no]]],
                    108: dnl [enable_fep=yes],[enable_fep=no])
                    109:
                    110: if test "${enable_fep:=no}" != no ; then
                    111:     AC_DEFINE([FEP])
                    112:     FEPLIB="-lreadline -ltermcap"
                    113: fi
                    114: AC_SUBST([FEPLIB])
                    115:
                    116: AC_ARG_ENABLE([fft-float],
                    117: [  --enable-fft-float      enable FFT-FLOAT feature. [[no]]],
                    118: [enable_fft_float=yes],[enable_fft_float=no])
                    119:
                    120: if test "${enable_fft_float:=no}" != no ; then
                    121:     AC_DEFINE([USE_FLOAT])
                    122: fi
                    123:
                    124: dnl AC_ARG_WITH([mpi],
                    125: dnl [  --with-mpi              use the MPI library. [[no]]],
                    126: dnl [with_mpi=${withval}],[with_mpi=no])
                    127:
                    128: if test "${with_mpi:=no}" != no ; then
                    129:     MPIINC="-I/opt/FJSVmpi2/include"
                    130:     MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
                    131:     AC_DEFINE([MPI])
                    132: fi
                    133: AC_SUBST([MPIINC])
                    134: AC_SUBST([MPILIB])
                    135:
                    136: dnl AC_ARG_WITH([lapack],
                    137: dnl [  --with-lapack           use the LAPACK library. [[no]]],
                    138: dnl [with_lapack=${withval}],[with_lapack=no])
                    139:
                    140: if test "${with_lapack:=no}" != no ; then
                    141:     LAPACKLIB="-llapack -lblas -lI77 -lF77"
                    142:     AC_DEFINE([LAPACK])
                    143: fi
                    144: AC_SUBST([LAPACKLIB])
                    145:
                    146: AC_SUBST([libasir_postfix])
                    147:
                    148: dnl Object files in assembly languages for each micro processors.
                    149: dnl i386_elf_obj:  for FreeBSD 3.x or later and Linux 2.x
                    150: dnl i386_aout_obj: for FreeBSD 2.x, Linux 1.x, and Cygwin
                    151: dnl sparc_v8_obj:  for Sparc V8 processor on Solaris 2.x
                    152: dnl sparc_v9_obj:  for Sparc V9 processor on Solaris 2.x
                    153: dnl generic_obj:   for 32bits/64bits generic micro processors
                    154:
                    155: i386_elf_obj=asmi_l.o
                    156: i386_aout_obj=asmi.o
                    157: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
1.19    ! noro      158: sparc_v9_obj=asmalpha.o
1.1       ohara     159: generic_obj=asmalpha.o
                    160:
                    161: case "${host}" in
1.9       ohara     162: [i[3-6]86-*-freebsd[3-9].*])
1.1       ohara     163:     asm_obj="${i386_elf_obj}"
1.9       ohara     164:     ;;
                    165: [i[3-6]86-*-linux*]|x86-*-linux*)
                    166:     asm_obj="${i386_elf_obj}"
1.13      ohara     167:     AC_DEFINE([_BSD_SOURCE])
1.1       ohara     168:     ;;
                    169: *-*-cygwin*)
                    170:     asm_obj="${i386_aout_obj}"
1.16      ohara     171:     ;;
                    172: [i[3-6]86-*-interix*])
1.17      ohara     173:     asm_obj="${i386_aout_obj}"
                    174:     USE_GC_INTERIX="yes"
                    175:     AC_SUBST([USE_GC_INTERIX])
1.16      ohara     176:     AC_DEFINE([_ALL_SOURCE])
1.1       ohara     177:     ;;
                    178: sparc-sun-solaris2.*)
                    179:     case "`uname -m`" in
                    180:     [sun4[dm]]) asm_obj="${sparc_v8_obj}" ;;
1.3       ohara     181:     sun4u*)     asm_obj="${sparc_v9_obj}" ;;
1.1       ohara     182:     *)          asm_obj="${generic_obj}"  ;;
                    183:     esac
                    184:     AC_DEFINE([SYSV])
1.2       ohara     185:     ;;
                    186: powerpc-apple-darwin*)
                    187:     asm_obj="${generic_obj}"
                    188:     AC_DEFINE([__DARWIN__])
1.8       ohara     189:     ;;
                    190: arm*-*-linux*)
                    191:     asm_obj="${generic_obj}"
                    192:     if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                    193:         CFLAGS="${CFLAGS} -fsigned-char"
                    194:     fi
1.1       ohara     195:     ;;
                    196: *)
                    197:     asm_obj="${generic_obj}"
                    198:     ;;
                    199: esac
                    200:
                    201: AC_SUBST([asm_obj])
                    202:
                    203: dnl for Solaris 2.x
                    204: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
                    205: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
                    206:
                    207: AC_OUTPUT([Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile])

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