From: Tomi Ollila <tomi.ollila@iki.fi>
To: notmuch@notmuchmail.org
Cc: Tomi Ollila <tomi.ollila@iki.fi>
Subject: [PATCH 1/2] configure: store $IFS to $DEFAULT_IFS readonly variable
Date: Wed, 14 Mar 2012 16:59:59 +0200 [thread overview]
Message-ID: <1331737200-16570-1-git-send-email-tomi.ollila@iki.fi> (raw)
In-Reply-To: <1331402091-15663-1-git-send-email-tom.prince@ualberta.net>
In the future, IFS value needs to be changed in a few places
in configure -- and then restored. Store the original value
to $DEFAULT_IFS for easy restoration.
---
configure | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index ee0ae73..3b2b6b7 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,8 @@
#! /bin/sh
+# Store original IFS value so it can be changed (and restored) in many places.
+readonly DEFAULT_IFS=$IFS
+
srcdir=$(dirname "$0")
# For a non-srcdir configure invocation (such as ../configure), create
@@ -379,7 +382,6 @@ elif [ $uname = "Linux" ] ; then
# IFS=$(printf '\n')
#
# because the shell's command substitution deletes any trailing newlines.
- OLD_IFS=$IFS
IFS="
"
for path in $ldconfig_paths; do
@@ -387,7 +389,7 @@ elif [ $uname = "Linux" ] ; then
libdir_in_ldconfig=1
fi
done
- IFS=$OLD_IFS
+ IFS=$DEFAULT_IFS
if [ "$libdir_in_ldconfig" = '0' ]; then
printf "No (will set RPATH)\n"
else
@@ -536,7 +538,7 @@ done
printf "\n\t${WARN_CFLAGS}\n"
rm -f minimal minimal.c
-
+
cat <<EOF
All required packages were found. You may now run the following
--
1.7.8.2
next prev parent reply other threads:[~2012-03-14 15:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 16:45 [PATCH] Fix configure script to properly detect gmime-2.6 if available Jameson Graef Rollins
2012-03-10 17:54 ` [PATCH] Allow selecting which version of gmime is used to build notmuch Tom Prince
2012-03-14 14:59 ` Tomi Ollila [this message]
2012-03-14 15:00 ` [PATCH 2/2] " Tomi Ollila
2012-03-18 13:31 ` [PATCH 1/2] configure: store $IFS to $DEFAULT_IFS readonly variable David Bremner
2012-03-20 11:19 ` David Bremner
2012-03-11 1:48 ` [PATCH] Fix configure script to properly detect gmime-2.6 if available David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1331737200-16570-1-git-send-email-tomi.ollila@iki.fi \
--to=tomi.ollila@iki.fi \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).