diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-11-18 08:13:10 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-11-18 08:13:10 +0000 |
commit | 84113f4b5f994e3411ad0db56f5da3e226bdc3e0 (patch) | |
tree | f79fc2d98f381d8f215a90b2cc836c8d863f8afa /configure.in | |
parent | 5787f6e400eacc9dbd4774445455739837e4cfa7 (diff) |
From Olivier Biot: add a "--enable-profile-build" flag to request that
"-pg" binaries be built.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9001 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 35bb8c2696..31e7b15f5a 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.232 2003/11/17 22:09:16 guy Exp $ +# $Id: configure.in,v 1.233 2003/11/18 08:13:05 guy Exp $ dnl dnl Process this file with autoconf 2.13 or later to produce a dnl configure script; 2.12 doesn't generate a "configure" script that @@ -236,6 +236,22 @@ AC_ARG_ENABLE(threads, [ --enable-threads use threads in ethereal. [default=no]],enable_threads=$enableval,enable_threads=no) AM_CONDITIONAL(USE_THREADS, test x$enable_threads = xyes) +AC_ARG_ENABLE(profile-build, +[ --enable-profile-build build profile-ready binaries. [default=no]],enable_profile_build=$enableval,enable_profile_build=no) +AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes) +AC_MSG_CHECKING(if profile builds must be generated) +if test "x$enable_profile_build" = "xyes" ; then + if test -n "$GCC" ; then + AC_MSG_RESULT(yes) + CFLAGS=" -pg $CFLAGS" + else + AC_MSG_RESULT(no) + echo "Building profile binaries currently only supported for GCC." + fi +else + AC_MSG_RESULT(no) +fi + # GTK checks # We don't add $GLIB_LIBS to LIBS, because we don't want to force all # programs to be built with GTK+. @@ -874,6 +890,7 @@ echo " Use plugins : $have_plugins" echo " Use GTK+ v2 library : $enable_gtk2" if test "x$enable_gtk2" = "xyes" ; then echo " Use threads : $enable_threads" +echo " Build profile binaries : $enable_profile_build" fi echo " Use pcap library : $want_pcap" echo " Use zlib library : $zlib_message" |