[m-rev.] diff: only install hlc.par.gc on systems with pthreads

Julien Fischer juliensf at cs.mu.OZ.AU
Wed Jun 28 18:00:38 AEST 2006


Estimated hours taken: 0.1
Branches: main, release

configure.in:
	Only install hlc.par.gc on systems with pthreads.

Julien.

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.454
diff -u -r1.454 configure.in
--- configure.in	28 Jun 2006 04:46:12 -0000	1.454
+++ configure.in	28 Jun 2006 07:56:44 -0000
@@ -928,7 +928,7 @@
 		asm/sigcontext.h sys/param.h sys/time.h sys/times.h \
 		sys/types.h sys/stat.h fcntl.h termios.h sys/ioctl.h \
 		sys/stropts.h windows.h dirent.h getopt.h malloc.h \
-		semaphore.h)
+		semaphore.h pthread.h)

 if test "$MR_HAVE_GETOPT_H" = 1; then
 	GETOPT_H_AVAILABLE=yes
@@ -2964,7 +2964,11 @@
 fi

 # Add the .par (thread-safe) grade, if it is supported for this system
-if test "$enable_par_grades" = yes -a "$CFLAGS_FOR_THREADS" != ""; then
+# Only enable it if this system has pthreads installed.
+#
+if test "$enable_par_grades" = yes -a "$CFLAGS_FOR_THREADS" != "" \
+	-a "$MR_HAVE_PTHREAD_H" = 1
+then
 	LIBGRADES="$LIBGRADES hlc.par.gc"
 fi


--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list