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

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

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