|
Revision 6044
(checked in by eb, 1 year ago)
|
Updated license from GPL version 2 or later to GPL version 3 or later.
|
- Property svn:eol-style set to
LF
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
AC_DEFUN([GR_SET_GPROF],[ |
|---|
| 25 |
|
|---|
| 26 |
AC_MSG_CHECKING([whether user wants gprof]) |
|---|
| 27 |
AC_ARG_WITH(gprof, |
|---|
| 28 |
[ --with-gprof Turn on gprof profiling], |
|---|
| 29 |
[], [ with_gprof=no ]) |
|---|
| 30 |
AC_MSG_RESULT($with_gprof) |
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
cc_profiling_flags="-pg" |
|---|
| 34 |
cxx_profiling_flags="-pg" |
|---|
| 35 |
ld_profiling_flags="-pg" |
|---|
| 36 |
if test $with_gprof = yes |
|---|
| 37 |
then |
|---|
| 38 |
if test -n "${CC}" |
|---|
| 39 |
then |
|---|
| 40 |
LF_CHECK_CC_FLAG($cc_profiling_flags) |
|---|
| 41 |
fi |
|---|
| 42 |
if test -n "${CXX}" |
|---|
| 43 |
then |
|---|
| 44 |
LF_CHECK_CXX_FLAG($cxx_profiling_flags) |
|---|
| 45 |
fi |
|---|
| 46 |
fi |
|---|
| 47 |
]) |
|---|
| 48 |
|
|---|
| 49 |
AC_DEFUN([GR_SET_PROF],[ |
|---|
| 50 |
|
|---|
| 51 |
AC_MSG_CHECKING([whether user wants prof]) |
|---|
| 52 |
AC_ARG_WITH(prof, |
|---|
| 53 |
[ --with-prof Turn on prof profiling], |
|---|
| 54 |
[], [ with_prof=no ]) |
|---|
| 55 |
AC_MSG_RESULT($with_prof) |
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
cc_profiling_flags="-p" |
|---|
| 59 |
cxx_profiling_flags="-p" |
|---|
| 60 |
ld_profiling_flags="-p" |
|---|
| 61 |
if test $with_prof = yes |
|---|
| 62 |
then |
|---|
| 63 |
if test -n "${CC}" |
|---|
| 64 |
then |
|---|
| 65 |
LF_CHECK_CC_FLAG($cc_profiling_flags) |
|---|
| 66 |
fi |
|---|
| 67 |
if test -n "${CXX}" |
|---|
| 68 |
then |
|---|
| 69 |
LF_CHECK_CXX_FLAG($cxx_profiling_flags) |
|---|
| 70 |
fi |
|---|
| 71 |
fi |
|---|
| 72 |
]) |
|---|