Force use of our erand48 on Cygwin
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 23 Jul 2009 23:50:29 +0000 (23:50 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 23 Jul 2009 23:50:29 +0000 (23:50 +0000)
configure
configure.in

index 5790a3219c78c436ab258b1f54f6c4b8dfcf0fd7..2ba6050bceb2b89909fb3d9afe67136affdf630f 100755 (executable)
--- a/configure
+++ b/configure
@@ -19085,6 +19085,16 @@ esac
 
 fi
 
+# Cygwin's erand48 sometimes hangs, so force use of ours
+if test "$PORTNAME" = "cygwin"; then
+  case " $LIBOBJS " in
+  *" erand48.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
+ ;;
+esac
+
+fi
+
 # Win32 support
 if test "$PORTNAME" = "win32"; then
 
index 3d51c70913fa39d3e794d6baa2d18d760f6e5994..ed6d52403842bb2405ab01a3abc812cf169d95e6 100644 (file)
@@ -1289,6 +1289,11 @@ if test "$PORTNAME" = "solaris"; then
   AC_LIBOBJ(getopt)
 fi
 
+# Cygwin's erand48 sometimes hangs, so force use of ours
+if test "$PORTNAME" = "cygwin"; then
+  AC_LIBOBJ(erand48)
+fi
+
 # Win32 support
 if test "$PORTNAME" = "win32"; then
 AC_REPLACE_FUNCS(gettimeofday)