aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2020-12-16 19:47:18 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2020-12-19 09:21:07 +0100
commit0455b7d325801142694c0a222acb08c7e2739f7d (patch)
tree7ef94879a771e47ccc4a00704c6ad2abc1f14fa6 /gdb/configure
parenta24e04984717e824f938b278f8e5b43ee31c03b4 (diff)
downloadfsf-binutils-gdb-0455b7d325801142694c0a222acb08c7e2739f7d.zip
fsf-binutils-gdb-0455b7d325801142694c0a222acb08c7e2739f7d.tar.gz
fsf-binutils-gdb-0455b7d325801142694c0a222acb08c7e2739f7d.tar.bz2
Warn about static libs vs. source-highlight only when necessary
Avoid the error message when source-highlight is actually available. 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de> * configure.ac: Move the static libs vs. source-highlight error message to a better place. * configure: Regenerate.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/configure b/gdb/configure
index 24e6fbc..51b4d19 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -12069,13 +12069,13 @@ $as_echo "no - pkg-config not found" >&6; }
as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
fi
else
- case "$LDFLAGS" in
- *static-libstdc*)
- as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
- ;;
- esac
-
if ${pkg_config_prog_path} --exists source-highlight; then
+ case "$LDFLAGS" in
+ *static-libstdc*)
+ as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
+ ;;
+ esac
+
SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight`
SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight`