aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-07 22:26:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-07 22:26:25 +0000
commit2cff55dbb37e5453a807320769aad42184bd0229 (patch)
tree6a2648eb5e61e2959076c83d928c1b193281f272 /configure.in
parentc01ebbd99cca8bcccc565857d36151d7a36b4480 (diff)
downloadruby-2cff55dbb37e5453a807320769aad42184bd0229.tar.gz
* configure.in: check only the first symbol to get rid of
duplication. [ruby-core:33084] #4031 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index fe1899614e..696721dfbe 100644
--- a/configure.in
+++ b/configure.in
@@ -2347,7 +2347,7 @@ fi
AC_CACHE_CHECK([for prefixed underscore of exported symbols], rb_cv_export_prefix, [
AC_TRY_COMPILE([extern void conftest_exported(void) {}], [], [
rb_cv_export_prefix=`$NM conftest.$ac_objext |
- sed -n ['s/.*\(_\)conftest_exported.*/\1/p']`
+ sed -n ['/.*\(_\)conftest_exported.*/!d;s//\1/p;q']`
],
[rb_cv_export_prefix=''])
])