Release 2.12.7.4

These changes are per calc version 2.12.7.3:

Requiring calc shell scripts to use -s -f at the end of the
initial #! line.

Fixed /tmp/mersenne example in calc(1) man page.

Added make variable ${ARCH_CFLAGS}.  The ${ARCH_CFLAGS} is
added after ${CCMISC} and before ${EXTRA_CFLAGS} when building
the ${CFLAGS} for compiling C code.  are ${CC} when compiling
C files.  The default value is:

ARCH_CFLAGS= -march=native

which directs C compiler to compile for the native machine.
To disable use of '-march=native', set ARCH_CFLAGS to the empty
string as in:

make all ARCH_CFLAGS=

To make calc RPMs more portable, they are compiled with an
empty ARCH_CFLAGS.

These changes are per calc version 2.12.7.4:

Fixed issues relating to compiling on macOS.  Fixed issues
where <unistd.h> is needed.
This commit is contained in:
Landon Curt Noll
2021-02-02 22:54:51 -08:00
parent ccfa797b68
commit 68c2edf610
12 changed files with 41 additions and 18 deletions

View File

@@ -39,6 +39,9 @@ The following are the changes from calc version 2.12.7.1 to date:
To make calc RPMs more portable, they are compiled with an To make calc RPMs more portable, they are compiled with an
empty ARCH_CFLAGS. empty ARCH_CFLAGS.
Fixed issues relating to compiling on macOS. Fixed issues
where <unistd.h> is needed.
The following are the changes from calc version 2.12.6.10: to 2.12.7.0: The following are the changes from calc version 2.12.6.10: to 2.12.7.0:

View File

@@ -1054,7 +1054,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.12.7.3 VERSION= 2.12.7.4
# Names of shared libraries with versions # Names of shared libraries with versions
# #
@@ -2925,7 +2925,7 @@ have_const.h: have_const.c ${MAKE_FILE}
${TRUE}; \ ${TRUE}; \
fi fi
have_offscl.h: have_offscl.c ${MAKE_FILE} have_offscl.h: have_offscl.c have_unistd.h ${MAKE_FILE}
${Q} ${RM} -f offscl_tmp have_offscl.h ${Q} ${RM} -f offscl_tmp have_offscl.h
${Q} echo 'forming have_offscl.h' ${Q} echo 'forming have_offscl.h'
${Q} echo '/*' > have_offscl.h ${Q} echo '/*' > have_offscl.h
@@ -2965,7 +2965,7 @@ have_offscl.h: have_offscl.c ${MAKE_FILE}
${TRUE}; \ ${TRUE}; \
fi fi
have_posscl.h: have_posscl.c have_fpos.h ${MAKE_FILE} have_posscl.h: have_posscl.c have_fpos.h have_unistd.h ${MAKE_FILE}
${Q} ${RM} -f have_posscl have_posscl.o posscl_tmp have_posscl.h ${Q} ${RM} -f have_posscl have_posscl.o posscl_tmp have_posscl.h
${Q} echo 'forming have_posscl.h' ${Q} echo 'forming have_posscl.h'
${Q} echo '/*' > have_posscl.h ${Q} echo '/*' > have_posscl.h
@@ -3221,7 +3221,7 @@ have_ustat.h: have_ustat.c ${MAKE_FILE}
${TRUE}; \ ${TRUE}; \
fi fi
have_getsid.h: have_getsid.c ${MAKE_FILE} have_getsid.h: have_getsid.c have_unistd.h ${MAKE_FILE}
${Q} ${RM} -f getsid_tmp have_getsid.h ${Q} ${RM} -f getsid_tmp have_getsid.h
${Q} echo 'forming have_getsid.h' ${Q} echo 'forming have_getsid.h'
${Q} echo '/*' > have_getsid.h ${Q} echo '/*' > have_getsid.h
@@ -3261,7 +3261,7 @@ have_getsid.h: have_getsid.c ${MAKE_FILE}
${TRUE}; \ ${TRUE}; \
fi fi
have_getpgid.h: have_getpgid.c ${MAKE_FILE} have_getpgid.h: have_getpgid.c have_unistd.h ${MAKE_FILE}
${Q} ${RM} -f getpgid_tmp have_getpgid.h ${Q} ${RM} -f getpgid_tmp have_getpgid.h
${Q} echo 'forming have_getpgid.h' ${Q} echo 'forming have_getpgid.h'
${Q} echo '/*' > have_getpgid.h ${Q} echo '/*' > have_getpgid.h
@@ -3343,7 +3343,7 @@ have_gettime.h: have_gettime.c ${MAKE_FILE}
${TRUE}; \ ${TRUE}; \
fi fi
have_getprid.h: have_getprid.c ${MAKE_FILE} have_getprid.h: have_getprid.c have_unistd.h ${MAKE_FILE}
${Q} ${RM} -f getprid_tmp have_getprid.h ${Q} ${RM} -f getprid_tmp have_getprid.h
${Q} echo 'forming have_getprid.h' ${Q} echo 'forming have_getprid.h'
${Q} echo '/*' > have_getprid.h ${Q} echo '/*' > have_getprid.h

View File

@@ -348,7 +348,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.12.7.3 VERSION= 2.12.7.4
# Names of shared libraries with versions # Names of shared libraries with versions
# #

View File

@@ -348,7 +348,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.12.7.3 VERSION= 2.12.7.4
# Names of shared libraries with versions # Names of shared libraries with versions
# #

View File

@@ -1,7 +1,7 @@
/* /*
* have_getpgid - determine if we have getpgid() * have_getpgid - determine if we have getpgid()
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
@@ -39,7 +39,10 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#include "have_unistd.h"
#if defined(HAVE_UNISTD_H)
#include <unistd.h> #include <unistd.h>
#endif
int int
main(void) main(void)

View File

@@ -1,7 +1,7 @@
/* /*
* have_getprid - determine if we have getprid() * have_getprid - determine if we have getprid()
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
@@ -40,7 +40,10 @@
#include <sys/types.h> #include <sys/types.h>
#include "have_unistd.h"
#if defined(HAVE_UNISTD_H)
#include <unistd.h> #include <unistd.h>
#endif
int int
main(void) main(void)

View File

@@ -1,7 +1,7 @@
/* /*
* have_getsid - determine if we have getsid() * have_getsid - determine if we have getsid()
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
@@ -40,6 +40,10 @@
#include <sys/types.h> #include <sys/types.h>
#include "have_unistd.h"
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
int int
main(void) main(void)

View File

@@ -1,7 +1,7 @@
/* /*
* have_memmv - Determine if we have memmove() * have_memmv - Determine if we have memmove()
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
@@ -40,6 +40,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h>
#define MOVELEN 3 #define MOVELEN 3

View File

@@ -1,7 +1,7 @@
/* /*
* have_newstr - Determine if we have a system without ANSI C string functions * have_newstr - Determine if we have a system without ANSI C string functions
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
@@ -42,6 +42,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h>
#define MOVELEN 3 #define MOVELEN 3

View File

@@ -1,7 +1,7 @@
/* /*
* have_offscl - determine if we have a scalar off_t element * have_offscl - determine if we have a scalar off_t element
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
@@ -46,6 +46,10 @@
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "have_unistd.h"
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
int int
main(void) main(void)

View File

@@ -1,7 +1,7 @@
/* /*
* have_posscl - determine if we have a scalar FILEPOS element * have_posscl - determine if we have a scalar FILEPOS element
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
@@ -45,6 +45,10 @@
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "have_unistd.h"
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
#include "have_fpos.h" #include "have_fpos.h"
int int

View File

@@ -1,7 +1,7 @@
/* /*
* version - determine the version of calc * version - determine the version of calc
* *
* Copyright (C) 1999-2018 David I. Bell and Landon Curt Noll * Copyright (C) 1999-2021 David I. Bell and Landon Curt Noll
* *
* Primary author: David I. Bell * Primary author: David I. Bell
* *
@@ -45,7 +45,7 @@ static char *program;
#define MAJOR_VER 2 /* major library version */ #define MAJOR_VER 2 /* major library version */
#define MINOR_VER 12 /* minor library version */ #define MINOR_VER 12 /* minor library version */
#define MAJOR_PATCH 7 /* major software level under library version */ #define MAJOR_PATCH 7 /* major software level under library version */
#define MINOR_PATCH 3 /* minor software level or 0 if not patched */ #define MINOR_PATCH 4 /* minor software level or 0 if not patched */
/* /*
@@ -69,7 +69,7 @@ STATIC char *stored_version = NULL; /* version formed if != NULL */
char *Copyright = "\n" char *Copyright = "\n"
"calc - arbitrary precision calculator\n" "calc - arbitrary precision calculator\n"
"\n" "\n"
"Copyright (C) 1999-2017 David I. Bell, Landon Curt Noll " "Copyright (C) 1999-2021 David I. Bell, Landon Curt Noll "
"and Ernest Bowen\n" "and Ernest Bowen\n"
"\n" "\n"
"Initial author: David I. Bell\n" "Initial author: David I. Bell\n"