Commits

Anonymous committed 40f3637

Nettoyages divers.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@178f963ae5c-01c2-4b8c-9fe0-0dff7051ff02

  • Participants
  • Parent commits 6c35a36

Comments (0)

Files changed (1)

File config/autoconf

   4,8,8) echo "Wow! A 64 bit architecture!"
          echo "#define SIXTYFOUR" >> m.h;;
   8,*,*) echo "Wow! A 64 bit architecture!"
-         echo "Unfortunately, Caml Light does not handle the case"
+         echo "Unfortunately, Caml Special Light does not handle the case"
          echo "sizeof(int) = 8."
-         echo "Caml Light won't run on this architecture."
+         echo "Caml Special Light won't run on this architecture."
          exit 2;;
   *,4,8) echo "Wow! A 64 bit architecture!"
-         echo "Unfortunately, Caml Light cannot work in the case"
+         echo "Unfortunately, Caml Special Light cannot work in the case"
          echo "sizeof(long) != sizeof(long *)."
-         echo "Caml Light won't run on this architecture."
+         echo "Caml Special Light won't run on this architecture."
          exit 2;;
   ?,?,?) echo "This architecture seems to be neither 32 bits nor 64 bits."
-         echo "Caml Light won't run on this architecture."
+         echo "Caml Special Light won't run on this architecture."
          exit 2;;
       *) echo "Unable to compile the test program."
          echo "Make sure the C compiler is properly installed."
   1) echo "This is a little-endian architecture."
      echo "#undef BIG_ENDIAN" >> m.h;;
   2) echo "This architecture seems to be neither big endian nor little endian."
-     echo "Caml Light won't run on this architecture."
+     echo "Caml Special Light won't run on this architecture."
      exit 2;;
   *) echo "Something went wrong during endianness determination."
      echo "You'll have to figure out endianness yourself"
      echo "#define ALIGN_DOUBLE" >> m.h;;
   *) echo "Something went wrong during alignment determination for doubles."
      echo "I'm going to assume this architecture has alignment constraints over doubles."
-     echo "That's a safe bet: Caml Light will work even if it turns out that"
-     echo "this architecture actually has no alignment constraints."
+     echo "That's a safe bet: Caml Special Light will work even if"
+     echo "this architecture has actually no alignment constraints."
      echo "#define ALIGN_DOUBLE" >> m.h;;
 esac
 
-# Are chars signed?
-
-sh ./runtest schar.c
-case $? in
-  0) echo "The char type is signed. Good!";;
-  1) echo "The char type is not signed. Let's see if 'signed char' works."
-     sh ./runtest schar2.c
-     case $? in
-      0) echo "Yes, it works. Good!"
-         echo "#define SIGNED_CHAR_WORKS" >> s.h;;
-      *) echo "No, it does not work."
-         echo "You'll have to figure out a compiler option that"
-         echo "causes the 'char' type to be signed, and"
-         echo "add it to CCCOMPOPTS in Makefile.config.";;
-     esac;;
-esac
-
-# To find a good byte copy function
+# Find a good byte move function
 
 if sh ./runtest -Dcopy=memmove -Dreverse bytecopy.c; then
   echo "Function \"memmove\" is provided and handles overlapping moves correctly."
   echo "Function \"bcopy\" is provided and handles overlapping moves correctly."
   echo "#define HAS_BCOPY" >> s.h
 fi
-if sh ./runtest -Dcopy=memcpy -Dreverse bytecopy.c; then
-  echo "Function \"memcpy\" is provided and handles overlapping moves correctly."
-  echo "#define HAS_MEMCPY" >> s.h
-fi
 
 # Check for _longjmp and _setjmp
 
   echo "#define HAS_TERMIOS" >> s.h
 fi
 
-# The following four lines must be commented out on DEC OSF1 3.0
-if sh ./runtest async_io.c; then
+# Async I/O under OSF1 3.x are so buggy that the test program hangs...
+testasyncio=true
+if test -f /usr/bin/uname; then
+  case "`uname -s -r`" in
+    "OSF1 V3."*) testasyncio=false;;
+  esac
+fi
+if $testasyncio && sh ./runtest async_io.c; then
   echo "Asynchronous I/O are supported."
   echo "#define HAS_ASYNC_IO" >> s.h
 fi