[AMBER] [PATCH 3/8] nab.c: Don't hardcode CPP path

From: Reinis Danne <gam4rei.gmail.com>
Date: Tue, 23 Oct 2012 01:14:56 +0300

From: Reinis Danne <rei4dan.gmail.com>

Let it be set in configure. Allows using system installation of ucpp.
---
 AmberTools/src/nab/nab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/AmberTools/src/nab/nab.c b/AmberTools/src/nab/nab.c
index 84e03ef..d49b711 100644
--- a/AmberTools/src/nab/nab.c
+++ b/AmberTools/src/nab/nab.c
.. -161,8 +161,8 .. char	*cppstring;
                fprintf( stderr, "AMBERHOME is not set!\n" );
                exit(1);
             }
-			sprintf( cmd, "%s/bin/%s %s -I%s/include %s ",
-				amberhome, CPP, cppstring, amberhome,
+			sprintf( cmd, "%s %s -I%s/include %s ",
+				CPP, cppstring, amberhome,
 				argv[ ac ] ? argv[ ac ] : "" );
 			if( cgdopt ) fprintf( stderr, "cpp cmd: %s\n", cmd );
 			nfields = split( cmd, fields, " " );
-- 
1.7.12.4
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Oct 22 2012 - 15:30:06 PDT
Custom Search