aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2022-02-27 06:05:41 -0600
committerBrent Cook <busterb@gmail.com>2022-02-27 06:05:41 -0600
commit56bf8d4f4191184470b1f15815b9b8de1eab1b8e (patch)
tree22dbb8d87ed29fcb80ec4d53e54430c94c3d73d6
parent2336a535c6fabfa3222d36b15008335cc236d8ac (diff)
downloadportable-56bf8d4f4191184470b1f15815b9b8de1eab1b8e.tar.gz
portable-56bf8d4f4191184470b1f15815b9b8de1eab1b8e.tar.bz2
portable-56bf8d4f4191184470b1f15815b9b8de1eab1b8e.zip
update autotool macro deprecations
fix latest round of autotool complaints
-rw-r--r--configure.ac3
-rw-r--r--m4/check-hardening-options.m426
-rwxr-xr-xtap-driver.sh2
3 files changed, 12 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac
index fdf72ee..8119508 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,7 @@
12# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 12# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 13# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 14
15AC_INIT([libressl], m4_esyscmd([tr -d '\n' < VERSION])) 15AC_INIT([libressl], m4_esyscmd(tr -d '\n' < VERSION))
16AC_SUBST([LIBCRYPTO_VERSION], m4_esyscmd([tr -d '\n' < crypto/VERSION])) 16AC_SUBST([LIBCRYPTO_VERSION], m4_esyscmd([tr -d '\n' < crypto/VERSION]))
17AC_SUBST([LIBSSL_VERSION], m4_esyscmd([tr -d '\n' < ssl/VERSION])) 17AC_SUBST([LIBSSL_VERSION], m4_esyscmd([tr -d '\n' < ssl/VERSION]))
18AC_SUBST([LIBTLS_VERSION], m4_esyscmd([tr -d '\n' < tls/VERSION])) 18AC_SUBST([LIBTLS_VERSION], m4_esyscmd([tr -d '\n' < tls/VERSION]))
@@ -27,7 +27,6 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
27USER_CFLAGS="$CFLAGS" 27USER_CFLAGS="$CFLAGS"
28 28
29AC_PROG_CC([cc gcc]) 29AC_PROG_CC([cc gcc])
30AC_PROG_CC_STDC
31AM_PROG_CC_C_O 30AM_PROG_CC_C_O
32LT_INIT([pic-only]) 31LT_INIT([pic-only])
33 32
diff --git a/m4/check-hardening-options.m4 b/m4/check-hardening-options.m4
index c8ab12e..4b5784b 100644
--- a/m4/check-hardening-options.m4
+++ b/m4/check-hardening-options.m4
@@ -4,16 +4,13 @@ AC_DEFUN([CHECK_CFLAG], [
4 AC_MSG_CHECKING([if $saved_CC supports "$1"]) 4 AC_MSG_CHECKING([if $saved_CC supports "$1"])
5 old_cflags="$CFLAGS" 5 old_cflags="$CFLAGS"
6 CFLAGS="$1 -Wall -Werror" 6 CFLAGS="$1 -Wall -Werror"
7 AC_TRY_LINK([ 7 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[printf("Hello")]])],
8 #include <stdio.h> 8 [AC_MSG_RESULT([yes])
9 ],
10 [printf("Hello")],
11 AC_MSG_RESULT([yes])
12 CFLAGS=$old_cflags 9 CFLAGS=$old_cflags
13 HARDEN_CFLAGS="$HARDEN_CFLAGS $1", 10 HARDEN_CFLAGS="$HARDEN_CFLAGS $1"],
14 AC_MSG_RESULT([no]) 11 [AC_MSG_RESULT([no])
15 CFLAGS=$old_cflags 12 CFLAGS=$old_cflags
16 [$2]) 13 [$2]])
17]) 14])
18 15
19AC_DEFUN([CHECK_LDFLAG], [ 16AC_DEFUN([CHECK_LDFLAG], [
@@ -21,16 +18,13 @@ AC_DEFUN([CHECK_LDFLAG], [
21 AC_MSG_CHECKING([if $saved_LD supports "$1"]) 18 AC_MSG_CHECKING([if $saved_LD supports "$1"])
22 old_ldflags="$LDFLAGS" 19 old_ldflags="$LDFLAGS"
23 LDFLAGS="$1 -Wall -Werror" 20 LDFLAGS="$1 -Wall -Werror"
24 AC_TRY_LINK([ 21 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[printf("Hello")]])],
25 #include <stdio.h> 22 [AC_MSG_RESULT([yes])
26 ],
27 [printf("Hello")],
28 AC_MSG_RESULT([yes])
29 LDFLAGS=$old_ldflags 23 LDFLAGS=$old_ldflags
30 HARDEN_LDFLAGS="$HARDEN_LDFLAGS $1", 24 HARDEN_LDFLAGS="$HARDEN_LDFLAGS $1"],
31 AC_MSG_RESULT([no]) 25 [AC_MSG_RESULT([no])
32 LDFLAGS=$old_ldflags 26 LDFLAGS=$old_ldflags
33 [$2]) 27 [$2]])
34]) 28])
35 29
36AC_DEFUN([DISABLE_AS_EXECUTABLE_STACK], [ 30AC_DEFUN([DISABLE_AS_EXECUTABLE_STACK], [
diff --git a/tap-driver.sh b/tap-driver.sh
index 0ca4903..fea066f 100755
--- a/tap-driver.sh
+++ b/tap-driver.sh
@@ -1,5 +1,5 @@
1#! /bin/sh 1#! /bin/sh
2# Copyright (C) 2011-2020 Free Software Foundation, Inc. 2# Copyright (C) 2011-2021 Free Software Foundation, Inc.
3# 3#
4# This program is free software; you can redistribute it and/or modify 4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by