summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-06-02 17:49:36 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-06-02 17:49:36 (GMT)
commit203f2d36ba5a60a3617576b1b6c755fafe4e9971 (patch)
treec71d717dbc1ea6d62d699209ac41b90791958193 /configure
parentc6f3947bcb2c152446d4e4d8fff11d8342176e52 (diff)
configure: check for libstdc++.{so,dylib,a}
It's probably a good thing to check for at least one instance of libstdc++.{so,dylib,a} at configure time. At least one is needed by the companion libraries and gcc. Original patch by Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 9be7a96..6982257 100755
--- a/configure
+++ b/configure
@@ -430,6 +430,13 @@ ncurses_libs="$( for l in ncursesw ncurses curses; do \
has_or_abort lib="${ncurses_libs}" \
err="'ncurses' library was not found"
+stdcxx_libs="$( for x in so dylib a; do \
+ printf "libstdc++.$x "; \
+ done \
+ )"
+has_or_abort lib="${stdcxx_libs}" \
+ err="'libstdc++' shared library was not found"
+
#---------------------------------------------------------------------
# Compute the version string