freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] PATCH: do not expand options passed to the builds/unix/config


From: Fix
Subject: [ft-devel] PATCH: do not expand options passed to the builds/unix/configure
Date: Tue, 27 Nov 2007 07:06:11 +0700
User-agent: KMail/1.9.5

Pass options from one configure script to another AS IS (not expanded).
That needed for options like --includedir='${prefix}/include'.
Patch follows:



diff -Naur freetype-2.3.5.orig/builds/unix/detect.mk 
freetype-2.3.5/builds/unix/detect.mk
--- freetype-2.3.5.orig/builds/unix/detect.mk   2006-12-10 01:51:54.000000000 
+0700
+++ freetype-2.3.5/builds/unix/detect.mk        2007-11-27 07:00:17.000000000 
+0700
@@ -79,9 +79,9 @@
   ifdef must_configure
     ifneq ($(have_Makefile),)
       # we are building FT2 not in the src tree
-             $(TOP_DIR)/builds/unix/configure $(CFG)
+             $(TOP_DIR)/builds/unix/configure $(value CFG)
     else
-             cd builds/unix; ./configure $(CFG)
+             cd builds/unix; ./configure $(value CFG)
     endif
   endif

diff -Naur freetype-2.3.5.orig/configure freetype-2.3.5/configure
--- freetype-2.3.5.orig/configure       2006-08-29 17:49:40.000000000 +0800
+++ freetype-2.3.5/configure    2007-11-27 07:00:17.000000000 +0700
@@ -93,7 +93,7 @@

 CFG=
 for x in ${1+"$@"}; do
-  CFG="$CFG \"$x\""
+  CFG="$CFG '$x'"
 done
 CFG=$CFG $GNUMAKE setup unix

Attachment: pgp0o6RF2WCsj.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]