Skip to content
Snippets Groups Projects
Commit 14d364a9 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

configure: only accept preprocessing with __LINE__ replacement.

parent 48d6370a
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ AC_DEFUN([ACX_PROG_FC_CHECK_FPP],dnl
for i in none -cpp -fpp -qsuffix=cpp=f90 -eT -eZ -Mpreprocess -x\ f95-cpp-input ; do
AS_IF([test "x$i" != xnone],
[]acx_flags_var[="$]acx_flags_var[ ${i}"])
AC_COMPILE_IFELSE([_ACX_SL_LANG_PROGRAM_FPP_ONLY],
AC_COMPILE_IFELSE([_ACX_SL_LANG_PROGRAM_FPP_ONLY([INTEGER :: line = __LINE__])],
[AS_VAR_SET([fpp_flag],[$i]) ; break])
]acx_flags_var[=$]acx_flags_var[_save
done
......
......@@ -120,6 +120,7 @@ AC_DEFUN([_ACX_SL_LANG_PROGRAM_FPP_ONLY],
[AC_LANG_PROGRAM(,[@%:@define OK
@%:@ifdef OK
REAL A
m4_ifvaln([$1],[ $1])dnl
@%:@else
syntax error
@%:@endif])])#_ACX_SL_LANG_PROGRAM_FPP_ONLY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment