Mercurial > emacs
comparison configure @ 103707:6f4661f3af1c
(--enable-profiling): New option.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 03 Jul 2009 13:04:57 +0000 |
parents | 02bc348744ed |
children | bae3b52cda07 |
comparison
equal
deleted
inserted
replaced
103706:795208dc99c5 | 103707:6f4661f3af1c |
---|---|
1350 enable expensive run-time checks. With LIST, | 1350 enable expensive run-time checks. With LIST, |
1351 enable only specific categories of checks. | 1351 enable only specific categories of checks. |
1352 Categories are: all,yes,no. | 1352 Categories are: all,yes,no. |
1353 Flags are: stringbytes, stringoverrun, stringfreelist, | 1353 Flags are: stringbytes, stringoverrun, stringfreelist, |
1354 xmallocoverrun, conslist | 1354 xmallocoverrun, conslist |
1355 --enable-profiling | |
1356 Build emacs with profiling support. | |
1357 This might not work on all platforms. | |
1355 --disable-largefile omit support for large files | 1358 --disable-largefile omit support for large files |
1356 | 1359 |
1357 Optional Packages: | 1360 Optional Packages: |
1358 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
2282 | 2285 |
2283 cat >>confdefs.h <<\_ACEOF | 2286 cat >>confdefs.h <<\_ACEOF |
2284 #define GC_CHECK_CONS_LIST 1 | 2287 #define GC_CHECK_CONS_LIST 1 |
2285 _ACEOF | 2288 _ACEOF |
2286 | 2289 |
2290 fi | |
2291 | |
2292 # Check whether --enable-profiling was given. | |
2293 if test "${enable_profiling+set}" = set; then | |
2294 enableval=$enable_profiling; ac_enable_profiling="${enableval}" | |
2295 fi | |
2296 | |
2297 if test x$ac_enable_profiling != x ; then | |
2298 PROFILING_CFLAGS="-DPROFILING=1 -pg" | |
2299 PROFILING_LDFLAGS="-pg" | |
2300 else | |
2301 PROFILING_CFLAGS= | |
2302 PROFILING_LDFLAGS= | |
2287 fi | 2303 fi |
2288 | 2304 |
2289 #### Make srcdir absolute, if it isn't already. It's important to | 2305 #### Make srcdir absolute, if it isn't already. It's important to |
2290 #### avoid running the path through pwd unnecessarily, since pwd can | 2306 #### avoid running the path through pwd unnecessarily, since pwd can |
2291 #### give you automounter prefixes, which can go away. We do all this | 2307 #### give you automounter prefixes, which can go away. We do all this |
5597 | 5613 |
5598 #else /* not THIS_IS_CONFIGURE */ | 5614 #else /* not THIS_IS_CONFIGURE */ |
5599 | 5615 |
5600 /* Get the CFLAGS for real compilation. */ | 5616 /* Get the CFLAGS for real compilation. */ |
5601 #ifdef __GNUC__ | 5617 #ifdef __GNUC__ |
5602 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}' | 5618 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}' |
5603 #else | 5619 #else |
5604 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | 5620 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' |
5605 #endif | 5621 #endif |
5606 | 5622 |
5607 #endif /* not THIS_IS_CONFIGURE */ | 5623 #endif /* not THIS_IS_CONFIGURE */ |
5608 ' > ${tempcname} | 5624 ' > ${tempcname} |
5625 | |
5626 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}" | |
5609 | 5627 |
5610 # The value of CPP is a quoted variable reference, so we need to do this | 5628 # The value of CPP is a quoted variable reference, so we need to do this |
5611 # to get its actual value... | 5629 # to get its actual value... |
5612 CPP=`eval "echo $CPP"` | 5630 CPP=`eval "echo $CPP"` |
5613 eval `${CPP} -Isrc ${tempcname} \ | 5631 eval `${CPP} -Isrc ${tempcname} \ |