Skip to content

Commit

Permalink
Remove largest suffix from CC for SYSTEM_CC.
Browse files Browse the repository at this point in the history
CC may contain -std=... option.
This shell trick is dash-compatible.
  • Loading branch information
hiyuh committed Dec 5, 2013
1 parent 60a9eda commit 1b95122
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Expand Up @@ -71,7 +71,8 @@ PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [], [])

AX_DEFINE_DIR([DATADIR], [datadir/nvc], [Installation data directory])

AC_DEFINE_UNQUOTED([SYSTEM_CC], ["$(which $CC)"], [System compiler])
# CC may constain unwanted -std=... option.
AC_DEFINE_UNQUOTED([SYSTEM_CC], ["$(which ${CC%% *})"], [System compiler])

AC_ARG_ENABLE([native],
[AS_HELP_STRING([--enable-native],
Expand Down

0 comments on commit 1b95122

Please sign in to comment.