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