From 42c6459b6f78a6816126ec5aa910d528f9896811 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 7 Apr 2008 09:40:08 +0000 Subject: [PATCH 1/1] Look for the GRAS_ROOT in /usr/local if nothing specified git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5324 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/gras/unix_stub_generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gras/unix_stub_generator.c b/tools/gras/unix_stub_generator.c index bce8ab523b..22db9860b1 100644 --- a/tools/gras/unix_stub_generator.c +++ b/tools/gras/unix_stub_generator.c @@ -310,7 +310,7 @@ void generate_makefile_local(char *project, char *deployment) { fprintf(OUT, "# Set the GRAS_ROOT environment variable to the path under which you installed SimGrid\n" "# Compilation will fail if you don't do so\n" - "GRAS_ROOT?= $(shell echo \"\\\"<<<< GRAS_ROOT undefined !!! >>>>\\\"\")\n\n" + "GRAS_ROOT?= $(shell if [ -e /usr/local/lib/libgras.so ] ; then echo /usr/local ; else echo \"\\\"<<<< GRAS_ROOT undefined !!! >>>>\\\"\"; fi)\n\n" "# You can fiddle the following to make it fit your taste\n" "INCLUDES = -I$(GRAS_ROOT)/include\n" "CFLAGS ?= -O3 -w -g\n" -- 2.20.1