summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/siesta/configure.patch
blob: 577c77f5290fdabb4745b687b59693dd671911af (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- a/Src/configure	2017-11-23 12:42:40.909339915 +0100
+++ b/Src/configure	2017-11-23 12:42:59.911416449 +0100
@@ -6000,7 +6000,7 @@
   withval="$with_netcdf"
 
 fi;
-if test x$with_netcdf != xno; then
+if test "x$with_netcdf" != xno; then
 
 tw_netcdf_ok=no
 ac_ext=${FC_SRCEXT-f}
@@ -6069,7 +6069,7 @@
   LIBS="$save_LIBS"
 fi
 if test $tw_netcdf_ok = yes; then
-  DEFS="$DEFS CDF";NETCDF_INTERFACE="libnetcdf_f90.a"
+  DEFS="$DEFS CDF";
 else
   NETCDF_LIBS="";tw_netcdf_ok=no;if test ! -z "$with_netcdf"; then { { echo "$as_me:$LINENO: error: Could not find NetCDF library." >&5
 echo "$as_me: error: Could not find NetCDF library." >&2;}
--- a/Util/TBTrans_rep/Makefile	2017-12-08 09:49:02.307877000 +0100
+++ b/Util/TBTrans_rep/Makefile	2017-12-08 09:49:44.385288000 +0100
@@ -14,7 +14,7 @@
 # Please see note about Linear-Algebra libraries below
 #
 
-default: what tbtrans 
+default: what tbtrans_rep 
 
 VPATH:=$(shell pwd)/../../Src
 OBJDIR=Obj
@@ -91,16 +91,16 @@
                           "ARCH_MAKE=../$(ARCH_MAKE)" \
                           "INCFLAGS=$(LINALG_INCFLAGS)" "FFLAGS=$(FFLAGS:$(IPO_FLAG)=)" $(LINALG))
 
-tbtrans: FPPFLAGS+=$(DEFS_PREFIX) -DTBTRANS
-tbtrans: DEFS+=$(DEFS_PREFIX) -DTBTRANS
-tbtrans: $(MPI_INTERFACE) $(FDF) $(TBTOBJS) $(SYSOBJ) $(LINALG)
-	$(FC) $(FFLAGS) $(LDFLAGS) -o tbtrans \
+tbtrans_rep: FPPFLAGS+=$(DEFS_PREFIX) -DTBTRANS
+tbtrans_rep: DEFS+=$(DEFS_PREFIX) -DTBTRANS
+tbtrans_rep: $(MPI_INTERFACE) $(FDF) $(TBTOBJS) $(SYSOBJ) $(LINALG)
+	$(FC) $(FFLAGS) $(LDFLAGS) -o tbtrans_rep \
               $(TBTOBJS) $(MPI_INTERFACE)  \
               $(FDF) $(LIBS) $(LINALG)  || echo "***Please see top of Makefile"
 
 clean: 
 	@echo "==> Cleaning object, library, and executable files"
-	rm -f tbtrans *.o *.a *.mod
+	rm -f tbtrans_rep *.o *.a *.mod
 	rm -rf ./fdf
 	rm -rf ./MPI
 	rm -rf ./Libs