Commit 59cbc846 authored by Rob Latham's avatar Rob Latham
Browse files

automake subdir-object mode needs check for -c -o

Older automake versions (at least 1.13.1) will complain if we asked for subdir
mode and we did not verify that both -c and -o flags work  (AM_PROG_CC_C_O)
parent bf9f8ea8
......@@ -18,6 +18,7 @@ if test ! -z "$MPICC" ; then
fi
PAC_PUSH_FLAG(CFLAGS)
AC_PROG_CC(mpicc)
AM_PROG_CC_C_O
AM_PROG_AR
......
......@@ -27,6 +27,7 @@ AM_MAINTAINER_MODE([enable])
dnl must come before LT_INIT, which AC_REQUIREs AC_PROG_CC
PAC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_AR
......
......@@ -15,6 +15,7 @@ AM_INIT_AUTOMAKE([subdir-objects] [-Wall -Werror foreign 1.12.3])
dnl must come before LT_INIT, which AC_REQUIREs AC_PROG_CC
PAC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_AR
......
......@@ -72,6 +72,7 @@ else
fi
AC_PROG_CC
AM_PROG_CC_C_O
AC_HEADER_ASSERT
# do we need intrin.h in here since it's a windows file?
......
......@@ -18,6 +18,7 @@ AC_ARG_PROGRAM
dnl must come before LT_INIT, which AC_REQUIREs AC_PROG_CC
dnl must also come before AC_USE_SYSTEM_EXTENSIONS
PAC_PROG_CC
AM_PROG_CC_C_O
# also needed by hwloc in embedded mode, must also come early for expansion
# ordering reasons
......@@ -44,7 +45,6 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Reset link flags
PAC_RESET_LINK_FLAGS()
AM_PROG_CC_C_O
PAC_ARG_STRICT
......
......@@ -9,9 +9,11 @@ AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.10 dist-bzip2 foreign subdir-objects tar-ustar -Wall -Werror])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_LANG([C])
AC_PROG_CC
AM_PROG_CC_C_O
cat <<EOF
......
......@@ -46,6 +46,7 @@ AC_EXEEXT
AC_OBJEXT
# Checking for programs.
PAC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_MAKE_SET
AC_PROG_LN_S
# A quick check to ensure that install-sh has the execute bit set
......
......@@ -448,6 +448,7 @@ fi
# Running C compiler tests
PAC_PROG_CC
AM_PROG_CC_C_O
# Note that some versions of autoconf will insist that the compiler
# produce executables at this point, which is why we must do something
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment