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

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

1.5     ! noro        1: dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.4 2003/03/07 05:19:53 noro Exp $
1.1       ohara       2:
                      3: AC_INIT([LICENSE])
                      4: AC_PREREQ(2.53)
1.5     ! noro        5: AM_INIT_AUTOMAKE(asir, 20030307)
1.1       ohara       6:
                      7: AC_CANONICAL_SYSTEM
                      8:
                      9: dnl AM_PROG_AS
                     10: AC_PROG_CC
                     11: AC_PROG_INSTALL
                     12: AC_PROG_LN_S
                     13: AC_PROG_RANLIB
                     14: AC_PROG_YACC
                     15:
                     16: AC_PATH_XTRA
                     17:
                     18: AC_DEFINE([HMEXT])
                     19:
                     20: AC_ARG_ENABLE([shared],
                     21: [  --enable-shared         enable linking shared libraries.  [[no]]],
                     22: [enable_shared=yes],[enable_shared=no])
                     23:
                     24: if test "${enable_shared:=no}" != no ; then
                     25:    true
                     26: fi
1.4       noro       27:
                     28: CFLAGS="-g -O"
1.1       ohara      29:
                     30: libasir_postfix=""
                     31: AC_ARG_WITH([pari],
                     32: [  --with-pari             use the PARI library. [[no]]],
                     33: [with_pari=${withval}],[with_pari=no])
                     34:
                     35: if test ${with_pari:=no} != no ; then
                     36:     libasir_postfix=${libasir_postfix}_pari
1.5     ! noro       37:     if test ${with_pari} = new ; then
        !            38:         libpari=pari-2.2
        !            39:     else
1.1       ohara      40:         libpari=pari
                     41:     fi
                     42:     PARIINC='-I${prefix}/include/pari'
                     43:     if test "${enable_shared}" != yes ; then
                     44:         PARILIB='${prefix}'"/lib/lib${libpari}.a"
                     45:     else
                     46:         PARILIB='-L${prefix}/lib'" -l${libpari}"
                     47:     fi
                     48:     AC_DEFINE([PARI])
                     49: fi
                     50: AC_SUBST([PARIINC])
                     51: AC_SUBST([PARILIB])
                     52:
1.5     ! noro       53: AC_CHECK_SIZEOF(long)
        !            54: if test SIZEOF_LONG = 8; then
        !            55:     AC_DEFINE([LONG_IS_64BIT])
        !            56: else
        !            57:     AC_DEFINE([LONG_IS_32BIT])
        !            58: fi
1.1       ohara      59: if test "${no_x}" != yes ; then
                     60:     AC_ARG_ENABLE([plot],
                     61:     [  --enable-plot           enable plot feature. [[no]]],
                     62:     [enable_plot=yes],[enable_plot=no])
                     63: fi
                     64:
                     65: if test ${enable_plot:=no} != no ; then
                     66:     libasir_postfix=${libasir_postfix}_X
                     67:     AC_DEFINE([DO_PLOT])
                     68: fi
                     69: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
                     70:
                     71: AC_ARG_ENABLE([interval],
                     72: [  --enable-interval       enable interval feature. [[no]]],
                     73: [enable_interval=${enableval}],[enable_interval=no])
                     74:
                     75: if test ${enable_interval:=no} != no ; then
                     76:     libasir_postfix=${libasir_postfix}_itv
                     77:     AC_DEFINE([INTERVAL])
                     78:     if test "${enable_interval}" = debug ; then
                     79:        AC_DEFINE([ITVDEBUG])
                     80:     fi
                     81: fi
                     82:
                     83: dnl AC_ARG_ENABLE([fep],
                     84: dnl [  --enable-fep            enable fep for human interfaces. [[no]]],
                     85: dnl [enable_fep=yes],[enable_fep=no])
                     86:
                     87: if test "${enable_fep:=no}" != no ; then
                     88:     AC_DEFINE([FEP])
                     89:     FEPLIB="-lreadline -ltermcap"
                     90: fi
                     91: AC_SUBST([FEPLIB])
                     92:
                     93: AC_ARG_ENABLE([fft-float],
                     94: [  --enable-fft-float      enable FFT-FLOAT feature. [[no]]],
                     95: [enable_fft_float=yes],[enable_fft_float=no])
                     96:
                     97: if test "${enable_fft_float:=no}" != no ; then
                     98:     AC_DEFINE([USE_FLOAT])
                     99: fi
                    100:
                    101: dnl AC_ARG_WITH([mpi],
                    102: dnl [  --with-mpi              use the MPI library. [[no]]],
                    103: dnl [with_mpi=${withval}],[with_mpi=no])
                    104:
                    105: if test "${with_mpi:=no}" != no ; then
                    106:     MPIINC="-I/opt/FJSVmpi2/include"
                    107:     MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
                    108:     AC_DEFINE([MPI])
                    109: fi
                    110: AC_SUBST([MPIINC])
                    111: AC_SUBST([MPILIB])
                    112:
                    113: dnl AC_ARG_WITH([lapack],
                    114: dnl [  --with-lapack           use the LAPACK library. [[no]]],
                    115: dnl [with_lapack=${withval}],[with_lapack=no])
                    116:
                    117: if test "${with_lapack:=no}" != no ; then
                    118:     LAPACKLIB="-llapack -lblas -lI77 -lF77"
                    119:     AC_DEFINE([LAPACK])
                    120: fi
                    121: AC_SUBST([LAPACKLIB])
                    122:
                    123: AC_SUBST([libasir_postfix])
                    124:
                    125: dnl Object files in assembly languages for each micro processors.
                    126: dnl i386_elf_obj:  for FreeBSD 3.x or later and Linux 2.x
                    127: dnl i386_aout_obj: for FreeBSD 2.x, Linux 1.x, and Cygwin
                    128: dnl sparc_v8_obj:  for Sparc V8 processor on Solaris 2.x
                    129: dnl sparc_v9_obj:  for Sparc V9 processor on Solaris 2.x
                    130: dnl generic_obj:   for 32bits/64bits generic micro processors
                    131:
                    132: i386_elf_obj=asmi_l.o
                    133: i386_aout_obj=asmi.o
                    134: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
                    135: sparc_v9_obj="sparc-2.o asm5-2.o edr-2.o"
                    136: generic_obj=asmalpha.o
                    137:
                    138: case "${host}" in
                    139: [i[3-6]86-*-freebsd[3-9].*]|[i[3-6]86-*-linux*])
                    140:     asm_obj="${i386_elf_obj}"
                    141:     ;;
                    142: *-*-cygwin*)
                    143:     asm_obj="${i386_aout_obj}"
                    144:     ;;
                    145: sparc-sun-solaris2.*)
                    146:     case "`uname -m`" in
                    147:     [sun4[dm]]) asm_obj="${sparc_v8_obj}" ;;
1.3       ohara     148:     sun4u*)     asm_obj="${sparc_v9_obj}" ;;
1.1       ohara     149:     *)          asm_obj="${generic_obj}"  ;;
                    150:     esac
                    151:     AC_DEFINE([SYSV])
1.2       ohara     152:     ;;
                    153: powerpc-apple-darwin*)
                    154:     asm_obj="${generic_obj}"
                    155:     AC_DEFINE([__DARWIN__])
1.1       ohara     156:     ;;
                    157: *)
                    158:     asm_obj="${generic_obj}"
                    159:     ;;
                    160: esac
                    161:
                    162: AC_SUBST([asm_obj])
                    163:
                    164: dnl for Solaris 2.x
                    165: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
                    166: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
                    167:
                    168: 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>