=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/configure.in,v retrieving revision 1.3 retrieving revision 1.10 diff -u -p -r1.3 -r1.10 --- OpenXM_contrib2/asir2000/configure.in 2003/03/06 11:29:10 1.3 +++ OpenXM_contrib2/asir2000/configure.in 2003/03/16 18:37:56 1.10 @@ -1,8 +1,8 @@ -dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.2 2003/02/24 17:58:41 ohara Exp $ +dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.9 2003/03/16 17:43:47 ohara Exp $ AC_INIT([LICENSE]) AC_PREREQ(2.53) -AM_INIT_AUTOMAKE(asir, 20030128) +AM_INIT_AUTOMAKE(asir, 20030307) AC_CANONICAL_SYSTEM @@ -25,6 +25,14 @@ if test "${enable_shared:=no}" != no ; then true fi +if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then + if test "${ac_cv_prog_cc_g}" = yes; then + CFLAGS="-g -O" + else + CFLAGS="-O" + fi +fi + libasir_postfix="" AC_ARG_WITH([pari], [ --with-pari use the PARI library. [[no]]], @@ -32,10 +40,10 @@ AC_ARG_WITH([pari], if test ${with_pari:=no} != no ; then libasir_postfix=${libasir_postfix}_pari - if test ${with_pari} = old ; then - libpari=pari - else + if test ${with_pari} = new ; then libpari=pari-2.2 + else + libpari=pari fi PARIINC='-I${prefix}/include/pari' if test "${enable_shared}" != yes ; then @@ -44,21 +52,26 @@ if test ${with_pari:=no} != no ; then PARILIB='-L${prefix}/lib'" -l${libpari}" fi AC_DEFINE([PARI]) - AC_CHECK_SIZEOF(long) - if test SIZEOF_LONG = 8; then - AC_DEFINE([LONG_IS_64BIT]) - else - AC_DEFINE([LONG_IS_32BIT]) - fi fi AC_SUBST([PARIINC]) AC_SUBST([PARILIB]) +AC_CHECK_TYPES([unsigned long long]) +AC_CHECK_SIZEOF(long) +if test SIZEOF_LONG = 8; then + AC_DEFINE([LONG_IS_64BIT]) +else + AC_DEFINE([LONG_IS_32BIT]) +fi if test "${no_x}" != yes ; then + if test -f "${x_libraries}/libXpm.a" ; then + XPMLIB="-lXpm" + fi AC_ARG_ENABLE([plot], [ --enable-plot enable plot feature. [[no]]], [enable_plot=yes],[enable_plot=no]) fi +AC_SUBST([XPMLIB]) if test ${enable_plot:=no} != no ; then libasir_postfix=${libasir_postfix}_X @@ -134,9 +147,13 @@ sparc_v9_obj="sparc-2.o asm5-2.o edr-2.o" generic_obj=asmalpha.o case "${host}" in -[i[3-6]86-*-freebsd[3-9].*]|[i[3-6]86-*-linux*]) +[i[3-6]86-*-freebsd[3-9].*]) asm_obj="${i386_elf_obj}" ;; +[i[3-6]86-*-linux*]|x86-*-linux*) + asm_obj="${i386_elf_obj}" + AC_DEFINE([BSD_SOURCE]) + ;; *-*-cygwin*) asm_obj="${i386_aout_obj}" ;; @@ -151,6 +168,12 @@ sparc-sun-solaris2.*) powerpc-apple-darwin*) asm_obj="${generic_obj}" AC_DEFINE([__DARWIN__]) + ;; +arm*-*-linux*) + asm_obj="${generic_obj}" + if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then + CFLAGS="${CFLAGS} -fsigned-char" + fi ;; *) asm_obj="${generic_obj}"