Skip to content

Commit

Permalink
TOOLS: Sync configure --enable-profiling implementation with main repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Dec 1, 2012
1 parent d1f74e7 commit aaf89b4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions configure
Expand Up @@ -84,6 +84,7 @@ _need_memalign=no
_debug_build=auto
_release_build=auto
_verbose_build=no
_enable_prof=no
# Default commands
_ranlib=ranlib
_strip=strip
Expand Down Expand Up @@ -332,7 +333,9 @@ Special configuration feature:
Optional Features:
--disable-debug disable building with debugging symbols
--enable-Werror treat warnings as errors
--enable-verbose-build enable regular echoing of commands during build process
--enable-profiling enable profiling
--enable-verbose-build enable regular echoing of commands during build
process
Optional Libraries:
--with-ogg-prefix=DIR Prefix where libogg is installed (optional)
Expand Down Expand Up @@ -460,8 +463,7 @@ for ac_option in $@; do
_release_build=no
;;
--enable-profiling)
CXXFLAGS="$CXXFLAGS -pg"
LDFLAGS="$LDFLAGS -pg"
_enable_prof=yes
;;
--host=*)
_host=`echo $ac_option | cut -d '=' -f 2`
Expand Down Expand Up @@ -1548,6 +1550,15 @@ test -z "$_datadir" && _datadir="$_prefix/share"
test -z "$_mandir" && _mandir="$_prefix/share/man"
test -z "$_libdir" && _libdir="$_prefix/lib"

#
# Set variables for profiling.
# We need to do it here to prevent mess-ups with the tests e.g. on the PSP
#
if test "$_enable_prof" = yes ; then
CXXFLAGS="$CXXFLAGS -pg"
LDFLAGS="$LDFLAGS -pg"
fi

_def_media_path='#define APP_MEDIA_PATH "'$_datadir'"'

echo
Expand Down

0 comments on commit aaf89b4

Please sign in to comment.