summaryrefslogtreecommitdiff
blob: 371b346e921cfd698f70f97f4483a3cfbc141d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Fixes needed for autoreconf to work on Debian
 When autoreconf is run, VL_LIB_READLINE is lost from aclocal, so included in config/
 Also include AX_CHECK_COMPLER_FLAG() which is not in autoconf (just autoconf-archive)
 AX_CHECK_COMPILER_FLAGS() is obsolete
Last-Updated: 2021-01-14
Forwarded: no
Link: https://sources.debian.org/patches/silo-llnl/4.11-2/autoreconf.patch/

--- a/configure.ac
+++ b/configure.ac
@@ -195,6 +195,8 @@
 dnl This allows multiple src-dir builds within one host.
 AC_PREFIX_DEFAULT("SILO_TOP_SRC_DIR")
 
+AC_PROG_F77
+
 dnl
 dnl Handle the python module right away to determine if we need shared libs.
 dnl Ordinarily, we default to static libs
@@ -618,10 +620,10 @@
 # it is an argument to the -D argument. So, I think this is
 # just totally bogus!
 # Default to large file support
-AX_CHECK_COMPILER_FLAGS("-D_LARGEFILE_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE";)
-AX_CHECK_COMPILER_FLAGS("-D_LARGEFILE64_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE";)
-AX_CHECK_COMPILER_FLAGS("-D_FILE_OFFSET_BITS=64",CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64";)
-AX_CHECK_COMPILER_FLAGS("-Wdeclaration-after-statement",CFLAGS="$CFLAGS -Wdeclaration-after-statement";)
+AX_CHECK_COMPILE_FLAG("-D_LARGEFILE_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE";)
+AX_CHECK_COMPILE_FLAG("-D_LARGEFILE64_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE";)
+AX_CHECK_COMPILE_FLAG("-D_FILE_OFFSET_BITS=64",CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64";)
+AX_CHECK_COMPILE_FLAG("-Wdeclaration-after-statement",CFLAGS="$CFLAGS -Wdeclaration-after-statement";)
 
 #
 # Note: regardless of what the stuff above regarding large file support