Annotation of OpenXM_contrib2/asir2000/configure.in, Revision 1.25
1.25 ! ohara 1: dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.24 2007/02/18 05:36:27 ohara Exp $
1.1 ohara 2:
1.25 ! ohara 3: AC_INIT
! 4: AC_CONFIG_SRCDIR([LICENSE])
! 5: AC_PREREQ(2.61)
! 6: AC_CANONICAL_TARGET
1.5 noro 7: AM_INIT_AUTOMAKE(asir, 20030307)
1.11 ohara 8: AM_MAINTAINER_MODE
1.1 ohara 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.23 ohara 38:
1.25 ! ohara 39: GC=gc6.8
! 40: dnl GC_CONFIGURE_ARGS=--disable-threads --enable-shared=no
! 41: GC_CONFIGURE_ARGS=--disable-threads
! 42: if [ -n "${host_alias}" ]; then
! 43: GC_CONFIGURE_ARGS="--host=${host_alias} ${GC_CONFIGURE_ARGS}"
! 44: fi
! 45: AC_SUBST([GC])
! 46: AC_SUBST([GC_CONFIGURE_ARGS])
! 47:
1.23 ohara 48: AC_ARG_WITH([distdir],
49: [ --with-distdir specify the spool for fetching. [[no]]],
50: [with_distdir=${withval}],[with_distdir=no])
51: GC_DISTDIR='${prefix}/../OpenXM_dist'
52: if test ${with_distdir:=no} != no -a ${with_distdir} != yes ; then
53: GC_DISTDIR=${with_distdir}
54: fi
55: AC_SUBST([GC_DISTDIR])
1.12 ohara 56:
57: AC_ARG_ENABLE([gc-zeropage],
58: [ --enable-gc-zeropage enable to avoid the kernel zeropage bug. [[no]]],
59: [enable_gc_zeropage=yes],[enable_gc_zeropage=no])
60:
61: if test "${enable_gc_zeropage:=no}" != no ; then
62: USE_GC_ZEROPAGE="yes"
63: fi
64: AC_SUBST([USE_GC_ZEROPAGE])
1.1 ohara 65:
66: libasir_postfix=""
67: AC_ARG_WITH([pari],
68: [ --with-pari use the PARI library. [[no]]],
69: [with_pari=${withval}],[with_pari=no])
70:
71: if test ${with_pari:=no} != no ; then
72: libasir_postfix=${libasir_postfix}_pari
1.5 noro 73: if test ${with_pari} = new ; then
74: libpari=pari-2.2
75: else
1.1 ohara 76: libpari=pari
77: fi
78: PARIINC='-I${prefix}/include/pari'
79: if test "${enable_shared}" != yes ; then
80: PARILIB='${prefix}'"/lib/lib${libpari}.a"
81: else
82: PARILIB='-L${prefix}/lib'" -l${libpari}"
83: fi
84: AC_DEFINE([PARI])
85: fi
86: AC_SUBST([PARIINC])
87: AC_SUBST([PARILIB])
88:
1.7 ohara 89: AC_CHECK_TYPES([unsigned long long])
1.5 noro 90: AC_CHECK_SIZEOF(long)
1.15 noro 91: if test "${ac_cv_sizeof_long}" = 8; then
1.5 noro 92: AC_DEFINE([LONG_IS_64BIT])
93: else
94: AC_DEFINE([LONG_IS_32BIT])
95: fi
1.1 ohara 96: if test "${no_x}" != yes ; then
1.14 ohara 97: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.10 ohara 98: XPMLIB="-lXpm"
99: fi
1.1 ohara 100: AC_ARG_ENABLE([plot],
101: [ --enable-plot enable plot feature. [[no]]],
102: [enable_plot=yes],[enable_plot=no])
103: fi
1.10 ohara 104: AC_SUBST([XPMLIB])
1.1 ohara 105:
106: if test ${enable_plot:=no} != no ; then
107: libasir_postfix=${libasir_postfix}_X
108: AC_DEFINE([DO_PLOT])
109: fi
110: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
111:
112: AC_ARG_ENABLE([interval],
113: [ --enable-interval enable interval feature. [[no]]],
114: [enable_interval=${enableval}],[enable_interval=no])
115:
116: if test ${enable_interval:=no} != no ; then
117: libasir_postfix=${libasir_postfix}_itv
118: AC_DEFINE([INTERVAL])
119: if test "${enable_interval}" = debug ; then
120: AC_DEFINE([ITVDEBUG])
121: fi
122: fi
123:
124: dnl AC_ARG_ENABLE([fep],
125: dnl [ --enable-fep enable fep for human interfaces. [[no]]],
126: dnl [enable_fep=yes],[enable_fep=no])
127:
128: if test "${enable_fep:=no}" != no ; then
129: AC_DEFINE([FEP])
130: FEPLIB="-lreadline -ltermcap"
131: fi
132: AC_SUBST([FEPLIB])
133:
134: AC_ARG_ENABLE([fft-float],
135: [ --enable-fft-float enable FFT-FLOAT feature. [[no]]],
136: [enable_fft_float=yes],[enable_fft_float=no])
137:
138: if test "${enable_fft_float:=no}" != no ; then
139: AC_DEFINE([USE_FLOAT])
140: fi
141:
142: dnl AC_ARG_WITH([mpi],
143: dnl [ --with-mpi use the MPI library. [[no]]],
144: dnl [with_mpi=${withval}],[with_mpi=no])
145:
146: if test "${with_mpi:=no}" != no ; then
147: MPIINC="-I/opt/FJSVmpi2/include"
148: MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
149: AC_DEFINE([MPI])
150: fi
151: AC_SUBST([MPIINC])
152: AC_SUBST([MPILIB])
153:
154: dnl AC_ARG_WITH([lapack],
155: dnl [ --with-lapack use the LAPACK library. [[no]]],
156: dnl [with_lapack=${withval}],[with_lapack=no])
157:
158: if test "${with_lapack:=no}" != no ; then
1.22 saito 159: LAPACKLIB="-llapack -lblas -lg2c"
1.1 ohara 160: AC_DEFINE([LAPACK])
161: fi
162: AC_SUBST([LAPACKLIB])
163:
164: AC_SUBST([libasir_postfix])
165:
166: dnl Object files in assembly languages for each micro processors.
167: dnl i386_elf_obj: for FreeBSD 3.x or later and Linux 2.x
168: dnl i386_aout_obj: for FreeBSD 2.x, Linux 1.x, and Cygwin
169: dnl sparc_v8_obj: for Sparc V8 processor on Solaris 2.x
170: dnl sparc_v9_obj: for Sparc V9 processor on Solaris 2.x
171: dnl generic_obj: for 32bits/64bits generic micro processors
172:
173: i386_elf_obj=asmi_l.o
174: i386_aout_obj=asmi.o
175: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
1.19 noro 176: sparc_v9_obj=asmalpha.o
1.1 ohara 177: generic_obj=asmalpha.o
178:
179: case "${host}" in
1.9 ohara 180: [i[3-6]86-*-freebsd[3-9].*])
1.1 ohara 181: asm_obj="${i386_elf_obj}"
1.9 ohara 182: ;;
183: [i[3-6]86-*-linux*]|x86-*-linux*)
184: asm_obj="${i386_elf_obj}"
1.13 ohara 185: AC_DEFINE([_BSD_SOURCE])
1.1 ohara 186: ;;
187: *-*-cygwin*)
188: asm_obj="${i386_aout_obj}"
1.16 ohara 189: ;;
190: [i[3-6]86-*-interix*])
1.17 ohara 191: asm_obj="${i386_aout_obj}"
192: USE_GC_INTERIX="yes"
193: AC_SUBST([USE_GC_INTERIX])
1.16 ohara 194: AC_DEFINE([_ALL_SOURCE])
1.1 ohara 195: ;;
196: sparc-sun-solaris2.*)
197: case "`uname -m`" in
198: [sun4[dm]]) asm_obj="${sparc_v8_obj}" ;;
1.20 ohara 199: sun4u*) asm_obj="${sparc_v9_obj}"
200: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
201: CFLAGS="${CFLAGS} -m64"
202: fi
203: AC_SUBST([USE_GC_SPARC64])
204: ;;
1.1 ohara 205: *) asm_obj="${generic_obj}" ;;
206: esac
207: AC_DEFINE([SYSV])
1.2 ohara 208: ;;
1.24 ohara 209: *-apple-darwin*)
1.2 ohara 210: asm_obj="${generic_obj}"
211: AC_DEFINE([__DARWIN__])
1.8 ohara 212: ;;
213: arm*-*-linux*)
214: asm_obj="${generic_obj}"
215: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
216: CFLAGS="${CFLAGS} -fsigned-char"
217: fi
1.1 ohara 218: ;;
219: *)
220: asm_obj="${generic_obj}"
221: ;;
222: esac
223:
224: AC_SUBST([asm_obj])
225:
226: dnl for Solaris 2.x
227: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
228: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
229:
1.25 ! ohara 230: AC_CONFIG_FILES([Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile])
! 231: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>