Skip to content

Commit 39a69f0

Browse files
committed
m4: Use older autoconf 2.63 compatible ax_check_compile_flag.
CentOS 6 and RHEL 6 have autoconf 2.63. Fixes: e4b2b69 ("configure: Add and use AX_CHECK_COMPILE_FLAG") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Matt Turner <[email protected]>
1 parent 01f2936 commit 39a69f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

m4/ax_check_compile_flag.m4

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ===========================================================================
2-
# https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
2+
# http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
33
# ===========================================================================
44
#
55
# SYNOPSIS
@@ -40,7 +40,7 @@
4040
# Public License for more details.
4141
#
4242
# You should have received a copy of the GNU General Public License along
43-
# with this program. If not, see <https://www.gnu.org/licenses/>.
43+
# with this program. If not, see <http://www.gnu.org/licenses/>.
4444
#
4545
# As a special exception, the respective Autoconf Macro's copyright owner
4646
# gives unlimited permission to copy, distribute and modify the configure
@@ -55,10 +55,10 @@
5555
# modified version of the Autoconf Macro, you may extend this special
5656
# exception to the GPL to apply to your modified version as well.
5757

58-
#serial 5
58+
#serial 3
5959

6060
AC_DEFUN([AX_CHECK_COMPILE_FLAG],
61-
[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF
61+
[AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
6262
AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl
6363
AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [
6464
ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
@@ -67,7 +67,7 @@ AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [
6767
[AS_VAR_SET(CACHEVAR,[yes])],
6868
[AS_VAR_SET(CACHEVAR,[no])])
6969
_AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags])
70-
AS_VAR_IF(CACHEVAR,yes,
70+
AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes],
7171
[m4_default([$2], :)],
7272
[m4_default([$3], :)])
7373
AS_VAR_POPDEF([CACHEVAR])dnl

0 commit comments

Comments
 (0)