===================================================================
RCS file: /home/cvs/OpenXM_contrib2/asir2000/configure,v
retrieving revision 1.22
retrieving revision 1.25
diff -u -p -r1.22 -r1.25
--- OpenXM_contrib2/asir2000/configure	2003/03/17 14:33:47	1.22
+++ OpenXM_contrib2/asir2000/configure	2003/09/07 16:49:37	1.25
@@ -841,6 +841,7 @@ Optional Features:
   --enable-maintainer-mode enable make rules and dependencies not useful
                           (and sometimes confusing) to the casual installer
   --enable-shared         enable linking shared libraries.  [no]
+  --enable-gc-zeropage    enable to avoid the kernel zeropage bug.  [no]
   --enable-plot           enable plot feature. [no]
   --enable-interval       enable interval feature. [no]
   --enable-fft-float      enable FFT-FLOAT feature. [no]
@@ -1546,7 +1547,6 @@ INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 # We need awk for the "check" target.  The system "awk" is bad on
 # some platforms.
 
-
 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
@@ -4131,6 +4131,19 @@ if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ;
     fi
 fi
 
+# Check whether --enable-gc-zeropage or --disable-gc-zeropage was given.
+if test "${enable_gc_zeropage+set}" = set; then
+  enableval="$enable_gc_zeropage"
+  enable_gc_zeropage=yes
+else
+  enable_gc_zeropage=no
+fi;
+
+if test "${enable_gc_zeropage:=no}" != no ; then
+    USE_GC_ZEROPAGE="yes"
+fi
+
+
 libasir_postfix=""
 
 # Check whether --with-pari or --without-pari was given.
@@ -4790,7 +4803,7 @@ _ACEOF
 
 fi
 if test "${no_x}" != yes ; then
-    if test -f "${x_libraries}/libXpm.a" ; then
+    if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
 	    XPMLIB="-lXpm"
     fi
     # Check whether --enable-plot or --disable-plot was given.
@@ -4905,7 +4918,7 @@ i[3-6]86-*-freebsd[3-9].*)
 i[3-6]86-*-linux*|x86-*-linux*)
     asm_obj="${i386_elf_obj}"
     cat >>confdefs.h <<\_ACEOF
-#define BSD_SOURCE 1
+#define _BSD_SOURCE 1
 _ACEOF
 
     ;;
@@ -5866,6 +5879,7 @@ s,@X_CFLAGS@,$X_CFLAGS,;t t
 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 s,@X_LIBS@,$X_LIBS,;t t
 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
+s,@USE_GC_ZEROPAGE@,$USE_GC_ZEROPAGE,;t t
 s,@PARIINC@,$PARIINC,;t t
 s,@PARILIB@,$PARILIB,;t t
 s,@XPMLIB@,$XPMLIB,;t t