Skip to content

Commit 179c934

Browse files
committed
Release om4-6.6
1 parent 91533d1 commit 179c934

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ that do not have a free m4 or have a very old m4.
1111
build.
1212

1313
If you need a Yacc program, a dependency-free `yacc` is available here:
14-
https://devio.us/~bcallah/yacc/
14+
https://github.com/ibara/yacc/
1515

1616
`m4` is known to build and run on all *BSD flavors, Linux, Mac OS X, Cygwin,
1717
AIX, and Solaris. It is very likely to run on other Unix flavors; please let
@@ -39,4 +39,4 @@ All files are a combination of BSD and ISC licensed files.
3939

4040
Get a tarball
4141
-------------
42-
https://devio.us/~bcallah/m4/m4-20171027.tar.gz
42+
See releases tab. Latest is `om4-6.6`.

configure

+6-5
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ EOF
5353
deadcheck() {
5454
cat << EOF > conftest.c
5555
#include <stdlib.h>
56-
__dead usage(void){exit(1);}int main(void){usage();return 0;}
56+
__dead void usage(void){exit(1);}int main(void){usage();return 0;}
5757
EOF
5858
$cc $tflags -o conftest conftest.c > /dev/null 2>&1
5959
if [ $? -eq 0 ] ; then
@@ -68,7 +68,7 @@ EOF
6868
dead2check() {
6969
cat << EOF > conftest.c
7070
#include <stdlib.h>
71-
__dead2 usage(void){exit(1);}int main(void){usage();return 0;}
71+
__dead2 void usage(void){exit(1);}int main(void){usage();return 0;}
7272
EOF
7373
$cc $tflags -o conftest conftest.c > /dev/null 2>&1
7474
if [ $? -eq 0 ] ; then
@@ -83,7 +83,7 @@ EOF
8383
noreturncheck() {
8484
cat << EOF > conftest.c
8585
#include <stdlib.h>
86-
void usage(void) __attribute__((__noreturn__)){exit(1);}int main(void){usage();return 0;}
86+
__attribute__((__no_return__)) void usage(void){exit(1);}int main(void){usage();return 0;}
8787
EOF
8888
$cc $tflags -o conftest conftest.c > /dev/null 2>&1
8989
if [ $? -eq 0 ] ; then
@@ -99,6 +99,7 @@ ohashinitcheck() {
9999
cat << EOF > conftest.c
100100
#include <stddef.h>
101101
#include <stdint.h>
102+
#include <stdio.h>
102103
#include <ohash.h>
103104
int main(void){ohash_init(NULL, 0, NULL);return 0;}
104105
EOF
@@ -316,10 +317,10 @@ else
316317
echo "yes"
317318
else
318319
echo "no"
319-
printf "checking for __attribute__((__noreturn__))... "
320+
printf "checking for __attribute__((__no_return__))... "
320321
noreturncheck
321322
if [ $? -eq 0 ] ; then
322-
echo "#define __dead __attribute__((__noreturn__))" >> config.h
323+
echo "#define __dead __attribute__((__no_return__))" >> config.h
323324
echo "yes"
324325
else
325326
echo "#define __dead" >> config.h

0 commit comments

Comments
 (0)