|
|
7bb95f |
diff -ru gnucobol-3.1.2.orig/configure gnucobol-3.1.2/configure
|
|
|
7bb95f |
--- gnucobol-3.1.2.orig/configure 2020-12-23 13:04:58.000000000 +0100
|
|
|
7bb95f |
+++ gnucobol-3.1.2/configure 2022-02-07 11:04:34.765517654 +0100
|
|
|
7bb95f |
@@ -18217,165 +18217,10 @@
|
|
|
7bb95f |
fi
|
|
|
7bb95f |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
7bb95f |
|
|
|
7bb95f |
-# Checks for size of long
|
|
|
7bb95f |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if size of long int = size of long long" >&5
|
|
|
7bb95f |
-$as_echo_n "checking if size of long int = size of long long... " >&6; }
|
|
|
7bb95f |
-if test "$cross_compiling" = yes; then :
|
|
|
7bb95f |
- if test "$COB_LI_IS_LL" = "0"; then
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
|
|
|
7bb95f |
-$as_echo "specified \"no\" on configure line" >&6; }
|
|
|
7bb95f |
- else
|
|
|
7bb95f |
- if test "$COB_LI_IS_LL" = "1"; then
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
|
|
|
7bb95f |
-$as_echo "specified \"yes\" on configure line" >&6; }
|
|
|
7bb95f |
- else
|
|
|
7bb95f |
- COB_LI_IS_LL=1
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5
|
|
|
7bb95f |
-$as_echo "assumed - cross-compilation" >&6; }
|
|
|
7bb95f |
- fi
|
|
|
7bb95f |
- fi
|
|
|
7bb95f |
- $as_echo "#define COB_LI_IS_LL \$COB_LI_IS_LL" >>confdefs.h
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
|
|
|
7bb95f |
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
|
|
|
7bb95f |
-else
|
|
|
7bb95f |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
7bb95f |
-/* end confdefs.h. */
|
|
|
7bb95f |
-
|
|
|
7bb95f |
-int
|
|
|
7bb95f |
-main ()
|
|
|
7bb95f |
-{
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- if (sizeof(long int) == sizeof(long long))
|
|
|
7bb95f |
- return 0;
|
|
|
7bb95f |
- return 1;
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- ;
|
|
|
7bb95f |
- return 0;
|
|
|
7bb95f |
-}
|
|
|
7bb95f |
-_ACEOF
|
|
|
7bb95f |
-if ac_fn_c_try_run "$LINENO"; then :
|
|
|
7bb95f |
- $as_echo "#define COB_LI_IS_LL 1" >>confdefs.h
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
7bb95f |
-$as_echo "yes" >&6; }
|
|
|
7bb95f |
-else
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
7bb95f |
-$as_echo "no" >&6; }
|
|
|
7bb95f |
-fi
|
|
|
7bb95f |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
|
7bb95f |
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
|
7bb95f |
-fi
|
|
|
7bb95f |
-
|
|
|
7bb95f |
-
|
|
|
7bb95f |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if long is 32 bits" >&5
|
|
|
7bb95f |
-$as_echo_n "checking if long is 32 bits... " >&6; }
|
|
|
7bb95f |
-if test "$cross_compiling" = yes; then :
|
|
|
7bb95f |
- if test "$COB_32_BIT_LONG" = "0"; then
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
|
|
|
7bb95f |
-$as_echo "specified \"no\" on configure line" >&6; }
|
|
|
7bb95f |
- else
|
|
|
7bb95f |
- if test "$COB_32_BIT_LONG" = "1"; then
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
|
|
|
7bb95f |
-$as_echo "specified \"yes\" on configure line" >&6; }
|
|
|
7bb95f |
- else
|
|
|
7bb95f |
- COB_32_BIT_LONG=1
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5
|
|
|
7bb95f |
-$as_echo "assumed - cross-compilation" >&6; }
|
|
|
7bb95f |
- fi
|
|
|
7bb95f |
- fi
|
|
|
7bb95f |
- $as_echo "#define COB_32_BIT_LONG \$COB_32_BIT_LONG" >>confdefs.h
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
|
|
|
7bb95f |
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
|
|
|
7bb95f |
-else
|
|
|
7bb95f |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
7bb95f |
-/* end confdefs.h. */
|
|
|
7bb95f |
-
|
|
|
7bb95f |
-int
|
|
|
7bb95f |
-main ()
|
|
|
7bb95f |
-{
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- if (sizeof (long) == 4)
|
|
|
7bb95f |
- return 0;
|
|
|
7bb95f |
- return 1;
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- ;
|
|
|
7bb95f |
- return 0;
|
|
|
7bb95f |
-}
|
|
|
7bb95f |
-_ACEOF
|
|
|
7bb95f |
-if ac_fn_c_try_run "$LINENO"; then :
|
|
|
7bb95f |
- $as_echo "#define COB_32_BIT_LONG 1" >>confdefs.h
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
7bb95f |
-$as_echo "yes" >&6; }
|
|
|
7bb95f |
-else
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
7bb95f |
-$as_echo "no" >&6; }
|
|
|
7bb95f |
-fi
|
|
|
7bb95f |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
|
7bb95f |
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
|
7bb95f |
-fi
|
|
|
7bb95f |
-
|
|
|
7bb95f |
-
|
|
|
7bb95f |
-
|
|
|
7bb95f |
-if test "cross_compiling" != "yes"; then
|
|
|
7bb95f |
- COB_HAS_64_BIT_POINTER="no"
|
|
|
7bb95f |
-fi
|
|
|
7bb95f |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointer is longer than 32 bits" >&5
|
|
|
7bb95f |
-$as_echo_n "checking if pointer is longer than 32 bits... " >&6; }
|
|
|
7bb95f |
-if test "$cross_compiling" = yes; then :
|
|
|
7bb95f |
- if test "$COB_HAS_64_BIT_POINTER" = "0"; then
|
|
|
7bb95f |
- COB_HAS_64_BIT_POINTER="no"
|
|
|
7bb95f |
- $as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
|
|
|
7bb95f |
-$as_echo "specified \"no\" on configure line" >&6; }
|
|
|
7bb95f |
- else
|
|
|
7bb95f |
- if test "$COB_HAS_64_BIT_POINTER" = "1"; then
|
|
|
7bb95f |
- COB_HAS_64_BIT_POINTER="yes"
|
|
|
7bb95f |
- $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
|
|
|
7bb95f |
-$as_echo "specified \"yes\" on configure line" >&6; }
|
|
|
7bb95f |
- else
|
|
|
7bb95f |
- COB_HAS_64_BIT_POINTER="no"
|
|
|
7bb95f |
- $as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed \"no\" - cross-compilation" >&5
|
|
|
7bb95f |
-$as_echo "assumed \"no\" - cross-compilation" >&6; }
|
|
|
7bb95f |
- fi
|
|
|
7bb95f |
- fi
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
|
|
|
7bb95f |
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
|
|
|
7bb95f |
-else
|
|
|
7bb95f |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
7bb95f |
-/* end confdefs.h. */
|
|
|
7bb95f |
-
|
|
|
7bb95f |
-int
|
|
|
7bb95f |
-main ()
|
|
|
7bb95f |
-{
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- if (sizeof (void *) > 4U)
|
|
|
7bb95f |
- return 0;
|
|
|
7bb95f |
- return 1;
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- ;
|
|
|
7bb95f |
- return 0;
|
|
|
7bb95f |
-}
|
|
|
7bb95f |
-_ACEOF
|
|
|
7bb95f |
-if ac_fn_c_try_run "$LINENO"; then :
|
|
|
7bb95f |
- COB_HAS_64_BIT_POINTER="yes"
|
|
|
7bb95f |
- $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
|
|
|
7bb95f |
-
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
7bb95f |
-$as_echo "yes" >&6; }
|
|
|
7bb95f |
-else
|
|
|
7bb95f |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
7bb95f |
-$as_echo "no" >&6; }
|
|
|
7bb95f |
-fi
|
|
|
7bb95f |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
|
7bb95f |
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
|
7bb95f |
-fi
|
|
|
7bb95f |
-
|
|
|
7bb95f |
+# 64-bit midipix
|
|
|
7bb95f |
+$as_echo "#define COB_LI_IS_LL 1" >>confdefs.h
|
|
|
7bb95f |
+$as_echo "#define COB_32_BIT_LONG 0" >>confdefs.h
|
|
|
7bb95f |
+$as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
|
|
|
7bb95f |
|
|
|
7bb95f |
# Check gcc wrapv option
|
|
|
7bb95f |
# We likely don't need this and remove it before 3.0 final release
|