diff options
Diffstat (limited to 'aclocal.in')
-rw-r--r-- | aclocal.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/aclocal.in b/aclocal.in index 4efb7afb3..eac545feb 100644 --- a/aclocal.in +++ b/aclocal.in @@ -782,7 +782,9 @@ sub write_aclocal ($@) # Do not use "$output_file" here for the same reason we do not # use it in the header below. autom4te will output the name of # the file in the diagnostic anyway. - $output = "m4_if(m4_PACKAGE_VERSION, [$ac_version],, + $output = "m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(AC_AUTOCONF_VERSION, [$ac_version],, [m4_warning([this file was generated for autoconf $ac_version. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. |