Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-core
Commits
9899fc74
Commit
9899fc74
authored
Apr 17, 2008
by
florent
Browse files
If CXXFLAGS and CFLAGS are not defined at configuration, they are set to "-Wall".
parent
0ff6fabe
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
9899fc74
...
...
@@ -9,12 +9,29 @@ dnl
AC_INIT([hppCore],[1.3.99],[openrobots@laas.fr])
AC_PREREQ(2.59)
if test "$CFLAGS$CXXFLAGS" = ""; then
setdefaultflags=yes
else
setdefaultflags=no
fi
AM_INIT_AUTOMAKE([foreign no-define])
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_CXX
if test "$setdefaultflags" = "yes"; then
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -Wall"
AC_MSG_NOTICE([adding default "-Wall" c flags])
fi
if test "$GXX" = "yes"; then
CXXFLAGS="$CXXFLAGS -Wall"
AC_MSG_NOTICE([adding default "-Wall" c++ flags])
fi
fi
define(kwplus_reqd, [kwsPlus >= 1.1])
AC_SUBST(KWPLUS_REQD, "kwplus_reqd")
PKG_CHECK_MODULES(KWSPLUS, kwplus_reqd)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment